CN102307136A - Method for processing message and device thereof - Google Patents

Method for processing message and device thereof Download PDF

Info

Publication number
CN102307136A
CN102307136A CN201110187869A CN201110187869A CN102307136A CN 102307136 A CN102307136 A CN 102307136A CN 201110187869 A CN201110187869 A CN 201110187869A CN 201110187869 A CN201110187869 A CN 201110187869A CN 102307136 A CN102307136 A CN 102307136A
Authority
CN
China
Prior art keywords
message
hash value
vlan
address
balanced
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
CN201110187869A
Other languages
Chinese (zh)
Other versions
CN102307136B (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 Information 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 CN201110187869.8A priority Critical patent/CN102307136B/en
Publication of CN102307136A publication Critical patent/CN102307136A/en
Application granted granted Critical
Publication of CN102307136B publication Critical patent/CN102307136B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The invention discloses a method for processing message and a device thereof, which are used in the route exchange equipment which supports the load balance group,. The route exchange equipment is connected with bi-layer exchange equipment, the route exchange equipment which support balance group is configured with mapping relationship between message HASH valve and VLAN ID, the bi-layer exchange equipment is configured with VLAN transmitting table item. The method comprises the steps as follows: after receiving the message, the route exchange equipment which supports load balance group calculates HASH value of the message, and according to the mapping relationship between the message HASH value and the VLAN ID configured thereon, acquires the VLAN ID corresponding to the HASH value of the message; the route exchange equipment adds the acquired VLAN ID to the message, and transmits the message to the bi-layer exchange equipment so that the bi-layer exchange equipment transmits the message according to the VLAN transmitting table item configured thereon and the VLAN ID in the message. By using the method, the problem that the HASH value of message information calculated by the balance group cannot be effectively utilized by the subsequent equipment can be solved.

Description

Message processing method and device thereof
Technical field
The present invention relates to communication technical field, relate in particular to a kind of message processing method and device thereof.
Background technology
The function of the balanced group of the general equal holding load of the switch of current main-stream, balanced component are basis equalization group and senior balanced group.The basis equalization group is to be member's equilibrium group with the port, and senior balanced group is to be member's equilibrium group with the basis equalization group, and cannot the ports having member in the senior balanced group.The balanced category of basic load is similar to the port trunking of switch, and difference is: a port can join a plurality of balanced groups simultaneously, and a port can only join an aggregation group.Senior balanced group comprises a plurality of basis equalization groups, and message can be transmitted a data after coming in from senior balanced group in each basis equalization group.
The load balancing group (is generally route exchange device as safe shunting device; Like switch or router) characteristic; As shown in Figure 1; Common occupation mode is: safe shunting device is linked in user's the backbone network through optical splitter; When the safety shunting device receives from flow that the beam split of prime equipment or mirror image are come; To carry out the coupling of flow and carry out handled according to the configuration of ACL (Access Control List, Access Control List (ACL)) according to matching value.Wherein, the message of any ACL that do not match is directly abandoned, then be redirected or be mirrored to port (for the basis equalization group) or be redirected or be mirrored to balanced group (for senior balanced group) for the message of coupling ACL.After message is directed or is mirrored to the basis equalization group, between each port of equilibrium group, export with the load balancing mode.So just accomplish the process of a flow introducing, shunting, load balancing, supplied a back level device for flow amount to carry out processing such as check and analysis and supervision.
Wherein, Message is in the equilibrium group; Header according to message; Like source MAC (Medium Access Control; Media access control layer) address, target MAC (Media Access Control) address, source IP address, purpose IP address, TCP (Transmission Control Protocol; Transmission control protocol)/UDP (User Datagram Protocol; User datagram protocol) port numbers etc.; Carry out HASH and calculate (HASH is a kind of hashing algorithm), select port according to the HASH calculated value then message is forwarded.
The inventor finds that there is following defective at least in prior art in realizing process of the present invention:
In the equilibrium group, heading information is carried out after HASH calculates, actually flow has been carried out certain classification, but these classification values are not effectively taken in the downlink traffic, are not promptly effectively utilized by follow-up equipment.
Summary of the invention
The invention provides a kind of message processing method and device thereof, message information is carried out the problem that value that HASH calculates can't effectively be utilized by follow-up equipment in order to solve balanced group.
Message processing method provided by the invention is applied to the balanced route exchange device of organizing of holding load, and this method comprises:
After the route switching of the balanced group of holding load receives message, calculate the HASH value of this message, and, obtain the VLAN ID corresponding with the HASH value of this message according to the mapping relations of message HASH value that presets and VLAN ID;
Said route exchange device adds the VLAN ID that gets access in the said message to, and said message is transmitted to two-layer switching equipment, so that this two-layer switching equipment is according to VLAN forwarding-table item and this message of the forwarding of the VLAN ID in this message of configuration on it.
The route exchange device of the balanced group of holding load provided by the invention comprises:
Configuration module is used to dispose and the mapping relations information of stored messages HASH value and VLAN ID;
Balanced pack module is used for after receiving message, calculates the HASH value of this message, and according to the message HASH value of configuration on it and the mapping relations of VLAN ID, obtains the VLAN ID corresponding with the HASH value of this message;
Message processing module (MPM); The VLAN ID that is used for getting access to adds said message to; And through designated port said message is transmitted to the two-layer switching equipment that is connected with this equipment, so that this two-layer switching equipment is transmitted this message according to the VLAN forwarding-table item of configuration on it with VLAN ID in this message.
The useful technique effect of technique scheme of the present invention comprises:
In supporting the route exchange device VLAN ID that HASH value is corresponding of balanced group to be carried on to E-Packet, so that the downstream route exchange device is transmitted to corresponding server with data from the outbound port of corresponding VLAN according to VLAN ID, thus the realization data distribution.Compared with prior art, for the route exchange device of supporting balanced group, reduced of the requirement of this equipment to port number.
Another kind of message processing method provided by the invention is applied to the balanced route exchange device of organizing of holding load, disposes the mapping relations of HASH value and Database Identification on the routing device of the balanced group of said support, and this method comprises:
After the route switching of the balanced group of holding load receives message, calculate the HASH value of this message, and, obtain the Database Identification corresponding with the HASH value of this message according to the message HASH value of configuration on it and the mapping relations of Database Identification;
Said route exchange device adds the Database Identification that gets access in the said message to; And transmit said message according to the HASH value of said message through corresponding port in the equilibrium group, so that upstream device utilizes corresponding this message of database processing according to the Database Identification in this message.
The route exchange device of the balanced group of holding load provided by the invention comprises:
Configuration module is used to dispose the mapping relations information with stored messages HASH value and Database Identification;
Balanced pack module is used for after receiving message, calculates the HASH value of this message, and according to the message HASH value of configuration on it and the mapping relations of Database Identification, obtains the Database Identification corresponding with the HASH value of this message;
Message processing module (MPM); The Database Identification that is used for getting access to adds said message to; And transmit said message according to HASH value corresponding port from the equilibrium group of said message, so that upstream device utilizes corresponding this message of database processing according to the Database Identification in this message.
The useful technique effect of technique scheme of the present invention comprises:
During the Database Identification that the route exchange device of supporting equilibrium to organize is corresponding with the HASH calculated value is carried on and E-Packets,, handles the server in downstream so that indexing corresponding database according to this Database Identification.Compared with prior art, for server, saved the message processing expenditure of this equipment.
Description of drawings
Fig. 1 is that balanced group is used sketch map in the prior art;
Fig. 2 is one of balanced group application limitations sketch map in the prior art;
Fig. 3 is balanced two of the application limitations sketch map of organizing in the prior art;
Fig. 4 is the schematic flow sheet of the embodiment of the invention one;
Fig. 5 is the network architecture sketch map of the embodiment of the invention one;
Fig. 6 is the schematic flow sheet of the embodiment of the invention two;
Fig. 7 is the network architecture sketch map of the embodiment of the invention two;
The structural representation of the route exchange device that Fig. 8 provides for the embodiment of the invention;
The structural representation of another route exchange device that Fig. 9 provides for the embodiment of the invention.
Embodiment
Because in the existing load balancing group technology, support the route exchange device of balanced group to be applied to follow-up equipment, thereby can cause that efficient is short of to some extent under certain application scenarios being used for the HASH value that load balancing calculates.
As shown in Figure 2, on the one hand, when equilibrium group outbound port more for a long time, can go up at the route exchange device of supporting balanced group (the safe shunting device R1 of the balanced group of the support among the figure) and consume a large amount of access interface, the port density that equipment R1 is supported is had relatively high expectations.On the other hand, as shown in Figure 3, after flow was divided to each system, each system was bearing the analysis and the processing of several types of data.For example; In existing realization; Server will be according to information such as the source MAC of data message, target MAC (Media Access Control) address, source IP address, purpose IP address, source port number, destination slogans; Inquire about different databases respectively; Like this; Server is posed a big pressure, especially true for IPV6, be equivalent to repeat the HASH computing of being accomplished of equipment R1.
To the problems referred to above, the embodiment of the invention has proposed the message-handling processor system based on the equilibrium group, in order to solve balanced group message information is carried out the problem that value that HASH calculates can't effectively be utilized by follow-up equipment.Below in conjunction with accompanying drawing the embodiment of the invention is described in detail.
Referring to Fig. 4 and Fig. 5, the message handling process sketch map that provides for the embodiment of the invention one based on the equilibrium group.Through present embodiment, the port that can reduce the route exchange device of supporting balanced group takies.
The network architecture of present embodiment can be as shown in Figure 5; Wherein, Support the route exchange device of balanced group (to be expressed as the safe shunting device R1 that supports balanced group among the figure; Be designated hereinafter simply as equipment R1) be connected with two-layer switching equipment and (be expressed as Layer 2 switch S1 among the figure; Hereinafter to be referred as equipment S1), be connected with each server under the equipment S1.Dispose message HASH calculated value and VLAN (Virtual Local Area Network on the equipment R1; VLAN) mapping relations table; This table is embodied in the mapping relations of HASH key and VLAN-TAG (being VLAN ID), disposes the VLAN forwarding-table item on the equipment S1.
Based on this mapping relations table, the flow process of present embodiment mainly comprises step 401~403:
Step 401, the inbound port of equipment R1 receive message that upstream equipment sends and after the ACL coupling is passed through, and the customizing messages of this message is carried out HASH calculate.
In the practical implementation, equipment R1 can like source MAC, target MAC (Media Access Control) address, source IP address, purpose IP address or TCP/UDP port numbers etc., carry out HASH and calculate according to the customizing messages of heading, obtains the HASH value HASH key of message.
Step 402; Equipment R1 is according to the HASH calculated value of configuration on it and the mapping relations table of VLAN-TAG; Search the VLAN-TAG corresponding, this VLAN-TAG is made an addition to this message, and transmit this message to equipment S1 through the outbound port of setting with the HASH key of this message.
In the practical implementation, can different HASH key is corresponding with one or more appointment outbound ports, be about to different flow HASH to this designated port.The outbound port of this setting can be a port in this equilibrium group, also can be the port that a plurality of balanced groups are shared.
Step 403 after the inbound port of equipment S1 receives this message, is confirmed corresponding VLAN according to the VLAN-TAG in this message, determines corresponding output port according to corresponding VLAN forwarding-table item, and this message is transmitted to corresponding server from this outbound port.
In order to further specify above-mentioned flow process, dividing stream packet with the source IP address according to message below is that example specifically describes.Do not using under the situation of present embodiment; Source IP address is that the HASH key of IP1 is key1; The key1 corresponding output port is the PORT1 that is connected in server 1; By that analogy; Like this; The message that comes from IP1 is divided to server 1, and the message that comes from IP2 is diverted to server 2, and the message that comes from IP3 is diverted to server 3.In order to realize identical shunting effect, in the present embodiment, on equipment R1, dispose message HASH calculated value as shown in table 1 and the mapping relations table of VLAN, configuration VLAN forwarding-table item as shown in table 2 on equipment S1:
The mapping relations of table 1, HASH calculated value and VLAN-TAG
HASH?key Key1 Key2 Key3
VLAN-TAG TAG1 TAG2 TAG3
Outbound port PORT?5 PORT?5 PORT?5
The corresponding relation of table 2, VLAN and outbound port
VLAN-TAG VLAN1 VLAN?2 VLAN?3
PORT PORT?1 PORT?2 PORT?3
Wherein, Key1 is the HASH calculated value of IP1, and the outbound port of VLAN1 on equipment S1 that TAG1 is corresponding is PORT1, and PORT1 is the port between equipment S1 and the server 1, and the corresponding relation of other IP address and VLAN outbound port by that analogy.
Like this; Equipment R1 is after receiving that source IP address is the message of IP1; Calculate Key1 according to IP1; Find corresponding TAG1 according to table 1; Add TAG1 to this message; As the outer TAG of this message, so that equipment S1 can be according to the corresponding VLAN of this TAG coupling, equipment R1 is transmitted to equipment S1 with this message from the port PO RT5 of this equipment then.Equipment S1 is after receiving this message, and according to the TAG in this message, through inquiring about the outbound port PORT1 that VLAN forwarding-table item on it obtains corresponding VLAN, bullet falls this TAG in the message then, and message is transmitted to server 1 from PORT1 handles.In like manner, be the message of IP2 for source IP address, then can be transmitted to server 2 and handle through PORT2, be the message of IP3 for source IP address, then can be transmitted to server 3 and handle through PORT3.
Be that example is described with the source IP address of message as Divergence Accordance only below, for source IP address and the tcp port number with message, or target ip address, or source MAC, or destination-mac address etc. is the situation of Divergence Accordance, and its relevant configuration and handling process are similar.
Description according to above present embodiment can be found out; Support the route exchange device VLAN ID (being above-mentioned VLAN-TAG) that the HASH value is corresponding of balanced group to be written in the field that E-Packets; And data HASH is transmitted to two layers of route exchange device in downstream to same port; So that these two layers of route exchange devices are transmitted to corresponding server with data from the outbound port of corresponding VLAN according to VLAN ID, thereby realize data distribution.Compared with prior art, for the route exchange device of supporting balanced group, reduced of the requirement of this equipment to port number.
Referring to Fig. 6 and Fig. 7, the message handling process sketch map that provides for the embodiment of the invention two based on the equilibrium group.Through present embodiment, can reduce the message processing expenditure of upstream device.
The network architecture of present embodiment can wherein, support the route exchange device (be expressed as the safe shunting device R1 that supports balanced group among the figure, be designated hereinafter simply as equipment R1) of balanced group to be connected with each server as shown in Figure 7.Database adopts distributed deployment, as, the database of storing same categorical data can be distributed on each server, and the database of storing same type of data is assigned identical type identification.Dispose the mapping relations table of message HASH calculated value and MAC Address on the equipment R1, dispose the mapping relations table of MAC Address and Service Database on the server 3.
Based on above-mentioned mapping relations table, the flow process of present embodiment mainly comprises step 601~603:
Step 601, the inbound port of equipment R1 receive message that upstream equipment sends and after the ACL coupling is passed through, and the customizing messages of this message is carried out HASH calculate.
During practical implementation, equipment R1 can like source MAC, target MAC (Media Access Control) address, source IP address, purpose IP address or TCP/UDP port numbers etc., carry out HASH and calculate according to the customizing messages of heading, obtains the HASH value HASH key of message.
Step 602; Equipment R1 is according to the HASH calculated value of configuration on it and the mapping relations table of MAC Address; Search the MAC Address corresponding with the HASH value of this message; This MAC Address is made an addition to this message as target MAC (Media Access Control) address, and this message corresponding output port in the equilibrium group is forwarded according to the HASH value.
Step 603 after the inbound port of server receives this message, according to the target MAC (Media Access Control) address in this message, utilizes the corresponding service database that this message is handled.
Usually, but various flows HASH is different HASH key, like this, different HASH key is mapped as different MAC Address, and different MAC Address just can realize that corresponding to the different service database various flows is mapped to the different service database to be handled.Present embodiment is through setting up the mapping relations of HASH value and MAC Address on the route exchange device of supporting balanced group; And be carried on message according to the MAC Address that these mapping relations will be corresponding with the HASH value of message as target MAC (Media Access Control) address and be transmitted to server, server just can be handled to the corresponding service database according to the target MAC (Media Access Control) address fast mapping in the message.And the message that forwards through existing balanced group of technology is not owing to carry the target MAC (Media Access Control) address in the present embodiment; Therefore need server analytic message header again; Like information such as source MAC, target MAC (Media Access Control) address, source IP address, purpose IP address, source port, destination interface and calculate, thereby match corresponding database.
In order to further specify above-mentioned flow process, be the implementation procedure that example is described this flow process to dispose 3 Service Databases on the server 3 below.Do not using under the situation of present embodiment; Corresponding IP1, IP2 and IP3 dispose 3 Service Databases on the server 3; Certain port of server 3 can receive the message that source IP address is IP1, IP2 and IP3 (promptly carrying out after the HASH computing according to source IP address to message and be diverted to the port that is connected with server 3 transmitting); Server 3 receives analytic message head behind the message, according to the source IP address that parses message is mapped to corresponding database and handles.In order to realize identical shunting effect; In the present embodiment; Set up the corresponding relation of MAC Address and Service Database, be equivalent to, on equipment R1, dispose the message HASH calculated value as shown in table 3 and the mapping relations table of MAC Address with MAC Address identification service database:
The mapping relations table of table 3, HASH calculated value and target MAC (Media Access Control) address
HASH?key Key1 Key2 Key3
MAC MAC1 MAC?2 MAC?3
Outbound port PORT3 PORT3 PORT3
Wherein, Key1 is the HASH calculated value of IP1, and MAC1 is corresponding with database 1, and the corresponding relation of other HASHKey and MAC Address by that analogy.
Like this; Equipment R1 is after receiving that source IP address is the message of IP1; Calculate Key1 according to IP1; Find corresponding MAC1 according to table 3; Add this MAC Address to this message as target MAC (Media Access Control) address; So that server can be according to this purpose MAC coupling corresponding service database 1, equipment R1 is transmitted to server 3 (HASH key1, key2 and key3 equal corresponding outbound port PORT3) with message from the port PO RT3 of Connection Service device 3 according to the mapping relations of HASH value and outbound port.Server 3 indexes corresponding service database 1 according to the target MAC (Media Access Control) address MAC1 in this message and handles after receiving this message.In like manner, the message that for source IP address is IP2 is after being diverted to server 3, and server 3 indexes database 2 and handles, and the message that for source IP address is IP3 is after being diverted to server 3, and server 3 indexes database 3 and handles.
Be that example is described with the source IP address of message as Divergence Accordance only below, for source IP address and the tcp port number with message, or target ip address, or source MAC, or destination-mac address etc. is the situation of Divergence Accordance, and its relevant configuration and handling process are similar.
In addition; It is that example is described that present embodiment is mapped as target MAC (Media Access Control) address with message HASH value; In fact; Also can be directly with the HASH value of message; Perhaps the HASH value is mapped as other information and it is carried on as identification information that can identification database and send to upstream device (upstream device should be able to be resolved the Database Identification information of carrying in this message and can be carried out handled) in the message, also can realize the technique effect of present embodiment.
Description according to above present embodiment can be found out; Support the route exchange device MAC Address that the HASH calculated value is corresponding of balanced group to be written in the field that E-Packets, handle so that the server in downstream indexes corresponding database according to this MAC Address.Compared with prior art, for server, saved the message processing expenditure of this equipment.
Need to prove that the foregoing description one can be used in combination with embodiment two.
Based on identical technical conceive, the embodiment of the invention also provides a kind of route exchange device.
Referring to Fig. 8, the structural representation of the route exchange device that provides for the embodiment of the invention, the balanced group of this equipment holding load can be applicable to flow process shown in Figure 4.This equipment can comprise:
Configuration module 801, the mapping relations information that is used to dispose and store HASH value and VLAN ID;
Balanced pack module 802 is used for after receiving message, calculates the HASH value of this message, and according to the message HASH value of configuration on it and the mapping relations of VLAN ID, obtains the VLAN ID corresponding with the HASH value of this message;
Message processing module (MPM) 803; The VLAN ID that is used for getting access to adds said message to; And through designated port said message is transmitted to the two-layer switching equipment that is connected with this equipment, so that this two-layer switching equipment is transmitted this message according to the VLAN forwarding-table item of configuration on it with VLAN ID in this message.Wherein, said preassigned port can be the port in the load balancing group or be a plurality of balanced ports of being shared of organizing.
Referring to Fig. 9, the structural representation of the route exchange device that provides for the embodiment of the invention, the balanced group of this equipment holding load can be applicable to flow process shown in Figure 6.This equipment can comprise
Configuration module 901, the mapping relations information that is used to dispose and store HASH value and Database Identification;
Balanced pack module 902 is used for after receiving message, calculates the HASH value of this message, and according to the message HASH value of configuration on it and the mapping relations of Database Identification, obtains the Database Identification corresponding with the HASH value of this message;
Message processing module (MPM) 903; The Database Identification that is used for getting access to adds said message to; And transmit said message according to HASH value corresponding port from the equilibrium group of said message, so that upstream device utilizes corresponding this message of database processing according to the Database Identification in this message.
Wherein, Database Identification can be a MAC Address, is used for identification database, and message processing module (MPM) 903 can be carried on Database Identification the target MAC (Media Access Control) address field of message.
Through the description of above execution mode, 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 be come out with the embodied of software product; This computer software product is stored in the storage medium; Comprise that some instructions are with so that a station terminal equipment (can be mobile phone; Personal computer; Server, the perhaps network equipment etc.) carry out the described method of each embodiment of the present invention.
The above only is a preferred implementation of the present invention; Should be pointed out that for those skilled in the art, under the prerequisite that does not break away from the principle of the invention; Can also make some improvement and retouching, these improvement and retouching also should be looked protection scope of the present invention.

Claims (10)

1. a message processing method is applied to the balanced route exchange device of organizing of holding load, it is characterized in that this method comprises:
After the route switching of the balanced group of holding load receives message, calculate the HASH value of this message, and, obtain the VLAN ID corresponding with the HASH value of this message according to the mapping relations of HASH value that presets and VLAN ID;
Said route exchange device adds the VLAN ID that gets access in the said message to, and said message is transmitted to two-layer switching equipment, so that this two-layer switching equipment is according to VLAN forwarding-table item and this message of the forwarding of the VLAN ID in this message of configuration on it.
2. the method for claim 1 is characterized in that, said route exchange device calculates the HASH value of this message according to source MAC, target MAC (Media Access Control) address, source IP address, purpose IP address or the TCP/UDP port numbers of message.
3. the method for claim 1 is characterized in that, said message is transmitted to two-layer switching equipment, is specially:
Through the pairing designated port of HASH value, said message is transmitted to two-layer switching equipment, said designated port is the port in the load balancing group or is a plurality of balanced ports of being shared of organizing.
4. the route exchange device of the balanced group of holding load is characterized in that, comprising:
Configuration module, the mapping relations information that is used to dispose and store HASH value and VLAN ID;
Balanced pack module is used for after receiving message, calculates the HASH value of this message, and according to the message HASH value of configuration on it and the mapping relations of VLAN ID, obtains the VLAN ID corresponding with the HASH value of this message;
Message processing module (MPM); The VLAN ID that is used for getting access to adds said message to; And said message is transmitted to the two-layer switching equipment that is connected with this equipment, so that this two-layer switching equipment is transmitted this message according to the VLAN forwarding-table item of configuration on it with VLAN ID in this message.
5. route exchange device as claimed in claim 4; It is characterized in that; Said message processing module (MPM) specifically is used for; Through the pairing designated port of HASH value; Said message is transmitted to two-layer switching equipment, and the port of said appointment is the port in the load balancing group or is a plurality of balanced ports of being shared of organizing.
6. a message processing method is applied to the balanced route exchange device of organizing of holding load, it is characterized in that, and the said mapping relations of supporting to dispose on the balanced routing device of organizing HASH value and Database Identification, this method comprises:
After the route switching of the balanced group of holding load receives message, calculate the HASH value of this message, and, obtain the Database Identification corresponding with the HASH value of this message according to the message HASH value of configuration on it and the mapping relations of Database Identification;
Said route exchange device adds the Database Identification that gets access in the said message to; And transmit said message according to the HASH value of said message through corresponding port in the equilibrium group, so that upstream device utilizes corresponding this message of database processing according to the Database Identification in this message.
7. method as claimed in claim 6 is characterized in that, said Database Identification is the MAC Address that is used for identification database, and said route exchange device is carried on Database Identification the target MAC (Media Access Control) address field of message.
8. method as claimed in claim 5 is characterized in that, said route exchange device calculates the HASH value of this message according to source MAC, target MAC (Media Access Control) address, source IP address, purpose IP address or the TCP/UDP port numbers of message.
9. the route exchange device of the balanced group of holding load is characterized in that, comprising:
Configuration module, the mapping relations information that is used to dispose and store HASH value and Database Identification;
Balanced pack module is used for after receiving message, calculates the HASH value of this message, and according to the message HASH value of configuration on it and the mapping relations of Database Identification, obtains the Database Identification corresponding with the HASH value of this message;
Message processing module (MPM); The Database Identification that is used for getting access to adds said message to; And transmit said message according to HASH value corresponding port from the equilibrium group of said message, so that upstream device utilizes corresponding this message of database processing according to the Database Identification in this message.
10. route exchange device as claimed in claim 9 is characterized in that, said Database Identification is the MAC Address that is used for identification database; Said message processing module (MPM) specifically is used for, and Database Identification is carried on the target MAC (Media Access Control) address field of message.
CN201110187869.8A 2011-07-06 2011-07-06 Method for processing message and device thereof Active CN102307136B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201110187869.8A CN102307136B (en) 2011-07-06 2011-07-06 Method for processing message and device thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201110187869.8A CN102307136B (en) 2011-07-06 2011-07-06 Method for processing message and device thereof

Publications (2)

Publication Number Publication Date
CN102307136A true CN102307136A (en) 2012-01-04
CN102307136B CN102307136B (en) 2014-12-24

Family

ID=45380948

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201110187869.8A Active CN102307136B (en) 2011-07-06 2011-07-06 Method for processing message and device thereof

Country Status (1)

Country Link
CN (1) CN102307136B (en)

Cited By (17)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103401799A (en) * 2013-07-30 2013-11-20 曙光信息产业(北京)有限公司 Method and device for realizing load balance
CN104734986A (en) * 2013-12-19 2015-06-24 华为技术有限公司 Message forwarding method and device
CN105812275A (en) * 2016-03-10 2016-07-27 盛科网络(苏州)有限公司 Stream-based TAP (test access point) implementation method
CN106027409A (en) * 2016-05-12 2016-10-12 深圳市恒扬数据股份有限公司 Method and device for uniformly outputting load of switch
CN106034266A (en) * 2015-03-20 2016-10-19 中兴通讯股份有限公司 Optical route generation method and apparatus
CN106034074A (en) * 2015-03-20 2016-10-19 中兴通讯股份有限公司 Method and device for light routing
CN106452856A (en) * 2016-09-28 2017-02-22 杭州鸿雁智能科技有限公司 Traffic flow statistics method and device, and wireless access equipment with traffic flow statistics function
CN106612234A (en) * 2015-10-27 2017-05-03 国家计算机网络与信息安全管理中心 VLAN (Virtual Local Area Network) curing based network message reproduction and distribution method
WO2017088718A1 (en) * 2015-11-25 2017-06-01 华为技术有限公司 Method and apparatus for transmitting control message
CN107046503A (en) * 2017-04-24 2017-08-15 新华三技术有限公司 A kind of message transmitting method, system and its apparatus
WO2018049691A1 (en) * 2016-09-19 2018-03-22 华为技术有限公司 Session persistence method and apparatus, and storage medium
CN108093051A (en) * 2017-12-20 2018-05-29 迈普通信技术股份有限公司 Packet copy method and device
CN108388598A (en) * 2018-02-01 2018-08-10 平安科技(深圳)有限公司 Electronic device, date storage method and storage medium
CN109347987A (en) * 2018-12-07 2019-02-15 迈普通信技术股份有限公司 Access request retransmission method and system
CN109756412A (en) * 2018-12-24 2019-05-14 华为技术有限公司 A kind of data message forwarding method and equipment
CN112688846A (en) * 2020-12-31 2021-04-20 北京物芯科技有限责任公司 Routing method, device, equipment and storage medium of CAN message
CN113726907A (en) * 2021-09-15 2021-11-30 腾讯科技(深圳)有限公司 Routing processing method, network element equipment, device and readable storage medium

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101030940A (en) * 2007-04-09 2007-09-05 华为技术有限公司 Method for equilibrating network-flow load and the third-level exchanger
CN101325557A (en) * 2008-07-25 2008-12-17 华为技术有限公司 Method, system and apparatus for sharing tunnel load
CN101399746A (en) * 2007-09-26 2009-04-01 华为技术有限公司 Packet routing method, system, device and method, system for selecting backup resource
CN101425960A (en) * 2007-11-02 2009-05-06 中兴通讯股份有限公司 Method and apparatus for load equalizing implementation
CN101699789A (en) * 2009-09-25 2010-04-28 江苏华丽网络工程有限公司 Design method of Ethernet device stack system
CN101820392A (en) * 2010-03-26 2010-09-01 中兴通讯股份有限公司 Method for realizing multi-service forwarding and network processor
CN102033938A (en) * 2010-12-10 2011-04-27 天津神舟通用数据技术有限公司 Secondary mapping-based cluster dynamic expansion method

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101030940A (en) * 2007-04-09 2007-09-05 华为技术有限公司 Method for equilibrating network-flow load and the third-level exchanger
CN101399746A (en) * 2007-09-26 2009-04-01 华为技术有限公司 Packet routing method, system, device and method, system for selecting backup resource
CN101425960A (en) * 2007-11-02 2009-05-06 中兴通讯股份有限公司 Method and apparatus for load equalizing implementation
CN101325557A (en) * 2008-07-25 2008-12-17 华为技术有限公司 Method, system and apparatus for sharing tunnel load
CN101699789A (en) * 2009-09-25 2010-04-28 江苏华丽网络工程有限公司 Design method of Ethernet device stack system
CN101820392A (en) * 2010-03-26 2010-09-01 中兴通讯股份有限公司 Method for realizing multi-service forwarding and network processor
CN102033938A (en) * 2010-12-10 2011-04-27 天津神舟通用数据技术有限公司 Secondary mapping-based cluster dynamic expansion method

Cited By (24)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103401799A (en) * 2013-07-30 2013-11-20 曙光信息产业(北京)有限公司 Method and device for realizing load balance
CN104734986A (en) * 2013-12-19 2015-06-24 华为技术有限公司 Message forwarding method and device
CN106034266A (en) * 2015-03-20 2016-10-19 中兴通讯股份有限公司 Optical route generation method and apparatus
CN106034074A (en) * 2015-03-20 2016-10-19 中兴通讯股份有限公司 Method and device for light routing
CN106034074B (en) * 2015-03-20 2019-12-20 中兴通讯股份有限公司 Method and device for realizing optical routing
CN106612234A (en) * 2015-10-27 2017-05-03 国家计算机网络与信息安全管理中心 VLAN (Virtual Local Area Network) curing based network message reproduction and distribution method
WO2017088718A1 (en) * 2015-11-25 2017-06-01 华为技术有限公司 Method and apparatus for transmitting control message
CN105812275B (en) * 2016-03-10 2018-11-16 盛科网络(苏州)有限公司 A kind of TAP implementation method based on stream
CN105812275A (en) * 2016-03-10 2016-07-27 盛科网络(苏州)有限公司 Stream-based TAP (test access point) implementation method
CN106027409A (en) * 2016-05-12 2016-10-12 深圳市恒扬数据股份有限公司 Method and device for uniformly outputting load of switch
US10880369B2 (en) 2016-09-19 2020-12-29 Huawei Technologies Co., Ltd. Session persistence method, device, and storage medium
WO2018049691A1 (en) * 2016-09-19 2018-03-22 华为技术有限公司 Session persistence method and apparatus, and storage medium
CN106452856A (en) * 2016-09-28 2017-02-22 杭州鸿雁智能科技有限公司 Traffic flow statistics method and device, and wireless access equipment with traffic flow statistics function
CN107046503B (en) * 2017-04-24 2020-08-04 新华三技术有限公司 Message transmission method, system and device
CN107046503A (en) * 2017-04-24 2017-08-15 新华三技术有限公司 A kind of message transmitting method, system and its apparatus
CN108093051A (en) * 2017-12-20 2018-05-29 迈普通信技术股份有限公司 Packet copy method and device
CN108093051B (en) * 2017-12-20 2021-02-05 迈普通信技术股份有限公司 Message copying method and device
CN108388598A (en) * 2018-02-01 2018-08-10 平安科技(深圳)有限公司 Electronic device, date storage method and storage medium
CN109347987A (en) * 2018-12-07 2019-02-15 迈普通信技术股份有限公司 Access request retransmission method and system
CN109756412A (en) * 2018-12-24 2019-05-14 华为技术有限公司 A kind of data message forwarding method and equipment
CN112688846A (en) * 2020-12-31 2021-04-20 北京物芯科技有限责任公司 Routing method, device, equipment and storage medium of CAN message
CN112688846B (en) * 2020-12-31 2022-06-28 北京物芯科技有限责任公司 Routing method, device, equipment and storage medium of CAN message
CN113726907A (en) * 2021-09-15 2021-11-30 腾讯科技(深圳)有限公司 Routing processing method, network element equipment, device and readable storage medium
CN113726907B (en) * 2021-09-15 2024-03-19 腾讯科技(深圳)有限公司 Routing processing method, network element equipment, device and readable storage medium

Also Published As

Publication number Publication date
CN102307136B (en) 2014-12-24

Similar Documents

Publication Publication Date Title
CN102307136A (en) Method for processing message and device thereof
CN103166874B (en) A kind of message forwarding method and equipment
CN102970227B (en) The method and apparatus of VXLAN message repeating is realized in ASIC
CN102025643B (en) Flow table search method and device
CN101009662B (en) Message processing method, system and device based on the load balance technology
CN101729427B (en) Multilink load sharing and routing method and router
CN108718278B (en) Message transmission method and device
CN102647355A (en) LACP (Link Aggregation Control Protocol) consultation processing method, relay node and system
CN106330704B (en) Message forwarding method and device
CN104038425B (en) The method and apparatus for forwarding ether network packet
US10291532B1 (en) Enabling interconnection between ethernet virtual private networks (EVPNs) and provider backbone bridging EVPNs (PBB-EVPNs)
CN105099913A (en) Message forwarding method and device
CN101106528A (en) Packet forward system and method based on secure device and its secure device
CN102447638A (en) Load balancing method and forwarding apparatus
CN102957589A (en) Method, network node and system for service data transmission
CN103607351A (en) Chip forwarding item generation method and equipment thereof
CN104038447A (en) Message transmission method and device
CN106685828B (en) A kind of message transmitting method and device
CN101651626B (en) Traffic-forwarding method and device
CN101383772A (en) Method and device for automatically discovering and establishing MAC route information table
CN101534253A (en) Message forwarding method and device
CN102904825A (en) Hash based message transmission method and device
CN106375355B (en) Load balancing processing method and device
CN102255816A (en) Method and device for load sharing
CN106411553B (en) Method and device for optimizing service chain path

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: NEW H3C TECHNOLOGIES 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: HANGZHOU H3C TECHNOLOGIES Co.,Ltd.

TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20230616

Address after: 310052 11th Floor, 466 Changhe Road, Binjiang District, Hangzhou City, Zhejiang Province

Patentee after: H3C INFORMATION TECHNOLOGY Co.,Ltd.

Address before: 310052 Changhe Road, Binjiang District, Hangzhou, Zhejiang Province, No. 466

Patentee before: NEW H3C TECHNOLOGIES Co.,Ltd.