This section describes how Ryu L2 segregation works.
When tenant(= network id) is created, Quantum server tells it to Ryu. Ryu remembers the network id.
When VM sends packets, Ryu determins network id from OVS port and then associates src mac address to network id.
When VM sending L2-unicast packet, Ryu checks if the destination mac address belongs to the same netowrk id of the source mac address which is same to the network id that the OVS port is associated to.
If no, the packet is dropped.
If yes, send the packet is sent to ports which belongs to the same network id and external port.
When VM sending L2-broadcast/multicaset packet, Ryu checks if the source mac address.
send the packet to all external ports and all OVS ports that belongs to the same network id of the source mac address.
When receiving broacast/multicast packet from the external ports, Ryu checks if the source mac address belongs to known network id.
- If yes, send the packet to the external ports except incoming one and the all OVS ports that belongs to the network id
- if no, drop the packet.
![]()