W4L2 - TCP P2 Flashcards
ACK Flag
1 bit
value in acknowledgement field is valid
RST Flag
1 bit
reset connection
SYN Flag
1 bit
Synchronize sequence numbers used to establish new conenction
FIN Flag
1 bit
no more data from sender to transmiter
Three Packet Handshake
Client send a SYN package
On receiving, server sends a SYN-ACK package
Client sends back ACK
SYN flood
Send many SYN packets with random source ports and spoofed addresses.
The receiver must search a table of existing connections then allocate record when it isn’t found, using lots of CPU
Closing a connection
Each side sends FIN to terminate its end of connection
Upon receiving FIN, each side sends ACK
RTO
Retransmission timeout
Explain how packet loss is handled
RTT - Round Trip Time. When it runs out and if an ACK is not received, then the server will resend. If the Client did get it, then it ACK and the process continues anyway. Vice versa.
Duplicate ACK also implies packet loss. After sender receives 3 duplicate ACK, it ignore RTT expiration and send a packet for each duplicate ACK
1 bit
value in acknowledgement field is valid
ACK Flag
1 bit
reset connection
RST Flag
1 bit
Synchronize sequence numbers used to establish new connection
SYN Flag
1 bit
no more data from sender to transmitter
FIN Flag