SlideShare uma empresa Scribd logo
1 de 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

Mais conteúdo relacionado

Mais procurados

VoWifi 03 - vowifi epdg aaa and architecture (pdf ppt)
VoWifi 03 - vowifi epdg aaa and architecture (pdf ppt)VoWifi 03 - vowifi epdg aaa and architecture (pdf ppt)
VoWifi 03 - vowifi epdg aaa and architecture (pdf ppt)Vikas Shokeen
 
LTE Call Processing and Handover
LTE Call Processing and HandoverLTE Call Processing and Handover
LTE Call Processing and HandoverSitha Sok
 
Lte ue initial attach & detach from networkx
Lte ue initial attach & detach from networkxLte ue initial attach & detach from networkx
Lte ue initial attach & detach from networkxtharinduwije
 
2G / 3G / 4G / IMS / 5G Overview with Focus on Core Network
2G / 3G / 4G / IMS / 5G Overview with Focus on Core Network2G / 3G / 4G / IMS / 5G Overview with Focus on Core Network
2G / 3G / 4G / IMS / 5G Overview with Focus on Core NetworkHamidreza Bolhasani
 
EPG PGW SAPC SACC PISC Configuration
EPG PGW SAPC SACC PISC ConfigurationEPG PGW SAPC SACC PISC Configuration
EPG PGW SAPC SACC PISC ConfigurationMustafa Golam
 
LTE Testing | 4G Testing
LTE Testing | 4G TestingLTE Testing | 4G Testing
LTE Testing | 4G TestingIxia
 
LTE Architecture and LTE Attach
LTE Architecture and LTE AttachLTE Architecture and LTE Attach
LTE Architecture and LTE Attachaliirfan04
 
SGSN- serving gprs support node - Platform - HW, SW and CLI
SGSN- serving gprs support node  - Platform - HW, SW and CLI SGSN- serving gprs support node  - Platform - HW, SW and CLI
SGSN- serving gprs support node - Platform - HW, SW and CLI Mustafa Golam
 
LTE network: How it all comes together architecture technical poster
LTE network: How it all comes together architecture technical posterLTE network: How it all comes together architecture technical poster
LTE network: How it all comes together architecture technical posterDavid Swift
 
VoLTE_SRVCC_E2Erevised
VoLTE_SRVCC_E2ErevisedVoLTE_SRVCC_E2Erevised
VoLTE_SRVCC_E2ErevisedAmit Deshmukh
 
5G Network Architecture and Design
5G Network Architecture and Design5G Network Architecture and Design
5G Network Architecture and Design3G4G
 
volte ims network architecture
volte ims network architecturevolte ims network architecture
volte ims network architectureVikas Shokeen
 
Volte troubleshooting
Volte troubleshootingVolte troubleshooting
Volte troubleshootingJamil Awan
 
Lte system signaling procedures
Lte system signaling proceduresLte system signaling procedures
Lte system signaling procedurestharinduwije
 
IMS Registration Flow
IMS Registration FlowIMS Registration Flow
IMS Registration FlowKent Loh
 
Csfb (circuit switch fall back)
Csfb (circuit switch fall back)Csfb (circuit switch fall back)
Csfb (circuit switch fall back)Rishi Mahajan
 

Mais procurados (20)

VoWifi 03 - vowifi epdg aaa and architecture (pdf ppt)
VoWifi 03 - vowifi epdg aaa and architecture (pdf ppt)VoWifi 03 - vowifi epdg aaa and architecture (pdf ppt)
VoWifi 03 - vowifi epdg aaa and architecture (pdf ppt)
 
LTE Call Processing and Handover
LTE Call Processing and HandoverLTE Call Processing and Handover
LTE Call Processing and Handover
 
Lte ue initial attach & detach from networkx
Lte ue initial attach & detach from networkxLte ue initial attach & detach from networkx
Lte ue initial attach & detach from networkx
 
2G / 3G / 4G / IMS / 5G Overview with Focus on Core Network
2G / 3G / 4G / IMS / 5G Overview with Focus on Core Network2G / 3G / 4G / IMS / 5G Overview with Focus on Core Network
2G / 3G / 4G / IMS / 5G Overview with Focus on Core Network
 
Lte epc kp is and signalling (sf)
Lte epc kp is and signalling (sf)Lte epc kp is and signalling (sf)
Lte epc kp is and signalling (sf)
 
Rach procedure in lte
Rach procedure in lteRach procedure in lte
Rach procedure in lte
 
EPG PGW SAPC SACC PISC Configuration
EPG PGW SAPC SACC PISC ConfigurationEPG PGW SAPC SACC PISC Configuration
EPG PGW SAPC SACC PISC Configuration
 
2 g data call flow
2 g data call flow2 g data call flow
2 g data call flow
 
LTE Testing | 4G Testing
LTE Testing | 4G TestingLTE Testing | 4G Testing
LTE Testing | 4G Testing
 
LTE Architecture and LTE Attach
LTE Architecture and LTE AttachLTE Architecture and LTE Attach
LTE Architecture and LTE Attach
 
SGSN- serving gprs support node - Platform - HW, SW and CLI
SGSN- serving gprs support node  - Platform - HW, SW and CLI SGSN- serving gprs support node  - Platform - HW, SW and CLI
SGSN- serving gprs support node - Platform - HW, SW and CLI
 
LTE network: How it all comes together architecture technical poster
LTE network: How it all comes together architecture technical posterLTE network: How it all comes together architecture technical poster
LTE network: How it all comes together architecture technical poster
 
VoLTE_SRVCC_E2Erevised
VoLTE_SRVCC_E2ErevisedVoLTE_SRVCC_E2Erevised
VoLTE_SRVCC_E2Erevised
 
Lte signaling
Lte signalingLte signaling
Lte signaling
 
5G Network Architecture and Design
5G Network Architecture and Design5G Network Architecture and Design
5G Network Architecture and Design
 
volte ims network architecture
volte ims network architecturevolte ims network architecture
volte ims network architecture
 
Volte troubleshooting
Volte troubleshootingVolte troubleshooting
Volte troubleshooting
 
Lte system signaling procedures
Lte system signaling proceduresLte system signaling procedures
Lte system signaling procedures
 
IMS Registration Flow
IMS Registration FlowIMS Registration Flow
IMS Registration Flow
 
Csfb (circuit switch fall back)
Csfb (circuit switch fall back)Csfb (circuit switch fall back)
Csfb (circuit switch fall back)
 

Destaque

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...CPqD
 
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
 
Gsm (Part 2)
Gsm (Part 2)Gsm (Part 2)
Gsm (Part 2)Ali Usman
 

Destaque (8)

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...
 
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
 
Diameter Overview
Diameter OverviewDiameter Overview
Diameter Overview
 
Gsm (Part 2)
Gsm (Part 2)Gsm (Part 2)
Gsm (Part 2)
 

Semelhante a 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
 

Semelhante a 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
 

Último

Virtual memory management in Operating System
Virtual memory management in Operating SystemVirtual memory management in Operating System
Virtual memory management in Operating SystemRashmi Bhat
 
ROBOETHICS-CCS345 ETHICS AND ARTIFICIAL INTELLIGENCE.ppt
ROBOETHICS-CCS345 ETHICS AND ARTIFICIAL INTELLIGENCE.pptROBOETHICS-CCS345 ETHICS AND ARTIFICIAL INTELLIGENCE.ppt
ROBOETHICS-CCS345 ETHICS AND ARTIFICIAL INTELLIGENCE.pptJohnWilliam111370
 
Stork Webinar | APM Transformational planning, Tool Selection & Performance T...
Stork Webinar | APM Transformational planning, Tool Selection & Performance T...Stork Webinar | APM Transformational planning, Tool Selection & Performance T...
Stork Webinar | APM Transformational planning, Tool Selection & Performance T...Stork
 
DEVICE DRIVERS AND INTERRUPTS SERVICE MECHANISM.pdf
DEVICE DRIVERS AND INTERRUPTS  SERVICE MECHANISM.pdfDEVICE DRIVERS AND INTERRUPTS  SERVICE MECHANISM.pdf
DEVICE DRIVERS AND INTERRUPTS SERVICE MECHANISM.pdfAkritiPradhan2
 
multiple access in wireless communication
multiple access in wireless communicationmultiple access in wireless communication
multiple access in wireless communicationpanditadesh123
 
Module-1-(Building Acoustics) Noise Control (Unit-3). pdf
Module-1-(Building Acoustics) Noise Control (Unit-3). pdfModule-1-(Building Acoustics) Noise Control (Unit-3). pdf
Module-1-(Building Acoustics) Noise Control (Unit-3). pdfManish Kumar
 
KCD Costa Rica 2024 - Nephio para parvulitos
KCD Costa Rica 2024 - Nephio para parvulitosKCD Costa Rica 2024 - Nephio para parvulitos
KCD Costa Rica 2024 - Nephio para parvulitosVictor Morales
 
Paper Tube : Shigeru Ban projects and Case Study of Cardboard Cathedral .pdf
Paper Tube : Shigeru Ban projects and Case Study of Cardboard Cathedral .pdfPaper Tube : Shigeru Ban projects and Case Study of Cardboard Cathedral .pdf
Paper Tube : Shigeru Ban projects and Case Study of Cardboard Cathedral .pdfNainaShrivastava14
 
Prach: A Feature-Rich Platform Empowering the Autism Community
Prach: A Feature-Rich Platform Empowering the Autism CommunityPrach: A Feature-Rich Platform Empowering the Autism Community
Prach: A Feature-Rich Platform Empowering the Autism Communityprachaibot
 
List of Accredited Concrete Batching Plant.pdf
List of Accredited Concrete Batching Plant.pdfList of Accredited Concrete Batching Plant.pdf
List of Accredited Concrete Batching Plant.pdfisabel213075
 
Python Programming for basic beginners.pptx
Python Programming for basic beginners.pptxPython Programming for basic beginners.pptx
Python Programming for basic beginners.pptxmohitesoham12
 
Comparative study of High-rise Building Using ETABS,SAP200 and SAFE., SAFE an...
Comparative study of High-rise Building Using ETABS,SAP200 and SAFE., SAFE an...Comparative study of High-rise Building Using ETABS,SAP200 and SAFE., SAFE an...
Comparative study of High-rise Building Using ETABS,SAP200 and SAFE., SAFE an...Erbil Polytechnic University
 
『澳洲文凭』买麦考瑞大学毕业证书成绩单办理澳洲Macquarie文凭学位证书
『澳洲文凭』买麦考瑞大学毕业证书成绩单办理澳洲Macquarie文凭学位证书『澳洲文凭』买麦考瑞大学毕业证书成绩单办理澳洲Macquarie文凭学位证书
『澳洲文凭』买麦考瑞大学毕业证书成绩单办理澳洲Macquarie文凭学位证书rnrncn29
 
THE SENDAI FRAMEWORK FOR DISASTER RISK REDUCTION
THE SENDAI FRAMEWORK FOR DISASTER RISK REDUCTIONTHE SENDAI FRAMEWORK FOR DISASTER RISK REDUCTION
THE SENDAI FRAMEWORK FOR DISASTER RISK REDUCTIONjhunlian
 
Research Methodology for Engineering pdf
Research Methodology for Engineering pdfResearch Methodology for Engineering pdf
Research Methodology for Engineering pdfCaalaaAbdulkerim
 
Ch10-Global Supply Chain - Cadena de Suministro.pdf
Ch10-Global Supply Chain - Cadena de Suministro.pdfCh10-Global Supply Chain - Cadena de Suministro.pdf
Ch10-Global Supply Chain - Cadena de Suministro.pdfChristianCDAM
 
Immutable Image-Based Operating Systems - EW2024.pdf
Immutable Image-Based Operating Systems - EW2024.pdfImmutable Image-Based Operating Systems - EW2024.pdf
Immutable Image-Based Operating Systems - EW2024.pdfDrew Moseley
 
System Simulation and Modelling with types and Event Scheduling
System Simulation and Modelling with types and Event SchedulingSystem Simulation and Modelling with types and Event Scheduling
System Simulation and Modelling with types and Event SchedulingBootNeck1
 
TEST CASE GENERATION GENERATION BLOCK BOX APPROACH
TEST CASE GENERATION GENERATION BLOCK BOX APPROACHTEST CASE GENERATION GENERATION BLOCK BOX APPROACH
TEST CASE GENERATION GENERATION BLOCK BOX APPROACHSneha Padhiar
 
Turn leadership mistakes into a better future.pptx
Turn leadership mistakes into a better future.pptxTurn leadership mistakes into a better future.pptx
Turn leadership mistakes into a better future.pptxStephen Sitton
 

Último (20)

Virtual memory management in Operating System
Virtual memory management in Operating SystemVirtual memory management in Operating System
Virtual memory management in Operating System
 
ROBOETHICS-CCS345 ETHICS AND ARTIFICIAL INTELLIGENCE.ppt
ROBOETHICS-CCS345 ETHICS AND ARTIFICIAL INTELLIGENCE.pptROBOETHICS-CCS345 ETHICS AND ARTIFICIAL INTELLIGENCE.ppt
ROBOETHICS-CCS345 ETHICS AND ARTIFICIAL INTELLIGENCE.ppt
 
Stork Webinar | APM Transformational planning, Tool Selection & Performance T...
Stork Webinar | APM Transformational planning, Tool Selection & Performance T...Stork Webinar | APM Transformational planning, Tool Selection & Performance T...
Stork Webinar | APM Transformational planning, Tool Selection & Performance T...
 
DEVICE DRIVERS AND INTERRUPTS SERVICE MECHANISM.pdf
DEVICE DRIVERS AND INTERRUPTS  SERVICE MECHANISM.pdfDEVICE DRIVERS AND INTERRUPTS  SERVICE MECHANISM.pdf
DEVICE DRIVERS AND INTERRUPTS SERVICE MECHANISM.pdf
 
multiple access in wireless communication
multiple access in wireless communicationmultiple access in wireless communication
multiple access in wireless communication
 
Module-1-(Building Acoustics) Noise Control (Unit-3). pdf
Module-1-(Building Acoustics) Noise Control (Unit-3). pdfModule-1-(Building Acoustics) Noise Control (Unit-3). pdf
Module-1-(Building Acoustics) Noise Control (Unit-3). pdf
 
KCD Costa Rica 2024 - Nephio para parvulitos
KCD Costa Rica 2024 - Nephio para parvulitosKCD Costa Rica 2024 - Nephio para parvulitos
KCD Costa Rica 2024 - Nephio para parvulitos
 
Paper Tube : Shigeru Ban projects and Case Study of Cardboard Cathedral .pdf
Paper Tube : Shigeru Ban projects and Case Study of Cardboard Cathedral .pdfPaper Tube : Shigeru Ban projects and Case Study of Cardboard Cathedral .pdf
Paper Tube : Shigeru Ban projects and Case Study of Cardboard Cathedral .pdf
 
Prach: A Feature-Rich Platform Empowering the Autism Community
Prach: A Feature-Rich Platform Empowering the Autism CommunityPrach: A Feature-Rich Platform Empowering the Autism Community
Prach: A Feature-Rich Platform Empowering the Autism Community
 
List of Accredited Concrete Batching Plant.pdf
List of Accredited Concrete Batching Plant.pdfList of Accredited Concrete Batching Plant.pdf
List of Accredited Concrete Batching Plant.pdf
 
Python Programming for basic beginners.pptx
Python Programming for basic beginners.pptxPython Programming for basic beginners.pptx
Python Programming for basic beginners.pptx
 
Comparative study of High-rise Building Using ETABS,SAP200 and SAFE., SAFE an...
Comparative study of High-rise Building Using ETABS,SAP200 and SAFE., SAFE an...Comparative study of High-rise Building Using ETABS,SAP200 and SAFE., SAFE an...
Comparative study of High-rise Building Using ETABS,SAP200 and SAFE., SAFE an...
 
『澳洲文凭』买麦考瑞大学毕业证书成绩单办理澳洲Macquarie文凭学位证书
『澳洲文凭』买麦考瑞大学毕业证书成绩单办理澳洲Macquarie文凭学位证书『澳洲文凭』买麦考瑞大学毕业证书成绩单办理澳洲Macquarie文凭学位证书
『澳洲文凭』买麦考瑞大学毕业证书成绩单办理澳洲Macquarie文凭学位证书
 
THE SENDAI FRAMEWORK FOR DISASTER RISK REDUCTION
THE SENDAI FRAMEWORK FOR DISASTER RISK REDUCTIONTHE SENDAI FRAMEWORK FOR DISASTER RISK REDUCTION
THE SENDAI FRAMEWORK FOR DISASTER RISK REDUCTION
 
Research Methodology for Engineering pdf
Research Methodology for Engineering pdfResearch Methodology for Engineering pdf
Research Methodology for Engineering pdf
 
Ch10-Global Supply Chain - Cadena de Suministro.pdf
Ch10-Global Supply Chain - Cadena de Suministro.pdfCh10-Global Supply Chain - Cadena de Suministro.pdf
Ch10-Global Supply Chain - Cadena de Suministro.pdf
 
Immutable Image-Based Operating Systems - EW2024.pdf
Immutable Image-Based Operating Systems - EW2024.pdfImmutable Image-Based Operating Systems - EW2024.pdf
Immutable Image-Based Operating Systems - EW2024.pdf
 
System Simulation and Modelling with types and Event Scheduling
System Simulation and Modelling with types and Event SchedulingSystem Simulation and Modelling with types and Event Scheduling
System Simulation and Modelling with types and Event Scheduling
 
TEST CASE GENERATION GENERATION BLOCK BOX APPROACH
TEST CASE GENERATION GENERATION BLOCK BOX APPROACHTEST CASE GENERATION GENERATION BLOCK BOX APPROACH
TEST CASE GENERATION GENERATION BLOCK BOX APPROACH
 
Turn leadership mistakes into a better future.pptx
Turn leadership mistakes into a better future.pptxTurn leadership mistakes into a better future.pptx
Turn leadership mistakes into a better future.pptx
 

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

Notas do Editor

  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. #