USPatent applicationPatented

Matching of radius request and response packets during high traffic volume

Granted 12 Aug 2008 · 1 office action

Application· this page
10/874,734
filed 22 Jun 2004
Publication
Not published
not published
Patent
US 7,411,981
granted 12 Aug 2008

Life of the application

7 dated events
⤢ drag to zoom20042006200820102012201420162018202020222024ProsecutionOwnershipTerm & fees
ProsecutionOwnershipTerm & feeshover for detail · click to open

Abstract

A solution for matching RADIUS request packets with corresponding RADIUS response packets when the number of simultaneous outstanding requests is greater than 256 involves using a sixteen-octet authenticator field in each packet. For each response packet that arrives, the identifier of the packet is compared in turn with the identifier of each outstanding request packet. If the identifiers match, the authenticators are then compared. If the results of the comparison indicate a match, the packet is accepted and no further processing of the outstanding requests is required. Otherwise, a search of the outstanding request packets is continued. This solution allows for more than 256 simultaneous outstanding RADIUS requests and only encounters a mismatch or ambiguous match with a probability of one in 3.4×10 38 packets.

Description

6 parts
›CROSS-REFERENCE TO RELATED APPLICATION

This application claims priority based on parent application Ser. No. 09/652,762, entitled “IMPROVED MATCHING OF RADIUS REQUEST AND RESPONSE PACKETS DURING HIGH TRAFFIC VOLUME” by Scott Reed, Gregory Weber, Mark Eklund, Robert Sargent and Steven Rich, filed on Aug. 31, 2000.

›BACKGROUND OF THE INVENTION

1. Field of the Invention

The present invention relates to the field of network communications. More specifically, the present invention relates to matching of RADIUS request packets with corresponding RADIUS response packets.

2. The Background

Remote Authentication Dial In User Service (RADIUS) is a protocol for carrying authentication, authorization, and configuration information between a Network Access Server (NAS) and a shared Authentication Server in a computer network. Once a client is configured to use RADIUS, users of the client may present authentication data to the client, such as by using a username and password prompt. When the client has received the authentication data, it may desire to authenticate using RADIUS. In doing so, it must create a RADIUS “Access-Request” packet containing the authentication data and additional information, such as the port ID the user is accessing.

The RADIUS “Access-Request” Packet may then be transmitted over the network to a RADIUS server, which validates the sending client. If the client is valid, the RADIUS server consults a user database to find the user whose name matches the request. A corresponding record in the database contains information regarding how much access the user may have and what requirements must be fulfilled before access is granted. The RADIUS server may then compare the authentication data received via the RADIUS “access-request” packet with this record to determine if the user is authenticated. It may then send an “Access-Accept”, “Access-Reject”, or “Access-Challenge” response packet back to the client. A similar process may be invoked for accounting requests.

The RADIUS protocol provides for a one-octet identifier in request and response packets. A value is assigned to the identifier when an “access-request” packet is sent. The RADIUS server then takes this identifier and copies it into whatever response packet is sent, ensuring that corresponding request and response packets have the same identifier and thus may be matched up by the client when the response packet is received.

However, when traffic is heavy, it is possible to have more than two hundred and fifty-six outstanding simultaneous request packets from a single client. Since a one-octet identifier only allows for two hundred and fifty-six unique identifiers, this creates a problem when traffic is heavy.

One solution is to alter the User Datagram Protocol (UDP) source port used for the packets when more than two hundred and fifty-six RADIUS request packets are outstanding. The client may then match both the UDP port and the identifier to correspond RADIUS requests and response packets. Unfortunately, many companies have designed their network hardware to utilize a fixed UDP port. Furthermore, these different companies often use different fixed ports. Thus, using the UDP port as a solution is not effective.

What is needed is a solution which provides for matching RADIUS request packets with corresponding RADIUS response packets when traffic is heavy enough to require more than two hundred and fifty-six simultaneous outstanding RADIUS request packets.

›SUMMARY OF THE INVENTION

A solution for matching RADIUS request packets with corresponding RADIUS response packets when the number of simultaneous outstanding requests is greater than 256 involves using a sixteen-octet authenticator field in each packet. For each response packet that arrives, the identifier of the packet is compared in turn with the identifier of each outstanding request packet. If the identifiers match, the authenticators are then compared. If the results of the comparison indicate a match, the packet is accepted and no further processing of the outstanding requests is required. Otherwise, a search of the outstanding request packets is continued. This solution allows for more than 256 simultaneous outstanding RADIUS requests and only encounters a mismatch or ambiguous match with a probability of one in 3.4×10 38 packets.

›BRIEF DESCRIPTION OF THE DRAWINGS

FIG. 1 is a diagram illustrating a RADIUS packet in accordance with a specific embodiment of the present invention.

FIG. 2 is a flow diagram illustrating a method for matching a RADIUS response and packet with a corresponding RADIUS request packet from one or more outstanding RADIUS request packets, the packets all having identifier fields and authenticator fields in accordance with a specific embodiment of the present invention.

FIG. 3 is a block diagram illustrating an apparatus for matching a RADIUS response and packet with a corresponding RADIUS request packet from one or more outstanding RADIUS request packets, the packets all having identifier fields and authenticator fields in accordance with a specific embodiment of the present invention.

›DETAILED DESCRIPTION OF A PREFERRED EMBODIMENT · 1 of 2

In the following description, a preferred embodiment of the invention is described with regard to preferred process steps and data structures. However, those skilled in the art will recognize, after perusal of this application, that embodiments of the invention may be implemented using at least one general purpose computer operating under program control and/or using a program storage device, and that modification of the general purpose computer to implement the components, process steps, and/or data structures described herein would not require undue invention.

In accordance with a specific embodiment of the present invention, the components, process steps, and/or data structures are implemented using software. This implementation is not intended to be limiting in any way. Different implementations may be used and may include other types of operating systems, computing platforms, and/or computer programs. In addition, those of ordinary skill in the art will readily recognize that devices of a less general purpose nature, such as hardwired devices, devices relying on FPGA (field programmable gate array) or ASIC (application specific integrated circuit) technology, or the like, may also be used without departing from the scope and spirit of the inventive concepts disclosed herewith.

The present invention utilizes an MD5 authenticator, described below, in RADIUS packets to match RADIUS response packets to corresponding RADIUS request packets when more than one outstanding RADIUS request packet is received with the same identifier.

FIG. 1 is a diagram illustrating a RADIUS packet in accordance with a specific embodiment of the present invention. The packet 100 contains a code field 102 , which identifies the type of the RADIUS packet. Codes are currently assigned according to Table 1 below.

An identifier field 104 is a one-octet field that aids in matching requests and replies. A length field 106 is a two-octet field which indicates the length of the packet, inclusive of the code, identifier, length, authenticator, and attribute fields. The authenticator field 108 is either a 16 octet random number (for Access requests) or a 16 octet MD5 digest of data (for Accounting requests) used as a seed for a random number generator utilized for security verification of packets. An attributes field 110 includes other attributes defined by the RADIUS protocol.

The chances of two 16-byte random numbers being the same are 1 in 2 128 or 1 in 3.4×10 38 . Thus, it is useful to use the authenticator field 108 as a sub-identifier, or a “tie-breaker” to differentiate between two response packets with identical identifiers.

FIG. 2 is a flow diagram illustrating a method for matching a RADIUS response and packet with a corresponding RADIUS request packet from one or more outstanding RADIUS request packets, the packets all having identifier fields and authenticator fields in accordance with a specific embodiment of the present invention. At 200 , a variable N is set to a value of 1. The variable N controls which outstanding request packet in a queue is being examined at any particular time, beginning with 1, indicating the first request packet in the queue. Then, at 202 , it is determined if the identifier field of the nth request packet matches the identifier field of the RADIUS response packet. This may include examining the identifier fields of the RADIUS response packet and the nth of the one or more RADIUS request packets and comparing the identifier fields of the RADIUS response packet and the nth of the one or more RADIUS request packets to establish whether any are identical. If there is a match, the process moves to 204 , where it is determined if the authenticator field of the nth request packet matches the authenticator field of the RADIUS response packet. This may include examining the authenticator fields of the RADIUS response packet and the nth of the one or more RADIUS request packets and comparing the authenticator fields of the RADIUS response packet and the nth of the one or more RADIUS request packets to establish whether any are identical. If a match has been found, the process may end. If either the identifier field or the authenticator field doesn't match, then the process moves to 206 , where N is incremented. At 208 , it is determined if there are any more requests in the queue. If not, the process ends. Otherwise, the process returns to 202 with the incremented N to examine the next packet.

FIG. 3 is a block diagram illustrating an apparatus for matching a RADIUS response and packet with a corresponding RADIUS request packet from one or more outstanding RADIUS request packets, the packets all having identifier fields and authenticator fields in accordance with a specific embodiment of the present invention. A variable setter 300 sets a variable N to an initial value of 1. The variable N controls which outstanding request packet in a queue is being examined at any particular time, beginning with 1, indicating the first request packet in the queue. An identifier field determiner 302 determines if the identifier field of the nth request packet matches the identifier field of the RADIUS response packet. This may include using a RADIUS packet identifier field examiner 304 to examine the identifier fields of the RADIUS response packet and the nth of the one or more RADIUS request packets and a RADIUS packet identifier field comparator 306 coupled to the RADIUS packet identifier field examiner 302 to comparing the identifier fields of the RADIUS response packet and the nth of the one or more RADIUS request packets to establish whether any are identical.

If there is a match, a matching authenticator field determiner 308 coupled to the RADIUS packet identifier field comparator 306 determines if the authenticator field of the nth request packet matches the authenticator field of the RADIUS response packet. This may include using a RADIUS packet authenticator field examiner 310 to examine the authenticator fields of the RADIUS response packet and the nth of the one or more RADIUS request packets and a RADIUS packet authenticator field comparator 312 coupled to the RADIUS packet authenticator field examiner 310 to compare the authenticator fields of the RADIUS response packet and the nth of the one or more RADIUS request packets to establish whether any are identical. If both the authenticator fields and identifier fields match, a RADIUS packet matcher 314 may then match the RADIUS response packet with the nth of the one or more RADIUS request packets.

›DETAILED DESCRIPTION OF A PREFERRED EMBODIMENT · 2 of 2

If either the identifier field or the authenticator field doesn't match, then a variable incrementer 316 increments N. A remaining response determiner 318 coupled to the variable incrementer 316 determines if there are any more responses in the queue. If not, the process ends. Otherwise, the process returns to the identifier field determiner 302 with the incremented N to examine the next packet. The present invention may be located in a network device designed to process packets, such as a router or gateway 320 connected to a network.

While embodiments and applications of this invention have been shown and described, it would be apparent to those skilled in the art having the benefit of this disclosure that many more modifications than mentioned above are possible without departing from the inventive concepts herein. The invention, therefore, is not to be restricted except in the spirit of the appended claims.

›Tables in the description — 1
TABLE 1
1.Access-Request (Request)
2.Access-Accept (Response)
3.Access-Reject (Response)
4.Accounting-Request (Request)
5.Accounting-Response (Response)
11.Access-Challenge (Response)
12.Status-Server (experimental)
13.Status-Client (experimental)
255.Reserved

Claims as granted

17 claims

Log in to read the claims of this application.

Log in to unlock

Classifications

4 codes
IPC · International Patent Classification
Section H — Electricity
  • H04L12/22
  • H04J3/26
USPC · US Patent Classification
370/475709/217

Claim changes

Soon
Coming soonHow the claims changed between publication and grant

See which claims were amended, added or cancelled during examination, with every added and removed word marked.

AmendedAddedCancelledUnchanged

The published claims of this application are not paired with the granted ones in what we hold.

File wrapper

⤢ drag to zoomJul 2004Jan 2005Jul 2005Jan 2006Jul 2006Jan 2007Jul 2007Jan 2008Jul 2008USPTOApplicantNon-final rejection
USPTOApplicanthover for detail · click to open
Pendency
4.1 y
1,512 days filing → grant
Office actions
1
non-final + final
Responses
2
no RCE
Examiner
Melvin Marcelo
art unit 2616 · TC 2600
Citations: 41 back · 1 forward

See the full prosecution history — every USPTO and applicant action on this file, in order.

Log in to unlock

Documents

Log in to open the documents of this file: the application as filed, every office action and response, the notice of allowance.

Log in to unlock

Chain of title

⤢ drag to zoom20042006200820102012201420162018202020222024Owner 1
Titlehover for detail · click to open

See the full assignment history — every owner this patent has passed through, with recordation dates and reel/frame numbers.

Log in to unlock