一、按照用途划分,openvswitch中桥、端口大致可以分成如下几类:
1、配置管理
主要对象包括:bridge、port、interface。
2、openflow
主要对象包括:ofproto、ofproto_dpif、ofbundle、ofport、ofport_dpif。
3、端口镜像
主要对象包括:mbridge、mbundle。
4、upcall处理
主要对象包括:xbridge、xbundle、xport。
二、各对象之间的关系
三、各对象生成时间
1、ofproto创建路径(实际为ofproto_dpif对象)
bridge_run->bridge_reconfigure->ofproto_create->alloc
2、ofbundle创建路径
bridge_run->bridge_reconfigure->port_configure->ofproto_bundle_register->bundle_set
3、ofport创建路径
bridge_run->bridge_reconfigure-&

本文详细介绍了Open vSwitch(OVS)2.5.0版本中桥、端口的分类,包括配置管理、OpenFlow、端口镜像和upcall处理四大模块的主要对象。同时,阐述了各对象如ofproto、ofbundle和ofport的生成过程,强调了模块间低耦合度的设计优点。
最低0.47元/天 解锁文章
1258

被折叠的 条评论
为什么被折叠?



