Thanks Iwase. That's a great idea. I had assumed that the pop_mpls rules would do that automatically. But obviously customized rules are required to be installed on LERs. Meaning we need to identify the LERs am i right?. I will try it out. Thanks again.
On Tue, Oct 20, 2015 at 6:39 AM, Yusuke Iwase <[email protected]> wrote: > Hi, > > On 2015年10月19日 23:45, Pynbiang Hadem wrote: > > *Dear All, > > > > * > > *I am testing the test_mpls.py ryu application in mininet. The > application is executing fine: MPLS flow is getting installed in OVS > switch, however the hosts are unreachable when ping.* > > > > _*Starting the ryu test_mpls application:*_ > > ubuntu@sdnhubvm:~/ryu[07:27] (master)$ ./bin/ryu-manager --verbose > ryu/app/test_mpls.py > > loading app ryu/app/test_mpls.py > > loading app ryu.controller.ofp_handler > > instantiating app None of DPSet > > creating context dpset > > instantiating app ryu/app/test_mpls.py of RunTestMininet > > instantiating app ryu.controller.ofp_handler of OFPHandler > > > > _*On mininet:*_ > > ubuntu@sdnhubvm:~/mininet[07:36] (master)$ sudo mn --topo linear,3 > --mac --switch ovsk,protocols=OpenFlow12 --controller remote > > *** Creating network > > *** Adding controller > > *** Adding hosts: > > h1 h2 h3 > > *** Adding switches: > > s1 s2 s3 > > *** Adding links: > > (h1, s1) (h2, s2) (h3, s3) (s2, s1) (s3, s2) > > *** Configuring hosts > > h1 h2 h3 > > *** Starting controller > > c0 > > *** Starting 3 switches > > s1 s2 s3 ... > > *** Starting CLI: > > mininet> * > > * > > _*OVS-FLOWS:*_ > > ubuntu@sdnhubvm:~[07:39]$ sudo ovs-ofctl -O OpenFlow12 dump-flows s1 > > OFPST_FLOW reply (OF1.2) (xid=0x2): > > cookie=0x0, duration=170.598s, table=0, n_packets=0, n_bytes=0, > priority=255,mpls,in_port=1,mpls_label=80 actions=pop_mpls:0x0800,output:2 > > cookie=0x0, duration=170.597s, table=0, n_packets=0, n_bytes=0, > priority=255,mpls,in_port=1,mpls_label=100 > actions=push_mpls:0x8847,set_field:200->mpls_label,output:2 > > cookie=0x0, duration=170.598s, table=0, n_packets=0, n_bytes=0, > priority=255,ip,in_port=1 > actions=push_mpls:0x8847,set_field:90->mpls_label,output:2 > > I think you need to remove all mpls headers when outputting packets to the > hosts. > e.g.) > Host --(Ether/IP)--> Switch --(Ether/MPLS/IP)--> Switch --(Ether/IP)--> > Host > > Thanks, > Iwase > > > > > _*OVS-VERSION: > > *_ubuntu@sdnhubvm:~[07:39]$ ovs-ofctl --version > > ovs-ofctl (Open vSwitch) 2.3.90 > > Compiled Jan 8 2015 11:52:49 > > OpenFlow versions 0x1:0x4 > > > > _*PING:*_ > > mininet> h1 ping -c1 h3 > > PING 10.0.0.3 (10.0.0.3) 56(84) bytes of data. > > From 10.0.0.1 icmp_seq=1 Destination Host Unreachable > > > > --- 10.0.0.3 ping statistics --- > > 1 packets transmitted, 0 received, +1 errors, 100% packet loss, time 0ms > > > > *Wireshark also not showing any MPLS traffic.* > > *Kindly help, i need to get this test done successfully. > > * > > *Waiting in anticipation...... > > * > > *Would be extremely grateful for any help on this. > > > > * > > *Hadem. > > * > > *Reasearch Scholar. > > * > > * > > * > > > > > > > > > ------------------------------------------------------------------------------ > > > > > > > > _______________________________________________ > > Ryu-devel mailing list > > [email protected] > > https://lists.sourceforge.net/lists/listinfo/ryu-devel > > >
------------------------------------------------------------------------------
_______________________________________________ Ryu-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/ryu-devel
