Hello! I am trying to use wireshark to decode LTE protocols data, captured from the system. It works for S1 (going to hex, then tex2pcap, then tshark -V). But, something is lost with RRC, I can not get it tunning: Maybe I should add something to RRC, like direction? Best regards, thanks, HNY Iztok example in hex, RC_CONNECTION_REQUEST tshark answer:
S1 example: tshark:
asked 13 Dec '12, 12:53 s52d edited 16 Dec '12, 23:50 Guy Harris ♦♦ |
2 Answers:
Hello! Solved: by using separate user_dlts, generating several hex files, and then merging tshark output files together. my user_dlts: "User 3 (DLT=150)","lte-rrc.bcch.bch","0","","0","" "User 4 (DLT=151)","lte-rrc.bcch.dl.sch","0","","0","" "User 5 (DLT=152)","lte-rrc.dl.ccch","0","","0","" "User 6 (DLT=153)","lte-rrc.dl.dcch","0","","0","" "User 7 (DLT=154)","lte-rrc.pcch","0","","0","" "User 8 (DLT=155)","lte-rrc.ul.ccch","0","","0","" "User 9 (DLT=156)","lte-rrc.ul.dcch","0","","0","" example in hex, RC_CONNECTION_REQUEST 000000 58 55 95 97 74 06 zz is coverted by: text2pcap -q -l 155 x.hex x.pcap and tshark -r x.pcap -V So simple... And I learned a lot about wireshark! HNY, GL Iztok answered 27 Dec '12, 00:25 s52d |
The LTE-RLC dissector expects a structure to be attached to the frame. See packet-rlc-lte.h for details. or http://wiki.wireshark.org/RLC-LTE answered 13 Dec '12, 14:29 Anders ♦ showing 5 of 6 show 1 more comments |
Hello! Thanks for fast answer, but I keep failing. Is it possible than hex via text2pcap does not work? maybe this works for UDP access only?
can I get working hex sample? Just to verify if I understood headers properly?
BR Iztok
example in hex, following packet-rlc-lte.h, but no succsess. it is typed manually, and at this point data might be incorect, but I fail to get header done properly.
00000000 72 6c 63 2d 6c 74 65 00 02 02 05 03 00 04 00 06 01 00 07 00 00 01 58 55 95 97 74 06 zz
This string:
00000000 72 6c 63 2d 6c 74 65 01 02 02 05 03 00 04 00 06 01 00 07 00 00 01 58 55 95 97 74 06 zz
At least gets it dissected by the dissector.
00000000 72 6c 63 2d 6c 74 65 01 Last byte 01 is rlcMode= RLC_TM_MODE
Ups... I just wanted to get something out of it, and then to fix proper data: format first, then proper contents.
is pcap way ok? Iztok
File y.hex 00000000 72 6c 63 2d 6c 74 65 01 02 02 05 03 00 04 00 06 01 00 07 00 00 01 58 55 95 97 74 06 zz
text2pcap -q -l 156 y.hex y.pcap
tshark -r y.pcap -V
TShark 1.8.4 (cut few characters) Capture Length: 28 bytes (224 bits) [Frame is marked: False] [Frame is ignored: False] [Protocols in frame: user_dlt:rlc-lte] DLT: 156, Payload: rlc-lte (RLC-LTE) RLC-LTE [Can't dissect LTE RLC frame because no per-frame info was attached!]
You need to add a dummy UDP header:
Sorry, I am lost... To summarize: to get RRC decoded, we put dummy RLC around, and into dummy UDP. But I keep failing: I got something by changing settings of wireshark, but even demos from rlc_lte_logger.c and mac_pcap_sample_code.c are failing. May I ask for good RRC sample, so I can find where I got lost? Thanks!
Managed! New look at it, by defining lte-rrc.dl.ccch in user_dlts.
So, by putting each type in own hex file, calling text2pcap for each one, it can be done. Back to coding.