VrayoSystems / vtrunkd

Open source SD WAN daemon for linux (network link bonding/trunking/aggregation and multichannel VPN daemon).
GNU General Public License v3.0
224 stars 77 forks source link

ping + ssh connection establish on sps causes huge lag #204

Closed grandrew closed 8 years ago

grandrew commented 8 years ago

huge lag detected in ping when trying to establish ssh connection from client to server

how to reproduce:

  1. establish 7 connections (from sps)
  2. start ping server->client
  3. try to connect client->server via ssh

at the time of connection - the ping will experience huge lag up to 2s per ping, with possible loss

grandrew commented 8 years ago

also huge reordering happening at sps:

PING 10.11.0.27 (10.11.0.27) 56(84) bytes of data.
64 bytes from 10.11.0.27: icmp_seq=1 ttl=64 time=201 ms
64 bytes from 10.11.0.27: icmp_seq=4 ttl=64 time=126 ms
64 bytes from 10.11.0.27: icmp_seq=5 ttl=64 time=66.9 ms
64 bytes from 10.11.0.27: icmp_seq=6 ttl=64 time=67.2 ms
64 bytes from 10.11.0.27: icmp_seq=7 ttl=64 time=47.3 ms
64 bytes from 10.11.0.27: icmp_seq=8 ttl=64 time=57.9 ms
64 bytes from 10.11.0.27: icmp_seq=2 ttl=64 time=6589 ms
64 bytes from 10.11.0.27: icmp_seq=3 ttl=64 time=5610 ms
64 bytes from 10.11.0.27: icmp_seq=9 ttl=64 time=54.7 ms
64 bytes from 10.11.0.27: icmp_seq=10 ttl=64 time=70.0 ms
64 bytes from 10.11.0.27: icmp_seq=11 ttl=64 time=141 ms
64 bytes from 10.11.0.27: icmp_seq=12 ttl=64 time=62.2 ms

not sure if this is related

grandrew commented 8 years ago

can not reproduce this at office test equipment

grandrew commented 8 years ago

older version still performing better (but more loss though; not sure if it is definitely better or not):

--- 10.5.0.27 ping statistics ---
100 packets transmitted, 100 received, 0% packet loss, time 98967ms
rtt min/avg/max/mdev = 52.549/719.918/10041.398/1874.529 ms, pipe 11

--- 10.5.0.25 ping statistics ---
100 packets transmitted, 96 received, 4% packet loss, time 98980ms
rtt min/avg/max/mdev = 50.610/126.573/1332.597/158.387 ms, pipe 2

--- 10.5.0.27 ping statistics ---
100 packets transmitted, 98 received, 2% packet loss, time 98979ms
rtt min/avg/max/mdev = 49.808/779.233/10457.425/2002.741 ms, pipe 11
grandrew commented 8 years ago

seems fixed