ECM 1413 Transport Layer Flashcards
TCP (Transmission Control Protocol)
- Connection-oriented protocol, RFC 793^1
- Reliable delivery with higher overhead and latency
- Examples - HTTP, FTP, Telnet and SMTP
UDP (User Datagram Protocol)
- Connectionless protocol, RFC 768^2
- Unreliable (best effort delivery), minimal overhead and latency
- DHCP, RIP, TFTP, Online games, Video Streaming and VoIP
TCP and UDP Shared Functions
- Segmentation and Reassembly
- Conversation Multiplexing using port number
- Error detection
Additional TCP Functions
- Connection Establishment (3-way handshake)
- Connection Management: Reliability (ack), Flow control and Error correction
- Connection Termination (4-way handshake)
What does the transport layer do
The transport layer divides the data into pieces and adds a header delivery over the network
UDP header provides for
Source and destination (ports)
TCP header provides for
- Source and destination (ports)
- Sequencing for same-order delivery
- Acknowledgement of received segments
- Flow control and congestion management
Types of networking ports (OSI L4)
- Well-known ports (0 to 1023) - reserved for well-known services
- Registered Ports (1024 to 49151) - assigned for user processes & others
- Dynamic or Private Ports (49152 to 65535) - Dynamically chosen by a client when initiating a connection to a server
Well-known port examples
telnet(TCP/23)
SMTP(TCP/25)
HTTPS(TCP/443)
RIP(UDP/520)
Registered Ports examples
MySQL(TCP/3306)
HTTP Alternate (8080)
Netstat
examines the open connections on a host
Segmentation of PDU allows session multiplexing. What is session multiplexing
multiple application can use the network at the same time
Benefit of data segmentation
facilitates data carriage by the lower network layers
Difference between TCP and UDP on out-of-order packets
(UDP) Out of order datagrams are not re-ordered. Lost datagrams aren’t resent
(TCP) Data is divided into segments. Having taken different routes to the destination, segments arrive out of order. TCP re-orders the segments to the original order
TCP 3-way handshake
a process which is used in a TCP/IP network to make a connection between the server and client. It is a three-step process that requires both the client and server to exchange synchronization and acknowledgment packets before the real data communication process starts.