作者AntiPX (简单ㄞˋ)
看板Network
标题Re: [问题] TCP的题目问题
时间Thu Apr 17 18:32:35 2008
※ 引述《vickycute (小酷智)》之铭言:
: 想请教各位高手,有相TCP的问题...
: 这是作业,不过我解不太出来,呜...
: 1. To make the initial sequence number a random number,
: most systems start the counter at 1 during bootstrap and increment the
: counter by 64,000 every half second.
: How long does it take for the counter to wrap around?
sequence number is 32-bit long, so the duration would be:
(2^32 / 64,000) * 0.5 ~= 33,554 sec
: 2. In a connection, the value of cwnd is 3000 and the value of rwnd is 5000.
: The host has sent 2000 bytes which have not been acknowledged.
: How many more bytes can be sent?
the total data allowed to be sent is min(cwnd, rwnd), so
min(3000, 5000) - 2000 = 1000 bytes
more data can be sent.
: 拜托,谢谢^^
--
※ 发信站: 批踢踢实业坊(ptt.cc)
◆ From: 207.46.92.16