Upload
others
View
1
Download
0
Embed Size (px)
Citation preview
Evolution of cellular networksGSM / GPRS / EDGE
UMTS / HSDPA / HSUPA
Cellular Protocols for Mobile InternetGPRS, EDGE, UMTS, HSPA demystified
Harald Welte <[email protected]>
gnumonks.orgOpenBSC
OsmocomBBhmw-consulting.desysmocom GmbH
28C3, December 2011, Berlin/Germany
Harald Welte <[email protected]> Cellular Protocols for Mobile Internet
Evolution of cellular networksGSM / GPRS / EDGE
UMTS / HSDPA / HSUPA
Outline
1 Evolution of cellular networks
2 GSM / GPRS / EDGE
3 UMTS / HSDPA / HSUPA
Harald Welte <[email protected]> Cellular Protocols for Mobile Internet
Evolution of cellular networksGSM / GPRS / EDGE
UMTS / HSDPA / HSUPA
About the speaker
Using + playing with Linux since 1994Kernel / bootloader / driver / firmware development since1999IT security expert, focus on network protocol securityFormer core developer of Linux packet filternetfilter/iptablesBoard-level Electrical EngineeringAlways looking for interesting protocols (RFID, DECT,GSM)OpenEXZ, OpenPCD, Openmoko, OpenBSC,OsmocomBB, OsmoSGSN
Harald Welte <[email protected]> Cellular Protocols for Mobile Internet
Evolution of cellular networksGSM / GPRS / EDGE
UMTS / HSDPA / HSUPA
GSM/GPRS/EDGEUMTS - 3G
GSM / CSD
GSM is the first digital cellular system, developed in1980ies, first deployment 1990GSM is a pure circuit-switched technology, likePOTS/ISDN in the land-line worldGSM offers CSD (circuit switched data) to provide similarservice as analog modems in land-line telephone networkCSD offers data rates 2400 / 4800 / 9600 / 14400 bpsCSD still supported by a number of operators today
Harald Welte <[email protected]> Cellular Protocols for Mobile Internet
Evolution of cellular networksGSM / GPRS / EDGE
UMTS / HSDPA / HSUPA
GSM/GPRS/EDGEUMTS - 3G
GSM / HSCSD
HSCSD is High-Speed CSDHSCSD bundles up to four GSM time-slots to achieve38.4/57.6kbps data speedsvery expensive in terms of network load (1 data sessionoccupies 4 to 8 times the bandwidth of a phone call)was popular for a very short time only, dead by now
Harald Welte <[email protected]> Cellular Protocols for Mobile Internet
Evolution of cellular networksGSM / GPRS / EDGE
UMTS / HSDPA / HSUPA
GSM/GPRS/EDGEUMTS - 3G
GPRS
GPRS (General Packet Radio Servie) specified in 1990ies,first deployed 1999A separate, independent network to GSM, using samemodulation/channeling and time-slot structureIntroduces lots of GPRS-specific equipment (CCU, PCU,SGSN, GGSN) to the networkpacket-switched, not circuit switchednet band-width for IP around 56 to 114 kbits/secavailable virtually anywhere on the world exceptJapan/Korea
Harald Welte <[email protected]> Cellular Protocols for Mobile Internet
Evolution of cellular networksGSM / GPRS / EDGE
UMTS / HSDPA / HSUPA
GSM/GPRS/EDGEUMTS - 3G
EDGE
Enhanced Data-rates for GSM evolution, EGPRS andECSDActually, most people mean only EGPRS when they sayEDGEuses same channel/bandwidth/TDMA as GPRSphysical layer uses 8PSK modulation instead of GMSKno real changes to any higher protocol layersmost phones support EGPRS up to 236 kbits/secavailable virtually anywhere on the world exceptJapan/Korea
Harald Welte <[email protected]> Cellular Protocols for Mobile Internet
Evolution of cellular networksGSM / GPRS / EDGE
UMTS / HSDPA / HSUPA
GSM/GPRS/EDGEUMTS - 3G
UMTS
UMTS (Universal Mobile Telephony Syststem) developedin 1996-1999First commercial deployments 2002384 kbits/sec downlink, 128 kbits/sec uplinkentirely new system, not an evolution/extensions ofGSM/GPRS/EDGEWideband CDMA (WCDMA) used as modulation techniqueSupports CS (ciruit switched) and PS (packet switched)servicesfixed part of the network heavily uses ATM overSONET/SDH
Harald Welte <[email protected]> Cellular Protocols for Mobile Internet
Evolution of cellular networksGSM / GPRS / EDGE
UMTS / HSDPA / HSUPA
GSM/GPRS/EDGEUMTS - 3G
HSDPA
introduces new transport channel: HS-DSCH (High SpeedDownlink Shared Channel)added in UMTS Release >= 5uses new physical channels: HS-SCCH, HS-DPCCH,HS-PDSCHadaptive modulation (QPSK, 16-QAM, 64-QAM)3.6 Mbits/sec downlinkRel-5 also introduces 384 kbits/sec uplink
Harald Welte <[email protected]> Cellular Protocols for Mobile Internet
Evolution of cellular networksGSM / GPRS / EDGE
UMTS / HSDPA / HSUPA
GSM/GPRS/EDGEUMTS - 3G
HSDPA
HSUPA (High Speed Uplink Packet Access) == EUL(Enhanced Uplink)added in UMTS Releae >= 6similar techniques as for HSUPA but uplinknew physical channels: E-AGCH, E-RGCH, E-DPCH,E-HICH, E-DPCCH, E-DPDCHHybrid-ARQ to improve performance of re-transmissionscommon use up to 5.76 Mbits/sec
Harald Welte <[email protected]> Cellular Protocols for Mobile Internet
Evolution of cellular networksGSM / GPRS / EDGE
UMTS / HSDPA / HSUPA
GSM/GPRS/EDGEUMTS - 3G
HSPA+
HSPA+ == ESPA (Evolved High Speed Packet Access)added in UMTS Release >= 7up to 84 Mbits/sec DL, up to 22Mbits/s ULMIMO, QAM-64, combining two cells (dual-cell)theoretical maximum at 186 Mbit/sfirst deployments in 2008
Harald Welte <[email protected]> Cellular Protocols for Mobile Internet
Evolution of cellular networksGSM / GPRS / EDGE
UMTS / HSDPA / HSUPA
Circuit Switched Data (CSD)GPRS Stacking and LayersCore Network Protocols
Circuit Switched Data
Not covered here, only historic relevance...
Harald Welte <[email protected]> Cellular Protocols for Mobile Internet
Evolution of cellular networksGSM / GPRS / EDGE
UMTS / HSDPA / HSUPA
Circuit Switched Data (CSD)GPRS Stacking and LayersCore Network Protocols
GSM / GPRS Network Structure
Harald Welte <[email protected]> Cellular Protocols for Mobile Internet
Evolution of cellular networksGSM / GPRS / EDGE
UMTS / HSDPA / HSUPA
Circuit Switched Data (CSD)GPRS Stacking and LayersCore Network Protocols
GPRS Control Plane Stacking
Harald Welte <[email protected]> Cellular Protocols for Mobile Internet
Evolution of cellular networksGSM / GPRS / EDGE
UMTS / HSDPA / HSUPA
Circuit Switched Data (CSD)GPRS Stacking and LayersCore Network Protocols
GPRS User Plane Stacking
Harald Welte <[email protected]> Cellular Protocols for Mobile Internet
Evolution of cellular networksGSM / GPRS / EDGE
UMTS / HSDPA / HSUPA
Circuit Switched Data (CSD)GPRS Stacking and LayersCore Network Protocols
GPRS Lower Layers
MAC (Medium Access Control), TS 44.060MAC layer immediately on top of PDTCH physical channelRLC (Radio Lonk Control), also TS 44.060RLC layer on top of MAC layerresource allocation always controlled by networkmessage encoding specified in CSN.1 (Concrete SyntaxNotation)
Harald Welte <[email protected]> Cellular Protocols for Mobile Internet
Evolution of cellular networksGSM / GPRS / EDGE
UMTS / HSDPA / HSUPA
Circuit Switched Data (CSD)GPRS Stacking and LayersCore Network Protocols
GPRS Gb Layers
NS (Network Service) layer, TS 08.16maintains (redundant) physical links on top of frame relayfail-over and load-sharing over various linksNS originally used over FR (Frame Relay)sometimes NS in FR in IPlater also NS-over-IP (NSIP) using UDP
BSSGP (Base Station Subsystem Gateway Protocol), TS08.18
BVCI (BSSGP Virtual Connection Identifier)maintains one BVC for each BTS in a BSSmaintains one additional BVC for eacimplements flow control (BSS, MS, PFC)very inefficient due to large headers for every msg
Harald Welte <[email protected]> Cellular Protocols for Mobile Internet
Evolution of cellular networksGSM / GPRS / EDGE
UMTS / HSDPA / HSUPA
Circuit Switched Data (CSD)GPRS Stacking and LayersCore Network Protocols
GPRS LLC Layer
SNDCP (Sub-Network Dependent Convergence Protocol),TS 04.64LLC (Logical Link Control) established between SGSN andMSsupports acknowledged and unacknowledged modeone SAPI for signalling (GMM, SM)additional SAPIs available for user traffic in SNDCPGEA encryption happens on LLC layerChecksumming
Harald Welte <[email protected]> Cellular Protocols for Mobile Internet
Evolution of cellular networksGSM / GPRS / EDGE
UMTS / HSDPA / HSUPA
Circuit Switched Data (CSD)GPRS Stacking and LayersCore Network Protocols
GPRS SNDCP Layer
SNDCP (Sub-Network Dependent Convergence Protocol),TS 04.65general-purpose encapsulation for user packte dataintiially intended for X.25 and OSI protocols, also IPtoday only used with IP payloadIP header compression, v.42bis payload compressionmultiple streams (NSAPI) can exist over a LLC SAPI
Harald Welte <[email protected]> Cellular Protocols for Mobile Internet
Evolution of cellular networksGSM / GPRS / EDGE
UMTS / HSDPA / HSUPA
Circuit Switched Data (CSD)GPRS Stacking and LayersCore Network Protocols
GPRS Mobility Management
GMM (GPRS Mobility Management) corresponds to GSMMMsignalling directly on top of LLC, no SNDCP is used
Routeing Area UpdateGPRS Attach/DetachAuthentication (same as GSM A3/A8)P-TMSI reallocationIdentification ProcedureSMS delivery via GPRS
Harald Welte <[email protected]> Cellular Protocols for Mobile Internet
Evolution of cellular networksGSM / GPRS / EDGE
UMTS / HSDPA / HSUPA
Circuit Switched Data (CSD)GPRS Stacking and LayersCore Network Protocols
Example GRPS MM Procedure
Harald Welte <[email protected]> Cellular Protocols for Mobile Internet
Evolution of cellular networksGSM / GPRS / EDGE
UMTS / HSDPA / HSUPA
Circuit Switched Data (CSD)GPRS Stacking and LayersCore Network Protocols
GPRS Session Management
SM (Session Management) maintains tunnels to externalpacket data networkseach session is called a PDP Contextmultiple PDP contexts can be active at any point in timeAddress of tunnel broker (GGSN) called APN (accesspoint name)SSGN uses (private) DNS zones for resolving GGSN IPbased on APNSGSN maintains state, but actual establishment is handledvia GTP-C by the GGSNeach PDP context has its APN, QoS, IPv4/IPv6 address,etc.
Harald Welte <[email protected]> Cellular Protocols for Mobile Internet
Evolution of cellular networksGSM / GPRS / EDGE
UMTS / HSDPA / HSUPA
Circuit Switched Data (CSD)GPRS Stacking and LayersCore Network Protocols
Example GRPS SM Procedure
Harald Welte <[email protected]> Cellular Protocols for Mobile Internet
Evolution of cellular networksGSM / GPRS / EDGE
UMTS / HSDPA / HSUPA
Circuit Switched Data (CSD)GPRS Stacking and LayersCore Network Protocols
GTP Protocol between SGSN and GGSN
GTP (GPRS Tunnelling Protocol), TS 29.060the only protocol specified over IP right from the beginningGGSN can be an IP-only device, no SS7/SIGTRAN/E1/FRrequiredGTP-C for tunnel setup/teardown (SM procedures)GTP-U for encapsulating actual user datano authentication/encryption, intended to be used inprivate intra or inter-operator links only
Harald Welte <[email protected]> Cellular Protocols for Mobile Internet
Evolution of cellular networksGSM / GPRS / EDGE
UMTS / HSDPA / HSUPA
UMTS Protocol OverviewUMTS network internal protocols
UMTS PS Intro
Higher layers (GMM, SM) re-used from GPRSSGSN and GGSN functional entities remain almostunchangedLarge differences in SGSN-RAN communication (RANAPinstead of BSSGP/NS)Anything below RANAP again quite different from GPRS
Harald Welte <[email protected]> Cellular Protocols for Mobile Internet
Evolution of cellular networksGSM / GPRS / EDGE
UMTS / HSDPA / HSUPA
UMTS Protocol OverviewUMTS network internal protocols
UMTS Network Architecture
Harald Welte <[email protected]> Cellular Protocols for Mobile Internet
Evolution of cellular networksGSM / GPRS / EDGE
UMTS / HSDPA / HSUPA
UMTS Protocol OverviewUMTS network internal protocols
UMTS Control Plane Stacking
Harald Welte <[email protected]> Cellular Protocols for Mobile Internet
Evolution of cellular networksGSM / GPRS / EDGE
UMTS / HSDPA / HSUPA
UMTS Protocol OverviewUMTS network internal protocols
UMTS User Plane Stacking
Harald Welte <[email protected]> Cellular Protocols for Mobile Internet
Evolution of cellular networksGSM / GPRS / EDGE
UMTS / HSDPA / HSUPA
UMTS Protocol OverviewUMTS network internal protocols
UMTS RLC/MAC Layer
MAC specified in TS 25.321RLC specified in TS 25.322not in any formal syntax (uncommon in UMTS!)RLC level implements encryption, segmentation,retransmission
Harald Welte <[email protected]> Cellular Protocols for Mobile Internet
Evolution of cellular networksGSM / GPRS / EDGE
UMTS / HSDPA / HSUPA
UMTS Protocol OverviewUMTS network internal protocols
UMTS RRC Layer
RRC specified in TS 25.331completely new protocol, unlike GSM/GRPS RRformally specified in ASN.1, uses PER
measurement controlciphering controlpagingradio bearer managementSYS_INFO broadcastintegrity check
Harald Welte <[email protected]> Cellular Protocols for Mobile Internet
Evolution of cellular networksGSM / GPRS / EDGE
UMTS / HSDPA / HSUPA
UMTS Protocol OverviewUMTS network internal protocols
UMTS PDCP Layer
PDCP specified in TS 25.323corresponds to functionality of SNDCP in GPRShandles user data payload and header compressionutilizes RFC 3095 (ROHC) and RFC 2507 (IP Hdr Comp)between User IP and RLC
Harald Welte <[email protected]> Cellular Protocols for Mobile Internet
Evolution of cellular networksGSM / GPRS / EDGE
UMTS / HSDPA / HSUPA
UMTS Protocol OverviewUMTS network internal protocols
UMTS RANAP Layer
RANAP (Radio Access Network Application Part), TS25.413signalling between SGSN and RAN (RNC)formally specified in ASN.1, uses PER encodingnever visible to the user, only in back-haul networkVodafone UK / Alcatel-Lucent Femtocells use RANAP!
Harald Welte <[email protected]> Cellular Protocols for Mobile Internet
Evolution of cellular networksGSM / GPRS / EDGE
UMTS / HSDPA / HSUPA
UMTS Protocol OverviewUMTS network internal protocols
UMTS NBAP Layer
NBAP (NodeB Application Part), TS 25.443signalling between RNC and NodeB inside RANformally specified in ASN.1never visible to the user, only in back-haul networkis what you need to implment first to drive UMTS NodeBsfrom eBay ;)
Harald Welte <[email protected]> Cellular Protocols for Mobile Internet
Evolution of cellular networksGSM / GPRS / EDGE
UMTS / HSDPA / HSUPA
UMTS Protocol OverviewUMTS network internal protocols
UMTS GTP Layer between SGSN and GGSN
exactly the same as for GPRSsome new/extended information elements for e.g. 3G QoSGGSN doesn’t need to change between 2G and 3Gnetworks
Harald Welte <[email protected]> Cellular Protocols for Mobile Internet
Evolution of cellular networksGSM / GPRS / EDGE
UMTS / HSDPA / HSUPA
UMTS Protocol OverviewUMTS network internal protocols
HSPA+ related changes
SGSNs have become a bottleneck in modern data-drivencellular networksSGSNs can be bought up to 40Gbps throughput, but mostare smallerthink of 20,000 cells, each 3 sectors with 20Mbps+ each...HSPA+ eNodeB contains small SGSN internally, user datadirectly passed to GGSNthis means segmentation, compression and encryption isno longer on a centralized node but done on the edge ofthe network
Harald Welte <[email protected]> Cellular Protocols for Mobile Internet
Evolution of cellular networksGSM / GPRS / EDGE
UMTS / HSDPA / HSUPA
UMTS Protocol OverviewUMTS network internal protocols
Thanks
Thanks for your attention. I hope we have time for Q&A.
Harald Welte <[email protected]> Cellular Protocols for Mobile Internet