TCP/IP Model (1.1, 1.5, & 5.3) Flashcards
TCP/IP Model
o TCP/IP Model
▪ Also known as TCP/IP stack or the DoD Model
▪ Alternative to the OSI Model
▪ More relevant model for network designers since it’s based on TCP/IP
▪ Only a 4-layer model
OSI Model to TCP/IP Model
Network Interface (Layer 1) (Physical and Electrical characteristics / bits / coax, optic, twisted-pair)
▪ Physical and electrical characteristics
▪ Describes how to transmit bits across the network (1’s and 0’s)
▪ Determines how interface uses network medium
▪ Coaxial, Optical fiber, or Twisted-pair copper cabling
▪ Examples:
● Ethernet, Token Ring, FDDI, RS-232
Internet (Layer 2) (data into IP datagrams -> routes across networks > external connection)
▪ 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
▪ Examples:
● IP, ICMP, ARP, RARP
Transport (Layer 3) (Communication session management / TCP / UDP / RTP)
▪ Provides communication session management between hosts
▪ Defines level of service and status of connection used for transport
▪ Examples:
● TCP
● UDP
● RTP
Application (Layer 4)
▪ Defines TCP/IP application protocols
▪ Defines how programs interface with the transport layer service
▪ Layer with which the user interacts
▪ Examples:
● HTTP, TELNET, FTP, SNMP, DNS, SMTP, SSL, TLS, …
Data Transfer Over Networks (0 - 65,535 / 0 - 1023 / Ephem = 1024 - 65,535)
(Ports)
o Ports
▪ Port numbers can be 0 to 65,535
▪ “Well-known” & Reserved Ports
● Ports 0 to 1023
▪ Ephemeral Ports
● Short-lived transport port that is automatically selected from a predefined range
● Ports 1024 to 65,535
Data Transfer
IPv4 Packets
Overhead of TCP and UDP
Ports and Protocols
o File Transfer Protocol FTP (Port 20, 21)
o Secure Shell SSH (Port 22)
o SSH File Transfer Protocol SFTP (Port 22)
o Telnet (Port 23)
o Simple Mail Transfer Protocol SMTP (Port 25)
o Domain Name Service DNS (Port 53)
o Dynamic Host Control DHCP (Port 67, 68)
o Trivial File Transfer TFTP (Port 69)
o Hyper Text Transfer HTTP (Port 80)
o Post Office Protocol v3 POP3 (Port 110)
o Network Time Protocol NTP (Port 123)
o NetBIOS (Port 139)
o Internet Mail Application IMAP (Port 143)
o Simple Network Management SNMP (Port 161)
o Lightweight Directory Access LDAP (Port 389)
o HTTP Secure HTTPS (Port 443)
o Server Message Block SMB (Port 445)
o System Logging Protocol Syslog (Port 514)
o Simple Mail Transfer Protocol Transport Layer Security SMTP TLS (Port 587)
o LDAP Secure LDAPS (Port 636)
o Internet Message Access Protocol over SSL IMAP over SSL (Port 993)
o Post Office Protocol Version 3 over SSL POP3 over SSL (Port 995)
o Structured Query Language Server Protocol SQL (Port 1433)
o SQLnet Protocol (Port 1521)
o MySQL (Port 3306)
o Remote Desktop Protocol RDP (Port 3389)
o Session Initiation Protocol SIP (Port 5060, 5061)
Ports to Remember
File Transfer Protocol FTP (Port 20, 21) (Transfers files / unsecure)
▪ Transfers computer files between a client and server on a computer network
▪ Unsecure method
▪ Data transferred in the clear
Secure Shell SSH (Port 22) (Network services securely over unsecured network / remote login by users)
▪ Cryptographic network protocol for operating network services securely over an unsecured network
▪ Best known for remote login to computer systems by users
SSH File Transfer Protocol SFTP (Port 22) (file transfer/management/access over reliable data steram)
▪ Provides file access, file transfer, and file management over any reliable data stream
Telnet (Port 23) (bidirectional text-oriented communication via virtual terminal / like ssh but insecure)
▪ Provides bidirectional interactive text-oriented communication facility using a virtual terminal connection
▪ Like SSH, but insecure
Simple Mail Transfer Protocol SMTP (Port 25) (sending electronic mail)
▪ Internet standard for sending electronic mail
▪ RFC 821 was defined originally in 1982
▪ RFC 5321 developed in 2008 (current version)
Domain Name Service DNS (Port 53) (naming system / domain names into IP addresses)
▪ Hierarchical decentralized naming system for computers, services, or other resources connected to the Internet or a private network
▪ Converts domain names to IP addresses