30 Questions
Which transport layer protocol is known for its low overhead and lack of reliability?
UDP
What does UDP lack in comparison to TCP?
Reliability features like retransmission and flow control
How does UDP handle datagrams that arrive out of order?
It doesn't care about the order
Which protocol requires sessions to be established before communication takes place?
TCP
What must be implemented externally if reliability is required when using UDP?
Reliability mechanism
What is a key characteristic of UDP regarding data sending?
Transaction based
Which range of port numbers do well-known ports belong to?
0 to 1023
What is another name for dynamic or private ports (49152 to 65535)?
Ephemeral ports
When initiating a connection, what type of ports are usually assigned to client applications?
Dynamic or private ports
Which network utility can be used to verify active TCP connections on a networked host?
netstat
What information does the netstat command provide about connections?
Destination port number and state of the connection
Which type of programs might connect using dynamic or private ports (49152 to 65535)?
Peer-to-peer file-sharing programs
What is required before data can be exchanged in a TCP communication?
Session establishment
Why is it important for each host to be prepared for communication?
To ensure reliable communication
In TCP, what function does the three-way handshake serve?
Establishes connection presence
What happens after data exchange is completed in a TCP communication?
The connection is terminated.
Can an individual server host two services on the same port number within the same transport layer?
No, it is not allowed.
What does the connection and session mechanism enable in TCP?
Enables TCP's reliability function
What does the source port number represent in a communication?
The number for the originating application on the local host
How are port numbers assigned for server processes?
Using static port numbers
What is a socket in networking terminology?
A unique identifier for a process on a host
Who assigns port numbers according to the text?
Internet Assigned Numbers Authority (IANA)
What is the function of the destination port number in a communication?
Assigned to the originating application on the remote host
How do clients choose port numbers for each conversation?
Clients dynamically select a different port for each conversation
What is the main function of the transport layer?
Tracking individual communications between applications
What is the purpose of segmenting data in the transport layer?
Managing each piece of data individually
Why are source and destination port numbers important in UDP and TCP packets?
To direct data to the correct application on the destination computer
Which transport layer protocol does not pass data to the network until it knows the destination is ready?
TCP
What mechanisms does TCP use to achieve reliability in data transmission?
Dynamic windowing and acknowledgment
How does the reliability of TCP impact network overhead?
Increases segment headers size and network traffic
Study Notes
Transport Layer
- Enables the management of lost data and flow control
UDP: Communicating with Low Overhead
- A simple protocol providing basic transport layer functions
- Has lower overhead than TCP due to lack of connection-oriented and sophisticated retransmission, sequencing, and flow control mechanisms
- Reliability needs to be implemented elsewhere if required
UDP: Datagram Reassembly
- Connectionless, with no session establishment before communication
- Transaction-based, sending data without establishing a session
- Many applications using UDP send small amounts of data fitting in one segment
- UDP does not care about datagram order
UDP Server Processes and Requests
- Different types of port numbers:
- Well-known ports (0-1023)
- Registered ports (1024-49151)
- Dynamic or private ports (49152-65535)
- Dynamic or private ports are usually assigned dynamically to client applications when initiating a connection
Using Both TCP and UDP
- netstat command:
- Verifies active TCP connections on a networked host
- Lists protocol, local address and port number, destination address and port number, and connection state
- Used to examine open connections on a host when performance appears compromised
TCP Connection Establishment and Termination
- A connection is established before data exchange
- Sessions are closed and connection terminated after communication is completed
- Connection and session mechanisms enable TCP's reliability function
TCP Three-Way Handshake
- Establishes the presence of the destination device on the network
- Verifies the destination device has an active service and is accepting requests on the destination port number
- Informs the destination device that the source client intends to establish a communication session on that port number
Identifying Conversations
- Port numbers:
- Source port number: number for a communication associated with the originating application on the local host
- Destination port number: number for a communication associated with the destination application on the remote host
- Socket: combination of the transport layer port number and the network layer IP address assigned to the host
- Example: 192.168.1.20:80
Summary
- Transport layer provides data network needs by:
- Tracking individual communications between applications on source and destination hosts
- Segmenting data and managing each piece
- Reassembling segments into streams of application data
- Identifying different applications
- Performing flow control between end users
- Enabling error recovery
- Initiating a session
- UDP and TCP are common transport layer protocols
- UDP datagrams and TCP segments have headers prefixed to the data that include a source port number and destination port number
- TCP does not pass data to the network until it knows that the destination is ready to receive it
- TCP uses mechanisms of the three-way handshake, timers, acknowledgments, and dynamic windowing to achieve reliable features
Learn about source port numbers, which are associated with the originating application on the local host, and destination port numbers, which are associated with the destination application on the remote host. Discover how these port numbers help in communication and must not conflict with other ports in use.
Make Your Own Quizzes and Flashcards
Convert your notes into interactive study material.
Get started for free