CN107682278A - Message forwarding method and device - Google Patents
Message forwarding method and device Download PDFInfo
- Publication number
- CN107682278A CN107682278A CN201711183242.9A CN201711183242A CN107682278A CN 107682278 A CN107682278 A CN 107682278A CN 201711183242 A CN201711183242 A CN 201711183242A CN 107682278 A CN107682278 A CN 107682278A
- Authority
- CN
- China
- Prior art keywords
- message
- forwarded
- forwarding
- member apparatus
- stack
- 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.)
- Pending
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L47/00—Traffic control in data switching networks
- H04L47/10—Flow control; Congestion control
- H04L47/12—Avoiding congestion; Recovering from congestion
- H04L47/125—Avoiding congestion; Recovering from congestion by balancing the load, e.g. traffic engineering
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Information Transfer Between Computers (AREA)
Abstract
The present invention provides a kind of message forwarding method and device, methods described is applied to the pile system for including transmitting terminal stack member apparatus and receiving terminal stack member apparatus, and the transmitting terminal stack member apparatus is stacked with the receiving terminal stack member apparatus by least two stack cards and connected.Methods described includes:Transmitting terminal stack member apparatus obtains the message to be forwarded that forwarding purpose is the receiving terminal stack member apparatus;The transmitting terminal stack member apparatus determines the forwarding stacking opening of the message to be forwarded from all stacking openings of at least two stack cards described in being added in same trunking TRUNK;The message to be forwarded is sent to receiving terminal stack member apparatus by the transmitting terminal stack member apparatus by the forwarding stacking opening.The data transmission efficiency of the message forwarding method is high, can realize across the card flow transmission of more boards, the flow on all stacking links is reached load balancing.
Description
Technical field
The present invention relates to data communication technology field, in particular to a kind of message forwarding method and device.
Background technology
With the continuous development of data communication technology, the network equipment (such as router or other nets with routing function
Network equipment) application it is more extensive.To improve the use reliability of the network equipment, industry is generally set multiple network equipments
It is standby to stack to realize communication redundancy and communication dilatation, wherein being tied up often through the port between multiple boards on each network equipment
Fixed to realize equipment stacking, so that it is guaranteed that when a stack cards go wrong, whole pile system remains to normal operation.And to whole
For multiple network equipments in individual pile system, how to keep improving in the case of stacked state between multiple network equipments
Overall data transmission efficiency, is a particularly important technical problem.
At present, the existing scheme requirement for being used to improve the data transmission efficiency between the network equipment being stacked with, one
The functional area of stack cards in the individual network equipment is sent to other flows for stacking the network equipment and can only be transferred to by the stack cards
It is corresponding to stack on the network equipment, transmission of more boards across card flow can not be realized, is vulnerable to the hardware of the network equipment in itself
Limitation, the flow load balance on all stacking links can not be accomplished, so as to have influence on the data transfer of whole pile system effect
Rate.
The content of the invention
It is an object of the invention to provide a kind of message forwarding method and device.The data transfer of the message forwarding method
Efficiency high, across the card flow transmission of more boards can be realized, the flow on all stacking links is reached load balancing.
For message forwarding method, preferred embodiments of the present invention provide a kind of message forwarding method, applied to including
The pile system of transmitting terminal stack member apparatus and receiving terminal stack member apparatus, the transmitting terminal stack member apparatus pass through extremely
Few two stack cards stack with the receiving terminal stack member apparatus to be connected.Methods described includes:
The transmitting terminal stack member apparatus obtains the report to be forwarded that forwarding purpose is the receiving terminal stack member apparatus
Text;
The transmitting terminal stack member apparatus at least two stackings described in be added in same trunking TRUNK
In all stacking openings of card, the forwarding stacking opening of the message to be forwarded is determined;
The message to be forwarded is sent to described connect by the transmitting terminal stack member apparatus by the forwarding stacking opening
Receiving end stack member apparatus.Methods described at least two stack cards from the set of the transmitting terminal stack member apparatus
In the TRUNK of all stacking openings, it is able to ensure that the transmitting terminal stack member is set for the corresponding distribution one of the message to be forwarded
All flows stacked on link reach the forwarding stacking opening of load balancing in standby, and are treated by the forwarding stacking opening by described
E-Packet the receiving terminal stack member apparatus for being sent to and being connected with the forwarding stacking opening, so that it is guaranteed that the message to be forwarded
It can carry out transmitting across card between each stack cards of the transmitting terminal stack member apparatus, and the transmitting terminal stack member apparatus
Flow on all stacking links is maintained at the state of load balancing.
For apparatus for forwarding message, preferred embodiments of the present invention provide a kind of apparatus for forwarding message, applied to passing through
At least two stack cards stack the transmitting terminal stack member apparatus of connection with receiving terminal stack member apparatus.Described device includes:
Receive message module, for obtaining the message to be forwarded that forwarding purpose is the receiving terminal stack member apparatus;
Stacking opening determining module, at least two stack cards described in be added in same trunking TRUNK
All stacking openings in, determine the forwarding stacking opening of the message to be forwarded;
Message transmissions module, for the message to be forwarded to be sent into the receiving terminal heap by the forwarding stacking opening
Folded member device.
For apparatus for forwarding message, preferred embodiments of the present invention also provide a kind of apparatus for forwarding message, applied to
Transmitting terminal stack member apparatus stacks the receiving terminal stack member apparatus of connection by least two stack cards.Described device bag
Include:
Forwarding module is detected, the message to be forwarded sent for receiving the transmitting terminal stack member apparatus, is treated to described
E-Packet and carry out packet check, and forwarding of tabling look-up is carried out to the message to be forwarded when detecting successfully.
In terms of existing technologies, the message forwarding method and device that preferred embodiments of the present invention provide have following
Beneficial effect:The data transmission efficiency of the message forwarding method is high, can realize across the card flow transmission of more boards, make all heaps
Flow on folded link reaches load balancing.Wherein, methods described is applied to include transmitting terminal stack member apparatus and receiving terminal
The pile system of stack member apparatus, the transmitting terminal stack member apparatus pass through at least two stack cards and the receiving terminal heap
The person's of building up equipment stacking connects.The transmitting terminal stack member apparatus is the receiving terminal stack member getting forwarding purpose
After the message to be forwarded of equipment, from the institute being added in same trunking TRUNK of the transmitting terminal stack member apparatus
In all stacking openings for stating at least two stack cards, the forwarding stacking opening of the message to be forwarded is determined, and passes through described turn
The message to be forwarded is sent to the receiving terminal stack member apparatus by hair stacking opening, so that it is guaranteed that the message energy to be forwarded
Carry out transmitting across card between enough each stack cards in transmitting terminal stack member apparatus, and the transmitting terminal stack member apparatus and institute
State the state that the flow on all stacking links between receiving terminal stack member apparatus is maintained at load balancing.
To enable the above objects, features and advantages of the present invention to become apparent, present pre-ferred embodiments cited below particularly,
And accompanying drawing appended by coordinating, it is described in detail below.
Brief description of the drawings
In order to illustrate the technical solution of the embodiments of the present invention more clearly, below by embodiment it is required use it is attached
Figure is briefly described, it will be appreciated that the following drawings illustrate only certain embodiments of the present invention, therefore be not construed as pair
The restriction of scope, for those of ordinary skill in the art, on the premise of not paying creative work, can also be according to this
A little accompanying drawings obtain other related accompanying drawings.
Fig. 1 is the transmitting terminal stack member apparatus and receiving terminal stack member apparatus heap that preferred embodiments of the present invention provide
The pile system interaction schematic diagram of folded connection.
Fig. 2 is a kind of schematic flow sheet for the message forwarding method that preferred embodiments of the present invention provide.
Fig. 3 is a kind of schematic flow sheet for the sub-step that the step S330 shown in Fig. 2 includes.
Fig. 4 is another schematic flow sheet for the message forwarding method that preferred embodiments of the present invention provide.
Fig. 5 is a kind of schematic flow sheet for the sub-step that the step S340 shown in Fig. 4 includes.
Fig. 6 is a kind of block diagram for the first apparatus for forwarding message that preferred embodiments of the present invention provide.
Fig. 7 is a kind of block diagram of the message transmissions module shown in Fig. 6.
Fig. 8 is another block diagram for the first apparatus for forwarding message that preferred embodiments of the present invention provide.
Fig. 9 is a kind of block diagram for the second apparatus for forwarding message that preferred embodiments of the present invention provide.
Figure 10 is a kind of block diagram of the detection forwarding module shown in Fig. 9.
Icon:10- transmitting terminal stack member apparatus;20- receiving terminal stack member apparatus;The stack cards of 11- first;12-
One service card;The stack cards of 21- second;The service cards of 22- second;The apparatus for forwarding message of 100- first;110- Receive message modules;
120- stacking opening determining modules;130- message transmissions modules;131-Higig encapsulates submodule;Submodule is forwarded between 132- cards;
133- message sending submodules;140-TRUNK configuration modules;The apparatus for forwarding message of 200- second;210- detects forwarding module;
211- reading submodules;212- judging submodules;213- forwards submodule.
Embodiment
To make the purpose, technical scheme and advantage of the embodiment of the present invention clearer, below in conjunction with the embodiment of the present invention
In accompanying drawing, the technical scheme in the embodiment of the present invention is clearly and completely described, it is clear that described embodiment is
Part of the embodiment of the present invention, rather than whole embodiments.The present invention implementation being generally described and illustrated herein in the accompanying drawings
The component of example can be configured to arrange and design with a variety of.
Therefore, below the detailed description of the embodiments of the invention to providing in the accompanying drawings be not intended to limit it is claimed
The scope of the present invention, but be merely representative of the present invention selected embodiment.It is common based on the embodiment in the present invention, this area
The every other embodiment that technical staff is obtained under the premise of creative work is not made, belong to the model that the present invention protects
Enclose.
It should be noted that:Similar label and letter represents similar terms in following accompanying drawing, therefore, once a certain Xiang Yi
It is defined, then it further need not be defined and explained in subsequent accompanying drawing in individual accompanying drawing.In description of the invention
In, it is necessary to explanation, unless otherwise clearly defined and limited, term " first ", " second ", " the 3rd " etc. are only used for distinguishing
Description, and it is not intended that instruction or hint relative importance.Below in conjunction with the accompanying drawings, some embodiments of the present invention are made detailed
Describe in detail bright.In the case where not conflicting, the feature in following embodiment and embodiment can be mutually combined.
Fig. 1 is refer to, is that the transmitting terminal stack member apparatus 10 that preferred embodiments of the present invention provide stacks with receiving terminal
Member device 20 stacks the pile system interaction schematic diagram of connection.In embodiments of the present invention, the transmitting terminal stack member is set
Standby 10 include two the first stack cards 11 and first service card 12, and the receiving terminal stack member apparatus 20 includes two the
Two stack cards 21 and second service card 22, wherein every first stack cards 11 include two stacking openings, every second stacking
Card 21 includes two stacking openings, and (wherein, first stack cards 11 and second stack cards 21 may each comprise more multiple pileup
Mouthful, the present embodiment can not be used as limitation of the invention for convenience of explanation by taking two stacking openings as an example) two first heaps
Stacking 11 is accordingly connected with each other with two second stack cards 21 by way of stacking opening binding, with described two the
Corresponding at least four heaps are formed by the stacking opening mutually bound between one stack cards 11 and two second stack cards 21
Folded link, so that it is guaranteed that the transmitting terminal stack member apparatus 10 is stacked with the receiving terminal stack member apparatus 20.Its
In, the stacking link is used to enter line number in the transmitting terminal stack member apparatus 10 and the receiving terminal stack member apparatus 20
According to transmission, first service card 12 and second service card 22 can be used for receiving and dispatching message.
It should be noted that the transmitting terminal stack member apparatus 10 in the present invention can include at least two the first stack cards
11, the number for the second stack cards 21 that receiving terminal stack member apparatus 20 includes is identical with the number of first stack cards 11,
The transmitting terminal stack member apparatus 10 and the receiving terminal stack member apparatus 20 stack by described the first of corresponding number
Corresponding pile system is connected and composed between card 11 and second stack cards 21, the present embodiment is for convenience of explanation with two
Exemplified by first stack cards 11 and two the second stack cards 21, limitation of the present invention can not be used as;Similarly transmitting terminal is stacked into
Member's equipment 10 can include at least first service card 12, and receiving terminal stack member apparatus 20 can include at least one second
Service card 22, the present embodiment, can not for convenience of explanation by taking first service card 12 and second service card 22 as an example
As limitation of the present invention.
For example, as shown in figure 1, the transmitting terminal stack member apparatus 10 includes two the first stack cards 11 and one first
Service card 12, every first stack cards 11 include two stacking openings, then 10 all stackings of transmitting terminal stack member apparatus
Mouth is respectively PORT_A, PORT_B, PORT_C and PORT_D;The receiving terminal stack member apparatus 20 includes two second stackings
Card 21 and second service card 22, every second stack cards 21 include two stacking openings, then the receiving terminal stack member
20 all stacking openings of equipment are respectively PORT_E, PORT_F, PORT_G and PORT_H.The transmitting terminal stack member apparatus 10 is logical
Cross the side of PORT_A bindings corresponding with PORT_E, PORT_B and PORT_F, PORT_C and PORT_G, PORT_D and PORT_H
Formula, it is stacked with the receiving terminal stack member apparatus 20, and correspondingly forms four stacking links for being used to E-Packet.
Fig. 2 is refer to, is a kind of schematic flow sheet for the message forwarding method that preferred embodiments of the present invention provide.At this
In inventive embodiments, the message forwarding method is applied to include the above-mentioned transmitting terminal stack member apparatus being stacked with
10 and the pile system of the receiving terminal stack member apparatus 20, for improve the transmitting terminal stack member apparatus 10 with it is described
Data transmission efficiency between receiving terminal stack member apparatus 20, make the report to be forwarded in the transmitting terminal stack member apparatus 10
Text can realize more boards while card transmits between each first stack cards 11, it is ensured that the transmitting terminal stack member apparatus 10
All stacking links on message flow be maintained at the state of load balancing, so as to fully utilize the transmitting terminal stacking
The bandwidth resources of member device 10.The idiographic flow and step of the message forwarding method shown in Fig. 1 are described in detail below.
In embodiments of the present invention, the message forwarding method comprises the following steps:
Step S310, transmitting terminal stack member apparatus obtain forwarding purpose and wait to turn for the receiving terminal stack member apparatus
Transmit messages text.
In the present embodiment, the first service card 12 of the transmitting terminal stack member apparatus 10 can receive industry to be forwarded
Business message, the transmitting terminal stack member apparatus 10 can obtain purpose from first service card 12 and be stacked for the receiving terminal
The message to be forwarded of member device 20.
Alternatively, first service card 12 can connect according to the rule similar with acl rule from first service card 12
In the message of receipts, it would be desirable to which the message to be forwarded for being transmitted to the receiving terminal stack member apparatus 20 identifies;Described first
Service card 12 also can be by way of inquiring about forward table, by purpose exit port position in the message received from first service card 12
Identified in the message to be forwarded of the receiving terminal stack member apparatus 20.
In the present embodiment, the first service card 12 of the transmitting terminal stack member apparatus 10, can after message is received
Forward table query processing is carried out to the message received, and is located at the receiving terminal in the purpose exit port for inquiring the message
During stack member apparatus 20, it is the message to be forwarded for forwarding purpose to be the receiving terminal stack member apparatus 20 to judge the message.
Step S320, the transmitting terminal stack member apparatus is from least two be added in same trunking TRUNK
In all stacking openings for opening stack cards, the forwarding stacking opening of the message to be forwarded is determined.
In the present embodiment, the first service card 12 of the transmitting terminal stack member apparatus 10 get forwarding purpose be
After the message to be forwarded of the receiving terminal stack member apparatus 20, by from two first of the transmitting terminal stack member apparatus 10
In all stacking openings of stack cards 11, select with the stacking opening that the message to be forwarded matches as the message to be forwarded
Stacking opening is forwarded, so that it is guaranteed that the transmitting terminal stack member apparatus 10 according to the service condition of stacking opening and described can be waited to turn
Transmit messages the feature of text body, be dynamically the suitable forwarding stacking opening of message distribution to be forwarded, allow the transmitting terminal to stack
The message to be forwarded of member device 10 can realize being transmitted across card between more boards, be not intended to be limited to a certain bar and stack link,
Realize the message flow load balancing of the transmitting terminal stack member apparatus 10.Wherein, the transmitting terminal stack member apparatus 10
In two the first stack cards 11 all stacking opening PORT_A, PORT_B, PORT_C and PORT_D be added to same port remittance
In poly- TRUNK, the forwarding stacking opening is the transmitting terminal stack member apparatus 10 from all of two the first stack cards 11
Selected in stacking opening, it can be ensured that all message flows stacked on link of the transmitting terminal stack member apparatus 10 are maintained at
The stacking opening of load balancing state.
In the present embodiment, the forwarding stacking opening can be that current message load capacity is less than maximum in all stacking openings bear
The stacking opening of the maximum message segment load capacity of stacking opening is carried, the maximum load stacking opening is that message number is loaded in all stacking openings
Most stacking openings, the message load amount are the message number of corresponding stacking opening present load;The forwarding stacking opening also may be used
To be the stacking opening selected in a manner of poll from all stacking openings, i.e., described transmitting terminal stack member apparatus 10 often forwards
, it is necessary to carry out forwarding detection to all stacking openings in a manner of poll during one message to be forwarded, whether corresponding stacking opening is judged
Message is forwarded in preset time period, and when having detected that stacking opening does not E-Packet in preset time period, by the heap
Folded forwarding stacking opening of the mouth as the message to be forwarded.The selection mode of specific forwarding stacking opening can be carried out not according to demand
Same setting.
Alternatively, in the present embodiment, the transmitting terminal stack member apparatus 10 is from being added to same trunking
Include in all stacking openings of all stack cards in TRUNK, the step of the forwarding stacking opening for determining the message to be forwarded:
The first service card 12 of the message to be forwarded is obtained by the message redirecting to be forwarded into the TRUNK,
And the message to be forwarded is calculated based on TRUNK algorithms, choose from all stacking openings of the TRUNK and treated with described
E-Packet forwarding stacking opening of the stacking opening as the message to be forwarded of matching.
Wherein, the TRUNK algorithms may be, but not limited to, HASH algorithms, fixed-point algorithm based on TRUNK etc..It is described
Transmitting terminal stack member apparatus 10 is calculated the assigned characteristics of the message to be forwarded by the TRUNK algorithms, and base
In the assigned characteristics being calculated from all stacking openings in the TRUNK, choose and the assigned characteristics Corresponding matching
Forwarding stacking opening of the stacking opening as the message to be forwarded, wherein the stacking opening selected needs to meet the transmitting terminal
Stack member apparatus 10 ensures that all stacking links are in the bar of load balancing state in the case where current message flow transmits
Part, the transmitting terminal stack member apparatus 10 can be by the transmitting terminals for the step of message determination forwarding stacking opening to be forwarded
First service card 12 of the reception message to be forwarded of stack member apparatus 10 performs.
In the present embodiment, the transmitting terminal stack member apparatus 10 is waited to turn according to different TRUNK algorithms to same
When literary assigned characteristics of transmitting messages are calculated, obtained assigned characteristics will be different, and specific TRUNK algorithms can be by described
The producers or designer of transmitting terminal stack member apparatus 10 carry out different configurations according to the actual requirements.
Step S330, the transmitting terminal stack member apparatus are sent the message to be forwarded by the forwarding stacking opening
To the receiving terminal stack member apparatus.
In the present embodiment, the transmitting terminal stack member apparatus 10 is being assigned with corresponding turn for the message to be forwarded
After hair stacking opening, it is necessary to by the message transmissions to be forwarded at the forwarding stacking opening, and it is corresponding by the forwarding stacking opening
Stacking link the message to be forwarded is sent to the receiving terminal stack member apparatus 20, stacked with completing the transmitting terminal
Message transmissions between member device 10 and the receiving terminal stack member apparatus 20.
Alternatively, Fig. 3 is refer to, is a kind of schematic flow sheet for the sub-step that the step S330 shown in Fig. 2 includes.
In the embodiment of the present invention, the step S330 includes sub-step S331, sub-step S332 and sub-step S333, the sub-step
S331, sub-step S332 and sub-step S333 are as follows:
Sub-step S331, the Higig heads of the message to be forwarded are packaged based on the forwarding stacking opening, obtained
The Higig heads after encapsulation.
In the present embodiment, first service card 12 of the transmitting terminal stack member apparatus 10 is getting described treat
When E-Packeting, the initial purpose MODID in the Higig heads of the message to be forwarded is the receiving terminal stack member apparatus
The MODID of exchange chip in 20 the second stack cards 21, and first service card of the transmitting terminal stack member apparatus 10
12 after distribution to the forwarding stacking opening of the message to be forwarded is completed, it is necessary to by the message transmissions to be forwarded to corresponding
Forward at stacking opening, the first stack cards 11 where making the forwarding stacking opening forward stacking opening by the report to be forwarded by described
Text is sent to the receiving terminal stack member apparatus 20.
And during by the message transmissions to be forwarded to corresponding forward at stacking opening, the transmitting terminal is stacked into
First service card 12 of the reception message to be forwarded of member's equipment 10 needs the forwarding stacking opening based on the message to be forwarded
The Higig heads of the message to be forwarded are packaged, by the purpose MODID in the Higig heads of the message to be forwarded
It is revised as the MODID of exchange chip in the first stack cards 11 where corresponding forwarding stacking opening, and by the message to be forwarded
Destination interface in Higig heads is revised as the forwarding stacking opening.If for example, the forwarding stacking opening of the message to be forwarded is
PORT_A, then the purpose MODID on the Higig heads of the message to be forwarded would is that the first stack cards where the PORT_A
The MODID of 11 exchange chip, the destination interface on the Higig heads would is that the PORT_A.
Sub-step S332, according to the purpose MODID on Higig heads, the message to be forwarded is sent to the forwarding heap
Stack cards where folded mouth.
In the present embodiment, a SFU (Switching can be included in the transmitting terminal stack member apparatus 10
Fabric Unit, switching matrix unit) board, SFU boards that the transmitting terminal stack member apparatus 10 includes with receive described in
All data of the first stack cards 11 in the first service card 12 and the transmitting terminal stack member apparatus 10 of message to be forwarded
Connection, for carrying out data interaction.The SFU boards can by read be encapsulated as first service card 12 after described in treat
Purpose MODID in the Higig heads to E-Packet, and the purpose MODID in the Higig heads will be described to be forwarded
At the exchange chip of the first stack cards 11 where message transmissions to the forwarding stacking opening corresponding with the purpose MODID.
Sub-step S333, stack cards where the forwarding stacking opening are according to the destination interface on the Higig heads, by institute
State message to be forwarded and be sent to the forwarding stacking opening, and stacking opening is forwarded by the message transmissions to be forwarded to institute based on described
State in receiving terminal stack member apparatus.
In the present embodiment, the exchange chip of the first stack cards 11 where the forwarding stacking opening is corresponding to receive
After message to be forwarded, the destination interface on the Higig heads is read out, and according to the destination interface on the Higig heads,
The message to be forwarded is sent at forwarding stacking opening corresponding with the destination interface.
In the present embodiment, the message to be forwarded is after forwarding stacking opening corresponding to being transferred to, the transmitting terminal heap
The message to be forwarded is sent to the receiving terminal by folded member device 10 by the stacking link where the forwarding stacking opening
Formed in stack member apparatus 20 at second stack cards 21 of the stacking link.If for example, forwarding of the message to be forwarded
Stacking opening is PORT_A, then the stacking link for sending the message to be forwarded is that the PORT_A and PORT_E carries out mouth
The link formed is bound, when being flowed out at the PORT_A, the message to be forwarded will be transferred to the message to be forwarded
At the second stack cards 21 where the PORT_E.
Fig. 4 is refer to, is another schematic flow sheet for the message forwarding method that preferred embodiments of the present invention provide.
In the embodiment of the present invention, before the step S310, the message forwarding method can also include:
All stacking openings of at least two stack cards are added to same by step S309, transmitting terminal stack member apparatus
In TRUNK.
In the present embodiment, the transmitting terminal stack member apparatus 10 is by by least two first stack cards 11
All stacking openings are added to the mode in same TRUNK, it is ensured that the transmitting terminal stack member apparatus 10 is for message to be forwarded
During distribution forwarding stacking opening, selection consideration can be carried out to all stacking openings, so that it is guaranteed that the message to be forwarded can
Carry out transmitting across card between each first stack cards 11 in the transmitting terminal stack member apparatus 10.
In embodiments of the present invention, after the step S330, the message forwarding method can also include:
Step S340, the receiving terminal stack member apparatus carries out packet check to the message to be forwarded, and is detecting
Forwarding of tabling look-up is carried out to the message to be forwarded during success.
In the present embodiment, the forwarding in the receiving terminal stack member apparatus 20 with sending the message to be forwarded stacks
Mouthful connected second stack cards 21 are when receiving the message to be forwarded, exchange core that second stack cards 21 include
Piece will open higig hybrid patterns, be detected with the purpose module current to the message to be forwarded.The reception
Stack member apparatus 20 is held after second stack cards 21 detect successfully, forward table will be carried out to the message to be forwarded and looked into
Ask, so as to which the message to be forwarded to be sent to the purpose exit port of inquiry, with forwarding of being tabled look-up described in completion.
Alternatively, Fig. 5 is refer to, is a kind of schematic flow sheet for the sub-step that the step S340 shown in Fig. 4 includes.
In the present embodiment, the step S340 include sub-step S341, sub-step S342 and sub-step S343, the sub-step S341,
Sub-step S342 and sub-step S343 are as follows:
Sub-step S341, receive the Higig heads of the stack cards reading message to be forwarded of the message to be forwarded
Purpose MODID.
In the present embodiment, second stack cards 21 for receiving the message to be forwarded are treated by exchange chip to described
The purpose MODID on the Higig heads to E-Packet is read out.
Sub-step S342, whether the purpose MODID for judging the Higig heads is heap with receiving the message to be forwarded
The MODID of exchange chip in the connected opposite end stack cards of stacking.
In the present embodiment, the exchange chip of second stack cards 21 is by the purpose MODID that will read, with formation
The MODID for being connected to exchange chip in the first stack cards 11 of second stack cards 21 got during link that stacks enters
The mode that row compares, judge whether the purpose MODID is the opposite end heap being connected with receiving the stack cards of the message to be forwarded
The MODID of exchange chip in stacking, judges whether the message to be forwarded flows out from first stack cards 11.Wherein, reading is worked as
When the purpose MODID got is identical with the MODID of the exchange chip of corresponding first stack cards 11, judge that the message to be forwarded is
Flowed out from first stack cards 11.
In an embodiment of the present embodiment, second stack cards 21 are carried out to the message to be forwarded
During MODID is detected, Port detecting can also be carried out.Alternatively, with detecting the purpose MODID classes of the message to be forwarded
Seemingly, second stack cards 21 are read out by exchange chip to the destination interface on the Higig heads of the message to be forwarded,
And the mode by the destination interface read compared with sending the forwarding stacking opening of the message to be forwarded, judge institute
Whether correct the forward-path of message to be forwarded is stated, so as to improve the accuracy of packet check.Wherein, second stack cards 21
The stacking opening and the mutual mouth of the forwarding stacking opening for receiving the message to be forwarded are bound.
Sub-step S343, if the purpose MODID is the opposite end heap being connected with receiving the stack cards of the message to be forwarded
In stacking during the MODID of exchange chip, the message to be forwarded is inquired about from forward table in the receiving terminal stack member apparatus
Purpose exit port, and the message to be forwarded is sent to the purpose exit port.
In the present embodiment, if the purpose MODID that second stack cards 21 are read is to be stacked with described second
In the first connected stack cards 11 of card 21 during the MODID of exchange chip, packet check success is judged.If second stack cards 21
During MODID detections are carried out to the message to be forwarded, when also execution has Port detecting, then only when the institute read
State purpose MODID and be the MODID of exchange chip in the first stack cards 11 being connected with second stack cards 21, and read
When the destination interface is sends the forwarding stacking opening of the message to be forwarded, packet check success is judged.
In the present embodiment, when second stack cards 21 judge detect successfully when, second stack cards 21 will from turn
Purpose exit port of the middle inquiry message to be forwarded in the receiving terminal stack member apparatus 20 is delivered, and will be described to be forwarded
Message is sent at the purpose exit port.
Wherein, the receiving terminal stack member apparatus 20 can also include a SFU board, the SFU boards respectively with
All second stack cards 21 and the connection of all data of second service card 22, the reception in the receiving terminal stack member apparatus 20
The message to be forwarded received is forwarded at corresponding purpose exit port by end stack member apparatus 20 by the SFU boards.
In the present embodiment, the purpose exit port can be the stacking opening in other second stack cards 21 or the reception
Hold the stacking opening on the second service card 22 of stack member apparatus 20.
Fig. 6 is refer to, is a kind of square frame signal for the first apparatus for forwarding message 100 that preferred embodiments of the present invention provide
Figure.In embodiments of the present invention, first apparatus for forwarding message 100 is applied to by least two stack cards and receiving terminal heap
Folded member device 20 stacks the transmitting terminal stack member apparatus 10 of connection, and first apparatus for forwarding message 100 obtains including message
Modulus block 110, stacking opening determining module 120 and message transmissions module 130.
The Receive message module 110, wait to turn for the receiving terminal stack member apparatus 20 for obtaining forwarding purpose
Transmit messages text.
In the present embodiment, the Receive message module 110 can be arranged on the transmitting terminal stack member apparatus 10
In first service card 12, the Receive message module 110 can perform the step S310 shown in Fig. 2, and specific description can be joined
According to above to step S310 detailed description.
The stacking opening determining module 120, at least two described in be added in same trunking TRUNK
In all stacking openings of stack cards, the forwarding stacking opening of the message to be forwarded is determined.
In the present embodiment, the forwarding stacking opening is two the first stack cards of the transmitting terminal stack member apparatus 10
The message flow being able to ensure that in 11 all stacking openings on all stacking links is maintained at the stacking opening of load balancing state.Institute
The of the reception message to be forwarded of the transmitting terminal stack member apparatus 10 can be arranged on by stating stacking opening determining module 120
In one service card 12, the stacking opening determining module 120 can perform the step S320 shown in Fig. 2, and specific description can be joined
According to above to step S320 detailed description.
The message transmissions module 130, for the message to be forwarded to be sent into reception by the forwarding stacking opening
Hold stack member apparatus 20.
Alternatively, Fig. 7 is refer to, is a kind of block diagram of the message transmissions module 130 shown in Fig. 6.In this hair
In bright embodiment, the message transmissions module 130 includes forwarding submodule 132 and message between Higig encapsulation submodule 131, card
Sending submodule 133.
The Higig encapsulates submodule 131, for the Higig based on the forwarding stacking opening to the message to be forwarded
Head is packaged, the Higig heads after being encapsulated.
In the present embodiment, the destination interface on the Higig heads after encapsulation is the forwarding stacking opening, after encapsulation
The purpose MODID on the Higig heads be it is described forwarding stacking opening where stack cards in exchange chip MODID, it is described
Higig encapsulation submodules 131 can be arranged on the of the reception message to be forwarded of the transmitting terminal stack member apparatus 10
In one service card 12, the Higig encapsulation submodule 131 can perform the sub-step S331 shown in Fig. 3, and specific description can
With reference to above sub-paragraphs S331 detailed description.
Submodule 132 is forwarded between the card, for the purpose MODID according to the Higig heads, by the report to be forwarded
Text is sent to the stack cards where the forwarding stacking opening.
In the present embodiment, submodule 132 is forwarded to be arranged on the transmitting terminal stack member apparatus 10 between the card
SFU boards in, forward submodule 132 to perform sub-step S332 shown in Fig. 3 between the card, specific description can be joined
According to above sub-paragraphs S332 detailed description.
The message sending submodule 133, for make it is described forwarding stacking opening where stack cards according to the Higig heads
The destination interface in portion, the message to be forwarded is sent to the forwarding stacking opening, and based on the forwarding stacking opening by described in
Message transmissions to be forwarded are into the receiving terminal stack member apparatus 20.
In the present embodiment, the number of the message sending submodule 133 is identical with the number of first stack cards 11,
A message sending submodule 133 is may be provided with each first stack cards 11, the message sending submodule 133 can
To perform the sub-step S333 shown in Fig. 3, specific description can refer to above sub-paragraphs S333 detailed description.
Fig. 8 is refer to, is that another square frame for the first apparatus for forwarding message 100 that preferred embodiments of the present invention provide shows
It is intended to.In embodiments of the present invention, first apparatus for forwarding message 100 can also include TRUNK configuration modules 140.
The TRUNK configuration modules 140, converged for all stacking openings of at least two stack cards to be added into same port
In poly- TRUNK.
In the present embodiment, the TRUNK configuration modules 140 can be arranged on the transmitting terminal stack member apparatus 10
In main control unit, the TRUNK configuration modules 140 can perform the step S309 shown in Fig. 4, and specific description can refer to
To step S309 detailed description in text.
Fig. 9 is refer to, is a kind of square frame signal for the second apparatus for forwarding message 200 that preferred embodiments of the present invention provide
Figure.In embodiments of the present invention, second apparatus for forwarding message 200 is applied to transmitting terminal stack member apparatus 10 by extremely
Few two stack cards stack the receiving terminal stack member apparatus 20 of connection, and second apparatus for forwarding message 200 includes detection and turned
Send out module 210.
The detection forwarding module 210, the message to be forwarded sent for receiving the transmitting terminal stack member apparatus 10,
Packet check is carried out to the message to be forwarded, and forwarding of tabling look-up is carried out to the message to be forwarded when detecting successfully.
Alternatively, Figure 10 is refer to, is a kind of block diagram of the detection forwarding module 210 shown in Fig. 9.In this reality
Apply in example, the detection forwarding module 210 includes reading submodule 211, judging submodule 212 and forwarding submodule 213.
The reading submodule 211, the purpose MODID on the Higig heads for reading the message to be forwarded.
In the present embodiment, the reading submodule 211 can be arranged on each of the receiving terminal stack member apparatus 20
In second stack cards 21, the reading submodule 211 can perform the sub-step S341 shown in Fig. 5, and specific description can be joined
According to above sub-paragraphs S341 detailed description.
The judging submodule 212, for judging whether the purpose MODID on the Higig heads is with being treated described in reception
The MODID of exchange chip in the opposite end stack cards that the stack cards to E-Packet are connected.
In the present embodiment, the judging submodule 212 can be arranged on each of the receiving terminal stack member apparatus 20
In second stack cards 21, the judging submodule 212 can perform the sub-step S342 shown in Fig. 5, and specific description can be joined
According to above sub-paragraphs S342 detailed description.
The forwarding submodule 213, if being the stack cards phase with receiving the message to be forwarded for the purpose MODID
In opposite end stack cards even during the MODID of exchange chip, the message to be forwarded is inquired about from forward table in the receiving terminal heap
The purpose exit port of folded member device 20, and the message to be forwarded is sent to the purpose exit port.
In the present embodiment, the forwarding submodule 213 can perform the sub-step S343 shown in Fig. 5, specifically retouch
State the detailed description that can refer to above sub-paragraphs S343.
In summary, in the message forwarding method and device that preferred embodiments of the present invention provide, the message forwarding
The data transmission efficiency of method is high, can realize across the card flow transmission of more boards, the flow on all stacking links is reached negative
Carry balanced.Wherein, methods described is applied to the stacking system for including transmitting terminal stack member apparatus and receiving terminal stack member apparatus
System, the transmitting terminal stack member apparatus are stacked with the receiving terminal stack member apparatus by least two stack cards and connected.
The transmitting terminal stack member apparatus get forwarding purpose for the receiving terminal stack member apparatus message to be forwarded after,
From described in being added in same trunking TRUNK of the transmitting terminal stack member apparatus transmitting terminal stack member apparatus
In all stacking openings of at least two stack cards, the forwarding stacking opening of the message to be forwarded is determined, and passes through the forwarding
The message to be forwarded is sent to the receiving terminal stack member apparatus by stacking opening, so that it is guaranteed that the message to be forwarded can
Between each stack cards in transmitting terminal stack member apparatus carry out across card transmission, and the transmitting terminal stack member apparatus with it is described
The flow on all stacking links between receiving terminal stack member apparatus is maintained at the state of load balancing.
The preferred embodiments of the present invention are the foregoing is only, are not intended to limit the invention, for the skill of this area
For art personnel, the present invention can have various modifications and variations.Within the spirit and principles of the invention, that is made any repaiies
Change, equivalent substitution, improvement etc., should be included in the scope of the protection.
Claims (11)
- A kind of 1. message forwarding method, applied to the stacking including transmitting terminal stack member apparatus and receiving terminal stack member apparatus System, the transmitting terminal stack member apparatus is stacked by least two stack cards with the receiving terminal stack member apparatus to be connected Connect, it is characterised in that methods described includes:The transmitting terminal stack member apparatus obtains the message to be forwarded that forwarding purpose is the receiving terminal stack member apparatus;The transmitting terminal stack member apparatus at least two stack cards described in be added in same trunking TRUNK In all stacking openings, the forwarding stacking opening of the message to be forwarded is determined;The message to be forwarded is sent to the receiving terminal by the transmitting terminal stack member apparatus by the forwarding stacking opening Stack member apparatus.
- 2. according to the method for claim 1, it is characterised in that the transmitting terminal stack member apparatus is same from being added to In all stacking openings of at least two stack cards in trunking TRUNK, the forwarding of the message to be forwarded is determined Stacking opening, including:By the message redirecting to be forwarded into the TRUNK, and the message to be forwarded is counted based on TRUNK algorithms Calculate, chosen from all stacking openings of the TRUNK with the stacking opening that the message to be forwarded matches as the report to be forwarded The forwarding stacking opening of text.
- 3. according to the method for claim 1, it is characterised in that the transmitting terminal stack member apparatus passes through the forwarding heap The message to be forwarded is sent to the receiving terminal stack member apparatus by folded mouth, including:The Higig heads of the message to be forwarded are packaged based on the forwarding stacking opening, it is described after being encapsulated Higig heads, wherein the destination interface on the Higig heads after encapsulation is the forwarding stacking opening, it is described after encapsulation The purpose MODID on Higig heads be it is described forwarding stacking opening where stack cards in exchange chip MODID;According to the purpose MODID on the Higig heads, the heap message to be forwarded being sent to where the forwarding stacking opening Stacking;Stack cards where the forwarding stacking opening send out the message to be forwarded according to the destination interface on the Higig heads The forwarding stacking opening is sent to, and is stacked into the message transmissions to be forwarded to the receiving terminal based on the forwarding stacking opening In member's equipment.
- 4. according to the method for claim 1, it is characterised in that the transmitting terminal stack member apparatus obtains forwarding purpose and is Before the message to be forwarded of the receiving terminal stack member apparatus, methods described also includes:All stacking openings of at least two stack cards are added in same TRUNK by the transmitting terminal stack member apparatus.
- 5. according to the method described in claim 1-4 any one, it is characterised in that the transmitting terminal stack member apparatus passes through After the message to be forwarded is sent to the receiving terminal stack member apparatus by the forwarding stacking opening, methods described is also wrapped Include:The receiving terminal stack member apparatus carries out packet check to the message to be forwarded, and is treated when detecting successfully to described E-Packet and carry out forwarding of tabling look-up.
- 6. according to the method for claim 5, it is characterised in that the receiving terminal stack member apparatus is to the report to be forwarded Text carries out packet check, and the forwarding that when detecting successfully to the message to be forwarded table look-up includes:Receive the purpose MODID on the Higig heads of the stack cards reading message to be forwarded of the message to be forwarded;Whether the purpose MODID for judging the Higig heads is the opposite end being connected with receiving the stack cards of the message to be forwarded The MODID of exchange chip in stack cards;If the purpose MODID is exchange chip in the opposite end stack cards being connected with receiving the stack cards of the message to be forwarded During MODID, purpose exit port of the message to be forwarded in the receiving terminal stack member apparatus is inquired about from forward table, and will The message to be forwarded is sent to the purpose exit port.
- 7. a kind of apparatus for forwarding message, connection is stacked with receiving terminal stack member apparatus applied to by least two stack cards Transmitting terminal stack member apparatus, it is characterised in that described device includes:Receive message module, for obtaining the message to be forwarded that forwarding purpose is the receiving terminal stack member apparatus;Stacking opening determining module, the institute at least two stack cards described in be added in same trunking TRUNK Have in stacking opening, determine the forwarding stacking opening of the message to be forwarded;Message transmissions module, it is stacked into for the message to be forwarded to be sent into the receiving terminal by the forwarding stacking opening Member's equipment.
- 8. device according to claim 7, it is characterised in that the message transmissions module includes:Higig encapsulates submodule, for being sealed based on the forwarding stacking opening to the Higig heads of the message to be forwarded Dress, the Higig heads after being encapsulated, wherein the destination interface on the Higig heads after encapsulation is the forwarding heap Folded mouth, the purpose MODID on the Higig heads after encapsulation is exchange chip in the stack cards where the forwarding stacking opening MODID;Submodule is forwarded between card, for the purpose MODID according to the Higig heads, the message to be forwarded is sent to institute State the stack cards where forwarding stacking opening;Message sending submodule, for making the stack cards where the forwarding stacking opening according to the destination on the Higig heads Mouthful, the message to be forwarded is sent to the forwarding stacking opening, and stacking opening is forwarded by the message to be forwarded based on described It is transferred in the receiving terminal stack member apparatus.
- 9. the device according to claim 7 or 8, it is characterised in that described device also includes:TRUNK configuration modules, for all stacking openings of at least two stack cards to be added in same TRUNK.
- 10. a kind of apparatus for forwarding message, connected applied to being stacked with transmitting terminal stack member apparatus by least two stack cards Receiving terminal stack member apparatus, it is characterised in that described device includes:Forwarding module is detected, the message to be forwarded sent for receiving the transmitting terminal stack member apparatus, to described to be forwarded Message carries out packet check, and carries out forwarding of tabling look-up to the message to be forwarded when detecting successfully.
- 11. device according to claim 10, it is characterised in that the detection forwarding module includes:Reading submodule, the purpose MODID on the Higig heads for reading the message to be forwarded;Judging submodule, for judging whether the purpose MODID on the Higig heads is heap with receiving the message to be forwarded The MODID of exchange chip in the connected opposite end stack cards of stacking;Submodule is forwarded, if for the purpose MODID being the opposite end heap being connected with receiving the stack cards of the message to be forwarded In stacking during the MODID of exchange chip, the message to be forwarded is inquired about from forward table in the receiving terminal stack member apparatus Purpose exit port, and the message to be forwarded is sent to the purpose exit port.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711183242.9A CN107682278A (en) | 2017-11-23 | 2017-11-23 | Message forwarding method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711183242.9A CN107682278A (en) | 2017-11-23 | 2017-11-23 | Message forwarding method and device |
Publications (1)
Publication Number | Publication Date |
---|---|
CN107682278A true CN107682278A (en) | 2018-02-09 |
Family
ID=61149300
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201711183242.9A Pending CN107682278A (en) | 2017-11-23 | 2017-11-23 | Message forwarding method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107682278A (en) |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6807182B1 (en) * | 1999-11-02 | 2004-10-19 | 3Com Corporation | Stacked network devices including a protocol engine and distributed trunk ports and method of operating same |
CN101060460A (en) * | 2006-06-09 | 2007-10-24 | 华为技术有限公司 | A method and communication equipment for protecting the Ethernet link collective logic port message against loss |
CN101296186A (en) * | 2008-06-13 | 2008-10-29 | 杭州华三通信技术有限公司 | Routing switching device, method and switching cable fastener plate |
US7570601B2 (en) * | 2005-04-06 | 2009-08-04 | Broadcom Corporation | High speed autotrunking |
CN102164059A (en) * | 2011-05-30 | 2011-08-24 | 北京星网锐捷网络技术有限公司 | Method and device for detecting connection error of stacked aggregated links |
CN102469021A (en) * | 2010-11-18 | 2012-05-23 | 杭州华三通信技术有限公司 | Method of transmitting business flow and member equipment in intelligent resilience frame system |
CN103095568A (en) * | 2013-01-30 | 2013-05-08 | 迈普通信技术股份有限公司 | System and method for achieving stacking of rack type switching devices |
-
2017
- 2017-11-23 CN CN201711183242.9A patent/CN107682278A/en active Pending
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6807182B1 (en) * | 1999-11-02 | 2004-10-19 | 3Com Corporation | Stacked network devices including a protocol engine and distributed trunk ports and method of operating same |
US7570601B2 (en) * | 2005-04-06 | 2009-08-04 | Broadcom Corporation | High speed autotrunking |
CN101060460A (en) * | 2006-06-09 | 2007-10-24 | 华为技术有限公司 | A method and communication equipment for protecting the Ethernet link collective logic port message against loss |
CN101296186A (en) * | 2008-06-13 | 2008-10-29 | 杭州华三通信技术有限公司 | Routing switching device, method and switching cable fastener plate |
CN102469021A (en) * | 2010-11-18 | 2012-05-23 | 杭州华三通信技术有限公司 | Method of transmitting business flow and member equipment in intelligent resilience frame system |
CN102164059A (en) * | 2011-05-30 | 2011-08-24 | 北京星网锐捷网络技术有限公司 | Method and device for detecting connection error of stacked aggregated links |
CN103095568A (en) * | 2013-01-30 | 2013-05-08 | 迈普通信技术股份有限公司 | System and method for achieving stacking of rack type switching devices |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US6868082B1 (en) | Network processor interface for building scalable switching systems | |
CN104348740B (en) | Data package processing method and system | |
US6532229B1 (en) | Low cost link aggregation method and system | |
CN103973560B (en) | A kind of method and apparatus that link failure processing is stacked in IRF systems | |
CN108173753A (en) | Message forwarding method, switching card, service card and distribution switch | |
US20090161685A1 (en) | Method, system and node for backpressure in multistage switching network | |
CN101019385A (en) | Port aggregation across stack of devices | |
CN106878194A (en) | A kind of message processing method and device | |
CN103095568A (en) | System and method for achieving stacking of rack type switching devices | |
CN107395572A (en) | A kind of data processing method and things-internet gateway | |
CN102904825B (en) | A kind of message transmitting method based on Hash and equipment | |
CN102571492A (en) | Method and device for detecting failure of routing equipment | |
CN107547430A (en) | A kind of file transmitting method and device | |
CN107332943A (en) | A kind of message forwarding method and device | |
CN115065637B (en) | Method and device for transmitting computing power resource information and electronic equipment | |
CN110191064A (en) | Flow load balance method, apparatus, equipment, system and storage medium | |
US7327712B2 (en) | Selection system, its selection method for voice channels, and switchboard for use therein | |
CN108566390A (en) | The implementation method and satellite message of a kind of satellite application layer security protocol are monitored and distribution service system | |
JPH04234247A (en) | Receiving and transmission method of communication cell by atm exchanger and circuit apparatus | |
CN101605093A (en) | Utilize IP Option to realize the method for information transparent transmission | |
CN101217472A (en) | A modularized switch message route method | |
CN107682278A (en) | Message forwarding method and device | |
CN104935509A (en) | Method and apparatus of avoiding loop generation in vertical stack system | |
CN102171976B (en) | Data transmission method on switch device and apparatus thereof | |
CN105450519B (en) | The sending method and core switch of message |
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 | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20180209 |
|
RJ01 | Rejection of invention patent application after publication |