Networking Flashcards
(127 cards)
TCP
-Transmission Control Protocol
-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
UDP
-User Datagram Protocol
-Connectionless (no formal open or close to the connection)
-“Unreliable” delivery
–No error recovery
–No reordering of data or retransmissions
-No flow control
–Sender determines the amount of data transmitted
Why would you ever use UDP?
-Real-time communication
-There’s no way to stop and resend the data
-Time doesn’t stop for your network
-DHCP (Dynamic Host Configuration Protocol)
-TFTP (Trivial File Transfer Protocol)
Communications that use TCP and why
-Connection-oriented protocols prefer a ‘return receipt’
-HTTPS (Hypertext Transfer Protocol Secure)
-SSH (Secure Shell)
-The application doesn’t worry about out-of-order frames or missing data
-TCP handles all of the communication overhead
Non-ephemeral ports
-Permanent port numbers
-Ports 0-1023
-Usually on a server or service
Ephemeral ports
-Temporary port numbers
-Ports 1024 through 65,535
-Determined in real time by the client
Port Numbers
-TCP and UDP ports can be any number between 0-65,535
-Most servers use non-ephemeral port number
-Port numbers are for communication not security
-Service port numbers need to be well-known
-Important for firewall rules (port-based security)
FTP
-File Transfer Protocol
-tcp/20 = active mode data
-tcp/21 = control
-Transfers files between systems
-Authenticates with a username and password
-Some systems use a generic/anonymous login
SSH
-Secure Shell
-Encrypted communication link
-tcp/22
-Looks and acts the same as Telnet
Telnet
-Telecommunication Network
-tcp/23
-Login to devices remotely (console access)
SMTP
-Simple Mail Transfer Protocol
-Server t server email transfer
-tcp/25
-Also used to send mail from a device to a mail server
Other protocols are used for clients to receive emails (IMAP, POP3)
DNS
-Domain Name System
-Converts names to IP addresses
-upd/53
DHCP
-Dynamic Host Configuration Protocol
-Automated configuration of IP address, subment mask, and other options
-udp/167, udp/168
-Requires a DHCP server
DHCP Dynamic/Pooled
-IP addresses are assigned in real-time from a pool
-Each system is given a lease and must renew at a set interval
DHCP Reservation
-Addresses are assigned by MAC address in the DHCP server
-Manage addresses from one location
HTTP
-Hypertext Transfer Protocol
-Communication in the browser and by other applications
-tcp/80
HTTPS
-Hypertext Transfer Protocol Secure
-Secure communication in the browser
-Encrypted
-tcp/443
POP3
-Post Office Protocol version 3
-Receive emails from an email server
-Authenticate and transfer
-tcp/110
-Basic mail transfer functionality
IMAP
-Internet Message Access Protocol v4
-tcp/143
-Receive emails from an email server
-includes management of email inbox from multiple clients
SMB
-Server Message Block
-Protocol used by Microsoft Windows
-File sharing, printer sharing
-“CIFS” - Common Internet File System
-using NetBIOS over TCP/IP (Network Basic Input/Output System)
–udp/137 = NetBIOS name services (nbname)
–tcp/139 = NetBIOS session service (nbsession)
-Direct over tcp/445 (NetBIOS-less) (Direct SMB connection over TCP w/o the NetBIOS transport
SNMP
-Simple Network Management Protocol
-Gather statistics from network devices
-udp/161 = queries
-udp/162 = traps
LDAP
-Lightweight Directory Access Protocol
-tcp/389
-Store and retrieve information in a network directory
-Commonly used in Microsoft Active Directory
RDP
-Remote Desktop Access Protocol
-Share a desktop from a remote location
-tcp/3389
-Can connect to an entire desktop or just an application
-Clients for Windows, macOS, Linux, UNIX, iPhone, Android, and others
Routers
-Routes traffic between IP subnets
–Makes forwarding decisions based on IP address
-Often connects diverse network types (LAN, WAN, copper, fiber)