diameter协议和wireshark和REST

1.diameter

  diameter 协议 主要为应用程序提供 认证 鉴权 计费框架 即AAA,并支持 本地AAA和漫游场景下的AAA 

                  认证:校验一个实体一致性的动作

                  鉴权:决定一个请求实体是否允许访问某项资源

                  计费:为制定审计账单费用分配等目的而进行资源使用心得的收集动作

  AVP:  Attribute-Value-Pairs  属性值对  (类似于字典?)

      Diameter消息由 一个报文头后跟一个或多个AVP组成

      一个AVP包含一个头用于协议细节数据

  Realm:  域

  Session:  会话

2.Diameter消息的 应用层 路由

  创建和发送的Request消息

    头部的R

    Origin-Host 和 Origin-Realm 的 AVP必须携带,用来标识消息的源地址

    Destination-Host 和 Destination-Realm 的 AVP 需根据一些规则设置

  收到的Request消息

  

  创建 Answer 消息

    将本地主机标识作为Origin-Host AVP

    加上Result-Code AVP指示成功与否

  收到 Answer 消息

3.Diatemer 基础协议的概要

  Destination Host:用于标识一台运行Diameter应用的主机,命名方式类似DNS格式,但并不是域名,只是一个标识符,一台主机可以支持一个或多个diameter应用

  Destination Realm:用于标识一组运行Diameter应用的主机,可以将多台Host划归为一个Realm中  

  

  Diameter通过传输层TCP/SCTP建立连接后,传输的第一个消息就是CER/CEA,通过该消息的交互了解到对端都支持哪些应用.

 4.rest是什么

  Representational State Transfer (REST) is a software architecture style consisting of guidelines and best practices for creating scalable web services. REST is a coordinated set of constraints applied to the design of components in a distributed hypermedia system that can lead to a more performant and maintainable architecture.

  REST就是通过选择使用Http协议和uri,利用client/server mode对资源进行CRUD增删改查操作 create read update delete

5.  CCR: credit control request

   CCA:credit control answer

   RAR:re-authentication request

   RAA:re-authentication answer

                         

  

原文地址:https://www.cnblogs.com/zzhhzf/p/14143157.html