Annotation of embedaddon/mpd/doc/mpd37.html, revision 1.1

1.1     ! misho       1: <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
        !             2: <HTML>
        !             3: <HEAD>
        !             4: <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
        !             5: <TITLE>Typed Accounting Update</TITLE>
        !             6: </HEAD>
        !             7: <BODY text="#000000" bgcolor="#ffffff">
        !             8: 
        !             9: <A HREF="mpd.html"><EM>Mpd 5.6 User Manual</EM></A>
        !            10:  <b>:</b> <A HREF="mpd17.html"><EM>Configuring Mpd</EM></A>
        !            11:  <b>:</b> <A HREF="mpd33.html"><EM>Traffic accounting</EM></A>
        !            12:  <b>:</b> <EM>Typed Accounting Update</EM><BR>
        !            13: <b>Previous:</b> <A HREF="mpd36.html"><EM>Accounting Update</EM></A><BR>
        !            14: <b>Next:</b> <A HREF="mpd38.html"><EM>IP address pools</EM></A>
        !            15: 
        !            16: 
        !            17: <HR NOSHADE>
        !            18:   <H2><A NAME="37"></A>4.12.4. Typed Accounting Update</H2>
        !            19: <p>In addition to standard Accounting Update stats, mpd is able to provide
        !            20: accounting information for any specified traffic types. Traffic types
        !            21: may be defined using optional third component of mpd-limit's left part.</p>
        !            22: <p>In accounting requests mpd can provide such attributes:
        !            23: for radius-acct:
        !            24: <dl>
        !            25: <dt><b><code>mpd-input-packets</code></b><dd><p>traffic type : 64bit input packets counter,</p>
        !            26: <dt><b><code>mpd-output-packets</code></b><dd><p>traffic type : 64bit output packets counter,</p>
        !            27: <dt><b><code>mpd-input-octets</code></b><dd><p>traffic type : 64bit of input bytes counter,</p>
        !            28: <dt><b><code>mpd-output-octets</code></b><dd><p>traffic type : 64bit of output bytes counter,</p>
        !            29: </dl>
        !            30: 
        !            31: for ext-acct:
        !            32: <dl>
        !            33: <dt><b><code>MPD_INPUT_PACKETS</code></b><dd><p>traffic type : 64bit input packets counter,</p>
        !            34: <dt><b><code>MPD_OUTPUT_PACKETS</code></b><dd><p>traffic type : 64bit output packets counter,</p>
        !            35: <dt><b><code>MPD_INPUT_OCTETS</code></b><dd><p>traffic type : 64bit input bytes counter,</p>
        !            36: <dt><b><code>MPD_OUTPUT_OCTETS</code></b><dd><p>traffic type : 64bit output bytes counter.</p>
        !            37: </dl>
        !            38: </p>
        !            39: <p>NOTE: as Typed Accounting Update is implemented on interface layer instead
        !            40: of link as usual Accounting Update, same data will be reported for every
        !            41: link of multilink connection. Some special care should be taken by AAA
        !            42: to not account same traffic twice in multilink case.</p>
        !            43: <p>For example, specification:
        !            44: <pre>
        !            45: mpd-filter += "1#1=match dst net 10.0.0.0/8",
        !            46: mpd-limit += "in#1#Local=flt1 pass",
        !            47: mpd-limit += "in#2#Biz=all shape 64000 4000",
        !            48: </pre>
        !            49: 
        !            50: , or for ext-auth:
        !            51: <pre>
        !            52: MPD_FILTER:1#1=match dst net 10.0.0.0/8
        !            53: MPD_LIMIT:in#1#Local=flt1 pass
        !            54: MPD_LIMIT:in#2#Biz=all shape 64000 4000
        !            55: </pre>
        !            56: 
        !            57: will instruct mpd to account traffic of two types: "Local" and "Biz".
        !            58: Traffic going from client to the 10.0.0.0/8 network will be accounted
        !            59: as "Local", all other incoming traffic after shaping will be accounted as "Biz".
        !            60: In accounting request mpd will provide to RADIUS something like:
        !            61: <pre>
        !            62: mpd-input-packets = Local:213213
        !            63: mpd-input-octets = Local:32132132
        !            64: mpd-input-packets = Biz:21321
        !            65: mpd-input-octets = Biz:3213213
        !            66: </pre>
        !            67: 
        !            68: , and for ext-acct:
        !            69: <pre>
        !            70: ACCT_INPUT_PACKETS:Local:213213
        !            71: ACCT_INPUT_OCTETS:Local:32132132
        !            72: ACCT_INPUT_PACKETS:Biz:21321
        !            73: ACCT_INPUT_OCTETS:Biz:3213213
        !            74: </pre>
        !            75: </p>
        !            76: <p>To simplify AAA integration mpd able to return specified traffic types
        !            77: using standatd RADIUS attributes. Required traffic type can be specified
        !            78: using mpd-input-acct/mpd-output-acct attributes.</p>
        !            79: 
        !            80:  <HR NOSHADE>
        !            81: <A HREF="mpd.html"><EM>Mpd 5.6 User Manual</EM></A>
        !            82:  <b>:</b> <A HREF="mpd17.html"><EM>Configuring Mpd</EM></A>
        !            83:  <b>:</b> <A HREF="mpd33.html"><EM>Traffic accounting</EM></A>
        !            84:  <b>:</b> <EM>Typed Accounting Update</EM><BR>
        !            85: <b>Previous:</b> <A HREF="mpd36.html"><EM>Accounting Update</EM></A><BR>
        !            86: <b>Next:</b> <A HREF="mpd38.html"><EM>IP address pools</EM></A>
        !            87: 
        !            88: 
        !            89: 
        !            90: </BODY>
        !            91: </HTML>

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>