Claims
- 1. A method in a single network element comprising:
peering a first virtual router to a second virtual router, wherein the first and second virtual routers have separate address spaces and separate routing tables; distributing a set of one or more routes from the first virtual router to the second virtual router, wherein a first of the set of routes identifies the first virtual router as a next hop of the first route, said first route including a destination; and downloading to a set of one or more forwarding tables, the destination and the next hop.
- 2. The method of claim 1 wherein said peering comprises:
generating a first logical interface that indicates the first virtual router; generating a second logical interface that indicates the second virtual router; associating the first logical interface with the second virtual router; and associating the second logical interface with the first virtual router.
- 3. The method of claim 2 further comprising a routing protocol process exchanging routing information via the first and second logical interfaces.
- 4. The method of claim 1 wherein the next hop is a logical interface that indicates the first virtual router.
- 5. The method of claim 1 wherein the next hop is the first virtual router's identifier.
- 6. The method of claim 1 further comprising associating the first and second virtual routers with a virtual local area network (VLAN).
- 7. The method of claim 6 wherein said associating comprises:
generating in said second virtual router's routing table a first route that includes said VLAN as a destination and a first logical interface that indicates said first virtual router; and generating in said first virtual router's routing table a second route that includes said VLAN as a destination and a second logical interface that indicates said second virtual router.
- 8. The method of claim 6 further comprising said first and second virtual routers exchanging routing information via the VLAN.
- 9. A method in a single network element comprising:
inserting in a first virtual router's routing table a route, said route indicating a destination and a next hop, said next hop identifying a second virtual router, wherein said first virtual router corresponds to a first address space different from a second address space that corresponds to the second virtual router; and downloading the route to a forwarding table.
- 10. The method of claim 9 wherein said next hop is a logical interface.
- 11. The method of claim 9 wherein said next hop is the second virtual router's identifier.
- 12. The method of claim 9 further comprising said first virtual router exchanges routing information with said second virtual router via said route.
- 13. The method of claim 9 further comprising forwarding a packet from said first virtual router to said second virtual router in accordance with said next hop indicated in said forwarding table.
- 14. A method in a single network element comprising:
associating a first virtual router and a second virtual router to a virtual local area network (VLAN); and indicating in a routing table a route from the first virtual router to the second virtual router via the VLAN.
- 15. The method of claim 14 wherein said associating comprises generating a first logical interface for the first virtual router that indicates the VLAN and a second logical interface for the second virtual router that indicates the VLAN.
- 16. The method of claim 15 wherein said first and second virtual routers exchange routing information via the first and second logical interfaces.
- 17. The method of claim 14 further comprising forwarding a packet to the second virtual router and a third virtual router from the first virtual router in accordance with an entry in the first virtual router's forwarding table, which indicates a first logical interface as a next hop to the VLAN.
- 18. The method of claim 17 wherein the packet is received by the second virtual router via a second logical interface and the third virtual router receives the packet via a third logical interface, wherein said second logical interface identifies the second virtual router and the third logical interface indicates the third virtual router.
- 19. A single network element comprising:
a control card having a set of instructions to cause the control card to,
insert in a first virtual router's routing table a route, said route to indicate a destination and a next hop, said next hop to identify a second virtual router, wherein said first virtual router corresponds to a first address space different from a second address space that corresponds to the second virtual router, and download the route to a forwarding table; and a set of one or more line cards coupled with the control card, at least one of the set of line cards to receive said route.
- 20. The network element of claim 19 further comprising a transmission medium to carry routes to said set of line cards.
- 21. The network element of claim 19 wherein the next hop is a logical interface.
- 22. The network element of claim 19 wherein the next hop is a virtual router handle.
- 23. The network element of claim 19 wherein the set of instructions further cause the control card to host a set of one or more routing protocol processes, each of the set of routing protocol processes corresponding to a different routing protocol, the set of routing protocol processes to process packets for a plurality of virtual routers supported by the network element.
- 24. The network element of claim 19 each of the set of line cards includes a set of instructions to cause the corresponding line card to host a forwarding process, said forwarding process to process sending and receiving of a packet between virtual routers.
- 25. A machine-readable medium that provides instructions, which when executed by a set of one or more processors, cause said set of processors to perform operations comprising:
indicating for a route a logical interface as a next hop for a destination, said logical interface identifying a first virtual router, said first virtual router including a first routing table; and inserting said route into a second routing table of a second virtual router, wherein said first routing table is for a first address space different than the second routing table's address space.
- 26. The machine-readable medium of claim 25 further comprising:
indicating for a second route a second logical interface as a second next hop for a second destination, said second logical interface identifying the second virtual router; inserting said second route into the first routing table; and exchanging route information between the first and second virtual routers via the second and first logical interfaces.
- 27. The machine-readable medium of claim 25 further comprising downloading the destination and the logical interface to a data plane and forwarding packets from the second virtual router to the first virtual router with the logical interface.
- 28. The machine-readable medium of claim 25 further comprising:
transmitting a packet from the second virtual router to a third virtual router via a second logical interface that identifies the VLAN; and receiving the packet on a third logical interface associated with the VLAN and the third virtual router.
- 29. A machine-readable medium that provides instructions, which when executed by a set of one or more processors, cause said set of processors to perform operations comprising:
peering a first virtual router to a second virtual router, wherein the first and second virtual routers have separate address spaces and separate routing tables; distributing a set of one or more routes from the first virtual router to the second virtual router, wherein a first of the set of routes identifies the first virtual router as a next hop of the first route, said first route including a destination; and downloading to a set of one or more forwarding tables, the destination and the next hop.
- 30. The machine-readable medium of claim 29 wherein said peering comprises:
generating a first logical interface that indicates the first virtual router; generating a second logical interface that indicates the second virtual router; associating the first logical interface with the second virtual router; and associating the second logical interface with the first virtual router.
- 31. The machine-readable medium of claim 30 further comprising a routing protocol process exchanging routing information via the first and second logical interfaces.
- 32. The machine-readable medium of claim 29 wherein the next hop is a logical interface that indicates the first virtual router.
- 33. The met machine-readable medium of claim 29 wherein the next hop is the first virtual router's identifier.
- 34. The machine-readable medium of claim 29 further comprising associating the first and second virtual routers with a virtual local area network (VLAN).
- 35. The machine-readable medium of claim 34 wherein said associating comprises:
generating in said second virtual router's routing table a first route that includes said VLAN as a destination and a first logical interface that indicates said first virtual router; and generating in said first virtual router's routing table a second route that includes said VLAN as a destination and a second logical interface that indicates said second virtual router.
- 36. The machine-readable medium of claim 34 further comprising said first and second virtual routers exchanging routing information via the VLAN.
- 37. A machine-readable medium that provides instructions, which when executed by a set of one or more processors, cause said set of processors to perform operations comprising:
inserting in a first virtual router's routing table a route, said route indicating a destination and a next hop, said next hop identifying a second virtual router, wherein said first virtual router corresponds to a first address space different from a second address space that corresponds to the second virtual router; and downloading the route to a forwarding table.
- 38. The machine-readable medium of claim 37 wherein said next hop is a logical interface.
- 39. The machine-readable medium of claim 37 wherein said next hop is the second virtual router's identifier.
- 40. The machine-readable medium of claim 37 further comprising said first virtual router exchanges routing information with said second virtual router via said route.
- 41. The machine-readable medium of claim37 further comprising forwarding a packet from said first virtual router to said second virtual router in accordance with said next hop indicated in said forwarding table.
- 42. A machine-readable medium that provides instructions, which when executed by a set of one or more processors, cause said set of processors to perform operations comprising:
associating a first virtual router and a second virtual router to a virtual local area network (VLAN); and indicating in a routing table a route from the first virtual router to the second virtual router via the VLAN.
- 43. The machine-readable medium of claim 42 wherein said associating comprises generating a first logical interface for the first virtual router that indicates the VLAN and a second logical interface for the second virtual router that indicates the VLAN.
- 44. The machine-readable medium of claim 43 wherein said first and second virtual routers exchange routing information via the first and second logical interfaces.
- 45. The machine-readable medium of claim 42 further comprising forwarding a packet to the second virtual router and a third virtual router from the first virtual router in accordance with an entry in the first virtual router's forwarding table, which indicates a first logical interface as a next hop to the VLAN.
- 46. The machine-readable medium of claim 45 wherein the packet is received by the second virtual router via a second logical interface and the third virtual router receives the packet via a third logical interface, wherein said second logical interface identifies the second virtual router and the third logical interface indicates the third virtual router.
CROSS-REFERENCE TO RELATED APPLICATIONS
[0001] This application claims the benefit of U.S. Provisional Patent Application No. 60/397,353, entitled “Method and Apparatus for Routing and Forwarding Between Virtual Routers Within a Single Network Element” filed on Jul. 20, 2002.
Provisional Applications (1)
|
Number |
Date |
Country |
|
60397353 |
Jul 2002 |
US |