欢迎来到天天文库
浏览记录
ID:40489561
大小:818.44 KB
页数:21页
时间:2019-08-03
《openflow1.0消息格式总结》由会员上传分享,免费在线阅读,更多相关内容在教育资源-天天文库。
1、OpenFlow1.0消息格式总结—NEU_张旭OpenFlow1.0消息格式总结:ControllerOpenvswitchOFPT_HELLOOFPT_HELLOOFPT_ERROROFPT_ERROROFPT_ECHO_REQUESTOFPT_ECHO_REPLYOFPT_VENDOROFPT_VENDOROFPT_FEATURES_REQUESTOFPT_FEATURES_REPLYOFPT_GET_CONFIG_REQUESTOFPT_GET_CONFIG_REPLYOFPT_SET_CONFIGOFPT_PACKET_OUTOP
2、PT_FLOW_MODOFPT_PORT_MODOFPT_PACKET_INOFPT_FLOW_REMOVEDOFPT_PORT_STATUSOFPT_STATS_REQUESTOFPT_STATS_REPLYOFPT_QUEUE_GET_CONFIG_REQUESTOFPT_QUEUE_GET_CONFIG_REPLYOFPT_BARRIER_REQUESTOFPT_BARRIER_REPLYofp_header1、OFPT_FEATURES_REQUEST(8B)消息格式versiontypelengthxiduint8_tversio
3、n:OFP_VERSIONuint8_ttype:OneoftheOFPT_constantsuint16_tlength:Lengthincludingthisofp_headeruint32_txid:Transactionidassociatedwiththispacket.Repliesusethesameidaswasintherequesttofacilitatepairing2、OFPT_FEATURES_REPLY(32B)=ofp_switch_featuresversiontypeofp_headerlengthxidd
4、atapath_idn_buffersn_tablespad0pad1pad2capabilitiesactionsport_noofp_phy_porthw_addrnameconfigstatecurradvertisedsupportedpeeruint64_tdatapath_id:DatapathuniqueID.Thelower48-bitsareforaMACaddress,whiletheupper16-bitsareimplementer-defineduint32_tn_buffers:Maxpacketsbuffere
5、datonceuint8_tn_tables:Numberoftablessupportedbydatapathuint32_tcapabilities:Bitmapofsupportofp_capabilitiesuint32_tactions:Bitmapofsupportedofp_action_typeuint16_tport_no:标明绑定到物理接口的datapath值uint8_thw_addr[6]:该物理接口的mac地址charname[16]:该接口的名称字符串Null-terminateduint32_tconfig:B
6、itmapofOFPPC_*flagsuint32_tstate:BitmapofOFPPS_*flagsuint32_tcurr:Currentfeaturesuint32_tadvertised:Featuresbeingadvertisedbytheportuint32_tsupported:Featuressupportedbytheportuint32_tpeer:Featuresadvertisedbypeer3、OFPT_GET_CONFIG_REQUEST(8B)versiontypeofp_headerlengthxid4
7、、OFPT_SET_CONFIG(12B)=ofp_switch_configOFPT_GET_CONFIG_REPLY(12B)versiontypeofp_headerlengthxidflagsmiss_send_lenuint16_tflags:OFPC_*flagsuint16_tmiss_send_len:Maxbytesofnewflowthatdatapathshouldsendtothecontroller5、OFPT_PACKET_OUT(16B)versiontypeofp_headerlengthxidbuffer_
8、idin_portactions_lentypeofp_action_headerlenpad0pad1pad2pad3data[0]uint32_tbuffer_id:IDas
此文档下载收益归作者所有