Messer - 1. Networking Concepts (Part 1 of 2) Flashcards
To move data (e.g. HTTP) across a network, we need to package it up, encapsulate it within ___________ or ____________, which then needs to be encapsulated within ___________, which is then encapsulated within _____________.
TCP or UDP
IP
Ethernet
TCP and UDP are transported inside of, and encapsulated by ________.
IP Protocol
TCP and UDP operate at which layer of the OSI Model?
Layer 4 (Transport)
__________ allows us to use many different applications at the same time across a network, and is a nice feature of TCP and UDP.
Multiplexing
TCP stands for _____________.
Transmission Control Protocol
UDP stands for ________________.
User Datagram Protocol
How do TCP and UDP differ in terms of connections?
TCP is connection-oriented. A formal connection is made between separate devices on a network, data is transferred, and then the connection is formally terminated.
UDP is “connectionless.” There is no formal opening or closing of a connection. Data is sent whenever available, without acknowledgment from receiver.
How do TCP and UDP differ in terms of reliability?
TCP is “reliable.” It sends numbered data so if data is lost or out of order, it can recover from the error, re-order, and/or re-transmit the data.
UDP is “unreliable.” No error recovery. No re-ordering of data or retransmission.
In what way can UDP’s “connectionless unreliability” be an advantage?
No unnecessary overhead!
What is the purpose of a port number?
Port numbers are associated with different applications so data can be directed to the correct place within a device. (e.g. Port 80 - unencrypted web traffic)
What is a socket?
IP address + port number
[See notes - Feel like I’m missing stuff here]
What are the two types of port numbers?
Non-ephemeral / permanent (Commonly used by applications or services running on a server)
Ephemeral / temporary (Clients usually send randomly chosen port # when sending data)
TCP and UDP ports can be any between __________ and ___________.
0 and 65,535
Ports 0 to 1,023 are ______________.
Ports 1,024 to 49,151 are _________.
Ports 49,152 to 65,535 are __________.
System or well-known ports
User or registered ports
Dynamic, private, or ephemeral ports
What happens when TCP and UDP try to use the same port number simultaneously?
Nothing. There’s no conflict. e.g. One application can use TCP port 80 and another can use UDP port 80. (But wouldn’t normally see this.)
If we were to closely inspect an IP packet, what five things would we find?
Source IP Address Destination IP Address TCP/UDP Source Port (randomly selected) TCP/UDP Destination Port Application Data (e.g HTTP, VoIP, email data)
ICMP stands for ____________.
Internet Control Message Protocol
What is the purpose of ICMP?
It’s like text messaging for network devices. Devices can request and reply to administrative requests (e.g. “Hey, are you there?”). Can let other devices know things aren’t going well (e.g. trouble communicating).
Like TCP/UCP, ICMP is carried by ___________. However, it is not used for ______________.
IP
data transfer
Telnet stands for __________________.
Telecommunication Network
Telnet port?
tcp/23
What is the purpose of Telnet?
Log in to devices remotely and access via text-based console. Way to communicate to and administer servers, routers, switches, and other devices.
Why isn’t Telnet the best choice for production systems?
It’s non-encrypted (e.g. user name and password in the clear)
SSH stands for _________________.
Secure Shell