Skip to Content.

rare-dev - Re: [rare-dev] initialization of mgmt0 and bf_pci0

Subject: Rare project developers

List archive


Re: [rare-dev] initialization of mgmt0 and bf_pci0


Chronological Thread 
  • From: Alexander Gall <>
  • To: <>
  • Cc: "" <>
  • Subject: Re: [rare-dev] initialization of mgmt0 and bf_pci0
  • Date: Fri, 25 Mar 2022 11:53:49 +0100

Hi

This affects all interfaces on which we use the pcapInt.bin thing via
rtr-hw.txt, right? In that case, I will implement the offload settings
as a wrapper around that command.

The MTU and promiscuous mode for bf_pci0 are already set here:
https://bitbucket.software.geant.org/projects/RARE/repos/rare-nix/browse/scripts/if-wrapper.sh

However, I think it would be wrong to set the MTU on mgmt0 to anything
larger than the actual MTU on that IP subnet. For example, it would
create an MTU blackhole for UDP traffic originated by the OS with
PMTUD enabled.

--
Alex

On Fri, 25 Mar 2022 10:42:41 +0100, mc36 <> said:

> hi alex,
> carmen complained that her freerouter have quite low tcp performance...
> i installed your latest build to par0001 and checked on what's going
> on and found that you're not initializing the ethernet ports...
> i see a lot of this when i do a bigger transfer from freerouter:
> info prtTcp.parseTCPheader:prtTcp.java:290 got bad checksum from
> 193.224.23.58
> attaching you the capture that what's going on... the issue is that linux
> internally reassembles the consecutive packets... the endpoint in this case
> is my p4deb.nop.hu server also running freerouter and as such, it never
> emits
> a tcp segment longer than 1024 to fit to any tunneling... moreover, the
> mgmt0
> interface have the mtu 1500, moreover the whole tcp running over the
> internet...
> now in the capture we have packet 8, 15 and 20 which are 2048 bytes long,
> and as freerouter states it correctly, have a bad tcp checksum...
> so long story short, please initialize all the ports,
> mgmt0 and bf_pci0 with the script below...
> thanks,
> cs

> ip link set <port> up multicast on promisc on mtu 8192
> ethtool -K <port> rx off
> ethtool -K <port> tx off
> ethtool -K <port> sg off
> ethtool -K <port> tso off
> ethtool -K <port> ufo off
> ethtool -K <port> gso off
> ethtool -K <port> gro off
> ethtool -K <port> lro off
> ethtool -K <port> rxvlan off
> ethtool -K <port> txvlan off
> ethtool -K <port> ntuple off
> ethtool -K <port> rxhash off
> ethtool --set-eee <port> eee off



Archive powered by MHonArc 2.6.19.

Top of Page