Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 540
  • Last Modified:

TCP Internals

Yes, it's really 400 points. And it's a tough one. :)

I need to know the general design of TCP internals. That is, what in general happens on the TCP level between calls to open and close a socket. How it sends IP datagrams. How it works with SYN / ACK packets etc.

In particular, I am interested in what else TCP is doing other than calling IP API. Allocating memory, obviously. Does it use timers? Other system calls? Interrupts?

There are no books available for me on this topic. So I look for a few pages of explanations. Thanks.
0
simonff
Asked:
simonff
  • 2
  • 2
1 Solution
 
yonatCommented:
First of all, get "Interneting with TCP/IP" by Stevens. All three volumes. TCP is in volume I, but all volumes are highly recommended.

As for what the TCP layer does:
1. Collects the "payload" parts of IP packets into a continuous buffer.
2. In order to do 1 above, re-orders any out-of-order IP packets.
3. In order to do 1 above, ensure that no IP packets are missing (usualy using a "moving window", and yes - timers).

For more info on implementing TCP stacks, see another book by Stevens, I think it's called "Unix Networking" or something like this.


0
 
simonffAuthor Commented:
Thanks, Yonat. Unfortunately, as I said, I cannot get a hold of any books in time. Ordering them takes about a month here in Moscow, Russia.
0
 
jhanceCommented:
Have you explored the resources at www.linux.org.  There is a lot of information about how the linux networking stuff works and you can also download complete source code to working tcp/ip protocol drivers.
0
 
simonffAuthor Commented:
Thanks, but this information is all high-level, either just describing TCP and IP without delving into the implementation, or telling how to program with sockets.
0
 
yonatCommented:
Ah you want to program with sockets - go to www.sockets.com (It is MS Windows specific). They have lots of docus and sample programs.

BTW, the second Stevens book I mentioned is called "Unix Network Programming", and it is very recommended. I'm sure you can find these books in any university library.
0

Featured Post

Get your problem seen by more experts

Be seen. Boost your question’s priority for more expert views and faster solutions

  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now