2.1 - Common Network Ports Flashcards
In addition to the server and the client, what other devices might need to know well known port numbers?
Firewalls. They often make the decision on what traffic to allow and disallow based on the port number.
What port(s) are used by FTP?
TCP/20 for data transfer, and TCP/21 for controlling the data transfer.
What is FTP used for?
Used for transferring data between devices, usually requiring some sort of authentication to the remote device. It can also have additional functionality to list, add, and delete files.
What is SSH used for?
Connecting to a remote device through a terminal or command-line front end. The data sent over the network is encrypted, hence “secure”.
What port(s) does SSH use?
TCP/22.
What is Telnet?
Telecommunication network. Similar to SSH, provides a text-based way to access a remote device.
Why might one prefer SSH over Telnet?
Unlike Telnet, SSH sends its data encrypted. Telnet sends “in the clear”.
What port(s) does Telnet use?
TCP/23.
What is SMTP and what is it used for?
Simple Mail Transfer Protocol. Used for server to server email transfer, and for mail clients to send emails to servers. Note: NOT used to receive email.
What port(s) does SMTP use?
TCP/25.
What does DNS do?
It converts the fully qualified domain name (i.e., professormesser.com) to an IP address (162.159.246.164).
What port(s) does DNS use?
UDP/53.
What is DHCP and what is used for? Whence come the servers?
Dynamic Host Configuration Protocol. Used to automatically assign a device an IP address when it is connected to the network. DHCP servers are usually built into routers and access points that we use these days.
What port(s) does DHCP use?
UDP/67 and UDP/68.
What does it mean for IP addresses on a DHCP server to be “dynamic”, “pooled”, and “leased”?
“Dynamic” refers to the fact that they are assigned in real time. “Pooled” means that there is a pool on the server from which IP addresses are assigned. “Leased” means that each device is given a lease that it must renew at set intervals. If it does not, those IP addresses go back to the pool.
What is DHCP reservation?
A specific IP address is reserved for a specific device on the server.
What are HTTP and HTTPS, and what are they used for?
Hypertext Transfer Protocol and Hypertext Transfer Protocol Secure. Used mostly for communication in the browser.