网站大量收购独家精品文档,联系QQ:2885784924

.openflow_数据结构.ppt

  1. 1、本文档共39页,可阅读全部内容。
  2. 2、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
  3. 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载
  4. 4、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
openflow_数据结构

OFPT_BARRIER_REQUEST 没有消息体 交换机一旦收到该消息,则需要先执行完该消息前到达的所有指令,然后再执行其后的。之前指令处理完成后,交换机要回复OFPT_BARRIER_REPLY 消息,且携带有原请求信息的xid 信息。 * OFPT_QUEUE_GET_CONFIG_REQUEST struct ofp_queue_get_config_request { struct ofp_header header; uint16_t port; 被询问的端口 uint8_t pad[2]; }; * OFPT_QUEUE_GET_CONFIG_REPLY struct ofp_queue_get_config_reply { struct ofp_header header; uint16_t port; uint8_t pad[6]; struct ofp_packet_queue queues[0]; }; * struct ofp_packet_queue { uint32_t queue_id; /* id for the specific queue. */ uint16_t len; /* Length in bytes of this queue desc. */ uint8_t pad[2]; /* 64‐bit alignment. */ struct ofp_queue_prop_header properties[0]; /* List of properties. */ }; * struct ofp_queue_prop_header { uint16_t property; /* One of OFPQT_. */ uint16_t len; /* Length of property, including this header. */ uint8_t pad[4]; /* 64‐bit alignemnt. */ }; * enum ofp_queue_properties { OFPQT_NONE = 0, /* No property defined for queue (default). */ OFPQT_MIN_RATE, /* Minimum datarate guaranteed. */ /* Other types should be added here * (i.e. max rate, precedence, etc). */ }; * struct vconn { struct vconn_class *class; int state; int error; int min_version; int version; uint32_t ip; char *name; bool reconnectable; struct ofpstat ofps_rcvd; struct ofpstat ofps_sent; }; * * openflow 数据结构 * header struct ofp_header { uint8_t version; uint8_t type; uint16_t length; uint32_t xid; /* Transaction id associated with this packet. Replies use the same id as was in the request to facilitate pairing. */ }; * hello OFPT_HELLO 消息没有消息体,仅有of 消息头 * struct ofp_error_msg { struct ofp_header header; uint16_t type;高层的错误类型 uint16_t code;错误代码 uint8_t data[0];变长 至少包括64 字节的失败请求 代码中将整个错误报文全部发回去 }; * echo echo请求消息由一个of 消息头加上任意的消息体组成,用来协助测量延迟、带宽、控制器跟交换机之间是否保持连接等信息。 echo回复消息由一个of 消息头加上对应请求的无修改消息体组成,用来协助测量延迟、带宽、控制器跟交换机之间是否保持连接等信息。 * 代码中没有附加任何信息,只有协议头。 没有处理 * OFPT_FEATURES_REQUEST 发送一个仅有消息头的OFPT_FEATURES_REQUEST消息 * OFPT_FEATURES_REPLY struct ofp_switch_features { struct of

文档评论(0)

ranfand + 关注
实名认证
内容提供者

该用户很懒,什么也没介绍

1亿VIP精品文档

相关文档