Souheil Ben Ayed (Keio), Sebastien Decugis (NICT) WIDE AAA ... - Introduction to Diameter.pdf ·...

12
Souheil Ben Ayed (Keio), Sebastien Decugis (NICT) WIDE AAA working group

Transcript of Souheil Ben Ayed (Keio), Sebastien Decugis (NICT) WIDE AAA ... - Introduction to Diameter.pdf ·...

Page 1: Souheil Ben Ayed (Keio), Sebastien Decugis (NICT) WIDE AAA ... - Introduction to Diameter.pdf · Diameter Sessions 2010/3/15 10 Sessions Correlates messages that are related to the

Souheil Ben Ayed (Keio), Sebastien Decugis (NICT)WIDE AAA working group

Page 2: Souheil Ben Ayed (Keio), Sebastien Decugis (NICT) WIDE AAA ... - Introduction to Diameter.pdf · Diameter Sessions 2010/3/15 10 Sessions Correlates messages that are related to the

A short introduction to Diameter

~ 15 minutes

Part I - The Diameter Protocol

2010/3/15

2

Souheil Ben Ayed, Sebastien Decugis

Page 3: Souheil Ben Ayed (Keio), Sebastien Decugis (NICT) WIDE AAA ... - Introduction to Diameter.pdf · Diameter Sessions 2010/3/15 10 Sessions Correlates messages that are related to the

Diameter: AAA protocol

Diameter :

Transports AAA data

Designed for network

access control.

Extensible and

extended

RADIUS evolution

10 years maturity (?)

2010/3/15

3

Souheil Ben Ayed, Sebastien Decugis

Page 4: Souheil Ben Ayed (Keio), Sebastien Decugis (NICT) WIDE AAA ... - Introduction to Diameter.pdf · Diameter Sessions 2010/3/15 10 Sessions Correlates messages that are related to the

Diameter message format

2010/3/15

4

Message header:

Application Id

App 0: Diameter Base Proto

Command-Code & Flags

Ex: Accounting-Request, …

Any number of AVP(s)

Code, flags

Data (integers, strings, …)

Dictionary for AVP

Souheil Ben Ayed, Sebastien Decugis

Page 5: Souheil Ben Ayed (Keio), Sebastien Decugis (NICT) WIDE AAA ... - Introduction to Diameter.pdf · Diameter Sessions 2010/3/15 10 Sessions Correlates messages that are related to the

Diameter : dual scope

2010/3/15

5

One message format, two scopes :

Diameter network management (“Diameter link layer”)

AAA applications data (“Diameter application layer”)

At link layer, Diameter is a peer-to-peer protocol

All nodes are equivalent, forming an overlay network.

At application layer, we have roles:

Clients, agents (ex: proxies), servers.

Souheil Ben Ayed, Sebastien Decugis

Page 6: Souheil Ben Ayed (Keio), Sebastien Decugis (NICT) WIDE AAA ... - Introduction to Diameter.pdf · Diameter Sessions 2010/3/15 10 Sessions Correlates messages that are related to the

Diameter properties

Lower layers :

Reliable (TCP, SCTP)

Secure (IPsec, TLS)

Hop-by-hop model

Mutual authentication

Failover, retransmissions

Traceability

Routing

App. & realm based.

2010/3/15

6

Souheil Ben Ayed, Sebastien Decugis

Page 7: Souheil Ben Ayed (Keio), Sebastien Decugis (NICT) WIDE AAA ... - Introduction to Diameter.pdf · Diameter Sessions 2010/3/15 10 Sessions Correlates messages that are related to the

Diameter link management

Defined in Diameter Base Protocol (RFC3588) :

Messages :

Application Id : 0

Capabilities-Exchange

Device-Watchdog

Disconnect-Peer

Peers State Machines

Not so complex

when you separate initiator

and receiver states

2010/3/15

7

Souheil Ben Ayed, Sebastien Decugis

Page 8: Souheil Ben Ayed (Keio), Sebastien Decugis (NICT) WIDE AAA ... - Introduction to Diameter.pdf · Diameter Sessions 2010/3/15 10 Sessions Correlates messages that are related to the

Diameter Routing and Traceability

2010/3/15

8

Routing :

Some AVP are used for routing: Destination-Realm, [Destination-Host]

May derive from the user NAI ([email protected]) in User-Name

The application id (in header) is also used. Ex: allows EAP messages to reach an EAP server in realm.net

Nodes don’t need a view of the global network The servers may dynamically be discovered from DNS (NAPTR)

Routing of answers is very simple, always reverse path. Mechanism based on end-to-end and hop-by-hop ids.

Traceability :

Each node adds a Route-Record AVP when forwarding.

Souheil Ben Ayed, Sebastien Decugis

Page 9: Souheil Ben Ayed (Keio), Sebastien Decugis (NICT) WIDE AAA ... - Introduction to Diameter.pdf · Diameter Sessions 2010/3/15 10 Sessions Correlates messages that are related to the

Diameter Failover

2010/3/15

9

Reliable lower layer is not sufficient for reliability

Ex: software can crash on a relay during forwarding.

Mechanism of failover :

All requests are kept until answer is received

If the link goes down, the request is re-sent through

another link, or an error is generated.

Souheil Ben Ayed, Sebastien Decugis

Page 10: Souheil Ben Ayed (Keio), Sebastien Decugis (NICT) WIDE AAA ... - Introduction to Diameter.pdf · Diameter Sessions 2010/3/15 10 Sessions Correlates messages that are related to the

Diameter Sessions

2010/3/15

10

Sessions

Correlates messages that are related to the same

service and end-user, using Session-Id AVP. Example:

Several DER/DEA messages for authentication, authorization

Periodical ACR/ACA while the user uses the network

STR/STA at the end of service provision.

The Base Protocol provides the framework to support

these sessions: Session State Machine, commands, AVPs

(ex: Auth-Session-State, ASR/ASA, …)

Souheil Ben Ayed, Sebastien Decugis

Page 11: Souheil Ben Ayed (Keio), Sebastien Decugis (NICT) WIDE AAA ... - Introduction to Diameter.pdf · Diameter Sessions 2010/3/15 10 Sessions Correlates messages that are related to the

Diameter Extensibility

2010/3/15

11

Extensibility of the protocol:

By definition of new AVPs, Commands, and/or Applications.

Vendors-defined AVPs supported.

Many applications are already defined

Ex: Diameter SIP, Credit Control, PMIP6, …

Diameter Base Protocol is specified in RFC3588

Revised soon (?) in RFC3588bis

Simplified state machine, better TLS handling, …

Souheil Ben Ayed, Sebastien Decugis

Page 12: Souheil Ben Ayed (Keio), Sebastien Decugis (NICT) WIDE AAA ... - Introduction to Diameter.pdf · Diameter Sessions 2010/3/15 10 Sessions Correlates messages that are related to the

Any question so far ?

Diameter Base Protocol introduction - End

2010/3/15

12

Souheil Ben Ayed, Sebastien Decugis