IntermediateTopic 67 of 104Software & Computing

IP addressing and routing

Addresses identify hosts; routers forward packets by tables.

In depth

IPv4 (32-bit) and IPv6 (128-bit) addresses identify hosts; subnet masks split networks (CIDR /24). Routers forward packets using routing tables and protocols (OSPF, BGP). NAT shares addresses. DHCP assigns addresses automatically.

Key points

  • Default gateway
  • Longest-prefix match
  • Public vs private ranges
Example

192.168.1.0/24 has 254 usable host addresses.

Why it matters

IP addressing and routing move packets across networks, so they decide whether data reaches its destination.

Where this is used

  • Assigning addresses to devices on a subnet.
  • Diagnosing why a packet cannot reach a remote server.
  • Configuring a default gateway for a set of sensors.

Frequently asked questions

What is IP addressing and routing?

Addresses identify hosts; routers forward packets by tables.

Why is it important to understand IP addressing and routing?

IP addressing and routing move packets across networks, so they decide whether data reaches its destination.

What does an IP address identify?

A network interface on a network, and it is used by routers to forward packets towards their destination.

What does a subnet mask do?

It divides an address into a network part and a host part, so devices know whether a destination is local or must go through a router.

How is IP addressing and routing used in practice?

Typical applications include assigning addresses to devices on a subnet, diagnosing why a packet cannot reach a remote server and configuring a default gateway for a set of sensors.

What should I learn before IP addressing and routing?

Study "OSI and TCP/IP models" first (topic 66 of 104 in Software & Computing). It covers the groundwork this topic builds on.

What are the key points of IP addressing and routing?

Default gateway. Longest-prefix match. Public vs private ranges.

Can you give an example of IP addressing and routing?

192.168.1.0/24 has 254 usable host addresses.

What comes after IP addressing and routing?

The next topic is "TCP and UDP", which builds directly on this one.

How difficult is IP addressing and routing?

It is classed as Intermediate in Software & Computing (topic 67 of 104). It is an intermediate topic. Work through the beginner topics in Software & Computing first.

Learning path

Want to practise? Open the interactive course for quick checks, quizzes, simulations and progress tracking.

Related topics