All of lore.kernel.org
 help / color / mirror / Atom feed
* Low speed MPLS to virtio-net
@ 2017-04-26 19:15 Алексей Болдырев
  2017-04-29 20:50 ` David Ahern
  0 siblings, 1 reply; 2+ messages in thread
From: Алексей Болдырев @ 2017-04-26 19:15 UTC (permalink / raw)
  To: netdev

Started MPLS on the branch - Everything was fine. When I tried to run MPLS on a real network of virtual machines, there were problems with the speed:
root@containers:~# iperf3 -c 10.194.10.2 -B 10.194.10.1 -Z       
Connecting to host 10.194.10.2, port 5201
[  4] local 10.194.10.1 port 49533 connected to 10.194.10.2 port 5201
[ ID] Interval           Transfer     Bandwidth       Retr  Cwnd
[  4]   0.00-1.00   sec  1018 KBytes  8.34 Mbits/sec  238   5.64 KBytes       
[  4]   1.00-2.00   sec  1.42 MBytes  11.9 Mbits/sec  373   1.41 KBytes       
[  4]   2.00-3.00   sec  1.43 MBytes  12.0 Mbits/sec  379   5.64 KBytes       
[  4]   3.00-4.00   sec  1.43 MBytes  12.0 Mbits/sec  376   5.64 KBytes       
[  4]   4.00-5.00   sec  1.41 MBytes  11.8 Mbits/sec  375   2.82 KBytes       
[  4]   5.00-6.00   sec  1.42 MBytes  11.9 Mbits/sec  376   2.82 KBytes       
[  4]   6.00-7.00   sec  1.42 MBytes  11.9 Mbits/sec  373   5.64 KBytes       
[  4]   7.00-8.00   sec  1.41 MBytes  11.8 Mbits/sec  372   5.64 KBytes       
[  4]   8.00-9.00   sec  1.42 MBytes  11.9 Mbits/sec  379   2.82 KBytes       
[  4]   9.00-10.00  sec  1.42 MBytes  11.9 Mbits/sec  373   5.64 KBytes       
- - - - - - - - - - - - - - - - - - - - - - - - -
[ ID] Interval           Transfer     Bandwidth       Retr
[  4]   0.00-10.00  sec  13.8 MBytes  11.5 Mbits/sec  3614             sender
[  4]   0.00-10.00  sec  13.6 MBytes  11.4 Mbits/sec                  receiver

iperf Done.
root@containers:~# 
Here are the settings:
test0:
lo: flags=73<UP,LOOPBACK,RUNNING>  mtu 65536
        inet 127.0.0.1  netmask 255.0.0.0
        inet6 ::1  prefixlen 128  scopeid 0x10<host>
        loop  txqueuelen 1000  (Local Loopback)
        RX packets 0  bytes 0 (0.0 B)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 0  bytes 0 (0.0 B)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

lo:1: flags=73<UP,LOOPBACK,RUNNING>  mtu 65536
        inet 10.194.10.1  netmask 255.255.255.255
        loop  txqueuelen 1000  (Local Loopback)

test0p1: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet 10.194.1.50  netmask 255.255.255.0  broadcast 10.194.1.255
        inet6 fe80::b0a7:b1ff:fec1:3d5c  prefixlen 64  scopeid 0x20<link>
        ether b2:a7:b1:c1:3d:5c  txqueuelen 1000  (Ethernet)
        RX packets 19974  bytes 1410944 (1.3 MiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 3726844  bytes 5236310466 (4.8 GiB)
        TX errors 0  dropped 3604 overruns 0  carrier 0  collisions 0

test1:
lo: flags=73<UP,LOOPBACK,RUNNING>  mtu 65536
        inet 127.0.0.1  netmask 255.0.0.0
        inet6 ::1  prefixlen 128  scopeid 0x10<host>
        loop  txqueuelen 1000  (Local Loopback)
        RX packets 0  bytes 0 (0.0 B)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 0  bytes 0 (0.0 B)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

lo:1: flags=73<UP,LOOPBACK,RUNNING>  mtu 65536
        inet 10.194.10.2  netmask 255.255.255.255
        loop  txqueuelen 1000  (Local Loopback)

test1p1: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet 10.194.1.51  netmask 255.255.255.0  broadcast 10.194.1.255
        inet6 fe80::5cc0:45ff:fe1a:9705  prefixlen 64  scopeid 0x20<link>
        ether 5e:c0:45:1a:97:05  txqueuelen 1000  (Ethernet)
        RX packets 2001923  bytes 2806406771 (2.6 GiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 19907  bytes 1485150 (1.4 MiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

Server configuration:
root@ne-vlezay80:~# ip -M r
100 via inet 10.194.1.50 dev vlan11 
101 via inet 10.194.1.51 dev vlan11 
root@ne-vlezay80:~# 
root@ne-vlezay80:~# ifconfig
eth0      Link encap:Ethernet  HWaddr 52:54:00:5d:81:90  
          inet addr:10.247.0.250  Bcast:10.247.0.255  Mask:255.255.255.0
          inet6 addr: fe80::5054:ff:fe5d:8190/64 Scope:Link
          inet6 addr: fd00:1002:1289:10::10/64 Scope:Global
          UP BROADCAST RUNNING MULTICAST  MTU:2500  Metric:1
          RX packets:7403 errors:0 dropped:0 overruns:0 frame:0
          TX packets:4182 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:621871 (607.2 KiB)  TX bytes:445766 (435.3 KiB)

eth1      Link encap:Ethernet  HWaddr 52:54:00:0b:ff:2e  
          inet addr:192.168.122.1  Bcast:192.168.122.255  Mask:255.255.255.0
          inet6 addr: fd00:104:1::1/64 Scope:Global
          inet6 addr: fe80::5054:ff:fe0b:ff2e/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:2500  Metric:1
          RX packets:2204837 errors:0 dropped:5 overruns:0 frame:0
          TX packets:2083636 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:3073876412 (2.8 GiB)  TX bytes:2897017540 (2.6 GiB)

lo        Link encap:Local Loopback  
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:65536  Metric:1
          RX packets:75 errors:0 dropped:0 overruns:0 frame:0
          TX packets:75 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:6600 (6.4 KiB)  TX bytes:6600 (6.4 KiB)

servers   Link encap:Ethernet  HWaddr b2:c2:cf:9a:9c:00  
          UP RUNNING NOARP MASTER  MTU:65536  Metric:1
          RX packets:2259 errors:0 dropped:0 overruns:0 frame:0
          TX packets:4062 errors:0 dropped:219 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:220368 (215.2 KiB)  TX bytes:340283 (332.3 KiB)

vlan10    Link encap:Ethernet  HWaddr 52:54:00:0b:ff:2e  
          inet addr:10.194.0.1  Bcast:10.194.0.255  Mask:255.255.255.0
          inet6 addr: 2a01:d0:c353:180::1/64 Scope:Global
          inet6 addr: fe80::5054:ff:fe0b:ff2e/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:2500  Metric:1
          RX packets:2260 errors:0 dropped:0 overruns:0 frame:0
          TX packets:15 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:85868 (83.8 KiB)  TX bytes:1322 (1.2 KiB)

vlan11    Link encap:Ethernet  HWaddr 52:54:00:0b:ff:2e  
          inet addr:10.194.1.1  Bcast:10.194.1.255  Mask:255.255.255.0
          inet6 addr: fe80::5054:ff:fe0b:ff2e/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:2500  Metric:1
          RX packets:2201655 errors:0 dropped:58 overruns:0 frame:0
          TX packets:2083391 errors:0 dropped:119523 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:3034042872 (2.8 GiB)  TX bytes:2888672290 (2.6 GiB)

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Low speed MPLS to virtio-net
  2017-04-26 19:15 Low speed MPLS to virtio-net Алексей Болдырев
@ 2017-04-29 20:50 ` David Ahern
  0 siblings, 0 replies; 2+ messages in thread
From: David Ahern @ 2017-04-29 20:50 UTC (permalink / raw)
  To: Алексей
	Болдырев,
	netdev

On 4/26/17 1:15 PM, Алексей Болдырев wrote:
> Started MPLS on the branch - Everything was fine. When I tried to run MPLS on a real network of virtual machines, there were problems with the speed:
> root@containers:~# iperf3 -c 10.194.10.2 -B 10.194.10.1 -Z       
> Connecting to host 10.194.10.2, port 5201
> [  4] local 10.194.10.1 port 49533 connected to 10.194.10.2 port 5201
> [ ID] Interval           Transfer     Bandwidth       Retr  Cwnd
> [  4]   0.00-1.00   sec  1018 KBytes  8.34 Mbits/sec  238   5.64 KBytes       
> [  4]   1.00-2.00   sec  1.42 MBytes  11.9 Mbits/sec  373   1.41 KBytes       
> [  4]   2.00-3.00   sec  1.43 MBytes  12.0 Mbits/sec  379   5.64 KBytes       
> [  4]   3.00-4.00   sec  1.43 MBytes  12.0 Mbits/sec  376   5.64 KBytes       
> [  4]   4.00-5.00   sec  1.41 MBytes  11.8 Mbits/sec  375   2.82 KBytes       
> [  4]   5.00-6.00   sec  1.42 MBytes  11.9 Mbits/sec  376   2.82 KBytes       
> [  4]   6.00-7.00   sec  1.42 MBytes  11.9 Mbits/sec  373   5.64 KBytes       
> [  4]   7.00-8.00   sec  1.41 MBytes  11.8 Mbits/sec  372   5.64 KBytes       
> [  4]   8.00-9.00   sec  1.42 MBytes  11.9 Mbits/sec  379   2.82 KBytes       
> [  4]   9.00-10.00  sec  1.42 MBytes  11.9 Mbits/sec  373   5.64 KBytes       
> - - - - - - - - - - - - - - - - - - - - - - - - -
> [ ID] Interval           Transfer     Bandwidth       Retr
> [  4]   0.00-10.00  sec  13.8 MBytes  11.5 Mbits/sec  3614             sender
> [  4]   0.00-10.00  sec  13.6 MBytes  11.4 Mbits/sec                  receiver

A picture of your network topology is more helpful than dumping network
config commands.


For this topology:

                             10.10.10.10
  +-----+       +-----+       +-----+
  | VM1 |-------| VM2 |-------| VM3 |
  +-----+       +-----+       +-----+
 push 100        pop 100


I get 4+ Gbps using netperf from VM1 to VM3:

$ netperf -c -C -H 10.10.10.10  -l 10 -t TCP_STREAM
MIGRATED TCP STREAM TEST from 0.0.0.0 (0.0.0.0) port 0 AF_INET to
10.10.10.10 () port 0 AF_INET
Recv   Send    Send                          Utilization       Service
Demand
Socket Socket  Message  Elapsed              Send     Recv     Send    Recv
Size   Size    Size     Time     Throughput  local    remote   local
remote
bytes  bytes   bytes    secs.    10^6bits/s  % S      % S      us/KB   us/KB

 87380  16384  16384    10.01      4377.58   37.69    60.78    1.411   2.275


So your bandwidth above is really low.

I suggest you confirm a good bandwidth without MPLS to make sure the VM
config is proper.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2017-04-29 20:50 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-04-26 19:15 Low speed MPLS to virtio-net Алексей Болдырев
2017-04-29 20:50 ` David Ahern

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.