Routing: Difference between revisions
imported>Paul Wormer m (added "more") |
imported>Howard C. Berkowitz No edit summary |
||
Line 20: | Line 20: | ||
| date = June 1995 | | date = June 1995 | ||
}}</ref> Physically, a router is usually a special-purpose computer, although it is possible to program a personal computer to route. | }}</ref> Physically, a router is usually a special-purpose computer, although it is possible to program a personal computer to route. | ||
==Internet Protocol routing== | |||
Both in [[Internet Protocol version 4]] and [[Internet Protocol version 6]], the most basic principle of routing is "longest prefix match." Every Internet Protocol address has a certain number of bits, from the left, which form its '''prefix''' or '''locator''', describing the target network or group of networks in which it resides. Unless other factors override, routing forwards a packet towards its best knowledge of the most precise specification of that destination. If, for example, there are two [[routing information base]] entries, one matching the first 8 bits of the address and the second matching the first 16 bits, the second entry will prescribe the next hop for the routing operation. | |||
==References== | ==References== | ||
{{reflist}} | {{reflist}} |
Revision as of 14:41, 14 November 2009
In computer networking, routing is the process of receiving a packet on one interface of a router, validating the packet, and, assuming the router knows that a particular outbound interface will move the packet one hop closer to its final destination, forwards it out that interface.
Routing is not terribly more difficult than driving to a destination along a set of highways. Each exit sign informs the driver of a set of destinations reachable through that exit. The driver will decide to take the exit if it goes toward the destination, or will continue looking for a better exit.
The process that draws the "map" of the network, or, in the highway analogy, puts the list of destinations on the exit sign, is the control plane of the router. The process that actually moves the packet from input to output is the forwarding plane.[1]
The device that performs these functions is called a router.[2] Physically, a router is usually a special-purpose computer, although it is possible to program a personal computer to route.
Internet Protocol routing
Both in Internet Protocol version 4 and Internet Protocol version 6, the most basic principle of routing is "longest prefix match." Every Internet Protocol address has a certain number of bits, from the left, which form its prefix or locator, describing the target network or group of networks in which it resides. Unless other factors override, routing forwards a packet towards its best knowledge of the most precise specification of that destination. If, for example, there are two routing information base entries, one matching the first 8 bits of the address and the second matching the first 16 bits, the second entry will prescribe the next hop for the routing operation.
References
- ↑ Khosravi, H. & T. Anderson (November 2003), Requirements for Separation of IP Control and Forwarding], Internet Engineering Task Force, RFC3654
- ↑ Baker, F. (June 1995), Requirements for IPv4 routers, Internet Engineering Task Force, RFC1812