PCEP 协议学习笔记

RFC5440 章节:

Open and Keepalive 消息: 建立维护pce会话消息

pcep中任何消息口可以看成keepalive消息,发送keepalive消息可以采用定时发送,也可以根据最后发送的pce消息决定下一个keepalive发送时间。

 

PCReq消息:请求路径计算

 

PCRep消息 :响应PCC 发送的PCReq消息, 回复的内容是满足请求的算路路径, 或是算路失败的信息。

 

PCNtf消息:   PCC与PCE之间的通告消息,用来通告指定事件(如下两种情况)

 

 

PCErr消息:  协议错误时发送此消息(如接收方检查消息格式不对,或参数中指定要携带某tlv,但消息中没携带)

 

Close 消息: 用来关闭pcep 回合。

注意(close 消息与req消息不能乱序)

  Each PCEP message is regarded as a single transmission unit and parts
   of messages MUST NOT be interleaved.  So, for example, a PCC sending
   a PCReq and wishing to close the session, must complete sending the
   request message before starting to send a Close message
.

 

消息格式 由一个COMM header头 + 各个tlv消息组成

消息头;

     0                   1                   2                   3
     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
    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
    | Ver |  Flags  |  Message-Type |       Message-Length          |
    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

Ver       3 bit

Flags    5 bit

 


 

 

 

 

 

第1 章 概述 .............................................................................. 1 第1.1 节 关于OpenFlow ....................................................................................................... 1 第1.2 节 关于本文 ................................................................................................................. 2 第2 章 Openflow ...................................................................... 3 第2.1 节 概述 ......................................................................................................................... 3 第2.2 节 交换机组成 ............................................................................................................. 3 第2.3 节 流表 ......................................................................................................................... 3 2.3.1 包头域 ..................................................................................................................... 4 2.3.2 计数器(counter) ................................................................................................ 5 2.3.3 行动(action) ....................................................................................................... 6 2.3.4 匹配 ......................................................................................................................... 8 第2.4 节 安全通道 ................................................................................................................. 9 2.4.1 of 协议 .................................................................................................................... 9 2.4.2 连接建立 ............................................................................................................... 10 2.4.3 连接中断 ............................................................................................................... 10 2.4.4 加密 ....................................................................................................................... 10 2.4.5 生成树 ................................................................................................................... 10 2.4.6 流表修改 ............................................................................................................... 11 2.4.7 流超时 ................................................................................................................... 12 第2.5 节 of 协议 .................................................................................................................. 12 2.5.1 of 协议头 ............................................................................................................. 12 2.5.2 常用数据结构 ....................................................................................................... 14 2.5.3 Controller‐to‐Switch 消息 .................................................................................... 23 2.5.4 Asynchronous 消息 ............................................................................................... 35 2.5.5 Symmetric 消息 .................................................................................................... 40 第2.6 节 规范1.1 更新内容 .................................................... Error! Bookmark not defined. 第3 章 OpenvSwitch ............................................................... 42 第3.1 节 概述 ....................................................................................................................... 42 第3.2 节 特性 ....................................................................................................................... 42 第3.3 节 代码 ....................................................................................................................... 42 第3.4 节 命令 ....................................................................................................................... 43 第4 章 NOX ............................................................................ 44 第4.1 节 网络操作系统 ....................................................................................................... 44 II 第4.2 节 模型 ....................................................................................................................... 44 第4.3 节 架构 ....................................................................................................................... 45 4.3.1 组件 ....................................................................................................................... 45 4.3.2 操作 ....................................................................................................................... 45 4.3.3 多粒度处理 ........................................................................................................... 46 4.3.4 开发实现 ............................................................................................................... 46 第4.4 节 安装 ....................................................................................................................... 47 4.4.1 步骤 ....................................................................................................................... 47 4.4.2 依赖 ....................................................................................................................... 48 4.4.3 选项 ....................................................................................................................... 48 4.4.4 校验 ....................................................................................................................... 49 第4.5 节 应用 ....................................................................................................................... 49 4.5.1 框架 ....................................................................................................................... 49 4.5.2 运行与接口 ........................................................................................................... 50 4.5.3 例程 ....................................................................................................................... 50 第4.6 节 开发 ....................................................................................................................... 51 4.6.1 组件 ....................................................................................................................... 51 4.6.2 事件 ....................................................................................................................... 54 4.6.3 开发例程 ............................................................................................................... 57 第4.7 节 GUI ......................................................................................................................... 58 4.7.1 运行GUI ................................................................................................................ 58 4.7.2 扩展GUI ................................................................................................................ 59 第4.8 节 相关工作 ............................................................................................................... 61 第5 章 Mininet ....................................................................... 62 第5.1 节 概述 ....................................................................................................................... 62 第5.2 节 主要特性 ............................................................................................................... 62 第5.3 节 镜像获取和使用 ................................................................................................... 62 5.3.1 获取镜像 ............................................................................................................... 62 5.3.2 使用镜像 ............................................................................................................... 63 5.3.3 更新 ....................................................................................................................... 63 第5.4 节 简单测试 ............................................................................................................... 63 5.4.1 创建网络 ............................................................................................................... 63 5.4.2 查看信息 ............................................................................................................... 64 5.4.3 对节点进行单独操作 ........................................................................................... 64 第5.5 节 常用操作 ............................................................................................................... 65 5.5.1 快捷测试 ............................................................................................................... 65 5.5.2 自定义拓扑 ........................................................................................................... 65 5.5.3 使用友好的mac 编号 .......................................................................................... 66 5.5.4 使用XTerm ........................................................................................................... 66 5.5.5 链路操作 ............................................................................................................... 67 III 5.5.6 指定交换机跟控制器类型 ................................................................................... 67 5.5.7 名字空间 ............................................................................................................... 67 5.5.8 启动参数总结 ....................................................................................................... 68 5.5.9 常用命令总结 ....................................................................................................... 68 5.5.10 其他操作 ............................................................................................................... 69 第5.6 节 高级功能 ............................................................................................................... 69 5.6.1 dpctl ...................................................................................................................... 69 5.6.2 控制器 ................................................................................................................... 70 5.6.3 交换机与控制器交互 ........................................................................................... 70 5.6.4 使用NOX............................................................................................................... 71 5.6.5 多条配置命令 ....................................................................................................... 72 第5.7 节 代码分析 ............................................................................................................... 72 5.7.1 bin 子目录 ............................................................................................................. 72 5.7.2 mininet 子目录 ..................................................................................................... 73 5.7.3 custom 子目录 ...................................................................................................... 74 5.7.4 examples 子目录 .................................................................................................. 74 5.7.5 其他文件 ............................................................................................................... 75 第6 章 相关项目 .................................................................... 77 第6.1 节 Openflow ............................................................................................................... 77 第6.2 节 OpenvSwitch ......................................................................................................... 77 第6.3 节 NOX ....................................................................................................................... 77 第6.4 节 Mininet .................................................................................................................. 77
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值