1. Home
  2. Explore
  3. Computer Science
  4. How TCP/IP Powers the Internet

Study methods

Flashcards
Quiz
Fill in the blanks
Written test
Lesson
Notes
Podcast
Content

How TCP/IP Powers the Internet

  • 88Unfamiliar
  • 0Learning
  • 0Familiar
  • 0Mastered
Topic: Internet Foundations

What are internet protocols, and why are they necessary?

88 questions

  1. 1

    What are internet protocols, and why are they necessary?

    Model answer

    Protocols are shared rules that let networked machines communicate reliably, even when they are owned by different organisations and do not know one another.

    Explanation

    The internet works through machines following common rules rather than relying on one central computer.

  2. 2

    What does TCP/IP refer to, and why is it important?

    Model answer

    TCP/IP is the most important pair of internet protocols. It provides rules used to send messages and other data across networks.

    Explanation

    The content describes TCP and IP as the internet’s shared grammar.

  3. 3

    What was the first message sent over ARPANET, and how did it come about?

    Model answer

    The first attempted login message was “LOGIN,” sent by Charley Kline in 1969. The system crashed after receiving “L” and “O,” so the first message was “LO.”

    Explanation

    The login succeeded about an hour later.

  4. 4

    Why was TCP/IP designed, and who published its design?

    Model answer

    Vint Cerf and Bob Kahn published a design in 1974 to connect separate networks that could not previously communicate with one another. It became TCP/IP.

    Explanation

    The design addressed the problem of isolated networks.

  5. 5

    What was the significance of ARPANET’s 1983 “flag day”?

    Model answer

    On January 1, 1983, ARPANET switched to TCP/IP in a single day. Many people regard this as the internet’s birthday.

    Explanation

    The change made TCP/IP the network’s shared protocol system.

  6. 6

    How does the World Wide Web relate to the internet?

    Model answer

    The internet is the underlying network, while the Web is one service that runs on it. Tim Berners-Lee proposed the Web at CERN in 1989.

    Explanation

    The content compares the internet to roads and the Web to one kind of traffic on them.

  7. 7

    How does packet switching differ from circuit switching?

    Model answer

    Circuit switching reserves a dedicated end-to-end line for a whole call, including pauses. Packet switching breaks data into pieces that share network links with other traffic.

    Explanation

    Packet switching avoids keeping an entire line reserved for one communication.

  8. 8

    What information does a packet carry, and how can its data be reconstructed?

    Model answer

    A packet carries addressing information and, conceptually, a sequence or page number. The receiving system uses these numbers to put the pieces back in order.

    Explanation

    The postcard analogy illustrates how separately travelling pieces can be reassembled.

  9. 9

    Why can packets from one message travel by different routes and arrive out of order?

    Model answer

    Packets are sent independently rather than occupying a reserved path, so different routes can carry them and they may arrive in a different order. Sequence information lets the receiver reassemble them.

    Explanation

    Independent routing also allows packets to use another route if one is broken.

  10. 10

    How does packet switching help a network share capacity and recover from damage?

    Model answer

    Many users can share the same links by sending packets as capacity becomes available. If a route fails, packets can travel another way, making the network more resilient.

    Explanation

    Resilience was one of the early goals of the network design.

  11. 11

    What does it mean that the internet is a “network of networks”?

    Model answer

    It means many separately operated networks connect and exchange traffic using shared protocols such as TCP/IP.

    Explanation

    The original need for TCP/IP arose because different networks could not communicate.

  12. 12

    What does the IP-over-Avian-Carriers example demonstrate?

    Model answer

    It demonstrates that IP packets can be carried over an unusual medium, such as pigeons, if the packets are transported and delivered. A 2001 experiment sent nine pings by pigeon; four returned after roughly fifty minutes to an hour and forty-five minutes.

    Explanation

    The experiment was slow and lossy, but still constituted a valid way of carrying internet packets.

  13. 13

    What is the basic idea behind the networking hourglass model?

    Model answer

    IP is the narrow waist: many applications can use IP, and IP can run over many different kinds of links.

    Explanation

    This design allows applications and physical link technologies to vary while using the same IP packets.

  14. 14

    What are the four TCP/IP layers, and what is each responsible for?

    Model answer

    The application layer contains services such as web pages and email; the transport layer handles delivery to programs; the internet layer addresses packets across networks; and the link layer moves data over a local physical hop.

    Explanation

    Each layer has a distinct job and relies on the layer below it.

  15. 15

    What is encapsulation in networking?

    Model answer

    Encapsulation is the process in which each layer wraps data from the layer above with its own header. At the destination, the layers remove those headers in reverse order.

    Explanation

    The process is analogous to placing successively wrapped items inside larger packages.

  16. 16

    How does the OSI model differ from the TCP/IP model?

    Model answer

    The OSI model divides networking functions into seven layers, while the TCP/IP model described here uses four. OSI separates some jobs more finely and its layer numbers are used in everyday technical discussion.

    Explanation

    A “layer seven” problem refers to the application layer.

  17. 17

    How are bits physically represented across different network links?

    Model answer

    Copper cables carry electrical pulses, fibre-optic cables carry flashes of light, and Wi-Fi and mobile networks carry data on radio waves.

    Explanation

    The same bits can be transmitted using different physical signals.

  18. 18

    What is a MAC address, and how is it represented?

    Model answer

    A MAC address is a network card’s hardware identifier. It is forty-eight bits long and is commonly written as six pairs of letters and numbers.

    Explanation

    MAC addresses identify devices on a local network link.

  19. 19

    What does an Ethernet switch use MAC addresses for?

    Model answer

    A switch uses MAC addresses to deliver frames to the correct device on the local network.

    Explanation

    MAC addressing helps direct traffic over a local link.

  20. 20

    What carries most data between continents, and what role do satellites play?

    Model answer

    Undersea fibre-optic cables carry nearly all data travelling between continents. Satellites carry only a small share.

    Explanation

    The cables are laid on the ocean floor and form a major part of intercontinental connectivity.

  21. 21

    How does the link layer relate to IP?

    Model answer

    The link layer carries data over one physical hop, such as Wi-Fi, Ethernet, or fibre, while IP packets can travel across many such links.

    Explanation

    IP can run over different link technologies without changing the basic role of IP.

  22. 22

    What is an IPv4 address, and how is it written?

    Model answer

    IPv4 uses a thirty-two-bit address, usually written as four decimal numbers from zero to 255 separated by dots, such as 142.250.183.14.

    Explanation

    The dotted form represents the address’s four numeric components.

  23. 23

    Why did the IPv4 address supply become insufficient?

    Model answer

    IPv4 provides about 4.3 billion addresses, a supply that seemed ample in 1981 but became inadequate as the number of connected devices grew. The central pool of new IPv4 addresses ran out in 2011.

    Explanation

    Phones, computers, televisions, and cameras increased demand beyond the available supply.

  24. 24

    How does NAT let many home devices share one public IPv4 address?

    Model answer

    A home router uses one public address on the internet and private addresses for devices inside the home. It keeps track of connections so replies can be sent to the device that requested them.

    Explanation

    The router’s tracking is compared to a building watchman directing letters to the correct flat.

  25. 25

    How can mobile operators use NAT?

    Model answer

    A mobile operator can use NAT on a large scale so that thousands of phones share one public IP address.

    Explanation

    NAT allows many devices to communicate using fewer public IPv4 addresses.

  26. 26

    What are the network and host parts of an IP address?

    Model answer

    The network part identifies the address block or area, while the host part identifies a device within that block.

    Explanation

    This is analogous to a postal area code and a house number.

  27. 27

    What information does a subnet mask or slash notation provide?

    Model answer

    It indicates where an IP address is divided into its network and host parts.

    Explanation

    The slash number specifies how many initial bits belong to the network.

  28. 28

    In 192.168.1.0/24, how are the address bits divided, and how many devices can join the subnet?

    Model answer

    The first twenty-four bits identify the network and the last eight bits identify hosts. Of the 256 possible addresses, the network and broadcast addresses are reserved, leaving 254 for devices.

    Explanation

    The /24 mask is also written as 255.255.255.0.

  29. 29

    How does changing a CIDR prefix affect the size of an address block?

    Model answer

    A different slash number changes the block size: /16 has over 65,000 addresses, while /30 has just four. CIDR lets organisations receive blocks suited to their needs.

    Explanation

    The prefix specifies how many bits are assigned to the network portion.

  30. 30

    What does a device do when a destination is inside or outside its subnet?

    Model answer

    If the destination is in its own subnet, the device sends the packet directly. Otherwise, it sends the packet to its default gateway, usually its router.

    Explanation

    The gateway provides a path from the local network to other networks.

  31. 31

    How does IPv6 address the shortage of IPv4 addresses?

    Model answer

    IPv6 uses 128-bit addresses, providing about 340 undecillion possible addresses. This enormous supply can give devices their own public addresses without relying on NAT for address conservation.

    Explanation

    The address total is described as a 3 followed by 38 zeros.

  32. 32

    How are IPv6 addresses written, and how can they be shortened?

    Model answer

    IPv6 addresses are written as eight groups of hexadecimal digits separated by colons. A long run of zeros can be shortened with a double colon.

    Explanation

    This notation represents the larger address space compactly.

  33. 33

    What are two design or deployment facts about IPv6?

    Model answer

    IPv6 simplified the packet header to help routers work faster, but IPv4 and IPv6 cannot communicate directly. Therefore, both versions currently operate side by side.

    Explanation

    The content also notes that a large and growing share of traffic already uses IPv6.

  34. 34

    What is a router’s basic role in forwarding packets?

    Model answer

    A router examines a packet’s destination address and chooses the next road or hop for it. It does not need to know the packet’s entire route.

    Explanation

    This process is called hop-by-hop forwarding.

  35. 35

    What information does a routing table contain, and how does a router choose a route?

    Model answer

    A routing table lists address blocks and the next hop for each. A router selects the most specific matching entry, called the longest prefix match, or uses its default route if it has no recognised match.

    Explanation

    The router uses this table to decide where to forward a packet next.

  36. 36

    How does the time-to-live field prevent packets from circulating forever?

    Model answer

    Each router reduces a packet’s TTL by one. When the value reaches zero, the packet is discarded and the sender receives an error message.

    Explanation

    The decreasing counter limits how many hops a packet can take.

  37. 37

    How does traceroute use TTL to reveal a packet’s route?

    Model answer

    Traceroute sends packets with increasing TTL values, starting at one. Each router that discards a packet because its TTL expires identifies itself, revealing successive hops.

    Explanation

    On Windows, the corresponding command is tracert.

  38. 38

    What are autonomous systems, and how do they exchange routes?

    Model answer

    Autonomous systems are separately operated networks. They use BGP to announce to neighbours which address blocks can be reached through them.

    Explanation

    Neighbouring networks pass route announcements onward across the internet.

  39. 39

    Why is BGP sometimes described as “gossip between giants”?

    Model answer

    BGP networks share reachability announcements with their neighbours, which pass them along. This resembles gossip because route information spreads from network to network.

    Explanation

    For a long time, networks largely trusted the announcements they received.

  40. 40

    How did the 2008 Pakistan Telecom incident affect access to YouTube?

    Model answer

    Pakistan Telecom announced a more specific route for YouTube intended to remain local, but the announcement leaked globally. Much of the world then sent YouTube traffic toward Pakistan, making the service unreachable for many people for about two hours.

    Explanation

    The incident illustrates how an erroneous BGP route announcement can redirect traffic widely.

  41. 41

    What caused Facebook, Instagram, and WhatsApp to disappear from the internet in October 2021?

    Model answer

    A maintenance command disconnected Facebook’s backbone, causing its BGP routes to be withdrawn. Its services were unreachable for about six hours.

    Explanation

    The outage showed how withdrawing routes can remove services from the wider internet.

  42. 42

    What role does RPKI play in internet routing?

    Model answer

    RPKI lets networks sign route announcements so that false claims can be detected and rejected.

    Explanation

    It helps address the risk of trusting incorrect BGP announcements.

  43. 43

    Why are ports needed in addition to IP addresses?

    Model answer

    An IP address identifies a device, but a port identifies the program or service on that device that should receive the traffic.

    Explanation

    The analogy is a building address for the IP and a flat number for the port.

  44. 44

    What is the range of port numbers, and what are common examples?

    Model answer

    Ports range from 0 to 65,535. Common ports include 80 for ordinary web traffic, 443 for HTTPS, 22 for SSH, 25 for sending email, and 53 for DNS.

    Explanation

    Different services commonly listen on different port numbers.

  45. 45

    Why does a client use a temporary port during a connection?

    Model answer

    The client uses a random temporary port for its side of the conversation so that the reply can be associated with the right communication.

    Explanation

    The destination service is identified by its port, while the client’s temporary port identifies its end of the exchange.

  46. 46

    Compare UDP and TCP in terms of delivery guarantees.

    Model answer

    UDP sends data without confirming delivery or arranging it in order. TCP confirms delivery, retransmits lost pieces, and presents data in order.

    Explanation

    UDP is compared to ordinary postcards, while TCP is compared to tracked registered post.

  47. 47

    Why might a video call or online game use UDP instead of TCP?

    Model answer

    These applications often prefer UDP because a late packet may no longer be useful. A brief glitch can be preferable to waiting for retransmission and freezing the interaction.

    Explanation

    UDP prioritises speed and simplicity over guaranteed, ordered delivery.

  48. 48

    Why do web pages, email, and file downloads commonly use TCP?

    Model answer

    They use TCP because their data needs to arrive completely and in the correct order.

    Explanation

    TCP retransmits missing pieces and reassembles the stream reliably.

  49. 49

    What are the three messages of the TCP handshake, and what does each do?

    Model answer

    The client sends SYN to request a connection and provide its starting sequence number. The server replies SYN-ACK with its own starting number, and the client sends ACK to confirm it heard the server.

    Explanation

    The three messages establish that both sides are ready to communicate.

  50. 50

    How does TCP ensure that data is delivered as a complete, ordered stream?

    Model answer

    TCP numbers bytes, uses acknowledgements to indicate what has arrived, retransmits data when an acknowledgement does not arrive in time, discards duplicates, and fills gaps.

    Explanation

    These mechanisms allow the receiving program to get an ordered stream.

  51. 51

    How does a TCP connection close?

    Model answer

    Each side sends FIN to say it is finished, and the other side confirms.

    Explanation

    The exchange provides an orderly way to end the conversation.

  52. 52

    What is TCP flow control, and what problem does it prevent?

    Model answer

    Flow control lets the receiver tell the sender how much space it has available, called its window. This prevents a fast sender from overwhelming a slower receiver.

    Explanation

    A slow phone, for example, should not be flooded by a fast server.

  53. 53

    What is TCP congestion control, and why is it needed?

    Model answer

    Congestion control adjusts a sender’s rate to protect the network from overload. It helps avoid a cycle in which losses cause retransmissions that create even more congestion and losses.

    Explanation

    The 1986 congestion collapse showed how repeatedly resending at high speed can worsen a traffic jam.

  54. 54

    How does TCP’s slow start and response to loss help manage congestion?

    Model answer

    TCP begins cautiously and increases its sending rate step by step. When it detects loss, it backs off sharply and then gradually increases again.

    Explanation

    This adjustment lets connections share network capacity more politely.

  55. 55

    What is DNS, and why is its information organised as a hierarchy?

    Model answer

    DNS translates domain names into IP addresses. Its information is divided into a tree because one central phone book could not hold all the world’s names.

    Explanation

    The hierarchy includes the root, top-level domains, and organisations’ own name servers.

  56. 56

    In what order are DNS hierarchy levels consulted when resolving a domain name?

    Model answer

    A resolver can ask a root server where to find the top-level domain, ask that domain’s server where to find the organisation’s name server, and then ask that server for the final address.

    Explanation

    For example, resolving youtube.com can involve the root, the .com server, and YouTube’s own name server.

  57. 57

    What is a DNS resolver, and how can caching speed up lookups?

    Model answer

    A resolver, often run by an internet provider, performs DNS lookups for a device. It can return an answer from its cache instead of repeating the full series of queries.

    Explanation

    Cached answers mean most lookups take only a few milliseconds.

  58. 58

    How can DNS caching create a problem if the cached answer is wrong?

    Model answer

    A wrong cached DNS answer can direct people to the wrong place.

    Explanation

    This is one reason DNS security matters.

  59. 59

    What does the number of DNS root server identities tell us about the root server system?

    Model answer

    There are thirteen root server identities, named A through M, but each is replicated at hundreds of sites worldwide, more than a thousand sites in total.

    Explanation

    The replicas share the same addresses so queries can reach a nearby site.

  60. 60

    How did the 2016 Mirai attack disrupt access to many websites?

    Model answer

    Mirai, a botnet built from hacked home cameras and video recorders, flooded the DNS provider Dyn with junk traffic. People then could not look up addresses for services such as Twitter, Netflix, Reddit, and GitHub, even though those sites were running.

    Explanation

    The failure was in resolving site names, not necessarily in the sites themselves.

  61. 61

    What is DHCP, and what does the acronym DORA represent?

    Model answer

    DHCP automatically provides a device with network configuration. DORA stands for Discover, Offer, Request, and Acknowledge: the device asks for a server, receives an offered address, requests it, and receives confirmation.

    Explanation

    This exchange allows a device to join a Wi-Fi network without manually entering its address.

  62. 62

    Besides an IP address, what network settings can DHCP provide?

    Model answer

    DHCP can provide the subnet mask, default gateway, and DNS servers as well as the IP address.

    Explanation

    These settings help the device communicate locally and reach other networks and services.

  63. 63

    Why is a DHCP address described as a lease?

    Model answer

    A DHCP address is assigned for a limited period and expires unless the device renews it.

    Explanation

    The address is temporarily allocated rather than permanently given to the device.

  64. 64

    What problem does ARP solve on a local network?

    Model answer

    ARP finds the MAC address associated with a known local IP address, such as the router’s address.

    Explanation

    A device needs the destination MAC address to send a frame on the local network.

  65. 65

    How does ARP discover a device’s MAC address?

    Model answer

    A device broadcasts a question on the local network asking who has a particular IP address. The device using that address responds with its MAC address.

    Explanation

    Only the device that recognises the requested IP should answer.

  66. 66

    Why can ARP be a security weakness on a shared network?

    Model answer

    ARP trusts local replies, so a device can lie and claim to be the router. Encryption on public Wi-Fi helps protect communications from risks on the shared network.

    Explanation

    The broadcast-based discovery mechanism does not itself verify that the reply is truthful.

  67. 67

    How does HTTP exchange information between a browser and a server?

    Model answer

    HTTP uses requests and responses: a browser sends a request, such as a GET for a page, and the server returns a status code, headers, and content.

    Explanation

    HTTP is the HyperText Transfer Protocol used by the Web.

  68. 68

    What do HTTP status codes 200, 301, 404, and 500 mean?

    Model answer

    200 means OK, 301 means the resource has moved, 404 means it was not found, and 500 means the server encountered an error.

    Explanation

    These codes report the outcome of an HTTP request.

  69. 69

    What is the general distinction between HTTP status codes in the 400s and 500s?

    Model answer

    Four-hundred codes indicate a client-side mistake, while five-hundred codes indicate a server-side problem.

    Explanation

    This distinction helps identify which side of a request encountered an error.

  70. 70

    What is HTTP 418, and where did the code originate?

    Model answer

    HTTP 418 means “I’m a teapot.” It originated in a 1998 April Fools’ standard in which a teapot asked to brew coffee should refuse.

    Explanation

    Some real websites still return the code as a joke.

  71. 71

    How do cookies allow a website to remember information between HTTP requests?

    Model answer

    A website gives the browser small notes called cookies, which the browser sends back with later requests. A site can use them to remember a login or shopping cart.

    Explanation

    Cookies help provide continuity because HTTP itself has no memory between requests.

  72. 72

    How do HTTP/2 and HTTP/3 differ in their approach?

    Model answer

    HTTP/2 can send many files over one connection at once. HTTP/3 runs over QUIC, which is built on UDP and is designed to start connections faster and work better on unstable mobile networks.

    Explanation

    Both versions develop HTTP’s ability to handle web traffic efficiently.

  73. 73

    Why is plain HTTP unsafe on a network that others can observe?

    Model answer

    Plain HTTP travels as readable text, so someone on the path could read or change it.

    Explanation

    A person sharing a public Wi-Fi network could potentially observe unencrypted traffic.

  74. 74

    What is HTTPS, and what role does TLS play in it?

    Model answer

    HTTPS is HTTP protected by TLS, or Transport Layer Security. TLS protects the connection between the browser and the site.

    Explanation

    The browser padlock indicates that the connection uses HTTPS.

  75. 75

    What three guarantees does TLS provide?

    Model answer

    TLS provides privacy, integrity, and authenticity: others cannot read the communication, changes can be detected, and the browser can verify the site’s identity.

    Explanation

    Together, these properties protect the confidentiality and trustworthiness of the connection.

  76. 76

    How can a browser check that a website’s identity is trustworthy?

    Model answer

    The server presents a certificate, a digital ID signed by a trusted certificate authority. The browser checks the signature against authorities it already trusts.

    Explanation

    This helps the browser distinguish the intended site from an impostor.

  77. 77

    How does the paint-mixing analogy explain agreeing on a shared secret over a public connection?

    Model answer

    Each side combines a secret colour with a public colour, exchanges the mixtures, and adds its own secret to the other side’s mixture. Both arrive at the same final colour, while someone who saw only the exchanged mixtures cannot determine it.

    Explanation

    TLS uses mathematics rather than paint to achieve this shared-secret agreement.

  78. 78

    What helped make HTTPS much more common on websites?

    Model answer

    Free certificate services such as Let’s Encrypt helped websites adopt HTTPS. Today, most web pages people visit are encrypted.

    Explanation

    Certificates support the authentication required for HTTPS.

  79. 79

    What roles do SMTP and IMAP play in email?

    Model answer

    SMTP sends messages between mail servers, while IMAP lets users read messages from different devices.

    Explanation

    IMAP helps an inbox appear consistently on a phone and a laptop.

  80. 80

    What are SSH and FTP used for?

    Model answer

    SSH provides a secure remote terminal for controlling distant servers. FTP was an older method for transferring files.

    Explanation

    They support remote administration and file movement, respectively.

  81. 81

    Why is NTP useful?

    Model answer

    NTP synchronises clocks across the world to within milliseconds. Accurate time matters for tasks such as bank transactions and security certificates.

    Explanation

    Many digital systems depend on devices having closely aligned clocks.

  82. 82

    What is ICMP used for, and how does ping work?

    Model answer

    ICMP carries network error and test messages. Ping sends an echo request and measures the time until the reply returns.

    Explanation

    Mike Muuss named ping after the sonar-like sound of sending a signal and waiting for an echo.

  83. 83

    How do Wi-Fi, Bluetooth, and mobile networks fit into internet communication?

    Model answer

    Wi-Fi and Bluetooth provide nearby radio links, while mobile networks provide a radio link to a tower. IP packets can flow over these links.

    Explanation

    Different radio technologies can carry the same kind of IP traffic.

  84. 84

    What happens when a phone joins Wi-Fi and then requests a website using HTTPS?

    Model answer

    DHCP supplies network settings, and ARP finds the router’s MAC address. DNS resolves the website name; the browser connects to port 443 using TCP, performs a TLS handshake, and sends an encrypted HTTP request.

    Explanation

    These steps configure the device, locate the site, and establish a secure web connection.

  85. 85

    How does a web request travel from a home network to a server and back?

    Model answer

    The request is encapsulated layer by layer, passes through the home router’s NAT, and is forwarded across routers using routes shared through BGP, potentially over undersea fibre. The server responds with packets, which TCP orders, TLS decrypts, and the browser displays.

    Explanation

    The reply follows the networking process in reverse at the receiving end, often completing in less than a second.

  86. 86

    What do ipconfig, ping, tracert, and nslookup help a user examine?

    Model answer

    On Windows, ipconfig shows the IP address, subnet mask, and gateway; ping tests reachability and response time; tracert shows network hops; and nslookup directly queries DNS.

    Explanation

    These tools help investigate different parts of a network connection.

  87. 87

    What can Wireshark reveal about a computer’s network activity?

    Model answer

    Wireshark displays packets flowing into and out of a computer, allowing a user to observe events such as DNS lookups and TCP and TLS handshakes.

    Explanation

    It makes network exchanges visible for inspection.

  88. 88

    Why is understanding networking layers useful when diagnosing technical problems?

    Model answer

    Networking problems can occur at different layers, so understanding each layer helps identify where communication is failing. Network knowledge is useful in fields such as software development, cloud computing, cybersecurity, data, and AI.

    Explanation

    The content emphasises that the person who understands the layers can often fix what has broken.

1 of 88
Question 1 of 88

Ask anything

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

FlashcardsQuizFill in the blanksWritten testLessonNotesPodcastContent