TreeviewCopyright © Pengfei Ni all right reserved, powered by aleen42

NETCONF

NETCONF是一个基于XML的交换机配置接口,用于替代CLI、SNMP等配置交换机。

协议

NETCONF通过RPC与交换机通信,其协议包含四层

            Layer                 Example
       +-------------+      +-----------------+      +----------------+
   (4) |   Content   |      |  Configuration  |      |  Notification  |
       |             |      |      data       |      |      data      |
       +-------------+      +-----------------+      +----------------+
              |                       |                      |
       +-------------+      +-----------------+              |
   (3) | Operations  |      |  <edit-config>  |              |
       |             |      |                 |              |
       +-------------+      +-----------------+              |
              |                       |                      |
       +-------------+      +-----------------+      +----------------+
   (2) |  Messages   |      |     <rpc>,      |      | <notification> |
       |             |      |   <rpc-reply>   |      |                |
       +-------------+      +-----------------+      +----------------+
              |                       |                      |
       +-------------+      +-----------------------------------------+
   (1) |   Secure    |      |  SSH, TLS, BEEP/TLS, SOAP/HTTP/TLS, ... |
       |  Transport  |      |                                         |
       +-------------+      +-----------------------------------------+
  • (1) 安全传输层,用于跟交换机安全通信,NETCONF并未规定具体使用哪种传输层协议,所以可以使用SSH、TLS、HTTP等各种协议
  • (2) 消息层,提供一种传输无关的消息封装格式,用于RPC通信
  • (3) 操作层,定义了一系列的RPC调用方法,并可以通过Capabilities来扩展
  • (4) 内容层,定义RPC调用的数据内容

参考文档

results matching ""

    No results matching ""