Transport Layer Flashcards
Define sliding window - 3 big points
Receiver or destination will not wait for all the bytes for its window size to be received before replying. Receiver will send bytes after every two segments it receives. Benefit: allows the sender to continuously transmit segments. (If the buffer space of the receiver decreases, it will reduce its window size to inform the source to reduce the number of bytes it sends)
TCP Header Field: Control bits - describe size of the field, and label the major flags.
6 bits. URG, ACK, PSH, RST, SYN AND FIN
Describe the 3-way handshake
Point: The initializing client requests a client-to-server communication session with the server. 2: Server responds with an ACK, and a request a server-to-client communication session. 3: The initiating client ACK the server-to-client communication session.
Describe ACK (2 important functions)
ACK flag used in connection establishment and session termination
Describe SYN
Synchronize sequence numbers used in connection establishment
Describe FIN
No more data from sender and used in session termination.
Sequence and ACK numbers - how are they different over the course of handshake.
Sequence and ACK numbers. Client sends a SYN to server (SYN is a seq number 102). Server ACK with + 1 of the seq number (102). Server sends its own sequence number (300). Process is repeated for last step.
How many bytes for the UDP Header
8 bytes (64 bits)
UDP Header - list the five fields
Source and Destination Port, Sequence Number, Length and Checksum
What is a socket pair?
Combination of source IP, source port, or the destination IP and destination port is known as a socket. Sockets enable multiple processes, running on a client, to distinguish themselves from each other. Essentially, a client can throw different source port numbers to do multiple sessions, like requesting something from the file server or web server (https). Both are using the same destination IP server. The transport layer keeps track of the port numbers (source), so they can be forwarded to the correct application.
UDP - describe the differences
stateless protocol, connectionless, better delivery protocol.
Highlights of TCP
Stateful protocol, provides reliability, flow control, connection oriented protocol. Tracks segments, re-transmits any un-ack data, sends data at an efficient rate. (Tracks the state of the session)
Fields of a TCP Header
Source, Destination Port, sequence number, ack number, header length, reserved, control bits, window size, checksum and urgent.
TCP Header
20 bytes (160 bytes)