科技行者

行者学院 转型私董会 科技行者专题报道 网红大战科技行者

知识库

知识库 安全导航

至顶网网络频道华为Radius认证、计费报文入门(2)

华为Radius认证、计费报文入门(2)

  • 扫一扫
    分享文章到微信

  • 扫一扫
    关注官方公众号
    至顶头条

Radius报文中,code=1是认证请求报文,code=2和code=3分别是认证通过和认证失败报文,这三种报文只在用户上线时产生。中间的更新报文是从其他地方截取的,部分时间和流量参数不准确)。

作者:整理自互联网 来源:作者: 出处:巧巧读书 2007年12月1日

关键字: 华为 华为技术 华为交换机 华为路由器

  • 评论
  • 分享微博
  • 分享邮件

  Code = 2

  ID = 0

  ATTRIBUTES:

  Service_Type(6) = 2

  State(24) = 24

  Termination-Action(29) = 0

  Session-Timeout(27) = 86400

  hw-Connect-Id(26) = 72 //认证通过

  % 2004-04-28 11:28:38 ;[L_DEBUG (4)] ;LAN ;huawei ;4 ;36d754e8-3156-427c-8385-726e3cec5dc3 ;(null) ;RT[1]: Receive message from 10.153.29.200:

  CODE = 4.

  ID = 0.

  ATTRIBUTES:

  User-Name(1) = "huawei".

  NAS-Identifier(32) = "Quidway".

  NAS-Port(5) = 28673.

  NAS-Port-Id(87) = "slot=0;subslot=0;port=7;vlanid=1".

  NAS-Port-Type(61) = 15.

  Calling-Station-Id(31) = "000c-f1a2-ddce".

  Acct-Status-Type(40) = 1.

  Acct-Authentic(45) = 1.

  Acct-Session-Id(44) = "1040328122523".

  Framed-IP-Address(8) = 2852053299.(还未更新)

  NAS-IP-Address(4) = 177806792.

  Event-Timestamp(55) = 1083155129.

  hw_Connect_ID(26) = 72.

  hw_Input_Peak_Rate(1) = 0.

  hw_Input_Average_Rate(2) = 0.

  hw_Output_Peak_Rate(4) = 0.

  hw_Output_Average_Rate(5) = 0.

  hw_Priority(22) = 0.

  hw_IP_Host_Addr(60) = "169.254.225.51 00:0c:f1:a2:dd:ce".

  % 2004-04-28 11:28:38 ;[L_DEBUG (4)] ;LAN ;huawei ;5 ;36d754e8-3156-427c-8385-726e3cec5dc3 ;24 ;Send message attribut list:

  Code = 5

  ID = 0

  ATTRIBUTES:

  hw-Connect-Id(26) = 72 //开始计费

  % 2004-04-28 12:09:59 ;[L_DEBUG (4)] ;LAN ;huawei ;4 ;b90d16c2-534d-48f6-9fa6-64683e9e1bff ;(null) ;RT[1]: Receive message from 10.153.29.200:

  CODE = 4.

  ID = 4.

  ATTRIBUTES:

  User-Name(1) = "huawei".

  NAS-Identifier(32) = "Quidway".

  NAS-Port(5) = 28673.

  NAS-Port-Id(87) = "slot=0;subslot=0;port=7;vlanid=1".

  NAS-Port-Type(61) = 15.

  Calling-Station-Id(31) = "000c-f1a2-ddce".

  Acct-Status-Type(40) = 3.

  Acct-Authentic(45) = 1.

  Acct-Session-Id(44) = "1040328124124".

  Framed-IP-Address(8) = 177806593. (pc的ip地址更新为10.153.29.1)

  NAS-IP-Address(4) = 177806792.

  Event-Timestamp(55) = 1083157610.

  Acct-Session-Time(46) = 1502.

  Acct-Delay-Time(41) = 1.

  Acct-Input-Octets(42) = 1289458275.

  Acct-Input-Packets(47) = 3211985.

  Acct-Output-Octets(43) = 1704920353.

  Acct-Output-Packets(48) = 6898795.

  Acct-Input-Gigawords(52) = 0.

  Acct-Output-Gigawords(53) = 0.

  hw_Connect_ID(26) = 72.

  hw_Input_Peak_Rate(1) = 0.

  hw_Input_Average_Rate(2) = 0.

  hw_Output_Peak_Rate(4) = 0.

  hw_Output_Average_Rate(5) = 0.

  hw_Priority(22) = 0.

  hw_IP_Host_Addr(60) = "10.153.29.1 00:0c:f1:a2:dd:ce".

  % 2004-04-28 12:09:59 ;[L_DEBUG (4)] ;LAN ;huawei ;5 ;b90d16c2-534d-48f6-9fa6-64683e9e1bff ;25 ;Send message attribut list:

  Code = 5

  ID = 4

  ATTRIBUTES:

  Session-Timeout(27) = 84898

  hw-Connect-Id(26) = 72 //计费更新

  % 2004-04-28 12:29:00 ;[L_DEBUG (4)] ;LAN ;huawei ;4 ;18c19784-bd78-4bb4-b8a2-1416070da8f3 ;(null) ;RT[1]: Receive message from 10.153.29.200:

  CODE = 4.

  ID = 6.

  ATTRIBUTES:

  User-Name(1) = "huawei".

  NAS-Identifier(32) = "Quidway".

  NAS-Port(5) = 28673.

  NAS-Port-Id(87) = "slot=0;subslot=0;port=7;vlanid=1".

  NAS-Port-Type(61) = 15.

  Calling-Station-Id(31) = "000c-f1a2-ddce".

  Acct-Status-Type(40) = 2.

  Acct-Authentic(45) = 1.

  Acct-Session-Id(44) = "1040328122523".

  Framed-IP-Address(8) = 177806593.

  NAS-IP-Address(4) = 177806792.

  Event-Timestamp(55) = 1083155150.

  Acct-Session-Time(46) = 2112.

  Acct-Delay-Time(41) = 0.

  Acct-Input-Octets(42) = 1288900009.

  Acct-Input-Packets(47) = 3204430.

  Acct-Output-Octets(43) = 1697272686.

  Acct-Output-Packets(48) = 6874089.

  Acct-Input-Gigawords(52) = 0.

  Acct-Output-Gigawords(53) = 0.

  Acct-Terminate-Cause(49) = 1.

  hw_Connect_ID(26) = 72.

  hw_Input_Peak_Rate(1) = 0.

  hw_Input_Average_Rate(2) = 0.

  hw_Output_Peak_Rate(4) = 0.

  hw_Output_Average_Rate(5) = 0.

  hw_Priority(22) = 0.

  hw_IP_Host_Addr(60) = "169.254.225.51 00:0c:f1:a2:dd:ce".

  % 2004-04-28 12:29:00 ;[L_DEBUG (4)] ;LAN ;huawei ;5 ;18c19784-bd78-4bb4-b8a2-1416070da8f3 ;24 ;Send message attribut list:

  Code = 5

  ID = 6

  ATTRIBUTES:

  hw-Connect-Id(26) = 72 //用户下线,计费结束。

    • 评论
    • 分享微博
    • 分享邮件
    邮件订阅

    如果您非常迫切的想了解IT领域最新产品与技术信息,那么订阅至顶网技术邮件将是您的最佳途径之一。

    重磅专题
    往期文章
    最新文章