Network Models & Cabling Standards
Understanding OSI vs TCP/IP models, data encapsulation, and physical layer implementations
Network Reference Models
Comparing the OSI 7-layer model with the TCP/IP 4-layer model
Application Layer
Network services to applications (HTTP, FTP, SMTP)
Presentation Layer
Data representation, encryption, compression (SSL, JPEG)
Session Layer
Interhost communication, session establishment (NetBIOS, RPC)
Transport Layer
End-to-end connections, reliability (TCP, UDP)
Network Layer
Logical addressing, routing (IP, ICMP, routers)
Data Link Layer
Physical addressing, error detection (Ethernet, switches)
Physical Layer
Physical connectivity, bit transmission (cables, hubs)
Application Layer
Combines OSI Layers 5-7 (HTTP, FTP, DNS, SMTP)
Transport Layer
Same as OSI Layer 4 (TCP, UDP)
Internet Layer
Same as OSI Layer 3 (IP, ICMP)
Network Access
Combines OSI Layers 1-2 (Ethernet, PPP, physical media)
| OSI Model | TCP/IP Model | Protocols | Devices |
|---|---|---|---|
| Application (7) | Application | HTTP, FTP, SMTP | Gateways |
| Presentation (6) | Application | SSL, TLS, JPEG | Gateways |
| Session (5) | Application | NetBIOS, RPC | Gateways |
| Transport (4) | Transport | TCP, UDP | Firewalls |
| Network (3) | Internet | IP, ICMP, ARP | Routers |
| Data Link (2) | Network Access | Ethernet, PPP | Switches, Bridges |
| Physical (1) | Network Access | RS-232, 100Base-TX | Hubs, Repeaters |
Data Encapsulation Process
How data is packaged and transmitted through network layers
Data Transmission Flow
Data
Application Layer (7)
User data (HTTP, FTP, SMTP)Segment (TCP/UDP)
Transport Layer (4)
TCP Header + DataPacket
Network Layer (3)
IP Header + SegmentFrame
Data Link Layer (2)
Frame Header + Packet + TrailerBits
Physical Layer (1)
Electrical/Optical signals- Source/Dest Port: Application identification
- Sequence/Ack Numbers: Reliability
- Flags: SYN, ACK, FIN, RST control
- Window: Flow control
- Version: IPv4 (4) or IPv6 (6)
- TTL: Prevents infinite looping
- Protocol: TCP (6), UDP (17), ICMP (1)
- Source/Dest IP: Logical addressing
Transport Layer Protocols
TCP vs UDP - Connection-oriented vs Connectionless communication
- Connection-oriented - 3-way handshake
- Reliable delivery - Acknowledgments
- Flow control - Window sizing
- Error checking - Checksums
- Sequencing - Ordered delivery
- Applications: HTTP, FTP, SMTP, SSH
- Port Examples: 80 (HTTP), 443 (HTTPS), 21 (FTP)
- Connectionless - No handshake
- Unreliable delivery - No ACKs
- No flow control - Constant rate
- Basic error checking - Optional checksum
- No sequencing - Out-of-order possible
- Applications: DNS, VoIP, Streaming
- Port Examples: 53 (DNS), 67 (DHCP), 123 (NTP)
Well-Known Ports (0-1023)
- 20/21 - FTP (Data/Control)
- 22 - SSH
- 23 - Telnet
- 25 - SMTP
- 53 - DNS
- 80 - HTTP
- 110 - POP3
- 443 - HTTPS
Registered Ports (1024-49151)
- 1433 - MS SQL Server
- 1521 - Oracle DB
- 3306 - MySQL
- 3389 - RDP
- 5432 - PostgreSQL
- 5900 - VNC
- 8000 - HTTP Alt
- 8080 - HTTP Proxy
Dynamic Ports (49152-65535)
- Ephemeral ports
- Client-side connections
- Assigned dynamically
- Short-lived sessions
Ethernet Cabling Standards
T568A and T568B wiring schemes for network cables
T568A vs T568B Pinouts
T568A Standard
W-G
G
W-O
Bl
W-Bl
O
W-Br
Br
- Pin 1: White/Green
- Pin 2: Green
- Pin 3: White/Orange
- Pin 4: Blue
- Pin 5: White/Blue
- Pin 6: Orange
- Pin 7: White/Brown
- Pin 8: Brown
T568B Standard
W-O
O
W-G
Bl
W-Bl
G
W-Br
Br
- Pin 1: White/Orange
- Pin 2: Orange
- Pin 3: White/Green
- Pin 4: Blue
- Pin 5: White/Blue
- Pin 6: Green
- Pin 7: White/Brown
- Pin 8: Brown
Cable Types & Usage
- T568A to T568A or T568B to T568B
- Connects unlike devices
- Router to Switch
- Computer to Switch
- Most common cable type
- T568A to T568B
- Connects like devices
- Switch to Switch
- Router to Router
- Computer to Computer
- Pins completely reversed
- Console connections
- Router/switch management
- Usually light blue color
- RJ-45 to DB-9 adapter