| TCP/IP Layer | OSI Equivalent | Key Protocols |
|---|---|---|
| Process / Application | Application, Presentation, Session (7, 6, 5) | HTTP, FTP, DNS, SMTP, SSH |
| Host-to-Host (Transport) | Transport (4) | TCP, UDP |
| Internet | Network (3) | IP, ICMP, ARP |
| Network Access | Data Link, Physical (2, 1) | Ethernet, Wi-Fi, MAC |
| Feature | TCP | UDP |
|---|---|---|
| Connection | Connection-oriented (handshake) | Connectionless |
| Reliability | Guaranteed delivery + ACK | Best effort, no ACK |
| Ordering | Sequenced, in-order | No ordering |
| Speed | Slower (more overhead) | Faster (minimal overhead) |
| Examples | HTTP, HTTPS, FTP, SSH, SMTP | DNS, DHCP, TFTP, VoIP, streaming |
| Range | Name | Description |
|---|---|---|
| 0 – 1,023 | Well-Known Ports | Reserved for common system services (HTTP, FTP, SSH, DNS) |
| 1,024 – 49,151 | Registered Ports | Registered by software vendors for specific applications |
| 49,152 – 65,535 | Dynamic / Private / Ephemeral | Temporary source ports assigned by the OS for outbound connections |
| Port | Protocol | TCP/UDP | Description |
|---|---|---|---|
| 20 | FTP Data | TCP | File Transfer Protocol — active mode data channel |
| 21 | FTP Control | TCP | File Transfer Protocol — command and control channel |
| 22 | SSH | TCP | Secure Shell — encrypted remote access and tunneling |
| 23 | Telnet | TCP | Remote access — unencrypted; replaced by SSH; never use |
| 25 | SMTP | TCP | Simple Mail Transfer Protocol — sending outbound email |
| Port | Protocol | TCP/UDP | Description |
|---|---|---|---|
| 53 | DNS | TCP/UDP | Domain Name System — name resolution; UDP for queries, TCP for zone transfers |
| 67 | DHCP Server | UDP | DHCP server receives client discover/request broadcasts |
| 68 | DHCP Client | UDP | DHCP client receives server offers and acknowledgments |
| 69 | TFTP | UDP | Trivial FTP — simple file transfers; used for PXE boot, firmware updates |
| 80 | HTTP | TCP | Hypertext Transfer Protocol — unencrypted web traffic |
| 110 | POP3 | TCP | Post Office Protocol v3 — downloads email, deletes from server |
| 143 | IMAP | TCP | Internet Mail Access Protocol — syncs email, leaves on server |
| 389 | LDAP | TCP | Lightweight Directory Access Protocol — Active Directory queries |
| Port | Protocol | TCP/UDP | Description |
|---|---|---|---|
| 137–139 | NetBIOS / NetBT | TCP | Windows legacy file and printer sharing |
| 161 | SNMP | UDP | Simple Network Management Protocol — device monitoring (queries) |
| 162 | SNMP Trap | UDP | SNMP trap messages sent to management station |
| 443 | HTTPS | TCP | Secure web traffic encrypted via TLS — the modern web standard |
| 445 | SMB / CIFS | TCP | Windows file sharing — modern replacement for NetBIOS |
| 3389 | RDP | TCP | Remote Desktop Protocol — Windows remote desktop sessions |
| Bit Position | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 |
|---|---|---|---|---|---|---|---|---|
| Decimal Value | 128 | 64 | 32 | 16 | 8 | 4 | 2 | 1 |
| Class | First Octet | Default Subnet | Host Count | Purpose |
|---|---|---|---|---|
| A | 1 – 127 | 255.0.0.0 (/8) | 16.7 million | Very large networks |
| B | 128 – 191 | 255.255.0.0 (/16) | 65,534 | Medium networks |
| C | 192 – 223 | 255.255.255.0 (/24) | 254 | Small networks |
| D | 224 – 239 | N/A | N/A | Multicast groups |
| E | 240 – 255 | N/A | N/A | Experimental / reserved |
| Class | Private Range | Subnet Mask | Available Hosts |
|---|---|---|---|
| A | 10.0.0.0 – 10.255.255.255 | 255.0.0.0 (/8) | 16.7 million |
| B | 172.16.0.0 – 172.31.255.255 | 255.255.0.0 (/16) | 1 million |
| C | 192.168.0.0 – 192.168.255.255 | 255.255.255.0 (/24) | 65,536 subnets × 254 |
| CIDR | Subnet Mask | Hosts | Class Equiv. |
|---|---|---|---|
| /8 | 255.0.0.0 | 16,777,214 | Class A |
| /16 | 255.255.0.0 | 65,534 | Class B |
| /24 | 255.255.255.0 | 254 | Class C |
| /25 | 255.255.255.128 | 126 | — |
| /26 | 255.255.255.192 | 62 | — |
| /27 | 255.255.255.224 | 30 | — |
| /28 | 255.255.255.240 | 14 | — |
| /30 | 255.255.255.252 | 2 | Point-to-point |
| Record Type | Purpose | Example |
|---|---|---|
| A | Maps hostname to IPv4 address | www.example.com → 93.184.216.34 |
| AAAA | Maps hostname to IPv6 address ("quad A") | www.example.com → 2606:2800::/32 |
| MX | Mail exchanger — email server for domain | Mail goes to mail.example.com |
| CNAME | Canonical name — alias pointing to another hostname | ftp.example.com → www.example.com |
| TXT | Text record — SPF records, domain verification | v=spf1 include:... |
| NS | Name server records for the zone | ns1.example.com |
| SOA | Start of Authority — primary DNS info for zone | Serial number, refresh, retry times |
| PTR | Reverse DNS — IP address to hostname | 93.184.216.34 → www.example.com |
| Type | Prefix | Description | IPv4 Equivalent |
|---|---|---|---|
| Global Unicast | 2000::/3 | Public routable addresses | Public IPv4 address |
| Link-Local | FE80::/10 | Auto-configured, local segment only | APIPA (169.254.x.x) |
| Unique Local | FC00::/7 | Private, not routed on internet | RFC 1918 (10.x, 172.16.x, 192.168.x) |
| Multicast | FF00::/8 | One-to-many communication | 224.0.0.0/4 (Class D) |
| Loopback | ::1 | Localhost (only one address) | 127.0.0.1 |
| Unspecified | :: | Source when no address assigned | 0.0.0.0 |
| Setting | Purpose | Typical Value |
|---|---|---|
| Default Gateway | IP address of the router — used for all traffic outside the local subnet | 192.168.1.1 |
| DNS Server | Resolves hostnames to IP addresses | 8.8.8.8 (Google) or ISP DNS |
| Alternate Config | Windows fallback settings if DHCP fails (better than APIPA) | Static IP for fallback subnet |