Section 4: Ports and Protocols Flashcards
(85 cards)
What is the primary function of a network port?
To serve as a logical endpoint for communications, directing network traffic to the correct application or service on a computer.
What are the three ranges of network ports and their corresponding numbers?
- Well-Known Ports (0-1,023), 2. Registered Ports (1,024-49,151), and 3. Dynamic/Ephemeral Ports (49,152-65,535).
Which organization is responsible for assigning and managing registered ports?
The Internet Assigned Numbers Authority (IANA).
If a client computer connects to a web server, what type of port does the client use for its side of the communication?
A dynamic or ephemeral port (from the range 49,152-65,535).
What is the total number of available network ports?
65,536 (from 0 to 65,535).
What are the three defining characteristics of TCP?
It is connection-oriented, reliable, and provides flow control.
What are the three steps of the TCP three-way handshake?
- SYN (Synchronize), 2. SYN-ACK (Synchronize-Acknowledge), 3. ACK (Acknowledge).
How does TCP ensure the reliable delivery of data packets?
By using sequence numbers to track packets and acknowledgments (ACKs) to confirm their receipt. It retransmits any unacknowledged packets.
What mechanism does TCP use for flow control to avoid overwhelming a receiver?
Windowing.
At which layer of the OSI model does TCP operate?
Layer 4, the Transport Layer.
Why is UDP considered a ‘connectionless’ protocol?
Because it does not establish a formal connection (like a three-way handshake) before sending data.
What are the main advantages of using UDP over TCP?
Speed and low overhead, as it does not have the reliability and ordering checks of TCP.
What are some common applications that use UDP and why?
Streaming media, online gaming, and VoIP. These applications prioritize speed and can tolerate minor packet loss.
What does it mean that UDP is a ‘stateless’ or ‘fire-and-forget’ protocol?
It does not track the state of the connection or whether packets have been successfully delivered.
How does UDP’s header size compare to TCP’s header size?
UDP’s header is much smaller (8 bytes) than TCP’s header (20-60 bytes), contributing to its speed.
At which layer of the OSI model does UDP operate?
Layer 4, the Transport Layer.
What is the primary purpose of ICMP?
To send error messages and operational information about network conditions, primarily for diagnostics and control.
What does ICMP stand for?
Internet Control Message Protocol.
What are the two most common network utilities that use ICMP?
ping and traceroute (or tracert).
Why might a network administrator choose to block ICMP traffic at the firewall?
To prevent network reconnaissance (like ping sweeps) and protect against ICMP-based denial-of-service attacks.
What is an ICMP Flood Attack?
A denial-of-service attack where the target is overwhelmed with a large number of ICMP Echo Request (ping) packets.
At which layer of the OSI model does ICMP operate?
Layer 3, the Network Layer.
What port does HTTP use?
Port 80.
Is HTTP secure?
No, all data is sent in unencrypted plain text.