What is the core mechanism of Packet Switching?
Messages are split into packets that travel along independent network paths, with routers using the destination IP address to determine the next link.
What is the function of the Network (IP) Layer in the TCP/IP stack?
It moves IP packets (datagrams) between hosts and routers across the internet, adding or removing source and destination IP addresses.
What is the primary role of the Transport Layer (TCP)?
It establishes a reliable, two-way channel (pipe) between applications on two hosts, guaranteeing message delivery and correct reassembly order.
What is a TCP/IP Socket?
It is one endpoint of a two-way communication link between two network programs, uniquely identified by a combination of an IP address and a port number.
What is the TCP 3-way Handshake used for?
It is a sequence of messages (SYN, ACK) used by the TCP protocol to reliably establish a connection between the client and server.
What are Well-Known Ports (System Ports)?
Port numbers in the range 0-1023 assigned permanently by IANA to standard services (e.g., HTTP uses 80, SMTP uses 25).
What are Client Ports (Dynamic/Ephemeral Ports)?
Temporary port numbers (49152-65535) allocated by the TCP layer to identify the client application process during a connection.
What is the role of the Application Layer?
It provides the interface for running programs (processes) to exchange messages using specific application-layer protocols (e.g., HTTP, FTP).
Which protocol is used for sending email?
SMTP (Simple Mail Transfer Protocol), which transfers the message text from the client to a mail server listening on port 25.
Which protocol is used for retrieving email?
POP3 (Post Office Protocol version 3), which uses port 110 to retrieve stored mail from the destination mail server.
How do clients securely request web pages?
Using HTTPS (Hypertext Transfer Protocol Secure), which uses the SSL/TLS layer to encrypt requests and responses, typically communicating via port 443.
What protocol enables secure remote administration?
SSH (Secure Shell) provides an encrypted channel for remote command execution and login over an unsecured network, typically using port 22.
What is FTP (File Transfer Protocol) primarily used for?
It is an application layer protocol used for copying files between a client host and a server host, typically using port 21 for commands and port 20 for data.
What is the main function of the Network (IP) Layer?
It moves IP-layer packets (datagrams) between hosts and routers, using IP addresses to determine routing across the internet, providing best-effort delivery.
What is the function of the Link Layer?
It handles the physical interface details (cable or wireless), adding source and destination hardware addresses (MAC addresses) to packets before transferring bits onto the physical medium.
How is a conceptual IPv4 address divided?
It is split into a prefix (Network ID) and a suffix (Host ID).
What are the two current IP address standards and why was one introduced?
IPv4 (32-bit) and IPv6 (128-bit); IPv6 was introduced to solve the problem of eventually running out of available IPv4 addresses.
What is the purpose of the Subnet Mask?
The subnet mask defines the number of bits in the prefix (Network ID) of an IP address, enabling a computer or router to determine the address of its local subnet via a bitwise AND operation.
What is the difference between a Public and Private IP address?
Public IP addresses are globally unique and routable on the Internet; Private IP addresses are reserved for internal LANs and are non-routable across the public Internet.
What is the role of a MAC Address?
It is the physical, globally unique 48-bit hardware address of the network adapter, used by the Link Layer for addressing within a local hop.
Do MAC addresses change as a packet crosses the Internet?
Yes, the hardware source and destination addresses change for each hop between directly connected hosts or routers.
What is the primary purpose of the DHCP system?
It automates host setup by dynamically assigning temporary or permanent IP addresses and delivering essential host configuration parameters (like subnet mask and gateway address).
Why do networks often use Private IP addresses and NAT?
Due to the scarcity of IPv4 addresses, NAT (Network Address Translation) allows a local network using non-routable private addresses to connect to the Internet using only a single routable public IP address.
What is the purpose of Network Address Translation (NAT)?
NAT solves the shortage of IPv4 addresses by allowing devices with non-routable private IP addresses to access the public Internet via a single public IP address assigned to the router.