Branislav Kirilov
Dabbler
- Joined
- Jun 20, 2016
- Messages
- 22
Code:
17:41:46.043811 IP (tos 0x0, ttl 64, id 22891, offset 0, flags [DF], proto TCP (6), length 40, bad cksum 0 (->cae7)!) 10.10.0.5.445 > 10.10.2.101.49925: Flags [.], cksum 0x1698 (incorrect -> 0xd8a4), seq 1435, ack 1882, win 2052, length 0 17:41:46.044102 IP (tos 0x2,ECT(0), ttl 64, id 22895, offset 0, flags [DF], proto TCP (6), length 168, bad cksum 0 (->ca61)!) 10.10.0.5.445 > 10.10.2.101.49925: Flags [P.], cksum 0x1718 (incorrect -> 0x1fbc), seq 1435:1563, ack 1882, win 2053, length 128SMB-over-TCP packet:(raw data or continuation?) 17:41:46.044152 IP (tos 0x0, ttl 64, id 22897, offset 0, flags [DF], proto TCP (6), length 88, bad cksum 0 (->cab1)!) 10.10.0.5.3260 > 10.10.2.101.49924: Flags [P.], cksum 0x16c8 (incorrect -> 0x3472), seq 3312:3360, ack 294129, win 65535, length 48 17:41:46.044575 IP (tos 0x0, ttl 128, id 8990, offset 0, flags [DF], proto TCP (6), length 1500) 10.10.2.101.49924 > 10.10.0.5.3260: Flags [.], cksum 0xe49f (correct), seq 294129:295589, ack 3360, win 63664, length 1460
So i started having some strange issues with bad performance of the pool. Doing tests looks fine, but i noticed these bad checksum packets while checking traffic with tcpdump. Looking around I found that i should disable TCP checksum offloading. And since i have a 2x10G trunk, i did on lagg0 like this
ifconfig lagg0 -rxcsum -txcsum
aaand server crashed instantly. So my question is, should i do this on ix0 and ix1 or how can i check if's actually on. No ethtool on bsd.