Common Ports and the OSI Model Flashcards
Telnet
- TCP/23 port
- Login to rdevices remotely.
- console access
- in the clear no secure Auth
SSH -
Secure Shell
- TCp/22 port
- Encrypted
- Replacement for Telnet
DNS
Domain Naming System
- UDP/53
- Resolves hostnames to IP address.
SMTP
Simple Mail Transfer Protocol
- TCP/25
- Sends mail from one server to another.
- Sends mail from mobile device and email clients.
- Not used for receiving email (IMAP/POP3)
SFTP
Secure File transfer Protocol
- TCP/22
- Uses SSH to transfer files.
- Resuming interrupted transfers, directy listings, file removal.
- Encrypted information.
FTP
File Transfer Protocol
- TCP/20 (active mode data)
- TCP/21 (control)
- Authenticates with a username and password.
Full-featured functionality (list add delete etc)
TFTP -
Transfer File Protocol
- UDP/69
- Very simple FT app
- No authentication.
- Not used on production systems
DHCP -
Dynamic Host Configuration Protocol
- UDP/67 and 68.
- Requires a DHCP server (server, appliance, integrated into a small office home office router, etc)
- Dynamic/pooled ip address are assigned in real time from a pool.
- Each system is given a lease and must renew at set intervals.
- DHCP reservation (addresses are assigned by MAC address in the DHCP server)
HTTP and HTTPS
Hypertext Transfer Protocol
- TCP/80 (HTTP
- TCP/443 (HTTPS)
- Communication in the browser and by other apps.
- In the clear or encrypted.
- Supported by nearly all web servers and clients.
SNMP -
Simple Network Management Protocol
- UDP/161
- Gathers statistics from network devices. - v1 - The original
- Structured tables
- in-the-clear - v2 - a good step ahead
- Data type enhancements
- Bulk transfers
- Still in-the-clear - v3 - A secure standard
- Message integrity
- Authentication
- Encryption.
RDP -
Remote Desktop Protocol
- TCP/3389
- Share a desktop from a remote location.
- Remote Desktop Services on many Windows versions
- Can connect to an entire desktop or just an app.
- Clients for Windows, MACOs, Linux, Unix, iPhone and others.
NTP
Network Time Protocol
- UDP/123
- Switches, routers, firewalls, servers, workstations
- Every device has it’s own clock - Synchronizing clocks becomes critical
- Log files, auth information, outage details - Automatic updates
- No flashing 12:00 lights - Very accurate
- Accuracy better than 1ms
SIP
Session Initiation Protocol
- TCP/5061-5061
- Setup and manage VoIP sessions
- Call, ring, hangup - Extend voice comms
- Video conferencing
- Instant messaging
- File transfer
- etc
SMB
Server Message Block
- TCP/445 (NetBIOS-less)
- Protocol used by Microsoft Windows
- File sharing, print sharing
- Allso called CIFS (Common Internet File System)
POP/IMAP
- Receives emails from an email server
POP3 - Post office Protocol v3
- TCP/110
- Basic mail transfer functionality
IMAP4 - Internet Message Access Protocol v4
- TCP/143
- Includes management of email inbox from multiple clients
LDAP - Lightweight Directory Access Protocol
Lightweight Directory Access Protocol
- TCP/389
- Store and retrieve information in a network directory
Lightweight Directory Access Protocol Secure
- TCP/636
- Non-standard implementation of LDAP over SSL
H.323
- Voice over IP (VoIP) signlaing
- TCP/1720
- ITU Telecommunication H.32x protocol series - Setup and manage VoIP sessions
- Call, ring, hangup - One of the earliest VoIP standards
- Still in use today
OSI Model
Open Systems Interconnection Reference Model
- It’s a guide
- Don’t get wrapped up in the details
- All People Seem To Need Data Processing
Layer 1
Physical Layer
- Signaling, cabling, connectors
- This layer isn’t about protocols
You have a physical layer problem
- Fix your calbing, punch-downs, etc
- Run loopback tests, test/replace cables, swap adapter cards
Layer 2
Data Link Layer
The basic network language
- Foundation of communication at the data link layer
Data Link Control (DLC) protocols
-MAC (Media Access Control) address on ethernet
The Switching layer
Layer 3
Network or routing layer
Internet Protocol (IP)
Fragments frames to traverse different networks
Layer 4
Transport Layer
Post office layer
- Parcels and letters
TCP (Transmission Control Protocol) and UDP (User Datagram Protocol)
When you hear layer 4 or layer 4 protocol almost always refers to TCP or UDP.
Layer 5
Session Layer
Communication management between devices
- Start, stop, restart
Control protocols, tunneling protocols
- “Can we talk” “yes we can”
Layer 6
Presentation Layer
Character encoding
-Application encryption (SSL/TLS)
Often combined with application layer
Layer 7
Application Layer
Responsible for what we see