CN110519079B - Data forwarding method and device, network board, network equipment and storage medium - Google Patents

Data forwarding method and device, network board, network equipment and storage medium Download PDF

Info

Publication number
CN110519079B
CN110519079B CN201910705532.8A CN201910705532A CN110519079B CN 110519079 B CN110519079 B CN 110519079B CN 201910705532 A CN201910705532 A CN 201910705532A CN 110519079 B CN110519079 B CN 110519079B
Authority
CN
China
Prior art keywords
data forwarding
data
port
stacking
network
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
CN201910705532.8A
Other languages
Chinese (zh)
Other versions
CN110519079A (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.)
New H3C Big Data Technologies Co Ltd
Original Assignee
New H3C Big Data 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 New H3C Big Data Technologies Co Ltd filed Critical New H3C Big Data Technologies Co Ltd
Priority to CN201910705532.8A priority Critical patent/CN110519079B/en
Publication of CN110519079A publication Critical patent/CN110519079A/en
Application granted granted Critical
Publication of CN110519079B publication Critical patent/CN110519079B/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
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0803Configuration setting
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/58Association of routers
    • H04L45/583Stackable routers
    • 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/253Routing or path finding in a switch fabric using establishment or release of connections between ports

Abstract

The disclosure provides a data forwarding method, a data forwarding device, a network board, a network device and a storage medium, which are used for reducing roundabout of a data message forwarding path of a cross-stacking device and improving the data message forwarding efficiency. The data forwarding method comprises the following steps: receiving a data message to be forwarded, wherein the data message to be forwarded carries a destination device identifier; if the message to be forwarded is judged to be a data message transmitted between different stacking devices, determining a data forwarding port connected with a target stacking device according to the target device identification, wherein the data forwarding port is connected with other stacking devices; and forwarding the data message to be forwarded by using the determined direct link between the data forwarding port and the data forwarding port of the target stacking equipment.

Description

Data forwarding method and device, network board, network equipment and storage medium
Technical Field
The present disclosure relates to the field of network communication technologies, and in particular, to a data forwarding method and apparatus, a network board, a network device, and a storage medium.
Background
Stacking is to connect a plurality of devices together, perform necessary configuration, and virtualize the devices into one device. 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. After the stack is formed, a user can log in the stack system through any port of any member device to uniformly manage all the member devices in the stack. The stack is composed of a plurality of member devices, wherein the master device is responsible for operation, management and maintenance of the stack, and the slave device can process services while serving as a backup. Once the master device fails, the system can rapidly and automatically elect a new master device to ensure that the service is not interrupted, thereby realizing 1. Moreover, the number of ports and the bandwidth of the stacking system can be easily and freely expanded by adding the member devices.
The network device of the core layer has a high requirement on the traffic forwarding rate, and for the consideration of reliability and the like, the core layer device often adopts a stacking mode, and the frame-crossing messages between the stacking member devices are forwarded in a frame-crossing manner through the stacking port. As shown in fig. 1, which is a schematic view of a forwarding scenario of a cross-frame packet in a two-frame stacking device, a cross-frame packet forwarding process includes the following steps:
step 1, after a message to be forwarded enters from a line card board 1, inquiring an MAC (Media Access Control) table, finding that a destination MAC address of the message to be forwarded is not a single board where an input interface is located, then inquiring a MODPORT _ MAP table to determine an output HG port sent to a switching network, and further encapsulating an Ethernet message into an HG message through a forwarding chip and sending the HG message to a network board 1 through the HG port;
step 2, the network board 1 queries a MODPORT _ MAP table to obtain an HG outlet sent to the stacking board, and then forwards the HG message to a line card board 2 (stacking board) where the stacking port is located through a switching chip;
step 3, after the message reaches the line card board 2, the message is unpacked into an Ethernet message through a forwarding chip and is sent to the line card board 3 (stacking board) where the stacking port of the frame is located through the stacking port;
and 4, after reaching the line card plate 3 of the opposite end frame, packaging the message into an HG message through the forwarding chip, sending the HG message to the network plate 2, then forwarding the HG message to the line card plate 4 where the output interface is located by the network plate 2, and finally de-packaging the HG message into an Ethernet message through the forwarding chip and sending the Ethernet message from the output interface.
In the message forwarding process, the HG message encapsulation/decapsulation is performed for 4 times, and table lookup and forwarding operations are performed on 6 single boards, so that the roundabout of data message forwarding paths is increased, and the data forwarding efficiency is reduced.
Disclosure of Invention
The embodiment of the disclosure provides a data forwarding method and device, a network board, a network device and a storage medium, which are used for reducing roundabout of data message forwarding paths of cross-stacking devices and improving data message forwarding efficiency.
In a first aspect, a data forwarding method is provided, including:
receiving a data message to be forwarded, wherein the data message to be forwarded carries a destination device identifier;
if the message to be forwarded is judged to be a data message transmitted between different stacking devices according to the destination device identification, determining a data forwarding port connected with the destination stacking device according to the destination device identification, wherein the data forwarding port is connected with other stacking devices;
and forwarding the data message to be forwarded by using the determined direct link between the data forwarding port and the data forwarding port of the target stacking equipment.
In a possible implementation manner, determining a data forwarding port connected to a destination stack device according to the destination device identifier specifically includes:
searching a data forwarding port identifier corresponding to the destination equipment identifier in a stored port mapping table according to the destination equipment identifier;
and determining the data forwarding port corresponding to the searched data forwarding port identifier as the data forwarding port connected with the target stacking equipment.
In one possible embodiment, the method is applied to a stacking device, and the stacking device comprises a main control board; and
the data forwarding method provided by the embodiment of the present disclosure further includes:
and in the process of abnormally restarting the main control board at the local end, forwarding the data message to be forwarded under the control of the main control board of the stacking equipment connected with the opposite end of the direct connection link.
In a possible implementation manner, the message to be forwarded is sent by the network board to the line card board according to the port mapping table that is sent by the network board to the corresponding network board.
In a possible embodiment, said data forwarding port comprises a high speed forwarding port HG port.
In a second aspect, a data forwarding apparatus is provided, including:
a receiving unit, configured to receive a data packet to be forwarded, where the data packet to be forwarded carries a destination device identifier;
a determining unit, configured to determine, according to the destination device identifier, a data forwarding port connected to a destination stacking device if it is determined that the packet to be forwarded is a data packet transmitted between different stacking devices according to the destination device identifier, where the data forwarding port is connected to other stacking devices;
and the data forwarding unit is used for forwarding the data message to be forwarded by using the determined direct link between the data forwarding port and the data forwarding port of the target stacking device.
In a possible implementation manner, the determining unit is specifically configured to search, according to the destination device identifier in a stored port mapping table, a data forwarding port identifier corresponding to the destination device identifier; and determining the data forwarding port corresponding to the searched data forwarding port identifier as the data forwarding port connected with the target stacking equipment.
In a possible embodiment, the apparatus is disposed in a stacking device, and the stacking device includes a main control board; and
the data forwarding apparatus provided in the embodiment of the present disclosure further includes:
and the data forwarding control unit is used for forwarding the data message to be forwarded under the control of the main control board of the stacking equipment connected with the opposite end of the direct link in the abnormal restarting process of the main control board.
In a possible implementation manner, the message to be forwarded is sent by the network board to the line card board according to the port mapping table that is sent by the network board to the corresponding network board.
In a possible embodiment, the data forwarding port comprises a high-speed forwarding port HG port.
In a third aspect, an embodiment of the present disclosure provides a network board, where the network board is provided with at least one data forwarding port, and the data forwarding port is connected to a data forwarding port of an opposite-end stacking device; the network board comprises the data forwarding device.
In a fourth aspect, a network device is provided, comprising at least one processor and at least one memory, wherein the memory stores a computer program that, when executed by the processor, causes the processor to perform any of the steps of the data forwarding method described above.
In a fifth aspect, a computer-readable storage medium is provided, which stores a computer program executable by a network device, and when the program is run on the network device, causes the network device to perform any one of the steps of the data forwarding method described above.
In the data forwarding method, the data forwarding device, the network board, the network device and the storage medium provided by the embodiment of the disclosure, a direct link is established between the network boards of two stacking devices to connect with a data forwarding port of the network board, so that when the network board receives a data message to be forwarded across the stacking devices, the data forwarding port connected with a target stacking device is determined according to a target device identifier carried in the message in the data message to be forwarded, and the data message to be forwarded is directly sent to the target stacking device through the direct link between the data forwarding port and the data forwarding port of the target stacking device.
Additional features and advantages of the disclosure will be set forth in the description which follows, and in part will be obvious from the description, or may be learned by the practice of the disclosure. The objectives and other advantages of the disclosure may be realized and attained by the structure particularly pointed out in the written description and claims hereof as well as the appended drawings.
Drawings
The accompanying drawings, which are included to provide a further understanding of the disclosure and are incorporated in and constitute a part of this disclosure, illustrate embodiments of the disclosure and together with the description serve to explain the disclosure and not to limit the disclosure. In the drawings:
fig. 1 is a schematic diagram of a data packet forwarding scenario of a cross-stack device in the prior art;
FIG. 2a is a schematic diagram of the internal structure of a stacking apparatus according to an embodiment of the disclosure;
fig. 2b is a schematic diagram of a first network structure in which two stacked devices are directly connected according to an embodiment of the present disclosure;
fig. 2c is a schematic diagram of a second network structure in which two stacked devices are directly connected according to an embodiment of the present disclosure;
fig. 2d is a schematic diagram of a third network structure in which two stacked devices are directly connected according to an embodiment of the present disclosure;
fig. 2e is a schematic diagram of a fourth network structure in which two stacked devices are directly connected according to an embodiment of the present disclosure;
fig. 2f is a schematic diagram of a fifth network structure in which two stacked devices are directly connected according to an embodiment of the present disclosure;
fig. 2g is a schematic diagram of a network structure in which three stacked devices are directly connected according to an embodiment of the present disclosure;
fig. 3 is a schematic diagram of an implementation flow of a data forwarding method according to an embodiment of the present disclosure;
fig. 4a is a schematic diagram of a data packet forwarding scenario of a cross-stack device according to an embodiment of the present disclosure;
fig. 4b is a schematic diagram of an HG message header structure according to an embodiment of the present disclosure;
fig. 5 is a schematic diagram of a network structure in which main control boards of two stacking devices are active and standby each other according to an embodiment of the present disclosure;
fig. 6 is a schematic structural diagram of a data forwarding device according to an embodiment of the present disclosure;
fig. 7 is a schematic structural diagram of a network device according to an embodiment of the present disclosure.
Detailed Description
In order to reduce roundabout of a path for forwarding data messages of cross-stacking equipment and improve data forwarding efficiency, the embodiment of the disclosure provides a data forwarding method, a data forwarding device, a network board, network equipment and a storage medium.
It should be noted that the terms "first," "second," and the like in the description and claims of the embodiments of the present disclosure and in the drawings described above are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It will be appreciated that the data so used may be interchanged under appropriate circumstances such that the embodiments described herein may be practiced otherwise than as specifically illustrated or described herein.
Reference herein to "a plurality or a number" means two or more. "and/or" describes the association relationship of the associated objects, meaning that there may be three relationships, e.g., a and/or B, which may mean: a exists alone, A and B exist simultaneously, and B exists alone. The character "/" generally indicates that the former and latter associated objects are in an "or" relationship.
The preferred embodiments of the present disclosure will be described in conjunction with the accompanying drawings, and it should be understood that the preferred embodiments described herein are merely for illustrating and explaining the present disclosure, and are not intended to limit the present disclosure, and that the embodiments and features of the embodiments in the present disclosure may be combined with each other without conflict.
The data forwarding method provided by the embodiment of the disclosure can be applied to, but is not limited to, a network board in a stacking device. As shown in fig. 2a, which is a schematic diagram of an internal structure of a stacking device, the stacking device includes a main control board, a line card board (also referred to as a service board) and a network board, wherein the service board is used for receiving and sending data, the main control board controls the data moving inside the stacking device, and the network board is used for internal data exchange. According to the existing data forwarding method, for a data message of a cross-stacking device, after receiving the data message, the line card board 1 where the data message input interface is located forwards the data message to the web board, the web board forwards the data message to the line card board 2 where the data message output interface is located, and the line card board 2 forwards the data message to other stacking devices, as can be seen from fig. 2a, the path detour exists in the data message forwarding process, so that the data message forwarding delay is increased, and the data message forwarding efficiency is reduced.
In the embodiment of the disclosure, in order to reduce the roundabout of the data message forwarding path of the cross-stacking device, at least one data forwarding port directly connected with the network boards of other stacking devices is added on the network board of the stacking device, so that a direct connection link is established between the two stacking devices, and thus, when the network board judges that the data message to be forwarded is a data message transmitted between different stacking devices, namely, a data message forwarded across frames, the data message can be forwarded to the corresponding stacking device through the established direct connection link.
Fig. 2b is a schematic diagram of a network structure in which the stacking device 1 and the stacking device 2 are connected through data forwarding ports added to their respective network boards. If a plurality of network boards exist on the stacking device, in specific implementation, different numbers of data forwarding ports can be added according to the number of the network boards.
As shown in fig. 2c, a schematic diagram of connection of data forwarding ports with the same number of network boards of two stacking devices is shown, where the stacking device 1 and the stacking device 2 include 5 network boards, and each network board is provided with 3 data forwarding ports. Each network board of the stacking device 1 is provided with a data forwarding port which is respectively connected with a data forwarding port of one network board of the stacking device 2, so that 5 direct-connected links can be established between the stacking device 1 and the stacking device 2, and data messages to be forwarded, which are hashed on different network boards on the stacking device 1, can be sent to the stacking device 2 through the direct-connected links.
As shown in fig. 2d, a schematic diagram of connection between data forwarding ports with different numbers of network boards of two stacking devices is shown, where the stacking device 1 includes 5 network boards, each network board includes one data forwarding port, the stacking device 2 includes 1 network board, each network board includes 5 data forwarding ports, the data forwarding port on each network board of the stacking device 1 is connected to one data forwarding port on the network board of the stacking device 2, so that 5 direct-connected links can be established between the stacking device 1 and the stacking device 2, and data packets hashed to different network boards of the stacking device 1 can all be sent to the stacking device 2 through the direct-connected links.
As shown in fig. 2e, the schematic diagram illustrates a connection diagram of data forwarding ports with different numbers of network boards of another stacking apparatus, where the stacking apparatus 1 includes 3 network boards, each network board includes one data forwarding port, the stacking apparatus 2 includes 2 network boards, one of the network boards includes 2 data forwarding ports, the other network board includes 1 data forwarding port, the data forwarding port on each network board of the stacking apparatus 1 is connected to one data forwarding port on two network boards of the stacking apparatus 2, so that 3 direct links can be established between the stacking apparatus 1 and the stacking apparatus 2, and data packets hashed to different network boards of the stacking apparatus 1 can be sent to the stacking apparatus 2 through the direct links.
Fig. 2f is a schematic diagram showing the connection of data forwarding ports when a normal type network board without data forwarding ports and a network board with data forwarding ports coexist. Wherein, equipment 1 that piles up contains 3 otter boards, otter board 1 and otter board 2 respectively contain 1 data and forward the port, otter board 3 does not contain the data and forward the port, equipment 2 that piles up contains 2 otter boards, otter board 4 contains 2 data and forward the port, otter board 5 does not contain the data and forward the port, two data of otter board 4 forward the port and are connected with the data of otter board 1 and otter board 2 respectively, thus, establish two directly and link between otter board 1 and otter board 4 and otter board 2 and otter board 4, can send equipment 2 that piles up through directly linking the link to the data message that equipment 1 need stride to pile up the equipment and forward.
In a possible embodiment, each mesh plate included in the stacking device can be connected to the same stacking device, and this embodiment is shown in fig. 2 b-2 e. In another possible embodiment, some of the net boards included in the stacking apparatus are connected to other stacking apparatuses, as shown in fig. 2f, or different net boards in the stacking apparatus are connected to different stacking apparatuses, as shown in fig. 2g, the net board 11 on the stacking apparatus 1 is connected to the net board 2 on the stacking apparatus 2, and the net board 12 on the stacking apparatus is connected to the net board 3 on the stacking apparatus 3.
It should be noted that the data forwarding port may be a common network port, or may be a high-speed forwarding port, for example, an HG port, and the two data forwarding ports may be connected by a high-speed forwarding line.
Based on the network board provided by the embodiment of the present disclosure, the embodiment of the present disclosure provides a data forwarding method, which may be applied to a network board of a stacking device, as shown in fig. 3, and may include the following steps:
and S31, receiving a data message to be forwarded, wherein the data message to be forwarded carries a destination device identifier.
Fig. 4a is a diagram of a data packet forwarding network structure according to an embodiment of the present disclosure. After the data message enters the stacking device 1 from the line card board 1, the line card board 1 queries the MAC table according to the destination MAC address carried in the data message to be forwarded to find a port for forwarding the message to be forwarded, and if it is determined that the port for forwarding the message to be forwarded does not belong to the line card board 1 according to the found port, and it is determined that the forwarding outlet of the message to be forwarded is an HG port according to the MODPORT _ MAP table, the message to be forwarded is encapsulated into an HG message through a forwarding chip and is sent to the network board 1. As shown in fig. 4b, it is a schematic structural diagram of the HG message header, where the HG message header includes a destination device identifier (DstDev) of a message to be forwarded.
And S32, if the message to be forwarded is judged to be a data message transmitted between different stacking devices, determining a data forwarding port connected with the target stacking device according to the target device identification.
The network board 1 determines that a forwarding outlet of the data message to be forwarded is an HG port of a stack board of the stack device according to the MODPORT _ MAP table, and then determines that the data message to be forwarded is a data message transmitted between different stack devices. And searching a data forwarding port connected with the destination equipment according to the destination equipment identifier contained in the HG message header.
In a possible implementation manner, a port mapping table may be added to the network board, and after a direct link is established between the data forwarding port on the network board and the data forwarding port on other stacking devices, a mapping relationship between the device identifier of the opposite-end stacking device and the data forwarding port identifier connected to the stacking device is established and stored in the port mapping table, so that the network board 1 may search the corresponding data forwarding port identifier in the stored port mapping table according to the destination device identifier carried in the HG message header, and determine that the data forwarding port corresponding to the searched data forwarding port identifier is the data forwarding port connected to the destination stacking device.
It should be noted that, if a direct link exists between each of the different network cards on the stacking device and each of the other stacking devices, the line card board where the data message input interface is located may forward the message to be forwarded to any network card for forwarding.
In another embodiment, if different network cards on the stacking device are connected to different stacking devices, in specific implementation, in order to accurately forward data messages with different destination device identifiers to corresponding destination stacking devices, each network board may send a port mapping table established by itself to a line card board where a data message input interface is located, where the line card board stores a corresponding relationship between a network board identifier and a port mapping table sent by the network board, as shown in table 1:
TABLE 1
Figure BDA0002151970870000121
Therefore, the cable clamping board can search a port mapping table containing the target equipment identification according to the target equipment identification carried in the received data message, forward the received data message to the network board corresponding to the searched network board identification according to the port mapping table, and forward the received data message to the corresponding network board for forwarding.
And S33, forwarding the data message to be forwarded by using the determined direct link between the data forwarding port and the data forwarding port of the target stacking device.
In specific implementation, after determining the data forwarding port of the local terminal connected to the destination device, the network board 1 forwards the message to be forwarded to the destination stacking device according to the direct link between the local terminal and the data forwarding port connected to the destination stacking device.
In this example, the network board 1 forwards the data packet to be forwarded to the network board 2 according to the queried data forwarding port connected to the network board 2 and the direct link between the network board 2 and the data packet to be forwarded, and the data packet is forwarded to the line card 4 where the outgoing interface is located by the network board 2, and finally is decapsulated into an ethernet message by the forwarding chip and sent out from the outgoing interface.
It should be noted that, in the embodiment of the present disclosure, the flow shown in fig. 3 may be used for forwarding data traffic, and for control traffic, forwarding control traffic according to the stacking link shown in fig. 1 may be used, that is, in the embodiment of the present disclosure, data traffic and control traffic across stacking devices are separated. According to the data forwarding method disclosed by the embodiment of the disclosure, only one HG message encapsulation is needed when the line card board 1 forwards the message to the network board 1, compared with the prior art, 3 HG encapsulation/decapsulation processes are reduced, two table look-up processes are reduced, and thus the data forwarding efficiency is improved.
During specific implementation, because all the line cardboard on the equipment of piling up links to each other with the otter board, and according to this disclosed embodiment, the otter board links to each other with the otter board that directly links up the equipment of the opposite end again, and all the line cardboard that the equipment was piled up to this end and the line cardboard that the equipment was piled up to the opposite end can both be piled up the main control board management and control of equipment each other promptly, as shown in fig. 5. Thus, the master boards of two stacked devices can act as backups for each other. Based on this, in the embodiment of the present disclosure, when the main control board of the local-end stacking device is abnormally restarted, the line card board does not need to be restarted, and the data packet to be forwarded is forwarded under the control of the main control board of the stacking device connected to the opposite end of the direct-connected link, so that it is ensured that the data packet is normally forwarded during the restart of the main control board, the interruption of data packet forwarding is avoided, the reliability of data packet forwarding is improved, and the main control board of the local-end stacking device is switched back to control after the local-end stacking device is restarted.
It should be noted that if there are multiple connected stacking devices, the stacking device with the highest priority may be elected as the main stacking device according to a certain election rule, for example, according to a priority set by a user or according to MAC address size selection, in a specific implementation, if each stacking device operates normally, the line card board in each stacking device may forward the data packet under the control of its own main control board, and if the main control board of any stacking device is abnormally restarted, the data packet may be forwarded under the control of the main control board of the main stacking device.
For example, if a direct link exists between a certain stacking device and other multiple stacking devices, a stacking device may be selected according to the selection priorities corresponding to the other stacking devices from high to low, and the main control board included in the stacking device takes over the line card on the stacking device with the abnormal main control board.
Based on the same inventive concept, the embodiment of the present disclosure further provides a data forwarding apparatus, and because the principle of the apparatus for solving the problem is similar to the data forwarding method, the implementation of the apparatus may refer to the implementation of the method, and repeated parts are not described again.
As shown in fig. 6, which is a schematic structural diagram of a data forwarding apparatus provided in an embodiment of the present disclosure, the data forwarding apparatus includes:
a receiving unit 61, configured to receive a data packet to be forwarded, where the data packet to be forwarded carries a destination device identifier;
a determining unit 62, configured to determine a data forwarding port of a destination stacking device according to the destination device identifier if the to-be-forwarded message is determined to be a data message transmitted between different stacking devices according to the destination device identifier, where the data forwarding port is connected to other stacking devices;
and a data forwarding unit 63, configured to forward the data packet to be forwarded to the destination stack device by using a direct link between the local data forwarding port and the determined data forwarding port.
In a possible implementation manner, the determining unit 62 is specifically configured to search, according to the destination device identifier in a stored port mapping table, a data forwarding port identifier corresponding to the destination device identifier; and determining that the data forwarding port corresponding to the searched data forwarding port identifier is the data forwarding port of the destination stacking equipment.
In a possible implementation manner, the data forwarding apparatus provided in the embodiment of the present disclosure further includes:
and the data forwarding control unit is used for forwarding the data message to be forwarded under the control of the main control board of the stacking equipment connected with the opposite end of the direct connection link when the main control board is restarted.
In a possible implementation manner, the message to be forwarded is a port mapping table determined by the line card board according to the destination device identifier, and is sent to the corresponding network board according to the network board identifier corresponding to the port mapping table, where the port mapping table is sent to the line card board by the network board.
In one possible implementation, the data forwarding port comprises a high-speed HG port.
For convenience of description, the above parts are separately described as modules (or units) according to functional division. Of course, the functionality of the various modules (or units) may be implemented in the same one or more pieces of software or hardware in practicing the disclosure.
The embodiment of the disclosure further provides a network board, where the network board is provided with at least one data forwarding port, and the data forwarding port is connected with a data forwarding port of an opposite-end stacking device; and the network board comprises the data forwarding device.
Having described the data forwarding method and apparatus of the exemplary embodiments of the present disclosure, a network device according to another exemplary embodiment of the present disclosure is described next.
As will be appreciated by one skilled in the art, aspects of the present disclosure may be embodied as a system, method or program product. Accordingly, various aspects of the present disclosure may be embodied in the form of: an entirely hardware embodiment, an entirely software embodiment (including firmware, microcode, etc.) or an embodiment combining hardware and software aspects that may all generally be referred to herein as a "circuit," module "or" system.
In some possible implementations, a network device according to the present disclosure may include at least one processor, and at least one memory. Wherein the memory stores program code which, when executed by the processor, causes the processor to perform the steps of the data forwarding method according to various exemplary embodiments of the present disclosure described above in this specification. For example, the processor may execute step S31 shown in fig. 3, receive a data packet to be forwarded, where the data packet to be forwarded carries a destination device identifier, and step S32, determine a data forwarding port of a destination stacking device according to the destination device identifier if it is determined that the packet to be forwarded is a data packet transmitted between different stacking devices according to the destination device identifier, where the data forwarding port is connected to other stacking devices; and step S33, forwarding the data message to be forwarded to the target stacking equipment by using the direct link between the local data forwarding port and the determined data forwarding port.
A network device 70 according to this embodiment of the present disclosure is described below with reference to fig. 7. The network device 70 shown in fig. 7 is only an example and should not bring any limitations to the functionality and scope of use of the disclosed embodiments.
As shown in fig. 7, network device 70 is in the form of a general purpose computing device. Components of network device 70 may include, but are not limited to: the at least one processor 71, the at least one memory 72, and a bus 73 connecting the various system components (including the memory 72 and the processor 71).
Bus 73 represents one or more of any of several types of bus structures, including a memory bus or memory controller, a peripheral bus, a processor, or a local bus using any of a variety of bus architectures.
The memory 72 may include readable media in the form of volatile memory, such as Random Access Memory (RAM) 721 and/or cache memory 722, and may further include Read Only Memory (ROM) 723.
Memory 72 may also include a program/utility 725 having a set (at least one) of program modules 724, such program modules 724 including, but not limited to: an operating system, one or more application programs, other program modules, and program data, each of which, or some combination thereof, may comprise an implementation of a network environment.
Network device 70 may also communicate with one or more external devices 74 (e.g., keyboard, pointing device, etc.), with one or more devices that enable a user to interact with network device 70, and/or with any devices (e.g., router, modem, etc.) that enable network device 70 to communicate with one or more other computing devices. Such communication may be through an input/output (I/O) interface 75. Also, network device 70 may communicate with one or more networks (e.g., a Local Area Network (LAN), a Wide Area Network (WAN), and/or a public network such as the Internet) via network adapter 76. As shown, the network adapter 76 communicates with other modules for the network device 70 over the bus 73. It should be understood that although not shown in the figures, other hardware and/or software modules may be used in conjunction with network device 70, including but not limited to: microcode, device drivers, redundant processors, external disk drive arrays, RAID systems, tape drives, and data backup storage systems, among others.
In some possible embodiments, various aspects of the data forwarding method provided by the present disclosure may also be implemented as a program product, which includes program code, and when the program product runs on a network device, the program code is configured to enable the network device to perform the steps in the data forwarding methods according to various exemplary embodiments of the present disclosure described above in this specification, for example, the network device may perform step S31 shown in fig. 3, receive a data packet to be forwarded, where the data packet to be forwarded carries a destination device identifier, and step S32, determine a data forwarding port of a destination stacking device according to the destination device identifier if it is determined that the data packet to be forwarded is a data packet transmitted between different stacking devices according to the destination device identifier, where the data forwarding port is connected to other stacking devices; and step S33, forwarding the data message to be forwarded to the target stacking equipment by using the direct link between the local data forwarding port and the determined data forwarding port.
The program product may employ any combination of one or more readable media. The readable medium may be a readable signal medium or a readable storage medium. A readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples (a non-exhaustive list) of the readable storage medium include: an electrical connection having one or more wires, a portable disk, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
The program product for resource exposure of embodiments of the present disclosure may employ a portable compact disk read-only memory (CD-ROM) and include program code, and may be run on a computing device. However, the program product of the present disclosure is not limited thereto, and in this document, a readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device.
A readable signal medium may include a propagated data signal with readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take any of a variety of forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A readable signal medium may also be any readable medium that is not a readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device.
Program code embodied on a readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
Program code for carrying out operations for the present disclosure may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, C + + or the like and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computing device, partly on the user's device, as a stand-alone software package, partly on the user's computing device and partly on a remote computing device, or entirely on the remote computing device or server. In situations involving remote computing devices, the remote computing devices may be connected to the user computing device through any kind of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or may be connected to external computing devices (e.g., through the internet using an internet service provider).
It should be noted that although several units or sub-units of the apparatus are mentioned in the above detailed description, such division is merely exemplary and not mandatory. Indeed, the features and functions of two or more units described above may be embodied in one unit, in accordance with embodiments of the present disclosure. Conversely, the features and functions of one unit described above may be further divided into embodiments by a plurality of units.
Further, while the operations of the disclosed methods are depicted in the drawings in a particular order, this does not require or imply that the operations must be performed in this particular order, or that all of the illustrated operations must be performed, to achieve desirable results. Additionally or alternatively, certain steps may be omitted, multiple steps combined into one step execution, and/or one step broken down into multiple step executions.
As will be appreciated by one skilled in the art, embodiments of the present disclosure may be provided as a method, system, or computer program product. Accordingly, the present disclosure may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present disclosure 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 so forth) having computer-usable program code embodied therein.
The present disclosure is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the disclosure. 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 apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, 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 apparatus 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 apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus 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 disclosure have been described, additional variations and modifications in those 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 alterations and modifications as fall within the scope of the disclosure.
It will be apparent to those skilled in the art that various changes and modifications can be made in the present disclosure without departing from the spirit and scope of the disclosure. Thus, if such modifications and variations of the present disclosure fall within the scope of the claims of the present disclosure and their equivalents, the present disclosure is intended to include such modifications and variations as well.

Claims (7)

1. A data forwarding method is characterized in that the data forwarding method is executed by a data forwarding device, and the data forwarding device is included in a network board; the network board is provided with at least one data forwarding port, and the data forwarding port is connected with a data forwarding port of opposite-end stacking equipment; the method comprises the following steps:
receiving a data message to be forwarded, wherein the data message to be forwarded carries a destination device identifier;
if the data message to be forwarded is judged to be a data message transmitted between different stacking devices, determining a data forwarding port connected with a target stacking device according to the target device identification, wherein the data forwarding port is connected with other stacking devices;
forwarding the data message to be forwarded by using the determined direct link between the data forwarding port and the data forwarding port of a target stacking device;
the determining, according to the destination device identifier, a data forwarding port connected to the destination stack device specifically includes:
searching a data forwarding port identifier corresponding to the destination equipment identifier in a stored port mapping table according to the destination equipment identifier;
and determining the data forwarding port corresponding to the found data forwarding port identifier as the data forwarding port connected with the target stacking equipment.
2. The method of claim 1, wherein the method is applied to a stacking device, the stacking device comprising a master control board; and
the method further comprises the following steps:
and in the abnormal restarting process of the main control board at the local end, forwarding the data message to be forwarded under the control of the main control board of the stacking equipment connected with the opposite end of the direct link.
3. The method of claim 1, wherein the stacking apparatus further comprises a cable-clamping board; the data message to be forwarded searches the port mapping table containing the target equipment identifier for the line card board according to the target equipment identifier; and the port mapping table is sent to the corresponding screen plate according to the screen plate identifier corresponding to the port mapping table, and the port mapping table is sent to the cable clamping plate by the screen plate.
4. The method of claim 1, wherein said data forwarding port comprises a high speed forwarding port, HG, port.
5. A data forwarding device is characterized in that the data forwarding device is included in a network board; the network board is provided with at least one data forwarding port, and the data forwarding port is connected with a data forwarding port of opposite-end stacking equipment; the method comprises the following steps:
the receiving unit is used for receiving a data message to be forwarded, and the data message to be forwarded carries a destination device identifier;
a determining unit, configured to determine, according to the destination device identifier, a data forwarding port connected to a destination stacking device if it is determined that the data packet to be forwarded is a data packet transmitted between different stacking devices according to the destination device identifier, where the data forwarding port is connected to other stacking devices;
the data forwarding unit is used for forwarding the data message to be forwarded by using the determined direct link between the data forwarding port and the data forwarding port of a target stacking device;
the determining unit is specifically configured to search, according to the destination device identifier in a stored port mapping table, a data forwarding port identifier corresponding to the destination device identifier; and determining the data forwarding port corresponding to the found data forwarding port identifier as the data forwarding port connected with the target stacking equipment.
6. A network device comprising at least one processor and at least one memory, wherein the memory stores a computer program that, when executed by the processor, causes the processor to perform the steps of the method of any of claims 1 to 4.
7. A computer-readable storage medium, storing a computer program executable by a network device, the program, when executed on the network device, causing the network device to perform the steps of the method of any one of claims 1 to 4.
CN201910705532.8A 2019-08-01 2019-08-01 Data forwarding method and device, network board, network equipment and storage medium Active CN110519079B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910705532.8A CN110519079B (en) 2019-08-01 2019-08-01 Data forwarding method and device, network board, network equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910705532.8A CN110519079B (en) 2019-08-01 2019-08-01 Data forwarding method and device, network board, network equipment and storage medium

Publications (2)

Publication Number Publication Date
CN110519079A CN110519079A (en) 2019-11-29
CN110519079B true CN110519079B (en) 2022-11-25

Family

ID=68624399

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910705532.8A Active CN110519079B (en) 2019-08-01 2019-08-01 Data forwarding method and device, network board, network equipment and storage medium

Country Status (1)

Country Link
CN (1) CN110519079B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111490933B (en) * 2020-03-31 2022-05-24 新华三信息安全技术有限公司 Bidirectional forwarding detection switching method and edge device
CN112235212B (en) * 2020-09-11 2022-04-26 新华三信息安全技术有限公司 Message forwarding method and programmable frame type switching equipment
CN114024902B (en) * 2022-01-05 2022-04-08 紫光恒越技术有限公司 Method and device for forwarding stacked messages, electronic equipment and readable storage medium

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102006184B (en) * 2010-11-09 2013-01-02 福建星网锐捷网络有限公司 Management method, device and network device of stack link
CN103581274B (en) * 2012-08-09 2017-04-12 杭州华三通信技术有限公司 Message forwarding method and device in stacking system
CN110011941B (en) * 2019-03-18 2022-01-28 新华三信息安全技术有限公司 Message forwarding method and device

Also Published As

Publication number Publication date
CN110519079A (en) 2019-11-29

Similar Documents

Publication Publication Date Title
CN110519079B (en) Data forwarding method and device, network board, network equipment and storage medium
US9729441B2 (en) Service function bundling for service function chains
CN109714238B (en) Method and equipment for realizing communication between virtual machines
CN108270676B (en) Network data processing method and device based on Intel DPDK
CN109088820B (en) Cross-device link aggregation method and device, computing device and storage medium
WO2018108149A1 (en) Data-link switching method and apparatus and data-link switching device
RU2587677C2 (en) Load reduction system and method of reducing load
CN107566237B (en) Data message processing method and device
US20230015960A1 (en) Method and Apparatus for Establishing Forwarding Path, and Computer-Readable Storage Medium
US9479438B2 (en) Link aggregation based on virtual interfaces of VLANs
WO2015043679A1 (en) Moving stateful applications
CN113300952B (en) Distributed drainage system for cloud security resource pool and drainage method thereof
CN114465899A (en) Network acceleration method, system and device under complex cloud computing environment
CN110380966B (en) Method for discovering forwarding path and related equipment thereof
CN113489640A (en) Message forwarding method, device and gateway system
CN105763463A (en) Method and device for transmitting link detection message
CN107294849B (en) Method, device and system for establishing service path
US20230224241A1 (en) Path Identity Allocation Method, System, and Apparatus, Device, and Storage Medium
CN114760165A (en) Message transmission method, device and system
WO2016173196A1 (en) Method and apparatus for learning address mapping relationship
CN112187635A (en) Message forwarding method and device
CN113179228B (en) Method, device, equipment and medium for improving switch stacking reliability
CN114374659A (en) Method, device and storage medium for realizing local priority forwarding in stacking system
CN109450794B (en) Communication method and device based on SDN network
CN113938405A (en) Data processing method and device

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