[pox-dev] Mark packets with vlan id

Murphy McCauley murphy.mccauley at gmail.com
Tue Apr 1 17:34:22 PDT 2014


Your description of the flow tables is not very complete.  If you should probably have rules like the following:

s1:
if from h1: add_vlan(10), send(port_toward_s2)

s2:
if vlan_id=10: strip_vlan(), send(port_toward_h3)

Both of these rules have two actions.  You only mentioned the first for s1 and the second for s2.  Do you actually have both?

I am assuming here that you only want to use VLAN tags for the packet during its trip through the network and that h3 is *not* configured to have a VLAN assigned to its interface.

Additionally, you should try debugging this by using wireshark to examine traffic on the switch ports.  Do you see the packet leaving s1 on the right port with the right VLAN tag?  Do you see it arrive on the expected port of s2?  Do you see it leave s2 on the port connected to h3?  Does it have a VLAN tag?

-- Murphy

On Apr 1, 2014, at 10:08 AM, Windhya Rankothge <windyswsw at gmail.com> wrote:

> Hi all,
> 
> I have following topology in mininet and I am using POX controller, I have asked this question from mininet forum, but I think it is more relavant to the controller side..
> 
> h1 --- s1 --- s2 --- h2
>                    !
>                   h3
> 
> I want to mark the packets sent by a specific host and I am trying to use the vlan field.. 
> 
> I have added a flow in switch 1 saying, if the packets comes from h1, then add the vlan id = 10. And then in switch 2, I have added a rule saying, if the packet has vlan id = 10, then forward the packet only to h3
> 
> When I tried to test it, it is not working.. Packet is not going to h3..
> 
> Other than just adding the tag, do I have to do something more to handle the VLAN tag concept ? Do I have to create VLAN on switch 1 ?
> 
> Your thoughts are higly appreciated..
> 
> 
> Best Regards,
>  
> Windhya Rankothge,
> Universitat Pompeu Fabra,
> Barcelona.




More information about the pox-dev mailing list