The Transport Layer Flashcards
What is Transport Layer?
The transport layer is responsible for delivering data between devices in a network. It makes sure that data is sent and received correctly and in the right order. It also controls data flow and handles errors.
What does Transport layer do?
- It manages error detection, flow control, and retransmissions to ensure reliable communication.
-The transport layer assigns port numbers to help data reach the correct application on a device.
- It decides whether to use connection-oriented (TCP) or connectionless (UDP) communication.
Give me an example of a Transport Layer
- In video calls, the transport layer ensures voice and video sync correctly, avoiding major delays.
What is Multiplexing & Demultiplexing
- Multiplexing is when data from multiple applications is combined and sent over a network.
- Demultiplexing is when data is separated at the destination so it reaches the correct application.
What does Multiplexing & Demultiplexing do?
- Multiplexing allows a single network connection to carry data from multiple applications.
Demultiplexing ensures the received data is delivered to the correct app (e.g., YouTube videos to YouTube, not your email).
Can you give me an example of Multiplexing & Demultiplexing?
- When you watch YouTube and download a file at the same time, multiplexing combines their data.
- Your laptop receives all the data, and demultiplexing separates the YouTube video from the file download.
- When sending a Zoom video call, your voice and video are multiplexed into one stream before sending.
- On the receiver’s side, demultiplexing ensures video data is sent to the video player and audio to the speakers.
What is IP Datagrams?
- An IP datagram is a unit of data that travels across a network using the Internet Protocol (IP).
- It contains the source and destination IP addresses, helping route data from one device to another.
What does IP datagrams do?
- It carries data across the internet, allowing devices to communicate.
- It uses IP addresses to find the best path for data delivery.
- The network layer breaks large datagrams into smaller fragments if needed.
- Since IP itself is unreliable, TCP adds reliability by handling lost or damaged datagrams.
Can you give me an example of IP Datagrams?
- When you send an email, your message is broken into IP datagrams and sent to the recipient’s email server.
- When you load a website, IP datagrams carry the data from the web server to your browser.
- In online gaming, datagrams are used to update player positions in real time.
What is TCP and UDP?
- TCP and UDP are protocols used to send data over the network.
-Transmission Control Protocol is reliable, ordered, and ensures error-free delivery, while User Datagram Protocol is fast but unreliable.
- TCP uses ACKs and retransmissions, while UDP just sends data without checking for errors.
- They work at the transport layer and are used for different types of applications.
What does TCP and UDP do?
- TCP ensures data arrives in order and without errors (used in web browsing, file downloads, and messaging).
- UDP sends data quickly without checking for errors (used in online gaming, live streaming, and voice calls).
Give me examples of TCP and UDP
- TCP: When downloading a file, TCP ensures all parts arrive correctly and in order.
- UDP: When playing an online game, UDP sends quick updates to avoid lag, even if some data is lost.
What is SNMP?
Simple Network Management Protocol
SNMP helps monitor and manage network devices like routers and switches.
How It Works:
Manager 🖥️ – Collects data from devices.
Agent 📡 – Sends device status updates.
MIB 📊 – Stores device info.
What It Does:
Checks if devices work ✅
Finds problems 🚨
Changes settings if needed 🔄
What does SNMP do?
- It helps detect and fix network issues by collecting data from devices.
- Sends alerts if a device fails or has high traffic.
Give me an example of SNMP?
- A company uses SNMP to check if its servers are running smoothly.
- An SNMP system alerts the admin if a router goes offline.
What is a checksum?
- A checksum is a small numerical value used to check if data was transmitted correctly.
- It is created by adding up the bits of a data packet and storing the result.
- The receiver recalculates the checksum and compares it to the sender’s value.
- If the values do not match, the data is corrupted and must be resent.
What does checksum do?
- It detects errors in data transmission caused by interference or packet loss.
- It does not correct errors, only detects them.
- Used in TCP, UDP, and IP to ensure data integrity.
Give me a checksum example
- When downloading a file, the checksum confirms the file was not altered or corrupted.
- When sending an email, the checksum ensures the email arrives as it was sent.
What is Reliable and Unreliable Data Transfer
- Reliable data transfer ensures data arrives correctly and in order.
- Unreliable data transfer means data might be lost, arrive late, or be out of order.
TCP provides reliable transfer, while UDP is unreliable.
Reliability depends on error checking, retransmissions, and acknowledgments (ACKs).
What does Reliable and Unreliable Data Transfer do?
-Reliable transfer ensures no data is lost, duplicated, or received in the wrong order.
- Unreliable transfer is faster but can result in missing or corrupted data.
- Reliable protocols (TCP) are used for emails, file transfers, and web browsing.
Can you give me examples of Reliable and Unreliable Data Transfer
Reliable: Sending an email ensures the full message arrives in order.
Unreliable: Watching a live football match may have momentary glitches but continues playing.
What is ACK (Acknowledgment)
- An ACK (acknowledgment) is a message sent back to the sender to confirm data was received.
- If the sender does not receive an ACK, it resends the data.
- Used in TCP for reliable communication.
What does ACK do?
- Confirms successful data transmission.
- Prevents duplicate packets from being processed.
- Helps maintain order in data transfer.
Give me an example of ACK?
- When you send a WhatsApp message, the double checkmarks indicate ACKs.
-When downloading a file, the server sends ACKs to confirm receipt of each packet.