Networking Forums

Networking Forums > Computer Networking > Linux Networking > Unusual Packet Capture Between Linux and Windows

Reply
Thread Tools Display Modes

Unusual Packet Capture Between Linux and Windows

 
 
Billy Mays
Guest
Posts: n/a

 
      10-12-2011, 12:13 AM
On 10/11/2011 3:08 PM, Andy Furniss wrote:
> Billy Mays wrote:
>
>> eth1 is the one that seems to be having the problem, while eth0 is an
>> interface I know to work (just to clarify the output below). I ran
>> ethtool on both of my interfaces and included only the differences
>> between them. I must admit I am not familiar with specifics of what they
>> do:
>>
>> Offload parameters for eth1:
>>
>> tx-checksumming: on
>> scatter-gather: on
>> tcp-segmentation-offload: on
>> generic-segmentation-offload: on
>>
>>
>> Offload parameters for eth0:
>>
>> tx-checksumming: off
>> scatter-gather: off
>> tcp-segmentation-offload: off
>> generic-segmentation-offload: off
>>
>>
>>
>> Which of these are safe to change? Would any of these possibly be the
>> source of my error?

>
> I would try
>
> ethtool -K eth1 tso off
>
> tcp-segmentation-offload means that you nic is doing some of the work to
> do with tcp that the kernel netcode usually does. This could be why you
> see different dumps as tcpdump will be seeing the packets before the nic
> has segmented them.
>
> It should be safe to turn off the others (tx sg gso) if you need to test
> further.
>
>



Trying to disable anything but gso seems to be disabled:

root@af:/# ethtool -K eth1 tso off
Cannot set device tcp segmentation offload settings: Operation not supported
root@af:/# ethtool -K eth1 gso off
root@af:/# ethtool -K eth1 rx off
Cannot set device rx csum settings: Operation not supported
root@af:/# ethtool -K eth1 tx off
Cannot set device tx csum settings: Operation not supported





How can these settings be turned on, but not able to be turned off?
Would it be easier to just spend $20 and get a new nic?

Bill



 
Reply With Quote
 
 
 
 
Andy Furniss
Guest
Posts: n/a

 
      10-13-2011, 09:52 AM
Billy Mays wrote:

> Trying to disable anything but gso seems to be disabled:
>
> root@af:/# ethtool -K eth1 tso off
> Cannot set device tcp segmentation offload settings: Operation not
> supported
> root@af:/# ethtool -K eth1 gso off
> root@af:/# ethtool -K eth1 rx off
> Cannot set device rx csum settings: Operation not supported
> root@af:/# ethtool -K eth1 tx off
> Cannot set device tx csum settings: Operation not supported


Hmm, maybe search for you nic/driver and see if a bug has been
reported/fixed.

> How can these settings be turned on, but not able to be turned off?
> Would it be easier to just spend $20 and get a new nic?


It may be quicker/less hassle - but I have no idea if it will actually
fix your main problem. With tso off at least the tcpdumps should match.

 
Reply With Quote
 
Billy Mays
Guest
Posts: n/a

 
      10-19-2011, 02:29 PM
On 10/13/2011 5:52 AM, Andy Furniss wrote:
> Billy Mays wrote:
>
>> Trying to disable anything but gso seems to be disabled:
>>
>> root@af:/# ethtool -K eth1 tso off
>> Cannot set device tcp segmentation offload settings: Operation not
>> supported
>> root@af:/# ethtool -K eth1 gso off
>> root@af:/# ethtool -K eth1 rx off
>> Cannot set device rx csum settings: Operation not supported
>> root@af:/# ethtool -K eth1 tx off
>> Cannot set device tx csum settings: Operation not supported

>
> Hmm, maybe search for you nic/driver and see if a bug has been
> reported/fixed.
>
>> How can these settings be turned on, but not able to be turned off?
>> Would it be easier to just spend $20 and get a new nic?

>
> It may be quicker/less hassle - but I have no idea if it will actually
> fix your main problem. With tso off at least the tcpdumps should match.
>


For the sake of posterity, I believe I fixed the problem by updating my
kernel from 2.6.32-21-generic-pae to 2.6.38-11-generic-pae. Hope this
helps someone in the future.

Bill

 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
function set packet capture promisc mode in linux? Xend Linux Networking 1 06-23-2008 08:29 PM
libpcap packet capture in kernel space or usermod in linux?? xzen Linux Networking 0 06-23-2008 03:28 AM
Packet capture Kalyan Linux Networking 1 11-28-2007 11:20 AM
How to capture and change packet using linux? quakewang@mail.whut.edu.cn Linux Networking 0 06-23-2007 03:15 AM
Receiver sensitivity- Packet Detection v/s Packet capture Vinay Wireless Internet 1 10-14-2005 01:50 AM



1 2 3 4 5 6 7 8 9 10 11