Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Computing > Cisco > Detect Incorrect Checksum

Reply
Thread Tools

Detect Incorrect Checksum

 
 
Rahan
Guest
Posts: n/a
 
      07-27-2006
Hi all,

I have some hosts (windows and Solaris) connected to Cisco Switch 2950.

When i capture traffic with sniffer, i can see a problem of incorrect
checksum in packet and i know why (i disabled offload in my network card and
all work fine).

But when i have checksum error, i don't see anything in the switche. (no
input, no output, no crc... no errors) !!!

How can i detecte checksum error whitout sniffing directly in the hosts ??

ThankYou very much

Best Regards
Rahan


 
Reply With Quote
 
 
 
 
Walter Roberson
Guest
Posts: n/a
 
      07-27-2006
In article <44c8e6f2$0$669$>,
Rahan <Rahan@Rahan_badmail.com> wrote:

>I have some hosts (windows and Solaris) connected to Cisco Switch 2950.


>When i capture traffic with sniffer, i can see a problem of incorrect
>checksum in packet and i know why (i disabled offload in my network card and
>all work fine).


>But when i have checksum error, i don't see anything in the switche. (no
>input, no output, no crc... no errors) !!!


When you have checksums offloaded to your network card, then a
sniffer on the host sniffs the packets -before- they go to the network
card, and so sniffs the unadjusted checksums. The network card then
fixes the checksums and sends out the corrected packet.

I'm not sure from your posting whether you did not know that, or if
you have reason to believe there are checksum errors -after- the
NIC rewrites the checksum (e.g., somewhere in transit between the
NIC and the receiving end) ?
 
Reply With Quote
 
 
 
 
Rahan
Guest
Posts: n/a
 
      07-27-2006

"Walter Roberson" <> a écrit dans le message de
news:6Z5yg.244404$iF6.82334@pd7tw2no...
> In article <44c8e6f2$0$669$>,
> Rahan <Rahan@Rahan_badmail.com> wrote:
>
> >I have some hosts (windows and Solaris) connected to Cisco Switch 2950.

>
> >When i capture traffic with sniffer, i can see a problem of incorrect
> >checksum in packet and i know why (i disabled offload in my network card

and
> >all work fine).

>
> >But when i have checksum error, i don't see anything in the switche. (no
> >input, no output, no crc... no errors) !!!

>
> When you have checksums offloaded to your network card, then a
> sniffer on the host sniffs the packets -before- they go to the network
> card, and so sniffs the unadjusted checksums. The network card then
> fixes the checksums and sends out the corrected packet.
>


Thank You for your answer.

if what you said is true, so, i will find all packets with checksum error !!
it's not in my case !
i have only some packets with checksum error, not all.

> I'm not sure from your posting whether you did not know that, or if
> you have reason to believe there are checksum errors -after- the
> NIC rewrites the checksum (e.g., somewhere in transit between the
> NIC and the receiving end) ?


And when i disabled offloading in my NIC, i don't have checksum error.
And when i disabled offloading in my NIC, i don't have network problem
(disconnexion client, lost data... etc)

Best Regards
Rahan


 
Reply With Quote
 
Walter Roberson
Guest
Posts: n/a
 
      07-27-2006
In article <44c8f13b$0$667$>,
Rahan <Rahan@Rahan_badmail.com> wrote:

>"Walter Roberson" <> a écrit dans le message de
>news:6Z5yg.244404$iF6.82334@pd7tw2no...


>> When you have checksums offloaded to your network card, then a
>> sniffer on the host sniffs the packets -before- they go to the network
>> card, and so sniffs the unadjusted checksums. The network card then
>> fixes the checksums and sends out the corrected packet.


>if what you said is true, so, i will find all packets with checksum error !!
>it's not in my case !
>i have only some packets with checksum error, not all.


When checksums are offloaded to the driver, then for any particular
protocol, the checksum field stored in the packet (the one that is
sniffed) will be either a constant or whatever trash happens to be
handy. Either way, by chance sometimes that is going to be the
correct checksum: in order for the value to *never* be right,
the drivers would have to calculate the checksum and then deliberately
put in something it knew to be wrong.

Another thing you might observe is that different protocols involve
different numbers of checksums. With checksum downloading turned on,
there may be a pattern of incorrect checksums -- e.g., it might happen
for all TCP packets but not for other packets.

>And when i disabled offloading in my NIC, i don't have network problem
>(disconnexion client, lost data... etc)


It sounds like the easiest solution is to leave checksum downloading
disabled

If the NIC is not processing checksum regeneration properly, then
it could be having other difficulties that might lead to the
bad packets never leaving the NIC. You need try snooping the
data -after- it leaves the NIC, such as by using SPAN or RSPAN
to "mirror" the switchport data over to another port for analysis.
 
Reply With Quote
 
 
 
Reply

Thread Tools

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
incorrect checksum for freed object Philipp Kraus C++ 7 08-19-2010 05:23 PM
A malloc error in C++ - incorrect checksum for freed object giacomomonari@email.it C++ 24 09-12-2007 12:04 AM
incorrect checksum for freed object Une bévue Ruby 0 06-26-2006 04:21 PM
vhdl code for crc32 checksum anupam VHDL 4 09-06-2004 09:05 PM
checksum errors with my 2611 Sameer Cisco 2 01-27-2004 12:37 AM



Advertisments