51
Lecture 11 Lecture 11 GPRS GPRS Data Over Cellular Networks Data Over Cellular Networks Ilenia Tinnirello Data Over Cellular Networks Data Over Cellular Networks Architecture and Components

Lecture 11 GPRS Data Over Cellular Networks - unipa.itilenia/course/11-gprs.pdf · GPRS Data Over Cellular Networks Ilenia Tinnirello Architecture and Components. Data over cellular

Embed Size (px)

Citation preview

Page 1: Lecture 11 GPRS Data Over Cellular Networks - unipa.itilenia/course/11-gprs.pdf · GPRS Data Over Cellular Networks Ilenia Tinnirello Architecture and Components. Data over cellular

Lecture 11Lecture 11

GPRS GPRS

Data Over Cellular NetworksData Over Cellular Networks

Ilenia Tinnirello

Data Over Cellular NetworksData Over Cellular Networks

Architecture and Components

Page 2: Lecture 11 GPRS Data Over Cellular Networks - unipa.itilenia/course/11-gprs.pdf · GPRS Data Over Cellular Networks Ilenia Tinnirello Architecture and Components. Data over cellular

Data over cellular networksData over cellular networks

�CDPD (Cellular Digital Packet Data, over AMPS)

�GPRS-136 (over IS-136 TDMA)

�IS-95B (over CDMA)

�HSCSD (High-Speed Circuit-Switched Data)

Ilenia Tinnirello

�HSCSD (High-Speed Circuit-Switched Data)

�GPRS (General Packet Radio Service, over GSM)

�EDGE (Enhanced Data Rates for GSM Evolution)

� ECSD (Enhanced Circuit-Switched Data; circuit-mode)

� EGPRS (Enhanced GPRS; packet-mode)

Page 3: Lecture 11 GPRS Data Over Cellular Networks - unipa.itilenia/course/11-gprs.pdf · GPRS Data Over Cellular Networks Ilenia Tinnirello Architecture and Components. Data over cellular

GPRS BenefitsGPRS Benefits

�Higher data rates

� Using all 8 Packet Data Channels (PDCH) GPRS can achieve up to 160 kbps (actually the theoretical maximum achievable)

�Packet switched principle

� efficient for burst traffic (e.g., Internet traffic)

� radio channel allocated only when needed

Ilenia Tinnirello

� radio channel allocated only when needed

� spectrum efficiency

�User-friendly billing

� payment based on the amount of transmitted data

� Data charged by-the-byte not per minute

�Reuse of existing GSM infrastructure� GSM, Internet

Page 4: Lecture 11 GPRS Data Over Cellular Networks - unipa.itilenia/course/11-gprs.pdf · GPRS Data Over Cellular Networks Ilenia Tinnirello Architecture and Components. Data over cellular

A Paradigm ShiftA Paradigm Shift

“For the operator, the big step from an overall business model perspective is going from GSM (voice) to GPRS, not from 2G GPRS to 3G”

� Business model

� Position in value chain

Ilenia Tinnirello

� Position in value chain

� Services

� Customer support

UMTS adds capabilities

Page 5: Lecture 11 GPRS Data Over Cellular Networks - unipa.itilenia/course/11-gprs.pdf · GPRS Data Over Cellular Networks Ilenia Tinnirello Architecture and Components. Data over cellular

GPRS vs. GSMGPRS vs. GSM

GSM circuit switched GPRS

Network nodes (MSC) based on PSTN/ISDN switch

Network nodes (GSN) based on IP routers

Interface towards external PSTN/ISDN networks by means of GMSC

Interface towards wired packet networks (IP, X.25) by means of GGSN

BSS to manage radio resource towards MSs

BSS extended with Packet Control Units

Inter-MSC links based on PCM PDH Inter-GSN packet transport based on

Ilenia Tinnirello

Inter-MSC links based on PCM PDH and/or SDH

Inter-GSN packet transport based on ATM + protocols

FDMA/TDMA with 8 slots; each Traffic Channel (TCH) occupies a single slot all the call long

New logical and control channels occupying up to 8 slots; slots assigned only when required

Coverage area divided into Location Areas

More precise localization: each Location Area is divided into Routing Areas

Users addressed by means of phone numbers (MSISDN)

Terminals addressed by means of IP addresses (either public or private)

Page 6: Lecture 11 GPRS Data Over Cellular Networks - unipa.itilenia/course/11-gprs.pdf · GPRS Data Over Cellular Networks Ilenia Tinnirello Architecture and Components. Data over cellular

GPRS ArchitectureGPRS Architecture

BSS

Channel Codec Unit(CCU)

• Channel Coding• Radio Channel

Measurements

VisitedMSC /VLR

GatewayMSC /VLR

HLR

PSTN

HLR Extension• GPRS subscriber data• routing information

Ilenia Tinnirello

PCU

BSS

ExternalData

Network

MSC /VLR MSC /VLR

SGSN GGSN

Packet Control Unit (PCU)• channel access control• radio channel management• data packet segmentation

and re-assembly

Serving GPRS Support Node (SGSN)• functions comparable to MSC/VLRGateway GPRS Support Node (GGSN)• functions comparable to GMSC

Page 7: Lecture 11 GPRS Data Over Cellular Networks - unipa.itilenia/course/11-gprs.pdf · GPRS Data Over Cellular Networks Ilenia Tinnirello Architecture and Components. Data over cellular

Serving GPRS Support Node (SGSN)Serving GPRS Support Node (SGSN)

� Basic functionalities

� Authentication and encryption

� Admission control

� Mobility management

� It includes a database, called Location Register (LR) equivalent to VLR, with localization information (cell, VLR for phone calls, IMSI, IP address) for the users in the SGSN area

Ilenia Tinnirello

IMSI, IP address) for the users in the SGSN area

� Receiving and delivering the packets

� Routing and relay to next SGSN hop; LLC logical connection to MSs

� Address translation and mapping

� Encapsulation and tunneling� Encapsulation for delivery within the GPRS core network (i.e. between

SGSN nodes)

Page 8: Lecture 11 GPRS Data Over Cellular Networks - unipa.itilenia/course/11-gprs.pdf · GPRS Data Over Cellular Networks Ilenia Tinnirello Architecture and Components. Data over cellular

Gateway GPRS Support Node (GGSN)Gateway GPRS Support Node (GGSN)

�Basic functionalities

�Gateway to extern Packet Data Networks�Filtering to/from extern PDNs for unauthorized or unrequired

messages

�Access functionality �Memorizes in its LR SGSN addresses, service profiles and

PDP contexts for ready or standby MSs�Creates PDP contexts describing requirements of connections

Ilenia Tinnirello

�Creates PDP contexts describing requirements of connections to external networks, assigning dynamic IP addresses

�Subscriber addresses publish

�Routing�Packet Data Units tunneling to the SGSN currently serving the

MS; encapsulation/decapsulation at the GPRS domain border�Normal router to external networks, implementing OSPF, RIP,

BGP, Ipsec, etc.

�Charging data

Page 9: Lecture 11 GPRS Data Over Cellular Networks - unipa.itilenia/course/11-gprs.pdf · GPRS Data Over Cellular Networks Ilenia Tinnirello Architecture and Components. Data over cellular

Packet Control Unit (PCU)Packet Control Unit (PCU)

�Software update for BSS

�Supporting dynamic channel assignment between GSM/GPRS�Physical channel scheduling

�Segmentation/reassembling of LCC frames into MAC blocks

�Error detection and correction�ARQ, buffering, retransmissions

Ilenia Tinnirello

�Channel access control�channel request, channel access, power control, congestion

control, etc.

�Usually added to BSC and talking with Channel Coded Unit (CCU) added on the BTS

Page 10: Lecture 11 GPRS Data Over Cellular Networks - unipa.itilenia/course/11-gprs.pdf · GPRS Data Over Cellular Networks Ilenia Tinnirello Architecture and Components. Data over cellular

OtherOther elementselements

BG (Border Gateway)�(Not defined within GPRS)

�Routes packets from SGSN/GGSN of one operator to a SGSN/GGSN of an other operator

�Provides protection against intruders from external networks

DNS (Domain Name Server) �Translates addresses from ggsn1.oper1.fi -format to 123.45.67.89 format

(i.e. as used in Internet)

Ilenia Tinnirello

(i.e. as used in Internet)

Charging Gateway�Collects charging information from SGSNs and GGSNs

HLR�Enhancements of GSM HLR for containing GPRS data and interfacing to

SGSN

MSC/VLR, SMS Service Center�new interfaces for GPRS nodes

Page 11: Lecture 11 GPRS Data Over Cellular Networks - unipa.itilenia/course/11-gprs.pdf · GPRS Data Over Cellular Networks Ilenia Tinnirello Architecture and Components. Data over cellular

MSC/VLR HLR

SMS-GMSCSMS-IWMSC

GdGs

CE

D

Signalling & Data Transfer

Signalling

GPRS InterfacesGPRS Interfaces

Ilenia Tinnirello

other PLMN

EIR

SGSN

GGSN

GGSN

SGSN

PDN TEMS BSSGiGn

Gn Gp

GbUm

GcGrGs

Gf

A

Page 12: Lecture 11 GPRS Data Over Cellular Networks - unipa.itilenia/course/11-gprs.pdf · GPRS Data Over Cellular Networks Ilenia Tinnirello Architecture and Components. Data over cellular

GPRS GPRS Interfaces (2)Interfaces (2)

� Gb: between BSC and SGSN, for transparent PDU transfers;

� Gr: between SGSN and HLR, for Registration, Authentication and Localization

� Gs: between SGSN and MSC, for combined mobility management

Gn: between different SGSN nodes

Frame Relay

Signaling

Link at

64Kbps,

over E1

Ilenia Tinnirello

� Gn: between different SGSN nodes belonging to the same PLMN.

� e.g. UniGate for TIM network

� Gi: between GGSN and extern IP networks

� Gp: between GSN of different operators

IP-based

Page 13: Lecture 11 GPRS Data Over Cellular Networks - unipa.itilenia/course/11-gprs.pdf · GPRS Data Over Cellular Networks Ilenia Tinnirello Architecture and Components. Data over cellular

TerminalsTerminals

� Class A

� MS supports simultaneous operation of GPRS and GSM services

� Class B

� MS able to register for both GPRS & GSM services simultaneously. It can only use one of the two services at a given time

Ilenia Tinnirello

given time � Class C

� MS can attach for either GPRS or GSM services

Page 14: Lecture 11 GPRS Data Over Cellular Networks - unipa.itilenia/course/11-gprs.pdf · GPRS Data Over Cellular Networks Ilenia Tinnirello Architecture and Components. Data over cellular

GPRS Protocol StackGPRS Protocol Stack

SNDCP

IP / X.25

Application & end2end

IP / X.25

GTP

LLC

SNDCP GTP

UDP/ UDP/ L2

IP / X.25

L2

Ilenia Tinnirello

L1GSM RF

Um GnGb

MAC

RLC

LLC

L1

L2

LLC

GSM RF

FrameRelay

MAC

RLC BSSGP

L1bis

BSSGPFrameRelay

LLC

L1bis L1

L2

IP

MS BSS (PCU) SGSN GGSN Gi

IP

UDP/TCP

UDP/TCP

L2

L1

L2

External Router

Page 15: Lecture 11 GPRS Data Over Cellular Networks - unipa.itilenia/course/11-gprs.pdf · GPRS Data Over Cellular Networks Ilenia Tinnirello Architecture and Components. Data over cellular

GPRS ProtocolsGPRS Protocols

� IP/X.25: end-to-end network protocol; X.25 defined in the standard but practically not used

� GTP: GPRS Tunnelling protocol, for encapsulating data and signals from GGSN to SGSN

� IP: routing in the GPRS backbone; L1 and L2 operator-dependent

� LLC: logical data link between MS annd SGSN (ciphering, QoS)

Ilenia Tinnirello

� SNDCP: Sub-network Dependent Convergence Protocol, for managing segmentation, compression, multiplexing, in order to adapt applications to LLC layer

� BSSGP: for transferring frames and QoS information from BSS and SGSN

� GSM RF: physical layer providing physical channels to RLC/MAC, responsible of modulation/demodulation, interleaving, power control, channel monitoring.

Page 16: Lecture 11 GPRS Data Over Cellular Networks - unipa.itilenia/course/11-gprs.pdf · GPRS Data Over Cellular Networks Ilenia Tinnirello Architecture and Components. Data over cellular

Services

Ilenia Tinnirello

Services

Page 17: Lecture 11 GPRS Data Over Cellular Networks - unipa.itilenia/course/11-gprs.pdf · GPRS Data Over Cellular Networks Ilenia Tinnirello Architecture and Components. Data over cellular

ServicesServices

�Bearer services (data channels)

�PTP(Point-To-Point)�transfer data packets between two users�connectionless mode (e.g., for IP)�connection-oriented mode (e.g., for X.25)

�PTM(Point-To-Multi-point)�transfer data packets from one user to multiple users�multicast service: data packets are broadcast in a certain

Ilenia Tinnirello

�multicast service: data packets are broadcast in a certain geographical area

�Supplementary services� SMS’s, call forwarding on unconditional, unreachable or closed user group

� Access to data bases, messaging services and tele-action services (credit card)

Page 18: Lecture 11 GPRS Data Over Cellular Networks - unipa.itilenia/course/11-gprs.pdf · GPRS Data Over Cellular Networks Ilenia Tinnirello Architecture and Components. Data over cellular

GPRS GPRS QoSQoS

� GPRS allows Quality of Service (QOS) profile based on:

� Service precedence: the priority of service in relation to another

� Reliability: the transmission characteristics required by an application

� Delay parameters :define maximum values for mean delay and 95% delay

� Throughput: the maximum/peak bit rate and mean bit rate

� Using the previously mentioned classes, the QOS profiles can be negotiated for each session based on

Ilenia Tinnirello

profiles can be negotiated for each session based on QOS demand and current available resources

� The billing is then based on actual transmitted data volume, type of service and chosen profile

Page 19: Lecture 11 GPRS Data Over Cellular Networks - unipa.itilenia/course/11-gprs.pdf · GPRS Data Over Cellular Networks Ilenia Tinnirello Architecture and Components. Data over cellular

GPRS GPRS QoSQoS

� Bearer Service For GSM – Wireless extension to packet data networks

� An “Always ON” service with Radio Resources (time-slots) consumed on Demand

� Radio Resources shared between GSM & GPRS

Ilenia Tinnirello

� Radio Resources shared between GSM & GPRS� Typically, Networks Operators give strict priority to voice traffic (GSM).

� For GPRS, time-slots (PDCHs) are generally dynamically allocated.

� Reliable in-order delivery using RLC’s (radio link control) reliable mode. Very Effective.

Page 20: Lecture 11 GPRS Data Over Cellular Networks - unipa.itilenia/course/11-gprs.pdf · GPRS Data Over Cellular Networks Ilenia Tinnirello Architecture and Components. Data over cellular

Radio Interface

Ilenia Tinnirello

Page 21: Lecture 11 GPRS Data Over Cellular Networks - unipa.itilenia/course/11-gprs.pdf · GPRS Data Over Cellular Networks Ilenia Tinnirello Architecture and Components. Data over cellular

GSM Logical ChannelsGSM Logical Channels

BCCH

FCCH Frequency correction

Signallingand Control CCCH

SCH Frame synchronisation + BSIC

PCH Paging mobiles

RACH Requesting dedicated channel

Broadcast of cell information,e.g. channel combination

BCH

DL

UP

DL

DL

Ilenia Tinnirello

Traffic

DCCH

AGCH Allocating dedicated/traffic CH

SDCCH Signalling between MS and BTSe.g. Authentication, SMS, LUP

SACCH Measurements, TA, PC, ...

FACCH Extra signalling within 26 TDMA Multiframe

TCH/F full rate traffic channel

TCH/H half rate traffic channel

DL

DL & UP

DL & UP

Page 22: Lecture 11 GPRS Data Over Cellular Networks - unipa.itilenia/course/11-gprs.pdf · GPRS Data Over Cellular Networks Ilenia Tinnirello Architecture and Components. Data over cellular

Additional GPRS Logical ChannelsAdditional GPRS Logical Channels

PBCCH

Signalling PCCCH

PPCH

PRACH MS initiates uplink transfer

Broadcast of packet dataspecific information

DL

UP

DL Paging MSs for packet dataand circuit switched services

Ilenia Tinnirello

and Control

PacketTraffic Channels

PCCCH

PAGCH Resource assignment to an MS

Notifying PtM Packet Transfer

PDTCH Packet Data Transfer; ( multislot )

PACCH

DL

DL & UPPTCH

Signalling: resource allocation,acknowledgements, PC

PNCH DL

PTCCH For calculating and transmitting TA .

Page 23: Lecture 11 GPRS Data Over Cellular Networks - unipa.itilenia/course/11-gprs.pdf · GPRS Data Over Cellular Networks Ilenia Tinnirello Architecture and Components. Data over cellular

Physical LayerPhysical Layer

DATAPHNetwork Layer PDU

FH FCS

SNDCP LayerPDU INFO INFO

INFO

Compression, Segmentation, Ciphering

LLC LayerPDU

Ilenia Tinnirello

FH FCSINFOPDU

INFO INFO INFOBH BH BHBCSBCS BCSRLC/MACLayer

GSM Burst GSM Burst GSM Burst GSM BurstCoding, Interleaving

GSM RFLayer

PH: Packet Header; FH: Frame Header; BH: Block HeaderFCS: Frame Check Sequence; BCS: Block Check Sequence

Page 24: Lecture 11 GPRS Data Over Cellular Networks - unipa.itilenia/course/11-gprs.pdf · GPRS Data Over Cellular Networks Ilenia Tinnirello Architecture and Components. Data over cellular

GP8.25

GSM Normal BurstGSM Normal Burst

� Symmetric structure

� DATA: 2 x 57 data bits

� 114 data bits per burst

TB3

DATA57

S1

S1

Trainingsequence

26

Data57

TB3

148 bit burst

156.25 bit (15/26 ms = 0.577 ms)

Ilenia Tinnirello

� 114 data bits per burst

� “gross” bits (error-protected; channel coded)

� S: 2 x 1 stealing bit

� Also called stealing flags, toggle bits

� Needed to grab slot for FACCH (other signalling possible)

� All channels are transmitted using normal bursts, except the PRACH and PTCCH/U where the mobile transmits random access bursts

Page 25: Lecture 11 GPRS Data Over Cellular Networks - unipa.itilenia/course/11-gprs.pdf · GPRS Data Over Cellular Networks Ilenia Tinnirello Architecture and Components. Data over cellular

GPRS Physical ChannelGPRS Physical Channel

� 1 time slot @ a given frequency under the control of GPRS is called Packet Data Channel (PDCH)

� It carries both data and control information

� The number of PDCH channels varies on demand

� 1 PDCH is organized in a multi-frame of 52 frames

� 3 blocks of 4 slots plus a final idle slot (for measurements and PTCCH), repeated 4 times

Ilenia Tinnirello

� Optional master PDCH for data channel broadcast information and common channels (otherwise, on GSM BCCH)

B0 B1 B2 B3 B4 B5 B6 B7 B8 B9 B10 B11

52 TDMA Frame = PDCH Multiframe

Page 26: Lecture 11 GPRS Data Over Cellular Networks - unipa.itilenia/course/11-gprs.pdf · GPRS Data Over Cellular Networks Ilenia Tinnirello Architecture and Components. Data over cellular

Mapping betweenMapping between

logical and physical channelslogical and physical channels

� Three possible combinations:

� PBCCH+PCCCH+PDTCH+PACCH+PTCCH or

� PCCCH (e.g. PRACH)+PDTCH+PACCH+PTCCH or

� PDTCH+PACCH+PTCCH (additional space for data only)

Ilenia Tinnirello

B1B0 B3B2 B5B4 B7B6 B9B8 B10 B11PRACH PRACH PRACH PRACH

0 4 8 13 2117 26 30 34 39 43 47

B1B0 B3B2 B5B4 B7B6 B9B8 B10 B11PBCCH PAGCH

0 4 8 13 2117 26 30 34 39 43 47

UP

DOWN

Page 27: Lecture 11 GPRS Data Over Cellular Networks - unipa.itilenia/course/11-gprs.pdf · GPRS Data Over Cellular Networks Ilenia Tinnirello Architecture and Components. Data over cellular

Radio Block StructureRadio Block Structure

MAC Header1 byte

RLC Header2/3 byte

DATA or SIGNALLING BCSBLOCK Header

Ilenia Tinnirello

(USF)3 bit

Uplink State Flag: assigned to each mobile within a PDCH, it

is used in downlink for allocating the next radio block;only 7values for MS; 111 used for PRACH

Payload Type:for distinguishing data or signalling

Countdown value:used only in uplink for indicating the

remaining number of data blocks within a temporaryblock flow (TBF)

PT2 bit

(CV)4 bit

TFI5 bit

Temporary Flow Identity:to identity the TBF the radio block belong

toBlock Sequence Number:

only in downlink for distinguishing eachdata block within a block flowPower Reduction:

only in downlink for indicating powerreduction

(BSN)7 bit …

(PR)2 bit

Page 28: Lecture 11 GPRS Data Over Cellular Networks - unipa.itilenia/course/11-gprs.pdf · GPRS Data Over Cellular Networks Ilenia Tinnirello Architecture and Components. Data over cellular

Radio Block Coding and BurstingRadio Block Coding and Bursting

Radio BlockBuilding

RLC Header Data BCS

half rateconvolutionary coding(except CS-4)

ChannelCoding

MAC HeaderUSF

Ilenia Tinnirello

Puncturing (CS-1, CS-2)

Coding

Inter-leaving

57 Bit 57 Bit 57 Bit 57 Bit 57 Bit 57 Bit57 Bit57 Bit

456 Bit

One Radio Block (gross) = 4 normal bursts

Page 29: Lecture 11 GPRS Data Over Cellular Networks - unipa.itilenia/course/11-gprs.pdf · GPRS Data Over Cellular Networks Ilenia Tinnirello Architecture and Components. Data over cellular

Coding SchemesCoding Schemes

CodingScheme

Code Rate

Radio Blockexcl. USF and BCS

Number ofBits when

coded

Punct. bits

Data ratein kbps

CS-1 1/2 181 456 0 9.05

≈2/3 268 588 132 13.4CS-2

Net ratein kbps

8

12

BCS bits

40

16

USF bits coded

3

6

Tailbits

4

4

Ilenia Tinnirello

≈3/4 312 676 220 15.6CS-3

1 428 456 --- 21.4CS-4

14.4

20

16

16

6

12

4

0

Page 30: Lecture 11 GPRS Data Over Cellular Networks - unipa.itilenia/course/11-gprs.pdf · GPRS Data Over Cellular Networks Ilenia Tinnirello Architecture and Components. Data over cellular

Radio Block AllocationRadio Block Allocation

�On each PDCH, blocks are not statically allocated as in the case of GSM TCH

�When a MS requires a PDCH, it receives (in the PAGCH) one or more physical channel (TS@f) + an identifier (USF) for polling in each physical channel

Ilenia Tinnirello

each physical channel

�Channel allocations are managed by the network!

�Dynamic allocations can be performed either for one or four

consecutive radio blocks

�Uplink and downlink channels are allocated separately

Page 31: Lecture 11 GPRS Data Over Cellular Networks - unipa.itilenia/course/11-gprs.pdf · GPRS Data Over Cellular Networks Ilenia Tinnirello Architecture and Components. Data over cellular

Block Allocation ExampleBlock Allocation Example

NETWORK MS1[USF=1]

MS2[USF=2]

B0

B1

B2

B3

B1

B2

B3

PDCH/D 0 PDCH/U 0

Packet ACK/NACK (MS1)

Packet Channel Request (MS2)

[USF 1]; Data (MS1)

MS1[USF Free]; Data (MS1)

Free[USF 1]; Data (MS1)

MS1[USF 1] Packet Up Assignment (PDCH0, USF 2, MS2)

B0

Ilenia Tinnirello

B3

B4

B5

B6

B11 …

B3

B4

B5

B6

B7

B0

Data (MS1)

Data (MS1)

Data (MS2)

Final Packet ACK/NACK (MS1)

Data (MS2)

MS1[USF 1] Packet Up Assignment (PDCH0, USF 2, MS2)

MS1[USF 2]; Packet ACK/NACK (MS1)

MS2[USF 1]; Data (MS1, last block)

MS1[USF Free]; …

Free[USF 2] Packet ACK/NACK (MS2)

MS2

Page 32: Lecture 11 GPRS Data Over Cellular Networks - unipa.itilenia/course/11-gprs.pdf · GPRS Data Over Cellular Networks Ilenia Tinnirello Architecture and Components. Data over cellular

Dynamic Block AllocationDynamic Block Allocation

B0 B1USF1

B2USF2

B3USF8

B4USF8

B5USF8

B6USF8

B7USF3

B8USF1

B9USF8

B10USF8

B11USF8

B0 B2MS1

B2MS2

B4MS2

B5MS2

B6MS2

B7MS3

B8MS1

B9MS1

B10MS1

B11MS1

B1

Ilenia Tinnirello

� When an MS reads its USF identifier on the downlink channel, it either transmits one or four radio blocks on the downlink on

� It indicates in each block the number of remaining blocks

� the network will continue to assign radio blocks to the mobile until the mobile indicates that it has no more blocks to transmit.

Page 33: Lecture 11 GPRS Data Over Cellular Networks - unipa.itilenia/course/11-gprs.pdf · GPRS Data Over Cellular Networks Ilenia Tinnirello Architecture and Components. Data over cellular

Fixed Block AllocationFixed Block Allocation

� This resource assignment method specified in the PAGCH the PDCH (i.e. TS@f), a bit map of 1 to 127 bits for each allocated blocks, and a start frame number.

Start frame:5TS5, f0Bit map: 1100111

4

3

2

1

0

Ilenia Tinnirello

B0 B2 B2 B4 B5 B6 B7 B8 B9 B10 B11B15

4

6

7

Page 34: Lecture 11 GPRS Data Over Cellular Networks - unipa.itilenia/course/11-gprs.pdf · GPRS Data Over Cellular Networks Ilenia Tinnirello Architecture and Components. Data over cellular

Uplink/Downlink Data TransferUplink/Downlink Data Transfer

Ilenia Tinnirello

Page 35: Lecture 11 GPRS Data Over Cellular Networks - unipa.itilenia/course/11-gprs.pdf · GPRS Data Over Cellular Networks Ilenia Tinnirello Architecture and Components. Data over cellular

GPRS Timing AdvanceGPRS Timing Advance

� In packet-switched mode, transmission is not continuous

� The interval between two radio blocks can be significant and previous

estimated delays could originate inter-timeslot interference

� New solution for correct burst timing:

� Initial timing advance, similar to circuit-switching, by measuring the initial

propagation delay via PRACH/RACH reception

Ilenia Tinnirello

propagation delay via PRACH/RACH reception

� Continuous timing advance, carried out on the PTCCH logical channels

�2 PTCCH channels in each 52-frame multiframe, grouped into 8 multiframes to have 16 PTCCH channels

�Each MS receives a Timing Advance Index (TAI) from 0 to 15 in the assignment messate

� In each PTCCH of its index, the MS will transmit an access burst for helping the BS to track the mobile

�The new TA value is returned to the mobile in the downlink PTCCH message, which includes up to 16 TA values.

Page 36: Lecture 11 GPRS Data Over Cellular Networks - unipa.itilenia/course/11-gprs.pdf · GPRS Data Over Cellular Networks Ilenia Tinnirello Architecture and Components. Data over cellular

Timing Advance Signaling ExampleTiming Advance Signaling Example

PTCCHUP DOWNMS1, TAI 2

2: Access Burst by MS1 3

10

Ilenia Tinnirello

6 7

54

… PTCCH message 2, with 16 TA values and 4 updates from message 1

Page 37: Lecture 11 GPRS Data Over Cellular Networks - unipa.itilenia/course/11-gprs.pdf · GPRS Data Over Cellular Networks Ilenia Tinnirello Architecture and Components. Data over cellular

Mobility Management

Ilenia Tinnirello

Page 38: Lecture 11 GPRS Data Over Cellular Networks - unipa.itilenia/course/11-gprs.pdf · GPRS Data Over Cellular Networks Ilenia Tinnirello Architecture and Components. Data over cellular

Regional Organization of GPRSRegional Organization of GPRS

Ilenia Tinnirello

MCCMobile Country

Code

MNCMobile Network

Code

LACLocation Area

Code

CICell

Identity

RACRouteing

Area Code

LAILocal Area Identifier

CGICell Global

Identity

RAIRouting

Area Identifier=

=

Page 39: Lecture 11 GPRS Data Over Cellular Networks - unipa.itilenia/course/11-gprs.pdf · GPRS Data Over Cellular Networks Ilenia Tinnirello Architecture and Components. Data over cellular

Why smaller Routing Areas?Why smaller Routing Areas?

� Packet data transfer is inherently discontinuous: paging is in principle required for each new data flow!

� Tradeoff between location tracking frequency and signaling overhead

� if SGSN knows the MS cell, it does not require paging (reducing delays) but location updates are required from each cell change: convenient during data transfers.

�A routing area including more cells limits the signaling overhead and limits the paging to a limited area: convenient when the MS is not involved in data transfer

Ilenia Tinnirello

transfer

� For optimization purposes, location management is differentiated according to the MS different states

� Idle: MS is not reachable and paging is not possible.

� Standby: MS is localized in a RAI, stored at the SGSN; routing area updates are

required periodically or upon RA changes. MS can be paged and receive

signaling data, but not packet data.

� Ready: MS is localized within a given cell, defined with the Cell Global Identity

(CGI); paging is not required an packet data sessions can be activated.

Page 40: Lecture 11 GPRS Data Over Cellular Networks - unipa.itilenia/course/11-gprs.pdf · GPRS Data Over Cellular Networks Ilenia Tinnirello Architecture and Components. Data over cellular

IDLE READY STANDBY

STANDBY timerexpired

PDU transmissionGPRS Detach

MM State TransitionsMM State Transitions

Ilenia Tinnirello

GPRS Attach:It includes authentication, location update and user profile entry

READY timer expired,

Force to STANDBY,abnormal RLC condition

Attach and routing area and/or location area updates are very similar to GSM ones!

Page 41: Lecture 11 GPRS Data Over Cellular Networks - unipa.itilenia/course/11-gprs.pdf · GPRS Data Over Cellular Networks Ilenia Tinnirello Architecture and Components. Data over cellular

MSNewSGSN

OldSGSN

HLREIR

GPRS Attach ExampleGPRS Attach Example

attach request

[P-TMSI, RAI] identification request

[P-TMSI, RAI]identification response

[IMSI, Triplette]authentication

IMEI Check IMEI Check

Update Location

[SGSN addr., IMSI]

Ilenia Tinnirello

[SGSN addr., IMSI] Cancel Location [IMSI]

Cancel Location ACK [IMSI]

Insert Subscriber Data [IMSI, User contract data]

Insert Subscriber Data ACK [IMSI]

Update Location ACK [IMSI]

attach complete [P-TMSI]

attach accept [P-TMSI]

It can be combined with a IMSI attach, in which the SGSN also required a LU to MSC/VLR

Page 42: Lecture 11 GPRS Data Over Cellular Networks - unipa.itilenia/course/11-gprs.pdf · GPRS Data Over Cellular Networks Ilenia Tinnirello Architecture and Components. Data over cellular

MSNewSGSN

OldSGSN

HLRGGSN

RA Update ExampleRA Update Example

RA update request

[P-TMSI, RAI] context request

[P-TMSI, RAI, TLLI, SGSN addr.]context response

[Mobility and Session context]Auth, Cipher.

context ack

Buffered PDU Forwarding

Ilenia Tinnirello

Session Context Response [TID]

Session Context Request [addr. SGSN,, TID, QoS]

Update Location [addrs. SGSN, IMSI]

Cancel Location [IMSI]

Cancel Location ACK [IMSI]

Insert Subscriber Data [IMSI, User contract data]

Insert Subscriber Data ACK [IMSI]

Update Location ACK [IMSI]

RA accept and ACK [P-TMSI]

Page 43: Lecture 11 GPRS Data Over Cellular Networks - unipa.itilenia/course/11-gprs.pdf · GPRS Data Over Cellular Networks Ilenia Tinnirello Architecture and Components. Data over cellular

Session Management

Ilenia Tinnirello

Page 44: Lecture 11 GPRS Data Over Cellular Networks - unipa.itilenia/course/11-gprs.pdf · GPRS Data Over Cellular Networks Ilenia Tinnirello Architecture and Components. Data over cellular

Packet Data Protocol (PDP)Packet Data Protocol (PDP)

� Each user subscribes a given number of IP services, identified by means of an Access Point Name.

� e.g. uni.tim.it for Internet&Email; mms.tim.it for MMS, etc.

� To access to these services, it is necessary to activate a session, called packet data context.

� IP address acquisition, QoS negotiation

Ilenia Tinnirello

INACTIVE• no routing and

mapping of PDPPDUs possible

• no data transmission

ACTIVE• routing and

mapping of PDP PDUs possible

• location updatetakes place

Activate PDP Context

Deactivate PDP Context

MM state change to IDLE

Page 45: Lecture 11 GPRS Data Over Cellular Networks - unipa.itilenia/course/11-gprs.pdf · GPRS Data Over Cellular Networks Ilenia Tinnirello Architecture and Components. Data over cellular

IP address allocationIP address allocation

� Static IP address, acquired with subscription

� PDP context activated by MS or by GPRS network when IP packets

destinated to such an IP are received. Not common today, but possible

with IPv6

� Dynamic IP address

� Given by home PLMN or visited PLMN

� GGSN includes DHCP function for address assignment

Ilenia Tinnirello

� GGSN includes DHCP function for address assignment

� Only MS can activate a PDP context

� Private IP address

� Valid within PLMN domain, if GGSN implements NAT functions

Page 46: Lecture 11 GPRS Data Over Cellular Networks - unipa.itilenia/course/11-gprs.pdf · GPRS Data Over Cellular Networks Ilenia Tinnirello Architecture and Components. Data over cellular

MSSGSN GGSN

ISP

PDP activation ExamplePDP activation Example

Activata PDP request

[NSAPI, PDP-type, PDP addr, APN, QoS]

Create PDP request

1. The SGSN assigns a GW IP according to the APN

[IMSI, NSAPI, PDP-type, PDP addr, APN, QoS, TID]

2. The GGSN identifies the APN and allocates a new PDP context

Create PDP response

Ilenia Tinnirello

3. A tunnel between GGSN and SGSN is activated by means of the GTP protocol

Create PDP response

[TID, Address, TCP/UDP, RR]

Activata PDP request

[NSAPI, PDP-type, PDP addr, QoS]

Page 47: Lecture 11 GPRS Data Over Cellular Networks - unipa.itilenia/course/11-gprs.pdf · GPRS Data Over Cellular Networks Ilenia Tinnirello Architecture and Components. Data over cellular

PDP Context ExamplePDP Context Example

Ilenia Tinnirello

Page 48: Lecture 11 GPRS Data Over Cellular Networks - unipa.itilenia/course/11-gprs.pdf · GPRS Data Over Cellular Networks Ilenia Tinnirello Architecture and Components. Data over cellular

Routing PrincipleRouting Principle

MS SGSN GGSN Host

logical linktunnel Internet/

PDNPackt

IP datagram

GPRS Network IP Network

Ilenia Tinnirello

IP datagramIP datagram

Page 49: Lecture 11 GPRS Data Over Cellular Networks - unipa.itilenia/course/11-gprs.pdf · GPRS Data Over Cellular Networks Ilenia Tinnirello Architecture and Components. Data over cellular

GPRS identities (1)GPRS identities (1)

� IMSI (international mobile subscriber identity)

associated with a SIM card, is the same for GPRS and GSM service. Even a SIM for a GPRS-only subscription have an IMSI.

� P-TMSI (packet temporary mobile subscriber identity)

similar to TMSI, but assigned by the SGSN (rather than the VLR), when the MS perform a GPRS attach procedure

� TLLI (temporary logical link identifier)

Ilenia Tinnirello

identity used during a data session to identify the MS at the RLC/MAC layer. It can be local (valid within a routing area), foreign (if allocated in a different routing area), random (when the MS does not have a valid P-TMSI)

� TBF (temporary block flow)

identity of the physical connection between MS and BSS for the duration of a given packet data transfer. Each TBF corresponds to the fragmentation of an LLC frame..

Page 50: Lecture 11 GPRS Data Over Cellular Networks - unipa.itilenia/course/11-gprs.pdf · GPRS Data Over Cellular Networks Ilenia Tinnirello Architecture and Components. Data over cellular

GPRS identities (2)GPRS identities (2)

� TFI (temporary flow identifier)

each TBF is addressed by a TFI, allocated for both uplink and downlink packet transfer. (values from 0 to 31)

� USF (uplink status flag)

used for polling and data block assignments. Multiple useds can be multiplexed on the same timeslot, transmitting only when the USF value indicates their turn.

� RAI (routing area identity)

Ilenia Tinnirello

� RAI (routing area identity)

a subset of the location area, similar to LAI. When a MS moves from a routing area to another, it performs a routing area update. A SGSN may control one or more routing areas. Therefore, RAI is required for routing the packets correctly.

� NSAPI (Network Layer Service Access Point Identifier)

application identifier in the range 0-15

Page 51: Lecture 11 GPRS Data Over Cellular Networks - unipa.itilenia/course/11-gprs.pdf · GPRS Data Over Cellular Networks Ilenia Tinnirello Architecture and Components. Data over cellular

The subscriber:• IMSI

(International Mobile Subscriber Identity)

• P-TMSI(Packet TMSI)

MCC MNC MSIN

PDP address(application)

SNDCP

(NSAPI)

Network layer ServiceAccess Point Identifier

GSN Number

Addressing and IdentificationAddressing and Identification

Ilenia Tinnirello

TLLITemporary LogicalLink Identity

SGSN

GGSN

PDPcontext

NSAPIidentifies

uniquelyidentifies

Logical LinkTID

TunnelIdentifier

(IMSI + NSAPI)

Access Point Name

HLR

GSN Number

GSNAddresses

= (IP addresses)