Provided by Colasoft Co., Ltd.

RADIUS ( Remote Authentication Dial-In User Service )

Home > Protocols > RADIUS Update: 2005-11-10 16:08:36    I have words to say about this protocol
On this page
SUMMARY
Protocol : Remote Authentication Dial-In User Service
Protocol suite : TCP/IP
Layer : Application Layer
Type : Application protocol
SNMP MIBs : iso.org.dod.internet.mgmt.mib-2.radiusMIB (1.3.6.1.2.1.67)
Ports : 1646 (UDP) obsolete
1812 (UDP) server
1813 (UDP) accounting
3799 dynamic authorization
Related protocols : UDP,
CHAP,
RAP
Working groups : Aaa, Authentication, Authorization and Accounting
Radext, RADIUS Extensions
DESCRIPTION
Radius is a protocol for carrying authentication, authorization, and configuration information between a Network Access Server which desires to authenticate its links and a shared Authentication Server. RADIUS also carries accounting information between a Network Access Server and a shared Accounting Server. Radius uses UDP as the transport protocol.
Authentication, Authorization, and Accounting
Authentication is the process of identifying and verifying a user. Several methods can be used to authenticate a user, but the most common includes a combination of user name and password. Once a user is authenticated, authorization to various network resources and services can be granted. Authorization determines what a user can do, and accounting is the action of recording what a user is doing or has done.

Managing dispersed serial line and modem pools for large numbers of users can create the need for significant administrative support. Since modem pools are by definition a link to the outside world, they require careful attention to security, authorization and accounting. This can be best achieved by managing a single "database" of users, which allows for authentication (verifying user name and password) as well as configuration information detailing the type of service to deliver to the user (for example, SLIP, PPP, telnet, rlogin).

Key features of RADIUS
  • Client/Server Model
    A Network Access Server (NAS) operates as a client of RADIUS. The client is responsible for passing user information to designated RADIUS servers, and then acting on the response which is returned.


  • network Security
    Transactions between the client and RADIUS server are authenticated through the use of a shared secret, which is never sent over the network. In addition, any user passwords are sent encrypted between the client and RADIUS server, to eliminate the possibility that someone snooping on an unsecure network could determine a user's password.


  • Flexible Authentication Mechanisms
    The RADIUS server can support a variety of methods to authenticate a user. When it is provided with the user name and original password given by the user, it can support PPP PAP or CHAP, UNIX login, and other authentication mechanisms.


  • Extensible ProtocolM
    All transactions are comprised of variable length Attribute- Length-Value 3-tuples. New attribute values can be added without disturbing existing implementations of the protocol.



Operation
When a client is configured to use RADIUS, any user of the client presents authentication information to the client. This might be with a customizable login prompt, where the user is expected to enter their username and password. Alternatively, the user might use a link framing protocol such as the Point-to-Point Protocol (PPP), which has authentication packets which carry this information.

Once the client has obtained such information, it may choose to authenticate using RADIUS. To do so, the client creates an "Access-Request" containing such Attributes as the user's name, the user's password, the ID of the client and the Port ID which the user is accessing.

Once the RADIUS server receives the request, it validates the sending client. A request from a client for which the RADIUS server does not have a shared secret MUST be silently discarded.

  • Challenge/Response
    In challenge/response authentication, the user is given an unpredictable number and challenged to encrypt it and give back the result. Authorized users are equipped with special devices such as smart cards or software that facilitate calculation of the correct response with ease. Unauthorized users, lacking the appropriate device or software and lacking knowledge of the secret key necessary to emulate such a device or software, can only guess at the response.


  • Interoperation with PAP and CHAP
    For PAP, the NAS takes the PAP ID and password and sends them in an Access-Request packet as the User-Name and User-Password. The NAS MAY include the Attributes Service-Type = Framed-User and Framed-Protocol = PPP as a hint to the RADIUS server that PPP service is expected.
    For CHAP, the NAS generates a random challenge (preferably 16 octets) and sends it to the user, who returns a CHAP response along with a CHAP ID and CHAP username. The NAS then sends an Access-Request packet to the RADIUS server with the CHAP username as the User-Name and with the CHAP ID and CHAP response as the CHAP-Password.


  • Proxy
    With proxy RADIUS, one RADIUS server receives an authentication (or accounting) request from a RADIUS client (such as a NAS), forwards the request to a remote RADIUS server, receives the reply from the remote server, and sends that reply to the client, possibly with changes to reflect local administrative policy. A common use for proxy RADIUS is roaming. Roaming permits two or more administrative entities to allow each other's users to dial in to either entity's network for service.


  • Why UDP?
    A frequently asked question is why RADIUS uses UDP instead of TCP as a transport protocol. UDP was chosen for strictly technical reasons.
    RADIUS is a transaction based protocol which has several interesting characteristics:
    • A copy of the request must be kept above the transport layer to allow for alternate transmission.

    • The timing requirements of this particular protocol are significantly different than TCP provides.

    • The stateless nature of this protocol simplifies the use of UDP.

    • UDP simplifies the server implementation.


  • Retransmission Hints
    If the RADIUS server and alternate RADIUS server share the same shared secret, it is OK to retransmit the packet to the alternate RADIUS server with the same ID and Request Authenticator, because the content of the attributes haven't changed. If you want to use a new Request Authenticator when sending to the alternate server, you may.


  • Keep-Alives Considered Harmful
    Some implementers have adopted the practice of sending test RADIUS requests to see if a server is alive. This practice is strongly discouraged, since it adds to load and harms scalability without providing any additional useful information. Since a RADIUS request is contained in a single datagram, in the time it would take you to send a ping you could just send the RADIUS request, and getting a reply tells you that the RADIUS server is up.



Packet Format
Header format

8

16

32 bits

Code

Identifier

Length

Authenticator

กก

Attributes



  • Code
    8 bits. Identifies the type of RADIUS packet. If a packet is received with an invalid Code field, it is silently discarded.

  • CodeDescriptionReferences
    1Access-Request.Access-Accept packets are sent by the RADIUS server, and provide specific configuration information necessary to begin delivery of service to the user.
    2Access-Accept.The Identifier field is a copy of the Identifier field of the Access-Request which caused this Access-Accept.
    3Access-Reject.If any value of the received Attributes is not acceptable, then the RADIUS server MUST transmit a packet with the Code field set to 3 (Access-Reject)
    4Accounting-Request.Accounting-Request packets are sent from a client to a RADIUS accounting server, and convey information used to provide accounting for a service provided to a user.
    5Accounting-Response.It is sent by the RADIUS accounting server to the client to acknowledge that the Accounting-Request has been received and recorded successfully.
    6Accounting-Status, Interim Accounting.A RADIUS server issues an Access-Accept in response to a successful Access-Request.
    7Password-Request.
    8Password-Ack.
    9Password-Reject.
    10Accounting-Message
    11Access-Challenge.If the RADIUS server desires to send the user a challenge requiring a response, then the RADIUS server MUST respond to the Access-Request by transmitting a packet with the Code field set to 11 (Access-Challenge).
    12Status-Server (experimental).
    13Status-Client (experimental).
    14
    -
    20
    21Resource-Free-Request
    22Resource-Free-Response
    23Resource-Query-Request.
    24Resource-Query-Response
    25Alternate-Resource- Reclaim-Request.
    26NAS-Reboot-Request
    27NAS-Reboot-Response
    28
    29Next-Passcode.
    30New-Pin.
    31Terminate-Session.
    32Password-Expired.
    33Event-Request.
    34Event-Response.
    35
    -
    39
    40Disconnect-Request.
    41Disconnect-ACK.
    42Disconnect-NAK.
    43CoA-Request.
    44CoA-ACK.
    45CoA-NAK.
    46
    -
    49
    50IP-Address-Allocate.
    51IP-Address-Release.
    52
    -
    249
    250
    -
    253
    Experimental use.
    254Reserved.
    255Reserved.

  • Identifier
    8 bits. Used to match RADIUS request and reply packets.


  • Length
    16 bits. 20 to 4096. Indicates the length of the packet including the RADIUS header and Attribute fields. Bytes outside the range of the Length field should be treated as padding and should be ignored on reception. If the packet is shorter than the indicated length, it should be silently discarded.


  • Authenticator
    16 bytes. Used to authenticate the reply from the RADIUS server and is used in the password hiding algorithm.


  • Attributes
    Variable length. RADIUS Attributes carry the specific authentication, authorization and accounting details for the request and response. Some attributes MAY be included more than once. The effect of this is attribute specific, and is specified in each attribute description. The end of the list of attributes is indicated by the Length of the RADIUS packet.

  • 8

    16

    32bit

    Type

    Length

    Value


    • Type
      8 bits.


    • Length
      8 bits. Indicates the length of this attribute including the Type, Length and Value fields. If an attribute is received in an Accounting-Request packet with an invalid Length, the entire request should be silently discarded.


    • Value
      Variable length. Contains information specific to the attribute. The format and length of this field is determined by the Type and Length fields. The format of the field can be one of the following data types:
      • String: 0 to 253 bytes.

      • Address: 32 bits, MSB.

      • Integer: 32 bits, MSB.

      • Time: 32 bits. seconds since 00:00:00 GMT, January 1, 1970.


  • The valid attributes:
    TypeLengthDescriptionReferences
    1>= 3User-Name.The name of the user to be authenticated. It MUST be sent in Access-Request packets if available.
    218 to 130User-Password.The password is first padded at the end with nulls to a multiple of 16 octets.
    319CHAP-Password.The response value provided by a PPP Challenge-Handshake Authentication Protocol (CHAP) user in response to the challenge.
    46NAS-IP-Address.The identifying IP Address of the NAS which is requesting authentication of the user, and SHOULD be unique to the NAS within the scope of the RADIUS server.
    56NAS-Port.The physical port number of the NAS which is authenticating the user.
    66Service-Type.The type of service the user has requested, or the type of service to be provided.
    76Framed-Protocol.The framing to be used for framed access. It MAY be used in both Access-Request and Access-Accept packets.
    86Framed-IP-Address.The address to be configured for the user.
    96Framed-IP-Netmask.The IP netmask to be configured for the user when the user is a router to a network. It MAY be used in Access-Accept packets.
    106Framed-Routing.The routing method for the user, when the user is a router to a network.
    11>= 3Filter-Id.The name of the filter list for this user. Zero or more Filter-Id attributes MAY be sent in an Access-Accept packet.
    126Framed-MTU.The Maximum Transmission Unit to be configured for the user, when it is not negotiated by some other means (such as PPP).
    136Framed-Compression.A compression protocol to be used for the link. It MAY be used in Access-Accept packets.
    146Login-IP-Host.The system with which to connect the user, when the Login-Service Attribute is included. It MAY be used in Access-Accept packets.
    156Login-Service.The service to use to connect the user to the login host.
    166Login-TCP-Port.The TCP port with which the user is to be connected, when the Login-Service Attribute is also present.
    17
    18>= 3Reply-Message.The text which MAY be displayed to the user.
    19>= 3Callback-Number.A dialing string to be used for callback. It MAY be used in Access-Accept packets.
    20>= 3Callback-Id.The name of a place to be called, to be interpreted by the NAS.
    21
    22>= 3Framed-Route.Provides routing information to be configured for the user on the NAS.
    236Framed-IPX-Network.The IPX Network number to be configured for the user.
    24>= 3State.It is sent by the server to the client in an Access-Challenge and MUST be sent unmodified from the client to the server in the new Access-Request reply to that challenge.
    25>= 3Class.It is sent by the server to the client in a Access-Accept and SHOULD be sent unmodified by the client to the accounting server as part of the Accounting-Request packet if accounting is supported.
    26>= 7Vendor-Specific.Allow vendors to support their own extended Attributes not suitable for general usage.
    276Session-Timeout.The maximum number of seconds of service to be provided to the user before termination of the session or prompt.
    286Idle-Timeout.The maximum number of consecutive seconds of idle connection allowed to the user before termination of the session or prompt.
    296Termination-Action.What action the NAS should take when the specified service is completed.
    30>= 3Called-Station-Id.Allows the NAS to send in the Access-Request packet the phone number that the user called.
    31>= 3Calling-Station-Id.Allows the NAS to send in the Access-Request packet the phone number that the call came from.
    32>= 3NAS-Identifier.A string identifying the NAS originating the Access-Request.
    33>= 3Proxy-State.It is sent by a proxy server to another server when forwarding an Access-Request and MUST be returned unmodified in the Access-Accept, Access-Reject or Access-Challenge.
    34>= 3Login-LAT-Service.The system with which the user is to be connected by LAT.
    35>= 3Login-LAT-Node.The Node with which the user is to be automatically connected by LAT.
    3634Login-LAT-Group.A string identifying the LAT group codes which this user is authorized to use.
    376Framed-AppleTalk-Link.The AppleTalk network number which should be used for the serial link to the user.
    386Framed-AppleTalk-Network.The AppleTalk Network number which the NAS should probe to allocate an AppleTalk node for the user.
    39>= 3Framed-AppleTalk-Zone.The AppleTalk Default Zone to be used for this user.
    406Acct-Status-Type.
    416Acct-Delay-Time.
    426Acct-Input-Octets.
    436Acct-Output-Octets.
    44>= 3Acct-Session-Id
    456Acct-Authentic.
    466Acct-Session-Time.
    476Acct-Input-Packets.
    486Acct-Output-Packets.
    496Acct-Terminate-Cause.
    50>= 3Acct-Multi-Session-Id.
    516Acct-Link-Count.
    526Acct-Input-Gigawords.The times the Acct-Input-Octets counter has wrapped around 2-32 over the course of this service being provided.
    536Acct-Output-Gigawords.The times the Acct-Output-Octets counter has wrapped around 2-32 in the course of delivering this service.
    54
    556Event-Timestamp.The Accounting-Request packet to record the time that this event occurred on the NAS
    56
    -
    59
    60>= 7CHAP-Challenge.The CHAP Challenge sent by the NAS to a PPP Challenge-Handshake Authentication Protocol (CHAP) user.
    616NAS-Port-Type.The type of the physical port of the NAS which is authenticating the user.
    626Port-Limit.The maximum number of ports to be provided to the user by the NAS.
    63>= 3Login-LAT-Port.The Port with which the user is to be connected by LAT.
    646Tunnel-Type.The tunneling protocol(s) to be used or the tunneling protocol in use.
    656Tunnel-Medium-Type.The transport medium to use when creating a tunnel for those protocols.
    66>= 3Tunnel-Client-Endpoint.The address of the initiator end of the tunnel.
    67>= 3Tunnel-Server-Endpoint.The address of the server end of the tunnel.
    68 Acct-Tunnel-Connection.
    69>= 5Tunnel-Password.The password is used to authenticate to a remote server.
    7018ARAP-Password.It is present in an Access-Request packet containing a Framed-Protocol of ARAP.
    7116ARAP-Features.It is sent in an Access-Accept packet with Framed- Protocol of ARAP, and includes password information that the NAS should sent to the user in an ARAP "feature flags" packet.
    726ARAP-Zone-Access.How the ARAP zone list for the user should be used.
    736ARAP-Security.The ARAP Security Module to be used in an Access-Challenge packet.
    74>= 3ARAP-Security-Data.The actual security module challenge or response
    756Password-Retry.The times of authentication attempts a user may be allowed to attempt before being disconnected.
    766Prompt.The NAS whether it should echo the user's response as it is entered, or not echo it.
    77>= 3Connect-Info.The nature of the user's connection.
    78>= 3Configuration-Token.Use in large distributed authentication networks based on proxy.
    79>= 3EAP-Message.Allow the NAS to authenticate dial-in users via EAP without having to understand the EAP protocol.
    8018Message-Authenticator.Sign Access-Requests to prevent spoofing Access-Requests using CHAP, ARAP or EAP authentication methods.
    81>= 3Tunnel-Private-Group-ID.The group ID for a particular tunneled session.
    82>= 3Tunnel-Assignment-ID.The tunnel initiator the particular tunnel to which a session is to be assigned.
    836Tunnel-Preference.The relative preference assigned to each tunnel if more than one set of tunneling attributes is returned by the RADIUS server to the tunnel initiator.
    8410ARAP-Challenge-Response.It is sent in an Access-Accept packet with Framed- Protocol of ARAP, and contains the response to the dial-in client's challenge.
    856Acct-Interim-Interval.The number of seconds between each interim update in seconds for this specific session.
    86 Acct-Tunnel-Packets-Lost.
    87>= 3NAS-Port-Id.A text string which identifies the port of the NAS which is authenticating the user.
    88>= 3Framed-Pool.The name of an assigned address pool that SHOULD be used to assign an address for the user.
    89
    90>= 3Tunnel-Client-Auth-ID.The name used by the tunnel initiator during the authentication phase of tunnel establishment.
    91>= 3Tunnel-Server-Auth-ID.The name used by the tunnel terminator during the authentication phase of tunnel establishment.
    92
    93
    94 Originating-Line-Info.
    9518NAS-IPv6-Address.The identifying IPv6 Address of the NAS which is requesting authentication of the user, and SHOULD be unique to the NAS within the scope of the RADIUS server.
    9610Framed-Interface-Id.The IPv6 interface identifier to be configured for the user.
    974 to 20Framed-IPv6-Prefix.The IPv6 prefix to be configured for the user.
    9818Login-IPv6-Host.The system with which to connect the user, when the Login-Service Attribute is included.
    99>= 3Framed-IPv6-Route.Routing information to be configured for the user on the NAS.
    100>= 3Framed-IPv6-Pool.The name of an assigned pool that SHOULD be used to assign an IPv6 prefix for the user.
    101 Error-Cause Attribute.
    102
    -
    191
    192
    -
    223
    Experimental.
    224
    -
    240
    Implementation specific.
    241
    -
    255
    Reserved.


Packet Types
The RADIUS Packet type is determined by the Code field in the first octet of the Packet.
  • Access-Request
    Access-Request packets are sent to a RADIUS server, and convey information used to determine whether a user is allowed access to a specific NAS, and any special services requested for that user. An implementation wishing to authenticate a user MUST transmit a RADIUS packet with the Code field set to 1 (Access-Request).
    An Access-Request SHOULD contain a User-Name attribute. It MUST contain either a NAS-IP-Address attribute or a NAS-Identifier attribute (or both).


  • Access-Accept
    Access-Accept packets are sent by the RADIUS server, and provide specific configuration information necessary to begin delivery of service to the user. If all Attribute values received in an Access-Request are acceptable then the RADIUS implementation MUST transmit a packet with the Code field set to 2 (Access-Accept).


  • Access-Reject
    If any value of the received Attributes is not acceptable, then the RADIUS server MUST transmit a packet with the Code field set to 3 (Access-Reject). It MAY include one or more Reply-Message Attributes with a text message which the NAS MAY display to the user.


  • Access-Challenge
    If the RADIUS server desires to send the user a challenge requiring a response, then the RADIUS server MUST respond to the Access-Request by transmitting a packet with the Code field set to 11 (Access-Challenge).
    The Attributes field MAY have one or more Reply-Message Attributes, and MAY have a single State Attribute, or none. Vendor-Specific, Idle-Timeout, Session-Timeout and Proxy-State attributes MAY also be included. No other Attributes defined in this document are permitted in an Access-Challenge.


Top of Page

EXAMPLES
Example 1: User Telnet to Specified Host


The NAS at 192.168.1.16 sends an Access-Request UDP packet to the RADIUS Server for a
user named nemo logging in on port 3 with password "arctangent". The Request
Authenticator is a 16 octet random number generated by the NAS.The User-Password is 16
octets of password padded at end with nulls, XORed with MD5(shared secret|Request
Authenticator).

01 00 00 38 0f 40 3f 94 73 97 80 57 bd 83 d5 cb
98 f4 22 7a 01 06 6e 65 6d 6f 02 12 0d be 70 8d
93 d4 13 ce 31 96 e4 3f 78 2a 0a ee 04 06 c0 a8
01 10 05 06 00 00 00 03

1 Code = Access-Request (1)
1 ID = 0
2 Length = 56
16 Request Authenticator

Attributes:
6 User-Name = "nemo"
18 User-Password
6 NAS-IP-Address = 192.168.1.16
6 NAS-Port = 3

The RADIUS server authenticates nemo, and sends an Access-Accept UDP packet to the
NAS telling it to telnet nemo to host 192.168.1.3.

The Response Authenticator is a 16-octet MD5 checksum of the code (2), id (0), Length
(38), the Request Authenticator from above, the attributes in this reply, and the
shared secret.

02 00 00 26 86 fe 22 0e 76 24 ba 2a 10 05 f6 bf
9b 55 e0 b2 06 06 00 00 00 01 0f 06 00 00 00 00
0e 06 c0 a8 01 03

1 Code = Access-Accept (2)
1 ID = 0 (same as in Access-Request)
2 Length = 38
16 Response Authenticator

Attributes:
6 Service-Type (6) = Login (1)
6 Login-Service (15) = Telnet (0)
6 Login-IP-Host (14) = 192.168.1.3
Example 2: Framed User Authenticating with CHAP


The NAS at 192.168.1.16 sends an Access-Request UDP packet to the RADIUS Server for a
user named flopsy logging in on port 20 with PPP, authenticating using CHAP. The NAS
sends along the Service-Type and Framed-Protocol attributes as a hint to the RADIUS
server that this user is looking for PPP, although the NAS is not required to do so.

The Request Authenticator is a 16 octet random number generated by the NAS, and is
also used as the CHAP Challenge.The CHAP-Password consists of a 1 octet CHAP ID, in
this case 22, followed by the 16 octet CHAP response.

01 01 00 47 2a ee 86 f0 8d 0d 55 96 9c a5 97 8e
0d 33 67 a2 01 08 66 6c 6f 70 73 79 03 13 16 e9
75 57 c3 16 18 58 95 f2 93 ff 63 44 07 72 75 04
06 c0 a8 01 10 05 06 00 00 00 14 06 06 00 00 00
02 07 06 00 00 00 01

1 Code = 1 (Access-Request)
1 ID = 1
2 Length = 71
16 Request Authenticator

Attributes:
8 User-Name (1) = "flopsy"
19 CHAP-Password (3)
6 NAS-IP-Address (4) = 192.168.1.16
6 NAS-Port (5) = 20
6 Service-Type (6) = Framed (2)
6 Framed-Protocol (7) = PPP (1)

The RADIUS server authenticates flopsy, and sends an Access-Accept UDP packet to the
NAS telling it to start PPP service and assign an address for the user out of its
dynamic address pool.

The Response Authenticator is a 16-octet MD5 checksum of the code (2), id (1), Length
(56), the Request Authenticator from above, the attributes in this reply, and the
shared secret.

02 01 00 38 15 ef bc 7d ab 26 cf a3 dc 34 d9 c0
3c 86 01 a4 06 06 00 00 00 02 07 06 00 00 00 01
08 06 ff ff ff fe 0a 06 00 00 00 02 0d 06 00 00
00 01 0c 06 00 00 05 dc

1 Code = Access-Accept (2)
1 ID = 1 (same as in Access-Request)
2 Length = 56
16 Response Authenticator

Attributes:
6 Service-Type (6) = Framed (2)
6 Framed-Protocol (7) = PPP (1)
6 Framed-IP-Address (8) = 255.255.255.254
6 Framed-Routing (10) = None (0)
6 Framed-Compression (13) = VJ TCP/IP Header Compression (1)
6 Framed-MTU (12) = 1500
Example 3: User with Challenge-Response card


The NAS at 192.168.1.16 sends an Access-Request UDP packet to the RADIUS Server for
a user named mopsy logging in on port 7. The user enters the dummy password "challenge"
in this example. The challenge and response generated by the smart card for this
example are "32769430" and "99101462".

The Request Authenticator is a 16 octet random number generated by the NAS.

The User-Password is 16 octets of password, in this case "challenge", padded at the
end with nulls, XORed with MD5(shared secret|Request Authenticator).

01 02 00 39 f3 a4 7a 1f 6a 6d 76 71 0b 94 7a b9
30 41 a0 39 01 07 6d 6f 70 73 79 02 12 33 65 75
73 77 82 89 b5 70 88 5e 15 08 48 25 c5 04 06 c0
a8 01 10 05 06 00 00 00 07
1 Code = Access-Request (1)
1 ID = 2
2 Length = 57
16 Request Authenticator

Attributes:
7 User-Name (1) = "mopsy"
18 User-Password (2)
6 NAS-IP-Address (4) = 192.168.1.16
6 NAS-Port (5) = 7

The RADIUS server decides to challenge mopsy, sending back a challenge string and
looking for a response. The RADIUS server therefore and sends an Access-Challenge
UDP packet to the NAS.

The Response Authenticator is a 16-octet MD5 checksum of the code (11), id (2),
length (78), the Request Authenticator from above, the attributes in this reply, and
the shared secret.

The Reply-Message is "Challenge 32769430. Enter response at prompt."

The State is a magic cookie to be returned along with user's response; in this example
8 octets of data (33 32 37 36 39 34 33 30 in hex).

0b 02 00 4e 36 f3 c8 76 4a e8 c7 11 57 40 3c 0c
71 ff 9c 45 12 30 43 68 61 6c 6c 65 6e 67 65 20
33 32 37 36 39 34 33 30 2e 20 20 45 6e 74 65 72
20 72 65 73 70 6f 6e 73 65 20 61 74 20 70 72 6f
6d 70 74 2e 18 0a 33 32 37 36 39 34 33 30

1 Code = Access-Challenge (11)
1 ID = 2 (same as in Access-Request)
2 Length = 78
16 Response Authenticator

Attributes:
48 Reply-Message (18)
10 State (24)

The user enters his response, and the NAS send a new Access-Request with that
response, and includes the State Attribute.

The Request Authenticator is a new 16 octet random number.

The User-Password is 16 octets of the user's response, in this case "99101462", padded
at the end with nulls, XORed with MD5(shared secret|Request Authenticator). The state
is the magic cookie from the Access-Challenge packet, unchanged.

01 03 00 43 b1 22 55 6d 42 8a 13 d0 d6 25 38 07
c4 57 ec f0 01 07 6d 6f 70 73 79 02 12 69 2c 1f
20 5f c0 81 b9 19 b9 51 95 f5 61 a5 81 04 06 c0
a8 01 10 05 06 00 00 00 07 18 10 33 32 37 36 39
34 33 30

1 Code = Access-Request (1)
1 ID = 3 (Note that this changes.)
2 Length = 67
16 Request Authenticator

Attributes:
7 User-Name = "mopsy"
18 User-Password
6 NAS-IP-Address (4) = 192.168.1.16
6 NAS-Port (5) = 7
10 State (24)

The Response was incorrect (for the sake of example), so the RADIUS server tells the
NAS to reject the login attempt.

The Response Authenticator is a 16 octet MD5 checksum of the code (3), id (3),
length(20), the Request Authenticator from above, the attributes in this reply (in this
case, none), and the shared secret.

03 03 00 14 a4 2f 4f ca 45 91 6c 4e 09 c8 34 0f
9e 74 6a a0

1 Code = Access-Reject (3)
1 ID = 3 (same as in Access-Request)
2 Length = 20
16 Response Authenticator

Attributes: (none, although a Reply-Message could be sent)

Top of Page


PROTOCOL RELATIONS
Parent layer
Child layer
UDP
RADIUS
Top of Page

GLOSSARY
Access-Accept
Access-Accept packets are sent by the RADIUS server, and provide specific configuration information necessary to begin delivery of service to the user. If all Attribute values received in an Access-Request are acceptable then the RADIUS implementation MUST transmit a packet with the Code field set to 2 (Access-Accept).

On reception of an Access-Accept, the Identifier field is matched with a pending Access-Request. The Response Authenticator field MUST contain the correct response for the pending Access-Request. Invalid packets are silently discarded.

Access-Challenge
If the RADIUS server desires to send the user a challenge requiring a response, then the RADIUS server MUST respond to the Access-Request by transmitting a packet with the Code field set to 11 (Access-Challenge). The Attributes field MAY have one or more Reply-Message Attributes, and MAY have a single State Attribute, or none. On receipt of an Access-Challenge, the Identifier field is matched with a pending Access-Request.

If the NAS does not support challenge/response, it MUST treat an Access-Challenge as though it had received an Access-Reject instead.

If the NAS supports challenge/response, receipt of a valid Access-Challenge indicates that a new Access-Request SHOULD be sent.

Access-Reject
If any value of the received Attributes is not acceptable, then the RADIUS server MUST transmit a packet with the Code field set to 3 (Access-Reject). It MAY include one or more Reply-Message Attributes with a text message which the NAS MAY display to the user.

Access-Request
Access-Request packets are sent to a RADIUS server, and convey information used to determine whether a user is allowed access to a specific NAS, and any special services requested for that user. An implementation wishing to authenticate a user MUST transmit a RADIUS packet with the Code field set to 1 (Access-Request).

Upon receipt of an Access-Request from a valid client, an appropriate reply MUST be transmitted.

An Access-Request SHOULD contain a User-Name attribute. An Access-Request MUST contain either a User-Password or a CHAP-Password or a State. An Access-Request SHOULD contain a NAS-Port or NAS-Port-Type attribute or both unless the type of access being requested does not involve a port or the NAS does not distinguish among its ports.

NAS
NAS (Netnews Administration System) is based on a database which contains information about certain groups and hierarchies. This database is structured in a hierarchical manner, distributed to various servers and is able to receive queries at any time. The service is comparable to directory services like DNS, LDAP or NIS. The NAS protocol is inspired by protocols like NNTP and SMTP. The port 991 is reserved for NAS and registered by the Internet Assigned Number Authority(IANA).

PPP
PPP(Point-to-Point Protocol) is a method of connecting a computer to the Internet. PPP is more stable than the older SLIP protocol and provides error checking features. Working in the data link layer of the OSI model, PPP sends the computer's TCP/IP packets to a server that puts them onto the Internet.

Service
The NAS provides a service to the dial-in user, such as PPP or Telnet.

Session
The session of activity that a user with a unique IP address spends on a Web site during a specified period of time. The number of user sessions on a site is used in measuring the amount of traffic a Web site gets. The site administrator determines what the time frame of a user session will be (e.g., 30 minutes).

If the visitor comes back to the site within that time period, it is still considered one user session because any number of visits within that 30 minutes will only count as one session. If the visitor returns to the site after the allotted time period has expired, say an hour from the initial visit, then it is counted as a separate user session.

Top of Page

REFERENCES
Related links:
                Radius types
RFCs:
[RFC 2548] Microsoft Vendor-specific RADIUS Attributes.
[RFC 2618] RADIUS Authentication Client MIB.
                Defines SNMP MIB iso.org.dod.internet.mgmt.mib-2.radiusMIB (1.3.6.1.2.1.67).
[RFC 2619] RADIUS Authentication Server MIB.
[RFC 2620] RADIUS Accounting Client MIB.
[RFC 2621] RADIUS Accounting Server MIB.
[RFC 2809] Implementation of L2TP Compulsory Tunneling via RADIUS.
[RFC 2865] Remote Authentication Dial In User Service (RADIUS).
                Obsoletes: RFC 2138.
[RFC 2866] RADIUS Accounting.
                Obsoletes: RFC 2139.
[RFC 2867] RADIUS Accounting Modifications for Tunnel Protocol Support.
                Updates: RFC 2866.
[RFC 2868] RADIUS Attributes for Tunnel Protocol Support.
                Updates: RFC 2865.
[RFC 2869] RADIUS Extensions.
                Updated by: RFC 3579.
[RFC 2882] Network Access Servers Requirements: Extended RADIUS Practices.
[RFC 2888] Secure Remote Access with L2TP.
[RFC 2924] Accounting Attributes and Record Formats.
[RFC 2975] Introduction to Accounting Management.
[RFC 3127] Authentication, Authorization, and Accounting: Protocol Evaluation.
[RFC 3162] RADIUS and IPv6.
[RFC 3575] IANA Considerations for RADIUS (Remote Authentication Dial In User Service).
                Updates: RFC 2865.
[RFC 3576] Dynamic Authorization Extensions to Remote Authentication Dial In User Service (RADIUS).
[RFC 3579] RADIUS (Remote Authentication Dial In User Service) Support For Extensible Authentication Protocol (EAP).
                Defines RADIUS attributes 79 (EAP-Message) and 80 for (Message-Authenticator).
                Updates: RFC 2869.
[RFC 3580] IEEE 802.1X Remote Authentication Dial In User Service (RADIUS) Usage Guidelines.
Obsolete RFCs:
[RFC 2058] Remote Authentication Dial In User Service (RADIUS).
                Obsoleted by: RFC 2138.
[RFC 2059] RADIUS Accounting.
                Obsoleted by: RFC 2139.
[RFC 2138] Remote Authentication Dial In User Service (RADIUS).
                Obsoleted by: RFC 2865.
                Obsoletes: RFC 2058.
[RFC 2139] RADIUS Accounting.
                Obsoleted by: RFC 2866.
                Obsoletes: RFC 2059.
Publications:
[ISBN 0596003226] Radius.
                Publisher: O'Reilly & Associates.
                Author: Hassell, Jonathan
                


Top of Page

OTHER PROTOCOLS OF TCP/IP SUITE
AARP   RRP   RTP Video   RTP Audio   RTP   COPS   Gopher   HSRP   ICP   MPLS   IEEE 802.2   CIP   FTP - Data   FTP - Ctrl   IMAPS   IP Fragment   LDAPS   PUP   MSSQL   RSH   SQL   POP3s   RTELNET   RSVP   STP   VLAN   MSN   H.323   MSRDP   HTTPS   WINS   LPD   GTP   ICMPv6   POP   TELNET   H.225   VRRP   PIM   RARP   SAP   OSPF   RLOGIN   SCTP   SIP   RTCP   PPPoE   Mobile IP   IMAP3   WhoIs   SLP   NCP   PPTP   MGCP   LDAP   L2TP   Kerberos   IPv6   GRE   Ethernet SNAP   AFP   CIFS   IEEE 802.3   Finger   NBDGM   NetBEUI   NBSSN   ESP   EIGRP   EGP   DHCP   CGMP   CDP   BOOTP   AH   NBNS   EthernetII   ICQ   PPP   ARP   RIP   IPX   IGRP   IGMP   SSH   RPC   NetBIOS   TFTP   SNMP   SNA   SMB   RADIUS   NTP   NNTP   UDP   TCP   BGP   DNS   SOCKS   IMAP   RTSP   NFS   ICMP   IP   FTP   Telnet   POP3   SMTP   HTTP  
Search RFCs:

Advanced Search
Search Glossary:
Exact search
Fuzzy search


All Protocols
Submit a Request

Recommend an Article

 Layer 7 Application Layer
  AFP
  BOOTP
  CIFS
  CIP
  COPS
  DHCP
  DNS
  Finger
  FTP
  FTP - Ctrl
  FTP - Data
  Gopher
  HSRP
  HTTP
  HTTPS
  ICP
  ICQ
  IMAP
  IMAP3
  IMAPS
  Kerberos
  LPD
  MGCP
  MSN
  MSRDP
  MSSQL
  NCP
  NFS
  NNTP
  NTP
  POP
  POP3
  POP3s
  RADIUS
  RLOGIN
  RRP
  RSH
  RTCP
  RTELNET
  RTP
  RTP Audio
  RTP Video
  RTSP
  SAP
  SIP
  SLP
  SMB
  SMTP
  SNA
  SNMP
  SOCKS
  SSH
  Telnet
  TELNET
  TFTP
  WhoIs
  WINS
 Layer 6 Presentation Layer
  NBNS
  NBSSN
  NCP
  NetBIOS
 Layer 5 Session Layer
  LDAP
  LDAPS
  NCP
  NetBEUI
  RPC
 Layer 4 Transport Layer
  H.225
  H.323
  NBDGM
  NetBEUI
  PUP
  SCTP
  TCP
  UDP
 Layer 3 Network Layer
  AARP
  AH
  BGP
  EGP
  EIGRP
  ESP
  GRE
  GTP
  ICMP
  ICMPv6
  IGMP
  IGRP
  IP
  IP Fragment
  IPv6
  IPX
  Mobile IP
  MPLS
  OSPF
  PIM
  PPPoE
  RIP
  RSVP
  STP
  VRRP
 Layer 2 Data Link Layer
  ARP
  CDP
  CGMP
  Ethernet SNAP
  EthernetII
  IEEE 802.2
  IEEE 802.3
  L2TP
  PPP
  PPTP
  RARP
  SQL
  VLAN
 Layer 1 Physical Layer
© 2006 - 2007 Colasoft Co., Ltd. All rights reserved.