Movatterモバイル変換


[0]ホーム

URL:


CN105704023B - Message forwarding method and device of stacking system and stacking equipment - Google Patents

Message forwarding method and device of stacking system and stacking equipment
Download PDF

Info

Publication number
CN105704023B
CN105704023BCN201410696267.9ACN201410696267ACN105704023BCN 105704023 BCN105704023 BCN 105704023BCN 201410696267 ACN201410696267 ACN 201410696267ACN 105704023 BCN105704023 BCN 105704023B
Authority
CN
China
Prior art keywords
message
forwarded
stacking
forwarding
stacking device
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
CN201410696267.9A
Other languages
Chinese (zh)
Other versions
CN105704023A (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.)
ZTE Corp
Original Assignee
ZTE Corp
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 ZTE CorpfiledCriticalZTE Corp
Priority to CN201410696267.9ApriorityCriticalpatent/CN105704023B/en
Priority to PCT/CN2015/085964prioritypatent/WO2016082573A1/en
Publication of CN105704023ApublicationCriticalpatent/CN105704023A/en
Application grantedgrantedCritical
Publication of CN105704023BpublicationCriticalpatent/CN105704023B/en
Activelegal-statusCriticalCurrent
Anticipated expirationlegal-statusCritical

Links

Images

Landscapes

Abstract

The invention provides a message forwarding method and device of a stacking system and stacking equipment. The method comprises the following steps: a first stacking device in a stacking system acquires a first message to be forwarded, which is to be forwarded to a second stacking device of the stacking system; if the second stacking device is a main stacking device and the first message to be forwarded is an unresolved protocol message, the first stacking device resolves effective data of the first message to be forwarded, and encapsulates the resolved effective data to obtain a second message to be forwarded; and the first stacking device forwards the second message to be forwarded to the second stacking device, so that the second stacking device can directly acquire the analyzed effective data in the second message to be forwarded. In the scheme of the invention, the slave stacking equipment is responsible for executing the analysis work of the protocol message, thereby relieving the processing pressure of the master stacking equipment.

Description

Message forwarding method and device of stacking system and stacking equipment
Technical Field
The present invention relates to the field of communications, and in particular, to a method and an apparatus for forwarding a packet in a stacking system, and a stacking device.
Background
A Virtual Switch Unit (VSU), which is a stacking system, is a network system virtualization technology, and supports combining multiple devices into a single Virtual device, that is, multiple physical devices can be used as a Virtual logical device. Generally, a stacked system can provide a network environment with high redundancy and high reliability, and thus is widely applied to network networking.
Most protocol messages in the current stacking system are handled by the main stacking device. Therefore, when the number of protocol packets to be processed reaches a certain number, the processing load of the main stack device increases.
Disclosure of Invention
The technical problem to be solved by the invention is as follows: and the load of the main stacking equipment for processing the protocol message is reduced.
To solve the foregoing technical problem, an embodiment of the present invention provides a packet forwarding method for a stack system, including:
a first stacking device in a stacking system acquires a first message to be forwarded, which is to be forwarded to a second stacking device of the stacking system;
if the second stacking device is a main stacking device and the first message to be forwarded is an unresolved protocol message, the first stacking device resolves effective data of the first message to be forwarded, and encapsulates the resolved effective data to generate a second message to be forwarded;
and the first stacking device forwards the second message to be forwarded to the second stacking device, so that the second stacking device can directly acquire the analyzed effective data in the second message to be forwarded.
If the first message to be forwarded is a unicast message or the first message to be forwarded is an analyzed protocol message, the first stacking device directly forwards the first message to be forwarded to the second stacking device.
And the first stacking device forwards the first message to be forwarded or the second message to be forwarded to the second stacking device in a hard forwarding mode.
Wherein the first stacking device maintains a forwarding engine configured with forwarding path information; the forwarding path information specifically includes: a connection correspondence relationship between each cascade port of the first stacking apparatus and other stacking apparatuses except the first stacking apparatus;
the first stacking device forwards the first message to be forwarded or the second message to be forwarded to the second stacking device in a hard forwarding manner, including:
the first stacking device determines a target cascading port capable of having a connection corresponding relation with the second stacking device according to the forwarding path information through the forwarding engine; the target cascade port belongs to the first stacking device;
and the first stacking equipment forwards the first message to be forwarded or the second message to be forwarded by using the target cascading port through the forwarding engine.
In addition, another embodiment of the present invention further provides a packet forwarding device of a stacking system, where the packet forwarding device is disposed in a first stacking apparatus, and the packet forwarding device includes:
the acquiring module is used for acquiring a first message to be forwarded, which is to be forwarded to second stacking equipment of the stacking system;
the processing module is used for analyzing effective data of the first message to be forwarded if the second stacking device is a main stacking device and the first message to be forwarded is an unresolved protocol message, encapsulating the effective data obtained by analysis and generating a second message to be forwarded;
and the forwarding module is configured to forward the second to-be-forwarded message to the second stacking device, so that the second stacking device can directly obtain the analyzed effective data in the second to-be-forwarded message.
If the first message to be forwarded is a unicast message or the first message to be forwarded is an analyzed protocol message, the forwarding module directly forwards the first message to be forwarded to the second stacking device.
And the forwarding module forwards the first message to be forwarded or the second message to be forwarded to the second stacking device in a hard forwarding mode.
The forwarding module is specifically a forwarding engine configured with forwarding path information; the forwarding path information specifically includes: a connection correspondence relationship between each cascade port of the first stacking apparatus and other stacking apparatuses except the first stacking apparatus;
the forwarding engine includes:
the determining submodule is used for determining a target cascade port which can have a connection corresponding relation with the second stacking device according to the forwarding path information; the target cascade port belongs to the first stacking device;
and the forwarding submodule is used for forwarding the first message to be forwarded or the second message to be forwarded by using the target cascade port.
In addition, another embodiment of the present invention further provides a stacking apparatus, which includes the above message forwarding device.
The technical scheme of the invention has the following beneficial effects:
compared with the prior art, the method of the embodiment does not need to execute the analysis step on the protocol message by the main stacking device, so that the processing load of the main stacking device can be reduced. The scheme is particularly suitable for a stacking system in the communication field (the main stacking device needs to process massive protocol messages), so that the scheme has high practical value. In addition, the stack device transmits the message by using a hard forwarding mode, and achieves higher transmission efficiency by using fewer processing resources.
Drawings
Fig. 1 is a schematic diagram illustrating steps of a packet forwarding method of a stacking system according to the present invention;
FIG. 2 is a schematic diagram of a logic structure of a stack system according to a message forwarding method of the stack system of the present invention;
fig. 3 is a schematic structural diagram of a message forwarding apparatus of the stacking system according to the present invention.
Detailed Description
In order to make the technical problems, technical solutions and advantages of the present invention more apparent, the following detailed description is given with reference to the accompanying drawings and specific embodiments.
As shown in fig. 1, an embodiment of the present invention provides a packet forwarding method for a stack system, including:
step 11, a first stacking device in a stacking system acquires a first message to be forwarded, which is to be forwarded to a second stacking device of the stacking system;
step 12, if the second stacking device is a main stacking device and the first to-be-forwarded message is an unanalyzed protocol message, the first stacking device analyzes effective data of the first to-be-forwarded message and packages the effective data obtained through analysis to obtain a second to-be-forwarded message;
step 13, the first stacking device forwards the second message to be forwarded to the second stacking device, so that the second stacking device can directly obtain the analyzed effective data in the second message to be forwarded.
In the method of the embodiment, the slave stacking device is responsible for performing the parsing of the protocol packet, so as to reduce the processing pressure of the master stacking device.
In addition, if the first message to be forwarded is a unicast message (the final destination address is not a stacking device of the stacking system), or the first message to be forwarded is an already-parsed protocol message (the protocol message is parsed and encapsulated by a stacking device connected downstream), the first stacking device directly forwards the first message to be forwarded to the second stacking device.
In addition, protocol messages are mainly transmitted among stacking devices in a soft forwarding manner at present, and if a plurality of stacking devices exist in the middle of a transmission path, CPUs of the plurality of stacking devices are required to process the protocol messages, so that processing resources of the middle stacking devices are obviously consumed, and the transmission efficiency is not high.
For this reason, as a preferred scheme, this embodiment provides a hard forwarding transmission method:
that is, the first stacking apparatus maintains a forwarding engine configured with forwarding path information; the forwarding path information specifically includes: a connection correspondence relationship between each cascade port of the first stacking apparatus and other stacking apparatuses except the first stacking apparatus;
the first stacking device determines a target cascading port capable of having a connection corresponding relation with the second stacking device according to the forwarding path information through the forwarding engine; the target cascade port belongs to the first stacking device;
and the first stacking equipment forwards the first message to be forwarded or the second message to be forwarded by using the target cascading port through the forwarding engine.
The following describes the overall scheme of the present invention in detail with reference to implementation.
< first mode of implementation >
Exemplarily, in the present implementation, 4 stacking apparatuses (Dev 0, 1, 2, 3) in the stacking system constitute the topology shown in fig. 2. Wherein Dev0 is the master stacking device, and Dev1, 2, 3 are the slave stacking devices. P0 and P1 on each stacked device are cascade ports through which connections are established among the stacked devices. In addition, as shown in fig. 2, each stacking apparatus maintains a forwarding path table for recording forwarding path information.
Assuming that Dev 3 receives a protocol message from outside the stacking system through its network port P2, which is to be sent to the master stacking device Dev0, the following procedure is executed:
the CPU of the Dev 3 parses the protocol packet and extracts the valid data of the protocol packet (the valid data includes specific protocol content, control information, etc.).
The CPU of the Dev 3 re-encapsulates the parsed valid data back into the protocol packet.
The CPU of Dev 3 controls the forwarding engine of Dev 3 to forward the protocol message to Dev 0. In this step, the forwarding engine of Dev 3 determines that Dev0 corresponds to the local P0 port according to the forwarding path table of Dev 3, i.e. protocol packet is forwarded through the local P0 port.
Since the P0 port of Dev 3 is not directly connected to Dev0 but directly connected to Dev2, the protocol message will reach Dev2 first. The Dev2 forwarding engine determines that the protocol message needs to be sent to the Dev0 according to the destination address of the protocol message, determines that the Dev0 corresponds to the local P0 port according to the forwarding path table corresponding to the Dev2, and then forwards the protocol message through the P0 port on theDev 2.
Based on the above principle, finally the Dev0 receives the protocol message forwarded by the P0 port of the Dev1, determines that the protocol message is itself according to the destination address of the protocol message, and directly extracts the analyzed valid data of the protocol message for related processing.
Specifically, the destination address of the protocol packet includes: identity ofDev 0. The Dev0 can determine that the protocol message does not need to be forwarded any more according to the identity of the Dev0 of the destination address, but is uploaded to the processor of the device for processing, and is directly sent to the internal processor through the P2 port. It should be noted that the destination address of the existing packet already includes the identity of the destination stack device and the identity of the destination port in the destination stack device, and the present invention is not modified for this.
< second mode for carrying out >
Exemplarily, in the present implementation, 4 stacking apparatuses (Dev 0, 1, 2, 3) in the stacking system constitute the topology shown in fig. 2. Wherein Dev0 is the master stacking device, and Dev1, 2, 3 are the slave stacking devices. P0 and P1 on each stacked device are cascade ports through which connections are established among the stacked devices.
Different from the first implementation, both the P2 port of Dev0 and the P2 port ofDev 3 are network ports, wherein the P2 port ofDev 3 is connected with external network a and the P2 port of Dev0 is connected with external network B.
Assuming that Dev0 receives a unicast message from external network a through its network port P2, which needs to be sent to external network B (for the unicast message, the stacking system only plays a role of forwarding route, and does not need the stacking device to process the single thin message), the following process is executed:
the forwarding engine of the Dev0 determines the P2 port to be sent to theDev 3 according to the destination address of the unicast message, determines the local P1 port corresponding to theDev 3 according to the forwarding path table of the Dev0, and then forwards the message to theDev 3 through the local P1 port.
As with the implementation principle, finally, theDev 3 receives the unicast message and then sends it to the external network B through its P2 port.
According to the first and second implementation manners, it can be known that: compared with the prior art, the method of the embodiment does not need to execute the analysis step on the protocol message by the main stacking device, so that the processing load of the main stacking device can be reduced. The scheme is particularly suitable for a stacking system in the communication field (the main stacking device needs to process massive protocol messages), so that the scheme has high practical value. In addition, the stack device transmits the message by using a hard forwarding mode, and achieves higher transmission efficiency by using fewer processing resources.
In addition, as shown in fig. 3, a message forwarding apparatus of a stacking system is disposed in a first stacking device, and includes:
the acquiring module is used for acquiring a first message to be forwarded, which is to be forwarded to second stacking equipment of the stacking system;
the processing module is used for analyzing effective data of the first message to be forwarded if the second stacking device is a main stacking device and the first message to be forwarded is an unresolved protocol message, encapsulating the effective data obtained by analysis and generating a second message to be forwarded;
and the forwarding module is configured to forward the second to-be-forwarded message to the second stacking device, so that the second stacking device can directly obtain the analyzed effective data in the second to-be-forwarded message.
In the apparatus of this embodiment, the slave stacking device is responsible for performing the parsing of the protocol packet, so as to reduce the processing pressure of the master stacking device.
Wherein. If the first message to be forwarded is a unicast message or the first message to be forwarded is an analyzed protocol message, the forwarding module directly forwards the first message to be forwarded to the second stacking device.
Wherein. And the forwarding module forwards the first message to be forwarded or the second message to be forwarded to the second stacking device in a hard forwarding mode.
Wherein. The forwarding module is specifically a forwarding engine configured with forwarding path information; the forwarding path information specifically includes: a connection correspondence relationship between each cascade port of the first stacking apparatus and other stacking apparatuses except the first stacking apparatus;
the forwarding engine includes:
the determining submodule is used for determining a target cascade port which can have a connection corresponding relation with the second stacking device according to the forwarding path information; the target cascade port belongs to the first stacking device;
and the forwarding submodule is used for forwarding the first message to be forwarded or the second message to be forwarded by using the target cascade port.
Obviously, the message forwarding apparatus of the present embodiment corresponds to the message forwarding method described above, and can achieve the same technical effect.
In addition, another embodiment of the present invention further provides a stacking apparatus, including the above message forwarding device. The stacking device may be a switch, a router, or other hardware.
While the foregoing is directed to the preferred embodiment of the present invention, it will be understood by those skilled in the art that various changes and modifications may be made without departing from the spirit and scope of the invention as defined in the appended claims.

Claims (7)

CN201410696267.9A2014-11-262014-11-26Message forwarding method and device of stacking system and stacking equipmentActiveCN105704023B (en)

Priority Applications (2)

Application NumberPriority DateFiling DateTitle
CN201410696267.9ACN105704023B (en)2014-11-262014-11-26Message forwarding method and device of stacking system and stacking equipment
PCT/CN2015/085964WO2016082573A1 (en)2014-11-262015-08-03Packet forwarding method and apparatus for stacking system, and stacking device

Applications Claiming Priority (1)

Application NumberPriority DateFiling DateTitle
CN201410696267.9ACN105704023B (en)2014-11-262014-11-26Message forwarding method and device of stacking system and stacking equipment

Publications (2)

Publication NumberPublication Date
CN105704023A CN105704023A (en)2016-06-22
CN105704023Btrue CN105704023B (en)2020-03-13

Family

ID=56073539

Family Applications (1)

Application NumberTitlePriority DateFiling Date
CN201410696267.9AActiveCN105704023B (en)2014-11-262014-11-26Message forwarding method and device of stacking system and stacking equipment

Country Status (2)

CountryLink
CN (1)CN105704023B (en)
WO (1)WO2016082573A1 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN106685826B (en)*2016-12-012019-09-17瑞斯康达科技发展股份有限公司Switchboard stacked system, from equipment, exchange chip and processing protocol message method
CN107064959A (en)*2017-02-032017-08-18北京子午精航科技有限公司The enhanced forwarding engine apparatus and its implementation of Beidou satellite navigation system

Citations (5)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN101355501A (en)*2008-09-022009-01-28中兴通讯股份有限公司 Method and switch device for managing packets in an Ethernet stacking system
CN101977153A (en)*2010-11-152011-02-16杭州华三通信技术有限公司Flow regulation method and equipment
CN102118294A (en)*2009-12-312011-07-06杭州华三通信技术有限公司Load sharing method and equipment for stacked ring topology
CN103607360A (en)*2013-11-142014-02-26福建星网锐捷网络有限公司Message processing method, line card and switching equipment
CN103685017A (en)*2013-12-022014-03-26福建星网锐捷网络有限公司Message forwarding method in stacking system, stacking equipment and stacking system

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN101599909B (en)*2009-07-082012-02-08杭州华三通信技术有限公司Method and device for forwarding flow rate
CN103581274B (en)*2012-08-092017-04-12杭州华三通信技术有限公司Message forwarding method and device in stacking system

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN101355501A (en)*2008-09-022009-01-28中兴通讯股份有限公司 Method and switch device for managing packets in an Ethernet stacking system
CN102118294A (en)*2009-12-312011-07-06杭州华三通信技术有限公司Load sharing method and equipment for stacked ring topology
CN101977153A (en)*2010-11-152011-02-16杭州华三通信技术有限公司Flow regulation method and equipment
CN103607360A (en)*2013-11-142014-02-26福建星网锐捷网络有限公司Message processing method, line card and switching equipment
CN103685017A (en)*2013-12-022014-03-26福建星网锐捷网络有限公司Message forwarding method in stacking system, stacking equipment and stacking system

Also Published As

Publication numberPublication date
WO2016082573A1 (en)2016-06-02
CN105704023A (en)2016-06-22

Similar Documents

PublicationPublication DateTitle
JP6490205B2 (en) Method, apparatus and system for flow entry configuration
US9148368B2 (en)Packet routing with analysis assist for embedded applications sharing a single network interface over multiple virtual networks
US20180212869A1 (en)Network interface card, computing device, and data packet processing method
EP3291089B1 (en)Data processing method and apparatus
US9875126B2 (en)Hash-based load balancing for bonded network interfaces
US9083644B2 (en)Packet routing for embedded applications sharing a single network interface over multiple virtual networks
WO2018023499A1 (en)Network interface card, computer device and data packet processing method
US20160150043A1 (en)Source ip address transparency systems and methods
US9154586B2 (en)Method for parsing network packets having future defined tags
CN108093041B (en)Single-channel VDI proxy service system and implementation method
CN104394080A (en)Method and device for achieving function of security group
US20140301404A1 (en)Expanding member ports of a link aggregation group between clusters
KR102420610B1 (en)Method for packet data processing using multi layer caching strategy and electronic device for supporting the same
WO2017015839A1 (en)Sdn-based arp realization method and apparatus
US8953607B2 (en)Internet group membership protocol group membership synchronization in virtual link aggregation
US9036634B2 (en)Multicast route entry synchronization
CN105704023B (en)Message forwarding method and device of stacking system and stacking equipment
CN106789993B (en)TCP agent method and device
US10498637B2 (en)Switch processing method, controller, switch, and switch processing system
CN117201434B (en)Ethernet data interaction method and system
CN103220224B (en)The processing method of message repeating and device and the network equipment
CN101699821A (en)Method for realizing address resolution protocol in distribution type multi-kernel network system
WO2025202784A1 (en)Packet forwarding
CN117135216A (en)Data transmission method, OLT and related equipment
JP2023177208A (en)Ethernet device capable of efficient transmission

Legal Events

DateCodeTitleDescription
C06Publication
PB01Publication
SE01Entry into force of request for substantive examination
SE01Entry into force of request for substantive examination
GR01Patent grant
GR01Patent grant

[8]ページ先頭

©2009-2025 Movatter.jp