CN101827038A - Distributed equipment and method for forwarding message in distributed equipment - Google Patents

Distributed equipment and method for forwarding message in distributed equipment Download PDF

Info

Publication number
CN101827038A
CN101827038A CN201010180370A CN201010180370A CN101827038A CN 101827038 A CN101827038 A CN 101827038A CN 201010180370 A CN201010180370 A CN 201010180370A CN 201010180370 A CN201010180370 A CN 201010180370A CN 101827038 A CN101827038 A CN 101827038A
Authority
CN
China
Prior art keywords
message
route
interface board
described message
interface
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201010180370A
Other languages
Chinese (zh)
Other versions
CN101827038B (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 Technologies Co Ltd
Original Assignee
Hangzhou H3C Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hangzhou H3C Technologies Co Ltd filed Critical Hangzhou H3C Technologies Co Ltd
Priority to CN201010180370XA priority Critical patent/CN101827038B/en
Publication of CN101827038A publication Critical patent/CN101827038A/en
Application granted granted Critical
Publication of CN101827038B publication Critical patent/CN101827038B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The invention discloses distributed equipment and a method for forwarding a message in the distributed equipment. The method comprises the following steps of: storing a local area network route and a default route on an interface board of a first type of the distributed equipment; storing routes comprising a network route on an interface board of a second type; when the interface board of the first type receives a message sent by a local area network side, searching the route stored on the interface board of the first type, if a search result is that the message is matched with the default route, forwarding the message to the interface board of the second type according to the default route and forwarding the message to the network by the interface board of the second type according to the stored network route, thereby being capable of realizing the normal forwarding of the message when a corresponding network route does not exist on the interface board of the first type.

Description

The method that message is transmitted in distributed apparatus and the distributed apparatus
Technical field
The present invention relates to the communications field, relate in particular to the method that message is transmitted in a kind of distributed apparatus and the distributed apparatus.
Background technology
Comprise a plurality of interface boards in the distributed apparatus, the distinct interface plate can be supported identical or different route specifications.In the network shown in fig. 1, distributed apparatus Switch A is as the gateway of Intranet, be linked into Internet by mulitpath, the flow of all Intranet visit Internet all passes through on the Switch A to be transmitted, so needs to support jumbo route on the Switch A.
In the prior art, the route on each interface board in the distributed apparatus needs synchronously, and is promptly in full accord, otherwise can cause routing error.When for example adopting the interface board of different size in the distributed apparatus, because the routing capacity of low specification interface board is little, the routing capacity of high standard interface board is big, when the route that need store when distributed apparatus surpasses the routing capacity of low specification interface board, can cause on the low specification interface board and can't store whole routing tables, when message by low specification interface board carry out message when transmitting owing to there is not corresponding route then can cause message to be dropped.Therefore, the specification of entire equipment is determined by low specification interface board.
For fear of owing to the little packet loss problem that causes of low specification interface board routing capacity, in networking shown in Figure 1, prior art disposes the high standard interface board fully in Switch A, but this SwitchA cost is higher, is unfavorable for that the user uses.
Summary of the invention
The invention provides the method that message is transmitted in a kind of distributed apparatus and the distributed apparatus, when realizing having high standard and low specification interface board simultaneously in the distributed apparatus, guarantee that low specification interface board normally E-Packets.
The invention provides the method that message is transmitted in a kind of distributed apparatus, comprise the first kind interface board and the second class interface plate in the described distributed apparatus, described distributed apparatus is connected with outer net as the gateway of Intranet, storing intranet route and default route on the described first kind interface board, the route of storing on the described second class interface plate comprises the outer net route, and this method further comprises:
When described distributed apparatus receives the message of Intranet side transmission by first kind interface board, search the route of storing on the described first kind interface board;
If lookup result is described message and described default route coupling, according to described default route described message is transmitted to the described second class interface plate, described message is transmitted to outer net according to the outer net route of storage by the described second class interface buttress;
If lookup result is described message and described Intranet matched routings, according to the described message of described Intranet routing forwarding.
According to described default route described message is comprised to described second class interface plate forwarding:
Encapsulate described message and transmit described message with multicast form link between plate according to default route; Perhaps
Send described message with the clean culture form to the described second class interface plate of correspondence according to described default route.
The described message of described encapsulation comprise following one or more:
Encapsulation multicast identification field and Hash field determine whether to handle described message by the described second class interface buttress according to the value of described multicast identification field and Hash field;
Be described message packaged source MAC Address, know the transmit leg interface board of described message by the described second class interface buttress according to described source MAC, and then judge whether to handle described message;
Be described message package type field, determine whether to transmit described message to other interface boards by the value of the described second class interface buttress according to described type field.
The value of described Hash field is specially:
The value that in the source address of described message, source port, destination address or the destination interface one or more obtain by Hash operation; Perhaps match the packet counting of default route; The perhaps source address of described message or the specific part in the source address; The message that has the value of identical Hash field by same routing forwarding by the described second class interface plate.
The described second class interface buttress is transmitted described message according to the outer net route of storage and is comprised to outer net:
The described second class interface plate is searched the outgoing interface corresponding with described message in this locality;
If there are many equal-cost routes, the described second class interface buttress is selected wherein described message of routing forwarding according to the cryptographic Hash of carrying in the described message.
The described second class interface buttress is transmitted described message according to the outer net route of storage and is comprised to outer net:
The described second class interface plate is searched the outgoing interface corresponding with described message in this locality;
Belong to self if find described outgoing interface, the described second class interface plate is transmitted described message by described outgoing interface;
Otherwise the described second class interface plate abandons described message, and perhaps the interface board under described outgoing interface is transmitted described message.
According to described default route with described message after the described second class interface plate is transmitted, also comprise:
Described first kind interface board is to the outer net route of the described message of master control borad application;
Described first kind interface board carries out the message forwarding according to the Intranet route of storage with the outer net route that application obtains.
Described first kind interface board comprises to the outer net route of the described message of master control borad application:
The destination address of the message that described first kind interface board record is transmitted to the described second class interface plate, the quantity of the destination address of the message by the counters count record, and by the time interval of timer statistics to described master control borad application outer net route;
When the counting of described counter reaches maximum and described during interval greater than default smaller value, send the destination address of the described message of record, the outer net route of applying for described message to described master control borad; Perhaps when the described time interval reaches default higher value, send the destination address of the described message of record, the outer net route of applying for described message to described master control borad.
When having the described second class interface plate of operate as normal in the described distributed apparatus, promptly dispose described default route on the described first kind interface board; Allocating default route when perhaps the route quantity on described first kind interface board surpasses threshold value.
The invention provides a kind of distributed apparatus, be connected with outer net as the gateway of Intranet, described distributed apparatus comprises the first kind interface board and the second class interface plate; Storing intranet route and default route on the described first kind interface board, the route of storing on the described second class interface plate comprises the outer net route,
Described first kind interface board is used for storing intranet route and default route, when receiving the message of Intranet side transmission, searches the route of local storage; If lookup result is described message and described default route coupling, described message is transmitted to the described second class interface plate according to described default route; If lookup result is described message and described Intranet matched routings, according to the described message of described Intranet routing forwarding;
The described second class interface plate is used to store the route that comprises the outer net route, and transmits the message that described first kind interface board sends to the periphery.
Described first kind interface board comprises:
Encapsulation unit is used to encapsulate described message;
Retransmission unit is used for according to described default route with the message of multicast form after link between plate is transmitted described encapsulation unit encapsulation; Perhaps send described message with the clean culture form to the described second class interface plate of correspondence according to described default route.
Described encapsulation unit also is used for: be described message encapsulation multicast identification field and Hash field, and/or be described message packaged source MAC Address, and/or be described message package type field;
The described second class interface plate also is used for: the value according to described multicast identification field and Hash field determines whether to handle described message; And/or know the transmit leg interface board of described message, and then judge whether to handle described message according to described source MAC; And/or determine whether that according to the value of described type field needs transmit described message to other interface boards.
The value of described Hash field is specially:
The value that in the source address of described message, source port, destination address or the destination interface one or more obtain by Hash operation; Perhaps
Match the packet counting of default route; Perhaps
The source address of described message or the specific part in the source address.
The described second class interface plate comprises:
Search the unit, be used for searching the outgoing interface corresponding with described message in this locality;
Retransmission unit is connected with the described unit of searching, be used for when the described lookup result of searching the unit when having many equal-cost routes, select wherein described message of routing forwarding according to the cryptographic Hash of carrying in the described message.
The described second class interface plate also is used for:
Search the outgoing interface corresponding with described message in this locality;
Belong to self if find described outgoing interface, transmit described message by described outgoing interface;
Otherwise, abandon described message, perhaps the interface board under described outgoing interface is transmitted described message.
Described first kind interface board also comprises:
Application unit is used for the outer net route to the described message of master control borad application;
Retransmission unit is used for carrying out the message forwarding according to the Intranet route of storage with the outer net route that application obtains.
Described first kind interface board also comprises:
Record cell is used to write down the destination address to the message of described second class interface plate forwarding;
Statistic unit is connected with described record cell, is used to add up the quantity of destination address of the message of described recording unit records;
Timing unit is used to add up the time interval to described master control borad application outer net route;
Described application unit also is used for: when the quantity of described statistic unit statistics reaches maximum and described during interval greater than default smaller value, send the destination address of the described message of record, the outer net route of applying for described message to described master control borad; Perhaps when the described time interval reaches default higher value, send the destination address of the described message of record, the outer net route of applying for described message to described master control borad.
Compared with prior art, the present invention has the following advantages at least:
Among the present invention, first kind interface board storing intranet route and default route at distributed apparatus, storage comprises the route of outer net route on the second class interface plate, when first kind interface board receives the message of Intranet side transmission, search the route of storing on the first kind interface board, if lookup result is message and acquiescence coupling, then described message is transmitted to the second class interface plate according to default route, message is transmitted to outer net according to the outer net route of storage by the second class interface buttress, still message is not normally transmitted thereby can be implemented in when having corresponding outer net route on the first kind interface board.
Description of drawings
Fig. 1 is a kind of gateway schematic diagram in the prior art;
Fig. 2 is the schematic flow sheet of the method that message is transmitted in the distributed apparatus provided by the invention;
Fig. 3 is the schematic flow sheet of the method that message is transmitted in the distributed apparatus that provides of application scenarios of the present invention;
Fig. 4 is the message format schematic diagram after the encapsulation in the application scenarios of the present invention;
Fig. 5 is that low specification interface board is the schematic flow sheet that sends message with the multicast form to the high-performance interface board in the application scenarios of the present invention;
Fig. 6 is the schematic flow sheet that low specification interface board also can the clean culture form sends message in the application scenarios of the present invention to the high standard interface board;
Fig. 7 is the structural representation of first kind interface board in the distributed apparatus provided by the invention;
Fig. 8 is the structural representation of the second class interface plate in the distributed apparatus provided by the invention;
Fig. 9 is another structural representation of first kind interface board in the distributed apparatus provided by the invention.
Embodiment
Core concept of the present invention is: low specification interface board on the storing intranet route on the distributed apparatus, the outer net route is by the storage of high standard interface board, preferential storing intranet route on the perhaps low specification interface board is stored the outer net route on the low specification interface board simultaneously when having residual memory space; Network packet in low specification interface board is directly handled for need if store corresponding outer net route on this plate, then sending to the high standard interface board by default route to the message of outer net transmission, is transmitted to outer net by the high standard interface board.
The invention provides the method that message is transmitted in a kind of distributed apparatus, comprise the first kind interface board and the second class interface plate in the described distributed apparatus, described distributed apparatus is connected with outer net as the gateway of Intranet, storing intranet route and default route on the described first kind interface board, the route of storing on the described second class interface plate comprises the outer net route, as shown in Figure 2, this method further comprises:
Step 201 when described distributed apparatus receives the message of Intranet side transmission by first kind interface board, is searched the route of storing on the described first kind interface board; If lookup result is described message and described default route coupling, execution in step 202; If lookup result is described message and described Intranet matched routings, execution in step 203;
Step 202 is transmitted described message according to described default route to the described second class interface plate, described message is transmitted to outer net according to the outer net route of storage by the described second class interface buttress;
Step 203 is according to the described message of described Intranet routing forwarding.
Need to prove that the first kind interface board wherein and the second class interface plate can be but be not limited to low specification interface board and high standard interface board that promptly routing capacity hangs down and the high interface board of routing capacity respectively.For example, the first kind interface board and the second class interface plate also can be the interface board of same size, are connected with outer net by the second class interface plate, and first kind interface board only is connected with Intranet.
Introduce the method that message is transmitted in the distributed apparatus provided by the invention in detail below in conjunction with concrete application scenarios.
In the application scenarios of the present invention, the first kind interface board and the second class interface plate are example with low specification interface board and high standard interface board respectively, under route mixed insertion pattern, the veneer that connects the outer net side uses the high standard interface board, the interface board that connects the Intranet side uses low specification interface board, on the high standard interface board, issue whole routes, issue the route and the default route (low specification interface board also can be stored the outer net route when low specification interface board has enough residual memory spaces) of Intranet on low specification interface board, next of default route jumped and pointed to outbound port Super Interface (super interface).The message of Intranet visit Intranet can normally be transmitted on low specification interface board, and the message of Intranet visit outer net after matching default route on the low specification interface board, sends to Super Interface, is transmitted by the high standard interface board by conversion link between plate.
Wherein, the outer net route is the route of the external network learnt of router, and is concrete, and it is the outer net route that the user can specify the route with features such as specific route prefix, outgoing interface, next jumping or outgoing interface place interface boards according to actual conditions.The Intranet route is the route of only transmitting in network internal, is also referred to as local route.
Distributed apparatus at first need issue default route on low specification interface board, issuing of this default route can comprise dual mode:
The one, when having the high standard interface board of operate as normal on the distributed apparatus, on low specification interface board, issue default route immediately;
Another kind of mode is that distributed apparatus is judged when the routing capacity of storing on the low specification interface board reaches threshold value, issues default route on the low specification interface board of distributed apparatus.Under this mode, when being arranged, enough memory spaces can store outer net route and Intranet route simultaneously on the low specification interface board, when routing capacity reaches threshold value, when for example not having redundant space storing intranet route, distributed apparatus issues default route on low specification interface board, and the priority that the Intranet route is set is higher than the outer net route, follow-up when needing the storing intranet route, use the Intranet route to replace the outer net route of having stored, default route is not replaceable.
Below be that example describes only to store the outer net route on storing intranet route and default route, the high standard interface board on the low specification interface board, as shown in Figure 3, this method may further comprise the steps:
Step 301, distributed apparatus receives the message that the Intranet side sends by low specification interface board, searches the route of storing on this low specification interface board; If lookup result is message and default route coupling, execution in step 302; If lookup result is message and Intranet matched routings, execution in step 303.
Concrete, the default route that disposes on the low specification interface board is corresponding with the message of transmitting to outer net, after low specification interface board receives the message of Intranet side transmission, whether having specific identifier according to message judges whether to mate with default route, this specific identifier can flexible configuration, for example is particular prefix.If message has this particular prefix, low specification interface board judges that the destination of this message is an outer net equipment, otherwise the destination of this message is an Intranet equipment.
Step 302, low specification interface board is to send to Super Interface after message adds encapsulation.
Concrete, low specification interface board increases an ether encapsulation again before message, message format after the encapsulation as shown in Figure 4, comprise newly-increased heading field and original message field, comprise original purpose MAC, original source MAC and original contents in the original message field, comprise newly-increased purpose MAC, newly-increased source MAC and type field in the newly-increased heading field.
Wherein, MAC is that system is the interface board sign of the interface board distribution of each groove position.
Newly-increased purpose MAC: the purpose MAC of newly-increased encapsulation, can comprise one or more byte, be generally 6 bytes, for example first byte is 01, is marked as multicast; Second byte is the HASH value, is used for carrying out Route Selection by the high standard interface board when the storage equal-cost route; Next 4 bytes are filled in the purpose IP of original message.
Newly-increased source MAC: be the sign of the source interface plate that sends this message.
Type field: be used to specify the attribute of this message, it is the acyclic return that first Bit is set here, if the acyclic return puts 1, shows that this message should not carry out straddle again and transmit, and prevents loop with this.
Original message: be the message that needed originally to transmit.
Need to prove, low specification interface board is that message can encapsulate one or more above-mentioned information when adding encapsulation, for example encapsulate multicast identification field and Hash field, determine whether to handle this message according to the value of multicast identification field and Hash field by the high standard interface board; Simultaneously all right or independent packaged source MAC Address is known the transmit leg interface board of message by the high standard interface board according to source MAC, and then is judged whether to handle message; Can also be simultaneously or package type field separately, determine whether that according to the value of the type field needs transmit described message to other interface boards by the high standard interface board.
Step 303, link receives the message that low specification interface board sends between high standard interface board slave plate, and message is transmitted or dropping packets to the periphery.
Concrete, link between Super Interface connecting plate, low specification interface board after the high standard interface board sends message, can have a plurality of high standard interface boards to receive the message that low specification interface board sends with the multicast form.With one of them high standard interface board is example, receive message after, the high standard interface board at first judges whether to handle this message, have multiple judgment mode this moment, for example only judges that according to the multicast sign needs handle message; Perhaps know the transmit leg interface board of message, selectively transmit the message that the transmit leg interface board sends according to the forwarding strategy of this locality storage according to the source MAC that carries in the message.
After judgement need be handled message, the high standard interface board was searched the route corresponding with message.For example, it is the message of multicast that the high standard interface board receives all purpose MAC, searches according to 4 bytes behind the purpose MAC and transmits, if matched routings is arranged, and this route has outgoing interface at this plate, then continue to handle, otherwise dropping packets or transmit to other interface boards.
Need to prove that herein when having equal-cost route, the high standard interface board needs further to select the routing forwarding message according to the HASH value of carrying in the message.For example, when having equal-cost route, the high standard interface board can be supported following three kinds of forward modes at least: send out by circulation: carry out of equal value forwarding the (message in the same data flow is according to same routing forwarding) by data flow, under this pattern, the HSAH field is filled in source address, source port, the destination address of data flow, the value that one or more in the destination interface obtain by HASH; Forward data packets one by one: the HSAH field is filled in the packet counting that matches default route (be about in certain counting message according to same routing forwarding), value from 0 to 255, reach 255 after again since 0 counting.The source polymerization is transmitted: transmit condition (message of same source address is according to same routing forwarding) with the source address Partial Feature as equivalence, the HSAH field is filled in the value of a byte among the IP of source, is defaulted as the value of last byte here.For example, if the route of coupling is that (bar number of equal value is n to equal-cost route, is respectively the 0th, article 1 ... n-1 bar route), handle as follows: the HSAH field is got n surplus, the digital m that obtains, promptly transmit by m bar routing forwarding, then transmit at this plate as if this route outgoing interface, otherwise abandon.
It needs to be noted, in the application scenarios of the present invention in order to improve message forwarding performance, reduce the message of high standard interface board and handle burden, the low specification interface board of configuration can be as required to master control borad application outer net route, promptly have living space to store more multirouting the time at low specification interface board, can improve message forwarding performance by low specification interface board to master control borad application outer net route.
Specific as follows:
1, at low specification interface board configuration counter CT and timer T1, T2, each processing route maximum MP and twice smaller value and higher value to the time interval that the high standard interface board E-Packets are set simultaneously.
Wherein, the initial value of CT, T1, T2 is 0; Starting working or reinitialize when the high standard interface board E-Packets in system in twice application of T1 record minimum interval, is defaulted as 5 seconds; Twice application of T2 record largest interval is started working or is reinitialized when the high standard interface board E-Packets in system, is defaulted as 15 seconds; MP is defaulted as 100.Need to prove that above-mentioned numerical value is only as changing other concrete modes that obtain for the foundation inventive concept and belong to protection range of the present invention equally with giving an example for a kind of specific implementation that realizes the invention effect in the scene.
2, when the message that the low performance interface board receives matches default route, with the 301-303 forwarding set by step of this message, if CT less than MP, then writes down this message destination address, this destination address is added the record chained list simultaneously, record connects the not duplicate record that has had in the table, and CT adds one.
3, if the route of low performance interface board storage does not reach the threshold values of setting, then do following processing:
When address in the record chained list reach MP and T1 overtime after, the address information of record is sent application outer net route to master control borad; Perhaps, after T2 was overtime, if the record chained list is not empty, then the address information with record sent to master control borad, application outer net route.
Master control borad is done following processing to each address after handling and receiving the information that interface board sends: search routing table, if find the route of long coupling, then add matched linked list, identical route does not repeat to add; If the route that can not find route or find is that default route is not then handled.Master control borad arrives the low performance interface board with these route sending-downs.When the low performance interface board matches corresponding outer net route, can transmit like this, send to the high-performance interface board and handle, reduce the work that part high-performance interface board is handled by normal straddle.Concrete, after disposing Intranet route, outer net route and default route on the low performance interface board,, then preferentially carry out message and transmit according to the outer net route if the message that the low performance interface board receives not only matches the outer net route but also matches default route.
Need to prove, when the low performance interface board stores the outer net route and reaches preset threshold, store new inside and outside route if desired, then use the inside and outside route that increases newly to replace the outer net route.
Among the application scenarios step 301-303 of the present invention, low specification interface board is to send message with the multicast form to the high-performance interface board, and forwarding process as shown in Figure 5.Need to prove that low specification interface board also can the clean culture form send message to the high standard interface board, forwarding process as shown in Figure 6.At this moment, low specification interface board sends message with the clean culture form to the high standard interface board, and the high standard interface board that receives message is searched route, if this plate does not have corresponding outgoing interface, then closes on the high standard interface board to other and E-Packets.For example among Fig. 6, there are two high-performance interface boards in equipment, and the low performance interface board is not also known to be routed to the end and from which piece interface board forwarded, and with the clean culture form message is forwarded to B earlier, and searching the route discovery outgoing interface on B is A, and then is forwarded to A from B.
By adopting method provided by the invention, first kind interface board storing intranet route and default route at distributed apparatus, storage comprises the route of outer net route on the second class interface plate, when first kind interface board receives the message of Intranet side transmission, search the route of storing on the first kind interface board, if lookup result is message and acquiescence coupling, then described message is transmitted to the second class interface plate according to default route, message is transmitted to outer net according to the outer net route of storage by the second class interface buttress, still message is not normally transmitted thereby can be implemented in when having corresponding outer net route on the first kind interface board.
The invention provides a kind of distributed apparatus, be connected with outer net as the gateway of Intranet, described distributed apparatus comprises the first kind interface board and the second class interface plate; The quantity of the first kind interface board and the second class interface plate can be provided with according to actual needs, storing intranet route and default route on the described first kind interface board, and the route of storing on the described second class interface plate comprises the outer net route,
Described first kind interface board is used for storing intranet route and default route, when receiving the message of Intranet side transmission, searches the route of local storage; If lookup result is described message and described default route coupling, described message is transmitted to the described second class interface plate according to described default route; If lookup result is described message and described Intranet matched routings, according to the described message of described Intranet routing forwarding;
The described second class interface plate is used to store the route that comprises the outer net route, and transmits the message that described first kind interface board sends to the periphery.
Concrete, as shown in Figure 7, described first kind interface board comprises:
Encapsulation unit 11 is used to encapsulate described message; Specifically be used to described message encapsulation multicast identification field and Hash field, and/or be described message packaged source MAC Address, and/or be described message package type field; The value of described Hash field is specially: the value that one or more in the source address of described message, source port, destination address or the destination interface obtain by Hash operation; Perhaps match the packet counting of default route; The perhaps source address of described message or the specific part in the source address;
Retransmission unit 12 is used for according to described default route with the message of multicast form after link between plate is transmitted described encapsulation unit encapsulation; Perhaps send described message with the clean culture form to the described second class interface plate of correspondence according to described default route.
The described second class interface plate also is used for: the value according to described multicast identification field and Hash field determines whether to handle described message; And/or know the transmit leg interface board of described message, and then judge whether to handle described message according to described source MAC; And/or determine whether that according to the value of described type field needs transmit described message to other interface boards.
As shown in Figure 8, the described second class interface plate comprises:
Search unit 21, be used for searching the outgoing interface corresponding with described message in this locality;
Retransmission unit 22 is connected with the described unit 21 of searching, be used for when the described lookup result of searching unit 21 when having many equal-cost routes, select wherein described message of routing forwarding according to the cryptographic Hash of carrying in the described message.
The described second class interface plate also is used for: search the outgoing interface corresponding with described message in this locality; Belong to self if find described outgoing interface, transmit described message by described outgoing interface; Otherwise, abandon described message, perhaps the interface board under described outgoing interface is transmitted described message.
As shown in Figure 9, described first kind interface board also comprises:
Application unit 13 is used for the outer net route to the described message of master control borad application;
Retransmission unit 12 also is used for carrying out the message forwarding according to the Intranet route of storage with the outer net route that application obtains.
Described first kind interface board also comprises:
Record cell 14 is used to write down the destination address to the message of described second class interface plate forwarding;
Statistic unit 15 is connected with described record cell 14, is used to add up the quantity of destination address of the message of described record cell 14 records;
Timing unit 16 is used to add up the time interval to described master control borad application outer net route;
Described application unit 13 also is used for: when the quantity of described statistic unit 15 statistics reaches maximum and described during interval greater than default smaller value, send the destination address of the described message of record, the outer net route of applying for described message to described master control borad; Perhaps when the described time interval reaches default higher value, send the destination address of the described message of record, the outer net route of applying for described message to described master control borad.
By adopting equipment provided by the invention, first kind interface board storing intranet route and default route at distributed apparatus, storage comprises the route of outer net route on the second class interface plate, when first kind interface board receives the message of Intranet side transmission, search the route of storing on the first kind interface board, if lookup result is message and acquiescence coupling, then described message is transmitted to the second class interface plate according to default route, message is transmitted to outer net according to the outer net route of storage by the second class interface buttress, still message is not normally transmitted thereby can be implemented in when having corresponding outer net route on the first kind interface board.
Through the above description of the embodiments, those skilled in the art can be well understood to the present invention and can realize by the mode that software adds essential general hardware platform, can certainly pass through hardware, but the former is better execution mode under a lot of situation.Based on such understanding, the part that technical scheme of the present invention contributes to prior art in essence in other words can embody with the form of software product, this computer software product is stored in the storage medium, comprise that some instructions are with so that a computer equipment (can be a personal computer, server, the perhaps network equipment etc.) carry out the described method of each embodiment of the present invention.
It will be appreciated by those skilled in the art that accompanying drawing is the schematic diagram of a preferred embodiment, module in the accompanying drawing or flow process might not be that enforcement the present invention is necessary.
It will be appreciated by those skilled in the art that the module in the device among the embodiment can be distributed in the device of embodiment according to the embodiment description, also can carry out respective change and be arranged in the one or more devices that are different from present embodiment.The module of the foregoing description can be merged into a module, also can further split into a plurality of submodules.
The invention described above embodiment sequence number is not represented the quality of embodiment just to description.
More than disclosed only be several specific embodiment of the present invention, still, the present invention is not limited thereto, any those skilled in the art can think variation all should fall into protection scope of the present invention.

Claims (17)

1. the method that message is transmitted in the distributed apparatus, comprise the first kind interface board and the second class interface plate in the described distributed apparatus, described distributed apparatus is connected with outer net as the gateway of Intranet, it is characterized in that, storing intranet route and default route on the described first kind interface board, the route of storing on the described second class interface plate comprises the outer net route, and this method further comprises:
When described distributed apparatus receives the message of Intranet side transmission by first kind interface board, search the route of storing on the described first kind interface board;
If lookup result is described message and described default route coupling, according to described default route described message is transmitted to the described second class interface plate, described message is transmitted to outer net according to the outer net route of storage by the described second class interface buttress;
If lookup result is described message and described Intranet matched routings, according to the described message of described Intranet routing forwarding.
2. the method for claim 1 is characterized in that, according to described default route described message is transmitted to the described second class interface plate to comprise:
Encapsulate described message and transmit described message with multicast form link between plate according to default route; Perhaps
Send described message with the clean culture form to the described second class interface plate of correspondence according to described default route.
3. method as claimed in claim 2 is characterized in that, the described message of described encapsulation comprise following one or more:
Encapsulation multicast identification field and Hash field determine whether to handle described message by the described second class interface buttress according to the value of described multicast identification field and Hash field;
Be described message packaged source MAC Address, know the transmit leg interface board of described message by the described second class interface buttress according to described source MAC, and then judge whether to handle described message;
Be described message package type field, determine whether to transmit described message to other interface boards by the value of the described second class interface buttress according to described type field.
4. method as claimed in claim 3 is characterized in that, the value of described Hash field is specially:
The value that in the source address of described message, source port, destination address or the destination interface one or more obtain by Hash operation; Perhaps match the packet counting of default route; The perhaps source address of described message or the specific part in the source address; The message that has the value of identical Hash field by same routing forwarding by the described second class interface plate.
5. as claim 3 or 4 described methods, it is characterized in that the described second class interface buttress is transmitted described message according to the outer net route of storage and comprised to outer net:
The described second class interface plate is searched the outgoing interface corresponding with described message in this locality;
If there are many equal-cost routes, the described second class interface buttress is selected wherein described message of routing forwarding according to the cryptographic Hash of carrying in the described message.
6. the method for claim 1 is characterized in that, the described second class interface buttress is transmitted described message according to the outer net route of storage and comprised to outer net:
The described second class interface plate is searched the outgoing interface corresponding with described message in this locality;
Belong to self if find described outgoing interface, the described second class interface plate is transmitted described message by described outgoing interface;
Otherwise the described second class interface plate abandons described message, and perhaps the interface board under described outgoing interface is transmitted described message.
7. the method for claim 1 is characterized in that, according to described default route with described message after the described second class interface plate is transmitted, also comprise:
Described first kind interface board is to the outer net route of the described message of master control borad application;
Described first kind interface board carries out the message forwarding according to the Intranet route of storage with the outer net route that application obtains.
8. method as claimed in claim 7 is characterized in that, described first kind interface board comprises to the outer net route of the described message of master control borad application:
The destination address of the message that described first kind interface board record is transmitted to the described second class interface plate, the quantity of the destination address of the message by the counters count record, and by the time interval of timer statistics to described master control borad application outer net route;
When the counting of described counter reaches maximum and described during interval greater than default smaller value, send the destination address of the described message of record, the outer net route of applying for described message to described master control borad; Perhaps when the described time interval reaches default higher value, send the destination address of the described message of record, the outer net route of applying for described message to described master control borad.
9. as each described method among claim 1-4, the 6-8, it is characterized in that, when having the described second class interface plate of operate as normal in the described distributed apparatus, promptly dispose described default route on the described first kind interface board; Allocating default route when perhaps the route quantity on described first kind interface board surpasses threshold value.
10. distributed apparatus is connected with outer net as the gateway of Intranet, it is characterized in that described distributed apparatus comprises the first kind interface board and the second class interface plate; Storing intranet route and default route on the described first kind interface board, the route of storing on the described second class interface plate comprises the outer net route,
Described first kind interface board is used for storing intranet route and default route, when receiving the message of Intranet side transmission, searches the route of local storage; If lookup result is described message and described default route coupling, described message is transmitted to the described second class interface plate according to described default route; If lookup result is described message and described Intranet matched routings, according to the described message of described Intranet routing forwarding;
The described second class interface plate is used to store the route that comprises the outer net route, and transmits the message that described first kind interface board sends to the periphery.
11. distributed apparatus as claimed in claim 10 is characterized in that, described first kind interface board comprises:
Encapsulation unit is used to encapsulate described message;
Retransmission unit is used for according to described default route with the message of multicast form after link between plate is transmitted described encapsulation unit encapsulation; Perhaps send described message with the clean culture form to the described second class interface plate of correspondence according to described default route.
12. distributed apparatus as claimed in claim 11 is characterized in that,
Described encapsulation unit also is used for: be described message encapsulation multicast identification field and Hash field, and/or be described message packaged source MAC Address, and/or be described message package type field;
The described second class interface plate also is used for: the value according to described multicast identification field and Hash field determines whether to handle described message; And/or know the transmit leg interface board of described message, and then judge whether to handle described message according to described source MAC; And/or determine whether that according to the value of described type field needs transmit described message to other interface boards.
13. distributed apparatus as claimed in claim 12 is characterized in that, the value of described Hash field is specially:
The value that in the source address of described message, source port, destination address or the destination interface one or more obtain by Hash operation; Perhaps
Match the packet counting of default route; Perhaps
The source address of described message or the specific part in the source address.
14., it is characterized in that the described second class interface plate comprises as claim 12 or 13 described distributed apparatus:
Search the unit, be used for searching the outgoing interface corresponding with described message in this locality;
Retransmission unit is connected with the described unit of searching, be used for when the described lookup result of searching the unit when having many equal-cost routes, select wherein described message of routing forwarding according to the cryptographic Hash of carrying in the described message.
15. distributed apparatus as claimed in claim 10 is characterized in that, the described second class interface plate also is used for:
Search the outgoing interface corresponding with described message in this locality;
Belong to self if find described outgoing interface, transmit described message by described outgoing interface;
Otherwise, abandon described message, perhaps the interface board under described outgoing interface is transmitted described message.
16. distributed apparatus as claimed in claim 10 is characterized in that, described first kind interface board also comprises:
Application unit is used for the outer net route to the described message of master control borad application;
Retransmission unit is used for carrying out the message forwarding according to the Intranet route of storage with the outer net route that application obtains.
17. distributed apparatus as claimed in claim 10 is characterized in that, described first kind interface board also comprises:
Record cell is used to write down the destination address to the message of described second class interface plate forwarding;
Statistic unit is connected with described record cell, is used to add up the quantity of destination address of the message of described recording unit records;
Timing unit is used to add up the time interval to described master control borad application outer net route;
Described application unit also is used for: when the quantity of described statistic unit statistics reaches maximum and described during interval greater than default smaller value, send the destination address of the described message of record, the outer net route of applying for described message to described master control borad; Perhaps when the described time interval reaches default higher value, send the destination address of the described message of record, the outer net route of applying for described message to described master control borad.
CN201010180370XA 2010-05-24 2010-05-24 Distributed equipment and method for forwarding message in distributed equipment Expired - Fee Related CN101827038B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201010180370XA CN101827038B (en) 2010-05-24 2010-05-24 Distributed equipment and method for forwarding message in distributed equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201010180370XA CN101827038B (en) 2010-05-24 2010-05-24 Distributed equipment and method for forwarding message in distributed equipment

Publications (2)

Publication Number Publication Date
CN101827038A true CN101827038A (en) 2010-09-08
CN101827038B CN101827038B (en) 2013-12-11

Family

ID=42690755

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201010180370XA Expired - Fee Related CN101827038B (en) 2010-05-24 2010-05-24 Distributed equipment and method for forwarding message in distributed equipment

Country Status (1)

Country Link
CN (1) CN101827038B (en)

Cited By (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102143072A (en) * 2011-03-21 2011-08-03 华为数字技术有限公司 Method for fluid control configuration and network equipment
CN102571610A (en) * 2012-03-02 2012-07-11 杭州华三通信技术有限公司 Packet forwarding method and edge equipment
CN102739526A (en) * 2012-06-13 2012-10-17 烽火通信科技股份有限公司 Realization method of efficient distributed routing list realizing method
CN104601428A (en) * 2014-12-23 2015-05-06 广州亦云信息技术有限公司 Communication method of virtual machines
CN104954249A (en) * 2014-03-27 2015-09-30 华为技术有限公司 Packet forwarding method, system and device
CN106254256A (en) * 2015-06-04 2016-12-21 杭州华三通信技术有限公司 Data message forwarding methods based on three layers of VXLAN gateway and equipment
CN106341331A (en) * 2016-09-20 2017-01-18 清华大学 Routing multicast method and system based on 2D mesh network
CN106603523A (en) * 2016-12-09 2017-04-26 北京东土军悦科技有限公司 Message forwarding method and network switching device
WO2018054201A1 (en) * 2016-09-20 2018-03-29 清华大学 Routing multicast method and system based on 2d mesh network
CN108574635A (en) * 2017-03-09 2018-09-25 华为技术有限公司 A kind of routing priority configuration method, equipment and controller
CN109327393A (en) * 2018-11-17 2019-02-12 中国人民解放军战略支援部队信息工程大学 Network exchange destination port determines method, apparatus and the interchanger based on the device
CN112217819A (en) * 2020-10-12 2021-01-12 珠海市鸿瑞信息技术股份有限公司 Industrial control message semantic analysis auditing method based on double-factor authentication system
WO2022135274A1 (en) * 2020-12-22 2022-06-30 苏州盛科通信股份有限公司 Chip implementation method for routing extension, and chip processing method and apparatus for data packet

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1725761A (en) * 2005-06-10 2006-01-25 杭州华为三康技术有限公司 Method of implementing link aggregation of network equipment
CN1878130A (en) * 2005-06-08 2006-12-13 华为技术有限公司 Data forwarding method
CN101610215A (en) * 2009-07-21 2009-12-23 杭州华三通信技术有限公司 A kind of routing conversion and a kind of gateway device
CN101699789A (en) * 2009-09-25 2010-04-28 江苏华丽网络工程有限公司 Design method of Ethernet device stack system

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1878130A (en) * 2005-06-08 2006-12-13 华为技术有限公司 Data forwarding method
CN1725761A (en) * 2005-06-10 2006-01-25 杭州华为三康技术有限公司 Method of implementing link aggregation of network equipment
CN101610215A (en) * 2009-07-21 2009-12-23 杭州华三通信技术有限公司 A kind of routing conversion and a kind of gateway device
CN101699789A (en) * 2009-09-25 2010-04-28 江苏华丽网络工程有限公司 Design method of Ethernet device stack system

Cited By (24)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102143072A (en) * 2011-03-21 2011-08-03 华为数字技术有限公司 Method for fluid control configuration and network equipment
CN102143072B (en) * 2011-03-21 2013-12-04 北京华为数字技术有限公司 Method for fluid control configuration and network equipment
CN102571610A (en) * 2012-03-02 2012-07-11 杭州华三通信技术有限公司 Packet forwarding method and edge equipment
CN102739526A (en) * 2012-06-13 2012-10-17 烽火通信科技股份有限公司 Realization method of efficient distributed routing list realizing method
CN102739526B (en) * 2012-06-13 2015-02-25 烽火通信科技股份有限公司 Realization method of efficient distributed routing list realizing method
CN104954249B (en) * 2014-03-27 2018-09-21 华为技术有限公司 A kind of message forwarding method, system and device
WO2015143981A1 (en) * 2014-03-27 2015-10-01 华为技术有限公司 Packet forwarding method, system, and apparatus
CN104954249A (en) * 2014-03-27 2015-09-30 华为技术有限公司 Packet forwarding method, system and device
US10447599B2 (en) 2014-03-27 2019-10-15 Huawei Technologies Co., Ltd. Packet forwarding method, system, and apparatus
CN104601428A (en) * 2014-12-23 2015-05-06 广州亦云信息技术有限公司 Communication method of virtual machines
CN106254256A (en) * 2015-06-04 2016-12-21 杭州华三通信技术有限公司 Data message forwarding methods based on three layers of VXLAN gateway and equipment
CN106254256B (en) * 2015-06-04 2019-08-16 新华三技术有限公司 Data message forwarding method and equipment based on three layers of VXLAN gateway
US10333845B2 (en) 2015-06-04 2019-06-25 New H3C Technologies Co., Ltd Forwarding data packets
CN106341331B (en) * 2016-09-20 2019-07-09 清华大学 Routing multicast method and system based on 2D mesh network
CN106341331A (en) * 2016-09-20 2017-01-18 清华大学 Routing multicast method and system based on 2D mesh network
WO2018054201A1 (en) * 2016-09-20 2018-03-29 清华大学 Routing multicast method and system based on 2d mesh network
CN106603523A (en) * 2016-12-09 2017-04-26 北京东土军悦科技有限公司 Message forwarding method and network switching device
CN108574635A (en) * 2017-03-09 2018-09-25 华为技术有限公司 A kind of routing priority configuration method, equipment and controller
US11018990B2 (en) 2017-03-09 2021-05-25 Huawei Technologies Co., Ltd. Route priority configuration method, device, and controller
CN109327393A (en) * 2018-11-17 2019-02-12 中国人民解放军战略支援部队信息工程大学 Network exchange destination port determines method, apparatus and the interchanger based on the device
CN109327393B (en) * 2018-11-17 2021-01-22 中国人民解放军战略支援部队信息工程大学 Network switching destination port determining method and device and switch based on device
CN112217819A (en) * 2020-10-12 2021-01-12 珠海市鸿瑞信息技术股份有限公司 Industrial control message semantic analysis auditing method based on double-factor authentication system
CN112217819B (en) * 2020-10-12 2021-04-27 珠海市鸿瑞信息技术股份有限公司 Industrial control message semantic analysis auditing method based on double-factor authentication system
WO2022135274A1 (en) * 2020-12-22 2022-06-30 苏州盛科通信股份有限公司 Chip implementation method for routing extension, and chip processing method and apparatus for data packet

Also Published As

Publication number Publication date
CN101827038B (en) 2013-12-11

Similar Documents

Publication Publication Date Title
CN101827038B (en) Distributed equipment and method for forwarding message in distributed equipment
CN103166874B (en) A kind of message forwarding method and equipment
US8718061B2 (en) Data center network system and packet forwarding method thereof
KR101913490B1 (en) Flow table management method and relevant device and system
CN100479465C (en) Method of implementing link aggregation of network equipment
CN101150527B (en) A PCIE data transmission method, system and device
CN104283806B (en) Business chain processing method and equipment
CN102769869B (en) Message rapid forwarding system of control and provisioning of wireless access point
CN101789949B (en) Method and router equipment for realizing load sharing
CN100591048C (en) Method for equilibrating network-flow load and the third-level exchanger
CN102938794A (en) Address resolution protocol (ARP) message forwarding method, exchanger and controller
CN108134744B (en) Load sharing method in IRF stacking and single board
CN102158421A (en) Method and unit for creating layer three interface
CN102857414A (en) Forwarding table writing method and device and message forwarding method and device
CN105827495A (en) Message forwarding method and device for VXLAN gateway
CN101616094B (en) Method and equipment for acquiring message forwarding path
CN101848171A (en) Data transmission method based on GRE tunnel, device and system
CN102946356A (en) CB-PE (controlling bridge-port extender) network-based multicast message transmitting method and device
CN112887229B (en) Session information synchronization method and device
KR20220047854A (en) Packet forwarding method, apparatus and system in SRS network
CN105531967A (en) Message transmission method and device and communication system
CN101827039A (en) Method and equipment for load sharing
CN105471747A (en) Intelligent router routing method and apparatus thereof
CN101710864B (en) Collocation method and device for multi-gateway Linux server
CN107070790A (en) A kind of route learning method and routing device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
CP03 Change of name, title or address
CP03 Change of name, title or address

Address after: 310052 Binjiang District Changhe Road, Zhejiang, China, No. 466, No.

Patentee after: Xinhua three Technology Co., Ltd.

Address before: 310053 Hangzhou hi tech Industrial Development Zone, Zhejiang province science and Technology Industrial Park, No. 310 and No. six road, HUAWEI, Hangzhou production base

Patentee before: Huasan Communication Technology Co., Ltd.

CF01 Termination of patent right due to non-payment of annual fee
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20131211

Termination date: 20200524