Operating Systems Concepts & Design
Summary by ChatGPT
Here’s a side-by-side comparison of sockets vs ports vs URLs, written in a way that fits networking fundamentals:
| Concept | What It Is | Example | Purpose / When It’s Used |
|---|---|---|---|
| Port | A number on a device used to identify a specific network service or application. | 80 (HTTP), 22 (SSH), 443 (HTTPS) |
Allows multiple network services to run on one IP address. Helps the OS route incoming traffic to the correct program. |
| Socket | A combination of IP address + port (and optionally protocol like TCP/UDP). A socket represents one endpoint in a network connection. | 192.168.1.10:5000 |
Identifies a specific communication channel. The server listens on a socket; the client connects to it. |
| URL | A human-readable resource locator used on the web. Includes protocol, domain, path, port (optional), etc. | https://example.com:8080/index.html |
Lets users find resources on the web. Maps domain names to IPs and optionally specifies ports and paths. |
Consists of:
Example:
192.168.0.12:500010.0.0.5:50544Includes:
http, https, ftp, etc.https://example.com:8443/