OSI Model, TCP/IP, Protocols, and Network Devices
| OSI Model | TCP/IP Model | Protocols |
|---|---|---|
| Application, Presentation, Session | Application | HTTP, DNS, SMTP |
| Transport | Transport | TCP, UDP |
| Network | Internet | IP, ICMP |
| Data Link, Physical | Network Access | Ethernet, Wi-Fi |
| Class | Range | Default Mask | Purpose |
|---|---|---|---|
| A | 1.0.0.0 - 126.255.255.255 | /8 (255.0.0.0) | Large networks |
| B | 128.0.0.0 - 191.255.255.255 | /16 (255.255.0.0) | Medium networks |
| C | 192.0.0.0 - 223.255.255.255 | /24 (255.255.255.0) | Small networks |
| D | 224.0.0.0 - 239.255.255.255 | N/A | Multicast |
| E | 240.0.0.0 - 255.255.255.255 | N/A | Reserved |
10.0.0.0 - 10.255.255.255 (10.0.0.0/8) -- 16 million addresses
172.16.0.0 - 172.31.255.255 (172.16.0.0/12) -- 1 million addresses
192.168.0.0 - 192.168.255.255 (192.168.0.0/16) -- 65,000 addresses
| CIDR | Subnet Mask | Hosts | Use Case |
|---|---|---|---|
| /30 | 255.255.255.252 | 2 | Point-to-point links |
| /28 | 255.255.255.240 | 14 | Small departments |
| /24 | 255.255.255.0 | 254 | Standard LAN |
| /16 | 255.255.0.0 | 65,534 | Large campus |
| Feature | TCP | UDP |
|---|---|---|
| Connection | Connection-oriented (3-way handshake) | Connectionless |
| Reliability | Guaranteed delivery, retransmission | Best effort, no guarantee |
| Ordering | In-order delivery | No ordering |
| Speed | Slower (overhead) | Faster (minimal overhead) |
| Flow Control | Yes (windowing) | No |
| Use Cases | HTTP, FTP, SSH, Email | DNS, DHCP, VoIP, Streaming |
| Port | Protocol | Service |
|---|---|---|
| 20, 21 | TCP | FTP (data, control) |
| 22 | TCP | SSH |
| 23 | TCP | Telnet |
| 25 | TCP | SMTP |
| 53 | TCP/UDP | DNS |
| 67, 68 | UDP | DHCP |
| 80 | TCP | HTTP |
| 443 | TCP | HTTPS |
Broadcasts all traffic to all ports. Creates one large collision domain. Obsolete in modern networks.
Uses MAC addresses to forward frames. Creates separate collision domains per port. Maintains MAC address table (CAM).
Uses IP addresses to route packets between networks. Creates separate broadcast domains. Makes routing decisions using routing tables.
Combines switching and routing. Can perform inter-VLAN routing. Wire-speed Layer 3 forwarding.
Filters traffic based on rules. Stateful inspection tracks connection state. Next-gen firewalls inspect application layer.
| Device | Breaks Collision Domain? | Breaks Broadcast Domain? |
|---|---|---|
| Hub | No | No |
| Switch | Yes (per port) | No |
| Router | Yes | Yes |
| VLAN | Yes | Yes |
Belongs to one VLAN only. Untagged traffic. Connects to end devices (PCs, printers).
Carries multiple VLANs. Uses 802.1Q tagging. Connects switches together. Has native VLAN (untagged).
Blocking -> Listening -> Learning -> Forwarding
| Type | Static Routing | Dynamic Routing |
|---|---|---|
| Configuration | Manually defined | Auto-discovered |
| Scalability | Poor (many routes) | Good (self-managing) |
| Adaptability | None (manual updates) | Automatic failover |
| Resource Usage | Low | Higher (CPU, bandwidth) |
| Use Case | Small networks, stub routes | Large, complex networks |
Distance-vector. Hop count metric (max 15). Simple but slow convergence. Legacy protocol.
Link-state. Cost metric (bandwidth-based). Fast convergence. Uses areas for scalability. Open standard.
Hybrid (advanced distance-vector). Composite metric. Very fast convergence. Cisco proprietary (now open).
Path-vector. AS path metric. Internet backbone routing. Connects autonomous systems.
| Route Source | AD |
|---|---|
| Directly Connected | 0 |
| Static Route | 1 |
| EIGRP | 90 |
| OSPF | 110 |
| RIP | 120 |
| BGP (external) | 20 |