Diameter Base Protocol (RFC6733)

Slides:



Advertisements
Similar presentations
Chapter 16. Windows Internet Name Service(WINS) Network Basic Input/Output System (NetBIOS) N etBIOS over TCP/IP (NetBT) provides commands and support.
Advertisements

CST Computer Networks NAT CST 415 4/10/2017 CST Computer Networks.
Transitioning to IPv6 April 15,2005 Presented By: Richard Moore PBS Enterprise Technology.
資 管 Lee Lesson 12 IPv6 Mobility. 資 管 Lee Lesson Objectives Components of IPv6 mobility IPv6 mobility messages and options IPv6 mobility data structures.
Socket Layer Security. In this Presentation: need for web security SSL/TLS transport layer security protocols HTTPS secure shell (SSH)
CCNA – Network Fundamentals
Module 5: TLS and SSL 1. Overview Transport Layer Security Overview Secure Socket Layer Overview SSL Termination SSL in the Hosted Environment Load Balanced.
Lionel Morand DIME WG IETF 79 Diameter Design Guidelines Thursday, November 11, 2010 Lionel Morand.
Diameter Tutorial - IETF67
K. Salah 1 Chapter 31 Security in the Internet. K. Salah 2 Figure 31.5 Position of TLS Transport Layer Security (TLS) was designed to provide security.
Ch. 1 – Scaling IP Addresses NAT/PAT and DHCP CMPSC-358 (CCNA 4 ) Spring 2007.
Chapter 13 Mobile IP. Outline  ADDRESSING  AGENTS  THREE PHASES  AGENT DISCOVERY  REGISTRATION  DATA TRANSFER  INEFFICIENCY IN MOBILE IP.
BOOTP and DHCP Shivkumar Kalyanaraman Rensselaer Polytechnic Institute
CASP – Cross- Application Signaling Protocol Henning Schulzrinne August 27, 2002.
Host Configuration: BOOTP and DHCP
WXES2106 Network Technology Semester /2005 Chapter 8 Intermediate TCP CCNA2: Module 10.
Domain Name System ( DNS )  DNS is the system that provides name to address mapping for the internet.
Chapter 18 RADIUS. RADIUS  Remote Authentication Dial-In User Service  Protocol used for communication between NAS and AAA server  Supports authentication,
Brian Dwyer – CITA370. Introduction  Network Device Security  Identity Management AAA Process Model ○ Authentication ○ Authorization ○ Accounting (Sometimes.
1 RFC 3486 Compressing the Session Initiation Protocol (SIP) 曾朝弘 電機系 系統組 碩士班一年級.
Host Identity Protocol
Dynamic Host Configuration Protocol (DHCP)
Bootstrap and Autoconfiguration (DHCP)
1 3 Web Proxies Web Protocols and Practice. 2 Topics Web Protocols and Practice WEB PROXIES  Web Proxy Definition  Three of the Most Common Intermediaries.
Networking Basics TCP/IP TRANSPORT and APPLICATION LAYER Version 3.0 Cisco Regional Networking Academy.
What is a Protocol A set of definitions and rules defining the method by which data is transferred between two or more entities or systems. The key elements.
Chapter 6: Packet Filtering
Unicast Routing Protocols  A routing protocol is a combination of rules and procedures that lets routers in the internet inform each other of changes.
Connect. Communicate. Collaborate Combining RADIUS with Secure DNS for Dynamic Trust Establishment between Domains Henk Eertink †, Arjan Peddemors †, Roy.
Sistem Jaringan dan Komunikasi Data #9. DNS The Internet Directory Service  the Domain Name Service (DNS) provides mapping between host name & IP address.
Draft-campbell-dime-load- considerations-01 IETF 92 DIME Working Group Meeting Dallas, Texas.
© 2008 Cisco Systems, Inc. All rights reserved.Cisco ConfidentialPresentation_ID 1 Chapter 7: Transport Layer Introduction to Networking.
Objectives Configure routing in Windows Server 2008 Configure Routing and Remote Access Services in Windows Server 2008 Network Address Translation 1.
Networks – Network Architecture Network architecture is specification of design principles (including data formats and procedures) for creating a network.
TCP/IP Essentials A Lab-Based Approach Shivendra Panwar, Shiwen Mao Jeong-dong Ryoo, and Yihan Li Chapter 5 UDP and Its Applications.
Module 3: Designing IP Addressing. Module Overview Designing an IPv4 Addressing Scheme Designing DHCP Implementation Designing DHCP Configuration Options.
Web Security : Secure Socket Layer Secure Electronic Transaction.
Diameter Group Signaling Tuesday, July 31 st, 2012 draft-ietf-diameter-group-signaling-00 Mark Jones, Marco Liebsch IETF 84 Vancouver, Canada.
IPv6. Content  History  IPv4 Downfall  IPv6 Features  IPv6 Addresses  Changes from IPv4  IPv6 Headers/Frames/Packets  Autoconfiguration  Commands.
QUALCOMM Incorporated 1 Protocol Options for BSN- BSMCS Controller Interface Jun Wang, Kirti Gupta 05/16/2005 Notice: Contributors grant a free, irrevocable.
July 16, Diameter EAP Application (draft-ietf-aaa-eap-02.txt) on behalf of...
TCP/IP Honolulu Community College Cisco Academy Training Center Semester 2 Version 2.1.
DNS SRV and NAPTR Use for SPEERMINT - Tom Creighton, Gaurav Khandpur Comcast SPEERMINT Intermin Meeting Philadelphia Sept
Guide to TCP/IP, Third Edition Chapter 8: The Dynamic Host Configuration Protocol.
Understanding IPv6 Slide: 1 Lesson 12 IPv6 Mobility.
1 Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. Dynamic Host Configuration Protocol (DHCP)
© 2007 Cisco Systems, Inc. All rights reserved.Cisco Public 1 Version 4.0 Connecting to the Network Introduction to Networking Concepts.
EAP Keying Framework Draft-aboba-pppext-key-problem-06.txt EAP WG IETF 56 San Francisco, CA Bernard Aboba.
SOCKS By BITSnBYTES (Bhargavi, Maya, Priya, Rajini and Shruti)
IETF66 DIME WG John Loughney, Hannes Tschofenig and Victor Fajardo 3588-bis: Current Issues.
IETF68 DIME WG Open Issues for RFC3588bis Victor Fajardo (draft-ietf-dime-rfc3588bis-02.txt)
Firewalls A brief introduction to firewalls. What does a Firewall do? Firewalls are essential tools in managing and controlling network traffic Firewalls.
IEEE MEDIA INDEPENDENT HANDOVER DCN: Title: ID Definition Date Submitted: July 14, 2006 Presented at IEEE session in San.
DHCP Vrushali sonar. Outline DHCP DHCPv6 Comparison Security issues Summary.
1 Review – The Internet’s Protocol Architecture. Protocols, Internetworking & the Internet 2 Introduction Internet standards Internet standards Layered.
Label Distribution Protocols LDP: hop-by-hop routing RSVP-TE: explicit routing CR-LDP: another explicit routing protocol, no longer under development.
Diameter Group Signaling Thursday, March 6 th, 2014 draft-ietf-diameter-group-signaling-03 Mark Jones, Marco Liebsch, Lionel Morand IETF 89 London, U.K.
Netprog: Chat1 Chat Issues and Ideas for Service Design Refs: RFC 1459 (IRC)
DIME WG IETF 84 Diameter Design Guidelines draft-ietf-dime-app-design-guide-15 Tuesday, July 31, 2012 Lionel Morand.
Cryptography CSS 329 Lecture 13:SSL.
Process-to-Process Delivery:
Chapter 9: Transport Layer
Instructor Materials Chapter 9: Transport Layer
Open issues with PANA Protocol
BOOTP and DHCP Objectives
NET323 D: Network Protocols
Subject Name: Computer Communication Networks Subject Code: 10EC71
Chat Refs: RFC 1459 (IRC).
NET323 D: Network Protocols
Computer Networks Protocols
Presentation transcript:

Diameter Base Protocol (RFC6733) Session #1 Author: Victor I. Fajardo Date: Sept. 25, 2013 Diameter Session #1

Agenda History of the Diameter Protocol Protocol Details How did it evolve Major Features Protocol Details Overview Base protocol Diameter applications Protocol Framing Header AVPs Diameter Session #1

User Session State machines Diameter Peers Connection State machine Transport Capabilities exchange Message Processing Request Routing Answer processing User Session State machines Stateful and Stateless Error Handling Questions Diameter Session #1

History of the Diameter Protocol Evolution Developed in 1998 to overcome the limitations of RADIUS Evolution of true AAA framework Diverged from RADIUS compatibility as protocol was being developed RFC3588 - initial version RFC6733 – current version Diameter Session #1

Major Features Reliable transport protocols (TCP or SCTP, not UDP) Network or transport layer security (IPsec or TLS) Transition support for RADIUS, although Diameter is not fully compatible with RADIUS Larger address space for attribute-value pairs (AVPs) and identifiers (32 bits instead of 8 bits) Client-Server protocol, with the exception of supporting some server-initiated messages as well Both stateful and stateless models can be used Dynamic discovery of peers (using DNS SRV and NAPTR) Capability negotiation Diameter Session #1

Major Features - Continued Supports application layer acknowledgements, defines failover methods and state machines (RFC 3539) Error notification Better roaming support More easily extended; new commands and attributes can be defined Aligned on 32-bit boundaries Basic support for user-sessions and accounting Diameter Session #1

Protocol Details Base protocol Transport Application ID Transport Profile in RFC3539 Mandatory support for TLS and TCP (port 3868) on server nodes. TCP for client nodes. Connector MUST run on port 5658 Security - TLS Guidelines on SCTP Application ID Globally unique ID to identify applications and associated messages MUST have an accompanying RFC Connections vs. Session Connection is establishment of transport Session is the exchange of diameter messages Diameter Session #1

Peer Table List of known diameter adjacent peers Maintains connectivity state peer known peer Table Entry Description Host Identity FQDN (Fully qualified domain name) of the diameter peer/node Status Current state of the connection. Peer state machine state. Static or Dynamic Is the peer dynamically (via DNS) or statically configured Expiration Time For dynamically discovered peer, how long before refreshing the connection Connection type TLS/TCP and DTLS/SCTP Diameter Session #1

Topology of Diameter Peer companyB.com companyA.com ServerD ServerA ServerB ServerC ServerE Message Request Routing Destination-Realm = companyB.com Destination-Host=ServerD.companyB.com Red Line - Peer connectivity Blue Line – Session connectivity Diameter Session #1

Routing Table Table Entry Description Realm Name Realm being serviced by this diameter node. Longest match during lookup. Application ID Application ID supported by this route Local Action Dictates how the request message will be by the node (LOCAL, PROXY, RELAY or REDIRECT) Server ID FQDN of the server servicing the request Static or Dynamic Whether this route was dynamically discovered or not Expiration Time For dynamically discovered routes. How long before refresh. Diameter Session #1

Role of Diameter Agents Agent Functions Relay Agent General request routing Proxy Agent Stateful processing Redirect Agent Stateless processing Redirect function NAS Agent Home Server A Home Server B Relay and/or Proxy functions Diameter Session #1

Diameter Header Format Key Fields: Command Code – Specific command of this application Application ID – The Diameter application this message belongs to Hop-by-Hop ID – Used to match replies for a previous request Diameter Session #1

Diameter Message Format Diameter Message is composed of A diameter Header Followed by one or more Diameter AVP’s Defined by a a an ABNF Diameter Message Header Fixed AVP(s) Mandatory AVP(s) Optional AVP(s) Diameter Session #1

Diameter AVP Format Definition of an AVP AVP – Attribute Value Pair Makes up the message body of a diameter messge Key Fields: AVP Code – Unique AVP number Flags – Tells whether this is vendor specific or part of the standard. It also indicates whether this is a mandatory AVP or not. New AVP’s can be derived from existing AVP Diameter Session #1

Diameter AVP Format Data formats for AVP are defined by the base protocol All AVP’s MUST conform to this format Important data formats DiameterIdentity Used for identifying a diameter node FQDN/Realm of a node DiameterURI Also used for identifying a diameter node with extra information "aaa://" FQDN [ port ] [ transport ] [ protocol ] "aaas://" FQDN [ port ] [ transport ] [ protocol ] transport-protocol = ( "tcp" / "sctp" / "udp" ) aaa-protocol = ( "diameter" / "radius" / "tacacs+" ) Example: aaa://host.example.com:6666;transport=tcp Diameter Session #1

Diameter AVP Format Grouped-AVPs Session-Id AVPS Other important AVP’s Destination-Host Destination-Realm Origin-Host Origin- Realm Diameter Session #1

Base Protocol Command Codes Commands for Peer connection maintenance Commands for User connection maintenance Diameter Session #1

Diameter Peer State Machine Peer Discovery Use of DNS and NAPTR records Capabilities exchange Use CER/CEA to exchange node capability Negotiate security between diameter nodes Negotiate common diameter applications Announce Firmware-Revision of a diameter node Declares all Host-IP address to be used for SCTP multi-homing Exchange of keep-alive test Watch-Dog exchange Allow for election Two(2) peers can negotiate who will initiate a connection between them Diameter Session #1

Diameter Peer State Machine Diameter Session #1

Diameter Peer State Machine Diameter Session #1

Diameter Request Routing Done via Realms and Application ID’s Request that can be forwarded uses Destination-Realm In case of NAS’s the realm can be retrieved in the User-Name AVP (NAI) Predictive-Loop avoidance Each node that forwards a request will add its identity to a Route-Record AVP Redirecting request Built-in load balancer Stateless method to tell the sender of the request to forward the message to another node Relaying and Proxy Relay is basic request forwarding Proxy provides extra processing prior to forwarding Can keep state Answer Processing Route answers via Hop-by-Hop identifier Validation of Session-Id Diameter Session #1

Diameter Request Routing Rules Request that cannot be forwarded MUST not have Destination-Realm and Destination-Host Request used to establish connectivity Request sent to the home realm but not a specific server Can be re-routed by a redirect agent Use Destination-Realm No Destination-Host Request sent to a specific home server Use Destination-Host Validation of shared keys if any Diameter Session #1

Special Note on Relay and Redirection Diameter Session #1

Diameter User State Machine Applications define the state machine Base protocol defines Authorization state machine Accounting state machine Both are historical models for AAA frameworks Contemporary diameter application defines stateless models with single request/response exchanges Diameter Session #1

Diameter Client Stateless Session Diameter Session #1

Diameter Server Stateful Session Diameter Session #1

Diameter Server Stateful Session Diameter Session #1

Diameter Error Handling Result-Code error types Informational – can be used as a hint or warning of impending severe errors Protocol – indication of a problem with implementation Message validation errors Transient and Permanent – Indication of environmental/system issues Connection errors Routing errors Application specific errors Fail-Over and Fail-back Diameter Session #1

Questions ? Diameter Session #1