Transport layer Flashcards
What’s the biggest difference between network layer and transport layer? (3rd and 4th layers in OSI model)
Transport layer provides point to point connectivity while the network layer is only responsible for forwarding the data from one device to the next
Name transport layer protocols.
TCP (Transmission Control Protocol) and UDP (User Datagram Protocol)
What are the steps in a TCP three-way handshake?
Device A wants to establish a connection. It sends a SYN (Synchronize sequence number) to device B, which replies with SYN+ACK (Acknowledgment). then Device A sends ACK to B.
If data is in frames on data link layer, packets on network layer, what are they called on transport layer?
segments
What is a combination of IP address+port number sometimes called?
a socket
What’s the difference between system ports and user ports?
starting a service in system ports (0-1023) require admin priviledges, while in user ports (1024-49151) it doesn’t
What are ports for HTTP, HTTPS and SSH
80, 443, 22 respectively
Name the important parts of a TCP header:
source port, destination port, sequence number, acknowledgement number, window size, checksum
What is UDP used for?
Applications that can withstand some packet loss but require low latency, such as video and sound streaming.
Why is TCP used over UDP in many cases?
TCP is reliable data transfer (but bit slower)
Is DNS TCP or UDP?
UDP
How can a web server identify different established sessions?
By IP+port number (There can be many sessions from same IP)