Section 4: TCP/IP Model (w-Ports) Flashcards
TCP/IP Model
Alternative to OSI Model that offers network designers a more relevant model since it is based on TCP/IP.
(a.k.a. TCP/IP Stack or DoD Model.)
TCP/IP Model Layer 1
Network Interface Layer:
Incorporates features of OSI Layers 1 (Physical) and 2 (Data Link)
Physical and Electrical Characteristics; How to transmit bits; How the interface uses the medium.
TCP/IP Model Layer 2
Internet:
Similar to OSI Layer 3 (Network)
▪ Packages data into IP datagrams
- Contains source and destination IPs
- Forwards datagrams between hosts across the networks
▪ Routes IP datagrams across networks
▪ Connectivity occurs externally
TCP/IP Model Layer 3
Transport: Similar to OSI Layer 4 (Transport)
▪ Provides communication session management between hosts
▪ Defines level of service and status of connection used for transport
TCP/IP Model Layer 4
Application: Combined features of OSI Layers 5 (Session), 6 (Presentation), and 7 (Application)
▪ Defines TCP/IP application protocols
▪ Defines how programs interface with the transport layer service
▪ Layer with which the user interacts
TCP/IP Model Layer 2 (Internet) - Examples
▪ IP - Internet Protocol
▪ ICMP - Internet Control Message Protocol (network devices use to communicate problems with data transmission - Number 1 use is reporting errors.)
▪ ARP - Address Resolution Protocol (IP address to MAC address)
▪ RARP - Reverse Address Resolution Protocol (MAC Address to IP address)
TCP/IP Model Layer 3 (Transport) - Examples
▪ TCP - Transmission Control Protocol is a transport protocol that is used on top of IP to ensure reliable transmission of packets.
▪ UDP - User Datagram Protocol is a transport protocol that is used on top of IP but removes error-checking. (Low latency)
▪ RTP - Real-time Transport Protocol (RTP) for delivering audio and video over IP networks.
TCP/IP Model Layer 4 (Application) - Examples
▪ HTTP, TELNET, FTP, SNMP, DNS, SMTP, SSL, TLS, …
TCP/IP Model to OSI Model Map
Network Interface
1. Physical Layer
2. Data Link Layer
Internet
3. Network Layer
Transport
4. Transport Layer
Application
5. Session Layer
6. Presentation Layer
7. Application Layer
ICMP
Internet Control Message Protocol - Network devices use to communicate problems with data transmission - Number one use is reporting errors.
ARP
Address Resolution Protocol - IP address to MAC address. (Layer 2 - Data Link to Layer 3 - Network Layer)
RARP
Reverse Address Resolution Protocol - MAC Address to IP address. (Layer 3 - Network to Layer 2 - Data Link)
Port number range
0 - 65,535
Reserved Ports (Well-known)
0 - 1023
Ephemeral Ports (Dynamic)
1024 - 65,535
Overhead of TCP
20 bytes
Overhead of UDP
8 bytes
FTP / Port(s)
File Transfer Protocol / Ports 20, 21
▪ Transfers files between a client and server
▪ Unsecure method
▪ Data transferred in the clear
SSH / Port(s)
Secure Shell / Port 22
▪ Cryptographic network protocol for operating network services securely over an unsecured network
▪ Best known for remote login to computer systems by users
SFTP / Port(s)
Secure Shell File Transfer Protocol / 22
▪ Provides file access, file transfer, and file management over any reliable data stream