~ubuntu-branches/ubuntu/hardy/freeradius/hardy-proposed

« back to all changes in this revision

Viewing changes to doc/rfc/rfc2059.txt

  • Committer: Bazaar Package Importer
  • Author(s): Mark Hymers
  • Date: 2006-12-16 20:45:11 UTC
  • mfrom: (3.1.10 feisty)
  • Revision ID: james.westby@ubuntu.com-20061216204511-3pbbsu4s8jtehsor
Tags: 1.1.3-3
Fix POSIX compliance problem in init script.  Closes: #403384. 

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
 
2
 
 
3
 
 
4
 
 
5
 
 
6
 
 
7
 
Network Working Group                                          C. Rigney
8
 
Request for Comments: 2059                                    Livingston
9
 
Category: Informational                                     January 1996
10
 
 
11
 
 
12
 
                           RADIUS Accounting
13
 
 
14
 
Status of this Memo
15
 
 
16
 
   This memo provides information for the Internet community.  This memo
17
 
   does not specify an Internet standard of any kind.  Distribution of
18
 
   this memo is unlimited.
19
 
 
20
 
Abstract
21
 
 
22
 
   This document describes a protocol for carrying accounting
23
 
   information between a Network Access Server and a shared Accounting
24
 
   Server.
25
 
 
26
 
Table of Contents
27
 
 
28
 
   1.     Introduction ..........................................    2
29
 
      1.1       Specification of Requirements ...................    3
30
 
      1.2       Terminology .....................................    3
31
 
   2.     Operation .............................................    3
32
 
   3.     Packet Format .........................................    4
33
 
   4.     Packet Types ..........................................    6
34
 
      4.1       Accounting-Request ..............................    7
35
 
      4.2       Accounting-Response .............................    8
36
 
   5.     Attributes ............................................    9
37
 
      5.1       Acct-Status-Type ................................   11
38
 
      5.2       Acct-Delay-Time .................................   12
39
 
      5.3       Acct-Input-Octets ...............................   13
40
 
      5.4       Acct-Output-Octets ..............................   13
41
 
      5.5       Acct-Session-Id .................................   14
42
 
      5.6       Acct-Authentic ..................................   15
43
 
      5.7       Acct-Session-Time ...............................   16
44
 
      5.8       Acct-Input-Packets ..............................   17
45
 
      5.9       Acct-Output-Packets .............................   17
46
 
      5.10      Acct-Terminate-Cause ............................   18
47
 
      5.11      Acct-Multi-Session-Id ...........................   20
48
 
      5.12      Acct-Link-Count .................................   21
49
 
      5.13      Table of Attributes .............................   22
50
 
   Security Considerations ......................................   24
51
 
   References ...................................................   24
52
 
   Acknowledgements .............................................   24
53
 
   Chair's Address ..............................................   25
54
 
   Author's Address .............................................   25
55
 
 
56
 
 
57
 
 
58
 
Rigney                       Informational                      [Page 1]
59
 
 
60
 
RFC 2059                   RADIUS Accounting                January 1997
61
 
 
62
 
 
63
 
1.  Introduction
64
 
 
65
 
   Managing dispersed serial line and modem pools for large numbers of
66
 
   users can create the need for significant administrative support.
67
 
   Since modem pools are by definition a link to the outside world, they
68
 
   require careful attention to security, authorization and accounting.
69
 
   This can be best achieved by managing a single "database" of users,
70
 
   which allows for authentication (verifying user name and password) as
71
 
   well as configuration information detailing the type of service to
72
 
   deliver to the user (for example, SLIP, PPP, telnet, rlogin).
73
 
 
74
 
   The RADIUS (Remote Authentication Dial In User Service) document [4]
75
 
   specifies the RADIUS protocol used for Authentication and
76
 
   Authorization.  This memo extends the use of the RADIUS protocol to
77
 
   cover delivery of accounting information from the Network Access
78
 
   Server (NAS) to a RADIUS accounting server.
79
 
 
80
 
   Key features of RADIUS Accounting are:
81
 
 
82
 
      Client/Server Model
83
 
 
84
 
         A Network Access Server (NAS) operates as a client of the
85
 
         RADIUS accounting server.  The client is responsible for
86
 
         passing user accounting information to a designated RADIUS
87
 
         accounting server.
88
 
 
89
 
         The RADIUS accounting server is responsible for receiving the
90
 
         accounting request and returning a response to the client
91
 
         indicating that it has successfully received the request.
92
 
 
93
 
         The RADIUS accounting server can act as a proxy client to other
94
 
         kinds of accounting servers.
95
 
 
96
 
      Network Security
97
 
 
98
 
         Transactions between the client and RADIUS accounting server
99
 
         are authenticated through the use of a shared secret, which is
100
 
         never sent over the network.
101
 
 
102
 
      Extensible Protocol
103
 
 
104
 
         All transactions are comprised of variable length Attribute-
105
 
         Length-Value 3-tuples.  New attribute values can be added
106
 
         without disturbing existing implementations of the protocol.
107
 
 
108
 
   In this document, several words are used to signify the requirements
109
 
   of the specification.  These words are often capitalized.
110
 
 
111
 
 
112
 
 
113
 
 
114
 
Rigney                       Informational                      [Page 2]
115
 
 
116
 
RFC 2059                   RADIUS Accounting                January 1997
117
 
 
118
 
 
119
 
1.1  Specification of Requirements
120
 
 
121
 
   MUST      This word, or the adjective "required", means that the
122
 
             definition is an absolute requirement of the specification.
123
 
 
124
 
   MUST NOT  This phrase means that the definition is an absolute
125
 
             prohibition of the specification.
126
 
 
127
 
   SHOULD    This word, or the adjective "recommended", means that there
128
 
             may exist valid reasons in particular circumstances to
129
 
             ignore this item, but the full implications must be
130
 
             understood and carefully weighed before choosing a
131
 
             different course.
132
 
 
133
 
   MAY       This word, or the adjective "optional", means that this
134
 
             item is one of an allowed set of alternatives.  An
135
 
             implementation which does not include this option MUST be
136
 
             prepared to interoperate with another implementation which
137
 
             does include the option.
138
 
 
139
 
1.2.  Terminology
140
 
 
141
 
   This document uses the following terms:
142
 
 
143
 
   service   The NAS provides a service to the dial-in user, such as PPP
144
 
             or Telnet.
145
 
 
146
 
   session   Each service provided by the NAS to a dial-in user
147
 
             constitutes a session, with the beginning of the session
148
 
             defined as the point where service is first provided and
149
 
             the end of the session defined as the point where service
150
 
             is ended.  A user may have multiple sessions in parallel or
151
 
             series if the NAS supports that, with each session
152
 
             generating a separate start and stop accounting record with
153
 
             its own Acct-Session-Id.
154
 
 
155
 
   silently discard
156
 
             This means the implementation discards the packet without
157
 
             further processing.  The implementation SHOULD provide the
158
 
             capability of logging the error, including the contents of
159
 
             the silently discarded packet, and SHOULD record the event
160
 
             in a statistics counter.
161
 
 
162
 
2.  Operation
163
 
 
164
 
   When a client is configured to use RADIUS Accounting, at the start of
165
 
   service delivery it will generate an Accounting Start packet
166
 
   describing the type of service being delivered and the user it is
167
 
 
168
 
 
169
 
 
170
 
Rigney                       Informational                      [Page 3]
171
 
 
172
 
RFC 2059                   RADIUS Accounting                January 1997
173
 
 
174
 
 
175
 
   being delivered to, and will send that to the RADIUS Accounting
176
 
   server, which will send back an acknowledgement that the packet has
177
 
   been received.  At the end of service delivery the client will
178
 
   generate an Accounting Stop packet describing the type of service
179
 
   that was delivered and optionally statistics such as elapsed time,
180
 
   input and output octets, or input and output packets.  It will send
181
 
   that to the RADIUS Accounting server, which will send back an
182
 
   acknowledgement that the packet has been received.
183
 
 
184
 
   The Accounting-Request (whether for Start or Stop) is submitted to
185
 
   the RADIUS accounting server via the network. It is recommended that
186
 
   the client continue attempting to send the Accounting-Request packet
187
 
   until it receives an acknowledgement, using some form of backoff.  If
188
 
   no response is returned within a length of time, the request is re-
189
 
   sent a number of times.  The client can also forward requests to an
190
 
   alternate server or servers in the event that the primary server is
191
 
   down or unreachable.  An alternate server can be used either after a
192
 
   number of tries to the primary server fail, or in a round-robin
193
 
   fashion.  Retry and fallback algorithms are the topic of current
194
 
   research and are not specified in detail in this document.
195
 
 
196
 
   The RADIUS accounting server MAY make requests of other servers in
197
 
   order to satisfy the request, in which case it acts as a client.
198
 
 
199
 
   If the RADIUS accounting server is unable to successfully record the
200
 
   accounting packet it MUST NOT send an Accounting-Response
201
 
   acknowledgment to the client.
202
 
 
203
 
3.  Packet Format
204
 
 
205
 
   Exactly one RADIUS Accounting packet is encapsulated in the UDP Data
206
 
   field [1], where the UDP Destination Port field indicates 1813
207
 
   (decimal).
208
 
 
209
 
   When a reply is generated, the source and destination ports are
210
 
   reversed.
211
 
 
212
 
 
213
 
 
214
 
 
215
 
 
216
 
 
217
 
 
218
 
 
219
 
 
220
 
 
221
 
 
222
 
 
223
 
 
224
 
 
225
 
 
226
 
Rigney                       Informational                      [Page 4]
227
 
 
228
 
RFC 2059                   RADIUS Accounting                January 1997
229
 
 
230
 
 
231
 
   A summary of the RADIUS data format is shown below.  The fields are
232
 
   transmitted from left to right.
233
 
 
234
 
    0                   1                   2                   3
235
 
    0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
236
 
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
237
 
   |     Code      |  Identifier   |            Length             |
238
 
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
239
 
   |                                                               |
240
 
   |                         Authenticator                         |
241
 
   |                                                               |
242
 
   |                                                               |
243
 
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
244
 
   |  Attributes ...
245
 
   +-+-+-+-+-+-+-+-+-+-+-+-+-
246
 
 
247
 
Code
248
 
 
249
 
   The Code field is one octet, and identifies the type of RADIUS
250
 
   packet.  When a packet is received with an invalid Code field, it is
251
 
   silently discarded.
252
 
 
253
 
   RADIUS Accounting Codes (decimal) are assigned as follows:
254
 
 
255
 
        4       Accounting-Request
256
 
        5       Accounting-Response
257
 
 
258
 
 
259
 
Identifier
260
 
 
261
 
   The Identifier field is one octet, and aids in matching requests and
262
 
   replies.
263
 
 
264
 
Length
265
 
 
266
 
   The Length field is two octets.  It indicates the length of the
267
 
   packet including the Code, Identifier, Length, Authenticator and
268
 
   Attribute fields.  Octets outside the range of the Length field
269
 
   should be treated as padding and should be ignored on reception.  If
270
 
   the packet is shorter than the Length field indicates, it should be
271
 
   silently discarded.  The minimum length is 20 and maximum length is
272
 
   4096.
273
 
 
274
 
Authenticator
275
 
 
276
 
   The Authenticator field is sixteen (16) octets.  The most significant
277
 
   octet is transmitted first.  This value is used to authenticate the
278
 
   messages between the client and RADIUS accounting server.
279
 
 
280
 
 
281
 
 
282
 
Rigney                       Informational                      [Page 5]
283
 
 
284
 
RFC 2059                   RADIUS Accounting                January 1997
285
 
 
286
 
 
287
 
   Request Authenticator
288
 
 
289
 
      In Accounting-Request Packets, the Authenticator value is a 16
290
 
      octet MD5 [3] checksum, called the Request Authenticator.
291
 
 
292
 
      The NAS and RADIUS accounting server share a secret.  The Request
293
 
      Authenticator field in Accounting-Request packets contains a one-
294
 
      way MD5 hash calculated over a stream of octets consisting of the
295
 
      Code + Identifier + Length + 16 zero octets + request attributes +
296
 
      shared secret (where + indicates concatenation).  The 16 octet MD5
297
 
      hash value is stored in the Authenticator field of the
298
 
      Accounting-Request packet.
299
 
 
300
 
      Note that the Request Authenticator of an Accounting-Request can
301
 
      not be done the same way as the Request Authenticator of a RADIUS
302
 
      Access-Request, because there is no User-Password attribute in an
303
 
      Accounting-Request.
304
 
 
305
 
Response Authenticator
306
 
 
307
 
   The Authenticator field in an Accounting-Response packet is called
308
 
   the Response Authenticator, and contains a one-way MD5 hash
309
 
   calculated over a stream of octets consisting of the Accounting-
310
 
   Response Code, Identifier, Length, the Request Authenticator field
311
 
   from the Accounting-Request packet being replied to, and the response
312
 
   attributes if any, followed by the shared secret.  The resulting 16
313
 
   octet MD5 hash value is stored in the Authenticator field of the
314
 
   Accounting-Response packet.
315
 
 
316
 
Attributes
317
 
 
318
 
   Attributes may have multiple instances, in such a case the order of
319
 
   attributes of the same type SHOULD be preserved.  The order of
320
 
   attributes of different types is not required to be preserved.
321
 
 
322
 
4.  Packet Types
323
 
 
324
 
   The RADIUS packet type is determined by the Code field in the first
325
 
   octet of the packet.
326
 
 
327
 
 
328
 
 
329
 
 
330
 
 
331
 
 
332
 
 
333
 
 
334
 
 
335
 
 
336
 
 
337
 
 
338
 
Rigney                       Informational                      [Page 6]
339
 
 
340
 
RFC 2059                   RADIUS Accounting                January 1997
341
 
 
342
 
 
343
 
4.1.  Accounting-Request
344
 
 
345
 
   Description
346
 
 
347
 
      Accounting-Request packets are sent from a client (typically a
348
 
      Network Access Server or its proxy) to a RADIUS accounting server,
349
 
      and convey information used to provide accounting for a service
350
 
      provided to a user.  The client transmits a RADIUS packet with the
351
 
      Code field set to 4 (Accounting-Request).
352
 
 
353
 
      Upon receipt of an Accounting-Request, the server MUST transmit an
354
 
      Accounting-Response reply if it successfully records the
355
 
      accounting packet, and MUST NOT transmit any reply if it fails to
356
 
      record the accounting packet.
357
 
 
358
 
      Any attribute valid in a RADIUS Access-Request or Access-Accept
359
 
      packet is valid in a RADIUS Accounting-Request packet, except that
360
 
      the following attributes MUST NOT be present in an Accounting-
361
 
      Request: User-Password, CHAP-Password, Reply-Message, State.
362
 
      Either NAS-IP-Address or NAS-Identifier MUST be present in a
363
 
      RADIUS Accounting-Request.  It SHOULD contain a NAS-Port or NAS-
364
 
      Port-Type attribute or both unless the service does not involve a
365
 
      port or the NAS does not distinguish among its ports.
366
 
 
367
 
   A summary of the Accounting-Request packet format is shown below.
368
 
   The fields are transmitted from left to right.
369
 
 
370
 
    0                   1                   2                   3
371
 
    0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
372
 
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
373
 
   |     Code      |  Identifier   |            Length             |
374
 
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
375
 
   |                                                               |
376
 
   |                     Request Authenticator                     |
377
 
   |                                                               |
378
 
   |                                                               |
379
 
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
380
 
   |  Attributes ...
381
 
   +-+-+-+-+-+-+-+-+-+-+-+-+-
382
 
 
383
 
   Code
384
 
 
385
 
      4 for Accounting-Request.
386
 
 
387
 
   Identifier
388
 
 
389
 
      The Identifier field MUST be changed whenever the content of the
390
 
      Attributes field changes, and whenever a valid reply has been
391
 
 
392
 
 
393
 
 
394
 
Rigney                       Informational                      [Page 7]
395
 
 
396
 
RFC 2059                   RADIUS Accounting                January 1997
397
 
 
398
 
 
399
 
      received for a previous request.  For retransmissions where the
400
 
      contents are identical, the Identifier MUST remain unchanged.
401
 
 
402
 
      Note that if Acct-Delay-Time is included in the attributes of an
403
 
      Accounting-Request then the Acct-Delay-Time value will be updated
404
 
      when the packet is retransmitted, changing the content of the
405
 
      Attributes field and requiring a new Identifier and Request
406
 
      Authenticator.
407
 
 
408
 
   Request Authenticator
409
 
 
410
 
      The Request Authenticator of an Accounting-Request contains a 16-
411
 
      octet MD5 hash value calculated according to the method described
412
 
      in "Request Authenticator" above.
413
 
 
414
 
Attributes
415
 
 
416
 
   The Attributes field is variable in length, and contains a list of
417
 
   Attributes.
418
 
 
419
 
4.2.  Accounting-Response
420
 
 
421
 
   Description
422
 
 
423
 
      Accounting-Response packets are sent by the RADIUS accounting
424
 
      server to the client to acknowledge that the Accounting-Request
425
 
      has been received and recorded successfully.  If the Accounting-
426
 
      Request was recorded successfully then the RADIUS accounting
427
 
      server MUST transmit a packet with the Code field set to 5
428
 
      (Accounting-Response).  On reception of an Accounting-Response by
429
 
      the client, the Identifier field is matched with a pending
430
 
      Accounting-Request.  Invalid packets are silently discarded.
431
 
 
432
 
      A RADIUS Accounting-Response is not required to have any
433
 
      attributes in it.
434
 
 
435
 
 
436
 
 
437
 
 
438
 
 
439
 
 
440
 
 
441
 
 
442
 
 
443
 
 
444
 
 
445
 
 
446
 
 
447
 
 
448
 
 
449
 
 
450
 
Rigney                       Informational                      [Page 8]
451
 
 
452
 
RFC 2059                   RADIUS Accounting                January 1997
453
 
 
454
 
 
455
 
   A summary of the Accounting-Response packet format is shown below.
456
 
   The fields are transmitted from left to right.
457
 
 
458
 
    0                   1                   2                   3
459
 
    0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
460
 
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
461
 
   |     Code      |  Identifier   |            Length             |
462
 
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
463
 
   |                                                               |
464
 
   |                     Response Authenticator                    |
465
 
   |                                                               |
466
 
   |                                                               |
467
 
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
468
 
   |  Attributes ...
469
 
   +-+-+-+-+-+-+-+-+-+-+-+-+-
470
 
 
471
 
 
472
 
   Code
473
 
 
474
 
      5 for Accounting-Response.
475
 
 
476
 
   Identifier
477
 
 
478
 
      The Identifier field is a copy of the Identifier field of the
479
 
      Accounting-Request which caused this Accounting-Response.
480
 
 
481
 
   Response Authenticator
482
 
 
483
 
      The Response Authenticator of an Accounting-Response contains a
484
 
      16-octet MD5 hash value calculated according to the method
485
 
      described in "Response Authenticator" above.
486
 
 
487
 
   Attributes
488
 
 
489
 
      The Attributes field is variable in length, and contains a list of
490
 
      zero or more Attributes.
491
 
 
492
 
5.  Attributes
493
 
 
494
 
   RADIUS Attributes carry the specific authentication, authorization
495
 
   and accounting details for the request and response.
496
 
 
497
 
   Some attributes MAY be included more than once.  The effect of this
498
 
   is attribute specific, and is specified in each attribute
499
 
   description.
500
 
 
501
 
   The end of the list of attributes is indicated by the Length of the
502
 
   RADIUS packet.
503
 
 
504
 
 
505
 
 
506
 
Rigney                       Informational                      [Page 9]
507
 
 
508
 
RFC 2059                   RADIUS Accounting                January 1997
509
 
 
510
 
 
511
 
   A summary of the attribute format is shown below.  The fields are
512
 
   transmitted from left to right.
513
 
 
514
 
    0                   1                   2
515
 
    0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3
516
 
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
517
 
   |     Type      |    Length     |  Value ...
518
 
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
519
 
 
520
 
 
521
 
   Type
522
 
 
523
 
      The Type field is one octet.  Up-to-date values of the RADIUS Type
524
 
      field are specified in the most recent "Assigned Numbers" RFC [2].
525
 
      Values 192-223 are reserved for experimental use, values 224-240
526
 
      are reserved for implementation-specific use, and values 241-255
527
 
      are reserved and should not be used.  This specification concerns
528
 
      the following values:
529
 
 
530
 
           1-39   (refer to RADIUS document [4])
531
 
          40      Acct-Status-Type
532
 
          41      Acct-Delay-Time
533
 
          42      Acct-Input-Octets
534
 
          43      Acct-Output-Octets
535
 
          44      Acct-Session-Id
536
 
          45      Acct-Authentic
537
 
          46      Acct-Session-Time
538
 
          47      Acct-Input-Packets
539
 
          48      Acct-Output-Packets
540
 
          49      Acct-Terminate-Cause
541
 
          50      Acct-Multi-Session-Id
542
 
          51      Acct-Link-Count
543
 
          60+     (refer to RADIUS document [4])
544
 
 
545
 
   Length
546
 
 
547
 
      The Length field is one octet, and indicates the length of this
548
 
      attribute including the Type, Length and Value fields.  If an
549
 
      attribute is received in an Accounting-Request with an invalid
550
 
      Length, the entire request should be silently discarded.
551
 
 
552
 
   Value
553
 
 
554
 
      The Value field is zero or more octets and contains information
555
 
      specific to the attribute.  The format and length of the Value
556
 
      field is determined by the Type and Length fields.
557
 
 
558
 
      The format of the value field is one of four data types.
559
 
 
560
 
 
561
 
 
562
 
Rigney                       Informational                     [Page 10]
563
 
 
564
 
RFC 2059                   RADIUS Accounting                January 1997
565
 
 
566
 
 
567
 
      string    0-253 octets
568
 
 
569
 
      address   32 bit value, most significant octet first.
570
 
 
571
 
      integer   32 bit value, most significant octet first.
572
 
 
573
 
      time      32 bit value, most significant octet first -- seconds
574
 
                since 00:00:00 GMT, January 1, 1970.  The standard
575
 
                Attributes do not use this data type but it is presented
576
 
                here for possible use within Vendor-Specific attributes.
577
 
 
578
 
5.1.  Acct-Status-Type
579
 
 
580
 
   Description
581
 
 
582
 
      This attribute indicates whether this Accounting-Request marks the
583
 
      beginning of the user service (Start) or the end (Stop).
584
 
 
585
 
      It MAY be used by the client to mark the start of accounting (for
586
 
      example, upon booting) by specifying Accounting-On and to mark the
587
 
      end of accounting (for example, just before a scheduled reboot) by
588
 
      specifying Accounting-Off.
589
 
 
590
 
   A summary of the Acct-Status-Type attribute format is shown below.
591
 
   The fields are transmitted from left to right.
592
 
 
593
 
    0                   1                   2                   3
594
 
    0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
595
 
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
596
 
   |     Type      |    Length     |             Value
597
 
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
598
 
              Value (cont)         |
599
 
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
600
 
 
601
 
 
602
 
   Type
603
 
 
604
 
      40 for Acct-Status-Type.
605
 
 
606
 
   Length
607
 
 
608
 
      6
609
 
 
610
 
 
611
 
 
612
 
 
613
 
 
614
 
 
615
 
 
616
 
 
617
 
 
618
 
Rigney                       Informational                     [Page 11]
619
 
 
620
 
RFC 2059                   RADIUS Accounting                January 1997
621
 
 
622
 
 
623
 
   Value
624
 
 
625
 
      The Value field is four octets.
626
 
 
627
 
       1      Start
628
 
       2      Stop
629
 
       7      Accounting-On
630
 
       8      Accounting-Off
631
 
 
632
 
 
633
 
5.2.  Acct-Delay-Time
634
 
 
635
 
   Description
636
 
 
637
 
      This attribute indicates how many seconds the client has been
638
 
      trying to send this record for, and can be subtracted from the
639
 
      time of arrival on the server to find the approximate time of the
640
 
      event generating this Accounting-Request.  (Network transit time
641
 
      is ignored.)
642
 
 
643
 
      Note that changing the Acct-Delay-Time causes the Identifier to
644
 
      change; see the discussion under Identifier above.
645
 
 
646
 
   A summary of the Acct-Delay-Time attribute format is shown below.
647
 
   The fields are transmitted from left to right.
648
 
 
649
 
    0                   1                   2                   3
650
 
    0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
651
 
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
652
 
   |     Type      |    Length     |             Value
653
 
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
654
 
              Value (cont)         |
655
 
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
656
 
 
657
 
 
658
 
   Type
659
 
 
660
 
      41 for Acct-Delay-Time.
661
 
 
662
 
   Length
663
 
 
664
 
      6
665
 
 
666
 
   Value
667
 
 
668
 
      The Value field is four octets.
669
 
 
670
 
 
671
 
 
672
 
 
673
 
 
674
 
Rigney                       Informational                     [Page 12]
675
 
 
676
 
RFC 2059                   RADIUS Accounting                January 1997
677
 
 
678
 
 
679
 
5.3.  Acct-Input-Octets
680
 
 
681
 
   Description
682
 
 
683
 
      This attribute indicates how many octets have been received from
684
 
      the port over the course of this service being provided, and can
685
 
      only be present in Accounting-Request records where the Acct-
686
 
      Status-Type is set to Stop.
687
 
 
688
 
   A summary of the Acct-Input-Octets attribute format is shown below.
689
 
   The fields are transmitted from left to right.
690
 
 
691
 
    0                   1                   2                   3
692
 
    0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
693
 
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
694
 
   |     Type      |    Length     |             Value
695
 
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
696
 
              Value (cont)         |
697
 
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
698
 
 
699
 
 
700
 
   Type
701
 
 
702
 
      42 for Acct-Input-Octets.
703
 
 
704
 
   Length
705
 
 
706
 
      6
707
 
 
708
 
   Value
709
 
 
710
 
      The Value field is four octets.
711
 
 
712
 
5.4.  Acct-Output-Octets
713
 
 
714
 
   Description
715
 
 
716
 
      This attribute indicates how many octets have been sent to the
717
 
      port in the course of delivering this service, and can only be
718
 
      present in Accounting-Request records where the Acct-Status-Type
719
 
      is set to Stop.
720
 
 
721
 
 
722
 
 
723
 
 
724
 
 
725
 
 
726
 
 
727
 
 
728
 
 
729
 
 
730
 
Rigney                       Informational                     [Page 13]
731
 
 
732
 
RFC 2059                   RADIUS Accounting                January 1997
733
 
 
734
 
 
735
 
   A summary of the Acct-Output-Octets attribute format is shown below.
736
 
   The fields are transmitted from left to right.
737
 
 
738
 
    0                   1                   2                   3
739
 
    0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
740
 
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
741
 
   |     Type      |    Length     |             Value
742
 
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
743
 
              Value (cont)         |
744
 
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
745
 
 
746
 
 
747
 
   Type
748
 
 
749
 
      43 for Acct-Output-Octets.
750
 
 
751
 
   Length
752
 
 
753
 
      6
754
 
 
755
 
   Value
756
 
 
757
 
      The Value field is four octets.
758
 
 
759
 
5.5.  Acct-Session-Id
760
 
 
761
 
   Description
762
 
 
763
 
      This attribute is a unique Accounting ID to make it easy to match
764
 
      start and stop records in a log file.  The start and stop records
765
 
      for a given session MUST have the same Acct-Session-Id.  It is
766
 
      strongly recommended that the Acct-Session-Id be a printable ASCII
767
 
      string.
768
 
 
769
 
      For example, one implementation uses a string with an 8-digit
770
 
      upper case hexadecimal number, the first two digits increment on
771
 
      each reboot (wrapping every 256 reboots) and the next 6 digits
772
 
      counting from 0 for the first person logging in after a reboot up
773
 
      to 2^24-1, about 16 million.  Other encodings are possible.
774
 
 
775
 
 
776
 
 
777
 
 
778
 
 
779
 
 
780
 
 
781
 
 
782
 
 
783
 
 
784
 
 
785
 
 
786
 
Rigney                       Informational                     [Page 14]
787
 
 
788
 
RFC 2059                   RADIUS Accounting                January 1997
789
 
 
790
 
 
791
 
   A summary of the Acct-Session-Id attribute format is shown below.
792
 
   The fields are transmitted from left to right.
793
 
 
794
 
    0                   1                   2
795
 
    0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3
796
 
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
797
 
   |     Type      |    Length     |  String ...
798
 
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
799
 
 
800
 
 
801
 
   Type
802
 
 
803
 
      44 for Acct-Session-Id.
804
 
 
805
 
   Length
806
 
 
807
 
      >= 3
808
 
 
809
 
   String
810
 
 
811
 
      The String field SHOULD be a string of printable ASCII characters.
812
 
 
813
 
5.6.  Acct-Authentic
814
 
 
815
 
   Description
816
 
 
817
 
      This attribute MAY be included in an Accounting-Request to
818
 
      indicate how the user was authenticated, whether by RADIUS, the
819
 
      NAS itself, or another remote authentication protocol.  Users who
820
 
      are delivered service without being authenticated SHOULD NOT
821
 
      generate Accounting records.
822
 
 
823
 
   A summary of the Acct-Authentic attribute format is shown below.  The
824
 
   fields are transmitted from left to right.
825
 
 
826
 
    0                   1                   2                   3
827
 
    0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
828
 
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
829
 
   |     Type      |    Length     |             Value
830
 
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
831
 
              Value (cont)         |
832
 
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
833
 
 
834
 
 
835
 
   Type
836
 
 
837
 
      45 for Acct-Authentic.
838
 
 
839
 
 
840
 
 
841
 
 
842
 
Rigney                       Informational                     [Page 15]
843
 
 
844
 
RFC 2059                   RADIUS Accounting                January 1997
845
 
 
846
 
 
847
 
   Length
848
 
 
849
 
      6
850
 
 
851
 
   Value
852
 
 
853
 
      The Value field is four octets.
854
 
 
855
 
       1      RADIUS
856
 
       2      Local
857
 
       3      Remote
858
 
 
859
 
5.7.  Acct-Session-Time
860
 
 
861
 
   Description
862
 
 
863
 
      This attribute indicates how many seconds the user has received
864
 
      service for, and can only be present in Accounting-Request records
865
 
      where the Acct-Status-Type is set to Stop.
866
 
 
867
 
   A summary of the Acct-Session-Time attribute format is shown below.
868
 
   The fields are transmitted from left to right.
869
 
 
870
 
    0                   1                   2                   3
871
 
    0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
872
 
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
873
 
   |     Type      |    Length     |             Value
874
 
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
875
 
              Value (cont)         |
876
 
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
877
 
 
878
 
   Type
879
 
 
880
 
      46 for Acct-Session-Time.
881
 
 
882
 
   Length
883
 
 
884
 
      6
885
 
 
886
 
   Value
887
 
 
888
 
      The Value field is four octets.
889
 
 
890
 
 
891
 
 
892
 
 
893
 
 
894
 
 
895
 
 
896
 
 
897
 
 
898
 
Rigney                       Informational                     [Page 16]
899
 
 
900
 
RFC 2059                   RADIUS Accounting                January 1997
901
 
 
902
 
 
903
 
5.8.  Acct-Input-Packets
904
 
 
905
 
   Description
906
 
 
907
 
      This attribute indicates how many packets have been received from
908
 
      the port over the course of this service being provided to a
909
 
      Framed User, and can only be present in Accounting-Request records
910
 
      where the Acct-Status-Type is set to Stop.
911
 
 
912
 
   A summary of the Acct-Input-packets attribute format is shown below.
913
 
   The fields are transmitted from left to right.
914
 
 
915
 
    0                   1                   2                   3
916
 
    0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
917
 
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
918
 
   |     Type      |    Length     |             Value
919
 
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
920
 
              Value (cont)         |
921
 
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
922
 
 
923
 
 
924
 
   Type
925
 
 
926
 
      47 for Acct-Input-Packets.
927
 
 
928
 
   Length
929
 
 
930
 
      6
931
 
 
932
 
   Value
933
 
 
934
 
      The Value field is four octets.
935
 
 
936
 
5.9.  Acct-Output-Packets
937
 
 
938
 
   Description
939
 
 
940
 
      This attribute indicates how many packets have been sent to the
941
 
      port in the course of delivering this service to a Framed User,
942
 
      and can only be present in Accounting-Request records where the
943
 
      Acct-Status-Type is set to Stop.
944
 
 
945
 
 
946
 
 
947
 
 
948
 
 
949
 
 
950
 
 
951
 
 
952
 
 
953
 
 
954
 
Rigney                       Informational                     [Page 17]
955
 
 
956
 
RFC 2059                   RADIUS Accounting                January 1997
957
 
 
958
 
 
959
 
   A summary of the Acct-Output-Packets attribute format is shown below.
960
 
   The fields are transmitted from left to right.
961
 
 
962
 
    0                   1                   2                   3
963
 
    0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
964
 
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
965
 
   |     Type      |    Length     |             Value
966
 
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
967
 
              Value (cont)         |
968
 
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
969
 
 
970
 
 
971
 
   Type
972
 
 
973
 
      48 for Acct-Output-Packets.
974
 
 
975
 
   Length
976
 
 
977
 
      6
978
 
 
979
 
   Value
980
 
 
981
 
      The Value field is four octets.
982
 
 
983
 
 
984
 
5.10.  Acct-Terminate-Cause
985
 
 
986
 
   Description
987
 
 
988
 
      This attribute indicates how the session was terminated, and can
989
 
      only be present in Accounting-Request records where the Acct-
990
 
      Status-Type is set to Stop.
991
 
 
992
 
   A summary of the Acct-Terminate-Cause attribute format is shown
993
 
   below.  The fields are transmitted from left to right.
994
 
 
995
 
    0                   1                   2                   3
996
 
    0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
997
 
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
998
 
   |     Type      |    Length     |             Value
999
 
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
1000
 
              Value (cont)         |
1001
 
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
1002
 
 
1003
 
 
1004
 
   Type
1005
 
 
1006
 
      49 for Acct-Terminate-Cause
1007
 
 
1008
 
 
1009
 
 
1010
 
Rigney                       Informational                     [Page 18]
1011
 
 
1012
 
RFC 2059                   RADIUS Accounting                January 1997
1013
 
 
1014
 
 
1015
 
   Length
1016
 
 
1017
 
      6
1018
 
 
1019
 
   Value
1020
 
 
1021
 
      The Value field is four octets, containing an integer specifying
1022
 
      the cause of session termination, as follows:
1023
 
 
1024
 
      1       User Request
1025
 
      2       Lost Carrier
1026
 
      3       Lost Service
1027
 
      4       Idle Timeout
1028
 
      5       Session Timeout
1029
 
      6       Admin Reset
1030
 
      7       Admin Reboot
1031
 
      8       Port Error
1032
 
      9       NAS Error
1033
 
      10      NAS Request
1034
 
      11      NAS Reboot
1035
 
      12      Port Unneeded
1036
 
      13      Port Preempted
1037
 
      14      Port Suspended
1038
 
      15      Service Unavailable
1039
 
      16      Callback
1040
 
      17      User Error
1041
 
      18      Host Request
1042
 
 
1043
 
 
1044
 
      The termination causes are as follows:
1045
 
 
1046
 
      User Request         User requested termination of service, for
1047
 
                           example with LCP Terminate or by logging out.
1048
 
 
1049
 
      Lost Carrier         DCD was dropped on the port.
1050
 
 
1051
 
      Lost Service         Service can no longer be provided; for
1052
 
                           example, user's connection to a host was
1053
 
                           interrupted.
1054
 
 
1055
 
      Idle Timeout         Idle timer expired.
1056
 
 
1057
 
      Session Timeout      Maximum session length timer expired.
1058
 
 
1059
 
      Admin Reset          Administrator reset the port or session.
1060
 
 
1061
 
      Admin Reboot         Administrator is ending service on the NAS,
1062
 
                           for example prior to rebooting the NAS.
1063
 
 
1064
 
 
1065
 
 
1066
 
Rigney                       Informational                     [Page 19]
1067
 
 
1068
 
RFC 2059                   RADIUS Accounting                January 1997
1069
 
 
1070
 
 
1071
 
      Port Error           NAS detected an error on the port which
1072
 
                           required ending the session.
1073
 
 
1074
 
      NAS Error            NAS detected some error (other than on the
1075
 
                           port) which required ending the session.
1076
 
 
1077
 
      NAS Request          NAS ended session for a non-error reason not
1078
 
                           otherwise listed here.
1079
 
 
1080
 
      NAS Reboot           The NAS ended the session in order to reboot
1081
 
                           non-administratively ("crash").
1082
 
 
1083
 
      Port Unneeded        NAS ended session because resource usage fell
1084
 
                           below low-water mark (for example, if a
1085
 
                           bandwidth-on-demand algorithm decided that
1086
 
                           the port was no longer needed).
1087
 
 
1088
 
      Port Preempted       NAS ended session in order to allocate the
1089
 
                           port to a higher priority use.
1090
 
 
1091
 
      Port Suspended       NAS ended session to suspend a virtual
1092
 
                           session.
1093
 
 
1094
 
      Service Unavailable  NAS was unable to provide requested service.
1095
 
 
1096
 
      Callback             NAS is terminating current session in order
1097
 
                           to perform callback for a new session.
1098
 
 
1099
 
      User Error           Input from user is in error, causing
1100
 
                           termination of session.
1101
 
 
1102
 
      Host Request         Login Host terminated session normally.
1103
 
 
1104
 
5.11.  Acct-Multi-Session-Id
1105
 
 
1106
 
   Description
1107
 
 
1108
 
      This attribute is a unique Accounting ID to make it easy to link
1109
 
      together multiple related sessions in a log file.  Each session
1110
 
      linked together would have a unique Acct-Session-Id but the same
1111
 
      Acct-Multi-Session-Id.  It is strongly recommended that the Acct-
1112
 
      Multi-Session-Id be a printable ASCII string.
1113
 
 
1114
 
 
1115
 
 
1116
 
 
1117
 
 
1118
 
 
1119
 
 
1120
 
 
1121
 
 
1122
 
Rigney                       Informational                     [Page 20]
1123
 
 
1124
 
RFC 2059                   RADIUS Accounting                January 1997
1125
 
 
1126
 
 
1127
 
   A summary of the Acct-Session-Id attribute format is shown below.
1128
 
   The fields are transmitted from left to right.
1129
 
 
1130
 
    0                   1                   2
1131
 
    0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3
1132
 
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
1133
 
   |     Type      |    Length     |  String ...
1134
 
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
1135
 
 
1136
 
 
1137
 
   Type
1138
 
 
1139
 
      50 for Acct-Multi-Session-Id.
1140
 
 
1141
 
   Length
1142
 
 
1143
 
      >= 3
1144
 
 
1145
 
   String
1146
 
 
1147
 
      The String field SHOULD be a string of printable ASCII characters.
1148
 
 
1149
 
5.12.  Acct-Link-Count
1150
 
 
1151
 
   Description
1152
 
 
1153
 
      This attribute gives the count of links which are known to have
1154
 
      been in a given multilink session at the time the accounting
1155
 
      record is generated.  The NAS MAY include the Acct-Link-Count
1156
 
      attribute in any Accounting-Request which might have multiple
1157
 
      links.
1158
 
 
1159
 
   A summary of the Acct-Link-Count attribute format is show below.  The
1160
 
   fields are transmitted from left to right.
1161
 
 
1162
 
    0                   1                   2                   3
1163
 
    0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
1164
 
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
1165
 
   |     Type      |    Length     |             Value
1166
 
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
1167
 
              Value (cont)         |
1168
 
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
1169
 
 
1170
 
 
1171
 
   Type
1172
 
 
1173
 
      51 for Acct-Link-Count.
1174
 
 
1175
 
 
1176
 
 
1177
 
 
1178
 
Rigney                       Informational                     [Page 21]
1179
 
 
1180
 
RFC 2059                   RADIUS Accounting                January 1997
1181
 
 
1182
 
 
1183
 
   Length
1184
 
 
1185
 
      6
1186
 
 
1187
 
   Value
1188
 
 
1189
 
      The Value field is four octets, and contains the number of links
1190
 
      seen so far in this Multilink Session.
1191
 
 
1192
 
      It may be used to make it easier for an accounting server to know
1193
 
      when it has all the records for a given Multilink session.  When
1194
 
      the number of Accounting-Requests received with Acct-Status-Type =
1195
 
      Stop and the same Acct-Multi-Session-Id and unique Acct-Session-
1196
 
      Id's equals the largest value of Acct-Link-Count seen in those
1197
 
      Accounting-Requests, all Stop Accounting-Requests for that
1198
 
      Multilink Session have been received.
1199
 
 
1200
 
      An example showing 8 Accounting-Requests should make things
1201
 
      clearer.  For clarity only the relevant attributes are shown, but
1202
 
      additional attributes containing accounting information will also
1203
 
      be present in the Accounting-Request.
1204
 
 
1205
 
      Multi-Session-Id   Session-Id   Status-Type   Link-Count
1206
 
      "10"               "10"         Start         1
1207
 
      "10"               "11"         Start         2
1208
 
      "10"               "11"         Stop          2
1209
 
      "10"               "12"         Start         3
1210
 
      "10"               "13"         Start         4
1211
 
      "10"               "12"         Stop          4
1212
 
      "10"               "13"         Stop          4
1213
 
      "10"               "10"         Stop          4
1214
 
 
1215
 
5.13.  Table of Attributes
1216
 
 
1217
 
   The following table provides a guide to which attributes may be found
1218
 
   in Accounting-Request packets.  No attributes should be found in
1219
 
   Accounting-Response packets except Proxy-State and possibly Vendor-
1220
 
   Specific.
1221
 
 
1222
 
 
1223
 
                      #     Attribute
1224
 
                      0-1   User-Name
1225
 
                      0     User-Password
1226
 
                      0     CHAP-Password
1227
 
                      0-1   NAS-IP-Address [4]
1228
 
                      0-1   NAS-Port
1229
 
                      0-1   Service-Type
1230
 
                      0-1   Framed-Protocol
1231
 
 
1232
 
 
1233
 
 
1234
 
Rigney                       Informational                     [Page 22]
1235
 
 
1236
 
RFC 2059                   RADIUS Accounting                January 1997
1237
 
 
1238
 
 
1239
 
                      0-1   Framed-IP-Address
1240
 
                      0-1   Framed-IP-Netmask
1241
 
                      0-1   Framed-Routing
1242
 
                      0+    Filter-Id
1243
 
                      0-1   Framed-MTU
1244
 
                      0+    Framed-Compression
1245
 
                      0+    Login-IP-Host
1246
 
                      0-1   Login-Service
1247
 
                      0-1   Login-TCP-Port
1248
 
                      0     Reply-Message
1249
 
                      0-1   Callback-Number
1250
 
                      0-1   Callback-Id
1251
 
                      0+    Framed-Route
1252
 
                      0-1   Framed-IPX-Network
1253
 
                      0     State
1254
 
                      0+    Class
1255
 
                      0+    Vendor-Specific
1256
 
                      0-1   Session-Timeout
1257
 
                      0-1   Idle-Timeout
1258
 
                      0-1   Termination-Action
1259
 
                      0-1   Called-Station-Id
1260
 
                      0-1   Calling-Station-Id
1261
 
                      0-1   NAS-Identifier [4]
1262
 
                      0+    Proxy-State
1263
 
                      0-1   Login-LAT-Service
1264
 
                      0-1   Login-LAT-Node
1265
 
                      0-1   Login-LAT-Group
1266
 
                      0-1   Framed-AppleTalk-Link
1267
 
                      0-1   Framed-AppleTalk-Network
1268
 
                      0-1   Framed-AppleTalk-Zone
1269
 
                      1     Acct-Status-Type
1270
 
                      0-1   Acct-Delay-Time
1271
 
                      0-1   Acct-Input-Octets
1272
 
                      0-1   Acct-Output-Octets
1273
 
                      1     Acct-Session-Id
1274
 
                      0-1   Acct-Authentic
1275
 
                      0-1   Acct-Session-Time
1276
 
                      0-1   Acct-Input-Packets
1277
 
                      0-1   Acct-Output-Packets
1278
 
                      0-1   Acct-Terminate-Cause
1279
 
                      0+    Acct-Multi-Session-Id
1280
 
                      0+    Acct-Link-Count
1281
 
                      0     CHAP-Challenge
1282
 
                      0-1   NAS-Port-Type
1283
 
                      0-1   Port-Limit
1284
 
                      0-1   Login-LAT-Port
1285
 
 
1286
 
 
1287
 
 
1288
 
 
1289
 
 
1290
 
Rigney                       Informational                     [Page 23]
1291
 
 
1292
 
RFC 2059                   RADIUS Accounting                January 1997
1293
 
 
1294
 
 
1295
 
   [4] An Accounting-Request MUST contain either a NAS-IP-Address or a
1296
 
   NAS-Identifier, and it is permitted (but not recommended) for it to
1297
 
   contain both.
1298
 
 
1299
 
   The following table defines the above table entries.
1300
 
 
1301
 
      0     This attribute MUST NOT be present
1302
 
      0+    Zero or more instances of this attribute MAY be present.
1303
 
      0-1   Zero or one instance of this attribute MAY be present.
1304
 
      1     Exactly one instance of this attribute MUST be present.
1305
 
 
1306
 
Security Considerations
1307
 
 
1308
 
   Security issues are briefly discussed in sections concerning the
1309
 
   authenticator included in accounting requests and responses, using a
1310
 
   shared secret which is never sent over the network.
1311
 
 
1312
 
References
1313
 
 
1314
 
   [1]   Postel, J., "User Datagram Protocol", STD 6, RFC 768,
1315
 
         USC/Information Sciences Institute, August 1980.
1316
 
 
1317
 
   [2]   Reynolds, J., and J. Postel, "Assigned Numbers", STD 2, RFC
1318
 
         1700, USC/Information Sciences Institute, October 1994.
1319
 
 
1320
 
   [3]   Rivest, R., and S. Dusse, "The MD5 Message-Digest Algorithm",
1321
 
         RFC 1321, MIT Laboratory for Computer Science, RSA Data
1322
 
         Security Inc., April 1992.
1323
 
 
1324
 
   [4]   Rigney, C., Rubens, A., Simpson, W., and S. Willens, "Remote
1325
 
         Authentication Dial In User Service (RADIUS)", RFC 2058,
1326
 
         January 1997.
1327
 
 
1328
 
Acknowledgments
1329
 
 
1330
 
   RADIUS and RADIUS Accounting were originally developed by Livingston
1331
 
   Enterprises for their PortMaster series of Network Access Servers.
1332
 
 
1333
 
 
1334
 
 
1335
 
 
1336
 
 
1337
 
 
1338
 
 
1339
 
 
1340
 
 
1341
 
 
1342
 
 
1343
 
 
1344
 
 
1345
 
 
1346
 
Rigney                       Informational                     [Page 24]
1347
 
 
1348
 
RFC 2059                   RADIUS Accounting                January 1997
1349
 
 
1350
 
 
1351
 
Chair's Address
1352
 
 
1353
 
   The RADIUS working group can be contacted via the current chair:
1354
 
 
1355
 
   Carl Rigney
1356
 
   Livingston Enterprises
1357
 
   6920 Koll Center Parkway, Suite 220
1358
 
   Pleasanton, California  94566
1359
 
 
1360
 
   Phone: +1 510 426 0770
1361
 
   EMail: cdr@livingston.com
1362
 
 
1363
 
 
1364
 
Author's Address
1365
 
 
1366
 
   Questions about this memo can also be directed to:
1367
 
 
1368
 
   Carl Rigney
1369
 
   Livingston Enterprises
1370
 
   6920 Koll Center Parkway, Suite 220
1371
 
   Pleasanton, California  94566
1372
 
 
1373
 
   EMail: cdr@livingston.com
1374
 
 
1375
 
 
1376
 
 
1377
 
 
1378
 
 
1379
 
 
1380
 
 
1381
 
 
1382
 
 
1383
 
 
1384
 
 
1385
 
 
1386
 
 
1387
 
 
1388
 
 
1389
 
 
1390
 
 
1391
 
 
1392
 
 
1393
 
 
1394
 
 
1395
 
 
1396
 
 
1397
 
 
1398
 
 
1399
 
 
1400
 
 
1401
 
 
1402
 
Rigney                       Informational                     [Page 25]
1403