1. A sample TCP pseudo code is shown below. What version of reliable data transf
ID: 3629063 • Letter: 1
Question
1. A sample TCP pseudo code is shown below. What version of reliable data transfer (rdt) is it using? Explain and point out features with the associated code in this particular version.NextSeqNum = InitialSeqNum
SendBase = InitialSeqNum
Loop (forever) {
Switch(event)
evet:data received from application above
Creat TCP segment with sequence number NextSeqNum
If(time currently not running)
Star timer
Pass segment to IP
NextSeqNum = NextSeqNum + length(data)
event: ACK received ,with ACK field value of y
If(y > SendBase){
SendBase =y
If(there are currently not-yet acknowledged segments)
Start timer
}
} /* end of loop forever*/
Explanation / Answer
NextSeqNum = InitialSeqNum SendBase = InitialSeqNum Loop (forever) { Switch(event Pass segment to IP NextSeqNum = NextSeqNum + length(data) event: ACK received ,with ACK field value of y If(y > SendBase){ SendBase =y If(there are currently not-yet acknowledged segments) Start timer } } /* end of loop forever*/
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.