[ovs-discuss] MPLS Performance (Iperf Freeze)

Yu, Da da_yu at brown.edu
Mon May 2 20:33:22 UTC 2016


Hi,

My name is Da Yu. I'm building a prototype in Mininet. Now, I have trouble
in measuring performance with Iperf.

My Mininet Version:
>sudo mn --version
2.1.0
My OVS Version:
>ovs-vswitchd --version
ovs-vswitchd (Open vSwitch) 2.5.0
Compiled Apr 21 2016 16:52:42

Here is my topology:

h1(eth0)-----(port1)s1(port2)-----(port2)s2(port1)----(eth0)h2

I created this topology by:
> sudo mn --topo linear,2 --mac --controller remote --switch
ovsk,protocols=OpenFlow13

I added 4 forwarding rules. H1 will push an MPLS label on each packet and
h2 will pop this label.

> sudo ovs-ofctl add-flow s1
in_port=1,eth_type=0x0800,action=push_mpls:0x8847,set_field:102-\>mpls_label,output:2
-O OpenFlow13
> sudo ovs-ofctl add-flow s1 in_port=2,action=output:1

> sudo ovs-ofctl add-flow s2
in_port=2,eth_type=0x8847,mpls_label=102,action=pop_mpls:0x0800,output:1 -O
OpenFlow13
> sudo ovs-ofctl add-flow s2 in_port=1,action=output:2

After set static ARP for h1 and h2, I can ping these two hosts.
mininet> pingall
*** Ping: testing ping reachability
h1 -> h2
h2 -> h1
*** Results: 0% dropped (2/2 received)

Then, I ran iperf to measure the performance. But I can only get
information and Iperf freezes (no reports).

On h1:
> iperf -c 10.0.0.2
------------------------------------------------------------
Client connecting to 10.0.0.2, TCP port 5001
TCP window size: 85.3 KByte (default)
------------------------------------------------------------
[  4] local 10.0.0.1 port 52385 connected with 10.0.0.2 port 5001

On h2:
>iperf -s
------------------------------------------------------------
Server listening on TCP port 5001
TCP window size: 85.3 KByte (default)
------------------------------------------------------------
[  5] local 10.0.0.2 port 5001 connected with 10.0.0.1 port 52385

I check the flow tables of these two switches. Rules are correctly
installed but it seems no packets are sent for iperf.

>sudo ovs-ofctl dump-flows s1 -O OpenFlow13
OFPST_FLOW reply (OF1.3) (xid=0x2):
 cookie=0x0, duration=485.599s, table=0, n_packets=76, n_bytes=62968,
ip,in_port=1 actions=push_mpls:0x8847,set_field:102->mpls_label,output:2
 cookie=0x0, duration=485.584s, table=0, n_packets=138, n_bytes=25635,
reset_counts in_port=2 actions=output:1

> sudo ovs-ofctl dump-flows s2 -O OpenFlow13
OFPST_FLOW reply (OF1.3) (xid=0x2):
 cookie=0x0, duration=461.520s, table=0, n_packets=14, n_bytes=1212,
mpls,in_port=2,mpls_label=102 actions=pop_mpls:0x0800,output:1
 cookie=0x0, duration=461.509s, table=0, n_packets=12, n_bytes=956,
reset_counts in_port=1 actions=output:2

Can somebody help me to point out whether there's something wrong with my
setup? Or this is a known issue with OVS/Mininet?

Thanks,
Da
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://openvswitch.org/pipermail/ovs-discuss/attachments/20160502/d0d72415/attachment-0002.html>


More information about the discuss mailing list