🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.internet.socket
Article #1858

Re: TCP/IP CRC Checking Question....

#1858
From: Bob Gonder
Date: Thu, 12 Oct 2006 18:33
28 lines
2124 bytes
"Paul at NCF" <not plmacca@clara.co.uk> wrote:

>Here's a question for those of you in the know.  Does the TCP/IP checksum 
>field protect against corruption of the data portion, or does it only 
>protect the TCP/IP header?

>Some material on the web implies that the data portion is protected, other 
>sites (including microsoft) imply the header is only included in the 
>checksum (and that the UDP checksum is optional?).

Depends on what layer you are looking at.
http://www.tcpipguide.com/free/t_toc.htm

http://www.tcpipguide.com/free/t_IPDatagramGeneralFormat.htm
IPv4 has a Header CRC, doesn't cover data.

http://www.tcpipguide.com/free/t_IPv6DatagramOverviewandGeneralStructure.htm
IPv6 does away with the Header CRC.

http://www.tcpipguide.com/free/t_IPDatagramEncapsulation.htm
Farther down, closer to the actual transmission, the packet is placed
in a frame. The frame has a footer wich contains a Frame CRC (FCS)
which does cover the data.
http://www.tcpipguide.com/free/t_PPPGeneralFrameFormat.htm

>  And is the answer to this different if you use Win32, Linux, etc?

The protocols are supposed to be agnostic. That's the whole idea.
Technical Details
Message-ID: <511ti29hn8m5vipvi8hqlaajp9gqfs5da3@4ax.com>
Path: arc1-ca.pugleaf.net!g2news2.google.com!news4.google.com!news1.google.com!news3.google.com!news.glorb.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail
References: <452e72cc$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 11508e,6aaa467848354448
X-Google-Attributes: gid11508e,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: Bob Gonder <notbg@notmindspring.invalid>
Newsgroups: borland.public.cppbuilder.internet.socket
Subject: Re: TCP/IP CRC Checking Question....
Date: Thu, 12 Oct 2006 11:33:38 -0700
Organization: MindSpring Enterprises, Inc.
Reply-To: notbg@notmindspring.invalid
Message-ID: <511ti29hn8m5vipvi8hqlaajp9gqfs5da3@4ax.com>
References: <452e72cc$1@newsgroups.borland.com>
X-Newsreader: Forte Agent 1.93/32.576 English (American)
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: 69.69.90.106
X-Trace: newsgroups.borland.com 1160678015 69.69.90.106 (12 Oct 2006 11:33:35 -0700)
Lines: 32
Path: arc1-ca.pugleaf.net!g2news2.google.com!news4.google.com!news1.google.com!news3.google.com!news.glorb.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail