Skip to content

jfgiorgi/testgso

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 

Repository files navigation

testgso

poc/test for quic-go/quic-go#3911

We use both sendmsg and sendmmsg, thru WriteMsgUDP and WriteBatch respectivly , both with oob.

ok machine:

remote v4 = 127.0.0.1:0
remote v6 = ::1:0
Kernel detection:
  IPv4 GSO: true
  IPv6 GSO: true
IPv4 with GSO:
  Write:  n,nb,err = 4000,24,nil
  Write with batch:  n,nb,err = 4000,24,nil
IPv4 without GSO:
  Write:  n,nb,err = 4000,0,nil
  Write with batch:  n,nb,err = 4000,0,nil
IPv6 with GSO:
  Write:  n,nb,err = 4000,24,nil
  Write with batch:  n,nb,err = 4000,24,nil
IPv6 without GSO:
  Write:  n,nb,err = 4000,0,nil
  Write with batch:  n,nb,err = 4000,0,nil

ko machine:

  remote v4 = 127.0.0.1:0
  remote v6 = ::1:0
  Kernel detection:
    IPv4 GSO: true
    IPv6 GSO: true
  IPv4 with GSO:
    Write:  n,nb,err = 4000,24,nil
    Write with batch:  n,nb,err = 4000,24,nil
  IPv4 without GSO:
    Write:  n,nb,err = 4000,0,nil
    Write with batch:  n,nb,err = 4000,0,nil
  IPv6 with GSO:
    Write:  n,nb,err = 0,0,write udp6 [::]:55065->[::1]:55065: sendmsg: invalid argument
    Write with batch:unexpected number of msg sent
    n,nb,err = 0,0,write udp [::]:55065: sendmmsg: invalid argument
  IPv6 without GSO:
    Write:  n,nb,err = 4000,0,nil
    Write with batch:  n,nb,err = 4000,0,nil

checksum issue: tested with a tailscale interface:

  go run main.go -r4 100.96.126.125:2121 -r6 [fd7a:xxxx:xxxx:xxxx:xxxx:xxxx]:2121
  remote v4 = 100.96.126.125:2121
  remote v6 = fd7a:xxxx:xxxx:xxxx:xxxx:xxxx:2121
  Kernel detection:
    IPv4 GSO: true
    IPv6 GSO: true
  IPv4 with GSO:
    Write:  gso issue detected
    n,nb,err = 0,0,write udp4 0.0.0.0:33640->100.96.126.125:2121: sendmsg: input/output error
    Write with batch:unexpected number of msg sent
    gso issue detected
    n,nb,err = 0,0,write udp 0.0.0.0:33640: sendmmsg: input/output error
  IPv4 without GSO:
    Write:  n,nb,err = 4000,0,nil
    Write with batch:  n,nb,err = 4000,0,nil
  IPv6 with GSO:
    Write:  gso issue detected
    n,nb,err = 0,0,write udp6 [::]:53639->[fd7a:xxxx:xxxx:xxxx:xxxx:xxxx]:2121: sendmsg: input/output error
    Write with batch:unexpected number of msg sent
    gso issue detected
    n,nb,err = 0,0,write udp [::]:53639: sendmmsg: input/output error
  IPv6 without GSO:
    Write:  n,nb,err = 4000,0,nil
    Write with batch:  n,nb,err = 4000,0,nil

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages