1.5 Explain common ports and protocols, their application, and encrypted alternatives. Flashcards
1
Q
Intro to IP: A Series of Moving Vans
A
- Efficiently move large amounts of data
– Use a shipping truck - The network topology is the road
– Ethernet, DSL, coax cable - The truck is the Internet Protocol (IP)
– We’ve designed the roads for this truck - The boxes hold your data
– Boxes of TCP and UDP - Inside the boxes are more things
– Application information
2
Q
TCP and UDP
A
- Transported inside of IP
– Encapsulated by the IP protocol - Two ways to move data from place to place
– Different features for different applications - OSI Layer 4
– The transport layer - Multiplexing
– Use many different applications
at the same time
TCP and UDP
3
Q
TCP - Transmission Control Protocol
A
- Connection-oriented
– A formal connection setup and close - “Reliable” delivery
– Recovery from errors
– Can manage out-of-order messages
or retransmissions - Flow control
– The receiver can manage how much data is sent
4
Q
UDP - User Datagram Protocol
A
- Connectionless
– No formal open or close to the connection - “Unreliable” delivery
– No error recovery
– No reordering of data or retransmissions - No flow control
5
Q
Lots of Ports
A
IPv4 sockets
– Server IP address, protocol,
server application port number
– Client IP address, protocol, client port number
* Non-ephemeral ports –permanent port numbers
– Ports 0 through 1,023
– Usually on a server or service
* Ephemeral ports – temporary port numbers
– Ports 1,024 through 65,535
– Determined in real-time by the clients
6
Q
Port Numbers
A
- TCP and UDP ports can be any number
between 0 and 65,535 - Most servers (services) use non-ephemeral
(not-temporary) port numbers
– This isn’t always the case - it’s just a number. - Port numbers are for communication, not security
- Service port numbers need to be “well known”
- TCP port numbers aren’t the same as UDP port numbers
7
Q
ICMP
A
- Internet Control Message Protocol
– “Text messaging” for your network devices - Another protocol carried by IP - Not used for data transfer
- Devices can request and reply to administrative requests
– Hey, are you there? / Yes, I’m right here. - Devices can send messages when things don’t go well
– That network you’re trying to reach
is not reachable from here
– Your time-to-live expired, just letting you know
8
Q
Telnet
A
- Telnet – Telecommunication Network - tcp/23
- Login to devices remotely
- Console access
- In-the-clear communication
- Not the best choice for production systems
9
Q
SSH - Secure Shel
A
- Encrypted communication link - tcp/22
- Looks and acts the same as Telnet
10
Q
DNS - Domain Name System
A
- Converts names to IP addresses - udp/53
– www.professormesser.com = 162.159.246.164
– Large transfers may use tcp/53 - These are very critical resources
– Usually multiple DNS servers are in production
11
Q
SMTP - Simple Mail Transfer Protocol
A
- SMTP - Simple Mail Transfer Protocol
– Server to server email transfer - tcp/25 - Also used to send mail from a device to a mail server
– Commonly configured on mobile devices
and email clients - Other protocols are used for clients to receive email
– IMAP, POP3
12
Q
POP/IMAP
A
- Receive emails from an email server
– Authenticate and transfer - POP3 - Post office Protocol version 3 - tcp/110
– Basic mail transfer functionality - IMAP4 - Internet Message Access Protocol v4 - tcp/143
– Manage email inbox from multiple clients
13
Q
SFTP - Secure FTP
A
- Uses the SSH File Transfer Protocol - tcp/22
- Provides file system functionality
– Resuming interrupted transfers, directory listings,
remote file removal
14
Q
File transfer application protocols
A
- FTP – File Transfer Protocol
– tcp/20 (active mode data), tcp/21 (control)
– Transfers files between systems
– Authenticates with a username and password
– Full-featured functionality (list, add, delete, etc.) - TFTP – Trivial File Transfer Protocol
– udp/69
– Very simple file transfer application - Read files and write files
– No authentication - Not used on production systems
15
Q
DHCP - Dynamic Host Configuration Protocol
A
- Automated configuration of IP address,
subnet mask and other options
– udp/67, udp/68 - Requires a DHCP server - Dynamic / pooled
– IP addresses are assigned in real-time from a pool
– Each system is given a lease
– Must renew at set intervals - Reserved
– Addresses are assigned by MAC address
– Quickly manage addresses from one location