Internet Assigned Numbers Authority (IANA).
For instance, HTTP, which is the foundation of data communication for the World Wide Web, uses port 80, although browsers typically do not display this port number to simplify the user experience. Similarly, HTTPS uses port 443 for secure communications over networks, and this port is also generally not displayed by browsers. FTP, is another protocol that facilitates file transfers between clients and servers, using ports 20 and 21.
Registered Ports which range from 1024 to 49151, are not strictly regulated as well-known ports but are still registered and assigned to specific services by the Internet Assigned Numbers Authority (IANA).
These ports are commonly used for external services that users might install on a device. For instance many database services, such as Microsoft SQL Server use port 1433. Software companies frequently register a port for their applications to ensure that their software consistently uses the same port on any system.
The registration helps in manging network traffic and preventing port conflicts across different applications.
Dynamic or private ports, also known as ephemeral ports, range from 49152 to 65535 and are typically used by client applications to send and receive data from servers, such as when a web browser, connects to a server on the internet.
These ports are dynamic because they are not fixed; rather, they can be randomly selected by the client's operating system as needed for each session. Generally used for temporary communication sessions, these ports are closed once the interaction ends. Additionally, dynamic ports can be assigned to custom server applications, often those handling short-term connections.
The following example represents the steps taken for a web request to reach the correct destination and return the information we seek.
Computer resolves the domain name to an IP Address (e.g. 93.184.216.34 for example.com)
Step by Step:
Step |
---|
Your browser generates an HTTP request. |
The request is encapsulated with TCP, specifying the destination port 80 or 443 . |
The packet includes the destination IP address 93.184.216.34 . |
On the local network, our computer uses ARP to find the MAC address of the default gateway (router). |
Step |
---|
The data frame is sent to the router's MAC address. |
The router forwards the packet toward the destination IP address. |
Intermediate routers continue forwarding the packet based on the IP address. |
Step |
---|
The server receives the packet and directs it to the application listening on port 80. |
The server processes the HTTP request and sends back a response following the same path in reverse. |
Step |
---|
The server sends the response back to the client’s temporary port, which was randomly selected by the client’s operating system at the start of the session. |
The response follows the reverse path back through the network, being directed from router to router based on the source IP address and port information until it reaches the client. |
Q: What protocol maps IP addresses to MAC addresses?
A: ARP
Q: Which IP version uses 128-bit addressing?
A: IPv6
Q: At which layer of the OSI model do ports operate? (Format: two words)
A: Transport Layer
Q: What is the designated port number for HTTP?
A: 80
Q: What is the first step in the process of a web browsing session? (Format: two words)
A: DNS Lookup