How TCP/IP Powers the Internet
- 108Unfamiliar
- 0Learning
- 0Familiar
- 0Mastered
- spaceFlip card
- KI knew it
- DI didn't know it
- ←Previous card
- →Next card
What are internet protocols, and why are they necessary?
Protocols are shared rules that let different machines communicate reliably, even when they are owned or operated by different organizations.
Or swipe the card
108 cards
What are internet protocols, and why are they necessary?
Protocols are shared rules that let different machines communicate reliably, even when they are owned or operated by different organizations.
What role do TCP and IP play in internet communication?
TCP and IP are a central pair of internet protocols: IP handles addressing and delivery between networks, while TCP provides reliable, ordered communication between programs.
How are the internet and the World Wide Web related?
The internet is the network infrastructure—the roads. The Web is one service that runs over it, like traffic on those roads.
What happened during the first attempted login over ARPANET on October 29, 1969?
Charley Kline sent the letters L and O to a computer at the Stanford Research Institute. The system crashed when he typed G.
What was the first message sent over the network that became the internet?
“lo”—the first two letters of “login.” The login succeeded about an hour later.
What problem did the TCP/IP design by Vint Cerf and Bob Kahn address?
It provided a way to connect different networks into a network of networks, even when those networks could not previously communicate.
What was ARPANET's 1983 “flag day”?
On January 1, 1983, ARPANET switched to TCP/IP in a single day. Many people consider this the internet's birthday.
When and where was the World Wide Web proposed, and how does it relate to the internet?
Tim Berners-Lee proposed the Web at CERN in 1989 as a service running on top of the internet.
Does the internet depend on one central computer controlling every connection?
No. It works through many independent machines following shared protocols, rather than through one computer in charge.
What is a network packet?
A packet is a small piece into which a message is divided for transmission across a network.
How does packet switching differ from circuit switching?
Circuit switching reserves a dedicated end-to-end line for a whole conversation. Packet switching divides data into packets that share network links with other traffic.
How are packets like numbered postcards?
Each packet carries addressing information and enough ordering information for the receiver to put the pieces back together, even if they take different routes or arrive out of order.
Why does packet switching make networks more resilient and efficient?
Many users can share the same links, and packets can take another route if a link fails.
What are the four TCP/IP layers and their basic jobs?
Application: creates the message; transport: delivers it to the right program; internet: addresses it across networks; link: moves it over one physical hop.
What is encapsulation in networking?
Each layer wraps the data from the layer above in its own header. At the destination, the layers remove those headers in reverse order.
How does the seven-layer OSI model relate to the four-layer TCP/IP model?
OSI divides networking jobs into seven layers, splitting some jobs more finely. In common usage, an OSI layer-seven problem is an application-layer problem.
How are bits represented on different physical network links?
Copper cables carry electrical pulses, fibre carries flashes of light, and Wi-Fi and mobile networks carry information on radio waves.
What is a MAC address, and how long is it?
A MAC address is a hardware address used on a local network. It is 48 bits long and is written as six pairs of letters and numbers.
How does a switch use MAC addresses?
A switch uses MAC addresses to deliver local-network frames to the intended device.
How does most data travel between continents, and what role do satellites play?
Undersea fibre-optic cables carry nearly all intercontinental internet data; satellites carry only a small share.
What does the IP-over-Avian-Carriers story demonstrate?
IP can use unusual links: a Linux group sent pings on carrier pigeons in 2001, and some returned after roughly 50 minutes to 1 hour 45 minutes. The transmission was slow and lossy but still valid internet communication.
What is an IP address used for?
It identifies a device's network-level destination so packets can be routed to the right computer.
How is an IPv4 address represented?
IPv4 uses a 32-bit address, conventionally written as four numbers from 0 to 255 separated by dots, such as 142.250.183.14.
How many addresses can IPv4 provide, and why did that become a problem?
IPv4 provides about 4.3 billion addresses. That seemed sufficient in 1981, but the number of connected phones, computers, TVs, and cameras eventually exceeded the supply.
When did the central pool of new IPv4 addresses run out?
The central pool ran out in 2011.
What is network address translation (NAT)?
NAT lets multiple devices using private addresses share a public IP address. The router tracks connections so replies can be sent to the correct device.
How can private IP addresses be reused, and how may mobile operators use NAT?
Private addresses such as 192.168.1.5 can be reused in many homes because they are not globally unique. Mobile operators may use large-scale NAT so thousands of phones share a public address.
What two parts make up an IP address block?
A network part identifies the address block, and a host part identifies a device within that block.
What do a subnet mask and CIDR slash number indicate?
They indicate where the network part of an address ends and the host part begins.
In the subnet 192.168.1.0/24, what do the network and host portions represent?
The first 24 bits identify the network; the remaining 8 bits identify addresses within it.
How many usable device addresses are available in a typical /24 subnet, and why?
There are 254 usable device addresses: of 256 total, one identifies the network and one is reserved for broadcasting to everyone on it.
What subnet mask is equivalent to /24?
255.255.255.0.
How do /16 and /30 blocks compare in size?
A /16 block has more than 65,000 addresses, while a /30 block has just four.
What is CIDR, and why is it useful?
Classless Inter-Domain Routing (CIDR) uses flexible prefix lengths to define address blocks, allowing organizations to receive blocks closer to the size they need.
What does a computer do if a destination is outside its own subnet?
It sends the packet to its default gateway, usually its router, which provides a path to other networks.
How are IPv6 addresses written?
IPv6 addresses are 128 bits long and written as eight groups of hexadecimal digits separated by colons. A long run of zeros can be shortened with a double colon.
How large is the IPv6 address space, and what practical advantage does it offer?
It contains about 340 undecillion addresses—3 followed by 38 zeros—enough for an enormous number of public addresses without relying on NAT.
What are two other features of IPv6 described in the content?
IPv6 simplified the packet header to help routers work faster, and it currently operates alongside IPv4 because the two versions cannot communicate directly.
What does a router do when forwarding a packet?
It examines the destination address and chooses the next network link or router, a process called hop-by-hop forwarding.
What information does a routing table contain?
It lists destination address blocks and the next hop to use for each one.
How does a router choose among matching routes?
It chooses the most specific matching route, meaning the one with the longest matching address prefix.
What does a router do with a destination that no specific route matches?
It sends the packet along its default route.
What is the IP time to live (TTL) field for?
TTL limits how long a packet can circulate. Each router reduces it by one; when it reaches zero, the packet is discarded and an error is sent to the sender.
How does traceroute reveal the routers between a computer and a destination?
It sends packets with gradually increasing TTL values. Each router that discards a packet because its TTL reaches zero reveals itself.
What command runs traceroute on Windows, and what might its results show?
Use
tracertfollowed by a website name. Results often show 10 to 20 hops and may include the names of cities along the route.What is an autonomous system (AS) on the internet?
It is a separately operated network or group of networks. The internet consists of tens of thousands of autonomous systems.
What does BGP do between autonomous systems?
The Border Gateway Protocol lets networks announce which address blocks are reachable through them; other networks pass those announcements onward.
Why can inaccurate BGP announcements cause widespread problems?
Networks may propagate and rely on route announcements from their neighbours, so a false or accidental announcement can redirect traffic across much of the internet.
How did a 2008 BGP incident make YouTube unreachable for many people?
Pakistan Telecom announced a more specific route for YouTube addresses as part of a local block. The announcement leaked globally, redirecting much of the world's YouTube traffic to Pakistan for about two hours.
How did Facebook's 2021 outage relate to BGP?
A maintenance command disconnected Facebook's backbone, and its BGP routes were withdrawn. Facebook, Instagram, and WhatsApp became unreachable for about six hours.
What is RPKI used for in internet routing?
Resource Public Key Infrastructure lets networks sign route announcements so that false claims can be identified and rejected.
What is a port number, and how does it complement an IP address?
An IP address identifies the computer; a port identifies the program or service on that computer, like a flat number within a building.
What is the range of port numbers?
Port numbers range from 0 to 65,535.
Which common services use ports 80, 443, 22, 25, and 53?
Port 80: ordinary web traffic; 443: secure HTTPS; 22: SSH; 25: sending email; 53: DNS.
What port does a client commonly use for its side of a connection?
It uses a random temporary port, allowing the operating system to distinguish its different conversations.
How is UDP like sending a postcard?
UDP sends data with little overhead but does not confirm delivery or put arriving pieces back in order.
How is TCP like registered post?
TCP numbers data, confirms delivery, resends lost pieces, and presents the data to the application in order.
Why do video calls, games, and live streams often use UDP, while downloads often use TCP?
For real-time media, a late packet may be less useful than a brief glitch. Downloads and similar transfers use TCP because every byte must arrive correctly and in order.
What are the three messages in a TCP handshake?
SYN: the client asks to begin and gives its starting sequence number; SYN-ACK: the server acknowledges and gives its own; ACK: the client acknowledges the server.
How does TCP detect and recover from missing data?
TCP numbers bytes with sequence numbers and uses acknowledgements to report received data. If an acknowledgement does not arrive in time, the sender retransmits the presumed-lost data.
How does TCP deliver a reliable, ordered stream despite packet loss or duplication?
It retransmits missing data, discards duplicates, fills gaps, and reassembles the bytes in order before passing them to the program.
How does a TCP connection close?
Each side sends a FIN to signal that it is finished, and the other side acknowledges the close.
What is TCP flow control?
The receiver reports how much buffer space it has available, called its window, so a fast sender does not overwhelm a slower receiver.
What is TCP congestion control?
It adjusts the sending rate to avoid overwhelming the network itself, rather than just protecting the receiving device.
What happened during the 1986 congestion collapse?
Internet speed between two Berkeley labs about 400 metres apart fell from 32 kilobits per second to 40 bits per second. Resending lost packets too aggressively caused more losses and still more retransmissions.
How does TCP congestion control respond to network conditions?
It starts gently with slow start and increases speed step by step. When it detects packet loss, it backs off sharply and then climbs again more slowly.
What is DNS, and what problem does it solve?
The Domain Name System translates human-readable names, such as youtube.com, into IP addresses that computers use to communicate.
How is the DNS namespace organized?
It is a hierarchy read from right to left: the root, top-level domains such as .com or .in, and then an organization's own name servers.
How does a DNS resolver find an address it does not already know?
It asks a root server where to find the top-level domain, asks that domain's server where to find the requested name, and then asks the site's name server for the final address.
How many root server identities are there, and how are they distributed?
There are 13 identities, named A through M, but each is replicated across hundreds of sites—more than 1,000 sites in total—so queries can reach a nearby copy.
What is DNS caching, and why does it speed up lookups?
Resolvers remember DNS answers for a period of time. Reusing a cached answer avoids repeating the full lookup and often makes it take only a few milliseconds.
Why can an incorrect DNS cache be harmful?
A wrong cached answer can direct people to the wrong destination, making DNS security important.
How did the Mirai botnet disrupt access to websites in 2016?
Made from hacked home cameras and video recorders, Mirai flooded DNS provider Dyn with junk traffic. Many people could not look up sites such as Twitter, Netflix, Reddit, and GitHub, even though those sites were running.
What does DHCP do when a device joins a Wi-Fi network?
Dynamic Host Configuration Protocol automatically provides the device with network settings, including an IP address.
What are the four DHCP messages remembered by the acronym DORA?
Discover: the device searches for a DHCP server; Offer: the server proposes an address; Request: the device asks to use it; Acknowledge: the server confirms.
Besides an IP address, what information can a router provide through DHCP?
The subnet mask, default gateway, and DNS servers to use.
What is a DHCP lease?
It is a temporary assignment of an address that expires unless the device renews it.
What does ARP do on a local network?
The Address Resolution Protocol finds the MAC address associated with a known local IP address by asking devices on the local network.
Why can ARP be a security weakness on a shared network?
A device can falsely claim to have the router's IP address and attract local traffic. This is one reason public Wi-Fi needs encryption.
What is HTTP, and what is its basic request-response pattern?
The HyperText Transfer Protocol is used for Web communication. A browser sends a request, such as GET, and the server responds with a status code, headers, and content.
What do HTTP status codes 200, 301, 404, and 500 mean?
200: OK; 301: moved; 404: not found; 500: server error. In general, 4xx codes indicate a client-side problem, while 5xx codes indicate a server-side problem.
What does HTTP status code 418 mean, and where did it originate?
It means “I'm a teapot.” It originated in a 1998 April Fools' standard about controlling coffee pots over the internet.
Why do websites use cookies?
HTTP does not remember earlier requests. Cookies let a website send a small note back and forth with the browser so it can remember things such as a login or shopping cart.
What is one feature of HTTP/2?
HTTP/2 can send many files over a single connection at once.
How does HTTP/3 differ from earlier HTTP versions?
HTTP/3 runs over QUIC, which is built on UDP. It can start connections faster and work better on unreliable mobile networks.
What risk does plain HTTP create on a public Wi-Fi network?
Because plain HTTP is readable text, someone on the communication path may be able to read or change it.
What is HTTPS?
HTTPS is HTTP protected by TLS, or Transport Layer Security.
What three guarantees does TLS provide?
Privacy: others cannot read the communication; integrity: changes can be detected; authenticity: the user is communicating with the intended site.
How can a TLS connection establish a shared secret when others can listen to the exchange?
The client and server use a public exchange combined with their own secret values. Each can derive the same shared key, while an observer who sees only the public exchange cannot readily work it out.
How does a browser check that an HTTPS server is the site it claims to be?
The server presents a digital certificate signed by a trusted certificate authority. The browser checks the signature against its list of trusted authorities.
How did free certificate services such as Let's Encrypt affect HTTPS adoption?
They helped make HTTPS certificates easier to obtain, contributing to widespread encryption of web pages.
Which protocols send and retrieve email?
SMTP sends messages between mail servers; IMAP lets users read their mail from different devices and keep an inbox synchronized.
What are SSH and FTP used for?
SSH provides a secure remote terminal for controlling distant servers. FTP was an older method for transferring files.
What are NTP and ICMP used for?
NTP synchronizes clocks across networks, which matters for tasks such as transactions and certificate checks. ICMP carries network error and test messages.
What does the ping tool do, and why was it given that name?
Ping sends an ICMP echo request and measures the reply time. Its creator, Mike Muuss, named it after the sonar sound of a submarine.
How do Wi-Fi, Bluetooth, and mobile networks fit into internet communication?
They provide nearby or cellular radio links, while the same IP packets can continue across the wider internet.
What does the internet's “hourglass” design represent?
IP is the narrow waist: many applications can use IP, and IP can run over many kinds of links, such as copper, fibre, radio, or even pigeon carriers.
What does DHCP provide when a phone joins Wi-Fi, and what local address mapping follows?
DHCP provides an IP address and other network settings. ARP then lets the phone find the router's MAC address on the local network.
What happens when a user enters a website name before the browser connects?
DNS finds the site's IP address, either from a cached answer or by querying the DNS hierarchy.
What connection setup occurs when a browser opens an HTTPS website?
The browser first establishes TCP with a three-way handshake. A TLS handshake then establishes secret keys and checks the server's certificate.
How does a browser request travel from a device to a web server?
The browser sends an encrypted HTTP request, which is wrapped in layer headers, passes through the home router's NAT, and is forwarded across routers using routes shared through BGP. It may travel over undersea fibre.
How does a web page return from the server to the browser?
The server sends the page as packets. TCP puts the data in order, TLS decrypts it, and the browser uses it to draw the page.
How quickly can the complete process of loading a web page happen?
The many steps—from address assignment and name lookup through secure transport and page delivery—often complete in less than a second.
Why is understanding network layers useful in technology careers?
Software development, cloud computing, cybersecurity, data work, and AI all depend on networks. Understanding the layers helps diagnose and fix problems.
What do the Windows tools ipconfig, ping, tracert, and nslookup help you investigate?
ipconfig shows address and gateway settings; ping tests reachability and response time; tracert shows network hops; nslookup asks DNS for information.
What can Wireshark show when you open a website?
It can display the packets flowing in and out of your computer, including DNS lookups and TCP and TLS handshakes.
What is a recommended order for learning networking concepts?
Start with layers and encapsulation, then IP addressing and subnetting, routing, TCP and UDP, DNS and DHCP and HTTP, and finally security topics such as TLS and firewalls.
How does the networking certification CCNA relate to the recommended learning path?
CCNA follows roughly the same progression through networking concepts.

Ask anything
We've read this whole study set, so questions about it get the best answers.