CN106911597B - Cross-board forwarding method and device - Google Patents

Cross-board forwarding method and device Download PDF

Info

Publication number
CN106911597B
CN106911597B CN201710079164.1A CN201710079164A CN106911597B CN 106911597 B CN106911597 B CN 106911597B CN 201710079164 A CN201710079164 A CN 201710079164A CN 106911597 B CN106911597 B CN 106911597B
Authority
CN
China
Prior art keywords
opposite
board
reserved interface
line card
interface
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201710079164.1A
Other languages
Chinese (zh)
Other versions
CN106911597A (en
Inventor
吴云
郑国良
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Hangzhou H3C Technologies Co Ltd
Original Assignee
Hangzhou H3C Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hangzhou H3C Technologies Co Ltd filed Critical Hangzhou H3C Technologies Co Ltd
Priority to CN201710079164.1A priority Critical patent/CN106911597B/en
Publication of CN106911597A publication Critical patent/CN106911597A/en
Application granted granted Critical
Publication of CN106911597B publication Critical patent/CN106911597B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L49/00Packet switching elements
    • H04L49/10Packet switching elements characterised by the switching fabric construction
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L49/00Packet switching elements
    • H04L49/15Interconnection of switching modules
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L49/00Packet switching elements
    • H04L49/20Support for services
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L49/00Packet switching elements
    • H04L49/25Routing or path finding in a switch fabric
    • H04L49/252Store and forward routing

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Structure Of Telephone Exchanges (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The embodiment of the invention provides a cross-board forwarding method and a cross-board forwarding device, which are used for completing cross-board forwarding of flow on a cable card board when a main control board of member equipment is restarted. The method comprises the following steps: when detecting that an opposite-end reserved interface is switched to an activated state, switching a local-end reserved interface connected with the opposite-end reserved interface to the activated state, and taking over a line card board corresponding to the opposite-end reserved interface, wherein the opposite-end reserved interface is switched to the activated state when a main control board of opposite-end member equipment is restarted; the line card board of the home terminal receives the flow of the opposite terminal reserved interface through the home terminal reserved interface, wherein the opposite terminal reserved interface is the line card board where the opposite terminal access interface is located; and the line card board of the local terminal sends the flow to the main control board of the local terminal, and the main control board of the local terminal controls the forwarding of the flow. Therefore, the flow can be normally forwarded across the main control board when the main control board is restarted, and the normal execution of the service is ensured.

Description

Cross-board forwarding method and device
Technical Field
The present invention relates to the field of communications technologies, and in particular, to a cross-board forwarding method and a cross-board forwarding apparatus.
Background
IRF (Intelligent Resilient Framework) is a software virtualization technology. The IRF can virtualize a plurality of devices into one device after connecting the devices together and performing necessary configuration. The virtualization technology can be used for integrating hardware resources and software processing capacity of a plurality of devices, and realizing cooperative work, unified management and uninterrupted maintenance of the plurality of devices.
Thus, the IRF can connect a plurality of member devices together to manage, distribute and process tasks together. The member equipment integrating the master control book and the screen plate comprises the screen plate and the wire clamping plate, the screen plate can manage and schedule the wire clamping plate, and the wire clamping plate can process tasks.
However, for such member devices, when the master control board, i.e., the network board, is restarted, since data traffic needs to pass through the network board when being forwarded across boards, the restart of the network board may cause that the line card boards cannot communicate with each other, and thus forwarding of the traffic across boards cannot be completed.
Disclosure of Invention
The technical problem to be solved by the embodiments of the present invention is to provide a cross-board forwarding method, so as to complete cross-board forwarding of traffic on a line card board when a main control board of a member device is restarted.
Correspondingly, the embodiment of the invention also provides a cross-board forwarding device, which is used for ensuring the realization and the application of the method.
In order to solve the above problems, the present invention discloses a cross-board forwarding method, which comprises: when detecting that an opposite-end reserved interface is switched to an activated state, switching a local-end reserved interface connected with the opposite-end reserved interface to the activated state, and taking over a line card board corresponding to the opposite-end reserved interface, wherein the opposite-end reserved interface is switched to the activated state when a main control board of opposite-end member equipment is restarted; the line card board of the home terminal receives the flow of the opposite terminal reserved interface through the home terminal reserved interface, wherein the opposite terminal reserved interface is the line card board where the opposite terminal access interface is located; and the line card board of the local terminal sends the flow to the main control board of the local terminal, and the main control board of the local terminal controls the forwarding of the flow.
Optionally, the forwarding includes: the frame is forwarded across boards; the controlling of the forwarding of the flow through the main control board includes: the main control board of the local end sends the flow to a target line card board, and a local end reserved interface of the target line card board is connected with an opposite end reserved interface of the line card board where an opposite end outlet interface is located; and the target line card board transmits the flow to the line card board where the opposite-end outlet interface is located through the local-end reserved interface.
Optionally, the forwarding includes: forwarding across frames; the controlling of the forwarding of the flow through the main control board includes: and the main control board of the local terminal sends the flow to the line clamping board where the output interface of the local terminal is located.
Optionally, the method further includes: the main control board of the local terminal transmits the forwarding table items to the line card board of the local terminal; and the line clamping plate of the local terminal synchronizes the forwarding table items to the line clamping plate of the opposite terminal through the opposite terminal reserved interface connected with the local terminal reserved interface.
Optionally, the method further includes: and when the condition that the reserved interface of the opposite terminal is recovered to the inactivated state is detected, recovering the reserved interface of the local terminal connected with the reserved interface of the opposite terminal to the inactivated state, and releasing the line card board corresponding to the reserved interface of the opposite terminal, wherein the reserved interface of the opposite terminal is recovered to the inactivated state after the main control board of the member equipment of the opposite terminal is restarted.
The embodiment of the invention also discloses a cross-board forwarding device, which comprises: a takeover module, configured to switch a local-end reserved interface connected to an opposite-end reserved interface to an active state when detecting that the opposite-end reserved interface is switched to the active state, and take over a line card board corresponding to the opposite-end reserved interface, where the opposite-end reserved interface is switched to the active state when a main control board of an opposite-end member device is restarted; the flow receiving module is used for receiving the flow of the connected opposite-end reserved interface by the line card board of the local end through the local-end reserved interface, and the opposite-end reserved interface is the line card board where the opposite-end access interface is located; and the flow forwarding module is used for the line card board of the local end to send the flow to the main control board of the local end, and controlling the forwarding of the flow through the main control board of the local end.
Optionally, the forwarding includes: the frame is forwarded across boards; the traffic forwarding module comprises: the frame span board forwarding submodule is used for sending the flow to a target line card board by a main control board of a local end, and a local end reserved interface of the target line card board is connected with an opposite end reserved interface of the line card board where an opposite end outlet interface is located; and the target line card board transmits the flow to the line card board where the opposite-end outlet interface is located through the local-end reserved interface.
Optionally, the forwarding includes: forwarding across frames; the traffic forwarding module comprises: and the cross-frame forwarding submodule is used for sending the flow to the line clamping plate where the local output interface is located by the main control board of the local terminal.
Optionally, the method further includes: the synchronization module is used for the main control board of the local terminal to send the forwarding table items to the line card board of the local terminal; and the line clamping plate of the local terminal synchronizes the forwarding table items to the line clamping plate of the opposite terminal through the opposite terminal reserved interface connected with the local terminal reserved interface.
Optionally, the takeover module is further configured to, when detecting that the opposite-end reserved interface is restored to the inactive state, restore the local-end reserved interface connected to the opposite-end reserved interface to the inactive state, and release the line card board corresponding to the opposite-end reserved interface, where the opposite-end reserved interface is restored to the inactive state after the main control board of the opposite-end member device is restarted.
Compared with the prior art, the embodiment of the invention has the following advantages:
in the embodiment of the invention, in the process of restarting the main control board of the member equipment, the line card board of the member equipment is not restarted along with the main control board, but is taken over by other normally working member equipment through switching to the reserved interface in an activated state, so that the flow received by the taken over line card board is sent to the taken over member equipment through the reserved interface, and the main control board of the taken over member equipment controls the flow forwarding, thereby ensuring that the flow can be normally forwarded across boards when the main control board is restarted, and ensuring the normal execution of services.
Drawings
FIG. 1 is a schematic diagram of a stacking apparatus in an embodiment of the invention;
FIG. 2 is a flowchart illustrating steps of an embodiment of a cross-board forwarding method of the present invention;
FIG. 3 is a flowchart of steps of cross-board forwarding in another embodiment of a cross-board forwarding method according to the present invention;
FIG. 4 is a flowchart of steps of cross-frame forwarding in another embodiment of a cross-board forwarding method of the present invention;
FIG. 5 is a block diagram of a cross-board forwarding device according to an embodiment of the present invention;
fig. 6 is a block diagram of another embodiment of a transplane forwarding device according to the present invention.
Detailed Description
In order to make the aforementioned objects, features and advantages of the present invention comprehensible, embodiments accompanied with figures are described in further detail below.
Multiple devices may be virtualized as a stacked device based on IRF techniques, and each device may be a member device of the stacked device. For member equipment integrating a main control board and a network board, because the type of equipment does not have an independent network board, and the cross-board forwarding of flow needs to be completed through the main control board, when the main control board is restarted due to the abnormality of the equipment, the wire clamping board on the member equipment can switch modes, so that other member equipment still working normally in the stacking equipment takes over the equipment and directs the flow to be forwarded through a reserved interface.
In the embodiment of the present invention, for each member device in the stacking device, at least one interface may be reserved on each cable card board of the member device in advance, and the reserved interface may be referred to as a reserved stacking port. And each reserved interface on the line card board is connected with the reserved interfaces on the line card boards corresponding to other member equipment. Therefore, when the main control board of one member device is restarted, the wire clamping board of the member device can be taken over by other normally-operated member devices through the reserved interface, and the task of flow forwarding is continuously executed. In the embodiment of the invention, the reserved interface is in an inactive (active) state when the member equipment normally operates, and the reserved interface is in an active (active) state when the main control board of the member equipment is restarted. Therefore, whether the line card board corresponding to the reserved interface needs to be taken over or not can be determined through the state of the reserved interface.
An example of a stacked device, as shown in fig. 1, includes a member device 100 and a member device 200, wherein the member device 100 includes: main control board 110, line card board 120 and line card board 130, member device 200 includes: main control board 210, wire clip board 220, and wire clip board 230. Wire clamping board 120 is provided with reserved interface 121, wire clamping board 130 is provided with reserved interface 131, wire clamping board 220 is provided with reserved interface 221, wire clamping board 230 is provided with reserved interface 231, wherein reserved interface 121 is connected with reserved interface 221, and reserved interface 131 is connected with reserved interface 231. Of course, other member devices may be included, and each cable card board may include more than one reserved interface, which is not listed in this example.
Referring to fig. 2, a flowchart illustrating steps of an embodiment of a cross-board forwarding method according to the present invention is shown, which may specifically include the following steps:
step 202, when detecting that the opposite reserved interface is switched to the activated state, switching the local reserved interface connected with the opposite reserved interface to the activated state, and taking over the line card board corresponding to the opposite reserved interface.
When each member device in the stacking device is in operation, if the main control board is restarted due to problems such as failure, the member device can switch the reserved interface on each cable card board to an active state, wherein the cable card board can update the state of the reserved interface according to the operation state of the member device, namely, the reserved interface is switched to the active state when the main control board of the member device is determined to be restarted. For member equipment which normally runs in the stacking equipment, when the member equipment detects that the reserved interface at the opposite end is switched to an active state, the reserved interface at the local end connected with the reserved interface at the opposite end can be switched to the active state, and the line card plate corresponding to the reserved interface at the opposite end is taken over, namely the line card plate of the member equipment at the opposite end is managed by adopting the main control plate at the local end.
As shown in fig. 1, if the main control board 110 of the member device 100 is reset, both the reserved interface 121 of the line card board 120 and the reserved interface 131 of the line card board 130 are switched to active states. In the perspective of the member device 200, the member device 200 is a local member device, and the member device 100 is an opposite member device, the member device 200 may detect that the opposite reserved interfaces 121 and 131 are in an active state, switch the local reserved interface 221 connected to the opposite reserved interface 121 to the active state, and switch the local reserved interface 231 connected to the opposite reserved interface 131 to the active state, so that the member device 200 takes over the line card boards 120 and 130 of the member device 100, that is, the main control board 210 can be used to manage the line card boards 120 and 130.
And 204, the line card board of the local terminal receives the flow of the connected opposite terminal reserved interface through the local terminal reserved interface, wherein the opposite terminal reserved interface is the line card board where the opposite terminal access interface is located.
And step 206, the line card board of the local terminal sends the flow to the main control board of the local terminal, and the main control board of the local terminal controls the forwarding of the flow.
In the opposite-end member device restarted by the main control board, the line card board (which can be called as a first line card board) where the incoming interface is located receives the data message, namely the flow, the forwarding table entry on the line card board can be checked to determine the interface, and if the outgoing interface is on the line card board, the forwarding can be directly performed. If the outgoing interface is on the other cable card board of the member device where the outgoing interface is located, or the outgoing interface is on the cable card board of the other member device, the outgoing interface can be sent to the member device taking over the cable card board through the reserved interface (namely, the opposite-end reserved interface) of the cable card board, so that traffic forwarding is performed through the main control board of the member device. In the member equipment of this end of takeover line cardboard, this flow is received with the local end interface that the opposite end reserved interface was connected, the flow transmits the line cardboard (can be called second line cardboard) of this end member equipment through reserving the interface promptly, then this line cardboard sends the flow for the main control board of its place member equipment, this main control board forwards this flow, if the line cardboard of giving opposite end member equipment is returned to the control through the main control board, if the line cardboard of giving other member equipment is sent to the control through the main control board again.
In the above example, after the line card boards 120 and 130 are managed by the main control board 210, it is assumed that the line card board 120 receives traffic that needs to be forwarded across boards. The line card board 120 transmits the traffic to the reserved interface 221 of the line card board 220 through the reserved interface 121, the line card board 220 sends the traffic to the main control board 210, and the main control board 210 forwards the traffic.
In summary, in the process of restarting the member device main control board, the line card board of the member device is not restarted along with the main control board, but is taken over by other normally operating member devices through the reserved interface switched to the active state, so that the flow received by the taken over line card board is sent to the taken over member device through the reserved interface, and the main control board of the taken over member device controls the flow forwarding, thereby ensuring that the flow can be normally forwarded across boards when the main control board is restarted, and ensuring the normal execution of services.
In the embodiment of the invention, the cross-board forwarding of the traffic comprises the following steps: the frame is forwarded across boards and across frames. The frame cross-board forwarding refers to forwarding of traffic from one line card board to another line card board of the same member device, namely forwarding between line card boards of the same member device; cross-box forwarding refers to the forwarding of traffic from a cable card board of one member device onto a cable card board of another member device. The input interface is an interface for receiving data messages, namely flow, and the output interface is an interface for outputting the data messages, namely flow.
The frame cross-board forwarding comprises the following steps:
referring to fig. 3, a flowchart of steps of cross-board forwarding in another embodiment of the cross-board forwarding method of the present invention is shown, which may specifically include the following steps:
step 302, when detecting that the opposite reserved interface is switched to the activated state, switching the local reserved interface connected with the opposite reserved interface to the activated state, and taking over the line card board corresponding to the opposite reserved interface.
And 304, the line card board of the local terminal receives the flow of the connected opposite terminal reserved interface through the local terminal reserved interface, and the opposite terminal reserved interface is the line card board where the opposite terminal access interface is located.
And step 306, the line card board of the local terminal sends the flow to the main control board of the local terminal.
And 308, the main control board at the home terminal sends the flow to the target line card board.
And step 310, the target line card board transmits the flow to the line card board where the opposite-end output interface is located through the local-end reserved interface.
And step 312, when detecting that the opposite reserved interface is restored to the inactivated state, restoring the local reserved interface connected with the opposite reserved interface to the inactivated state, and releasing the cable clamping plate corresponding to the opposite reserved interface.
In this embodiment, the member device taking over the cable card board is referred to as a home-end member device, and the member device taking over the cable card board due to the restart of the main control board is referred to as an opposite-end member device. When the main control board of the opposite terminal member equipment is restarted, the opposite terminal member equipment can switch the opposite terminal reserved interface on each line card board into an active state. The state of the local terminal reserved interface connected with the opposite terminal reserved interface in the local terminal member equipment is switched to an active state, the local terminal member equipment takes over the line clamping board of the opposite terminal reserved interface based on the active state of the two terminal reserved interfaces, and therefore the line clamping board of the opposite terminal member equipment can be managed by the main control board of the local terminal.
The wire clamping board of the opposite end can have tasks such as traffic cross-board forwarding, namely, the wire clamping board (which can be called as a first wire clamping board) where the incoming interface of the member device of the opposite end is located receives the data message, namely, the traffic, the forwarding table entry on the wire clamping board can be checked to determine the interface, and if the incoming interface is located on the wire clamping board, the forwarding can be directly performed. If the outgoing interface is on another line card board (may be called as a third line card board) of the opposite-end member device, the cross-board forwarding can be realized through the main control board of the home-end member device. The opposite-end member device sends the flow to a local-end reserved interface (which may be called a second reserved interface) through a reserved interface (which may be called a first reserved interface) of a line card board where the incoming interface is located, that is, the line card board of the local-end reserved interface receives the flow, the line card board sends the flow to the main control board, the main control board checks the forwarding table item to determine a target line card board (which may be called a fourth line card board), and the local-end reserved interface (which may be called a fourth reserved interface) of the target line card board is connected with an opposite-end reserved interface (which may be called a third reserved interface) of the line card board where the opposite-end outgoing interface is located. The main control board issues the flow to the target line card board, and then the target line card board adopts the local reserved interface to send the flow to the connected opposite reserved interface, namely the line card board where the outgoing interface is located, so as to realize the span-board forwarding of the frame of the flow.
The main control board of the local terminal issues the forwarding table items to the line card board of the local terminal; and the line clamping plate of the local terminal synchronously forwards the forwarding table item to the line clamping plate of the opposite terminal through the opposite terminal reserved interface corresponding to the local terminal reserved interface. After the main control board of the local terminal takes over the line card board of the opposite terminal, the stacking device generates or updates the forwarding table items, after the main control board of the local terminal member device obtains the forwarding table items, the main control board can issue the forwarding table items to each line card board of the local terminal, when the line card board of the local terminal is in an active state corresponding to the reserved interface of the local terminal, the line card board of the local terminal sends the forwarding table items to the reserved interface of the opposite terminal connected through the reserved interface of the local terminal, and the line card board of the reserved interface of the opposite terminal can receive the forwarding table items. In the embodiment of the present invention, the forwarding table entry includes: the routing forwarding table entry and the MAC address table entry, wherein the routing table entry is searched when the data message is forwarded through the three layers, and the MAC address table entry is searched when the data message is forwarded through the two layers.
After the main control board of the member device at the opposite end is restarted, each pair of reserved interfaces of the member device at the opposite end can be recovered to an inactive state, the reserved interface at the local end connected with the reserved interface at the opposite end is correspondingly recovered to the inactive state, the main control board of the member device at the local end releases the line card board corresponding to the reserved interface at the opposite end, and the main control board of the member device at the opposite end takes over the line card board of the member device at the opposite end again.
As shown in fig. 1, if the main control board 110 of the member device 100 is reset, both the reserved interface 121 of the line card board 120 and the reserved interface 131 of the line card board 130 are switched to active states. In the perspective of the member device 200, the member device 200 is a local member device, and the member device 100 is an opposite member device, the member device 200 may detect that the opposite reserved interfaces 121 and 131 are in an active state, switch the local reserved interface 221 connected to the opposite reserved interface 121 to the active state, and switch the local reserved interface 231 connected to the opposite reserved interface 131 to the active state, so that the member device 200 takes over the line card boards 120 and 130 of the member device 100, that is, the main control board 210 can be used to manage the line card boards 120 and 130. Assuming that the line card board 120 is the line card board where the incoming interface is located, the line card board 120 receives the traffic that needs to be forwarded across boards, and the line card board 120 queries the forwarding table entry to determine the interface, which can determine that the frame needs to be forwarded across boards. The line card board 120 transmits the traffic to the reserved interface 221 of the line card board 220 through the reserved interface 121, the line card board 220 sends the traffic to the main control board 210, the main control board 210 queries the forwarding table entry to determine that the output interface of the traffic corresponds to the line card board 130, the traffic can be sent to the line card board 230 connected to the main control board, the line card board 230 sends the traffic to the reserved interface 131 through the reserved interface 231, and the line card board 130 receives the traffic message. Moreover, after the main control board 110 is restarted, the states of the reserved interfaces 121 and 131 are restored to an inactive state, the correspondingly connected reserved interfaces 221 and 231 are also restored to an inactive state, and the main control board 210 releases the line card boards 120 and 130, that is, the line card boards 120 and 130 are taken over again by the restarted main control board 110.
Therefore, for the equipment integrating the master control and the network board, when the member equipment in the stacking equipment is restarted by the master control board, the cable clamping board on the member equipment can still complete the frame cross-board forwarding of the service flow through the reserved stacking port.
The cross-frame forwarding comprises the following steps:
referring to fig. 4, a flowchart of a step of cross-frame forwarding in another embodiment of a cross-board forwarding method of the present invention is shown, which may specifically include the following steps:
step 402, when detecting that the opposite reserved interface is switched to the activated state, switching the local reserved interface connected with the opposite reserved interface to the activated state, and taking over the line card board corresponding to the opposite reserved interface.
And step 404, the line card board of the local terminal receives the flow of the connected opposite terminal reserved interface through the local terminal reserved interface, and the opposite terminal reserved interface is the line card board where the opposite terminal access interface is located.
And 406, the main control board of the local terminal sends the flow to the line card board where the output interface of the local terminal is located.
And step 408, the main control board at the home terminal sends the flow to the target cable card board.
And step 410, when detecting that the opposite reserved interface is recovered to the inactivated state, recovering the local reserved interface connected with the opposite reserved interface to the inactivated state, and releasing the line card board corresponding to the opposite reserved interface.
In this embodiment, the member device taking over the cable card board is referred to as a home-end member device, and the member device taking over the cable card board due to the restart of the main control board is referred to as an opposite-end member device. The cross-frame forwarding of the flow is basically similar to the processing steps of the cross-board forwarding of the frame of the flow, and the main difference is the step of forwarding the flow after the main control board of the local end receives the flow. When the main control board of the opposite-end member device is restarted, the opposite-end member device will switch the opposite-end reserved interface on each line card board to an active state. The state of the local terminal reserved interface connected with the opposite terminal reserved interface in the local terminal member equipment is switched to an active state, the local terminal member equipment takes over the line clamping board of the opposite terminal reserved interface based on the active state of the two terminal reserved interfaces, and therefore the line clamping board of the opposite terminal member equipment can be managed by the main control board of the local terminal. The wire clamping board of the opposite end can have tasks such as traffic cross-board forwarding, namely, the wire clamping board (which can be called as a first wire clamping board) where the incoming interface of the member device of the opposite end is located receives the data message, namely, the traffic, the forwarding table entry on the wire clamping board can be checked to determine the interface, and if the incoming interface is located on the wire clamping board, the forwarding can be directly performed. If the outgoing interface is on another line card board (may be called as a third line card board) of the opposite-end member device, the cross-board forwarding can be realized through the main control board of the home-end member device. The opposite end member device sends the traffic to the local end reserved interface (which may be called as a second reserved interface) through the reserved interface (which may be called as a first reserved interface) of the line card board where the incoming interface is located, that is, the line card board of the local end reserved interface receives the traffic, and the line card board sends the traffic to the main control board.
The main control board checks the forwarding table item to determine the member device to be forwarded by the flow, further determines the output interface in the member device at the local end, then issues the flow to the line card board where the output interface at the local end is located, and forwards the flow to the next member device through the line card board, wherein the member device can be the member device where the destination address of the flow is located, and can also be an intermediate member device. Wherein, the forwarding table entry comprises: the routing forwarding table entry and the MAC address table entry are searched when the data message is forwarded through the three layers, and the MAC address table entry is searched when the data message is forwarded through the two layers.
After the main control board of the local terminal takes over the line card boards of the opposite terminals, the stacking equipment generates or updates forwarding table items, after the main control board of the local terminal member equipment obtains the forwarding table items, the main control board can issue the forwarding table items to each line card board of the local terminal, when the line card board of the local terminal corresponds to the reserved interface of the local terminal in an active state, the line card board of the local terminal sends the forwarding table items to the reserved interface of the opposite terminal connected through the reserved interface of the local terminal, and the line card board of the reserved interface of the opposite terminal can receive the forwarding table items. And after the main control board of the opposite-end member device is restarted, each pair of reserved interfaces of the opposite-end member device can be recovered to an inactive state, the local-end reserved interface connected with the opposite-end reserved interface is correspondingly recovered to the inactive state, the main control board of the local-end member device releases the line card board corresponding to the opposite-end reserved interface, and the main control board of the opposite-end member device takes over the line card board of the opposite-end member device again.
As shown in fig. 1, if the main control board 110 of the member device 100 is reset, both the reserved interface 121 of the line card board 120 and the reserved interface 131 of the line card board 130 are switched to active states. In the perspective of the member device 200, the member device 200 is a local member device, and the member device 100 is an opposite member device, the member device 200 may detect that the opposite reserved interfaces 121 and 131 are in an active state, switch the local reserved interface 221 connected to the opposite reserved interface 121 to the active state, and switch the local reserved interface 231 connected to the opposite reserved interface 131 to the active state, so that the member device 200 takes over the line card boards 120 and 130 of the member device 100, that is, the main control board 210 can be used to manage the line card boards 120 and 130. Assuming that the line card board 120 is the line card board where the incoming interface is located, the line card board 120 receives the traffic that needs to be forwarded across boards, and the line card board 120 queries the forwarding table entry to determine the interface, which can determine that the frame needs to be forwarded across boards. The line card board 120 transmits the traffic to the reserved interface 221 of the line card board 220 through the reserved interface 121, the line card board 220 sends the traffic to the main control board 210, the main control board 210 queries the forwarding table entry to determine that the output interface of the traffic corresponds to the line card board 330, the traffic can be issued to the line card board 230, and the line card board 230 forwards the traffic to other member devices. Moreover, after the main control board 110 is restarted, the states of the reserved interfaces 121 and 131 are restored to an inactive state, the correspondingly connected reserved interfaces 221 and 231 are also restored to an inactive state, and the main control board 210 releases the line card boards 120 and 130, that is, the line card boards 120 and 130 are taken over again by the restarted main control board 110.
Therefore, for the equipment integrating the master control and the network board, when the member equipment in the stacking equipment is restarted by the master control board, the cable clamping board on the member equipment can still complete the cross-frame forwarding of the service flow through the reserved stacking port.
It should be noted that, for simplicity of description, the method embodiments are described as a series of acts or combination of acts, but those skilled in the art will recognize that the present invention is not limited by the illustrated order of acts, as some steps may occur in other orders or concurrently in accordance with the embodiments of the present invention. Further, those skilled in the art will appreciate that the embodiments described in the specification are presently preferred and that no particular act is required to implement the invention.
On the basis of the above embodiments, the present embodiment further provides a cross-board forwarding device.
Referring to fig. 5, a block diagram of a cross-board forwarding apparatus according to an embodiment of the present invention is shown, and specifically includes the following modules:
a takeover module 502, configured to switch, when detecting that the opposite-end reserved interface is switched to the active state, the local-end reserved interface connected to the opposite-end reserved interface to the active state, and take over a line card board corresponding to the opposite-end reserved interface, where the opposite-end reserved interface is switched to the active state when the main control board of the opposite-end member device is restarted.
And a flow receiving module 504, configured to receive, by a line card board at the home terminal, a flow of a reserved interface at an opposite terminal connected to the line card board through a reserved interface at the home terminal, where the reserved interface at the opposite terminal is a line card board where an interface is located.
And a flow forwarding module 506, configured to send the flow to the main control board of the local end by the line card board of the local end, and control forwarding of the flow through the main control board of the local end.
In summary, in the process of restarting the member device main control board, the line card board of the member device is not restarted along with the main control board, but is taken over by other normally operating member devices through the reserved interface switched to the active state, so that the flow received by the taken over line card board is sent to the taken over member device through the reserved interface, and the main control board of the taken over member device controls the flow forwarding, thereby ensuring that the flow can be normally forwarded across boards when the main control board is restarted, and ensuring the normal execution of services.
Referring to fig. 6, a block diagram of another cross-board forwarding apparatus according to another embodiment of the present invention is shown, which may specifically include the following modules:
a takeover module 502, configured to switch, when detecting that the opposite-end reserved interface is switched to the active state, the local-end reserved interface connected to the opposite-end reserved interface to the active state, and take over a line card board corresponding to the opposite-end reserved interface, where the opposite-end reserved interface is switched to the active state when the main control board of the opposite-end member device is restarted.
And a flow receiving module 504, configured to receive, by a line card board at the home terminal, a flow of a reserved interface at an opposite terminal connected to the line card board through a reserved interface at the home terminal, where the reserved interface at the opposite terminal is a line card board where an interface is located.
And a flow forwarding module 506, configured to send the flow to the main control board of the local end by the line card board of the local end, and control forwarding of the flow through the main control board of the local end.
A synchronization module 508, configured to send the forwarding table entry to the line card board of the local end by the main control board of the local end; and the line clamping plate of the local terminal synchronizes the forwarding table items to the line clamping plate of the opposite terminal through the opposite terminal reserved interface connected with the local terminal reserved interface.
The takeover module 502 is further configured to, when detecting that the opposite-end reserved interface is restored to the inactive state, restore the local-end reserved interface connected to the opposite-end reserved interface to the inactive state, and release the line card board corresponding to the opposite-end reserved interface, where the opposite-end reserved interface is restored to the inactive state after the main control board of the opposite-end member device is restarted.
The forwarding comprises the following steps: the frame is forwarded across boards and across frames.
In an alternative embodiment, the traffic forwarding module 506 includes: the frame cross board forwarding sub-module 5062 is used for sending the flow to the target line card board by the main control board of the local end, and the local end reserved interface of the target line card board is connected with the opposite end reserved interface of the line card board where the opposite end outlet interface is located; and the target line card board transmits the flow to the line card board where the opposite-end output interface is located through the local-end reserved interface.
In another alternative embodiment, the traffic forwarding module 506 includes: and the cross-frame forwarding sub-module 5064 is used for sending the flow to the line card board where the output interface of the local terminal is located by the main control board of the local terminal.
Therefore, for the equipment integrating the master control and the network board, when the member equipment in the stacking equipment is restarted by the master control board, the cable clamping board on the member equipment can still complete the frame-to-board forwarding and frame-to-frame forwarding of the service flow through the reserved stacking port.
For the device embodiment, since it is basically similar to the method embodiment, the description is simple, and for the relevant points, refer to the partial description of the method embodiment.
The embodiments in the present specification are described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments are referred to each other.
As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, apparatus, or computer program product. Accordingly, embodiments of the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, embodiments of the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
Embodiments of the present invention are described with reference to flowchart illustrations and/or block diagrams of methods, terminal devices (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing terminal to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing terminal, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing terminal to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing terminal to cause a series of operational steps to be performed on the computer or other programmable terminal to produce a computer implemented process such that the instructions which execute on the computer or other programmable terminal provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
While preferred embodiments of the present invention have been described, additional variations and modifications of these embodiments may occur to those skilled in the art once they learn of the basic inventive concepts. Therefore, it is intended that the appended claims be interpreted as including preferred embodiments and all such alterations and modifications as fall within the scope of the embodiments of the invention.
Finally, it should also be noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or terminal that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or terminal. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or terminal that comprises the element.
The present invention provides a cross-board forwarding method and a cross-board forwarding device, which are introduced in detail above, and a specific example is applied in this document to explain the principle and the implementation of the present invention, and the description of the above embodiment is only used to help understanding the method and the core idea of the present invention; meanwhile, for a person skilled in the art, according to the idea of the present invention, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present invention.

Claims (10)

1. A cross-board forwarding method, comprising:
when detecting that an opposite-end reserved interface is switched to an activated state, switching a local-end reserved interface connected with the opposite-end reserved interface to the activated state, and taking over a line card board corresponding to the opposite-end reserved interface, wherein the opposite-end reserved interface is switched to the activated state when a main control board of opposite-end member equipment is restarted;
the line card board of the home terminal receives the flow of the opposite terminal reserved interface through the home terminal reserved interface, wherein the opposite terminal reserved interface is the line card board where the opposite terminal access interface is located;
and the line card board of the local terminal sends the flow to the main control board of the local terminal, and the main control board of the local terminal controls the forwarding of the flow.
2. The method of claim 1, wherein the forwarding comprises: the frame is forwarded across boards; the controlling of the forwarding of the flow through the main control board includes:
the main control board of the local end sends the flow to a target line card board, and a local end reserved interface of the target line card board is connected with an opposite end reserved interface of the line card board where an opposite end outlet interface is located;
and the target line card board transmits the flow to the line card board where the opposite-end outlet interface is located through the local-end reserved interface.
3. The method of claim 1, wherein the forwarding comprises: forwarding across frames; the controlling of the forwarding of the flow through the main control board includes:
and the main control board of the local terminal sends the flow to the line clamping board where the output interface of the local terminal is located.
4. The method according to claim 1, further comprising, after the step of taking over the line card board corresponding to the opposite-end reserved interface:
the main control board of the local terminal transmits the forwarding table items to the line card board of the local terminal;
and the line clamping plate of the local terminal synchronizes the forwarding table items to the line clamping plate of the opposite terminal through the opposite terminal reserved interface connected with the local terminal reserved interface.
5. The method of claim 1, further comprising:
and when the condition that the reserved interface of the opposite terminal is recovered to the inactivated state is detected, recovering the reserved interface of the local terminal connected with the reserved interface of the opposite terminal to the inactivated state, and releasing the line card board corresponding to the reserved interface of the opposite terminal, wherein the reserved interface of the opposite terminal is recovered to the inactivated state after the main control board of the member equipment of the opposite terminal is restarted.
6. A cross-board repeater device, comprising:
a takeover module, configured to switch a local-end reserved interface connected to an opposite-end reserved interface to an active state when detecting that the opposite-end reserved interface is switched to the active state, and take over a line card board corresponding to the opposite-end reserved interface, where the opposite-end reserved interface is switched to the active state when a main control board of an opposite-end member device is restarted;
the flow receiving module is used for receiving the flow of the connected opposite-end reserved interface by the line card board of the local end through the local-end reserved interface, and the opposite-end reserved interface is the line card board where the opposite-end access interface is located;
and the flow forwarding module is used for the line card board of the local end to send the flow to the main control board of the local end, and controlling the forwarding of the flow through the main control board of the local end.
7. The apparatus of claim 6, wherein the forwarding comprises: the frame is forwarded across boards; the traffic forwarding module comprises:
the frame span board forwarding submodule is used for sending the flow to a target line card board by a main control board of a local end, and a local end reserved interface of the target line card board is connected with an opposite end reserved interface of the line card board where an opposite end outlet interface is located; and the target line card board transmits the flow to the line card board where the opposite-end outlet interface is located through the local-end reserved interface.
8. The apparatus of claim 6, wherein the forwarding comprises: forwarding across frames; the traffic forwarding module comprises:
and the cross-frame forwarding submodule is used for sending the flow to the line clamping plate where the local output interface is located by the main control board of the local terminal.
9. The apparatus of claim 6, further comprising:
the synchronization module is used for the main control board of the local terminal to send the forwarding table items to the line card board of the local terminal; and the line clamping plate of the local terminal synchronizes the forwarding table items to the line clamping plate of the opposite terminal through the opposite terminal reserved interface connected with the local terminal reserved interface.
10. The apparatus of claim 6,
the takeover module is further configured to, when detecting that the opposite-end reserved interface is restored to an inactive state, restore the local-end reserved interface connected to the opposite-end reserved interface to the inactive state, and release the line card board corresponding to the opposite-end reserved interface, where the opposite-end reserved interface is restored to the inactive state after the main control board of the opposite-end member device is restarted.
CN201710079164.1A 2017-02-14 2017-02-14 Cross-board forwarding method and device Active CN106911597B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710079164.1A CN106911597B (en) 2017-02-14 2017-02-14 Cross-board forwarding method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710079164.1A CN106911597B (en) 2017-02-14 2017-02-14 Cross-board forwarding method and device

Publications (2)

Publication Number Publication Date
CN106911597A CN106911597A (en) 2017-06-30
CN106911597B true CN106911597B (en) 2020-02-21

Family

ID=59207859

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710079164.1A Active CN106911597B (en) 2017-02-14 2017-02-14 Cross-board forwarding method and device

Country Status (1)

Country Link
CN (1) CN106911597B (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109088830B (en) * 2018-07-19 2021-06-29 新华三技术有限公司 Port state synchronization method and device
CN110138667B (en) * 2019-05-31 2021-05-28 新华三技术有限公司 Method and device for generating forwarding table item, cable clamping plate and screen plate
CN111030937A (en) * 2019-12-16 2020-04-17 迈普通信技术股份有限公司 Message forwarding method, device and storage medium
CN111131095B (en) * 2019-12-24 2021-08-24 杭州迪普科技股份有限公司 Message forwarding method and device
CN111131048A (en) * 2019-12-31 2020-05-08 杭州迪普科技股份有限公司 Network traffic forwarding method and device, electronic equipment and machine-readable storage medium

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6785272B1 (en) * 1999-06-24 2004-08-31 Allied Telesyn, Inc. Intelligent stacked switching system
CN100370740C (en) * 2004-03-06 2008-02-20 鸿富锦精密工业(深圳)有限公司 Management method of stacked switch
CN102045332B (en) * 2009-10-26 2013-05-08 杭州华三通信技术有限公司 Method for processing control message in intelligent resilient framework and line card boards
CN101707555B (en) * 2009-11-25 2011-12-07 杭州华三通信技术有限公司 Data interactive method and device in stack system
CN102307137B (en) * 2011-07-13 2014-06-04 北京星网锐捷网络技术有限公司 Method and device for transmitting and receiving management message, stacked switchboard and switchboard system

Also Published As

Publication number Publication date
CN106911597A (en) 2017-06-30

Similar Documents

Publication Publication Date Title
CN106911597B (en) Cross-board forwarding method and device
US9794352B2 (en) Network function virtualization service chaining
CN106664216B (en) VNF switching method and device
CN108632067B (en) Disaster recovery deployment method, device and system
EP3827558B1 (en) Fast failover for gateway instances
CN102664750B (en) Method, system and device for hot backup of multi-machine
CN105743995A (en) Transplantable high-available container cluster deploying and managing system and method
CN106533736B (en) Network equipment restarting method and device
CN104935672A (en) High available realizing method and equipment of load balancing service
CN102708018A (en) Method and system for exception handling, proxy equipment and control device
US9992058B2 (en) Redundant storage solution
EP3316555B1 (en) Mac address synchronization method, device and system
CN102231682B (en) Stacking conflict processing method and equipment
CN105812169B (en) A kind of switch between master and slave machines method and device
CN103973560A (en) Device and method for fault treatment of stack links in IRF (intelligent resilient framework) system
JPWO2014128859A1 (en) Switches and programs
CN111654384A (en) Main/standby switching method, BRAS (broadband remote Access Server) equipment and storage medium
CN113254205A (en) Load balancing system, method and device, electronic equipment and storage medium
CN110971872B (en) Video image information acquisition method based on distributed cluster
US20120284274A1 (en) Method and device for service management
CN103931138A (en) Scalable distributed multicluster device management server architecture and method of operation thereof
CN105245361A (en) Data high availability system for Linux system, method and device
CN102546313B (en) Multi-activation detection method and multi-activation detection device
CN102790814B (en) A kind of Media Access Control Address defining method, relevant apparatus and system
CN107145408A (en) A kind of method and system for realizing active and standby clustered deploy(ment)

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant