Thread: Question for network programmers

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Registered User
    Join Date
    Aug 2004
    Posts
    14

    Question for network programmers

    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? What did misunderstand if not?
    Thanks in advance!
    Last edited by rtunez33; 10-06-2004 at 09:16 AM.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. another do while question
    By kbpsu in forum C++ Programming
    Replies: 3
    Last Post: 03-23-2009, 12:14 PM
  2. Are programmers engineers?
    By joshdick in forum A Brief History of Cprogramming.com
    Replies: 13
    Last Post: 04-01-2003, 01:55 AM
  3. opengl DC question
    By SAMSAM in forum Game Programming
    Replies: 6
    Last Post: 02-26-2003, 09:22 PM
  4. Programming Puns
    By kermi3 in forum A Brief History of Cprogramming.com
    Replies: 44
    Last Post: 03-23-2002, 04:38 PM
  5. One question to C++ game programmers
    By incognito in forum C++ Programming
    Replies: 6
    Last Post: 12-31-2001, 11:47 AM