Host to Host Flashcards
(100 cards)
Which OSI layers are mainly involved in Host-to-Host communication?
Network (Layer 3), Transport (Layer 4), and Session (Layer 5)
Q2: What is the main function of the Network layer?
Logical addressing (IP), routing, and path determination
Q3: What protocols operate at the Network layer?
IP and ICMP
Q4: What is the main function of the Transport layer?
Ensures reliable (TCP) or unreliable (UDP) delivery of data
Q5: What protocols operate at the Transport layer?
TCP (reliable), UDP (unreliable)
TCP – Transmission Control Protocol
Purpose: TCP is a transport layer protocol used for reliable data transmission between computers on a network.
Key Features:
Ensures reliable and ordered delivery of data.
Connection-oriented: A connection is established before data is transferred.
Uses acknowledgments (ACKs) to confirm receipt of data.
Example: When you load a website (HTTP over TCP), the data must arrive in order and without errors.
UDP – User Datagram Protocol
Purpose: UDP is another transport layer protocol like TCP, but it is connectionless and unreliable.
Key Features:
Faster than TCP, but no guarantee that data will arrive or be in order.
No acknowledgments.
Example: Used in live video streaming, online gaming, or VoIP, where speed is more important than perfect reliability.
Q6: Explain the TCP three-way handshake.
- SYN from client
- SYN-ACK from server
- ACK from client
- SYN from client
SYN = Synchronize
Sent by the client to the server to start a TCP connection.
It’s basically saying: “I want to start communication and synchronize sequence numbers.”
- SYN-ACK from server
SYN-ACK = Synchronize-Acknowledge
Sent by the server to the client after receiving the SYN.
It means: “I acknowledge your request to start the connection (ACK), and I also want to synchronize my sequence numbers with you (SYN).”
- ACK from client
ACK = Acknowledge
Sent by the client back to the server.
It means: “I received your SYN-ACK, and now the connection is established.”
Q7: Is TCP connection-oriented or connectionless?
Connection-oriented
Q8: Is UDP connection-oriented or connectionless?
A8: Connectionless
Q9: Name some common TCP use cases.
A9: Web (HTTP), Email (SMTP)
Q10: Name some common UDP use cases.
Streaming, VoIP, DNS
What is an IP address?
A 32-bit logical address assigned to devices on a network
Q12: What is the purpose of port numbers?
Identify specific applications or services on a host
Q13: What port does HTTP use?
Port 80
Q14: What port does DNS use?
Port 53
Q15: What port does FTP use?
Port 21
Q16: What port does DHCP use?
Ports 67 and 68
Q17: What protocol resolves IP addresses to MAC addresses?
ARP (Address Resolution Protocol)
Q18: What is TTL in an IP packet?
Time to Live, limits the lifespan of a packet
Q19: What tool is used to check connectivity using ICMP?
ping
Q20: What does the tracert (Windows) or traceroute (Linux) command do?
Traces the path packets take to reach a destination
Q21: What is segmentation in networking?
Dividing large messages into smaller segments for transmission
Q22: What does DHCP do?
: Assigns IP addresses dynamically to devices
Q23: What layer manages sessions?
Session Layer (Layer 5)
Q24: What protocol is used to transfer files?
FTP (File Transfer Protocol)