我需要获取有关我的应用程序流的以下信息。
- FLOW_ID
- MATCHED_SRC_MAC
- DST_PORT
- SRC_SWITCH
- DST_SWITCH
- FLOW_PATH_FLAGS
- MATCH_DST_MAC
- SRC_PORT
- 类型
- 已安装
- DATA_PATH_SUMMARY
- 用户状态。
我可以通过以下方式获取这些信息吗
1) 在 RYU 中导入一些 imodule
2)向RYU发送一些消息并听取回复
3)其他方式?
任何帮助将不胜感激
我需要获取有关我的应用程序流的以下信息。
我可以通过以下方式获取这些信息吗
1) 在 RYU 中导入一些 imodule
2)向RYU发送一些消息并听取回复
3)其他方式?
任何帮助将不胜感激
我不确定这是否仍然是最新的,但你看过 ofctl_rest api 了吗?
通过调用http://localhost:8080/stats/flow/<dpid>
您可以获得一些流量信息。我认为你不会得到你需要的一切,但这是一个开始。
Attribute Description Example
dpid Datapath ID “1”
length Length of this entry 88
table_id Table ID 0
duration_sec Time flow has been alive in seconds 2
duration_nsec Time flow has been alive in nanoseconds 6.76e+08
priority Priority of the entry 11111
idle_timeout Number of seconds idle before expiration 0
hard_timeout Number of seconds before expiration 0
flags Bitmap of OFPFF_* flags 1
cookie Opaque controller-issued identifier 1
packet_count Number of packets in flow 0
byte_count Number of bytes in flow 0
match Fields to match {“in_port”: 1}
actions Instruction set [“OUTPUT:2”]