What is IPv4?

Version 4 of IP. Its addresses are 32 bits, giving only 2^32 (about 4.3 billion), so they have long been conserved with private addresses and NAT. The header has a variable length of 20 to 60 bytes and holds the TTL, the number of the upper-layer protocol and a header checksum, among other fields. Routers along the path may also split (fragment) packets. Its successor with larger addresses is IPv6.

Japanese name: IPv4

IPv4 appears in 5 practice questions across 1 topic, including Computer Networking Basics.

Field: Computer Networking Basics

Try it: questions about IPv4

Which of the following IPv4 addresses falls within a private address range?

  1. A172.32.0.1
  2. B192.168.100.1
  3. C11.1.1.1
Show answer and explanation

Answer: B. 192.168.100.1

The private address ranges defined in RFC 1918 are 10.0.0.0/8, 172.16.0.0/12 (172.16.0.0 to 172.31.255.255) and 192.168.0.0/16. They can be used freely inside organizations and homes, and because no routes for them are advertised on the internet, many organizations can reuse the same addresses. To communicate with the internet, a router's NAT translates them to global addresses. 172.32.0.1 has a second octet outside 16–31, so it is not in 172.16.0.0/12, and 11.1.1.1 is outside 10.0.0.0/8.

What is the role of the TTL (Time To Live) field in the IPv4 header?

  1. AIt records the time from sending a packet until a response returns, to decide when TCP retransmits
  2. BIt is decremented by 1 at each router, and packets that reach 0 are discarded, preventing packets from circulating forever in a routing loop
  3. CPackets with larger values are forwarded with higher priority by routers
Show answer and explanation

Answer: B. It is decremented by 1 at each router, and packets that reach 0 are discarded, preventing packets from circulating forever in a routing loop

Despite "time" in its name, TTL is in practice an upper limit on the number of routers (hops) a packet may pass, decremented by 1 at each router. When it reaches 0, the router discards the packet and sends an ICMP time exceeded message back to the source. So even if a misconfiguration creates a routing loop, packets do not circulate forever. A packet sent with a TTL of 64, for example, arrives with 61 after passing three routers. traceroute sends packets with TTL 1, 2, 3 and so on, and discovers the path from the time exceeded messages each router returns. In IPv6 the field with the same role is called the hop limit.

IPv4 in the explanations

Questions that mention IPv4 (5)

  1. Which of the following IPv4 addresses falls within a private address range?
  2. What is the role of the TTL (Time To Live) field in the IPv4 header?
  3. On 1 Gbps Ethernet, TCP data is sent continuously with IP packets filling the 1500-byte MTU. Taking the IPv4 header as 20 bytes, the TCP header as 20 bytes, the Ethernet header and FCS together as 18 bytes, and the preamble and inter-frame gap together as 20 bytes, which is closest to the upper limit on application-data throughput?
  4. Which statement about MAC addresses is correct?
  5. Which correctly shortens the IPv6 address 2001:0db8:0000:0000:0000:0000:0000:0001 according to the abbreviation rules?

Books on Computer Networking Basics Ad

As an Amazon Associate I earn from qualifying purchases.

Comparisons that include this term

Related terms

Router Packet IPv6 Ethernet NAT (Network Address Translation) ICMP (Internet Control Message Protocol) IP routing TCP (Transmission Control Protocol) IP (Internet Protocol) MTU (maximum transmission unit)

Back to the glossary