python绘制网络拓扑_网络拓扑的python表示

类开关中我特别感兴趣的成员变量如下所示。在self.dps = {} # datapath_id => Datapath class

self.port_state = {} # datapath_id => ports

self.ports = PortDataState() # Port class -> PortData class

self.links = LinkState() # Link class -> timestamp

self.is_active = True

这些是RYU用来缓存拓扑细节的成员变量。在

1)dps是一个字典,它将datapath_id映射到datapath类?在

^{pr2}$

2)端口状态是将数据路径id映射到端口的字典- As per my understanding on a switch without a VLAN all the ports will belong to the same datapath id? In case of a switch with VLAN ports on the switch can have multiple datapath id's. Is my understanding correct?

3)端口又是一个字典,它将端口类映射到端口数据类?在- what does this mean?

4)links还是一个字典,它将Link类映射到时间戳- again what does this mean?

我想弄清楚RYU控制器是如何使用上面的方法存储拓扑信息的结构。任何如能帮助理解或解释,将不胜感激。在

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值