Network switch and link recovery method for dual-homing thereof
Abstract
A network switch comprises a primary port, coupled to a first network device through a primary link; a backup port, coupled to a second network device through a backup link; a processing unit, configured to execute a program code; and a storage unit, coupled to the processing unit, configured to store the program code to indicate to the processing unit to execute a link recovery method for dual-homing. The link recovery method comprises receiving a plurality of first data packets via the backup port to obtain first packet information when the backup port is in a forwarding state; receiving a plurality of second data packets via the primary port to obtain second packet information in response to detecting an electrical signal from the primary link; comparing the second packet information with the first packet information to obtain a comparison result; and performing link change according to the comparison result.
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 22 · Forward citations: 0.
Claims (8)
- Claim 1Independent Claim
A link recovery method for dual-homing, used for a network switch, wherein the network switch is coupled to a first network device through a primary link via a primary port and is coupled to a second network device through a backup link via a backup port, the link recovery method comprising: receiving a plurality of first data packets via the backup port to obtain first packet information when the backup port is in a forwarding state; receiving a plurality of second data packets via the primary port to obtain second packet information in response to detecting an electrical signal from the primary link; comparing the second packet information with the first packet information to obtain a comparison result; and performing link change according to the comparison result; wherein the link recovery method further comprises switching the primary port to a learning state and receiving the plurality of second data packets via the primary port in response to detecting the electrical signal from
- Claim 2Depends on #1
The link recovery method of claim 1, wherein the second network device is a backup for the first network device.
- Claim 3Depends on #1
The link recovery method of claim 1, wherein the first network device and the second network device are the same device, and the primary link and the backup link are coupled to different network interface controllers (NIC).
- Claim 4Depends on #1
The link recovery method of claim 1, wherein the first packet information comprises source media access control (MAC) addresses of the plurality of first data packets, and the second packet information comprises source MAC addresses of the plurality of second data packets.
- Claim 5Depends on #4
The link recovery method of claim 4, wherein the step of performing the link change according to the comparison result comprises performing the link change when the comparison result indicates that one of the source MAC addresses of the second packet information is the same as one of the source MAC addresses of the first packet information.
- Claim 6Depends on #1
The link recovery method of claim 1, wherein the step of performing the link change according to the comparison result is switching a state of the primary port to a forwarding state and switching a state of the backup port to a blocking state.
- Claim 7Independent Claim
A network switch, comprising: a primary port, coupled to a first network device through a primary link; a backup port, coupled to a second network device through a backup link; a processing unit, configured to execute a program code; and a storage unit, coupled to the processing unit, configured to store the program code to indicate to the processing unit to execute a link recovery method for dual-homing, wherein the link recovery method comprises: receiving a plurality of first data packets via the backup port to obtain first packet information when the backup port is in a forwarding state; receiving a plurality of second data packets via the primary port to obtain second packet information in response to detecting an electrical signal from the primary link; comparing the second packet information with the first packet information to obtain a comparison result; and performing link change according to the comparison result; wherein the link recovery method further comprises switching t
- Claim 8Depends on #7
The network switch of claim 7, wherein the second network device is a backup for the first network device.
Technical Overview & Description
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a network switch and a link recovery method, and more particularly, to a network switch and a link recovery method for dual-homing thereof. 2. Description of the Prior Art As the industry's demand for production capacity and cost efficiency grows, connecting production equipment to networks has become increasingly popular. Network connections allow for cross-machine data collection and analysis, resulting in faster, more flexible, and efficient manufacturing processes. As a result, higher quality products can be produced at lower costs. However, as reliance on networks increases, how to ensure the reliability and stability of network connections has become a concern for the industry. To ensure stable communication between devices and the network, previous technologies have provided a path redundancy mechanism such as dual-homing to avoid the risk of network disconnection caused by the failure of a single line or a single network device. The dual-homing mechanism usually involves two physical links connecting two different ports of a network switch to different network interface controllers (NICs) of a device or to two different devices that are redundant to each other. In a dual-homing system, one of the ports of the network switch is used as a primary port to connect to the primary link and forward data packets, and the other port is used as a backup port to connect to the backup link and standby. When the primary link connected to the primary port fails (link-down), the backup link connected to the backup port has to take over the primary link for data packet forwarding until the primary link is reconnected (link-up) again. However, methods of determining whether a link has been restored in the prior art merely depend on whether to receive an electrical signal in the physical layer (OSI L 1 ) in general, but it is not possible to correctly determine whether the connected network
Cited By — Indexed Forward Citations (0 of 0 total)
No indexed citing patents in this generation yet. Ingest USPTO/PatentsView bulk citation tables via patents-ingest to expand the local forward citation graph.