Week 7 Flashcards
What is the Transport Layer and how is it different from a Network Layer?
Transport layer: process to process
Network layer: host to host
Transport layer relies on the network layer service, and it manages movements from app layer to network, and vice versa.
What services does the TCP provide in a transport layer?
- reliable, in-order
- congestion control
- flow control
- connection setup
What services does the UDP provide in a transport layer?
- error checking
What services are NOT provided by the TCP and UDP?
Throughput and delay and bandwidth guarantees
What is demultiplexing
[RECEIVER SIDE] the job of delivering the data in a receiving transport-layer segment to the correct socket (going into the application layer) by analyzing the header info
What is multiplexing
[SENDER SIDE] collecting data from sockets (from the app layer) and encapsulating it with header information to be analyzed through demultiplexing
What are the restricted port numbers
0 to 1023
How are UDP sockets identified for multiplexing/demuxing
2 tuples: destination address & destination port number
How are TCP sockets identified for multiplexing/demuxing
4 tuples: destination address, destination port number, source address, source port number
Why does UDP exist for Transport layer? (Pros)
- saves time by not setting up connection
- simple to implement
- small header size
- no congestion control. can function even congested
What are some uses for UDP?
multimedia apps (loss tolerant)
DNS
HTTP/3
What type of connection is checksum used for?
UDP
How is checksum calculated?
- add bits
- reverse the bits