文章目录
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(打通网络流表)