public inbox for pve-user@lists.proxmox.com
 help / color / mirror / Atom feed
* [PVE-User] The low network throughput obsered on Open vSwitch bridge.
@ 2021-03-15  3:33 Hongyi Zhao
  2021-03-15  4:00 ` Dmitry Petuhov
  0 siblings, 1 reply; 3+ messages in thread
From: Hongyi Zhao @ 2021-03-15  3:33 UTC (permalink / raw)
  To: Proxmox VE user list

I install the pve on an I7 8886U machine with 6 full-duplex gigabit
network cards. The network configuration of the pve host is shown
below:

<quote>
root@pve:~# cat /etc/network/interfaces
# network interface settings; autogenerated
# Please do NOT modify this file directly, unless you know what
# you're doing.
#
# If you want to manage parts of the network configuration manually,
# please utilize the 'source' or 'source-directory' directives to do
# so.
# PVE will preserve these directives, but will NOT read its network
# configuration from sourced files, so do not attempt to move any of
# the PVE managed interfaces into external files!

auto lo
iface lo inet loopback

auto enp1s0
iface enp1s0 inet manual
        ovs_type OVSPort
        ovs_bridge vmbr0

auto enp2s0
iface enp2s0 inet manual
        ovs_type OVSPort
        ovs_bridge vmbr1

iface enp3s0 inet manual
iface enp4s0 inet manual
iface enp5s0 inet manual
iface enp6s0 inet manual

auto vmbr0
iface vmbr0 inet static
        address 192.168.10.254/24
        gateway 192.168.10.1
        ovs_type OVSBridge
        ovs_ports enp1s0

auto vmbr1
iface vmbr1 inet manual
        ovs_type OVSBridge
        ovs_ports enp2s0
</quote>

Now I use scp to transfer file from pve (192.168.10.254) to another
physical machine (192.168.10.100) or vice versa, but run the following
two commands in order:

root@pve:~# scp macOS-10.13.qcow2 werner@192.168.10.100:/dev/null
werner@192.168.10.100's password:
macOS-10.13.qcow2                              37% 6209MB  83.6MB/s   02:01 ETA

werner@X10DAi:~$ scp macOS-10.13.qcow2 root@192.168.10.254:/dev/null
root@192.168.10.254's password:
macOS-10.13.qcow2                                        30% 1408MB
53.5MB/s   01:00 ETA

As you can see, the show different network transfer speed. OTOH, if I
run the above two commands simultaneously, the results will look like
the following:

werner@X10DAi:~$ scp macOS-10.13.qcow2 root@192.168.10.254:/dev/null
root@192.168.10.254's password:
macOS-10.13.qcow2                                        17%  811MB
26.0MB/s   02:26 ETA

root@pve:~# scp macOS-10.13.qcow2 werner@192.168.10.100:/dev/null
werner@192.168.10.100's password:
macOS-10.13.qcow2                              13% 2205MB  51.7MB/s   04:34 ETA


Any hints for the above observations and results will be highly appreciated.

Regards
-- 
Assoc. Prof. Hongyi Zhao <hongyi.zhao@gmail.com>
Theory and Simulation of Materials
Hebei Polytechnic University of Science and Technology engineering
NO. 552 North Gangtie Road, Xingtai, China



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

* Re: [PVE-User] The low network throughput obsered on Open vSwitch bridge.
  2021-03-15  3:33 [PVE-User] The low network throughput obsered on Open vSwitch bridge Hongyi Zhao
@ 2021-03-15  4:00 ` Dmitry Petuhov
  2021-03-15  4:37   ` Hongyi Zhao
  0 siblings, 1 reply; 3+ messages in thread
From: Dmitry Petuhov @ 2021-03-15  4:00 UTC (permalink / raw)
  To: pve-user

Hello.

That's how TCP throughput mediation works. In basic case, you cannot 
canot fully saturate link by two opposite TCP connections regardless of 
using Open vSwitch.

There's one dirty hack that can override this behavior: you could use 
qdisc on interface that prioritize packets that have ACK bit set over 
those that don't in same connection. It will saturate link, but may lead 
to other issues on certain types of traffic (because of packet 
reordering), so [almost] nobody use it in real life.

Multiple parallel connections in same direction also saturate link more 
evenly.


15.03.2021 6:33, Hongyi Zhao пишет:
> I install the pve on an I7 8886U machine with 6 full-duplex gigabit
> network cards. The network configuration of the pve host is shown
> below:
>
> <quote>
> root@pve:~# cat /etc/network/interfaces
> # network interface settings; autogenerated
> # Please do NOT modify this file directly, unless you know what
> # you're doing.
> #
> # If you want to manage parts of the network configuration manually,
> # please utilize the 'source' or 'source-directory' directives to do
> # so.
> # PVE will preserve these directives, but will NOT read its network
> # configuration from sourced files, so do not attempt to move any of
> # the PVE managed interfaces into external files!
>
> auto lo
> iface lo inet loopback
>
> auto enp1s0
> iface enp1s0 inet manual
>          ovs_type OVSPort
>          ovs_bridge vmbr0
>
> auto enp2s0
> iface enp2s0 inet manual
>          ovs_type OVSPort
>          ovs_bridge vmbr1
>
> iface enp3s0 inet manual
> iface enp4s0 inet manual
> iface enp5s0 inet manual
> iface enp6s0 inet manual
>
> auto vmbr0
> iface vmbr0 inet static
>          address 192.168.10.254/24
>          gateway 192.168.10.1
>          ovs_type OVSBridge
>          ovs_ports enp1s0
>
> auto vmbr1
> iface vmbr1 inet manual
>          ovs_type OVSBridge
>          ovs_ports enp2s0
> </quote>
>
> Now I use scp to transfer file from pve (192.168.10.254) to another
> physical machine (192.168.10.100) or vice versa, but run the following
> two commands in order:
>
> root@pve:~# scp macOS-10.13.qcow2 werner@192.168.10.100:/dev/null
> werner@192.168.10.100's password:
> macOS-10.13.qcow2                              37% 6209MB  83.6MB/s   02:01 ETA
>
> werner@X10DAi:~$ scp macOS-10.13.qcow2 root@192.168.10.254:/dev/null
> root@192.168.10.254's password:
> macOS-10.13.qcow2                                        30% 1408MB
> 53.5MB/s   01:00 ETA
>
> As you can see, the show different network transfer speed. OTOH, if I
> run the above two commands simultaneously, the results will look like
> the following:
>
> werner@X10DAi:~$ scp macOS-10.13.qcow2 root@192.168.10.254:/dev/null
> root@192.168.10.254's password:
> macOS-10.13.qcow2                                        17%  811MB
> 26.0MB/s   02:26 ETA
>
> root@pve:~# scp macOS-10.13.qcow2 werner@192.168.10.100:/dev/null
> werner@192.168.10.100's password:
> macOS-10.13.qcow2                              13% 2205MB  51.7MB/s   04:34 ETA
>
>
> Any hints for the above observations and results will be highly appreciated.
>
> Regards



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

* Re: [PVE-User] The low network throughput obsered on Open vSwitch bridge.
  2021-03-15  4:00 ` Dmitry Petuhov
@ 2021-03-15  4:37   ` Hongyi Zhao
  0 siblings, 0 replies; 3+ messages in thread
From: Hongyi Zhao @ 2021-03-15  4:37 UTC (permalink / raw)
  To: Proxmox VE user list

On Mon, Mar 15, 2021 at 12:00 PM Dmitry Petuhov <mityapetuhov@gmail.com> wrote:
>
> Hello.
>
> That's how TCP throughput mediation works. In basic case, you cannot
> canot fully saturate link by two opposite TCP connections regardless of
> using Open vSwitch.
>
> There's one dirty hack that can override this behavior: you could use
> qdisc on interface that prioritize packets that have ACK bit set over
> those that don't in same connection. It will saturate link, but may lead
> to other issues on certain types of traffic (because of packet
> reordering), so [almost] nobody use it in real life.
>
> Multiple parallel connections in same direction also saturate link more
> evenly.

Thanks a lot for your help and explanation. But I still can't
understand why the speed observed from pve (192.168.10.254) to another
physical machine (192.168.10.100) is always higher than that observed
in the reverse direction. Any hints for this phenomenon?

Regards
-- 
Assoc. Prof. Hongyi Zhao <hongyi.zhao@gmail.com>
Theory and Simulation of Materials
Hebei Polytechnic University of Science and Technology engineering
NO. 552 North Gangtie Road, Xingtai, China



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

end of thread, other threads:[~2021-03-15  4:38 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-03-15  3:33 [PVE-User] The low network throughput obsered on Open vSwitch bridge Hongyi Zhao
2021-03-15  4:00 ` Dmitry Petuhov
2021-03-15  4:37   ` Hongyi Zhao

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
Service provided by Proxmox Server Solutions GmbH | Privacy | Legal