TCP IP CRS

TCP IP CRS

Post by Vlad Klimo » Sun, 28 Feb 1999 04:00:00



Help ME!
I am trying to write nice program.
I need to generate 3 packets of tcp ip and sent it myself.
And i do it.
But CRS of header is incorrect.
Please help me.
I nee correct function to calculate CRS of TCP IP packet.
Language - C.
OS - Debian Linux
 
 
 

TCP IP CRS

Post by Duane Elmer Smecker » Sun, 28 Feb 1999 04:00:00


CRC-16 uses the polynomial generator 11000000000000101
(That is x**16+x**15+x**2+x**0)

The algorithm is simple enough:
  1) Take the original frame with the checksum set to 0 (augmented frame)
  2) Divide the extended frame by the generator polynomial
      11000000000000101  using MOD(2) division to get the remainder.
  3) Subtract the remainder from the extended frame from step 1.

It is a simple shift and subtract algorithm.

I lifted it from:<cite>
    "Computer Networks" by Tanenbaum, Prentice Hall, 1996, pp187-190
   </cite>


>Help ME!
>I am trying to write nice program.
>I need to generate 3 packets of tcp ip and sent it myself.
>And i do it.
>But CRS of header is incorrect.
>Please help me.
>I nee correct function to calculate CRS of TCP IP packet.
>Language - C.
>OS - Debian Linux


 
 
 

TCP IP CRS

Post by Malwar » Tue, 02 Mar 1999 04:00:00


Hi Vlad,


> I nee correct function to calculate CRS of TCP IP packet.

See following RFCs for detailed information and some code for
calculation the checksum: 1071, 1141, 1146, 1624.

Malware

 
 
 

TCP IP CRS

Post by Malwar » Tue, 02 Mar 1999 04:00:00


Hi Duane,


> CRC-16 uses the polynomial generator 11000000000000101
> (That is x**16+x**15+x**2+x**0)

But IP, TCP and UDP do not use the CRC-16.

Malware

 
 
 

1. !!DDE->TCP/IP, REAL TIME DATA PUMP, Trans.DDE App.DATA via TCP/IP

        DDE to TCP/IP Real Time Data Pump

DDE2TCP, is a Real Time Data Pump used as a data bridge
between DDE applications and ANY host system using
TCP/IP (SUN,HP,IBM,Apple, etc).  DDE2TCP runs in the
background, totally transparent between server and target
system.

DDE2TCP is perfect for use with any MMI system such as FIX,
WONDERWARE,GENESIS,LabTech for real time update of SQL
databases residing on other hosts.  DDE2TCP comes with it's
own configurator for fast and effective setup.  DDE2TCP runs
on WINDOWS 3.1,3.11,95 and NT.  Site licenses,volume discounts
and modifications are available.  For more information on this
product or our other porducts and custom services contact:

                Marshall Rowe
                Custom Technology
                640 N. LaSalle Ste 284
                (312) 384-4104

        VISIT our WEB
        site    WWW.CUSTOM-TECH.COM                      

2. evolution and the rest of linux

3. ATI XPERT- X on the SVHS output port

4. Can't logoff Sco Unix Box.

5. S3 fixes for 2.5.50

6. SLS X wants tcp/ip, tcp/ip won't compile, what now?

7. !!DDE->TCP/IP, REAL TIME DATA PUMP, Trans.DDE App.DATA via TCP/IP

8. tcp/ip ppp hangup in sco 3242 tcp/ip 121

9. !!DDE->TCP/IP, REAL TIME DATA PUMP, Trans.DDE App.DATA via TCP/IP