SlideShare ist ein Scribd-Unternehmen logo
1 von 77
1 Copyright © 2011 Juniper Networks, Inc. www.juniper.net
Introduction to Diameter Protocol
BASIM ALY
Senior Network Engineer
basimaly.wordpress.com eg.linkedin.com/pub/basim-aly/38/774/228/
What’s Diameter
• Diameter is an authentication, authorization, and accounting protocol
• Work within AAA Framework
• Provides an upgrade path for RADIUS
• Dynamic discovery of peers (using DNS SRV and NAPTR)
• Capability negotiation
• Error notification
• RFC 6733
Reliable Transport Depend on TCP to transport the message
More Secure Depend on IPSEC and STCP protocols
WIDER Twice as radius in AVP!
App based-
Extensible
You can extend the core code by building your own application
over the top
Why use DIAMETER over the RADIUS?
One More reason
Once subscriber reached to purchased quota, The diameter client will trigger an
event to inform the server, However in radius-based network you have to wait for
the incoming Accounting-Interim to trigger this action which is considered a
revenue leakage
Protocol Stack
Supported Protocols Standard / Specification Used
Diameter IETF RFC 3588
S6a, S6d, S13 - 3GPP TS 29.272 V10.3.0
Rx - 3GGP TS 29214-b10
Cx/Dx - 3GPP TS 29.228 & TS29.229
Gx - 3GPP TS 29.212 & TS 23.203
Sh - 3GGP TS 29.328 & TS 29.329
Gy/Ro (DCCA)- 3GGP TS 32.225, 3GPP TS
32.299 and IETFRFC 4006
SCTP RFC 4960
TCP RFC793
Standard Messages & Call Flow
Diameter Elements
MME (Mobility Management Entity)
HSS (Home Subscriber Server)
EIR (Equipment Identity Register)
CSCF (Call Session Control Function)
PCRF (Policy and Charging Rules Function)
PCEF (Policy and Charging Enforcement Function)
SGSN (Serving GPRS Support Node)
PDN GW (Packet Data Network Gateway)
CCA
We will discuss this scenario later!
Through passing CGI (Cell Global Identifier) and RAI (Routing Area
Identifier) from PCEF (GGSN) to PCRF in Event-Trigger AVP
Support Roaming(Inter-PLMN)!
Diameter Core Protocol
Application1 (Gx) Application2 (SIP)
• Diameter allow you to write a new application as an extension to base
code. these apps not a software app but a new protocols that use diameter
original code
• The Diameter protocol will replace the SS7 and SIGTRAN by
introducing a new Interfaces (Apps!) that will connect to HSS
Diameter Applications
Diameter RADIUS
Transportation Protocol
Connection-Oriented
Protocols (TCP and SCTP)
Connectionless Protocol (UDP)
Security Hop-to-Hop, End-to-End Hop-to-Hop
Agent Support
Relay, Proxy, Redirect,
Translation
Implicit support, which means the
agent behaviors might be
implemented in a RADIUS server
Capabilities Negotiation
Negotiate supported
applications and security
level
Don't support
Peer Discovery
Static configuration and
dynamic lookup
Static configuration
Server Initiated Message
Supported. for example, re-
authentication message,
Session termination
Don't support
Maximum Attribute Data Size 16,777,215 octets 255 octets
Vendor-specific Support
Support both vendor-
specific messages and
attributes
Comparison Between Radius and Diameter
Port 3868
Application Layer
Req/Answer Style
Other Properties
New Definitions
• PCEF
• IP-CAN
• Bearer
• PCC
New Definitions
Let’s change the Name
• An access network that provides Internet Protocol (IP) connectivity.
• The term is usually used in cellular context
1 of 3
IP-CAN(IP Connectivity Access Network)
New Definitions
The IP-CAN domain ends with the GGSN or (P-GW) node and it
created after the PCRF install the rules in PCEF
2 of 3
New Definitions
IP-CAN
• 3GPP-GPRS (0) This value shall be used to indicate that the IP-CAN is
associated with a 3GPP GPRS access that is connected to the GGSN
based on the Gn/Gp interfaces and is further detailed by the RAT-Type
AVP. RAT-Type AVP will include applicable 3GPP values, except
EUTRAN.
• DOCSIS (1) This value shall be used to indicate that the IP-CAN is
associated with a DOCSIS access.
• xDSL (2) This value shall be used to indicate that the IP-CAN is
associated with an xDSL access.
• WiMAX (3) This value shall be used to indicate that the IP-CAN is
associated with a WiMAX access (IEEE 802.16).
3 of 3
IP-CAN Types
New Definitions
• 3GPP2 (4) This value shall be used to indicate that the IP-CAN is
associated with a 3GPP2 access connected to the 3GPP2 packet core
as specified in 3GPP2 X.S0011 [20] and is further detailed by the RAT-
Type AVP. AVP.
• 3GPP-EPS (5) This value shall be used to indicate that the IP-CAN
associated with a 3GPP EPS access and is further detailed by the RAT-
Type AVP.
• Non-3GPP-EPS (6) This value shall be used to indicate that the IP-CAN
associated with an EPC based non-3GPP access and is further detailed
by the RAT-Type
3 of 3
IP-CAN Types
New Definitions
Capacity 1 Delay 1 Bit-Error Rate 1
Capacity 2 Delay 2 Bit-Error Rate 2
Bearer 1
Bearer 2UE
The Bearer is created inside IP-CAN according the service requirement. If you
have VoLTE service that need high bandwidth with low latency, and browsing
service that work on best effort then you need two Bearers for the same IP-
CAN with different QoS
New Definitions
1 of 2
Bearer
Default bearer
Dedicated bearer
for VoIP for example
APN-Aggregate-Max-Bitrate-UL=1M
APN-Aggregate-Max-Bitrate-DL=2M
Max-Requested-Bandwidth-UL=10M
Max-Requested-Bandwidth-DL=10M
Bearer-Identifier=999
Default-EPS-Bearer-QoS AVP
QoS-Information AVP
2 of 2
New Definitions
Bearer AVP
This is Policy and Charging Control. It could be either Dynamic (Rules are
pushed from PCRF to PCEF) or Static (PCRF just Activate or Deactivate the
pre-defined rules in PCEF)
Dynamic Static
1 of 1
New Definitions
PCC
Diameter Protocol Structure
Diameter Protocol Structure
• Each command is either a request or answer is assigned a command
code
• The request or answer is identified via the ’R’ bit in the Command Flags
field of the header.
Command Code
Command Code
Capabilities-Exchange
Device-Watchdog
Credit Control
Command Code
Most Important Command codes
Capabilities-Exchange
CER CEA
1
• A negotiation message between diameter peers to agree on supported
applications
• Command Code Number : 257
• Diameter peers use it to create peer table
• Message Exchange advertise the following:
• Peer Identity
• Use the secure transport or not
• SCTP Host address
Command Code
Device-Watchdog-Request
DWR DWA
• A keep alive message between the diameter peers to watch the status
and availability
• Command Code Number : 280
Keep Alive, We need You JIM!
2
Command Code
Device-Watchdog-Request
DWR DWA
2
Command Code
R(Request),P (Proxiable), E (Error Response) T(Re-Transmission of
Request)
Here it’s a Request message sent to peer
Command Flags
Example of peering
Multiple Diameter AVPairs can be grouped inside one large AVP
AVPairs
Session-Id1
AVP: Session-Id(263) l=47 f=-M- val=qps.tedata.net;4FD78691;5458;3B9ACA00;0
AVPairs
• The Session Identifier for the Subscriber
• Never Changed as long as the Subscriber session is up
• Consist of the diameter peer name followed by unique number
• Each vendor create application should have a unique vendor ID
Vendor-Id2
AVPairs
• Identify the broadcasted Diameter Origin Peer Name
• Example : Origin-Host : pcef1.tedata.net.eg
Origin-Host3
AVPairs
Origin-Realm4
AVPairs
• Identify the broadcasted Diameter Origin Realm
• Example : Origin-Realm : tedata.net.eg
Destination-Realm5
AVPairs
• Identify the broadcasted Diameter Origin Realm
• Example : Destination-Realm : Sandvine.com
Destination-Host6
AVPairs
• Identify the broadcasted Diameter Destination Realm
• Example : Destination-Host : PTS.sandvine.com
Host-IP-Address7
• The Source IP address that initiate the Diameter message
• Sent in HEX format
• Example : Host-IP-Address: 1.1.1.7
• Use the below website to obtain the hex value from IP Address
http://ncalculators.com/digital-computation/ip-address-hex-
decimal-binary.htm
Padding 0x0001
0x00010A8347AC
AVPairs
Event-Trigger8
Sent from PCEF to PCRF to inform it of specific Event occur
Example Values:
• Event-Trigger: LOSS_OF_BEARER
• Event-Trigger: SGSN_CHANGE
• Event-Trigger: RAI_CHANGE
AVPairs
Uniquely identify the supported application ID (Gx, Gy, Vodafone Gx, E///..etc)
3GPP Gx Application ID =16777238, Old was 16777224.
Check this link http://www.iana.org/assignments/aaa-parameters/aaa-parameters.xhtml
Application ID
Credit Control Application1
• Used to identify the credit control application
• Associated with CC-Request-Type
• INITIAL_REQUEST (CCR-I) or (CCA-I)
• UPDATE_REQUEST (CCR-U) or (CCA-U)
• TERMINATION_REQUEST (CCR-T) or (CCA-T)
Application ID
Auth-Application-Id
The Auth-Application-Id AVP (AVP Code 258) is used in order to advertise
support of the Authentication and Authorization portion of an application. The
Auth-Application-Id MUST also be present in all Authentication and/or
Authorization messages that are defined in a separate Diameter specification
and have an Application ID assigned.
Acct-Application-Id
The Acct-Application-Id AVP (AVP Code 259) is used in order to advertise
support of the Accounting portion of an application The Acct-Application-Id
MUST also be present in all Accounting messages. Exactly one of the Auth-
Application-Id and Acct-Application-Id AVPs MAY be present.
AVPairs
Developed Application
Authentication Portion
of application
Authorization Portion
of application
Accounting Portion of
application
Diameter Core
Auth-Application-Id AVP Acct-Application-Id AVP
109
Application-Id
Vendor-Id
AVPairs Summary
Diameter Agents
RELAY
PROXY
Redirect
Translator
Route message without changing it
Route message and can change it
Don’t route the message but can provide routing info
Translate between Radius and Diameter
What’s the role of your server?
Credit Control App
 Build over Diameter Core Protocol
 Provide a framework for real-time charging
 The application specifies methods for:
 Quota management (Reserve, Reauthorize, Abandon)
 Simple Debit/Credit
 Balance checks
 Price inquiries
 Does not specify which type units are bought/used
 CCR/CCA
Credit Control
Credit Control
The purpose of the diameter credit control application is to
provide a framework for real-time charging, primarily meant for
the communication between gateways/control-points and the
back-end account/balance systems (typically an Online
Charging System)
Command Code = 272 Auth-Application-Id=4
Credit Control
Credit-Control-Request (CCR) Command
The Credit-Control-Request message (CCR) is indicated by the command-code
field being set to 272 and the 'R' bit being set in the Command Flags field. It is
used between the Diameter credit-control client and the credit-control server to
request credit authorization for a given service. The Auth-Application-Id MUST
be set to the value 4, indicating the Diameter credit-control application.
Credit Control Request(CCR)
 CCA Command sent from PCRF to PCEF as a
response to CCR
 Provide PCEF with the following info
 PCC rules
 Event Trigger (When to report an event back to PCRF)
 Selected bearer control mode for the IP-CAN session
Credit Control Answer(CCA)
Gx
Policy Enforcement
Gy Gz
CDR sent to OFCSCDR sent to OCS
Credit Control Interfaces
PCEF/DPI
CC-Request-
Type=Initial
Credit Control
Answer
ReAuthorization
Request
ReAuthorization
Answer
Note the request is sent
using the Subscriber Name
and IP address received
from Radius accounting
ThisiscalledIP-
CANsession
1-Subscriber is connected to BNG which will send accounting start to AAA.
2-AAA will proxy accounting to DPI contains the username and IP Address
3-user start to browse internet and send traffic through the DPI
4-DPI will stop the traffic and will send CCR-I with IP address to PCRF. Smth like
query to get the username
5-PCRF will consult the SPR and will return the policies in CCA
Attach to
Network
1
1-PGW send CCR-I with Subscriber-Id (IMSI or MSISDN or etc...) and Framed-
IP (IP address what network give for this device) to PCRF
2-PCRF calculate user tariff and respond policy or bearer settings
Calculate
Tariff in real
time
2
 Interface between PCEF (BNG/DPI/GGSN) and
PCRF
 PCRF send PCC rules to be installed on PCEF
 Upon receive of an Event-Trigger, PCRF can puch a
new PCC rule over Gx for new bearer creation
Gx Interface
 Interface between PCEF (BNG/DPI/GGSN) and
OCS
 Used for Online Charging (Pre-Paid)
 Used to take real-time decision on tired services
Gy Interface
 Interface between PCEF (BNG/DPI/GGSN) and
OFCS
 Used for Offline Charging (Post-Paid)
 offline charging is a mechanism where charging
information does not affect, in real-time, the service
rendered.
Gz Interface
Credit Control Interfaces Summary
Username Identifier
• Subscriber username sent in Subscription-Id AVP
• Subscription-Id consist of two AVPs
– Subscription-Id Type
• Type of connected subscriber (Mobile, ADSL..etc)
– Subscription-Id value
<Subscription-Id>
<Subscription-Id-Type Value="END_USER_SIP_URI" />
<Subscription-Id-Data Value="sip:+3251001011@tedata.net.eg" />
</Subscription-Id>
<Subscription-Id>
<Subscription-Id-Type Value="END_USER_NAI" />
<Subscription-Id-Data Value=“basim@tedata.net.eg" />
</Subscription-Id>
1
2
For VoLTE
(Mobile
Operator)
For
xDSL/FTTx
ISP
Subscription-Id
Credit Control PCEF Sample Configuration(1/3)
#vi /usr/local/sandvine/etc/diam_peer_config.xml
<diameter-peer>
<peers>
<peer>
<identity>host1.freepcrf.com</identity>
<hostname>1.1.1.90</hostname>
<realm>freepcrf.com</realm>
<port>3868</port>
<bias>2</bias>
<dictionaries>
<dictionary>Rf</dictionary>
</dictionaries>
</peer>
</peers>
IP Address
for PCRF
Supported
App
Credit Control PCEF Sample Configuration(2/3)
#vi /usr/local/sandvine/etc/diam_peer_config.xml
<identities>
<local-identity>
<identity>PTS.tedata.net</identity>
<display-name>PTS.tedata.net</display-name>
<realm>tedata.net</realm>
<dictionaries>
<dictionary>Rf</dictionary>
</dictionaries>
<client-config>
<watchdog-timeout>10</watchdog-timeout>
<cea-timeout>5</cea-timeout>
<connection-timeout>1</connection-timeout>
</client-config>
</local-identity>
</identities>s
Identify
PCEF
identity
Supported
App
Watchdog
parameters
Credit Control PCEF Sample Configuration(3/3)
• Identify Destination Realm
• Identify the Original Realm
• Identify the IP_CAN_TYPE = ADSL
• Identify the Subscription-id type = NAI
• Identify the Subscription-id value Sandvine
DPI PTS
Credit Control Peering
First thing that you should notice inside the diameter protocol packets is the Command
Code AVP and CC-Request-Type AVP that indicates the type of request whether it’s
INITIATE(CCR-I) or UPDATE or TERMINIATE..etc
Request
- Initial
CC
CCR-I
Credit Control PCAP
Seagull (Diameter Test)
• Seagull is a free, Open Source (GPL) multi-
protocol traffic generator test tool.
• powerful traffic generator
• Used for stress testing
• Developed by HP
• Coded using C++
• Simulation tool developed by HP to simulate
different protocols
• SIP
• Diameter
• Radius
• Support Linux (Centos/Debian) and Windows
(Through cygwin
Seagull
http://gull.sourceforge.net/
Download1
http://sourceforge.net/projects/gull/files/seagull/
Seagull
Install Seagull2
#tar zxvf seagull-1.8.2-Linux_RHEL6U1_X86_64.tar.gz
#cd packages/
#wget
ftp://ftp.pbone.net/mirror/ftp5.gwdg.de/pub/opensuse/repositories/ho
me:/csbuild:/DBA/RedHat_RHEL-6/x86_64/dba-openssl-098o-0.9.8o-
2.2.x86_64.rpm
#rpm -ivh dba-openssl-098o-0.9.8o-2.2.x86_64.rpm
#rm dba-openssl-098o-0.9.8o-2.2.x86_64.rpm
#rpm -ivh seagull-core-1.8.2-linux-2.6-intel.rpm
#rpm -ivh seagull-diameter-protocol-1.8.2-linux-2.6-intel.rpm
#rpm -ivh seagull-external-lib-sctp-1.8.2-linux-2.6-intel.rpm
#rpm -ivh seagull-trans-sctp-1.8.2-linux-2.6-intel.rpm
#rpm -ivh seagull-trans-tls-1.8.2-linux-2.6-intel.rpm
#rpm -ivh seagull-radius-protocol-1.8.2-linux-2.6-intel.rpm
Seagull
Define the correct client configuration3
#vim /opt/seagull/diameter/config/conf.client.xml
Define the correct dictionary file to be used for both client and server4
#vim /opt/seagull/diameter/config/base_cc.xml
Define the scenario5
#vim /opt/seagull/diameter/scenario/ccr-cca.client.xml
Seagull
Create Run script to use the files you created before6
#cd /opt/seagull/diameter/run
#vim start_client_gx_ccr_cca.ksh
#!/bin/ksh
export LD_LIBRARY_PATH=/usr/local/bin
seagull -conf /opt/seagull/diameter/config/conf.client.xml -dico
/opt/seagull/diameter/config/base_cc.xml -scen
/opt/seagull/diameter/scenario/ccr-cca.client.xml -log
/opt/seagull/diameter/logs/ccr-cca.client.log -llevel ET
Run the test7
cd /opt/seagull/diameter/run
./start_client_gx_ccr_cca.ksh
Seagull
Configure Client
(PCEF)
 Create Channel (Diam version..)
 Whom to open channel with (PCRF IP)
 Call ch (Rate/timeout/max number..)
 Load external data
 Where to log the events
#vim /opt/seagull/diameter/config/conf.client.xml
Seagull
Configure Dictionary
 Diameter header (CMD, HbH, EtE..)
 Diameter base AVP with their values
 Define diameter commands structure (CER,
CCR, RAR..)
 Here you should define any vendor-spcefic
attributes (next slide)
#vim /opt/seagull/diameter/config/base_cc.xml
Seagull
Configure Dictionary
#vim /opt/seagull/diameter/config/base_cc.xml
Add new
AVP
Seagull
Configure Scenario
 Configure init section (configure both Send &
Receive tags that negotiate CER)
 Configure traffic section (configure both Send &
Receive tags that send actual traffic)
#vim /opt/seagull/diameter/scenario/ccr-
cca.client.xml
Seagull
Run
 Connecting the dots
 Identify the config location
 Identify the dictionary location
 Identify the scenario
 Identify where to store the log
 Identify the debug level
#vim
/opt/seagull/diameter/run/start_client_cc.ksh
#export LD_LIBRARY_PATH=/usr/local/bin
#seagull -conf ../config/conf.client.xml -dico
../config/base_cc.xml -scen ../scenario/ccr-cca.client.xml -log
../logs/ccr-cca.client.log -llevel ET
If you can’t find seagull command, then copy content of seagull
bin folder the package to /usr/bin directory
You may need to install KSH package from YUM/apt-get
Seagull
Thank You

Weitere ähnliche Inhalte

Was ist angesagt?

volte ims network architecture
volte ims network architecturevolte ims network architecture
volte ims network architectureVikas Shokeen
 
Segment Routing Advanced Use Cases - Cisco Live 2016 USA
Segment Routing Advanced Use Cases - Cisco Live 2016 USASegment Routing Advanced Use Cases - Cisco Live 2016 USA
Segment Routing Advanced Use Cases - Cisco Live 2016 USAJose Liste
 
What is PCRF? – Detailed PCRF architecture and functioning
What is PCRF? – Detailed PCRF architecture and functioningWhat is PCRF? – Detailed PCRF architecture and functioning
What is PCRF? – Detailed PCRF architecture and functioningMahindra Comviva
 
VoLTE_SRVCC_E2Erevised
VoLTE_SRVCC_E2ErevisedVoLTE_SRVCC_E2Erevised
VoLTE_SRVCC_E2ErevisedAmit Deshmukh
 
Packet core network basics
Packet core network basicsPacket core network basics
Packet core network basicsMustafa Golam
 
VoLTE Interfaces , Protocols & IMS Stack
VoLTE Interfaces , Protocols & IMS StackVoLTE Interfaces , Protocols & IMS Stack
VoLTE Interfaces , Protocols & IMS StackVikas Shokeen
 
Advanced: True Fixed-Mobile Convergence (FMC) with 5G
Advanced: True Fixed-Mobile Convergence (FMC) with 5GAdvanced: True Fixed-Mobile Convergence (FMC) with 5G
Advanced: True Fixed-Mobile Convergence (FMC) with 5G3G4G
 
Cisco Live! :: Cisco ASR 9000 Architecture :: BRKARC-2003 | Milan Jan/2014
Cisco Live! :: Cisco ASR 9000 Architecture :: BRKARC-2003 | Milan Jan/2014Cisco Live! :: Cisco ASR 9000 Architecture :: BRKARC-2003 | Milan Jan/2014
Cisco Live! :: Cisco ASR 9000 Architecture :: BRKARC-2003 | Milan Jan/2014Bruno Teixeira
 
5G Basic Call Flows.pdf
5G Basic Call Flows.pdf5G Basic Call Flows.pdf
5G Basic Call Flows.pdfIbrahimSayed61
 
Cisco Live Brksec 3032 - NGFW Clustering
Cisco Live Brksec 3032 - NGFW ClusteringCisco Live Brksec 3032 - NGFW Clustering
Cisco Live Brksec 3032 - NGFW Clusteringib_cims
 
VoLTE Flows and CS network
VoLTE Flows and CS networkVoLTE Flows and CS network
VoLTE Flows and CS networkKarel Berkovec
 
Sapc upcc-pcrf- part 1 tbp
Sapc upcc-pcrf- part 1 tbpSapc upcc-pcrf- part 1 tbp
Sapc upcc-pcrf- part 1 tbpMustafa Golam
 
MPLS Traffic Engineering
MPLS Traffic EngineeringMPLS Traffic Engineering
MPLS Traffic EngineeringAPNIC
 
Virtual Extensible LAN (VXLAN)
Virtual Extensible LAN (VXLAN)Virtual Extensible LAN (VXLAN)
Virtual Extensible LAN (VXLAN)KHNOG
 
1 asr9 k platform architecture
1   asr9 k platform architecture1   asr9 k platform architecture
1 asr9 k platform architectureThanh Hung Quach
 

Was ist angesagt? (20)

MPLS Presentation
MPLS PresentationMPLS Presentation
MPLS Presentation
 
volte ims network architecture
volte ims network architecturevolte ims network architecture
volte ims network architecture
 
Segment Routing Advanced Use Cases - Cisco Live 2016 USA
Segment Routing Advanced Use Cases - Cisco Live 2016 USASegment Routing Advanced Use Cases - Cisco Live 2016 USA
Segment Routing Advanced Use Cases - Cisco Live 2016 USA
 
Introduction to vxlan
Introduction to vxlanIntroduction to vxlan
Introduction to vxlan
 
What is PCRF? – Detailed PCRF architecture and functioning
What is PCRF? – Detailed PCRF architecture and functioningWhat is PCRF? – Detailed PCRF architecture and functioning
What is PCRF? – Detailed PCRF architecture and functioning
 
VoLTE_SRVCC_E2Erevised
VoLTE_SRVCC_E2ErevisedVoLTE_SRVCC_E2Erevised
VoLTE_SRVCC_E2Erevised
 
Packet core network basics
Packet core network basicsPacket core network basics
Packet core network basics
 
VoLTE Interfaces , Protocols & IMS Stack
VoLTE Interfaces , Protocols & IMS StackVoLTE Interfaces , Protocols & IMS Stack
VoLTE Interfaces , Protocols & IMS Stack
 
Advanced: True Fixed-Mobile Convergence (FMC) with 5G
Advanced: True Fixed-Mobile Convergence (FMC) with 5GAdvanced: True Fixed-Mobile Convergence (FMC) with 5G
Advanced: True Fixed-Mobile Convergence (FMC) with 5G
 
SEGMENT Routing
SEGMENT RoutingSEGMENT Routing
SEGMENT Routing
 
Cisco Live! :: Cisco ASR 9000 Architecture :: BRKARC-2003 | Milan Jan/2014
Cisco Live! :: Cisco ASR 9000 Architecture :: BRKARC-2003 | Milan Jan/2014Cisco Live! :: Cisco ASR 9000 Architecture :: BRKARC-2003 | Milan Jan/2014
Cisco Live! :: Cisco ASR 9000 Architecture :: BRKARC-2003 | Milan Jan/2014
 
5G Basic Call Flows.pdf
5G Basic Call Flows.pdf5G Basic Call Flows.pdf
5G Basic Call Flows.pdf
 
UMTS/LTE/EPC Call Flows for CSFB
UMTS/LTE/EPC Call Flows for CSFBUMTS/LTE/EPC Call Flows for CSFB
UMTS/LTE/EPC Call Flows for CSFB
 
SS7 & SIGTRAN
SS7 & SIGTRANSS7 & SIGTRAN
SS7 & SIGTRAN
 
Cisco Live Brksec 3032 - NGFW Clustering
Cisco Live Brksec 3032 - NGFW ClusteringCisco Live Brksec 3032 - NGFW Clustering
Cisco Live Brksec 3032 - NGFW Clustering
 
VoLTE Flows and CS network
VoLTE Flows and CS networkVoLTE Flows and CS network
VoLTE Flows and CS network
 
Sapc upcc-pcrf- part 1 tbp
Sapc upcc-pcrf- part 1 tbpSapc upcc-pcrf- part 1 tbp
Sapc upcc-pcrf- part 1 tbp
 
MPLS Traffic Engineering
MPLS Traffic EngineeringMPLS Traffic Engineering
MPLS Traffic Engineering
 
Virtual Extensible LAN (VXLAN)
Virtual Extensible LAN (VXLAN)Virtual Extensible LAN (VXLAN)
Virtual Extensible LAN (VXLAN)
 
1 asr9 k platform architecture
1   asr9 k platform architecture1   asr9 k platform architecture
1 asr9 k platform architecture
 

Andere mochten auch

Andere mochten auch (7)

Install dev stack
Install dev stackInstall dev stack
Install dev stack
 
Vandyke SecureCRT tips and tricks
Vandyke SecureCRT tips and tricksVandyke SecureCRT tips and tricks
Vandyke SecureCRT tips and tricks
 
Introduction to SDN and NFV
Introduction to SDN and NFVIntroduction to SDN and NFV
Introduction to SDN and NFV
 
Building Python Development Station
Building Python Development StationBuilding Python Development Station
Building Python Development Station
 
OCS – Online Charging System - I Workshop CPqD de Inovação Tecnológica em VoI...
OCS – Online Charging System - I Workshop CPqD de Inovação Tecnológica em VoI...OCS – Online Charging System - I Workshop CPqD de Inovação Tecnológica em VoI...
OCS – Online Charging System - I Workshop CPqD de Inovação Tecnológica em VoI...
 
Diameter Overview
Diameter OverviewDiameter Overview
Diameter Overview
 
Gsm (Part 2)
Gsm (Part 2)Gsm (Part 2)
Gsm (Part 2)
 

Ähnlich wie Introduction to Diameter Protocol - Part1

F5 Solutions for Service Providers
F5 Solutions for Service ProvidersF5 Solutions for Service Providers
F5 Solutions for Service ProvidersBAKOTECH
 
Remote access service
Remote access serviceRemote access service
Remote access serviceApoorw Pandey
 
LAS16-306: Exploring the Open Trusted Protocol
LAS16-306: Exploring the Open Trusted ProtocolLAS16-306: Exploring the Open Trusted Protocol
LAS16-306: Exploring the Open Trusted ProtocolLinaro
 
Cisco connect winnipeg 2018 a look at network assurance in dna center
Cisco connect winnipeg 2018   a look at network assurance in dna centerCisco connect winnipeg 2018   a look at network assurance in dna center
Cisco connect winnipeg 2018 a look at network assurance in dna centerCisco Canada
 
Radius Protocol
Radius ProtocolRadius Protocol
Radius ProtocolNetwax Lab
 
Rebaca DPI and PCRF Expertie Overview
Rebaca DPI and PCRF Expertie OverviewRebaca DPI and PCRF Expertie Overview
Rebaca DPI and PCRF Expertie OverviewArshad Mahmood
 
Fiware: Connecting to robots
Fiware: Connecting to robotsFiware: Connecting to robots
Fiware: Connecting to robotsJaime Martin Losa
 
Cloud Foundry Summit 2015: Cloud Foundry and IoT Protocol Support
Cloud Foundry Summit 2015: Cloud Foundry and IoT Protocol SupportCloud Foundry Summit 2015: Cloud Foundry and IoT Protocol Support
Cloud Foundry Summit 2015: Cloud Foundry and IoT Protocol SupportVMware Tanzu
 
Hyperledger Fabric update Meetup 20181101
Hyperledger Fabric update Meetup 20181101Hyperledger Fabric update Meetup 20181101
Hyperledger Fabric update Meetup 20181101Arnaud Le Hors
 
14.) wireless (hyper dense wi fi)
14.) wireless (hyper dense wi fi)14.) wireless (hyper dense wi fi)
14.) wireless (hyper dense wi fi)Jeff Green
 
Simplifying the secure data center
Simplifying the secure data centerSimplifying the secure data center
Simplifying the secure data centerCisco Canada
 
Nfd18 anuta-networks
Nfd18 anuta-networksNfd18 anuta-networks
Nfd18 anuta-networksKiran Sirupa
 
Baker Charlie
Baker CharlieBaker Charlie
Baker CharlieCarl Ford
 
E Snet Raf Essc Jan2005
E Snet Raf Essc Jan2005E Snet Raf Essc Jan2005
E Snet Raf Essc Jan2005FNian
 

Ähnlich wie Introduction to Diameter Protocol - Part1 (20)

Diameter_Apr2014.pptx
Diameter_Apr2014.pptxDiameter_Apr2014.pptx
Diameter_Apr2014.pptx
 
F5 Solutions for Service Providers
F5 Solutions for Service ProvidersF5 Solutions for Service Providers
F5 Solutions for Service Providers
 
Remote access service
Remote access serviceRemote access service
Remote access service
 
LAS16-306: Exploring the Open Trusted Protocol
LAS16-306: Exploring the Open Trusted ProtocolLAS16-306: Exploring the Open Trusted Protocol
LAS16-306: Exploring the Open Trusted Protocol
 
Cisco connect winnipeg 2018 a look at network assurance in dna center
Cisco connect winnipeg 2018   a look at network assurance in dna centerCisco connect winnipeg 2018   a look at network assurance in dna center
Cisco connect winnipeg 2018 a look at network assurance in dna center
 
Radius Protocol
Radius ProtocolRadius Protocol
Radius Protocol
 
Rebaca DPI and PCRF Expertie Overview
Rebaca DPI and PCRF Expertie OverviewRebaca DPI and PCRF Expertie Overview
Rebaca DPI and PCRF Expertie Overview
 
Fiware: Connecting to robots
Fiware: Connecting to robotsFiware: Connecting to robots
Fiware: Connecting to robots
 
F5 TMOS v13.0
F5 TMOS v13.0F5 TMOS v13.0
F5 TMOS v13.0
 
Cloud Foundry Summit 2015: Cloud Foundry and IoT Protocol Support
Cloud Foundry Summit 2015: Cloud Foundry and IoT Protocol SupportCloud Foundry Summit 2015: Cloud Foundry and IoT Protocol Support
Cloud Foundry Summit 2015: Cloud Foundry and IoT Protocol Support
 
Hyperledger Fabric update Meetup 20181101
Hyperledger Fabric update Meetup 20181101Hyperledger Fabric update Meetup 20181101
Hyperledger Fabric update Meetup 20181101
 
14.) wireless (hyper dense wi fi)
14.) wireless (hyper dense wi fi)14.) wireless (hyper dense wi fi)
14.) wireless (hyper dense wi fi)
 
Simplifying the secure data center
Simplifying the secure data centerSimplifying the secure data center
Simplifying the secure data center
 
Nfd18 anuta-networks
Nfd18 anuta-networksNfd18 anuta-networks
Nfd18 anuta-networks
 
Baker Charlie
Baker CharlieBaker Charlie
Baker Charlie
 
E Snet Raf Essc Jan2005
E Snet Raf Essc Jan2005E Snet Raf Essc Jan2005
E Snet Raf Essc Jan2005
 
MPLS ppt
MPLS pptMPLS ppt
MPLS ppt
 
EMEA Airheads_ Aruba AppRF – AOS 6.x & 8.x
EMEA Airheads_ Aruba AppRF – AOS 6.x & 8.xEMEA Airheads_ Aruba AppRF – AOS 6.x & 8.x
EMEA Airheads_ Aruba AppRF – AOS 6.x & 8.x
 
Chapter04
Chapter04Chapter04
Chapter04
 
Firewalls
FirewallsFirewalls
Firewalls
 

Kürzlich hochgeladen

Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...Dr.Costas Sachpazis
 
Booking open Available Pune Call Girls Koregaon Park 6297143586 Call Hot Ind...
Booking open Available Pune Call Girls Koregaon Park  6297143586 Call Hot Ind...Booking open Available Pune Call Girls Koregaon Park  6297143586 Call Hot Ind...
Booking open Available Pune Call Girls Koregaon Park 6297143586 Call Hot Ind...Call Girls in Nagpur High Profile
 
Introduction to IEEE STANDARDS and its different types.pptx
Introduction to IEEE STANDARDS and its different types.pptxIntroduction to IEEE STANDARDS and its different types.pptx
Introduction to IEEE STANDARDS and its different types.pptxupamatechverse
 
(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...ranjana rawat
 
(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts
(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts
(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escortsranjana rawat
 
IMPLICATIONS OF THE ABOVE HOLISTIC UNDERSTANDING OF HARMONY ON PROFESSIONAL E...
IMPLICATIONS OF THE ABOVE HOLISTIC UNDERSTANDING OF HARMONY ON PROFESSIONAL E...IMPLICATIONS OF THE ABOVE HOLISTIC UNDERSTANDING OF HARMONY ON PROFESSIONAL E...
IMPLICATIONS OF THE ABOVE HOLISTIC UNDERSTANDING OF HARMONY ON PROFESSIONAL E...RajaP95
 
UNIT-III FMM. DIMENSIONAL ANALYSIS
UNIT-III FMM.        DIMENSIONAL ANALYSISUNIT-III FMM.        DIMENSIONAL ANALYSIS
UNIT-III FMM. DIMENSIONAL ANALYSISrknatarajan
 
Introduction and different types of Ethernet.pptx
Introduction and different types of Ethernet.pptxIntroduction and different types of Ethernet.pptx
Introduction and different types of Ethernet.pptxupamatechverse
 
result management system report for college project
result management system report for college projectresult management system report for college project
result management system report for college projectTonystark477637
 
Introduction to Multiple Access Protocol.pptx
Introduction to Multiple Access Protocol.pptxIntroduction to Multiple Access Protocol.pptx
Introduction to Multiple Access Protocol.pptxupamatechverse
 
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete RecordCCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete RecordAsst.prof M.Gokilavani
 
Processing & Properties of Floor and Wall Tiles.pptx
Processing & Properties of Floor and Wall Tiles.pptxProcessing & Properties of Floor and Wall Tiles.pptx
Processing & Properties of Floor and Wall Tiles.pptxpranjaldaimarysona
 
MANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLS
MANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLSMANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLS
MANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLSSIVASHANKAR N
 
UNIT - IV - Air Compressors and its Performance
UNIT - IV - Air Compressors and its PerformanceUNIT - IV - Air Compressors and its Performance
UNIT - IV - Air Compressors and its Performancesivaprakash250
 
Extrusion Processes and Their Limitations
Extrusion Processes and Their LimitationsExtrusion Processes and Their Limitations
Extrusion Processes and Their Limitations120cr0395
 
SPICE PARK APR2024 ( 6,793 SPICE Models )
SPICE PARK APR2024 ( 6,793 SPICE Models )SPICE PARK APR2024 ( 6,793 SPICE Models )
SPICE PARK APR2024 ( 6,793 SPICE Models )Tsuyoshi Horigome
 
HARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICS
HARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICSHARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICS
HARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICSRajkumarAkumalla
 
HARMONY IN THE NATURE AND EXISTENCE - Unit-IV
HARMONY IN THE NATURE AND EXISTENCE - Unit-IVHARMONY IN THE NATURE AND EXISTENCE - Unit-IV
HARMONY IN THE NATURE AND EXISTENCE - Unit-IVRajaP95
 

Kürzlich hochgeladen (20)

Roadmap to Membership of RICS - Pathways and Routes
Roadmap to Membership of RICS - Pathways and RoutesRoadmap to Membership of RICS - Pathways and Routes
Roadmap to Membership of RICS - Pathways and Routes
 
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...
 
Booking open Available Pune Call Girls Koregaon Park 6297143586 Call Hot Ind...
Booking open Available Pune Call Girls Koregaon Park  6297143586 Call Hot Ind...Booking open Available Pune Call Girls Koregaon Park  6297143586 Call Hot Ind...
Booking open Available Pune Call Girls Koregaon Park 6297143586 Call Hot Ind...
 
Introduction to IEEE STANDARDS and its different types.pptx
Introduction to IEEE STANDARDS and its different types.pptxIntroduction to IEEE STANDARDS and its different types.pptx
Introduction to IEEE STANDARDS and its different types.pptx
 
(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
 
(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts
(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts
(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts
 
IMPLICATIONS OF THE ABOVE HOLISTIC UNDERSTANDING OF HARMONY ON PROFESSIONAL E...
IMPLICATIONS OF THE ABOVE HOLISTIC UNDERSTANDING OF HARMONY ON PROFESSIONAL E...IMPLICATIONS OF THE ABOVE HOLISTIC UNDERSTANDING OF HARMONY ON PROFESSIONAL E...
IMPLICATIONS OF THE ABOVE HOLISTIC UNDERSTANDING OF HARMONY ON PROFESSIONAL E...
 
UNIT-III FMM. DIMENSIONAL ANALYSIS
UNIT-III FMM.        DIMENSIONAL ANALYSISUNIT-III FMM.        DIMENSIONAL ANALYSIS
UNIT-III FMM. DIMENSIONAL ANALYSIS
 
Introduction and different types of Ethernet.pptx
Introduction and different types of Ethernet.pptxIntroduction and different types of Ethernet.pptx
Introduction and different types of Ethernet.pptx
 
result management system report for college project
result management system report for college projectresult management system report for college project
result management system report for college project
 
Introduction to Multiple Access Protocol.pptx
Introduction to Multiple Access Protocol.pptxIntroduction to Multiple Access Protocol.pptx
Introduction to Multiple Access Protocol.pptx
 
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete RecordCCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
 
Processing & Properties of Floor and Wall Tiles.pptx
Processing & Properties of Floor and Wall Tiles.pptxProcessing & Properties of Floor and Wall Tiles.pptx
Processing & Properties of Floor and Wall Tiles.pptx
 
MANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLS
MANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLSMANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLS
MANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLS
 
★ CALL US 9953330565 ( HOT Young Call Girls In Badarpur delhi NCR
★ CALL US 9953330565 ( HOT Young Call Girls In Badarpur delhi NCR★ CALL US 9953330565 ( HOT Young Call Girls In Badarpur delhi NCR
★ CALL US 9953330565 ( HOT Young Call Girls In Badarpur delhi NCR
 
UNIT - IV - Air Compressors and its Performance
UNIT - IV - Air Compressors and its PerformanceUNIT - IV - Air Compressors and its Performance
UNIT - IV - Air Compressors and its Performance
 
Extrusion Processes and Their Limitations
Extrusion Processes and Their LimitationsExtrusion Processes and Their Limitations
Extrusion Processes and Their Limitations
 
SPICE PARK APR2024 ( 6,793 SPICE Models )
SPICE PARK APR2024 ( 6,793 SPICE Models )SPICE PARK APR2024 ( 6,793 SPICE Models )
SPICE PARK APR2024 ( 6,793 SPICE Models )
 
HARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICS
HARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICSHARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICS
HARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICS
 
HARMONY IN THE NATURE AND EXISTENCE - Unit-IV
HARMONY IN THE NATURE AND EXISTENCE - Unit-IVHARMONY IN THE NATURE AND EXISTENCE - Unit-IV
HARMONY IN THE NATURE AND EXISTENCE - Unit-IV
 

Introduction to Diameter Protocol - Part1

  • 1. 1 Copyright © 2011 Juniper Networks, Inc. www.juniper.net Introduction to Diameter Protocol BASIM ALY Senior Network Engineer basimaly.wordpress.com eg.linkedin.com/pub/basim-aly/38/774/228/
  • 2. What’s Diameter • Diameter is an authentication, authorization, and accounting protocol • Work within AAA Framework • Provides an upgrade path for RADIUS • Dynamic discovery of peers (using DNS SRV and NAPTR) • Capability negotiation • Error notification • RFC 6733
  • 3. Reliable Transport Depend on TCP to transport the message More Secure Depend on IPSEC and STCP protocols WIDER Twice as radius in AVP! App based- Extensible You can extend the core code by building your own application over the top Why use DIAMETER over the RADIUS?
  • 4. One More reason Once subscriber reached to purchased quota, The diameter client will trigger an event to inform the server, However in radius-based network you have to wait for the incoming Accounting-Interim to trigger this action which is considered a revenue leakage
  • 5. Protocol Stack Supported Protocols Standard / Specification Used Diameter IETF RFC 3588 S6a, S6d, S13 - 3GPP TS 29.272 V10.3.0 Rx - 3GGP TS 29214-b10 Cx/Dx - 3GPP TS 29.228 & TS29.229 Gx - 3GPP TS 29.212 & TS 23.203 Sh - 3GGP TS 29.328 & TS 29.329 Gy/Ro (DCCA)- 3GGP TS 32.225, 3GPP TS 32.299 and IETFRFC 4006 SCTP RFC 4960 TCP RFC793
  • 7. Diameter Elements MME (Mobility Management Entity) HSS (Home Subscriber Server) EIR (Equipment Identity Register) CSCF (Call Session Control Function) PCRF (Policy and Charging Rules Function) PCEF (Policy and Charging Enforcement Function) SGSN (Serving GPRS Support Node) PDN GW (Packet Data Network Gateway)
  • 8. CCA We will discuss this scenario later! Through passing CGI (Cell Global Identifier) and RAI (Routing Area Identifier) from PCEF (GGSN) to PCRF in Event-Trigger AVP Support Roaming(Inter-PLMN)!
  • 9. Diameter Core Protocol Application1 (Gx) Application2 (SIP) • Diameter allow you to write a new application as an extension to base code. these apps not a software app but a new protocols that use diameter original code • The Diameter protocol will replace the SS7 and SIGTRAN by introducing a new Interfaces (Apps!) that will connect to HSS Diameter Applications
  • 10. Diameter RADIUS Transportation Protocol Connection-Oriented Protocols (TCP and SCTP) Connectionless Protocol (UDP) Security Hop-to-Hop, End-to-End Hop-to-Hop Agent Support Relay, Proxy, Redirect, Translation Implicit support, which means the agent behaviors might be implemented in a RADIUS server Capabilities Negotiation Negotiate supported applications and security level Don't support Peer Discovery Static configuration and dynamic lookup Static configuration Server Initiated Message Supported. for example, re- authentication message, Session termination Don't support Maximum Attribute Data Size 16,777,215 octets 255 octets Vendor-specific Support Support both vendor- specific messages and attributes Comparison Between Radius and Diameter
  • 11. Port 3868 Application Layer Req/Answer Style Other Properties
  • 13. • PCEF • IP-CAN • Bearer • PCC New Definitions
  • 15. • An access network that provides Internet Protocol (IP) connectivity. • The term is usually used in cellular context 1 of 3 IP-CAN(IP Connectivity Access Network) New Definitions
  • 16. The IP-CAN domain ends with the GGSN or (P-GW) node and it created after the PCRF install the rules in PCEF 2 of 3 New Definitions IP-CAN
  • 17. • 3GPP-GPRS (0) This value shall be used to indicate that the IP-CAN is associated with a 3GPP GPRS access that is connected to the GGSN based on the Gn/Gp interfaces and is further detailed by the RAT-Type AVP. RAT-Type AVP will include applicable 3GPP values, except EUTRAN. • DOCSIS (1) This value shall be used to indicate that the IP-CAN is associated with a DOCSIS access. • xDSL (2) This value shall be used to indicate that the IP-CAN is associated with an xDSL access. • WiMAX (3) This value shall be used to indicate that the IP-CAN is associated with a WiMAX access (IEEE 802.16). 3 of 3 IP-CAN Types New Definitions
  • 18. • 3GPP2 (4) This value shall be used to indicate that the IP-CAN is associated with a 3GPP2 access connected to the 3GPP2 packet core as specified in 3GPP2 X.S0011 [20] and is further detailed by the RAT- Type AVP. AVP. • 3GPP-EPS (5) This value shall be used to indicate that the IP-CAN associated with a 3GPP EPS access and is further detailed by the RAT- Type AVP. • Non-3GPP-EPS (6) This value shall be used to indicate that the IP-CAN associated with an EPC based non-3GPP access and is further detailed by the RAT-Type 3 of 3 IP-CAN Types New Definitions
  • 19. Capacity 1 Delay 1 Bit-Error Rate 1 Capacity 2 Delay 2 Bit-Error Rate 2 Bearer 1 Bearer 2UE The Bearer is created inside IP-CAN according the service requirement. If you have VoLTE service that need high bandwidth with low latency, and browsing service that work on best effort then you need two Bearers for the same IP- CAN with different QoS New Definitions 1 of 2 Bearer
  • 20. Default bearer Dedicated bearer for VoIP for example APN-Aggregate-Max-Bitrate-UL=1M APN-Aggregate-Max-Bitrate-DL=2M Max-Requested-Bandwidth-UL=10M Max-Requested-Bandwidth-DL=10M Bearer-Identifier=999 Default-EPS-Bearer-QoS AVP QoS-Information AVP 2 of 2 New Definitions Bearer AVP
  • 21. This is Policy and Charging Control. It could be either Dynamic (Rules are pushed from PCRF to PCEF) or Static (PCRF just Activate or Deactivate the pre-defined rules in PCEF) Dynamic Static 1 of 1 New Definitions PCC
  • 24. • Each command is either a request or answer is assigned a command code • The request or answer is identified via the ’R’ bit in the Command Flags field of the header. Command Code
  • 27. Capabilities-Exchange CER CEA 1 • A negotiation message between diameter peers to agree on supported applications • Command Code Number : 257 • Diameter peers use it to create peer table • Message Exchange advertise the following: • Peer Identity • Use the secure transport or not • SCTP Host address Command Code
  • 28. Device-Watchdog-Request DWR DWA • A keep alive message between the diameter peers to watch the status and availability • Command Code Number : 280 Keep Alive, We need You JIM! 2 Command Code
  • 30. R(Request),P (Proxiable), E (Error Response) T(Re-Transmission of Request) Here it’s a Request message sent to peer Command Flags
  • 32. Multiple Diameter AVPairs can be grouped inside one large AVP AVPairs
  • 33. Session-Id1 AVP: Session-Id(263) l=47 f=-M- val=qps.tedata.net;4FD78691;5458;3B9ACA00;0 AVPairs • The Session Identifier for the Subscriber • Never Changed as long as the Subscriber session is up • Consist of the diameter peer name followed by unique number
  • 34. • Each vendor create application should have a unique vendor ID Vendor-Id2 AVPairs
  • 35. • Identify the broadcasted Diameter Origin Peer Name • Example : Origin-Host : pcef1.tedata.net.eg Origin-Host3 AVPairs
  • 36. Origin-Realm4 AVPairs • Identify the broadcasted Diameter Origin Realm • Example : Origin-Realm : tedata.net.eg
  • 37. Destination-Realm5 AVPairs • Identify the broadcasted Diameter Origin Realm • Example : Destination-Realm : Sandvine.com
  • 38. Destination-Host6 AVPairs • Identify the broadcasted Diameter Destination Realm • Example : Destination-Host : PTS.sandvine.com
  • 39. Host-IP-Address7 • The Source IP address that initiate the Diameter message • Sent in HEX format • Example : Host-IP-Address: 1.1.1.7 • Use the below website to obtain the hex value from IP Address http://ncalculators.com/digital-computation/ip-address-hex- decimal-binary.htm Padding 0x0001 0x00010A8347AC AVPairs
  • 40. Event-Trigger8 Sent from PCEF to PCRF to inform it of specific Event occur Example Values: • Event-Trigger: LOSS_OF_BEARER • Event-Trigger: SGSN_CHANGE • Event-Trigger: RAI_CHANGE AVPairs
  • 41. Uniquely identify the supported application ID (Gx, Gy, Vodafone Gx, E///..etc) 3GPP Gx Application ID =16777238, Old was 16777224. Check this link http://www.iana.org/assignments/aaa-parameters/aaa-parameters.xhtml Application ID
  • 42. Credit Control Application1 • Used to identify the credit control application • Associated with CC-Request-Type • INITIAL_REQUEST (CCR-I) or (CCA-I) • UPDATE_REQUEST (CCR-U) or (CCA-U) • TERMINATION_REQUEST (CCR-T) or (CCA-T) Application ID
  • 43. Auth-Application-Id The Auth-Application-Id AVP (AVP Code 258) is used in order to advertise support of the Authentication and Authorization portion of an application. The Auth-Application-Id MUST also be present in all Authentication and/or Authorization messages that are defined in a separate Diameter specification and have an Application ID assigned. Acct-Application-Id The Acct-Application-Id AVP (AVP Code 259) is used in order to advertise support of the Accounting portion of an application The Acct-Application-Id MUST also be present in all Accounting messages. Exactly one of the Auth- Application-Id and Acct-Application-Id AVPs MAY be present. AVPairs
  • 44. Developed Application Authentication Portion of application Authorization Portion of application Accounting Portion of application Diameter Core Auth-Application-Id AVP Acct-Application-Id AVP 109 Application-Id Vendor-Id AVPairs Summary
  • 45. Diameter Agents RELAY PROXY Redirect Translator Route message without changing it Route message and can change it Don’t route the message but can provide routing info Translate between Radius and Diameter What’s the role of your server?
  • 47.  Build over Diameter Core Protocol  Provide a framework for real-time charging  The application specifies methods for:  Quota management (Reserve, Reauthorize, Abandon)  Simple Debit/Credit  Balance checks  Price inquiries  Does not specify which type units are bought/used  CCR/CCA Credit Control
  • 49. The purpose of the diameter credit control application is to provide a framework for real-time charging, primarily meant for the communication between gateways/control-points and the back-end account/balance systems (typically an Online Charging System) Command Code = 272 Auth-Application-Id=4 Credit Control
  • 50. Credit-Control-Request (CCR) Command The Credit-Control-Request message (CCR) is indicated by the command-code field being set to 272 and the 'R' bit being set in the Command Flags field. It is used between the Diameter credit-control client and the credit-control server to request credit authorization for a given service. The Auth-Application-Id MUST be set to the value 4, indicating the Diameter credit-control application. Credit Control Request(CCR)
  • 51.  CCA Command sent from PCRF to PCEF as a response to CCR  Provide PCEF with the following info  PCC rules  Event Trigger (When to report an event back to PCRF)  Selected bearer control mode for the IP-CAN session Credit Control Answer(CCA)
  • 52. Gx Policy Enforcement Gy Gz CDR sent to OFCSCDR sent to OCS Credit Control Interfaces
  • 53. PCEF/DPI CC-Request- Type=Initial Credit Control Answer ReAuthorization Request ReAuthorization Answer Note the request is sent using the Subscriber Name and IP address received from Radius accounting ThisiscalledIP- CANsession 1-Subscriber is connected to BNG which will send accounting start to AAA. 2-AAA will proxy accounting to DPI contains the username and IP Address 3-user start to browse internet and send traffic through the DPI 4-DPI will stop the traffic and will send CCR-I with IP address to PCRF. Smth like query to get the username 5-PCRF will consult the SPR and will return the policies in CCA Attach to Network 1
  • 54. 1-PGW send CCR-I with Subscriber-Id (IMSI or MSISDN or etc...) and Framed- IP (IP address what network give for this device) to PCRF 2-PCRF calculate user tariff and respond policy or bearer settings Calculate Tariff in real time 2
  • 55.  Interface between PCEF (BNG/DPI/GGSN) and PCRF  PCRF send PCC rules to be installed on PCEF  Upon receive of an Event-Trigger, PCRF can puch a new PCC rule over Gx for new bearer creation Gx Interface
  • 56.  Interface between PCEF (BNG/DPI/GGSN) and OCS  Used for Online Charging (Pre-Paid)  Used to take real-time decision on tired services Gy Interface
  • 57.  Interface between PCEF (BNG/DPI/GGSN) and OFCS  Used for Offline Charging (Post-Paid)  offline charging is a mechanism where charging information does not affect, in real-time, the service rendered. Gz Interface
  • 59. Username Identifier • Subscriber username sent in Subscription-Id AVP • Subscription-Id consist of two AVPs – Subscription-Id Type • Type of connected subscriber (Mobile, ADSL..etc) – Subscription-Id value
  • 60. <Subscription-Id> <Subscription-Id-Type Value="END_USER_SIP_URI" /> <Subscription-Id-Data Value="sip:+3251001011@tedata.net.eg" /> </Subscription-Id> <Subscription-Id> <Subscription-Id-Type Value="END_USER_NAI" /> <Subscription-Id-Data Value=“basim@tedata.net.eg" /> </Subscription-Id> 1 2 For VoLTE (Mobile Operator) For xDSL/FTTx ISP Subscription-Id
  • 61. Credit Control PCEF Sample Configuration(1/3) #vi /usr/local/sandvine/etc/diam_peer_config.xml <diameter-peer> <peers> <peer> <identity>host1.freepcrf.com</identity> <hostname>1.1.1.90</hostname> <realm>freepcrf.com</realm> <port>3868</port> <bias>2</bias> <dictionaries> <dictionary>Rf</dictionary> </dictionaries> </peer> </peers> IP Address for PCRF Supported App
  • 62. Credit Control PCEF Sample Configuration(2/3) #vi /usr/local/sandvine/etc/diam_peer_config.xml <identities> <local-identity> <identity>PTS.tedata.net</identity> <display-name>PTS.tedata.net</display-name> <realm>tedata.net</realm> <dictionaries> <dictionary>Rf</dictionary> </dictionaries> <client-config> <watchdog-timeout>10</watchdog-timeout> <cea-timeout>5</cea-timeout> <connection-timeout>1</connection-timeout> </client-config> </local-identity> </identities>s Identify PCEF identity Supported App Watchdog parameters
  • 63. Credit Control PCEF Sample Configuration(3/3) • Identify Destination Realm • Identify the Original Realm • Identify the IP_CAN_TYPE = ADSL • Identify the Subscription-id type = NAI • Identify the Subscription-id value Sandvine DPI PTS
  • 65. First thing that you should notice inside the diameter protocol packets is the Command Code AVP and CC-Request-Type AVP that indicates the type of request whether it’s INITIATE(CCR-I) or UPDATE or TERMINIATE..etc Request - Initial CC CCR-I Credit Control PCAP
  • 67. • Seagull is a free, Open Source (GPL) multi- protocol traffic generator test tool. • powerful traffic generator • Used for stress testing • Developed by HP • Coded using C++ • Simulation tool developed by HP to simulate different protocols • SIP • Diameter • Radius • Support Linux (Centos/Debian) and Windows (Through cygwin Seagull http://gull.sourceforge.net/
  • 69. Install Seagull2 #tar zxvf seagull-1.8.2-Linux_RHEL6U1_X86_64.tar.gz #cd packages/ #wget ftp://ftp.pbone.net/mirror/ftp5.gwdg.de/pub/opensuse/repositories/ho me:/csbuild:/DBA/RedHat_RHEL-6/x86_64/dba-openssl-098o-0.9.8o- 2.2.x86_64.rpm #rpm -ivh dba-openssl-098o-0.9.8o-2.2.x86_64.rpm #rm dba-openssl-098o-0.9.8o-2.2.x86_64.rpm #rpm -ivh seagull-core-1.8.2-linux-2.6-intel.rpm #rpm -ivh seagull-diameter-protocol-1.8.2-linux-2.6-intel.rpm #rpm -ivh seagull-external-lib-sctp-1.8.2-linux-2.6-intel.rpm #rpm -ivh seagull-trans-sctp-1.8.2-linux-2.6-intel.rpm #rpm -ivh seagull-trans-tls-1.8.2-linux-2.6-intel.rpm #rpm -ivh seagull-radius-protocol-1.8.2-linux-2.6-intel.rpm Seagull
  • 70. Define the correct client configuration3 #vim /opt/seagull/diameter/config/conf.client.xml Define the correct dictionary file to be used for both client and server4 #vim /opt/seagull/diameter/config/base_cc.xml Define the scenario5 #vim /opt/seagull/diameter/scenario/ccr-cca.client.xml Seagull
  • 71. Create Run script to use the files you created before6 #cd /opt/seagull/diameter/run #vim start_client_gx_ccr_cca.ksh #!/bin/ksh export LD_LIBRARY_PATH=/usr/local/bin seagull -conf /opt/seagull/diameter/config/conf.client.xml -dico /opt/seagull/diameter/config/base_cc.xml -scen /opt/seagull/diameter/scenario/ccr-cca.client.xml -log /opt/seagull/diameter/logs/ccr-cca.client.log -llevel ET Run the test7 cd /opt/seagull/diameter/run ./start_client_gx_ccr_cca.ksh Seagull
  • 72. Configure Client (PCEF)  Create Channel (Diam version..)  Whom to open channel with (PCRF IP)  Call ch (Rate/timeout/max number..)  Load external data  Where to log the events #vim /opt/seagull/diameter/config/conf.client.xml Seagull
  • 73. Configure Dictionary  Diameter header (CMD, HbH, EtE..)  Diameter base AVP with their values  Define diameter commands structure (CER, CCR, RAR..)  Here you should define any vendor-spcefic attributes (next slide) #vim /opt/seagull/diameter/config/base_cc.xml Seagull
  • 75. Configure Scenario  Configure init section (configure both Send & Receive tags that negotiate CER)  Configure traffic section (configure both Send & Receive tags that send actual traffic) #vim /opt/seagull/diameter/scenario/ccr- cca.client.xml Seagull
  • 76. Run  Connecting the dots  Identify the config location  Identify the dictionary location  Identify the scenario  Identify where to store the log  Identify the debug level #vim /opt/seagull/diameter/run/start_client_cc.ksh #export LD_LIBRARY_PATH=/usr/local/bin #seagull -conf ../config/conf.client.xml -dico ../config/base_cc.xml -scen ../scenario/ccr-cca.client.xml -log ../logs/ccr-cca.client.log -llevel ET If you can’t find seagull command, then copy content of seagull bin folder the package to /usr/bin directory You may need to install KSH package from YUM/apt-get Seagull

Hinweis der Redaktion

  1. #
  2. #
  3. #
  4. #
  5. #
  6. #
  7. #
  8. #
  9. #
  10. #
  11. #
  12. #
  13. #
  14. #
  15. #
  16. #
  17. #
  18. #
  19. #
  20. #
  21. #
  22. #
  23. #
  24. #
  25. #
  26. #
  27. #
  28. #
  29. #
  30. #
  31. #
  32. #
  33. #
  34. #
  35. #
  36. #
  37. #
  38. #
  39. #
  40. #
  41. #
  42. #
  43. #