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

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

What makes it possible for independently owned machines to exchange information over the internet?

91 questions

  1. 1

    What makes it possible for independently owned machines to exchange information over the internet?

    1. A

      They all reserve a dedicated cable for each user

    2. B

      They all follow a shared set of communication rules called protocols

    3. C

      They all connect to one central computer that directs every message

    4. D

      They all use hardware made by the same company

    Correct answer
    B

    They all follow a shared set of communication rules called protocols

    Explanation

    The internet works because machines follow shared protocols. No single central computer controls the entire network.

  2. 2

    What is the relationship between TCP/IP and communication on the internet?

    1. A

      TCP/IP is a web browser that translates names into page contents

    2. B

      TCP/IP is a cable standard used only for communication under the ocean

    3. C

      TCP/IP is a single computer that stores websites for the rest of the network

    4. D

      TCP/IP is a pair of protocols that provides shared rules for internet communication

    Correct answer
    D

    TCP/IP is a pair of protocols that provides shared rules for internet communication

    Explanation

    TCP and IP are core protocols: they provide rules for transporting data and addressing packets across networks.

  3. 3

    What happened during the first attempted login over ARPANET on October 29, 1969?

    1. A

      The full word LOGIN arrived, but the remote computer rejected the password

    2. B

      The computer at the remote site crashed before receiving any letters

    3. C

      The letters L and O arrived, but the system crashed after G was sent

    4. D

      The letter G arrived first, and the network failed before L and O were sent

    Correct answer
    C

    The letters L and O arrived, but the system crashed after G was sent

    Explanation

    Charley Kline sent L and O successfully, but the system crashed when he sent G. The first transmitted message was therefore “lo”; the login succeeded about an hour later.

  4. 4

    What problem was the 1974 TCP/IP design intended to address?

    1. A

      Web browsers could not display pages using images

    2. B

      Local networks had no way to assign MAC addresses

    3. C

      Telephone circuits could not carry voice during a call

    4. D

      Different networks could not communicate with one another

    Correct answer
    D

    Different networks could not communicate with one another

    Explanation

    Vint Cerf and Bob Kahn designed TCP/IP to connect separate networks into a network of networks.

  5. 5

    Why is January 1, 1983, often called the internet’s “flag day”?

    1. A

      The first IPv6 address was assigned on that day

    2. B

      ARPANET switched to TCP/IP on that day

    3. C

      The World Wide Web was proposed on that day

    4. D

      The first packet was sent over ARPANET on that day

    Correct answer
    B

    ARPANET switched to TCP/IP on that day

    Explanation

    ARPANET changed over to TCP/IP in a single day on January 1, 1983, a transition engineers call flag day.

  6. 6

    How does the World Wide Web relate to the internet?

    1. A

      The web is the physical cable system that connects continents

    2. B

      The web is the central network that controls all other networks

    3. C

      The web is one service that runs on top of the internet

    4. D

      The web is another name for the TCP/IP protocol pair

    Correct answer
    C

    The web is one service that runs on top of the internet

    Explanation

    The internet is the underlying network infrastructure; the World Wide Web is one service that uses it.

  7. 7

    How does packet switching differ from the circuit approach used by older telephone networks?

    1. A

      Packet switching reserves one complete line for each message until delivery

    2. B

      Packet switching sends separate pieces without reserving one end-to-end line

    3. C

      Packet switching requires every piece to follow the same physical route

    4. D

      Packet switching sends data only when both users are silent

    Correct answer
    B

    Packet switching sends separate pieces without reserving one end-to-end line

    Explanation

    Circuit-based telephone calls reserve a dedicated line for the whole call. Packet switching breaks messages into packets that share network links with other traffic.

  8. 8

    What allows a recipient to rebuild a message when its packets arrive in a different order?

    1. A

      A copy of the message stored at every router

    2. B

      The physical order of cables along the route

    3. C

      Packet numbering or sequence information

    4. D

      A dedicated circuit held open during transmission

    Correct answer
    C

    Packet numbering or sequence information

    Explanation

    Packets carry information such as sequence numbers, which allows the receiving system to put the pieces back in order.

  9. 9

    Why can packet switching help the internet continue working when a route is damaged?

    1. A

      The sender stops using packets and sends the message as a phone call

    2. B

      Packets can be sent along another available route

    3. C

      The damaged cable is automatically replaced by a dedicated circuit

    4. D

      Every router stores a complete copy of every message

    Correct answer
    B

    Packets can be sent along another available route

    Explanation

    Because there is no single reserved route for a message, packets can travel another way if one route is broken. This supports network resilience.

  10. 10

    What does the OSI model provide in comparison with the four-layer TCP/IP model?

    1. A

      A naming system that converts website names into IP addresses

    2. B

      A method for reserving a dedicated route for each connection

    3. C

      A seven-layer breakdown that divides networking jobs more finely

    4. D

      A physical network that replaces TCP/IP for all internet traffic

    Correct answer
    C

    A seven-layer breakdown that divides networking jobs more finely

    Explanation

    The OSI model divides networking functions into seven layers. Engineers also use its layer numbers; for example, layer seven refers to the application layer.

  11. 11

    Which task belongs to the application layer of the TCP/IP model?

    1. A

      Keeping data complete and ordered for a program

    2. B

      Moving a frame over one Wi-Fi or Ethernet link

    3. C

      Providing the content of a web page, email, or chat message

    4. D

      Choosing the next router for a packet crossing the internet

    Correct answer
    C

    Providing the content of a web page, email, or chat message

    Explanation

    The application layer represents the message or service being used, such as a web page, email, or chat.

  12. 12

    What is the transport layer responsible for in the TCP/IP model?

    1. A

      Converting light pulses into the words shown in a browser

    2. B

      Delivering frames across one physical link using MAC addresses

    3. C

      Choosing an IP route across networks and assigning network addresses

    4. D

      Getting data to the right program and, with TCP, providing completeness and order

    Correct answer
    D

    Getting data to the right program and, with TCP, providing completeness and order

    Explanation

    The transport layer uses protocols such as TCP or UDP to communicate with programs. TCP also provides reliable, ordered delivery.

  13. 13

    Which function is performed by the internet layer?

    1. A

      Moving data only across the current Wi-Fi or Ethernet link

    2. B

      Carrying IP addressing information so packets can cross networks

    3. C

      Selecting the web page content that an application should display

    4. D

      Converting a domain name into a set of DNS records

    Correct answer
    B

    Carrying IP addressing information so packets can cross networks

    Explanation

    The internet layer uses IP addresses to move packets across interconnected networks.

  14. 14

    What does the link layer do?

    1. A

      Looks up the IP address associated with a website name

    2. B

      Sets the route that packets will take across the entire internet

    3. C

      Moves data over one physical hop, such as Wi-Fi, Ethernet, or fibre

    4. D

      Chooses the final program on a computer using a port number

    Correct answer
    C

    Moves data over one physical hop, such as Wi-Fi, Ethernet, or fibre

    Explanation

    The link layer handles movement over an individual network link, such as a Wi-Fi signal, Ethernet cable, or fibre connection.

  15. 15

    What is encapsulation in layered networking?

    1. A

      Each layer wraps data from the layer above in its own header

    2. B

      A network reserves one physical cable for the entire conversation

    3. C

      The receiving computer replaces IP addresses with website names

    4. D

      Every router stores an entire message before sending it onward

    Correct answer
    A

    Each layer wraps data from the layer above in its own header

    Explanation

    Each layer adds its own header around the data passed down from the layer above. At the destination, layers remove those headers in reverse order.

  16. 16

    How are bits represented in different transmission media?

    1. A

      As sound waves in copper, light flashes in Wi-Fi, and electrical pulses in mobile networks

    2. B

      As light flashes in copper, electrical pulses in fibre, and packets in radio links

    3. C

      As electrical pulses in copper, light flashes in fibre, and radio waves over wireless links

    4. D

      As identical electrical pulses in copper, fibre, Wi-Fi, and mobile networks

    Correct answer
    C

    As electrical pulses in copper, light flashes in fibre, and radio waves over wireless links

    Explanation

    Bits can be carried as electrical pulses in copper, flashes of light in fibre, or signals on radio waves over Wi-Fi and mobile networks.

  17. 17

    What is a MAC address, and how is it used on a local network?

    1. A

      A domain name that a resolver uses to locate a website server

    2. B

      A 48-bit hardware address that a switch uses to deliver frames to a device

    3. C

      A 32-bit internet address that a router uses to choose a global route

    4. D

      A temporary port number that identifies a browser during a download

    Correct answer
    B

    A 48-bit hardware address that a switch uses to deliver frames to a device

    Explanation

    A network card has a 48-bit MAC address, commonly written as six pairs of letters and numbers. Local switches use these hardware addresses to deliver frames.

  18. 18

    Which statement best describes the physical infrastructure carrying data between continents?

    1. A

      Undersea fibre cables carry nearly all intercontinental data, while satellites carry a small share

    2. B

      Carrier pigeons carry most intercontinental data, while fibre serves only local networks

    3. C

      Satellites carry nearly all intercontinental data, while undersea fibre carries a small share

    4. D

      Copper telephone cables carry nearly all intercontinental data, while radio is unused

    Correct answer
    A

    Undersea fibre cables carry nearly all intercontinental data, while satellites carry a small share

    Explanation

    Undersea fibre-optic cables laid on the sea floor carry nearly all data traveling between continents; satellites carry only a small share.

  19. 19

    What did the pigeon-based internet experiment demonstrate?

    1. A

      Carrier pigeons are more reliable than routers for moving data

    2. B

      A network is valid only when every packet arrives in less than a second

    3. C

      IP packets can be carried over an unusual link, although delivery may be slow and unreliable

    4. D

      IP requires a fibre-optic link and cannot operate over other media

    Correct answer
    C

    IP packets can be carried over an unusual link, although delivery may be slow and unreliable

    Explanation

    The Bergen experiment sent pings using pigeons: some returned after roughly fifty minutes to an hour and three quarters. It showed that packets can travel over an unusual medium, though slowly and with losses.

  20. 20

    What does the networking “hourglass” model emphasize?

    1. A

      IP is a common middle layer that can work over different links and support different applications

    2. B

      TCP is the only protocol that can run above or below the network layer

    3. C

      Wi-Fi and fibre use different IP protocols that cannot share applications

    4. D

      Every application must use one particular physical cable type

    Correct answer
    A

    IP is a common middle layer that can work over different links and support different applications

    Explanation

    IP forms the narrow waist of the hourglass: many applications can use IP, and IP packets can travel over different link technologies.

  21. 21

    How is an IPv4 address represented, and how long is it?

    1. A

      As four colon-separated decimal numbers, with a total length of 128 bits

    2. B

      As four dotted decimal numbers, with a total length of 32 bits

    3. C

      As six pairs of hexadecimal digits, with a total length of 48 bits

    4. D

      As eight colon-separated hexadecimal groups, with a total length of 32 bits

    Correct answer
    B

    As four dotted decimal numbers, with a total length of 32 bits

    Explanation

    IPv4 addresses contain 32 bits and are commonly written as four decimal numbers separated by dots, such as 142.250.183.14.

  22. 22

    Why did the supply of IPv4 addresses become inadequate?

    1. A

      IPv4 addresses were limited to devices connected by fibre-optic cable

    2. B

      Each IPv4 address can be used by only one program on one computer

    3. C

      Routers stopped accepting IPv4 addresses after the web was introduced

    4. D

      Its roughly 4.3 billion possible addresses were outnumbered by connected devices

    Correct answer
    D

    Its roughly 4.3 billion possible addresses were outnumbered by connected devices

    Explanation

    IPv4 provides about 4.3 billion addresses. That seemed plentiful initially, but the number of phones, computers, TVs, and other connected devices grew beyond that scale; the central pool ran out in 2011.

  23. 23

    How does NAT allow many home devices to use one public IPv4 address?

    1. A

      The router assigns every device the same MAC address and hides all packets

    2. B

      The router tracks which private device made each request and directs replies back to it

    3. C

      The router converts every private address into a permanent public address

    4. D

      The router reserves a separate cable between each device and the website

    Correct answer
    B

    The router tracks which private device made each request and directs replies back to it

    Explanation

    With NAT, devices use private addresses inside the home while the router uses a public address on the internet. The router tracks connections so replies reach the correct device.

  24. 24

    What does carrier-grade NAT allow a mobile operator to do?

    1. A

      Let many phones share a public IP address through a large-scale translation system

    2. B

      Replace every phone’s IP address with its Bluetooth hardware address

    3. C

      Send every phone’s traffic directly without using any router

    4. D

      Give every phone a permanent, unique IPv4 address from the central pool

    Correct answer
    A

    Let many phones share a public IP address through a large-scale translation system

    Explanation

    A mobile operator can perform NAT at large scale, allowing thousands of phones to share one public address at the same time.

  25. 25

    What are the two conceptual parts of an IP address block?

    1. A

      A port part identifying an application and a MAC part identifying a cable

    2. B

      A sender part identifying a router and a receiver part identifying a server

    3. C

      A public part identifying a country and a private part identifying a website

    4. D

      A network part identifying an area and a host part identifying a device within it

    Correct answer
    D

    A network part identifying an area and a host part identifying a device within it

    Explanation

    IP addresses are allocated in blocks. A network portion identifies the block or area, and a host portion identifies an address within that block.

  26. 26

    In the block 192.168.1.0/24, what does the /24 indicate?

    1. A

      The first 24 bits identify the host, leaving 8 bits for the network

    2. B

      The first 24 bits identify the network, leaving 8 bits for host addresses

    3. C

      The block uses 24 public addresses and 8 private addresses

    4. D

      The block contains 24 addresses, each with an 8-bit network part

    Correct answer
    B

    The first 24 bits identify the network, leaving 8 bits for host addresses

    Explanation

    A /24 prefix means the first 24 bits are the network portion and the remaining 8 bits are available for addresses within the block.

  27. 27

    Why can a /24 IPv4 block support 254 devices rather than 256?

    1. A

      One address identifies the network and another is reserved for broadcast

    2. B

      The subnet mask uses two of the host bits to identify DNS servers

    3. C

      The first two addresses are reserved for the internet service provider

    4. D

      Two addresses must always be assigned to the default gateway

    Correct answer
    A

    One address identifies the network and another is reserved for broadcast

    Explanation

    Eight host bits provide 256 addresses. In a typical /24, one names the network itself and one is used for broadcast, leaving 254 device addresses.

  28. 28

    Which subnet mask corresponds to a /24 prefix?

    1. A

      255.255.255.24

    2. B

      255.0.255.0

    3. C

      255.255.255.0

    4. D

      255.255.0.255

    Correct answer
    C

    255.255.255.0

    Explanation

    The /24 prefix is equivalent to the subnet mask 255.255.255.0.

  29. 29

    What is the purpose of CIDR?

    1. A

      It assigns every device the same-size block of 256 addresses

    2. B

      It encrypts packets so their IP addresses cannot be read

    3. C

      It converts private addresses into MAC addresses

    4. D

      It allows address blocks of different sizes to be allocated as needed

    Correct answer
    D

    It allows address blocks of different sizes to be allocated as needed

    Explanation

    CIDR uses flexible prefix lengths, such as /16, /24, or /30, so organizations can receive blocks sized for their needs.

  30. 30

    When does a computer send a packet directly, and when does it use the default gateway?

    1. A

      It sends directly when DNS has cached a name and uses the gateway otherwise

    2. B

      It sends directly to addresses in its subnet and uses the gateway for other destinations

    3. C

      It sends directly to public addresses and uses the gateway for private addresses

    4. D

      It sends directly only to devices with matching port numbers

    Correct answer
    B

    It sends directly to addresses in its subnet and uses the gateway for other destinations

    Explanation

    The computer checks whether the destination is in its own subnet. If so, it can deliver locally; otherwise, it sends the packet to the default gateway, usually its router.

  31. 31

    How are IPv6 addresses represented, and what does their length provide?

    1. A

      As six hexadecimal pairs separated by colons, using 48 bits for local addresses

    2. B

      As eight hexadecimal groups separated by colons, using 128 bits for a vast address space

    3. C

      As four decimal groups separated by dots, using 128 bits for about 4.3 billion addresses

    4. D

      As eight decimal groups separated by dots, using 32 bits for global addresses

    Correct answer
    B

    As eight hexadecimal groups separated by colons, using 128 bits for a vast address space

    Explanation

    IPv6 addresses are 128 bits long and are written as eight hexadecimal groups separated by colons. This provides about 340 undecillion addresses.

  32. 32

    What does the double colon represent in a shortened IPv6 address?

    1. A

      A run of zero-valued groups that has been omitted

    2. B

      A marker that changes the address from hexadecimal to decimal

    3. C

      A boundary between the network and host portions

    4. D

      A pair of public addresses translated by NAT

    Correct answer
    A

    A run of zero-valued groups that has been omitted

    Explanation

    IPv6 notation allows a long run of zero groups to be compressed using a double colon.

  33. 33

    Why are IPv4 and IPv6 currently used side by side?

    1. A

      IPv6 addresses are shorter and cannot identify individual devices

    2. B

      IPv6 can be used only on undersea fibre cables

    3. C

      The two versions cannot communicate directly with each other

    4. D

      IPv4 is needed to translate all domain names into MAC addresses

    Correct answer
    C

    The two versions cannot communicate directly with each other

    Explanation

    IPv4 and IPv6 are not directly compatible, so networks commonly operate both versions while the transition continues.

  34. 34

    Which statement about IPv6 is supported by its design?

    1. A

      Its large address space can give devices public addresses without relying on NAT, and its header was simplified

    2. B

      It reduces the address space so routers can assign private addresses more easily

    3. C

      It requires NAT because its addresses are smaller than IPv4 addresses

    4. D

      It replaces IP routing with domain-name lookups at every router

    Correct answer
    A

    Its large address space can give devices public addresses without relying on NAT, and its header was simplified

    Explanation

    IPv6’s 128-bit address space is large enough for devices to have public addresses without NAT tricks. Its packet header was also simplified to help routers process packets faster.

  35. 35

    What decision does a router make during hop-by-hop forwarding?

    1. A

      Which complete end-to-end route every packet must follow

    2. B

      Which private address should replace the sender’s MAC address

    3. C

      Which next hop should receive the packet based on its destination address

    4. D

      Which application should create the requested web page

    Correct answer
    C

    Which next hop should receive the packet based on its destination address

    Explanation

    A router generally does not know the packet’s entire route. It examines the destination and chooses the next road, or hop, to use.

  36. 36

    How does a router choose among matching entries in its routing table?

    1. A

      It prefers the shortest prefix because that covers the fewest addresses

    2. B

      It prefers the most specific match, meaning the longest matching prefix

    3. C

      It always selects the route with the largest number of routers

    4. D

      It chooses randomly among all entries that contain an IP address

    Correct answer
    B

    It prefers the most specific match, meaning the longest matching prefix

    Explanation

    Routers use longest-prefix matching: when multiple routes match a destination, the most specific address block is preferred.

  37. 37

    What happens to a packet whose destination does not match a router’s known routes?

    1. A

      The router converts it into a DNS request

    2. B

      The router assigns it a new destination address

    3. C

      The router sends it back to the same device indefinitely

    4. D

      The router can send it using its default route

    Correct answer
    D

    The router can send it using its default route

    Explanation

    A router’s default route provides a next hop for destinations it does not otherwise recognize.

  38. 38

    What is the purpose of the IP time-to-live counter?

    1. A

      It records how long a TCP connection has been open

    2. B

      It limits how many router hops a packet can make before being discarded

    3. C

      It measures how long a website is allowed to remain online

    4. D

      It tells a DNS resolver how long an answer should be cached

    Correct answer
    B

    It limits how many router hops a packet can make before being discarded

    Explanation

    Each router reduces the packet’s TTL. If the counter reaches zero, the packet is discarded, preventing it from circulating forever.

  39. 39

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

    1. A

      It sends probes with increasing TTLs so successive routers reveal themselves when they discard them

    2. B

      It asks every router to send a complete map of the internet

    3. C

      It looks up router locations in DNS without sending any packets

    4. D

      It sends a single packet with an unlimited TTL and reads every route stored inside it

    Correct answer
    A

    It sends probes with increasing TTLs so successive routers reveal themselves when they discard them

    Explanation

    Traceroute sends probes with TTL values of one, then two, then three, and so on. The router where each probe expires can return an error that reveals that hop.

  40. 40

    What is an autonomous system in the context of internet routing?

    1. A

      A group of home devices that share a private subnet

    2. B

      A single computer that stores every website’s IP address

    3. C

      A separately operated network that participates in routing between networks

    4. D

      A temporary collection of packets sent through one router

    Correct answer
    C

    A separately operated network that participates in routing between networks

    Explanation

    The internet consists of tens of thousands of separately operated networks, called autonomous systems.

  41. 41

    What information do networks exchange using BGP?

    1. A

      Encryption keys for every TCP connection

    2. B

      The contents of every web page stored on their servers

    3. C

      Announcements that particular address blocks are reachable through them

    4. D

      Private MAC addresses for every device in their networks

    Correct answer
    C

    Announcements that particular address blocks are reachable through them

    Explanation

    BGP lets autonomous systems announce which address blocks are reachable through them. Neighboring networks pass those announcements onward.

  42. 42

    Why did the 2008 Pakistan Telecom route announcement disrupt access to YouTube?

    1. A

      YouTube switched from IPv4 to IPv6 and could no longer reach routers

    2. B

      A more specific YouTube route leaked globally, drawing traffic toward Pakistan

    3. C

      Pakistan Telecom deleted YouTube’s DNS records from every root server

    4. D

      The announcement forced all websites to use the same public IP address

    Correct answer
    B

    A more specific YouTube route leaked globally, drawing traffic toward Pakistan

    Explanation

    Pakistan Telecom announced a more specific route intended for local blocking. When that route leaked, much of the internet sent YouTube traffic toward Pakistan instead.

  43. 43

    What caused Facebook, Instagram, and WhatsApp to disappear from the internet for several hours in 2021?

    1. A

      A global DNS root server deleted all records for social media

    2. B

      A failure in IPv6 made every IPv4 router stop forwarding packets

    3. C

      A maintenance command disconnected Facebook’s backbone, and its BGP routes were withdrawn

    4. D

      A damaged undersea cable destroyed the companies’ stored web pages

    Correct answer
    C

    A maintenance command disconnected Facebook’s backbone, and its BGP routes were withdrawn

    Explanation

    A maintenance command disconnected Facebook’s backbone. Its BGP routes were withdrawn, so other networks no longer had routes to its services.

  44. 44

    How does RPKI help improve the reliability of BGP routing?

    1. A

      It helps networks verify route announcements and reject false claims

    2. B

      It encrypts all packets traveling between autonomous systems

    3. C

      It replaces the routing tables maintained by individual routers

    4. D

      It assigns a unique port number to every route announcement

    Correct answer
    A

    It helps networks verify route announcements and reject false claims

    Explanation

    RPKI allows networks to sign and check route announcements, helping identify and reject invalid claims about address reachability.

  45. 45

    What does a port number identify in network communication?

    1. A

      The local network block that contains an IP address

    2. B

      The physical router that should forward a packet next

    3. C

      The hardware manufacturer of a network card

    4. D

      The program or service on a device that should receive the traffic

    Correct answer
    D

    The program or service on a device that should receive the traffic

    Explanation

    An IP address identifies a device, while a port number directs traffic to a particular program or service on that device.

  46. 46

    Which set of well-known port mappings is correct?

    1. A

      80 for ordinary web traffic, 443 for HTTPS, 22 for SSH, 25 for email sending, and 53 for DNS

    2. B

      80 for SSH, 443 for DNS, 22 for email sending, 25 for HTTPS, and 53 for ordinary web traffic

    3. C

      80 for DNS, 443 for SSH, 22 for HTTPS, 25 for web traffic, and 53 for email sending

    4. D

      80 for email sending, 443 for ordinary web traffic, 22 for DNS, 25 for SSH, and 53 for HTTPS

    Correct answer
    A

    80 for ordinary web traffic, 443 for HTTPS, 22 for SSH, 25 for email sending, and 53 for DNS

    Explanation

    Common mappings include port 80 for HTTP, 443 for HTTPS, 22 for SSH, 25 for sending email, and 53 for DNS.

  47. 47

    What is typical of the port used by a client on its side of a conversation?

    1. A

      It is usually a randomly selected temporary port

    2. B

      It is always the same well-known port used by the server

    3. C

      It identifies the network portion of the client’s IP address

    4. D

      It is the client’s 48-bit MAC address written as a number

    Correct answer
    A

    It is usually a randomly selected temporary port

    Explanation

    A client typically uses a temporary, randomly selected port for its side of a connection, while the server listens on a service port.

  48. 48

    Which comparison best describes UDP and TCP?

    1. A

      UDP reserves a circuit; TCP broadcasts every packet to all local devices

    2. B

      UDP sends without confirming delivery or order; TCP tracks delivery and provides ordered data

    3. C

      UDP guarantees perfect ordering; TCP sends each piece without checking for loss

    4. D

      UDP is only for wired networks; TCP is only for wireless networks

    Correct answer
    B

    UDP sends without confirming delivery or order; TCP tracks delivery and provides ordered data

    Explanation

    UDP is simple and does not itself confirm delivery or reorder packets. TCP acknowledges data, retransmits missing pieces, and presents an ordered stream.

  49. 49

    Why might a live video call use UDP rather than TCP?

    1. A

      TCP cannot carry data between two different IP addresses

    2. B

      UDP guarantees that every video frame arrives perfectly and in order

    3. C

      A late packet may be less useful than continuing with a small glitch

    4. D

      UDP automatically encrypts the video without using another protocol

    Correct answer
    C

    A late packet may be less useful than continuing with a small glitch

    Explanation

    For real-time applications, a delayed packet may be useless by the time it arrives. They may prefer a brief glitch over waiting for TCP to retransmit missing data.

  50. 50

    What is the correct order of messages in the TCP three-way handshake?

    1. A

      SYN, SYN-ACK, ACK

    2. B

      FIN, SYN, SYN-ACK

    3. C

      SYN-ACK, ACK, FIN

    4. D

      ACK, FIN, SYN

    Correct answer
    A

    SYN, SYN-ACK, ACK

    Explanation

    The initiator sends SYN, the server responds with SYN-ACK, and the initiator completes the handshake with ACK.

  51. 51

    What does the server communicate in its SYN-ACK message?

    1. A

      That the client’s DNS lookup failed and must be repeated

    2. B

      That it heard the client and will start counting from its own sequence number

    3. C

      That every packet has already arrived in its final order

    4. D

      That the connection is finished and all data should be discarded

    Correct answer
    B

    That it heard the client and will start counting from its own sequence number

    Explanation

    The server’s SYN-ACK acknowledges the client’s request and supplies the server’s own starting sequence number.

  52. 52

    How does TCP use sequence numbers and acknowledgements to provide reliable, ordered data?

    1. A

      It asks DNS to compare the data received with the original message

    2. B

      It numbers bytes, tracks acknowledgements, retransmits missing data, and removes duplicates

    3. C

      It sends all bytes simultaneously and relies on routers to restore their order

    4. D

      It gives every connection one permanent route that cannot lose packets

    Correct answer
    B

    It numbers bytes, tracks acknowledgements, retransmits missing data, and removes duplicates

    Explanation

    TCP numbers data, receives acknowledgements for delivered bytes, retransmits when needed, discards duplicates, and fills gaps so the application gets an ordered stream.

  53. 53

    How does TCP normally signal that a connection is being closed?

    1. A

      Each side sends FIN to say goodbye, and the other side confirms

    2. B

      The client sends a DNS request, and the server deletes its IP address

    3. C

      A router removes the connection’s MAC address without notifying either side

    4. D

      Both sides send SYN messages to restart the connection

    Correct answer
    A

    Each side sends FIN to say goodbye, and the other side confirms

    Explanation

    TCP uses FIN messages to signal that each side is finished, with the other side confirming the closure.

  54. 54

    What does TCP flow control protect against?

    1. A

      A fast sender overwhelming a receiver that has limited available buffer space

    2. B

      A network switch delivering a frame to the wrong MAC address

    3. C

      A router announcing an invalid address block to its neighbors

    4. D

      A website name being sent to the wrong DNS server

    Correct answer
    A

    A fast sender overwhelming a receiver that has limited available buffer space

    Explanation

    In flow control, the receiver communicates how much space it has available, called its window, so a fast sender does not flood a slower receiver.

  55. 55

    How does TCP congestion control respond when it detects packet loss?

    1. A

      It reserves the entire network for the connection until loss stops

    2. B

      It sends packets faster so that the lost data is replaced immediately

    3. C

      It backs off its sending rate and then increases it gradually

    4. D

      It switches every packet to a different destination IP address

    Correct answer
    C

    It backs off its sending rate and then increases it gradually

    Explanation

    TCP congestion control reduces sending speed when loss indicates congestion, then increases speed gradually as conditions allow.

  56. 56

    What caused the 1986 congestion collapse described in the content?

    1. A

      DNS servers returned private addresses for all public websites

    2. B

      TCP connections refused to resend any packet after the first loss

    3. C

      Routers stopped decrementing TTL, causing packets to disappear too soon

    4. D

      Senders rapidly resent lost packets, creating more losses and still more resending

    Correct answer
    D

    Senders rapidly resent lost packets, creating more losses and still more resending

    Explanation

    When senders responded to losses by resending as fast as possible, the extra traffic caused more losses, which triggered still more retransmissions and worsened congestion.

  57. 57

    What does DNS do?

    1. A

      Translates human-readable names into IP addresses

    2. B

      Confirms that every TCP packet has arrived

    3. C

      Encrypts web traffic between a browser and a server

    4. D

      Assigns MAC addresses to network cards

    Correct answer
    A

    Translates human-readable names into IP addresses

    Explanation

    The Domain Name System maps names such as website domains to IP addresses that computers can use to reach servers.

  58. 58

    How is DNS organized?

    1. A

      As one central list containing every name and address in the world

    2. B

      As a sequence beginning with a device’s MAC address and ending at the root

    3. C

      As a hierarchy read from right to left, from the root to top-level domains and then organization servers

    4. D

      As a flat network in which each website asks every other website for its address

    Correct answer
    C

    As a hierarchy read from right to left, from the root to top-level domains and then organization servers

    Explanation

    DNS is a distributed tree. A lookup proceeds through levels such as the root, a top-level domain like .com, and the organization’s own name servers.

  59. 59

    What is the usual sequence of an uncached DNS lookup?

    1. A

      The resolver asks a root server, then a top-level-domain server, then the site’s name server

    2. B

      The resolver asks the site’s server, then the root, then the top-level-domain server

    3. C

      The resolver asks a MAC address registry, then a router, then a TCP port

    4. D

      The resolver asks every root server in sequence until one returns the web page

    Correct answer
    A

    The resolver asks a root server, then a top-level-domain server, then the site’s name server

    Explanation

    If the resolver does not have an answer cached, it follows the DNS hierarchy: root, top-level domain, and then the site’s authoritative name server.

  60. 60

    What is unusual about the thirteen root server identities named A through M?

    1. A

      Each identity exists on only one physical computer in one country

    2. B

      Each identity is served from many locations worldwide using the same address

    3. C

      Each identity stores the complete contents of every website

    4. D

      Each identity can answer only DNS requests sent over IPv6

    Correct answer
    B

    Each identity is served from many locations worldwide using the same address

    Explanation

    The thirteen root server identities are copied across hundreds of sites worldwide, with more than a thousand instances in total, helping queries reach a nearby copy.

  61. 61

    Why are most DNS lookups completed quickly?

    1. A

      Every website has a permanent direct cable to each device

    2. B

      Every router stores the full DNS tree in its routing table

    3. C

      DNS uses TCP acknowledgements instead of asking name servers

    4. D

      Resolvers cache answers for a period of time

    Correct answer
    D

    Resolvers cache answers for a period of time

    Explanation

    DNS answers are cached for a while, so a resolver often does not need to repeat the full lookup process.

  62. 62

    How did the Mirai attack on Dyn affect users in 2016?

    1. A

      A botnet flooded a DNS company, preventing many users from looking up otherwise functioning sites

    2. B

      A botnet deleted the web pages stored by Twitter, Netflix, Reddit, and GitHub

    3. C

      A failure in TCP prevented all packets from being delivered to any server

    4. D

      A routing announcement changed all those sites’ MAC addresses

    Correct answer
    A

    A botnet flooded a DNS company, preventing many users from looking up otherwise functioning sites

    Explanation

    Mirai used compromised cameras and video recorders to flood Dyn with junk traffic. Many users could not resolve names for sites that were otherwise running.

  63. 63

    What is the correct order of the four DHCP messages remembered as DORA?

    1. A

      Offer, Discover, Acknowledge, Request

    2. B

      Discover, Request, Offer, Acknowledge

    3. C

      Request, Acknowledge, Discover, Offer

    4. D

      Discover, Offer, Request, Acknowledge

    Correct answer
    D

    Discover, Offer, Request, Acknowledge

    Explanation

    A device discovers a DHCP server, receives an offer, requests the offered address, and receives an acknowledgement.

  64. 64

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

    1. A

      A permanent public address, a TCP sequence number, and a MAC address

    2. B

      A browser cookie, a private key, and a DNS root identity

    3. C

      A website certificate, a port number, and a BGP route

    4. D

      A subnet mask, a default gateway, and DNS servers

    Correct answer
    D

    A subnet mask, a default gateway, and DNS servers

    Explanation

    DHCP can provide the device’s address along with its subnet mask, default gateway, and DNS server settings.

  65. 65

    What does it mean that a DHCP address is a lease?

    1. A

      The device owns the address permanently and can never change it

    2. B

      The address is valid only while the device uses a website

    3. C

      The address is assigned for a period and must be renewed to remain in use

    4. D

      The router can use the address only for DNS traffic

    Correct answer
    C

    The address is assigned for a period and must be renewed to remain in use

    Explanation

    A DHCP address is leased for a period. The device needs to renew the lease if it is to keep using the address.

  66. 66

    Why does a device use ARP on a local IPv4 network?

    1. A

      To choose a BGP route across the internet

    2. B

      To assign a new IP address when a DHCP lease expires

    3. C

      To find the public IP address associated with a website name

    4. D

      To find the MAC address associated with a known local IP address

    Correct answer
    D

    To find the MAC address associated with a known local IP address

    Explanation

    ARP lets a device that knows a local IP address, such as its router’s, ask for the corresponding MAC address so it can send a local frame.

  67. 67

    Why can ARP create a security risk on a shared local network?

    1. A

      A device may falsely claim to have the router’s IP address and receive traffic

    2. B

      A device may change a domain name into an invalid IPv6 address

    3. C

      A router may use ARP to read encrypted HTTPS content

    4. D

      A DNS resolver may assign the same port to every application

    Correct answer
    A

    A device may falsely claim to have the router’s IP address and receive traffic

    Explanation

    ARP relies on local claims about which MAC address belongs to an IP address. A malicious device can lie and claim to be the router, which is one reason additional protections matter on public Wi-Fi.

  68. 68

    How does a basic HTTP exchange work?

    1. A

      A router sends a certificate, and the browser returns an encrypted IP address

    2. B

      A server sends a request, and the browser returns a DNS route and a MAC address

    3. C

      A browser sends a request, and the server returns a status code, headers, and content

    4. D

      A browser reserves a circuit, and the server transmits only after the call ends

    Correct answer
    C

    A browser sends a request, and the server returns a status code, headers, and content

    Explanation

    HTTP is a request-and-response protocol. A browser may request a resource, and the server responds with a status code, headers, and the requested content.

  69. 69

    Which interpretation of HTTP status codes is correct?

    1. A

      200 means OK, 301 means moved, 404 means not found, and 500 indicates a server error

    2. B

      200 means a DNS failure, 301 means a TCP reset, 404 means encryption, and 500 means success

    3. C

      200 means not found, 301 means a server error, 404 means OK, and 500 means moved

    4. D

      200 means moved, 301 means OK, 404 means a server error, and 500 means not found

    Correct answer
    A

    200 means OK, 301 means moved, 404 means not found, and 500 indicates a server error

    Explanation

    The examples given are 200 for OK, 301 for a moved resource, 404 for not found, and 500 for a server-side failure.

  70. 70

    What is the intended humorous meaning of HTTP status code 418?

    1. A

      A server cannot find the requested page

    2. B

      A browser has successfully opened a secure connection

    3. C

      A teapot refuses to brew coffee

    4. D

      A website has moved to a new address

    Correct answer
    C

    A teapot refuses to brew coffee

    Explanation

    Code 418 comes from an April Fools’ standard about internet-controlled coffee pots: a teapot asked to brew coffee should refuse with “I’m a teapot.”

  71. 71

    How can cookies help a website remember a user between HTTP requests?

    1. A

      The browser stores the server’s complete database and sends it each time

    2. B

      The router assigns the user the same MAC address at every website

    3. C

      The server keeps one permanent TCP connection open for every user

    4. D

      The site gives the browser a small note that the browser sends back on later requests

    Correct answer
    D

    The site gives the browser a small note that the browser sends back on later requests

    Explanation

    HTTP has no built-in memory between requests. Websites can use cookies, small pieces of information sent back by the browser, to remember logins or shopping carts.

  72. 72

    What feature distinguishes HTTP/2 as described in the content?

    1. A

      It replaces IP addresses with MAC addresses

    2. B

      It sends every web request using carrier pigeons

    3. C

      It can send many files over one connection at the same time

    4. D

      It prevents browsers from sending more than one request per page

    Correct answer
    C

    It can send many files over one connection at the same time

    Explanation

    HTTP/2 can carry many files over a single connection at once.

  73. 73

    What is distinctive about HTTP/3?

    1. A

      It uses BGP to deliver files directly to a browser

    2. B

      It removes encryption so that mobile connections start faster

    3. C

      It runs over QUIC, which is built on UDP and can start connections faster

    4. D

      It runs only over traditional telephone circuits using TCP

    Correct answer
    C

    It runs over QUIC, which is built on UDP and can start connections faster

    Explanation

    HTTP/3 uses QUIC, a protocol built on UDP that can make connections faster to start and work better on unreliable mobile networks.

  74. 74

    What risk does plain HTTP create on a network path such as public café Wi-Fi?

    1. A

      The server must reveal its private encryption key

    2. B

      Routers cannot see the destination IP address

    3. C

      Someone on the path may read or alter the traffic

    4. D

      The browser cannot send a request to a server

    Correct answer
    C

    Someone on the path may read or alter the traffic

    Explanation

    Plain HTTP travels as readable text, so someone in the path may be able to read or modify it.

  75. 75

    What does HTTPS mean?

    1. A

      TCP carried inside BGP

    2. B

      IP carried inside DHCP

    3. C

      HTTP carried inside DNS

    4. D

      HTTP carried inside TLS

    Correct answer
    D

    HTTP carried inside TLS

    Explanation

    HTTPS is HTTP protected by TLS, or Transport Layer Security.

  76. 76

    Which set correctly names the three guarantees TLS is intended to provide?

    1. A

      Speed, availability, and address allocation

    2. B

      Compression, caching, and retransmission

    3. C

      Ordering, routing, and name resolution

    4. D

      Privacy, integrity, and authenticity

    Correct answer
    D

    Privacy, integrity, and authenticity

    Explanation

    TLS aims to keep communication private, detect unauthorized changes to it, and verify that the other party is the intended site.

  77. 77

    What does the shared-secret paint-mixing analogy illustrate?

    1. A

      Two parties can send the same password in plain text without risk

    2. B

      A router can encrypt packets by mixing together their MAC addresses

    3. C

      Two parties can agree on a shared secret over a public exchange without revealing their private inputs

    4. D

      A browser can identify a website by comparing its IP address with its colour

    Correct answer
    C

    Two parties can agree on a shared secret over a public exchange without revealing their private inputs

    Explanation

    In the analogy, each side keeps a secret colour and combines it with public information. Both can derive the same final colour, while an observer who sees only the public mixtures cannot work it out.

  78. 78

    How does a browser check that a TLS server is the site the user intended to contact?

    1. A

      It compares the server’s MAC address with the browser’s own MAC address

    2. B

      It checks the server’s certificate and its signature from a trusted certificate authority

    3. C

      It asks the server to provide its private key in a DNS response

    4. D

      It checks whether the server uses the same temporary port as the browser

    Correct answer
    B

    It checks the server’s certificate and its signature from a trusted certificate authority

    Explanation

    A server presents a certificate, a digital identity card signed by a certificate authority. The browser checks the signature against authorities it trusts.

  79. 79

    What role did free certificate services such as Let’s Encrypt play?

    1. A

      They replaced DNS with encrypted IP addresses for all websites

    2. B

      They allowed websites to avoid using certificates or TLS

    3. C

      They helped more websites adopt HTTPS by making certificates freely available

    4. D

      They assigned temporary ports to browsers and web servers

    Correct answer
    C

    They helped more websites adopt HTTPS by making certificates freely available

    Explanation

    Free certificate services helped reduce barriers to obtaining certificates, contributing to wider HTTPS adoption.

  80. 80

    Which pairing correctly describes SMTP and IMAP?

    1. A

      SMTP synchronizes clocks, while IMAP sends network error messages

    2. B

      SMTP reads email across devices, while IMAP sends email between mail servers

    3. C

      SMTP secures remote terminals, while IMAP transfers files

    4. D

      SMTP sends email between mail servers, while IMAP lets users read mail across devices

    Correct answer
    D

    SMTP sends email between mail servers, while IMAP lets users read mail across devices

    Explanation

    SMTP is used to send messages between mail servers. IMAP lets users access and read their mail from multiple devices.

  81. 81

    What are SSH and FTP used for, respectively?

    1. A

      SSH resolves website names; FTP synchronizes clocks

    2. B

      SSH sends email between servers; FTP tests network reachability

    3. C

      SSH assigns IP addresses; FTP encrypts all web browsing

    4. D

      SSH provides a secure remote terminal; FTP was an older method for moving files

    Correct answer
    D

    SSH provides a secure remote terminal; FTP was an older method for moving files

    Explanation

    SSH gives engineers a secure remote terminal for controlling distant servers. FTP was an older protocol for transferring files.

  82. 82

    Why does NTP matter to networked systems?

    1. A

      It keeps clocks synchronized, which matters for transactions and security certificates

    2. B

      It converts domain names into IP addresses before every web request

    3. C

      It retransmits missing packets in an ordered TCP stream

    4. D

      It assigns MAC addresses to computers joining a network

    Correct answer
    A

    It keeps clocks synchronized, which matters for transactions and security certificates

    Explanation

    NTP synchronizes clocks across the world, often to within milliseconds. Accurate time is important for tasks such as financial transactions and certificate checks.

  83. 83

    What does ICMP carry, and what does ping do with it?

    1. A

      ICMP assigns local IP addresses; ping checks whether a DHCP lease is renewed

    2. B

      ICMP carries email; ping opens a secure remote terminal

    3. C

      ICMP carries network error and test messages; ping sends an echo request and times the reply

    4. D

      ICMP carries web page content; ping asks DNS for a server’s address

    Correct answer
    C

    ICMP carries network error and test messages; ping sends an echo request and times the reply

    Explanation

    ICMP is used for network error and test messages. Ping uses an echo request and measures the time until the reply returns.

  84. 84

    Why was the tool called ping?

    1. A

      Its creator named it after the sonar-like sound of a submarine echo

    2. B

      Its name is an abbreviation for private internet gateway

    3. C

      Its creator named it after the first packet sent over ARPANET

    4. D

      Its name refers to a DNS record used only by web browsers

    Correct answer
    A

    Its creator named it after the sonar-like sound of a submarine echo

    Explanation

    Ping’s creator, Mike Muuss, named it after the sound of submarine sonar: send a signal and wait for an echo.

  85. 85

    What happens to IP packets when the underlying link changes from Wi-Fi to mobile radio or fibre?

    1. A

      The packets can continue only if the destination uses the same link

    2. B

      The same IP packets can flow over the different link technologies

    3. C

      Every packet must be rewritten as a different application protocol

    4. D

      The packet’s IP address is replaced by the link’s radio frequency

    Correct answer
    B

    The same IP packets can flow over the different link technologies

    Explanation

    IP is designed to run over different link technologies. Wi-Fi, Bluetooth, mobile networks, copper, fibre, and other links can carry IP traffic.

  86. 86

    Which sequence correctly describes how a phone obtains its local network settings and sends its first local frame to the router?

    1. A

      TCP provides the subnet mask, then TLS finds the router’s IP address

    2. B

      ARP provides network settings, then DHCP finds the router’s MAC address

    3. C

      DNS provides the MAC address, then BGP assigns the phone’s IP address

    4. D

      DHCP provides network settings, then ARP finds the router’s MAC address

    Correct answer
    D

    DHCP provides network settings, then ARP finds the router’s MAC address

    Explanation

    DHCP automatically gives the phone an IP address and other settings. ARP then maps the router’s known local IP address to its MAC address.

  87. 87

    What happens when a browser requests a website over a typical HTTPS connection?

    1. A

      It uses ARP to find the website’s MAC address across the internet, then opens port 80

    2. B

      It sends an unencrypted HTTP request first, then asks DNS to encrypt the response

    3. C

      It asks BGP to create a TCP connection, then uses DHCP to encrypt the page

    4. D

      It establishes TCP to port 443, negotiates TLS and verifies a certificate, then sends an encrypted HTTP request

    Correct answer
    D

    It establishes TCP to port 443, negotiates TLS and verifies a certificate, then sends an encrypted HTTP request

    Explanation

    A typical HTTPS visit uses a TCP connection to port 443, followed by a TLS handshake that establishes keys and checks the certificate. The browser then sends an encrypted HTTP request.

  88. 88

    How does the response to a web request become a page displayed by the browser?

    1. A

      BGP decrypts the response, DHCP orders it, and the router draws the page

    2. B

      The server returns packets, TCP orders them, TLS decrypts the data, and the browser renders the page

    3. C

      The server returns a single frame, ARP orders its bytes, and DNS renders the page

    4. D

      The browser asks each router to return a separate section of the page directly

    Correct answer
    B

    The server returns packets, TCP orders them, TLS decrypts the data, and the browser renders the page

    Explanation

    A server may return a page in many packets. TCP reassembles the ordered stream, TLS decrypts it, and the browser uses the resulting data to draw the page.

  89. 89

    Which Windows command is matched correctly with its networking use?

    1. A

      ipconfig shows local IP settings, ping tests reachability, tracert shows hops, and nslookup queries DNS

    2. B

      ipconfig queries DNS, ping shows hops, tracert assigns an IP address, and nslookup tests reachability

    3. C

      ipconfig shows web pages, ping changes routes, tracert checks certificates, and nslookup transfers files

    4. D

      ipconfig encrypts a connection, ping assigns a gateway, tracert reads email, and nslookup lists MAC addresses

    Correct answer
    A

    ipconfig shows local IP settings, ping tests reachability, tracert shows hops, and nslookup queries DNS

    Explanation

    ipconfig displays IP configuration, ping tests reachability and response time, tracert reveals hops, and nslookup asks DNS a question.

  90. 90

    What does Wireshark help a learner observe?

    1. A

      The physical contents of every undersea cable on the internet

    2. B

      Packets entering and leaving a computer, including DNS, TCP, and TLS exchanges

    3. C

      The private keys stored by every website certificate authority

    4. D

      The complete routing tables of all autonomous systems worldwide

    Correct answer
    B

    Packets entering and leaving a computer, including DNS, TCP, and TLS exchanges

    Explanation

    Wireshark is a packet-analysis tool that can show network traffic from a computer, making exchanges such as DNS lookups and TCP and TLS handshakes observable.

  91. 91

    Why is understanding networking layers useful in technology work?

    1. A

      It helps identify which part of a layered system is causing a problem

    2. B

      It removes the need for applications to use protocols

    3. C

      It guarantees that network failures cannot happen

    4. D

      It allows one computer to control every network globally

    Correct answer
    A

    It helps identify which part of a layered system is causing a problem

    Explanation

    Many technology fields rely on networks. Understanding the layers helps diagnose where a failure is occurring and how to fix it.

Question 1 of 91
Question 1 of 91

Ask anything

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

FlashcardsQuizFill in the blanksWritten testLessonNotesPodcastContent