Home › Forums › FABRIC General Questions and Discussion › Packets with bad checksum being dropped.
Tagged: checksum validation, layer2 network, Network
- This topic has 20 replies, 6 voices, and was last updated 2 years, 2 months ago by Dale Carder.
-
AuthorPosts
-
September 6, 2022 at 7:47 pm #2864
Hello,
I am working on a project where I connect two nodes with layer 2 network. Because of certain reasons one of the nodes is sending packets with bad checksum. Packet is not reaching another node, tcpdump shows that packet was sent to the right interface. On the other end of the network tcpdump doesn’t show any packet.
I tried to disable checksum validation with sudo ethtool –offload <NETWORK INTERFACE> tx off rx off, but that doesn’t help. Any idea to disable checksum validation?
September 6, 2022 at 8:02 pm #2865I think that might be a side effect of NIC_Basic’s being SRIOV VFs with limited low level configuration available. Have you tried to use FABRIC’s dedicated NICs? theoretically it should give a bit more control.
- This reply was modified 2 years, 2 months ago by Arash SARABI.
September 7, 2022 at 12:17 pm #2871Yes, this is the solution. There a some low-level capabilities that are not possible with NIC_Basic. Try the dedicated NICs.
September 7, 2022 at 12:48 pm #2872Thanks for reply and suggestion. I tried to use NIC5 and NIC6 the same issue. When the packet has good checksum it accepts and packets with bad checksum are lost. I can see those packets leaving interface from sending node, but don’t see them at the receiving node.
Any suggestion is appreciated.
September 7, 2022 at 12:55 pm #2873Are you intentionally sending packets with bad checksums as part of your experiment or are they being corrupted by something FABRIC is doing?
Either way is fine, I’m just trying to figure out what we need to look at.
I’m not really sure what is happening. I suspect our underlying switches might be filtering the bad packets. I’ll have someone who knows more about those switches look at this forum thread and maybe respond.
September 7, 2022 at 12:59 pm #2874Short answer yes, I am intentionally sending bad packets.
Longer version: I am working with P4 lang, I am changing ipv4 headers with p4lang, p4lang at this point unable to generate correct checksum, because in the header i have array and as far as I know p4lang cannot loop. Hence the generated checksum is wrong.
September 7, 2022 at 1:00 pm #2875Yes, It seems the packets are being dropped!
September 7, 2022 at 1:02 pm #2876When the checksum is correct I receive it in receiving node.
September 8, 2022 at 8:34 am #2908There are three types of “layer 2 network” supported on FABRIC. L2Bridge and L2STS are commonly used but may not be completely L3 transparent. The other is L2PTP, which is based on Pseudowire and supposed to be “more” Layer-2.
If your two nodes are at the same site, you don’t have other choice but L2Bridge.
If your two nodes are from different sites, system will pick L2STS or L2PTP for you. To force the type, use
slice.add_network(... type='L2PTP')
. See if that helps.- This reply was modified 2 years, 2 months ago by Xi Yang.
September 9, 2022 at 3:09 am #2939I tried it but had no luck:
Could not change any device features
September 9, 2022 at 9:42 am #2942Can you elaborate “Could not change any device features”? Where do you see that?
September 9, 2022 at 1:02 pm #2945When changing
slice.add_l2network(name='net_c', type='L2Bridge', interfaces=[ifaceclient, ifaceRouterC])
toslice.add_l2network(name='net_c', type='L2PTP', interfaces=[ifaceclient, ifaceRouterC])
on the host we cannot run the commandethtool -K ens8 rx-fcs on
September 9, 2022 at 3:12 pm #2946Are you using NIC_Basic? A bunch of ethtool settings are not possible with that type of NIC. You probably need to use one of the dedicated NICs.
September 9, 2022 at 7:23 pm #2968type='L2Bridge'
can only be used for “same site” network.type='L2PTP'
can only be used for between two different sites. If you are trying to set up a network within the same site, you cannot use L2PTP.September 12, 2022 at 11:49 am #3004No I am using
NIC_ConnectX_5
-
AuthorPosts
- You must be logged in to reply to this topic.