Protocol Technology · GPRS protocols CCSS7 IP (TCP/UDP) T R A U P C U BTS BTS . .. B S C MS SGSN...
Transcript of Protocol Technology · GPRS protocols CCSS7 IP (TCP/UDP) T R A U P C U BTS BTS . .. B S C MS SGSN...
![Page 1: Protocol Technology · GPRS protocols CCSS7 IP (TCP/UDP) T R A U P C U BTS BTS . .. B S C MS SGSN SGSN GGSN BG CG MSC VLR HLR PDN BG Other PLMN G s G r G c. Overview of GPRS networks](https://reader035.fdocuments.us/reader035/viewer/2022062505/5eade75dc815ca5725628c4c/html5/thumbnails/1.jpg)
Protocol Technology
GPRS
Gusztáv Adamis
BME TMIT
2016
![Page 2: Protocol Technology · GPRS protocols CCSS7 IP (TCP/UDP) T R A U P C U BTS BTS . .. B S C MS SGSN SGSN GGSN BG CG MSC VLR HLR PDN BG Other PLMN G s G r G c. Overview of GPRS networks](https://reader035.fdocuments.us/reader035/viewer/2022062505/5eade75dc815ca5725628c4c/html5/thumbnails/2.jpg)
GPRS Networks
GPRS – General Packet Radio Service
Extension to GSM networks – for packet switched data
transfer
Not only over GSM, but over UMTS
GPRS is a Service
GPRS Network – is a network, in which GPRS is
implemented
![Page 3: Protocol Technology · GPRS protocols CCSS7 IP (TCP/UDP) T R A U P C U BTS BTS . .. B S C MS SGSN SGSN GGSN BG CG MSC VLR HLR PDN BG Other PLMN G s G r G c. Overview of GPRS networks](https://reader035.fdocuments.us/reader035/viewer/2022062505/5eade75dc815ca5725628c4c/html5/thumbnails/3.jpg)
Structure of GPRS networks
A
T
R
A
U
P
C
U
BTS
BTS
.
.
.
B
S
C
MS
SGSN
SGSN
GGSN
BG
CG
MSC
VLR HLR
PDN
BG PLMN
G s G r
G c
T
R
A
U
P
C
U
BTS
BTS
.
.
.
B
S
C
MS
SGSN
SGSN
GGSN
BG
CG
MSC
VLR HLR
PDN
BG Other
PLMN
G s G r
G c
![Page 4: Protocol Technology · GPRS protocols CCSS7 IP (TCP/UDP) T R A U P C U BTS BTS . .. B S C MS SGSN SGSN GGSN BG CG MSC VLR HLR PDN BG Other PLMN G s G r G c. Overview of GPRS networks](https://reader035.fdocuments.us/reader035/viewer/2022062505/5eade75dc815ca5725628c4c/html5/thumbnails/4.jpg)
GPRS network elements
GGSN: Gateway GPRS Support Node
connection to a PDN (Packet Data Network – e.g. Internet)
SGSN: Serving GPRS Support Node
packet switch
ciphering – layer 2, NOM II – III – with different Kc
mobility management (~ VLR functionality)
to be able to report to HLR – Gr IF
optional Gs IF toward VLR
• not necessary to connect to GPRS and to GSM separately (NOM I)
CG: Charging Gateway
SGSN: charge of using GPRS
GGSN: charge of using „outer” PDN
BG: Border Gateway
connection to other GPRS PLMN
![Page 5: Protocol Technology · GPRS protocols CCSS7 IP (TCP/UDP) T R A U P C U BTS BTS . .. B S C MS SGSN SGSN GGSN BG CG MSC VLR HLR PDN BG Other PLMN G s G r G c. Overview of GPRS networks](https://reader035.fdocuments.us/reader035/viewer/2022062505/5eade75dc815ca5725628c4c/html5/thumbnails/5.jpg)
Extensions of GSM network elements, new IF-s
Extension to BSS
PCU – Packet Control Unit
Extension to HLR
stores which MSC and which SGSN serves a mobile station
stores the tel. number of SGSN – to be able to transmit
messages toward it through Gr IF (SCCP Global Title)
stores the IP address of SGSN IP – network should be able to
send data packets to it
CCSS7 interfaces
Gr (mandatory) SGSN-HLR: GPRS location update
Gc (optional) GGSN-HLR: to get routing info for MT GPRS data
transfer
Gs (optional) SGSN-VLR: NOM I common connection procedure
(GPRS/IMSI attach)
![Page 6: Protocol Technology · GPRS protocols CCSS7 IP (TCP/UDP) T R A U P C U BTS BTS . .. B S C MS SGSN SGSN GGSN BG CG MSC VLR HLR PDN BG Other PLMN G s G r G c. Overview of GPRS networks](https://reader035.fdocuments.us/reader035/viewer/2022062505/5eade75dc815ca5725628c4c/html5/thumbnails/6.jpg)
GPRS protocols
CCSS7
IP (TCP/UDP)
T
R
A
U
P
C
U
BTS
BTS
.
.
.
B
S
C
MS
SGSN
SGSN
GGSN
BG
CG
MSC
VLR HLR
PDN
BG Other
PLMN
G s G r
G c
T
R
A
U
P
C
U
BTS
BTS
.
.
.
B
S
C
MS
SGSN
SGSN
GGSN
BG
CG
MSC
VLR HLR
PDN
BG PLMN
G s G r
G c
![Page 7: Protocol Technology · GPRS protocols CCSS7 IP (TCP/UDP) T R A U P C U BTS BTS . .. B S C MS SGSN SGSN GGSN BG CG MSC VLR HLR PDN BG Other PLMN G s G r G c. Overview of GPRS networks](https://reader035.fdocuments.us/reader035/viewer/2022062505/5eade75dc815ca5725628c4c/html5/thumbnails/7.jpg)
Overview of GPRS networks
![Page 8: Protocol Technology · GPRS protocols CCSS7 IP (TCP/UDP) T R A U P C U BTS BTS . .. B S C MS SGSN SGSN GGSN BG CG MSC VLR HLR PDN BG Other PLMN G s G r G c. Overview of GPRS networks](https://reader035.fdocuments.us/reader035/viewer/2022062505/5eade75dc815ca5725628c4c/html5/thumbnails/8.jpg)
APN – Access Point Name
Network + operator identifier code
Used to choose the GGSN toward the destination data
network
Stored in HLR in user profile
Transmitted to SGSN during a „GPRS Location
Update” (similarly, how the user profile was
transmitted to MSC/VLR in GSM)
May be fixed or elective – depending on subscription
www.t-mobile.hu
internet.t-mobile
internet.mnc030.mcc216.gprs
![Page 9: Protocol Technology · GPRS protocols CCSS7 IP (TCP/UDP) T R A U P C U BTS BTS . .. B S C MS SGSN SGSN GGSN BG CG MSC VLR HLR PDN BG Other PLMN G s G r G c. Overview of GPRS networks](https://reader035.fdocuments.us/reader035/viewer/2022062505/5eade75dc815ca5725628c4c/html5/thumbnails/9.jpg)
GPRS mobile stations
Class A
can handle GSM/GPRS fully in parallel
can accept a call attempt even if there is an ongoing of the „other
type”
Class B
can monitor the GSM/GPRS call attempts in parallel
but only if there is NO ongoing connection
ongoing GPRS connection: GSM call can be indicated – user
can decide
ongoing GSM connection: GPRS call can not be indicated
Class C
can connect to GSM OR GPRS network
if to GPRS: not necessary to be able to receive even an SMS
every GSM-only MS: Class C
![Page 10: Protocol Technology · GPRS protocols CCSS7 IP (TCP/UDP) T R A U P C U BTS BTS . .. B S C MS SGSN SGSN GGSN BG CG MSC VLR HLR PDN BG Other PLMN G s G r G c. Overview of GPRS networks](https://reader035.fdocuments.us/reader035/viewer/2022062505/5eade75dc815ca5725628c4c/html5/thumbnails/10.jpg)
Network Operation Modes
Is there an IF between SGSN –
VLR (Gs)
At radio IF common or
separated GSM/GPRS Paging
channel
PCH – Paging Channel
PPCH – Packet Paging
Channel
NOM I
NOM II
NOM III
T
R
A
U
P
C
U
BTS
BTS
.
.
.
B
S
C
MS
SGSN
SGSN
GGSN
BG
CG
MSC
VLR HLR
PDN
BG Other
PLMN
G s G r
G c
T
R
A
U
P
C
U
BTS
BTS
.
.
.
B
S
C
MS
SGSN
SGSN
GGSN
BG
CG
MSC
VLR HLR
PDN
BG PLMN
G s G r
G c
![Page 11: Protocol Technology · GPRS protocols CCSS7 IP (TCP/UDP) T R A U P C U BTS BTS . .. B S C MS SGSN SGSN GGSN BG CG MSC VLR HLR PDN BG Other PLMN G s G r G c. Overview of GPRS networks](https://reader035.fdocuments.us/reader035/viewer/2022062505/5eade75dc815ca5725628c4c/html5/thumbnails/11.jpg)
NOM I If between SGSN – VLR Gs IF is established
this MUST be used
At switching on/off: not necessary to attach to GSM (IMSI
Attach/IMSI Detach) and GPRS (GPRS Attach/GPRS Detach)
separately,
only to GPRS, SGSN can inform VLR
During movement not necessary to inform both networks about
location change
MT (voice) call can be indicated by SGSN (Paging), so no need for a
separated physical PCH/PPCH!
That’s the main advantage: MS shall monitor only one physical
signalling channel (CCCH – Common Control Channel or PCCCH)
Or even 0: during GPRS data transfer (PDCH – Packet Data
Channel), Paging message can be inserted in between data
packets!
![Page 12: Protocol Technology · GPRS protocols CCSS7 IP (TCP/UDP) T R A U P C U BTS BTS . .. B S C MS SGSN SGSN GGSN BG CG MSC VLR HLR PDN BG Other PLMN G s G r G c. Overview of GPRS networks](https://reader035.fdocuments.us/reader035/viewer/2022062505/5eade75dc815ca5725628c4c/html5/thumbnails/12.jpg)
NOM II
No Gs IF between SGSN – VLR, about
attach/detach
location change
both networks must be informed separately
Circuit switched Paging – MSC at A IF
Packet switched Paging – SGSN
BUT: Common PCH at radio interface
only this must be listened to
but even during ongoing GPRS data transfer!
![Page 13: Protocol Technology · GPRS protocols CCSS7 IP (TCP/UDP) T R A U P C U BTS BTS . .. B S C MS SGSN SGSN GGSN BG CG MSC VLR HLR PDN BG Other PLMN G s G r G c. Overview of GPRS networks](https://reader035.fdocuments.us/reader035/viewer/2022062505/5eade75dc815ca5725628c4c/html5/thumbnails/13.jpg)
NOM III
Same as NOM II,
BUT:
separate PCH and PCCH
the Class B mobiles that can listen to only one
signalling channel falls back to Class C
The worst for MS
BUT requires the smallest change comparing to GSM
![Page 14: Protocol Technology · GPRS protocols CCSS7 IP (TCP/UDP) T R A U P C U BTS BTS . .. B S C MS SGSN SGSN GGSN BG CG MSC VLR HLR PDN BG Other PLMN G s G r G c. Overview of GPRS networks](https://reader035.fdocuments.us/reader035/viewer/2022062505/5eade75dc815ca5725628c4c/html5/thumbnails/14.jpg)
Routing Areas (RA)
Paging – Mobility Management „signalling balance”
Characteristics of data transfer is different: „burst”, between them large breaks
meanwhile user can move
more paging even during ONE data call
smaller paging areas
RA – Routing Area
Null Routing Area
![Page 15: Protocol Technology · GPRS protocols CCSS7 IP (TCP/UDP) T R A U P C U BTS BTS . .. B S C MS SGSN SGSN GGSN BG CG MSC VLR HLR PDN BG Other PLMN G s G r G c. Overview of GPRS networks](https://reader035.fdocuments.us/reader035/viewer/2022062505/5eade75dc815ca5725628c4c/html5/thumbnails/15.jpg)
GPRS mobility management states Goal:
as few Paging as possible – reduce
the load of channels
so downlink data transfer can be
increased
Idle: not connected to GPRS (no active
PDP context)
Ready: „dat transfer” (Ready timer T3314
– 44 s; can be set by SGSN between 2 s
and 3 h 6 m)
reports every cell change
no need for packet switched Paging
NOM I circuit switched Paging is in
only 1 cell (not in every cell of a LA!)
Standby: active connection, but data
transfer
reports only RA change
packet switched Paging in the whole
RA-ban (but only at the 1st packet ->
Ready)
circuit switched Paging in a RA (not in
a LA)
Idle
Ready
Standby
GPRS Attach GPRS Detach
Implicit Detach
Idle
Ready
Standby
GPRS Attach
Ready timer expires
GPRS Detach
Frame transfer
Frame transfer
Implicit Detach
![Page 16: Protocol Technology · GPRS protocols CCSS7 IP (TCP/UDP) T R A U P C U BTS BTS . .. B S C MS SGSN SGSN GGSN BG CG MSC VLR HLR PDN BG Other PLMN G s G r G c. Overview of GPRS networks](https://reader035.fdocuments.us/reader035/viewer/2022062505/5eade75dc815ca5725628c4c/html5/thumbnails/16.jpg)
GPRS identifiers
RAI – Routing Area Identifier
RAI = LAI + RAC = MNC + MCC + LAC + RAC
RAC: one octet (2 digits) extension
P-TMSI – Packet TMSI
P-TMSI: starts with 11
TMSI: starts with 00, 01, 10
NSAPI – Network Service Access Point Identifier
may be between 5-15
At PDP Context activation (MO/MT) MS assigns to
the connection
to be able to ditinguish between (parallel) connections
![Page 17: Protocol Technology · GPRS protocols CCSS7 IP (TCP/UDP) T R A U P C U BTS BTS . .. B S C MS SGSN SGSN GGSN BG CG MSC VLR HLR PDN BG Other PLMN G s G r G c. Overview of GPRS networks](https://reader035.fdocuments.us/reader035/viewer/2022062505/5eade75dc815ca5725628c4c/html5/thumbnails/17.jpg)
GTP – GPRS Tunneling Protocol
Routing of IP packets between GGSN and serving
SGSN (may be in an other PLMN!)
Over GTP IP TCP/UDP
Between SGSN – GGSN
path, if there is at least 1 active PDP context between the two
endpoints
• identified by source/destination IP addresses and és port
numbers
inside paths: tunnels transacts traffic of 1-1 PDP context
• TID – Tunnel Identifier: identified by IMSI+NSAPI
inside tunnels: 4 flows
• 1-1 data and signallig flow in both directions
• identified by a „Flow Label”
![Page 18: Protocol Technology · GPRS protocols CCSS7 IP (TCP/UDP) T R A U P C U BTS BTS . .. B S C MS SGSN SGSN GGSN BG CG MSC VLR HLR PDN BG Other PLMN G s G r G c. Overview of GPRS networks](https://reader035.fdocuments.us/reader035/viewer/2022062505/5eade75dc815ca5725628c4c/html5/thumbnails/18.jpg)
GTP example
PATH1
PATH2
TID11 = NSAPI11, IMSI1
TID12 = NSAPI12, IMSI1
TID13 = NSAPI21, IMSI2
TID2 = NSAPI22, IMSI2
NSAPI11
NSAPI12
NSAPI21
NSAPI22
MS1
IMSI1
MS2
IMSI2
SGSN
GGSN1
GGSN2
PATH1
PATH2
TID11 = NSAPI11, IMSI1
TID12 = NSAPI12, IMSI1
TID13 = NSAPI21, IMSI2
TID2 = NSAPI22, IMSI2
NSAPI11
NSAPI12
NSAPI21
NSAPI22
MS1
IMSI1
MS2
IMSI2
SGSN
GGSN1
GGSN2
![Page 19: Protocol Technology · GPRS protocols CCSS7 IP (TCP/UDP) T R A U P C U BTS BTS . .. B S C MS SGSN SGSN GGSN BG CG MSC VLR HLR PDN BG Other PLMN G s G r G c. Overview of GPRS networks](https://reader035.fdocuments.us/reader035/viewer/2022062505/5eade75dc815ca5725628c4c/html5/thumbnails/19.jpg)
APN – Access Point Name
Network + operator identifier code
Used to choose the GGSN toward the destination data
network
Stored in HLR in user profile
Transmitted to SGSN during a „GPRS Location
Update” (similarly, how the user profile was
transmitted to MSC/VLR in GSM
May be fixed or elective – depending on subscription
www.t-mobile.hu
internet.t-mobile
internet.mnc030.mcc216.gprs
![Page 20: Protocol Technology · GPRS protocols CCSS7 IP (TCP/UDP) T R A U P C U BTS BTS . .. B S C MS SGSN SGSN GGSN BG CG MSC VLR HLR PDN BG Other PLMN G s G r G c. Overview of GPRS networks](https://reader035.fdocuments.us/reader035/viewer/2022062505/5eade75dc815ca5725628c4c/html5/thumbnails/20.jpg)
MO GPRS connection
MS SGSN GGSN ACT _PDP_CT_REQ
GTP GTP CT _PDP_CT_REQ
Access Request
Access Accept
DHCP
DHCP Discover
DHCP Request
DHCP Offer
DHCP Ack
tication
IP addr
allocation
GTP GTP CT _PDP_CT_R SP
ACT _PDP_CT_ ACC
NSAPI, QoS,
MSISDN, SGSN IP addr
IP address
IP address Internet
Data transfer
IP address
MS SGSN GGSN ACT _PDP_CT_REQ
GTP GTP CT _PDP_CT_REQ
Access Request
Access Accept
DHCP
DHCP Discover
DHCP Request
DHCP Offer
DHCP Ack
Authen
-
Dynamic
GTP GTP CT _PDP_CT_R SP
ACT _PDP_CT_ ACC
NSAPI, QoS,
requested IP addr, APN (opt) MSISDN, SGSN IP
Internet
Radius or
Diameter
![Page 21: Protocol Technology · GPRS protocols CCSS7 IP (TCP/UDP) T R A U P C U BTS BTS . .. B S C MS SGSN SGSN GGSN BG CG MSC VLR HLR PDN BG Other PLMN G s G r G c. Overview of GPRS networks](https://reader035.fdocuments.us/reader035/viewer/2022062505/5eade75dc815ca5725628c4c/html5/thumbnails/21.jpg)
MT GPRS connection
MS
ACT _PDP_CT_REQ
GTP GTP CT _PDP_CT_REQ
Access Request
Access Accept Authen-
tication
GTP GTP CT _PDP_CT_R SP
ACT _PDP_CT_ ACC
NSAPI, QoS,
requested IP addr, APN (opt) MSISDN, SGSN IP addr
Data transfer
HLR GGSN Internet
IP packets
called MS (fix) IP addr MAP MAP send _routing_info_for_GPRS
IMSI
MAP MAP send _routing_info_for_GPRS
IMSI, serving SGSN IP addr
GTP GTP PDU _NOT_REQ Paging
REQ _PDP_CT_ACT GTP GTP PDU_NOT_RSP
Radius or
Diameter
GGSN SGSN
Internet
MS
ACT _PDP_CT_REQ
GTP GTP CT _PDP_CT_REQ GTP GTP CT _PDP_CT_REQ
Access Request
Access Accept
GTP GTP CT _PDP_CT_R SP
ACT _PDP_CT_ ACC
NSAPI, QoS,
HLR GGSN
MAP MAP send _routing_info_for_GPRS
IMSI
MAP MAP send _routing_info_for_GPRS
GTP GTP PDU _NOT_REQ Paging
Empty frame (Paging Ack.)
REQ _PDP_CT_ACT GTP GTP PDU_NOT_RSP GTP GTP PDU_NOT_RSP
GGSN SGSN
called MS (fix) IP addr