Computer Networks (Complete Guide 2026)

What is a computer network?

A computer network is a system of interconnected devices that share resources and communicate using agreed-upon protocols. Every network — from two laptops on Wi-Fi to the global internet — follows the same fundamental principles: addressing, routing, and protocol layering.

Network types by scale
Networks are classified by their geographic scope:

TypeScaleExample
PAN~10 mBluetooth between phone and earbuds
LANBuildingOffice Wi-Fi, home network
MANCityUniversity campus network
WANCountry/globeThe internet, corporate MPLS links
WLANWireless LANAny Wi-Fi network
VPNLogical overlayRemote-access tunnel over public internet

How data flows — packet switching

Every message you send — an email, a video stream, a web request — is broken into packets. Each packet carries the destination address and a sequence number. Routers forward packets independently, and the destination reassembles them. This makes the network resilient: if one path is congested or broken, packets simply take another route.

TCP vs UDP — the two workhorses of transport
The choice between TCP and UDP is one of the most fundamental design decisions in networking.

FeatureTCPUDP
Connection3-way handshakeConnectionless
ReliabilityGuaranteed deliveryBest-effort
OrderIn-order deliveryNo ordering
SpeedSlower (overhead)Faster (minimal overhead)
Flow controlYesNo
Use casesHTTP, email, file transferVideo streaming, DNS, gaming, VoIP

Leave a Reply

Your email address will not be published. Required fields are marked *