TCP/IP Model Flashcards
TCP/IP Model (4 Layers)
Alternative to OSI model, more relevant for network designers
1) Network Interface (Physical, Data Link)
2) Internet (Network)
3) Transport (Transport)
4) Application (Session, Presentation, Application)
Layer 1 (Network Interface)
Physical/electrical characteristics
Describes how to transmit bits across the network
Determines how interface uses network medium
Coax/Fiber/Copper
(Ethernet, Token Ring, FDDI, RS-232)
Layer 2 (Internet)
Packages data into IP datagrams:
Contains source & destination IPs
Forwards datagrams between hosts across networks
Routes IP datagrams across networks
Connectivity occurs externally
(IP, ICMP, ARP, RARP)
Layer 3 (Transport)
Provides communication session management between hosts
Defines level of service & status of connection used for transport
(TCP, UDP, RTP)
Layer 4 (Application)
Defines TCP/IP application protocols
Defines how programs interface with the transport layer service
Layer with which the user interacts
(HTTP, TELNET, FTP, SNMP, DNS, SMTP, SSL, TLS)
Data Transfer Over Networks: Ports
Port numbers can be 0 to 65,535
Well-known (reserved) ports: 0 to 1023
Ephemeral Ports: Short-lived transport port that is automatically selected from a predefined range
1024 to 65,535
Data Transfer Over Networks: IPv4 Packets
Source address (IP of sender) Destination address (IP of receiver) IP Flags (Allows packet fragmentation) Protocol (Is this packet using TCP or UDP?)
TCP & UDP Headers (Size)
TCP Header = 20 bytes
UDP Header = 8 bytes
GRE
Generic Routing Encapsulation Protocol:
A tunneling protocol (Cisco) to encapsulate a wide variety of network layer protocols inside a virtual point-to-point/multipoint link over an IP network.
Important to set a smaller MTU size on the tunnel.
No encryption