Solved

Question for network programmers

Posted on 2004-10-05
3
183 Views
Last Modified: 2010-04-17
First off I'm not a programmer. I'm a network tech. So forgive me if any of the terms I use seem strange.  I'm trying to understand how sliding window protocol operates in relation to the buffers.

Ok, let's say Computer A's TCP send buffer can allocate 8000 bytes. Computer B's receive buffer (window size) is only 6000 bytes.  Computer A's Application layer hands down a PDU of 8000 bytes to Computer A's  TCP.   Computer A's TCP places all 8000 bytes on it's send buffer.

Computer A will "window"  6000 bytes out of it's 8000 bytes it has on it's send buffer due to the window size Computer B advertised. It will then send the "window" of  6000 bytes of data to Computer B in several packets (each full size around 1460 bytes).

 As  Computer B receives the packets on it's receive buffer, it processes them quickly up the application layer and acknowledges Computer A.  This causes Computer B to free up it's receive buffer a bit more so it sends a window update to Computer A saying "win 2000".  Computer A then sends the remaining 2000 bytes.

Is that correct?
Thanks in advance
0
Comment
Question by:dissolved
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 8

Expert Comment

by:gregasm
ID: 12233908
It depends on how Computer B is programmed to read the incoming stream.

If Computer B is programmed well, then it should behave as you envision.

Computer A should send packets to Computer B at either the fastest rate A can send it that B can receive it up to the limit of A, or else A will wait before sending more bytes if B is  backed beyond it's processing capabilities.

0
 

Author Comment

by:dissolved
ID: 12234037

Thanks gregasm.  Much appreciated. You network programmer guys are a sharp bunch no doubt. Hope to join you oneday. Long way to go for me though lol
0
 
LVL 8

Accepted Solution

by:
gregasm earned 500 total points
ID: 12234117
Thanks for your kind words, and good luck! As long as they think it is fun, anyone can do it!
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

Whether you've completed a degree in computer sciences or you're a self-taught programmer, writing your first lines of code in the real world is always a challenge. Here are some of the most common pitfalls for new programmers.
This article will inform Clients about common and important expectations from the freelancers (Experts) who are looking at your Gig.
In this fourth video of the Xpdf series, we discuss and demonstrate the PDFinfo utility, which retrieves the contents of a PDF's Info Dictionary, as well as some other information, including the page count. We show how to isolate the page count in a…

752 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