Networking and the Internet explain how computers exchange data across local networks and around the world. This cheat sheet helps students connect big ideas like protocols, packets, addresses, and routing into one clear reference. It is useful for reviewing how messages move through network layers and how common internet services work.
Students need these concepts to understand cybersecurity, web apps, cloud computing, and everyday online communication.
The most important ideas are that data is split into packets, wrapped with headers during encapsulation, sent through routers, and reassembled at the destination. Network models such as TCP/IP and OSI organize communication into layers so each layer has a specific job. Key formulas include bandwidth = data transferred / time, latency = propagation delay + transmission delay + processing delay + queueing delay, and total bits = bytes x 8.
Core protocols include IP for addressing and routing, TCP for reliable delivery, UDP for faster connectionless delivery, DNS for name lookup, and HTTP or HTTPS for web communication.
Key Facts
- Bandwidth measures data rate and is calculated as bandwidth = data transferred / time.
- To convert bytes to bits, use bits = bytes x 8 because 1 byte equals 8 bits.
- Transmission delay is calculated as transmission delay = packet size in bits / link bandwidth in bits per second.
- Propagation delay is calculated as propagation delay = distance / signal speed.
- Total latency can be estimated with latency = propagation delay + transmission delay + processing delay + queueing delay.
- In encapsulation, each network layer adds its own header, so application data becomes segments, packets, frames, and then bits.
- TCP provides reliable ordered delivery using acknowledgments, sequence numbers, and retransmission, while UDP sends data without guaranteeing delivery or order.
- DNS translates a domain name such as example.com into an IP address that computers use to route packets.
Vocabulary
- Packet
- A packet is a small unit of data sent across a network with addressing and control information attached.
- Protocol
- A protocol is a shared set of rules that devices follow to communicate correctly.
- IP Address
- An IP address is a numeric label that identifies a device or destination on a network.
- Router
- A router is a network device that forwards packets between networks based on destination addresses.
- Encapsulation
- Encapsulation is the process of wrapping data with headers and trailers as it moves down network layers.
- DNS
- DNS is the Domain Name System that maps human-readable domain names to IP addresses.
Common Mistakes to Avoid
- Confusing bandwidth with latency is wrong because bandwidth measures how much data can be sent per second, while latency measures delay.
- Forgetting to convert bytes to bits gives an answer that is 8 times too small because network speeds are usually measured in bits per second.
- Thinking IP guarantees delivery is wrong because IP mainly handles addressing and routing, while reliability is handled by protocols such as TCP.
- Assuming DNS sends web pages is incorrect because DNS only resolves names to IP addresses before protocols such as HTTP or HTTPS request content.
- Treating TCP and UDP as interchangeable is a mistake because TCP favors reliability and order, while UDP favors lower overhead and speed.
Practice Questions
- 1 A 24 megabit file is downloaded in 6 seconds. What is the average bandwidth in megabits per second?
- 2 A packet is 12,000 bits and the link bandwidth is 3,000,000 bits per second. What is the transmission delay in seconds?
- 3 A signal travels 2,000,000 meters through fiber at 200,000,000 meters per second. What is the propagation delay?
- 4 A video call sometimes drops a frame but keeps going smoothly. Explain why UDP might be chosen instead of TCP for this type of application.
Understanding Networking & The Internet
Network layers are useful because they create boundaries between jobs. A web browser does not need to know the electrical details of Wi Fi or fiber cables. It passes its request to lower layers, which handle delivery.
This separation makes networks easier to change and repair. A laptop can switch from home Wi Fi to mobile data while the browser still uses the same web rules. When studying layers, focus on which information is meaningful at each point.
A switch mainly uses a local hardware address to move traffic within one network. A router makes decisions using IP addresses to move traffic between networks. A server application cares about items such as a web request, a game update, or an email message.
IP addresses identify locations in a network structure, not permanent identities of individual devices. A home router often gives devices private IP addresses that work only inside the home. The router may use network address translation to share one public IP address with many devices.
Port numbers add another level of detail. The IP address gets traffic to the right machine, while a port helps the machine send traffic to the right program.
For example, a computer can use a browser, a video call, and an online game at the same time because their traffic can be separated by ports. This is why an IP address alone does not fully describe one conversation.
Routers do not usually know the entire path across the internet. They use routing tables built from information shared among networks. Each router selects a next step that seems suitable at that moment.
As a result, packets from one file can travel by different routes and still reach the same destination. Networks limit endless travel by reducing a packet value called time to live at each router. A packet is discarded when that value reaches zero.
This protects the network when a routing mistake creates a loop. Congestion matters because a fast link does not remove waiting time.
When many packets reach a busy router, they may wait in a queue or be dropped. A connection with high bandwidth can still feel slow if delay is high or if dropped packets cause retransmission.
Different applications make different tradeoffs. TCP is a good fit when every part of a document, login, or software update must arrive correctly. Its checks add overhead and can delay delivery while missing data is recovered.
UDP is often useful for live audio, video, and games, where an old packet can be less useful than a newer one. Modern web tools may use UDP underneath while adding selected reliability features at a higher level. DNS can be a hidden source of delay because a device may need several lookups before connecting.
Cached DNS results can make later visits faster. HTTPS protects the contents of web traffic in transit and checks the identity of the site through certificates. It does not make every part of online activity invisible.
Network observers may still learn details such as the destination service, timing, and amount of traffic. When troubleshooting, compare symptoms carefully. A name lookup failure, a weak Wi Fi signal, a crowded router, and a distant server can all feel like a slow internet connection, but they need different fixes.