Routers Route!
It's true: Routers routebut that's not all they do. Despite all outward appearances, routers live complicated, hard-working lives. Routers continuously perform these functions:Communicate information about known destinations with their neighboring routersDiscover new destinationsCompare different paths to the same destinationSelect the best path to each known destinationStore that path in a table filled with other best pathsSend packets of data en route to their destination via the best known path
That sounds like quite a load for the router, and it is. Luckily for you, it's easier understanding how a router works. Start by looking at what a router is, what it does, and what it doesn't do.
|
What Is a Router?
A router is a specialized device designed to push IP packets (or other protocols' packets) through a network. Routing is actually a function that can be performed on a variety of physical platforms. A PC, for example, can be configured as a router, but it isn't a good or robust one. A software routing application can be run on a general-purpose computer such as a PC. Such routers are known as software-based routers. Cisco Systems makes a highly specialized line of routers, known as hardware-based routers, of all shapes and sizes to fit any network niche.Regardless of its form, a router interconnects networks and regulates the flow of IP packets between those networks. For that to occur, a router must have the ability to interface with many types of physical networks.For the purposes of routing, a network is defined as the collection of end systems and networking equipment bound by a common IP network address. Routers sit at the edge of that network and decide what to do with each packet it receives based on the IP network address in each IP packet's destination address field.
What Does a Router Do?
To route, a router must form the boundary, or edge, of a network so it can pass IP packets back and forth between two or more networks or subnetworks. So far, so good. What's not so clear is what a network is.A network could be a local-area network (LAN). Ethernet has become the dominant type of LAN in the world today and is found in homes, small offices, and large enterprises. A network could also be a wide-area network (WAN). A WAN is a collection of LANs interconnected with routers, so you can think of a WAN as being a network of networks. Recall the example network in Chapter 7, "More Fun with IP Addresses," which shows how a router can create a series of subnetworks from within a single network. That's yet another example of a different type of network.Regardless of a network's shape, a router has a paradoxical role in a network. It must simultaneously separate yet interconnect networks. Figure 11-1 illustrates this.
Figure 11-1. A Router Interconnects and Separates LANs
[View full size image]

Figure 11-2. An Abstract View of the Network Using the OSI Reference Model
[View full size image]

Figure 11-3. The Router Separates Layers 1 and 2, but Interconnects at Layer 3
[View full size image]

How Does That Work?
Dig a little deeper and see how that router in routing protocol. Routing protocols, just like every other protocol in the TCP/IP family of protocols, is a highly specialized piece of software. These protocols don't run on desktop computers or other devices that humans use. Instead, they run on routers. Routing protocols enable routers to do the first five of the six critical functions identified in Table 11-1. The last function, forwarding packets, is a native function of a router's hardware and operating system and is independent of a routing protocol's presence.There are many routing protocols and at least two schools of thought about what constitutes a best path. Focus on the mechanics of a router using the same small network used throughout this chapter; then you are ready to look at different ways to interpret the best way to get there from here!
|
Figure 11-5. Ethernet Frame Is Launched
[View full size image]

Figure 11-6. IP Packet Is Extracted from the Ethernet Frame
[View full size image]

Figure 11-7. IP Packet Is Wrapped in a New Ethernet Frame
[View full size image]
