文章目录
1 项目简介
目的:实现基本的2层交换功能(学习mac,按照目的mac转发)
整合氢版本中二层处理的相关功能模块,将AD-SAL按照MD-SAL架构重新设计(重构)
模块划分:
- Packet Handler
Decodes the packets coming to the controller and dispatches them appropriately(PacketIn报文解码 notification机制) - Loop Remover
Removes loops in the network(消除网络环路) - Arp Handler
Handles the decoded ARP packets - Address Tracker
Learns the Addresses (MAC and IP) of entities in the network(存储mac地址到DataStore中) - Host Tracker
Tracks the locations of hosts in the network(保存拓扑) - L2Switch Main
Installs flows on each switch based on network traffic(打通网络流表)

1.1 二层交换机的转发原理:
- 当交换机从某个端口收到一个数据帧,它先读取包头中的源MAC地址,这样它就知道源MAC地址的机器是连在哪个端口上的;
- 再去读取包头中的目的MAC地址,并在地址表中查找相应的端口;如表中有与这目的MAC地址对应的端口,把数据包直接转发到这端

本文档介绍了OpenDaylight中实现基本二层交换功能的开发,涵盖Packet Handler、Loop Remover、Arp Handler、Address Tracker、Host Tracker和L2Switch Main等模块,详细阐述了各模块的作用及工作原理。
最低0.47元/天 解锁文章
&spm=1001.2101.3001.5002&articleId=120792019&d=1&t=3&u=63be5bd82f9c452f868d9e77fd26cefd)
5307





