2G/GSM

 

 

 

 

IPv4 Allocation

 

 

(1) Activate PDP Context Request

 

DLT: 147, Payload: gsm_a_dtap (GSM A-I/F DTAP)

GSM A-I/F DTAP - Activate PDP Context Request

    Protocol Discriminator: GPRS session management messages

        .... 1010 = Protocol discriminator: GPRS session management messages (0x0a)

        0... .... = TI flag: allocated by sender

        .000 .... = TIO: 0

    01.. .... = Sequence number: 1

    DTAP GPRS Session Management Message Type: Activate PDP Context Request (0x41)

    Network Service Access Point Identifier - Requested NSAPI

        NSAPI: 0x05 (5)

    LLC Service Access Point Identifier - Requested LLC SAPI

        0000 .... = Spare bit(s): 0

        .... 0011 = LLC SAPI: SAPI 3 (3)

    Quality Of Service - Requested QoS

        Length: 3

        00.. .... = Spare bit(s): 0

        ..00 0... = Quality of Service Delay class: Subscribed delay class (in MS to network direction) (0)

        .... .000 = Reliability class: Subscribed reliability class (in MS to network direction) (0)

        0000 .... = Peak throughput: Subscribed peak throughput/reserved (0)

        .... 0... = Spare bit(s): 0

        .... .000 = Precedence class: Subscribed precedence/reserved (0)

        000. .... = Spare bit(s): 0

        ...0 0000 = Mean throughput: Subscribed peak throughput/reserved (0)

    Packet Data Protocol Address - Requested PDP address

        Length: 2

        0000 .... = Spare bit(s): 0

        .... 0001 = PDP type organization: IETF allocated address (1)

        PDP type number: IPv4 address (33)

        Dynamic addressing

    Access Point Name

        Element ID: 0x28

        Length: 4

        APN: ims

    Protocol Configuration Options

        Element ID: 0x27

        Length: 20

        [Link direction: MS to network (0)]

        1... .... = Extension: True

        Configuration Protocol: PPP for use with IP PDP type or IP PDN type (0)

        Protocol or Container ID: Internet Protocol Control Protocol (0x8021)

            Length: 0x10 (16)

            PPP IP Control Protocol

                Code: Configuration Request (1)

                Identifier: 0 (0x00)

                Length: 16

                Options: (12 bytes), Primary DNS Server IP Address, Secondary DNS Server IP Address

                    Primary DNS Server IP Address: 0.0.0.0

                        Type: Primary DNS Server IP Address (129)

                        Length: 6

                        Primary DNS Address: 0.0.0.0 (0.0.0.0)

                    Secondary DNS Server IP Address: 0.0.0.0

                        Type: Secondary DNS Server IP Address (131)

                        Length: 6

                        Secondary DNS Address: 0.0.0.0 (0.0.0.0)

 

(2) Activate PDP Context Accept

 

DLT: 147, Payload: gsm_a_dtap (GSM A-I/F DTAP)

GSM A-I/F DTAP - Activate PDP Context Accept

    Protocol Discriminator: GPRS session management messages

        .... 1010 = Protocol discriminator: GPRS session management messages (0x0a)

        1... .... = TI flag: allocated by receiver

        .000 .... = TIO: 0

    01.. .... = Sequence number: 1

    DTAP GPRS Session Management Message Type: Activate PDP Context Accept (0x42)

    LLC Service Access Point Identifier - Negotiated LLC SAPI

        0000 .... = Spare bit(s): 0

        .... 0011 = LLC SAPI: SAPI 3 (3)

    Quality Of Service - Negotiated QoS

        Length: 3

        00.. .... = Spare bit(s): 0

        ..10 0... = Quality of Service Delay class: Delay class 4 (best effort) (4)

        .... .011 = Reliability class: Unacknowledged GTP/LLC, Ack RLC, Protected data (3)

        0111 .... = Peak throughput: Up to 64 000 octet/s (7)

        .... 0... = Spare bit(s): 0

        .... .001 = Precedence class: High priority (1)

        000. .... = Spare bit(s): 0

        ...1 1111 = Mean throughput: Best effort (31)

    Radio Priority

        Radio Priority (PDP or SMS): priority level 1 (highest) (1)

    Packet Data Protocol Address - PDP address

        Element ID: 0x2b

        Length: 6

        0000 .... = Spare bit(s): 0

        .... 0001 = PDP type organization: IETF allocated address (1)

        PDP type number: IPv4 address (33)

        IPv4 address: 192.168.1.1 (192.168.1.1)

    Protocol Configuration Options

        Element ID: 0x27

        Length: 20

        [Link direction: Network to MS (1)]

        1... .... = Extension: True

        Configuration Protocol: PPP for use with IP PDP type or IP PDN type (0)

        Protocol or Container ID: Internet Protocol Control Protocol (0x8021)

            Length: 0x10 (16)

            PPP IP Control Protocol

                Code: Configuration Nak (3)

                Identifier: 0 (0x00)

                Length: 16

                Options: (12 bytes), Primary DNS Server IP Address, Secondary DNS Server IP Address

                    Primary DNS Server IP Address: 192.168.1.2

                        Type: Primary DNS Server IP Address (129)

                        Length: 6

                        Primary DNS Address: 192.168.1.2 (192.168.1.2)

                    Secondary DNS Server IP Address: 192.168.1.2

                        Type: Secondary DNS Server IP Address (131)

                        Length: 6

                        Secondary DNS Address: 192.168.1.2 (192.168.1.2)

 

 

< Examples of Immdiate Assignment during IP traffic >

 

DLT: 147, Payload: gsm_a_ccch (GSM CCCH)

GSM CCCH - Immediate Assignment

    L2 Pseudo Length

        0010 11.. = L2 Pseudo Length value: 11

    Protocol Discriminator: Radio Resources Management messages

        .... 0110 = Protocol discriminator: Radio Resources Management messages (0x06)

        0000 .... = Skip Indicator: No indication of selected PLMN (0)

    Message Type: Immediate Assignment

    Page Mode

        .... 0000 = Page Mode: Normal paging (0)

    Dedicated mode or TBF

        0011 .... = Dedicated mode or TBF:

                    This message assigns a downlink TBF to the mobile station identified

                    in the IA Rest Octets IE (3)

    Packet Channel Description

        0000 1... = Spare bits (ignored by receiver)

        .... .011 = Timeslot: 3

        001. .... = Training Sequence: 1

        ...0 .... = Hopping channel: No

        .... 00.. = Spare

        Single channel : ARFCN 10

    Request Reference

        Random Access Information (RA): 108

        0000 0... = T1': 0

        .... .000 000. .... = T3: 0

        ...0 0000 = T2: 0

        [RFN: 0]

    Timing Advance

        Timing advance value: 0

    Mobile Allocation

        Length: 0

    IA Rest Octets

        H... ....: First Discriminator Bit: High

        .H.. ....: Second Discriminator Bit: High

        ..0. ....: Discriminator Bit: Packet Assignment

        ...1 ....: Discriminator Bit: Packet Downlink Assignment

        Packet Downlink Assignment

            .... 1100  0000 0000  0000 0000  0000 1000  0000 .... = TLLI: 0xc0000080

            .... 1...: TFI Assignment (etc): Present

            .... .000  00.. .... = TFI_Assignment: 0

            ..0. .... = RLC_Mode: RLC acknowledged mode

            ...1 ....: Alpha: Present

            .... 0000 = Alpha: 0.0 (0)

            0011 0... = Gamma: 12 dB (6)

            .... .1.. = Polling: MS shall send a PACKET CONTROL ACKNOWLEDGEMENT message

                                 in the uplink block specified by TBF Starting Time, on the assigned PDCH

            .... ..1. = TA_Valid: the timing advance value is valid

            .... ...0: Timing Advance Index: Not Present

            1... ....: TBF Starting Time: Present

            .100 11.. = T1' (TBF): 19

            .... ..10  0101 .... = T3 (TBF): 37

            .... 0110  1... .... = T2 (TBF): 13

            [TBF_Starting_Time: 26455]

            .0.. ....: P0: Not Present

            ..L. ....: Additions in R99: Not Present

            ...L ....: Additions in Rel-6: Not Present

        Padding Bits: default padding

 

 

 

DLT: 147, Payload: gsm_a_ccch (GSM CCCH)

GSM CCCH - Immediate Assignment

    L2 Pseudo Length

        0010 11.. = L2 Pseudo Length value: 11

    Protocol Discriminator: Radio Resources Management messages

        .... 0110 = Protocol discriminator: Radio Resources Management messages (0x06)

        0000 .... = Skip Indicator: No indication of selected PLMN (0)

    Message Type: Immediate Assignment

    Page Mode

        .... 0000 = Page Mode: Normal paging (0)

    Dedicated mode or TBF

        0001 .... = Dedicated mode or TBF: This message assigns an uplink TBF

                    or is the second message of two

                    in a two-message assignment of an uplink or downlink TBF (1)

    Packet Channel Description

        0000 1... = Spare bits (ignored by receiver)

        .... .011 = Timeslot: 3

        001. .... = Training Sequence: 1

        ...0 .... = Hopping channel: No

        .... 00.. = Spare

        Single channel : ARFCN 10

    Request Reference

        Random Access Information (RA): 122

        1010 0... = T1': 20

        .... .001 000. .... = T3: 8

        ...0 0000 = T2: 0

        [RFN: 26936]

    Timing Advance

        Timing advance value: 0

    Mobile Allocation

        Length: 0

    IA Rest Octets

        H... ....: First Discriminator Bit: High

        .H.. ....: Second Discriminator Bit: High

        ..0. ....: Discriminator Bit: Packet Assignment

        ...0 ....: Discriminator Bit: Packet Uplink Assignment

        Packet Uplink Assignment

            .... 1...: Packet Uplink Assignment: Normal

            .... .000  00.. .... = TFI_Assignment: 0

            ..0. .... = Polling: no action is required from MS

            ...0 ....: Allocation Type: Dynamic Allocation (mandatory after Rel-4)

            .... 000. = USF: 0

            .... ...0 = USF_granularity: the mobile station shall transmit one RLC/MAC block

            0... ....: P0: Not Present

            .10. .... = Channel_Coding_Command: CS-3 (2)

            ...1 .... = TLLI_Block_Channel_Coding: mobile station shall use coding scheme

                        as specified by the corresponding CHANNEL CODING COMMAND

                        or EGPRS CHANNEL CODING COMMAND field

            .... 1...: Alpha: Present

            .... .000  0... .... = Alpha: 0.0 (0)

            .001 10.. = Gamma: 12 dB (6)

            .... ..0.: Timing Advance Index: Not Present

            .... ...0: TBF Starting Time: Not Present

            L... ....: Additions in R99: Not Present

            .L.. ....: Additions in Rel-6: Not Present

        Padding Bits: default padding

 

 

< Examples of MAC Control message during Data Traffic >

 

DLT: 147, Payload: gsm_rlcmac_ul (Radio Link Control, Medium Access Control, 3GPP TS44.060)

GSM RLC/MAC: PACKET_CONTROL_ACKNOWLEDGEMENT (1) (Uplink)

    01.. .... = Payload Type (UL): RLC/MAC block contains an RLC/MAC control block

                that does not include the optional octets of the RLC/MAC control header (1)

    ..00 000. = spare: 0

    .... ...0 = R: MS sent channel request message once

    0000 01.. = MESSAGE_TYPE (UL): PACKET_CONTROL_ACKNOWLEDGEMENT (1)

    .... ..11  0000 0000  0000 0000  0000 0010  0000 00.. = TLLI: 3221225600

    .... ..11 = CTRL_ACK: 3

    0... .... Exist_AdditionsR5

    Padding Bits

        .010 1011  0010 1011  0010 1011  0010 1011 Padding

        0010 1011  0010 1011  0010 1011  0010 1011 Padding

        0010 1011  0010 1011  0010 1011  0010 1011 Padding

        0010 1011  0010 1011  0010 1011  0010 1011 Padding

        0010 1011 Padding

 

 

DLT: 147, Payload: gsm_rlcmac_ul (Radio Link Control, Medium Access Control, 3GPP TS44.060)

GSM RLC/MAC: PACKET_DOWNLINK_ACK_NACK (2) (Uplink)

    01.. .... = Payload Type (UL): RLC/MAC block contains an RLC/MAC control block

                that does not include the optional octets of the RLC/MAC control header (1)

    ..00 000. = spare: 0

    .... ...0 = R: MS sent channel request message once

    0000 10.. = MESSAGE_TYPE (UL): PACKET_DOWNLINK_ACK_NACK (2)

    .... ..00  000. .... = DL TFI: 0

    Ack_Nack_Description

        ...1 .... = FINAL_ACK_INDICATION: True

        .... 0000  010. .... = STARTING_SEQUENCE_NUMBER: 2

        ...0 0000  0000 0000  0000 0000  0000 0000  0000 0000  0000 0000  0000 0000  0000 0000  011. .... RECEIVED_BLOCK_BITMAP

    ...1 .... Exist_Channel_Request_Description

    Channel_Request_Description

        .... 0111 = PEAK_THROUGHPUT_CLASS: 7

        00.. .... = RADIO_PRIORITY: 0

        ..0. .... = RLC_MODE: RLC acknowledged mode

        ...1 .... = LLC_PDU_TYPE: True

        .... 0000  0000 0000  1011 .... = RLC_OCTET_COUNT: 11

    Channel_Quality_Report

        .... 1111  11.. .... = C_VALUE: 63

        ..00 0... = RXQUAL: 0

        .... .000  000. .... = SIGN_VAR: 0

        ...0 .... Slot[0].Exist

        .... 0... Slot[1].Exist

        .... .0.. Slot[2].Exist

        .... ..1. Slot[3].Exist

        .... ...0  001. .... = Slot[3].I_LEVEL_TN: 1

        ...1 .... Slot[4].Exist

        .... 0001 = Slot[4].I_LEVEL_TN: 1

        1... .... Slot[5].Exist

        .111 0... = Slot[5].I_LEVEL_TN: 14

        .... .1.. Slot[6].Exist

        .... ..11  11.. .... = Slot[6].I_LEVEL_TN: 15

        ..0. .... Slot[7].Exist

    ...0 .... Exist_AdditionsR99

    Padding Bits

        .... 1011  0010 1011  0010 1011  0010 1011 Padding