iwantcoding.com
🔥 Daily 👥 Rooms 🏆 Top Log in Sign up

2.1 Computer Networking

Computer networking carries every byte your enterprise produces. The OSI and TCP/IP models, IP addressing, and the LAN/WAN distinction are the foundation everything else builds on.

2.1 Fundamentals of Computer Networking

OSI vs TCP/IP layers

OSI 7-layer TCP/IP 4-layer 7 Application 6 Presentation 5 Session 4 Transport 3 Network 2 Data Link 1 Physical Application HTTP, DNS, SMTP, SSH Transport (TCP/UDP) Internet (IP) Link Ethernet, Wi-Fi, MPLS Figure 2.1 - OSI 7-layer (pedagogical) maps to TCP/IP 4-layer (operational).

TCP vs UDP - choose by reliability vs speed

ProtocolReliabilityOrderTypical use
TCPreliable + retryorderedHTTP, SSH, SMTP, databases
UDPbest effortunorderedDNS, VoIP, gaming, video
QUICreliable + retrymultiplexedHTTP/3 default

Bandwidth, latency, and throughput

MetricDefinition
Bandwidthbits per second the link can carry
Latencyone-way time for a bit to reach the destination
Throughputbits per second your app actually achieves
Jittervariance in latency (matters for voice and video)

A 100 Mbps link with 100 ms latency feels worse than a 50 Mbps link with 10 ms latency for interactive work.

Quick math - bandwidth-delay product

bandwidth-delay = bandwidth x round-trip-time

A 100 Mbps link with 60 ms RTT carries about 750 kB of in-flight data. Tuning TCP window size below this wastes capacity.

Where this connects to EA

The Technology Architecture layer documents which apps use which links, the redundancy of each link, and the SLAs of each ISP. Without it, capacity planning is guesswork.

Mentor’s tip: TCP/IP for operation, OSI for vocabulary. Choose TCP or UDP by reliability needs. Bandwidth and latency are not interchangeable - the bandwidth-delay product tells you when to tune.

Discussion

Loading…