Re: UDP checksum calculation - uses lenght twice ?



Additionally , on RFC793 that starts on last line of page 15 and continue to
page 16 :

The checksum also covers a 96 bit pseudo header conceptually

[Page 16]

September 1981
Transmission Control Protocol
Functional Specification

prefixed to the TCP header. This pseudo header contains the Source
Address, the Destination Address, the Protocol, and TCP length.
This gives the TCP protection against misrouted segments. This
information is carried in the Internet Protocol and is transferred
across the TCP/Network interface in the arguments or results of
calls by the TCP on the IP.

HTH
Arkady

"Arkady Frenkel" <arkadyf@xxxxxxxxxxxxxxxx> wrote in message
news:eYPkpW%238FHA.740@xxxxxxxxxxxxxxxxxxxxxxx
> Hi!
> Both are for the same purpose you can see that in RFC768 ( as in 791 ) too
> Quote from it ( 768 )
> "The pseudo header conceptually prefixed to the UDP header contains the
> source address, the destination address, the protocol, and the UDP
> length. This information gives protection against misrouted datagrams.
> This checksum procedure is the same as is used in TCP."
>
> Pay attention that it not checksum of the data but route info only
> Arkady
>
>
> "R.Wieser" <address@xxxxxxxxxxxxx> wrote in message
> news:u7CGe258FHA.2192@xxxxxxxxxxxxxxxxxxxxxxx
>> Arkady Frenkel <arkadyf@xxxxxxxxxxxxxxxx> schreef in berichtnieuws
>> O$CK7ba8FHA.2716@xxxxxxxxxxxxxxxxxxxxxxx
>>
>> Hello Arkady,
>>
>>> Yes , you have to do that , read about that in RFC793
>>> Arkady
>>
>> I know I *have* to (otherwise the checksum isn't :-) ), but the question
>> is
>> *why*. Why does the checksum use the same length twice ? Is it a
>> goof-up,
>> or is there some sort of logic behind it ?
>>
>> By the way : RFC793 is about TCP, and does not mention UDP at all ...
>> Any
>> hints to where exactly I should look (Allready read RFC768) ?
>>
>> Regards,
>> Rudy Wieser
>>
>>
>>
>
>


.



Relevant Pages

  • Re: How to handle TCP checksum, if adapter support TCP checksum offloading?
    ... the TCP/IP stack calculates the TCP pseudo header checksum ... When i run my client on 172.10.10.11, the very first packet (which is SYN, ... It has only the sum of TCP pseudo header. ...
    (microsoft.public.development.device.drivers)
  • Re: Denial of Service: Commercial Defense products
    ... Some DDoS tools will certainly be picked up by this mechanism especially the more popular attack tools. ... TCP sequence number. ... TCP checksum. ...
    (Focus-IDS)
  • Re: Serial (rs232 etc.) to IP
    ... TCP is a connection based protocol and as such it ensures that all data is ... There is no need to 'use' another protocol like Telnet if all you wish to do ... acknowledgement when the socket is first negotiated. ... >>>character packets when many common embedded TCP devices try to talk to ...
    (comp.arch.embedded)
  • Re: Trouble with Net::Ping
    ... IIRC TCP lives on top of UDP (and thus it makes sense that UDP would ... ICMP although it is more tightly coupled to IP. ... That's a different protocol then HTTP. ... connection has timed out but that the requested data is still being ...
    (comp.lang.perl.misc)
  • Re: Redirect problems to remote client
    ... please kindly note that the TCP port 139 is used for NetBIOS ... computer and the domain controller to authenticate users and services. ... Netlogon Application protocol Protocol Ports ...
    (microsoft.public.windows.server.sbs)

Loading