On Dec 2, 2012, at 10:02 PM, Rohit Patil wrote: > I am Rohit, graduate student. I am working on project in Open FLow, in which > I want to limit the hosts connecting to VLAN via giving a condition either > limit via maximum number of hosts or based on MAC address.
Well, at the network level, it's hard to say what exactly constitutes a host. Often it's okay to more or less substitute "MAC address" for "host", though. > I am using mininet VM, in which I was able to create a topology and add hosts > to VLAN. > Now do I need to edit mininet or controller code to make above condition > work, will that be possible? > Can you please suggest me a way to proceed with this. > This would be a great help. I'd suggest starting by modifying forwarding.l2_learning or forwarding.l2_pairs. To stop certain MACs from communicating, just put in the appropriate "if" statement and don't install flows for them. To limit by number of hosts (e.g., to not allow one MAC to communicate with more than X other MACs), keep a counter in a dictionary keyed by MAC address and stop installing flows when it reaches X. Good luck. -- Murphy
