Solved

TCP Internals

Posted on 1998-01-13
5
478 Views
Last Modified: 2013-12-26
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
Comment
Question by:simonff
  • 2
  • 2
5 Comments
 
LVL 5

Expert Comment

by:yonat
ID: 1295913
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
 

Author Comment

by:simonff
ID: 1295914
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
 
LVL 32

Accepted Solution

by:
jhance earned 400 total points
ID: 1295915
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
 

Author Comment

by:simonff
ID: 1295916
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
 
LVL 5

Expert Comment

by:yonat
ID: 1295917
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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
deburging in oracle form 12 87
Whole sheet autoscrub still needed 19 48
Line meaning 9 81
noX challenge 17 91
In this article, I'll describe -- and show pictures of -- some of the significant additions that have been made available to programmers in the MFC Feature Pack for Visual C++ 2008.  These same feature are in the MFC libraries that come with Visual …
Introduction: Ownerdraw of the grid button.  A singleton class implentation and usage. Continuing from the fifth article about sudoku.   Open the project in visual studio. Go to the class view – CGridButton should be visible as a class.  R…
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
Delivering innovative fully-managed cloud services for mission-critical applications requires expertise in multiple areas plus vision and commitment. Meet a few of the people behind the quality services of Concerto.

932 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

8 Experts available now in Live!

Get 1:1 Help Now