PROJECTENGRAM

[REV] CSNETWK COMPREHENSIVE FINALS REVIEWER

Tags: #◇Computer Science #◇CSNETWK #◇Networking #◇TCP-IP #◇Reviewer #◇Finals


CSNETWK Comprehensive Finals Reviewer

◇Overview

This reviewer consolidates Computer Networks (CSNETWK). Topics cover the OSI 7-layer and TCP/IP 5-layer models, socket programming (TCP streams vs UDP datagrams), Application Layer (HTTP/1.1 vs HTTP/2, DNS hierarchy, SMTP), Transport Layer (TCP 3-way handshake and 4-way teardown, sliding window flow control, congestion control with AIMD, Slow Start, Fast Retransmit), Network Layer (IPv4 addressing, subnetting/CIDR, NAT, routing protocols), Link Layer (Ethernet frames, ARP, MAC addresses, CSMA/CD), and Physical Layer fundamentals.


◇1. TCP vs UDP Protocol Comparison Matrix

FeatureTransmission Control Protocol (TCP)User Datagram Protocol (UDP)
Connection StateConnection-oriented (3-way handshake)Connectionless (no handshake)
ReliabilityGuaranteed in-order delivery; ACKs & retransmissionsBest-effort; packets can be lost, duplicated, out of order
Flow ControlReceive Window (rwnd) prevents buffer overrunNone
Congestion ControlCongestion Window (cwnd), AIMD, Slow StartNone
Header Overhead20–60 bytes8 bytes fixed
Common ProtocolsHTTP/HTTPS, SSH, FTP, SMTPDNS (queries), DHCP, VoIP (RTP), Video Streaming

◇2. TCP Lifecycle Sequence Diagram


◇3. Subnetting & CIDR Calculation Matrix

  • IPv4 Address: 32 bits divided into 4 octets.
  • CIDR Notation /n/n: nn bits for Network ID, 32−n32 - n bits for Host ID.
  • Formulas:
    • Total Addresses in block: 232−n2^{32 - n}
    • Usable Host Addresses: 232−n−22^{32 - n} - 2 (subtract Network Address all 0s, and Broadcast Address all 1s).
CIDR PrefixSubnet MaskTotal IPsUsable Hosts
/24255.255.255.0256254
/25255.255.255.128128126
/26255.255.255.1926462
/28255.255.255.2401614
/30255.255.255.25242 (Point-to-Point links)

◇4. High-Yield Exam Checklist

  • Does UDP provide flow or congestion control? NO, application must handle reliability if needed.
  • In CIDR, why do we subtract 2 from total addresses? 1 for Network ID and 1 for Broadcast Address.
  • What protocol resolves an IP address to a physical MAC address? ARP (Address Resolution Protocol).
  • During TCP Slow Start, how does cwnd grow? Exponentially (doubles every RTT: +1+1 MSS per ACK).
  • What is the purpose of the client TIME_WAIT state? Ensures final ACK was received by server and flushes old duplicate packets from network (2×MSL2 \times \text{MSL}).

◇References & Navigation

CONFIRMATION // 理解度の確認

ACTIVE RECALL VERIFICATION

Select an answer to verify conceptual comprehension and reveal the technical rationale.

Q1

In the TCP 3-way handshake, if the client sends a SYN packet with sequence number 500, what sequence and acknowledgment numbers will the server return in its SYN-ACK response?

Q2

How many usable host IP addresses are available in the subnet 192.168.10.0/27?

Q3

Which protocol is responsible for automatically assigning dynamic IP addresses, default gateways, and DNS servers to network hosts upon bootup?

Q4

What mechanism triggers TCP Fast Retransmit without waiting for the retransmission timer to expire?

Q5

Which layer of the OSI model is responsible for end-to-end process-to-process communication, port multiplexing, and reliable byte streams?