Package | Description |
---|---|
sime.tcp |
Modifier and Type | Field and Description |
---|---|
protected Segment |
Receiver.cumulativeACK
The receiver may hold a cumulative acknowledgment
for in-order segments, to acknowledge several consecutive
segments at once.
There are two standard methods that can be used by TCP receivers to generate acknowledgments. |
Modifier and Type | Field and Description |
---|---|
protected java.util.ArrayList<Segment> |
Receiver.rcvBuffer
The receiver buffer to buffer the segments that arrive
out-of-sequence.
|
Modifier and Type | Method and Description |
---|---|
(package private) Segment |
Sender.getOldestUnacknowledgedSegment()
Helper method to extract the oldest unacknowledged segment
from the input bytestream.
|
protected Segment |
Receiver.handleOutOfSequenceSegment(Segment segment_)
Helper method to handle out-of-sequence segments.
|
Modifier and Type | Method and Description |
---|---|
int |
Segment.compareTo(Segment anotherSegmentToCompareTo_)
This method is part of the java.lang.Comparable
|
void |
Sender.handle(Segment ack_)
Processes ACKs received from the receiver.
|
void |
Receiver.handle(Segment segment_)
Receives the segments from the sender, passes the
ones that arrived error-free and in-order to the application.
|
SenderState |
SenderStateFastRecovery.handleDupACK(Segment dupAck_)
This method handles a duplicate acknowledgment
during fast recovery.
|
SenderState |
SenderState.handleDupACK(Segment dupAck_)
Counts a duplicate ACK and checks if the count equals 3.
|
SenderState |
SenderState.handleNewACK(Segment ack_)
Processes a single new (i.e., not duplicate) acknowledgment.
|
protected Segment |
Receiver.handleOutOfSequenceSegment(Segment segment_)
Helper method to handle out-of-sequence segments.
|
SenderState |
SenderState.handleRTOtimeout(Segment oldestUnackedSeg_)
Processes the TCP sender reaction to a retransmission timer (RTO) timeout.
Method called on the expired retransmission timeout (RTO) timer. |