Chapter 3 Flashcards
What layers are above and under the transport-layer?
Application-Layer
Network-Layer
What does the transport-layer protocol provides?
A logical communication between application processes running on different hosts.
What does a logical communication mean in the context of the transport layer?
It’s as if the two hosts running processes are directly connection, but in reality they can potentially be on opposite sides of the planet.
Where are the network protocols implemented?
In the system, not in the network routers.
What are transport-layer segments?
The process of converting application-layer messages into transport-layer packets (i.e. segments). From the sending side. On the receiving end, the network layer extracts the transport-layer segment from the datagram and sends up segment to the transport-layer.
What is a datagram.
Is a network-layer segment wrapper for the transport-layer segment.
Does TCP and UDP offer the same transport-layer services?
No.
Conceptually, what is the main difference between the transport and networking layers.
The transport-layer protocol provides logical communication between processes running on different hosts
-whereas-
The network layer provides logical communication between hosts
Generally, what are the two distinct TCP/IP network transport-layer protocols?
UDP (User Datagram Protocol)
TCP (Transmission Control Protocol)
What does UDP provide?
Unreliable and connectionless service to invoking the application
What doe TCP provide?
Reliable and connection-oriented service to the invoking application.
When does a developer decides between UDP and TCP?
When creating sockets.
Why is Internet Protocol (IP) referred to as a ‘best-effort delivery service’?
Because that IP makes its “best effort” to deliver segments between communicating hosts, but it makes no guarantees.
Why is IP an unreliable service?
It doesn’t guarantee: segment delivery, orderly delivery, and integrity.
What is the name for extending host-to-host delivery to process-to-process delivery?
Transport-layer multiplexing and demultiplexing.
What are the two services UPD provides?
Process-to-process delivery and error checking.
How does TCP changes the IP paradigm?
It converts IP’s unreliable service between end systems into a reliable data transport service between processes.
What does TCP’s congestion control do?
It prevents any one TCP connection to swamp the links and routers between communicating hosts. Rather, it shares the available bandwidth. (A service to the Internet)
What is demultiplexing?
In the transport-layer, getting the right data to the right socket on the receiving end.
What is multiplexing?
In the transport-layer, creating a single segments from data received from multiple sockets.
How many ports are available?
0 to 65535
What are well-known port numbers?
Port numbers from 0 to 1023 and are restricted. (e.g. 80 -> HTTP)
What is the four-tuple of a TCP socket?
Source IP address
Source port number
Destination IP address
Destination port number
What does the transport-layer must provide at the very least?
Multiplexing/Demultiplexing
Why is UDP connectionless?
There’s no handshaking process.
What is the different in packet overhead for UDP and TCP?
UDP 8 bytes overhead
TCP 20 bytes overhead
Why is UDP controversial for multimedia applications?
UPD has no congestion control. It congests the network and forces TCP connection to further reduce their bandwidth usage.
What are the four header fields for UDP?
Source port
Destination port
Length (length bytes = header + data)
Checksum
What is a checksum?
Provides error detection.
What is the end-end principle?
Certain functionality must be implemented on a end-end basis (i.e. ignoring functionality in between)
What are ARQ (Automatic Repeat reQuest) protocols
Protocols to let the receiver to let the sender know what has been received correctly.
What are the 5 ARQ (Automatic Repeat reQuest) protocols capabilities?
Positive acknowledgements (ACK) Negative acknowledgements (NAK) Error detection Receiver feedback Retransmission
What is a stop-wait-protocol?
A protocol where the sender must wait until the receiver has correctly received the current packet.
In finite state machines (FSM), what does the A (looking symbol) for?
Explicitly denote the lack of an action or event.
What represents a more realistic approach from a ‘perfect world’ rdt?
Bits and packets may be corrupted.
When does packet and bit corruption often occur?
Physical components of the network as packets propagate or is buffered.
Why are control messages important?
To let receiver alert the sender of a correct transmission
Setting reliable data transfer uses retransmission protocols. What the protocols called?
ARQ (Automatic Repeat reQuest)
What protocol capabilities do you need to handle bit errors?
- Error detection
- Receiver feedback
- Retransmission