Huge thanks to our Platinum Members Endace and LiveAction,
and our Silver Member Veeam, for supporting the Wireshark Foundation and project.

Wireshark-dev: [Wireshark-dev] LTE S1 decode bug?

From: Michael Sukhar <devlist@xxxxxxxxxxx>
Date: Fri, 23 Apr 2010 09:35:57 -0700
LTE S1 NAS_PDU (field starts at byte 104) decoding has a possible problem. Attached is the pcap log with the LTE S1 packet in question, and the alternative decoding in html file.

Regards,
Michael

Attachment: s1.pcap
Description: Binary data

Title: Message - Online Message Decoder - Linkbit Inc.
00 22 64 2B 79 3A 00 1E 68 45 62 1A 08 00 45 00 00 84 0A E0 00 00 80 84 18 93 0A B7 00 E2 0A B7 00 34 0B 58 0B 58 00 00 4D 3D 6D 28 94 42 03 00 00 10 00 00 15 BE 00 00 7F FF 00 00 00 00 00 03 00 52 00 00 22 AF 00 02 00 1E 00 00 00 12 00 09 00 3E 00 00 03 00 18 00 29 00 00 34 00 24 40 00 00 00 00 00 00 00 00 00 19 17 00 00 00 00 00 07 42 10 00 00 00 0C 02 00 C1 01 00 00 05 01 00 00 00 00 00 08 00 02 00 01 00 00 00 04 00 00 00 0D 00 00
POSBINARYNAMEVALUE
Ethernet L2
0-5Dst6 Octets (hex): 00 22 64 2B 79...
6-11Src6 Octets (hex): 00 1E 68 45 62...
12-13Type2048 (IPv4)
14-145Data132 Octets (hex): 45 00 00 84 0A...
IPv4
140100....Version4 (Version 4)
....0101IHL5
Type Of Service
15000.....PrecedenceRoutine (0)
...0....DelayNormal Delay (0)
....0...ThroughputNormal Throughput (0)
.....0..ReliabilityNormal Reliability (0)
......00Reserved0
Total Length
16-17Total Length132
Identification
18-19Identification2784
Flags
200.......Reserved0
.0......FragmentationMay Fragment (0)
..0.....FragmentLast Fragment (0)
Fragment Offset
20-21Fragment Offset0
TTL
2210000000TTL128
Protocol
2310000100Protocol132 (SCTP)
Header Checksum
24-25Header Checksum6291
Source Address
26-29Source Address10.183.0.226
Destination Address
30-33Destination Address10.183.0.52
Options
Options0 Elements
Padding
Padding0 Bits
Data
34-145Data112 Octets (hex): 0B 58 0B 58 00...
SCTP: [SACK, DATA]
34-35Source Port2904
36-37Destination Port2904
38-41Verification Tag19773
42-45Checksum1831375938 (6D289442 hex)
Chunks
46-61Chunks[0]SACK
46-61SACKsee below
4600000011Chunk TypeSACK (3)
4700000000Chunk Flags0
48-49Chunk Length16
50-53Cumulative TSN Ack5566
54-57Advertised Receiver Window Credit32767
58-59Number of Gap Ack Blocks0
60-61Number of Duplicate TSNs0
Gap Ack Block0 Elements
Duplicate TSN0 Elements
62-145Chunks[1]DATA
62-145DATAsee below
6200000000Chunk TypeDATA (0)
6300000...Chunk Flags0
.....0..Uthis is an ordered DATA chunk (0)
......11BEUnfragmented Message (3)
64-65Chunk Length82
66-69TSN8879
70-71Stream Identifier S2
72-73Stream Sequence Number n30
74-77Payload Protocol IdentifierS1AP (18)
78-143User Data66 Octets (hex): 00 09 00 3E 00...
LTE S1AP: InitiatingMessage [initialContextSetup]
78-79procedureCode9 (initialContextSetup)
8000......criticalityreject (0)
value
82-143InitialContextSetupRequestsee below
82-143protocolIEs3 Elements
85-129protocolIEs[0]see below
85-86id24 (E_RABToBeSetupListCtxtSUReq)
8700......criticalityreject (0)
87-129valueE_RABToBeSetupListCtxtSUReq
89-129E_RABToBeSetupListCtxtSUReq1 Elements
90-129E_RABToBeSetupListCtxtSUReq[0]see below
90-91id52 (E_RABToBeSetupItemCtxtSUReq)
9200......criticalityreject (0)
92-129valueE_RABToBeSetupItemCtxtSUReq
94-129E_RABToBeSetupItemCtxtSUReqsee below
94...00000e_RAB_ID0
95-97e_RABlevelQoSParameterssee below
95-96qCI0
9700000000allocationRetentionPrioritysee below
..0000..priorityLevel0 (spare)
......0.pre_emptionCapabilityshall_not_trigger_pre_emption (0)
.......0pre_emptionVulnerabilitynot_pre_emptable (0)
98-99transportLayerAddress1 Bits: 0
99-103gTP_TEID4 Octets (hex): 00 00 00 00
104-129nAS_PDU25 Octets (hex): 17 00 00 00 00...
130-135protocolIEs[1]see below
130-131id8 (eNB_UE_S1AP_ID)
13200......criticalityreject (0)
132-135valueENB_UE_S1AP_ID
134-135ENB_UE_S1AP_ID1
136-143protocolIEs[2]see below
136-137id0 (MME_UE_S1AP_ID)
13800......criticalityreject (0)
138-143valueMME_UE_S1AP_ID
140-143MME_UE_S1AP_ID13
LTE NAS: INTEGRITY PROTECTED NAS MESSAGE (DOWNLINK)
105....0111Protocol discriminator7 (EPS mobility management messages)
0001....Security header type1 (Integrity protected NAS message (Downlink))
106-109Message authentication code4 Octets (hex): 00 00 00 00
11000000000Sequence number0
111-129Downlink NAS message19 Octets (hex): 07 42 10 00 00...
LTE EMM: ATTACH ACCEPT
111....0111Protocol discriminator7 (EPS mobility management messages)
0000....Security header type0 (Plain NAS message, not security protected)
Attach accept message identity
11201000010Message typeAttach accept (66)
EPS attach result
1130.......spare0
.001....Result of attachEOS only attached (1)
Spare half octet
....0000Spare half octet0
T3412 value
114000.....Unit0 (value is incremented in multiples of 2 seconds)
...00000Timer value0
TAI list
11500000000Length indicator0
Partial tracking area identity list0 Elements
ESM message container
116-117Length indicator12
118-129ESM message container contents12 Octets (hex): 02 00 C1 01 00...
LTE ESM: ACTIVATE DEFAULT EPS BEARER CONTEXT REQUEST
118....0010Protocol discriminator2 (EPS session management messages)
0000....EPS bearer identity0 -> Reserved
11900000000Procedure transaction identity0 (No procedure transaction identity assigned) -> Procedure transaction identity value
Activate default EPS bearer context request message identity
12011000001Message typeActivate default EPS bearer context request (193)
EPS QoS
12100000001Length indicator1
12200000000QCIUE to network: Network selects the QCI / network to UE: Reserved (0)
Access point name
12300000000Length indicator0
Access point name value0 Elements
PDN address
12400000101Length indicator5
12500000...spare0
.....001PDN Type valueIPv4 (1)
126-129IPv4 Address0.0.0.0