Hi ,

I was trying the mpls using the ovs switch. I was able to push the mpls flows 
to the ovs bridge. But after the mpls label is pushed, the packets are not 
reaching the egress port of the bridge. I increased the mtu of the egress port 
of the ovs-switch also. But still didn't worked. I was running with protocol 
OpenFlow13. The flows what I added is as follows

root@WAN-Router:~# ovs-ofctl dump-flows s1 -O OpenFlow13
OFPST_FLOW reply (OF1.3) (xid=0x2):
cookie=0x0, duration=4367.855s, table=0, n_packets=4367, n_bytes=183414, 
in_port=1 
actions=push_mpls:0x8847,set_field:10->mpls_label,set_field:20->mpls_label,resubmit(,1)
cookie=0x0, duration=4367.855s, table=1, n_packets=4367, n_bytes=183414, 
actions=output:2,NORMAL

Again running the commands to show the flows are being hit

root@WAN-Router:~# ovs-ofctl dump-flows s1 -O OpenFlow13
OFPST_FLOW reply (OF1.3) (xid=0x2):
cookie=0x0, duration=4417.770s, table=0, n_packets=4419, n_bytes=185598, 
in_port=1 
actions=push_mpls:0x8847,set_field:10->mpls_label,set_field:20->mpls_label,resubmit(,1)
cookie=0x0, duration=4417.770s, table=1, n_packets=4419, n_bytes=185598, 
actions=output:2,NORMAL

But in the dump-ports command, it is very clear that packets are not reaching 
the egress port

root@WAN-Router:~# ovs-ofctl dump-ports s1 -O OpenFlow13
OFPST_PORT reply (OF1.3) (xid=0x2): 3 ports
  port LOCAL: rx pkts=0, bytes=0, drop=0, errs=0, frame=0, over=0, crc=0
           tx pkts=1, bytes=42, drop=0, errs=0, coll=0
           duration=9146.781s
  port  1: rx pkts=9164, bytes=388672, drop=0, errs=0, frame=0, over=0, crc=0
           tx pkts=44, bytes=6417, drop=0, errs=0, coll=0
           duration=9146.763s
  port  2: rx pkts=44, bytes=6417, drop=0, errs=0, frame=0, over=0, crc=0
           tx pkts=44, bytes=6417, drop=0, errs=0, coll=0
           duration=9146.758s

No change in the port 2

root@WAN-Router:~# ovs-ofctl dump-ports s1 -O OpenFlow13
OFPST_PORT reply (OF1.3) (xid=0x2): 3 ports
  port LOCAL: rx pkts=0, bytes=0, drop=0, errs=0, frame=0, over=0, crc=0
           tx pkts=1, bytes=42, drop=0, errs=0, coll=0
           duration=9172.439s
  port  1: rx pkts=9189, bytes=389722, drop=0, errs=0, frame=0, over=0, crc=0
           tx pkts=44, bytes=6417, drop=0, errs=0, coll=0
           duration=9172.421s
  port  2: rx pkts=44, bytes=6417, drop=0, errs=0, frame=0, over=0, crc=0
           tx pkts=44, bytes=6417, drop=0, errs=0, coll=0
           duration=9172.416s



May I know anything more I have to do to pass the packet through egress port 2.

Also let me know the add flow command for pop_mpls , because when I added 
action as pop_mpls:0x8847, it was throwing the following error.

root@WAN-Router:~# ovs-ofctl add-flow s3 
in_port=2,actions=pop_mpls:0x8847,output:1 -O OpenFlow13
ovs-ofctl: none of the usable flow formats (OpenFlow10,NXM) is among the 
allowed flow formats (OXM-OpenFlow13)

I am using the 2.3.1 version of ovs

Thanks and Regards,

Prince Pereira
The information contained in this electronic message and any attachments to 
this message are intended for the exclusive use of the addressee(s) and may 
contain proprietary, confidential or privileged information. If you are not the 
intended recipient, you should not disseminate, distribute or copy this e-mail. 
Please notify the sender immediately and destroy all copies of this message and 
any attachments. WARNING: Computer viruses can be transmitted via email. The 
recipient should check this email and any attachments for the presence of 
viruses. The company accepts no liability for any damage caused by any virus 
transmitted by this email. www.wipro.com
_______________________________________________
discuss mailing list
discuss@openvswitch.org
http://openvswitch.org/mailman/listinfo/discuss

Reply via email to