Main GPRS Procedures

Group 2: Tuomas Suontausta Antti Ärrälä

Agenda
! ! ! ! ! ! ! !

Mobility Management Attach procedure Detach procedure PDP activation Data transfer PDP deactivation Security Functions Questions

Acronyms ! ! ! ! ! ! ! ! ! ! ! ! ! ! SGSN: Serving GPRS Support Node GGSN: Gateway GPRS Support Node MS: Mobile Station MM: Mobility Management TLLI: Temporary Logical Link Identifier P_TMSI: Packet Temporary Mobile Subscriber Identity PDP: Packet Data Protocol GMM: GPRS mobility management RA: Routing Area IMSI: International Mobile Subscriber Identity BSS: Base Station Subsystem TID: Tunnel Identifier HLR: Home Location Register NSAPI: Network Service Area Point Identifier Mobility Management ! ! ! ! ! Before a mobile station (MS) can send or receive data. to to the GPRS mobility management (GMM) Figure 1: Radio resource state machine . it must attach to a Serving GPRS Support Node (SGSN) During the attachment procedure a TLLI and a P_TMSI are assigned to the MS After attaching one or more PDPs can be negotiatiated with the SGSN There are 3 MM states related to a GPRS subscriber and each state describes the level of functionality and information allocated In idle state. the MS is not yet attached state.

Mobility Management continued ! ! ! ! In ready state. the MS is attached state. if the subscriber wants to send or receive data. The MS can receive and send data for all relevant service types If the ready timer expires. the MM contexts in both the MS and SGSN independently return to the idle state and may be deleted Figure 3: PDP context state machine . the MS expires. the state. will move to the standby state In the standby state. a PDP context must be activated in advance If the standby timer expires. to GMM and is known in the accuracy of the cell. associated with the routing area (RA). subscriber is still attached to the GMM and is known in the accuracy of the RA Figure 2: Mobility management state model of mobile station and SGSN Mobility Management continued ! ! While in standby state. Each cell is cell.

sends back a reply to the MS with a TLLI A database is maintained at the SGSN that maps the mobile identity with the TLLI assigned to it Figure 5: The steps in performing a GPRS attach . the MS network. must first attach itself to the SGSN. Will be possible in a attach. performed via GPRS if a TMSI or P_TMSI are not already assigned to the MS IMSI/GPRS attach. the SGSN authorization. provides its identity and indicates which type of attach procedure is to be performd There are 3 types of attach procedures: procedures: ! ! ! GPRS attach. Four steps are involved: involved: ! ! ! ! The MS sends an attach request with its identity (P_TMSI or TMSI) to the SGSN The SGSN verifies whether the user is authorized for that particular service by checking with the HLR After authorization. and RAI IMSI attach. Specific to GSM but may be attach. Needs the MS’s P_TMSI attach. the MS this. To do this. later release of GPRS Figure 4: GPRS attach procedure to move to the ready mode GPRS Attach Scenario ! The MS wants to initiate a packet data session.GPRS Attach ! ! ! A GPRS MS is not reachable or known by the network until the MS performs the attach procedure and switches into the ready mode To attach to the network.

the SGSN informs the MS that it has been detached by sending a Detach Request to the MS The active PDP contexts in the GGSN are deactivated by the SGSN The MS sends a GPRS Detach Accept message back to the SGSN anytime after the Detach Request message Figure 7: The network initiated GPRS detach procedure .Mobile Station-Initiated GPRS Detach ! ! ! ! ! To move from the ready state to the idle state. the MS initiates a state. GPRS detach procedure The result is that the SGSN may delete the MM and PDP contexts If GPRS detaches. PDP contexts in the GGSN regarding this particular MS are deactivated by the SGSN sending a Delete PDP Context Request message to the GGSN The GGSN acknowledges with a Delete PDP Context response The SGSN sends a GPRS Detach Accept message to the MS Figure 6: MS-initiated GPRS detach procedure Network-Initiated GPRS Detach ! ! ! When necessary for the network to detach a MS. the active detaches.

! ! ! ! The MS sends a PDP context activation request to the SGSN The SGSN chooses the GGSNand requests the GGSN to create a context for the MS. requirements. Therefore. the Therefore. not yet know of the MS. MS must initiate a PDP context with the GGSN. delay requirements. expected…) expected…) Data compression or no data compression Wheteher or not to use TCP/IP header compression PDP address and type requested The MS is responsible for activationa and deactivation GGSN is responsible for activation (for incoming packets) and deactivation packets) SGSN is responsible for modification ! Each PDP context can be either active or inactive and 3 PDP context functions are available – activate. deactivate.g. However. deactivate. SGSN and GGSN for every PDP address It is possible to inquire/set the following parameters in PDP: inquire/set ! ! ! ! Requested QoS (peak bit rate. ! ! ! ! A MS in standby or ready state can initiate activation or deactivation at anytime to activate the PDP context in the MS. modify activate. the SGSN or the GGSN GPRS Context Activation-Scenario ! The MS has attached to the SGSN. IP) do e. the external network nodes (e. rate. address) activated (created for the MS) A GPRS subscribtion contains several PDP addresses and an individual PDP context is maintained in the MS. reliability level rate. knows. The SGSN will selsect a GGSN that serves the particular type of context needed The GGSN replies to the SGSN with the TID information The SGSN sends a message to the MS informing it that a context has been activated Figure 8: The steps in activating a PDP context Figure 9: The SGSN and GGSN tables .g.Activating a PDP Context for Packet Routing and Transfer ! ! ! Before data can be sent or received. The MS has been assigned a TLLI that the wireless network knows. a PDP context (a data address) must be received. mean bit rate. However.

.continued ! Activate PDP Context Request message constains the following: ! ! ! ! ! ! NSAPI PDP type PDP address Request QoS Access Point Name (APN) PDP configuration options ! The MS only exchanges messages with the SGSN ...Mobile-Initiated PDP Data Protocol Context Activation ! ! Establish a PDP context between the MS and network Performed automatically or manually Figure 10: The mobile-initiated PDP activation.

.continued ! ! When SGSN receives an APN from the MS. ! the SGSN sends the activated PDP context to the GGSN and open a GTP tunnel Network-Initiated Packet Data Protocol Context Activation ! ! ! ! ! ! a PDP PDU receive GGSN may send IMSI message to the HLR (via SGSN) The HLR returns Send Routing Information for GPRS ACK GGSN sends a PDU Notification Request Message to the SGSN SGSN sends a PDU Notification Response Message The SGSN sends a Request PDP Context Activation message to the MS Figure 12: The network-initiated PDP context activation ... ! the SGSN sends a request DNS query ! the DNS responds with a list of the available GGSNs to use Figure 11: The mobile-initiated PDP context activation continued. it checks to see if the APN ends with . it determine which GPRS gateway to select for the given APN.gprs When the SGSN has valitated the MS parameters..

25 packet is obtained Figure 13: GPRS Data transfer from mobile.GPRS Data Transfer from the MS ! ! ! A logical link exists between the SGSN and the MS SGSN holds mapping information of the TLLI and NSAPI to the corresponding TID and GGSN IP addresses At the GGSN the header is stripped off and the original IP or X. GPRS data transfer to the MS ! ! ! ! The GGSN looks up the tables to determine the particular SGSN address and TID The GGSN forms an IP datagram The SGSN maps TID and SGSN to the corresponding TLLI and NSAPI values The SGSN adds a header with the NSAPI and TLLI to the original IP packet. and forwards it to the MS Figure 14: GPRS Data flow to the MS. .

Network-initiated packet data protocol context deactivation ! ! ! ! The GGSN sends a Delete PDP Context Request (TID) message to the SGSN The SGSN sends a Deactivate PDP Context Request message (NSAPI) to the MS The MS returns a Deactivate PDP Context Accept (NSAPI) to the SGSN The SGSN sends a Delete PDP Context Response message (TID) to the GGSN Figure 16: Network-initiated PDP context deactivation.Mobile-Initiated Packet Data Protocol Context Deactivation ! ! ! ! MS sends a Deactivate PDP Context request message to the SGSN The SGSN sends a Delete PDP Context request (TID) message to the GGSN The GGSN return a Delete PDP Context Response (TID) message to the SGSN The SGSN returns a Deactivate PDP Context Accept (NSAPI) message to the MS Figure 15: Mobile-initiated PDP context deactivation. .

. Web access on GPRS ! ! First the MS performs GPRS attach procedur to become ready Second the PDP context activation to establish communications with an Internet host Figure 18: Web access on GPRS.Security Functions ! ! ! Authentication Ciphering (encryption) authenticating the user Figure 17: Security funktions.

“Bud” Bates) .References ! GPRS General Packet Radio Service (Regis J.

Sign up to vote on this title
UsefulNot useful

Master Your Semester with Scribd & The New York Times

Special offer for students: Only $4.99/month.

Master Your Semester with a Special Offer from Scribd & The New York Times

Cancel anytime.