Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 841a7b0

Browse files
Update CS144Lab
1 parent faf98fe commit 841a7b0

3 files changed

Lines changed: 16 additions & 0 deletions

File tree

‎.DS_Store‎

0 Bytes
Binary file not shown.

‎Notes/Computer-Networking-Lab-CS144-Stanford.md‎

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -184,6 +184,14 @@ In the test names
184184
* At the end of a test name, a lowercase "l" means there is packet loss on the receiving (incoming segment) direction
185185
* uppercase "L" means there is packet loss on the sending (outgoing segment) direction.
186186
187+
**非常重要的细节**
188+
189+
**In `TCPConnection::segment_received`, what are the three conditions in which the TCPConnection needs to make sure that the segment receives at least one ACK segment in reply, and may need to force the TCPSender to spit out an empty segment to make this happen?**
190+
191+
1. If the incoming segment occupies any sequence numbers (`length_in_sequence_space() > 0`)
192+
2. If the `TCPReceiver` thinks the segment is unacceptable (`TCPReceiver::segment_received()` returns `false`)
193+
3. If the `TCPSender` thinks the ackno is invalid (`TCPSender::ack_received()` returns `false`)
194+
187195
188196
189197
#### 工程细节

‎Notes/Output/Computer-Networking-Lab-CS144-Stanford.md‎

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -184,6 +184,14 @@ In the test names
184184
* At the end of a test name, a lowercase "l" means there is packet loss on the receiving (incoming segment) direction
185185
* uppercase "L" means there is packet loss on the sending (outgoing segment) direction.
186186
187+
**非常重要的细节**
188+
189+
**In `TCPConnection::segment_received`, what are the three conditions in which the TCPConnection needs to make sure that the segment receives at least one ACK segment in reply, and may need to force the TCPSender to spit out an empty segment to make this happen?**
190+
191+
1. If the incoming segment occupies any sequence numbers (`length_in_sequence_space() > 0`)
192+
2. If the `TCPReceiver` thinks the segment is unacceptable (`TCPReceiver::segment_received()` returns `false`)
193+
3. If the `TCPSender` thinks the ackno is invalid (`TCPSender::ack_received()` returns `false`)
194+
187195
188196
189197
#### 工程细节

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /