4 - Network Fundamentals Flashcards
Benefits of layered network model approach
Easier troubleshooting
Standardizes networking architecture
Allows vendor interoperability
Each layer only communicates with peer layer
TCP/IP
Network model developed by DARPA and university volunteers
Became standard by late 90s
RFC
Request for Comment
Used to define standardized protocols
Network Model Layers
– OSI
– TCP/IP (old and new)
- OSI
1. Physical
2. Data Link
3. Network
4. Transport
5. Session
6. Presentation
7. Application - TCP/IP (Old)
1. Link
2. Internet
3. Transport
4. Application - TCP/IP (New)
1. Physical
2. Data Link
3. Network
4. Transport
5. Application
PDU
Generic term for unit of info transmitted within network model
Physical - Bits
Data Link - Frame
Network - Packet
Transport - Segment (TCP), Datagram (UDP)
Application - Data
Application Layer (TCP/IP)
- Purpose/Functions
- Example protocols
- Provide services to app software
- Defines how programs interface w/ transport layer
- Functions:
– ID’ing communication partners
– Determining resource availability
– Synchronizing communication
Examples: HTTP, DNS, DHCP, HTTPS, FTP, TFTP, Telnet, SSH, NTP, SNMP
DHCP
- Port
- Description
- Layer
- Min info obtained
- UDP Port 67 (client to server, broadcast) and 68 (server to client, unicast)
- Dynamically assign IP address, lease length, subnet mask, and default gateway (minimum) and DNS IP (optional)
- Uses “DORA” process
- Application Layer
DORA
- Discover, Offer, Request, Acknowledgement
- DHCP Client broadcasts to find DHCP server
- Server offers IP address/parameters
- Client accepts
- Server acknowledges acceptance and delivers lease info
DNS
– port
– layer
TCP/UDP Port 53
Application Layer
HTTP
TCP 80, 8008, 8080
Identified using URIs or URLs, used since 1990
Application Layer
HTTPS
– Port
– Info
– Layer
TCP 443
If NTP is not synchronized, cert signing can fail
Self-signed certificates provide confidentiality but do not confirm identity
Application Layer
FTP
– port
– layer
TCP 20 (Data) and 21 (Control)
Application Layer
TFTP
– Port
– Description
– Layer
- UDP 69
- Very basic FTP functionality
– Requires small amount of memory
– Can only read and write files from/to a remote server
– Cannot list directories
– No user authentication
– Typically used for storage/retrieval of Cisco switch config files - Application Layer
Telnet
– port
– layer
TCP 23
Sends username/PW in plaintext
Application Layer
SSH
– Port
– Layer
TCP 22
Application Layer
NTP
– Port
– Description
– Layer
UDP 123
Synchronize time down to a millisecond or fraction of a millisecond
Can use different methods such as radio and satellite
Application Layer
Transport Layer (TCP/IP)
– Description/functions
– Example protocols
Communication session management
Defines level of service and status of connection when transporting data
Examples: TCP and UDP
TCP (Protocol)
- Two functions:
– Flow control provided by sliding windows
– Reliability provided by sequence numbers and acknowledgements - Breaks messages into segments
TCP Segment Header
- Fields
Fields:
source port
destination port
sequence/acknowledgement numbers
control bits (SYN, ACK, FIN, etc.)
window size
TCP Window Size
Controls communication flow
sets # of messages transmitted before waiting for ack (ack # matches the seq number of the next segment to be sent)
Ex: Window size 1 - each segment must be acknowledged before another is sent
Can be changed to maximize bandwidth efficiency
UDP Header
64 bits long
Only includes Source port, Destination port, Length, and checksum
Socket
– Purpose
– 3 Parts
Used to track different concurrent network sessions
Includes IP address, TCP/UDP, and port number
Port number ranges
- Well-known: 0-1023
- User/Registered: 1024-49151
– Users connect to registered ports using ephemeral source ports - Dynamic/ephemeral: 49152-65535 (1025-5000 if older than win XP)
TCP/IP Layer Interaction
Adjacent layers work together on the same system
Same layers communicate with the same layer on a different system