Claims
- 1. A method for providing protection switching between primary and secondary paths in a packet-based network comprising:
performing a lookup to identify a forwarding element, the forwarding element including primary forwarding information, secondary forwarding information, and a primary path identifier (PPI); comparing said PPI to a down path identifier (DPI); and selecting either said primary forwarding information or said secondary forwarding information in response to said comparison.
- 2. The method of claim 1 wherein said selecting includes:
selecting said primary forwarding information from said forwarding element if said PPI does not match said DPI; and selecting said secondary forwarding information from said forwarding element if said PPI matches said DPI.
- 3. The method of claim 2 further including using said selected forwarding information to forward a packet.
- 4. The method of claim 1 further including changing the value of said DPI to a value that represents that a particular path is down upon determining that said particular path is down.
- 5. The method of claim 4 wherein changing the value of said DPI includes writing said value into a hardware-based register.
- 6. The method of claim 5 wherein said lookup is performed in a hardware-based lookup table.
- 7. The method of claim 6 wherein said comparison involves comparing said hardware-based register that stores said DPI to a hardware-based register that stores said PPI.
- 8. The method of claim 1 wherein said PPI represents one of an IP next hop address, a media access control (MAC) address, a virtual private network (VPN) ID, a virtual circuit (VC) ID, a virtual local area network (VLAN) ID, a label switch path (LSP) ID, or an output port.
- 9. The method of claim 1 wherein said secondary forwarding information is selected as long as said PPI and said DPI match.
- 10. The method of claim 1 wherein comparing said PPI to said DPI includes comparing said PPI to multiple DPIs and wherein selecting either said primary forwarding information or said secondary information in response to said comparing includes selecting said secondary forwarding information if said PPI matches any of said multiple DPIs.
- 11. The method of claim 1 further including forwarding traffic using the selected forwarding information.
- 12. The method of claim 1 wherein comparing said PPI to said DPI involves comparing two hardware-based registers.
- 13. The method of claim 1 further including storing said DPI, at a central location within said network node and distributing said DPI to multiple lookup engines.
- 14. The method of claim 1 further including pre-programming said forwarding element with said primary forwarding information, said secondary forwarding information, and said PPI.
- 15. A system for providing protection switching between primary and secondary paths in a packet-based network comprising:
first memory for storing a lookup table, said lookup table having forwarding element fields for storing forwarding elements, said forwarding element fields including a primary forwarding information field for storing primary forwarding information, a secondary forwarding information field for storing secondary forwarding information, and a primary path identifier (PPI) field for storing a PPI; second memory having a down path identifier (DPI) field for storing a DPI; and a lookup engine configured for:
performing a lookup to identify a first forwarding element; comparing the PPI from said first forwarding element to said DPI; selecting either said primary forwarding information or said secondary forwarding information from said first forwarding element in response to said comparison.
- 16. The system of claim 15 wherein selecting either said primary forwarding information or said secondary forwarding information includes:
selecting said primary forwarding information from said forwarding element if said PPI does not match said DPI; and selecting said secondary forwarding information from said forwarding element if said PPI matches said DPI.
- 17. The system of claim 15 further including means for changing said DPI that is stored in said second memory in response to a change in status of a path.
- 18. The system of claim 15 wherein said lookup table is a hardware-based lookup table.
- 19. The system of claim 15 wherein comparing the PPI from said first forwarding element to said DPI includes comparing two hardware-based registers.
- 20. The system of claim 15 wherein said second memory includes multiple DPI fields for storing multiple DPIs.
- 21. The system of claim 15 further including:
multiple lookup tables; multiple lookup engines; local DPI storage associated with each one of said multiple lookup engines; and means for distributing said DPI from second memory to said local DPI storage that is associated with each one of said multiple lookup engines.
- 22. A method for providing protection switching between primary and secondary paths in a packet-based network comprising:
writing primary forwarding information, secondary forwarding information, and a primary path identifier (PPI) into a forwarding element of a lookup table; identify said forwarding element in said lookup table; comparing said PPI to a down path identifier (DPI); selecting said primary forwarding information from said forwarding element if said PPI does not match said DPI; and selecting said secondary forwarding information from said forwarding element if said PPI matches said DPI.
- 23. The method of claim 22 further including using said selected forwarding information to forward a packet.
- 24. The method of claim 22 further including changing the value of said DPI to a value that represents that a particular path is down upon determining that said particular path is down.
- 25. The method of claim 22 wherein said comparison involves comparing a hardware-based register that stores said DPI to a hardware-based register that stores said PPI.
- 26. The method of claim 22 wherein said secondary forwarding information is selected as long as said PPI and said DPI match.
- 27. The method of claim 22 wherein comparing said PPI to said DPI includes comparing said PPI to multiple DPIs and wherein selecting either said primary forwarding information or said secondary information in response to said comparing includes selecting said secondary forwarding information if said PPI matches any of said multiple DPIs.
- 28. The method of claim 22 further including storing said DPI at a central location within said network node and distributing said DPI to multiple lookup engines.
CROSS-REFERENCE TO RELATED APPLICATION
[0001] This application is entitled to the benefit of provisional U.S. Patent Application Serial Number 60/386,076, filed Jun. 4, 2002.
Provisional Applications (1)
|
Number |
Date |
Country |
|
60386076 |
Jun 2002 |
US |