text
stringlengths
0
6.55k
Rules for Groups of IP Addresses (Networks and Subnets)
TCP/IP groups IP addresses together so that IP addresses used on the same physical network are part of the same group. IP calls these address groups an IP network or an IP subnet. Using that same postal service analogy, each IP network and IP subnet works like a postal code (or in the United States, a ZIP code). All ne...
IP defines specific rules about which IP address should be in the same IP network or IP sub-net. Numerically, the addresses in the same group have the same value in the first part of the addresses. For example, Figures 3-10 and 3-11 could have used the following conventions:
■ Hosts on the top Ethernet: Addresses start with 150.150.1
■ Hosts on the R1–R2 serial link: Addresses start with 150.150.2
■ Hosts on the R2–R3 EoMPLS link: Addresses start with 150.150.3
■ Hosts on the bottom Ethernet: Addresses start with 150.150.4
73
3
From the perspective of IP routing, the grouping of IP addresses means that the routing table can be much smaller. A router can list one routing table entry for each IP network or subnet, instead of one entry for every single IP address.
While the list shows just one example of how IP addresses may be grouped, the rules for how to group addresses using subnets will require some work to master the concepts and math. Part III of this book details IP addressing and subnetting, and you can find other subnetting video and practice products listed in the Int...
■ Two IP addresses, not separated from each other by a router, must be in the same group (subnet).
■ Two IP addresses, separated from each other by at least one router, must be in different groups (subnets).
It’s similar to the USPS ZIP code system and how it requires local governments to assign addresses to new buildings. It would be ridiculous to have two houses next door to each other, whose addresses had different postal/ZIP codes. Similarly, it would be silly to have people who live on opposite sides of the country to...
The IP Header
The routing process also makes use of the IPv4 header, as shown in Figure 3-12. The header lists a 32-bit source IP address, as well as a 32-bit destination IP address. The header, of course, has other fields, a few of which matter for other discussions in this book. The book will refer to this figure as needed, but ot...
||||||||||||||||||||
||||||||||||||||||||
74 CCNA 200-301 Official Cert Guide, Volume 1
4 Bytes
Version Length DS Field Packet Length
Identification Flags Fragment Offset
Time to Live Protocol Header Checksum
Source IP Address
Destination IP Address
Figure 3-12 IPv4 Header, Organized as 4 Bytes Wide for a Total of 20 Bytes
How IP Routing Protocols Help IP Routing
For routing logic to work on both hosts and routers, each host and router needs to know some-thing about the TCP/IP internetwork. Hosts need to know the IP address of their default router so that hosts can send packets to remote destinations. Routers, however, need to know routes so they forward packets to each and eve...
The best method for routers to know all the useful routes is to configure the routers to use the same IP routing protocol. Alternately, a network engineer could configure (type) all the required routes, on every router. However, if you enable the same routing protocol on all the routers in a TCP/IP internetwork, with t...
IP supports a small number of different IP routing protocols. All use some similar ideas and processes to learn IP routes, but different routing protocols do have some internal differenc-es; otherwise, you would not need more than one routing protocol. However, many routing protocols use the same general steps for lear...
Step 1. Each router, independent of the routing protocol, adds a route to its routing table for each subnet directly connected to the router.
Step 2. Each router’s routing protocol tells its neighbors about the routes in its routing table, including the directly connected routes and routes learned from other routers.
Step 3. After learning a new route from a neighbor, the router’s routing protocol adds a route to its IP routing table, with the next-hop router of that route typically being the neighbor from which the route was learned.
Also, note that at the final step, routers may have to choose between multiple routes to reach a single subnet. When that happens, routers place the best currently available route to reach a subnet (based on a measurement called a metric) into the routing table.
Figure 3-13 shows an example of how a routing protocol works, using the same diagram as in Figures 3-10 and 3-11. In this case, IP subnet 150.150.4.0, which consists of all addresses that begin with 150.150.4.0, sits on the Ethernet at the bottom of the figure. The figure shows the advertisement of routes for subnet 15...
|||||||||||||||||||| Technet24
||||||||||||||||||||
Chapter 3: Fundamentals of WANs and IP Routing 75
PC1 PC11
R1 Routing Table
F
R1
Subnet Interface Next Hop
S0 150.150.4.0 Serial0 150.150.2.7 E
150.150.2.7
R2