What is the primary purpose of port numbers in computer networking?
Think about how multiple applications can use the network on the same device.
Port numbers help the operating system know which application should receive the incoming data, allowing multiple services to run on one device.
Which range of port numbers is reserved for well-known services like HTTP and FTP?
Well-known ports are the lowest range of port numbers.
Ports 0 to 1023 are reserved for well-known services and protocols, such as HTTP (port 80) and FTP (port 21).
How does multiplexing allow multiple network connections to use a single IP address?
Consider how the network knows which data belongs to which application.
Multiplexing uses port numbers to separate different connections on the same IP address, allowing multiple applications to communicate simultaneously.
Which of the following scenarios would cause a conflict or error in network communication?
Think about what happens if two programs want to listen on the same port.
Port numbers must be unique per device for listening applications; sharing the same port causes conflicts and prevents proper communication.
Why do operating systems use ephemeral (temporary) port numbers for outgoing connections?
Consider what happens when you open many websites at once.
Ephemeral ports let the system create many outgoing connections by temporarily assigning unique port numbers, avoiding conflicts and enabling multiple sessions.