CN105591974B - Message processing method, apparatus and system - Google Patents
Message processing method, apparatus and system Download PDFInfo
- Publication number
- CN105591974B CN105591974B CN201410557950.4A CN201410557950A CN105591974B CN 105591974 B CN105591974 B CN 105591974B CN 201410557950 A CN201410557950 A CN 201410557950A CN 105591974 B CN105591974 B CN 105591974B
- Authority
- CN
- China
- Prior art keywords
- message
- vxlan
- vxlan message
- path
- interchanger
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Landscapes
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
The invention discloses a kind of message processing methods, apparatus and system, belong to switching technology field.Applied to the first interchanger in VXLAN, there are at least two equative routes between first interchanger and second switch, which comprises the first VXLAN message is sent to the second switch by the first path at least two articles of equative routes;Receive the 2nd VXLAN message;Judge whether the first path meets path switching condition according to the 2nd VXLAN message;If the first path meets path switching condition, the subsequent VXLAN message for belonging to same data flow with the first VXLAN message is sent to the second switch by the second path at least two articles of equative routes;It solves the problems, such as that sending system performance caused by sub-data flow using prefixed time interval in the prior art reduces, has achieved the effect that improve system performance, avoided packet out-ordering.
Description
Technical field
The present invention relates to switching technology field, in particular to a kind of message processing method, apparatus and system.
Background technique
Virtual expansible local area network (English: Virtual eXtensible Local Area Network, referred to as:
VXLAN the virtual ether) being built upon on physical interconnection fidonetFido (English: Internet Protocol, abbreviation: IP) network
Net.In VXLAN network, in order to improve link bandwidth, equal cost multipath (English: Equal Cost Multiple is used
Path, referred to as: ECMP) technology.ECMP technology makes shortest path bridge mode (English: Shortest Path Bridging MAC
The data frame of Mode, referred to as: SPBM) the single business in network can select multiple possible next-hops (select it is a plurality of can
The path of energy).For the load balancing of realizing route, there are two types of the route selecting method using ECMP technology, packet-by-packet Hash (hash)
With valley-fill hash.In packet-by-packet hash, the load of each path can be balanced, but will lead to the packet out-ordering in a stream, institute
With packet-by-packet hash using less;In valley-fill hash, transmitting terminal calculates the hash value of message according to the five-tuple in message, will
The equal message of hash value is sent by same paths, guarantees that the message in a stream will not be out-of-order, so valley-fill hash is answered
With more.
For long-term data flows such as elephant stream, mouse streams, certain paths are easy to cause using valley-fill hash
Heavier loads, and other path loads are lighter, to reduce the harmony of path load.For this purpose, the prior art provides one
Kind stream cluster exchanges (Flowlet Switch) scheme, comprising: long-term data flow is divided into multiple subnumbers by transmitting terminal
It include at least one message, the path congestion where detecting current sub-data stream in transmitting terminal in each sub-data flow according to stream
When, transmitting terminal passes through the path after current sub-data stream is sent completely, by next sub-data flow of the sub-data flow
Equative route send.When the transmission time interval of two messages in a data flow is greater than preset time interval (gap),
Load balancing can be carried out using above-mentioned stream cluster exchange scheme to the data flow.In general, the size of preset time interval is
Empirically determined.
In the implementation of the present invention, the inventor finds that the existing technology has at least the following problems:
The prior art is the size of empirically determined preset time interval, in order to guarantee a data flow as far as possible
In message there is not random ordering, usually the preset time interval is arranged it is larger, for example, the preset time interval is set
It is set to 100 microseconds (us), and the size of the transmission time interval between sub-data flow actually required usually has with path status
It closes, that is, when path is more unimpeded, transmission time interval actually required is usually smaller, at this point, if preset time interval
It is larger, then it can reduce system performance;When path more congestion, transmission time interval actually required is usually larger, at this point, such as
The preset time interval of fruit is smaller, then can cause packet out-ordering.Therefore, in the prior art using fixed prefixed time interval
Scheme can reduce system performance, and packet out-ordering is also resulted in when serious.
Summary of the invention
In order to solve in the prior art using prefixed time interval send sub-data flow caused by system performance reduce or
The problem of packet out-ordering, the present invention provides a kind of message processing methods, apparatus and system.The technical solution is as follows:
In a first aspect, providing a kind of message processing method, handed over applied to first in virtual expansible local area network VXLAN
It changes planes, there are at least two equative routes between first interchanger and second switch, which comprises
The first VXLAN report is sent to the second switch by the first path at least two articles of equative routes
Text;
Receive the 2nd VXLAN message that the second switch is sent according to the first VXLAN message, described second
VXLAN message is for notifying second switch described in first interchanger to receive the first VXLAN message;
Judge whether the first path meets path switching condition according to the 2nd VXLAN message;
If the first path meets path switching condition, belong to together receiving with the first VXLAN message
When the subsequent VXLAN message of one data flow, exchanged by the second path at least two equative routes to described second
Machine sends the subsequent VXLAN message.
With reference to first aspect, in the first possible embodiment of first aspect, the first VXLAN message packet
It includes: original message and identification information, the identification information the first VXLAN message for identification, the 2nd VXLAN message
It include: type code position and the identification information, the value of the type code position is the first preset value, and first preset value is used
In indicating that the type of message of the 2nd VXLAN message is respond style,
It is described before receiving the 2nd VXLAN message that the second switch is sent according to the first VXLAN message
Method further include:
The identification information of the first VXLAN message is recorded in transmission table;
It is described to judge whether the first path meets path switching condition and include:
When the type of message of the value instruction of type code position in the 2nd VXLAN message is respond style, judgement
Whether the identification information of the identification information in the 2nd VXLAN message and the first VXLAN message in the transmission table
It is identical;
If the identification information in the 2nd VXLAN message and the first VXLAN message in the transmission table
Identification information is identical, it is determined that the first path meets path switching condition.
The possible embodiment of with reference to first aspect the first, in second of possible embodiment of first aspect
In, it is described after the 2nd VXLAN message that the reception second switch is sent according to the first VXLAN message
Method further include:
The identification information phase of identification information and the first VXLAN message of record in the 2nd VXLAN message
Meanwhile the list item of the identification information including the first VXLAN message is deleted from the transmission table;Or,
The identification information of the first VXLAN message recorded in the transmission table shows the first VXLAN message
When the number for having sent message of affiliated data flow is more than preset value, described first recorded in the transmission table is emptied
The identification information of VXLAN message.
Second of possible implementation of the possible implementation of with reference to first aspect the first or first aspect,
In the third possible embodiment of first aspect,
The first VXLAN message is obtained by the tunnel original message packaging V XLAN head, described first
The identification information of VXLAN message carries in the reserved field of the tunnel the VXLAN head of the first VXLAN message;
The reserved field of the tunnel the VXLAN head of the 2nd VXLAN message includes the mark letter of the first VXLAN message
Breath, the type code position carry in the attribute field of the tunnel the VXLAN head of the 2nd VXLAN message.
The third possible embodiment with reference to first aspect, in the 4th kind of possible embodiment of first aspect
In,
The 2nd VXLAN message is to be generated by the second switch according to the first VXLAN message;Or,
The 2nd VXLAN message is that the second switch is deposited in the transmit queue for detecting the second switch
In reversed message, added in the tunnel the VXLAN head of the reversed message the first VXLAN message identification information and
What the type code position obtained, the reversed message is outer layer purpose internet protocol in the transmit queue of the second switch
Discuss the message for the IP address that IP address is first interchanger.
The third possible embodiment with reference to first aspect, in the 5th kind of possible embodiment of first aspect
In, the first VXLAN message further include: type code position, the type code position are located at the first VXLAN message
In the attribute field of the tunnel VXLAN head, the value of the type code position is the second preset value, and second preset value is used to indicate
Type of message is request type.
Second aspect provides a kind of message processing method, hands over applied to second in virtual expansible local area network VXLAN
It changes planes, there are at least two equative routes between the second switch and the first interchanger, which comprises
The first VXLAN that first interchanger is sent is received by the first path at least two articles of equative routes
Message;
According to the 2nd VXLAN message of the first VXLAN Receive message, the 2nd VXLAN message is described for notifying
Second switch described in first interchanger receives the first VXLAN message;
The 2nd VXLAN message is sent to first interchanger, in order to which first interchanger is according to described the
Two VXLAN messages judge whether the first path meets path switching condition;
When the first path meets path switching condition, connect by the second path of at least two equative routes
Receive the subsequent VXLAN message for belonging to same data flow with the first VXLAN message that first interchanger is sent.
In conjunction with second aspect, in the first possible embodiment of second aspect, the first VXLAN message packet
It includes: original message and identification information, the identification information the first VXLAN message for identification, the 2nd VXLAN message
It include: type code position and the identification information, the value of the type code position is the first preset value, and first preset value is used
In indicating that the type of message of the 2nd VXLAN message is respond style.
In conjunction with the first possible embodiment of second aspect, in second of possible embodiment of second aspect
In,
The first VXLAN message is obtained by the tunnel original message packaging V XLAN head, described first
The identification information of VXLAN message carries in the reserved field of the tunnel the VXLAN head of the first VXLAN message;
The reserved field of the tunnel the VXLAN head of the 2nd VXLAN message includes the mark letter of the first VXLAN message
Breath, the type code position carry in the attribute field of the tunnel the VXLAN head of the 2nd VXLAN message.
In conjunction with second of possible embodiment of second aspect, in the third possible embodiment of second aspect
In, it is described according to the 2nd VXLAN message of the first VXLAN Receive message, comprising:
The 2nd VXLAN message is generated according to the first VXLAN message;Or,
It detects with the presence or absence of reversed message in the transmit queue of the second switch, the reversed message is described second
Outer layer purpose internet protocol address is the message of the IP address of first interchanger in the transmit queue of interchanger, in institute
It states in transmit queue there are when the reversed message, adds the first VXLAN in the tunnel the VXLAN head of the reversed message
The identification information of message and the type code position obtain the 2nd VXLAN message.
In conjunction with second of possible embodiment of second aspect or the third possible embodiment of second aspect,
In the 4th kind of possible embodiment of second aspect, the first VXLAN message further include: type code position, the class
Type flag bit is located in the attribute field of the tunnel the VXLAN head of the first VXLAN message, and the value of the type code position is the
Two preset values, it is request type that second preset value, which is used to indicate type of message, described to be obtained according to the first VXLAN message
Before taking the 2nd VXLAN message, the method also includes:
Whether the type of message for judging the value instruction of the type code position in the first VXLAN message is request type;
If the type of message that the value of the type code position in the first VXLAN message indicates is request type, hold
Row it is described according to the first VXLAN the 2nd VXLAN message of Receive message the step of.
The third aspect, provides a kind of message process device, and described device is the in virtual expansible local area network VXLAN
One interchanger, there is at least two equative routes, described device between first interchanger and second switch includes:
First sending module, for passing through the first path at least two equative routes to the second switch
Send the first VXLAN message;
Receiving module is reported for receiving the second switch according to the 2nd VXLAN that the first VXLAN message is sent
Text, the 2nd VXLAN message is for notifying second switch described in first interchanger to receive the first VXLAN report
Text;
Judgment module, for judging whether the first path meets path switching article according to the 2nd VXLAN message
Part;
Second sending module, for meeting path switching condition in the first path and receiving and described first
When VXLAN message belongs to the subsequent VXLAN message of same data flow, pass through the second path at least two equative routes
The subsequent VXLAN message is sent to the second switch.
In conjunction with the third aspect, in the first possible embodiment of the third aspect, the first VXLAN message packet
It includes: original message and identification information, the identification information the first VXLAN message for identification, the 2nd VXLAN message
It include: type code position and the identification information, the value of the type code position is the first preset value, and first preset value is used
In indicating that the type of message of the 2nd VXLAN message is respond style, described device further include:
Logging modle, for recording the identification information of the first VXLAN message in transmission table;
The judgment module, comprising:
Judging unit, the type of message that the value for the type code position in the 2nd VXLAN message indicates are to ring
When answering type, the identification information in the 2nd VXLAN message and the first VXLAN message in the transmission table are judged
Whether identification information is identical;
Determination unit, for described first in the identification information and the transmission table in the 2nd VXLAN message
When the identification information of VXLAN message is identical, determine that the first path meets path switching condition.
In conjunction with the first possible embodiment of the third aspect, in second of possible embodiment of the third aspect
In, described device further include:
Removing module, the first VXLAN message for identification information and record in the 2nd VXLAN message
Identification information it is identical when, from it is described transmission table in delete include the first VXLAN message identification information list item;Or,
Module is emptied, the identification information of the first VXLAN message for recording in the transmission table shows described
When the number for having sent message of data flow belonging to first VXLAN message is more than preset value, empties and recorded in the transmission table
The first VXLAN message identification information.
In conjunction with the first possible implementation of the third aspect or second of possible implementation of the third aspect,
In the third possible embodiment of the third aspect,
The first VXLAN message is obtained by the tunnel original message packaging V XLAN head, described first
The identification information of VXLAN message carries in the reserved field of the tunnel the VXLAN head of the first VXLAN message;
The reserved field of the tunnel the VXLAN head of the 2nd VXLAN message includes the mark letter of the first VXLAN message
Breath, the type code position carry in the attribute field of the tunnel the VXLAN head of the 2nd VXLAN message.
In conjunction with the third possible embodiment of the third aspect, in the 4th kind of possible embodiment of the third aspect
In,
The 2nd VXLAN message is to be generated by the second switch according to the first VXLAN message;Or,
The 2nd VXLAN message is that the second switch is deposited in the transmit queue for detecting the second switch
In reversed message, added in the tunnel the VXLAN head of the reversed message the first VXLAN message identification information and
What the type code position obtained, the reversed message is outer layer purpose internet protocol in the transmit queue of the second switch
Discuss the message for the IP address that IP address is first interchanger.
In conjunction with the third possible embodiment of the third aspect, in the 5th kind of possible embodiment of the third aspect
In, the first VXLAN message further include: type code position, the type code position are located at the first VXLAN message
In the attribute field of the tunnel VXLAN head, the value of the type code position is the second preset value, and second preset value is used to indicate
Type of message is request type.
Fourth aspect, provides a kind of message process device, and described device is the in virtual expansible local area network VXLAN
Two interchangers, there is at least two equative routes, described device between the second switch and the first interchanger includes:
First receiving module, for receiving first exchange by the first path at least two equative routes
The first VXLAN message that machine is sent;
Module is obtained, for according to the 2nd VXLAN message of the first VXLAN Receive message, the 2nd VXLAN message
For notifying second switch described in first interchanger to receive the first VXLAN message;
Sending module, for sending the 2nd VXLAN message to first interchanger, in order to first exchange
Machine judges whether the first path meets path switching condition according to the 2nd VXLAN message;
Second receiving module, for passing through described at least two etc. when the first path meets path switching condition
After what the second path of cost path received that first interchanger sends belongs to same data flow with the first VXLAN message
Continuous VXLAN message.
In conjunction with fourth aspect, in the first possible embodiment of fourth aspect, the first VXLAN message packet
It includes: original message and identification information, the identification information the first VXLAN message for identification, the 2nd VXLAN message
It include: type code position and the identification information, the value of the type code position is the first preset value, and first preset value is used
In indicating that the type of message of the 2nd VXLAN message is respond style.
In conjunction with the first possible embodiment of fourth aspect, in second of possible embodiment of fourth aspect
In,
The first VXLAN message is obtained by the tunnel original message packaging V XLAN head, described first
The identification information of VXLAN message carries in the reserved field of the tunnel the VXLAN head of the first VXLAN message;
The reserved field of the tunnel the VXLAN head of the 2nd VXLAN message includes the mark letter of the first VXLAN message
Breath, the type code position carry in the attribute field of the tunnel the VXLAN head of the 2nd VXLAN message.
In conjunction with second of possible embodiment of fourth aspect, in the third possible embodiment of fourth aspect
In, the acquisition module, comprising:
Generation unit, for generating the 2nd VXLAN message according to the first VXLAN message;Or,
Encapsulation unit is detected, whether there is reversed message in the transmit queue for detecting the second switch, it is described
Reversed message is that outer layer purpose internet protocol address is first interchanger in the transmit queue of the second switch
IP address message, there are when the reversed message in the transmit queue, in the tunnel the VXLAN head of the reversed message
The identification information of middle addition the first VXLAN message and the type code position obtain the 2nd VXLAN message.
In conjunction with second of possible embodiment of fourth aspect or the third possible embodiment of fourth aspect,
In the 4th kind of possible embodiment of fourth aspect, the first VXLAN message further include: type code position, the class
Type flag bit is located in the attribute field of the tunnel the VXLAN head of the first VXLAN message, and the value of the type code position is the
Two preset values, it is request type, described device that second preset value, which is used to indicate type of message, further include:
Judgment module, the type of message for judging that the value of the type code position in the first VXLAN message indicates are
No is request type;
Trigger module, the type of message that the value for the type code position in the first VXLAN message indicates are to ask
When seeking type, the acquisition module is triggered according to the 2nd VXLAN message of the first VXLAN Receive message.
5th aspect, provides a kind of message handling system, and the system includes at least the first interchanger and the second exchange
Machine is connected between first interchanger and the second switch by IP network,
First interchanger includes the message process device as described in the third aspect;
The second switch includes the message process device as described in fourth aspect.
Technical solution provided by the invention has the benefit that
The first VXLAN message is sent to second switch by the first path at least two articles of equative routes, receives institute
The 2nd VXLAN message that second switch is sent according to the first VXLAN message is stated, is sentenced according to the 2nd VXLAN message
Whether the first path of breaking meets path switching condition, if the first path meets path switching condition, is receiving
When belonging to the subsequent VXLAN message of same data flow with the first VXLAN message, by least two equative routes
The second path send the subsequent VXLAN message to the second switch;Due to passing through at least two equative routes
In the second path to the second switch send the subsequent VXLAN message when, realize the shunting to data flow, and energy
Enough guarantee that the latter sub-data flow is just sent after previous sub-data flow is received by second switch, therefore, the present invention can
Solve the problems, such as that the prior art sends the reduction of system performance caused by sub-data flow or packet out-ordering using prefixed time interval,
Achieve the effect that improve system performance, avoid packet out-ordering.
Detailed description of the invention
To describe the technical solutions in the embodiments of the present invention more clearly, make required in being described below to embodiment
Attached drawing is briefly described, it should be apparent that, drawings in the following description are only some embodiments of the invention, for
For those of ordinary skill in the art, without creative efforts, it can also be obtained according to these attached drawings other
Attached drawing.
Fig. 1 is a kind of schematic diagram of implementation environment involved in each embodiment of the present invention;
Fig. 2 is the flow diagram of message processing method provided by one embodiment of the present invention;
Fig. 3 is the flow diagram for the message processing method that another embodiment of the present invention provides;
Fig. 4 is the flow diagram for the message processing method that further embodiment of the present invention provides;
Fig. 5 is the block diagram of message process device provided by one embodiment of the present invention;
Fig. 6 is the block diagram for the message process device that another embodiment of the present invention provides;
Fig. 7 is the block diagram for the message process device that further embodiment of the present invention provides;
Fig. 8 is the block diagram for the message process device that another embodiment of the invention provides;
Fig. 9 is the block diagram of message process device provided by one embodiment of the present invention;
Figure 10 is the block diagram for the message process device that another embodiment of the present invention provides;
Figure 11 is the structural schematic diagram of message handling system provided by one embodiment of the present invention.
Specific embodiment
To make the object, technical solutions and advantages of the present invention clearer, below in conjunction with attached drawing to embodiment party of the present invention
Formula is described in further detail.
Referring to FIG. 1, it illustrates a kind of schematic diagrames of implementation environment involved in each embodiment of the present invention.The implementation
Environment provides a kind of VXLAN network reference framework 100, which may include at least two leaves
(leaf) interchanger and at least two backbone (spine) interchanger.
Wherein, leaf interchanger is used for as fictitious host computer (English: virtual machine, abbreviation: VM), individual calculus
The terminal devices such as machine (English: personal computer, abbreviation: PC), server (server) provide access service, same
It is communicated between the leaf interchanger of VXLAN network by IP network, it can also between the leaf interchanger in different VXLAN networks
To be communicated;Spine interchanger is for being forwarded the message between leaf interchanger.
Exemplary, in Fig. 1, which includes leaf interchanger 120 and leaf interchanger 140,
At least two spine interchanger includes spine interchanger 160 and spine interchanger 180.The embodiment of the present invention assumes leaf
Interchanger 120 is the first interchanger, and leaf interchanger 140 is second switch.
Referring to FIG. 2, it illustrates the flow diagrams of message processing method provided by one embodiment of the present invention.This reality
The first interchanger of message processing method described in example as shown in Figure 1 is applied to execute, first interchanger and second switch
Between exist at least two equative routes (for example, 1: the first interchanger of path -> backbone switch 160- > second switch;Road
2: the first interchangers of diameter -> backbone switch 180- > second switch), referring to fig. 2, this method process specifically includes:
Step 201, first is sent to the second switch by the first path at least two equative routes
VXLAN message.
Step 202, the 2nd VXLAN message that the second switch is sent according to the first VXLAN message, institute are received
The 2nd VXLAN message is stated for notifying second switch described in first interchanger to receive the first VXLAN message.
Step 203, judge whether the first path meets path switching condition according to the 2nd VXLAN message.
Step 204, it if the first path meets path switching condition, is reported receiving with the first VXLAN
When text belongs to the subsequent VXLAN message of same data flow, by the second path at least two equative routes to described
Second switch sends the subsequent VXLAN message.
Message processing method provided in an embodiment of the present invention, by the first path at least two equative routes to second
Interchanger sends the first VXLAN message, receives the second switch is sent according to the first VXLAN message second
VXLAN message judges whether the first path meets path switching condition according to the 2nd VXLAN message, if described
One path meets path switching condition, then is receiving the subsequent VXLAN for belonging to same data flow with the first VXLAN message
When message, the subsequent VXLAN is sent to the second switch by the second path at least two equative routes
Message;It is described subsequent due to being sent by the second path at least two equative routes to the second switch
When VXLAN message, the shunting to data flow is realized, and can guarantee the latter sub-data flow in previous sub-data flow by
Two interchangers are just sent after receiving, and therefore, the present invention is able to solve the prior art and sends sub-data flow using prefixed time interval
The problem of caused system performance reduction or packet out-ordering, achievees the effect that improve system performance, avoids packet out-ordering.
Further, due to the embodiment of the present invention by the second path at least two equative routes to described
Second switch sends subsequent VXLAN message, by the load balancing of the first path to the second path, therefore, this hair
The bright harmony that can also improve the load of VXLAN network path.
Referring to FIG. 3, the flow diagram of the message processing method provided it illustrates another embodiment of the present invention.This
The second switch of message processing method described in embodiment as shown in Figure 1 executes, the second switch and the first interchanger
Between exist at least two equative routes, referring to Fig. 3, this method process is specifically included:
Step 301, receive what first interchanger was sent by the first path at least two equative routes
First VXLAN message.
Step 302, according to the 2nd VXLAN message of the first VXLAN Receive message, the 2nd VXLAN message is used for
Second switch described in first interchanger is notified to receive the first VXLAN message.
Step 303, the 2nd VXLAN message is sent to first interchanger, in order to the first interchanger root
Judge whether the first path meets path switching condition according to the 2nd VXLAN message.
Step 304, when the first path meets path switching condition, pass through the of at least two articles equative routes
Two paths receive the subsequent VXLAN for belonging to same data flow with the first VXLAN message that first interchanger is sent and report
Text.
Message processing method provided in an embodiment of the present invention receives the by first path at least two articles of equative routes
The first VXLAN message that one interchanger is sent sends the according to the first VXLAN Receive message and to first interchanger
Two VXLAN messages, the 2nd VXLAN message is for notifying the first interchanger second switch to receive described first
VXLAN message, in order to which first interchanger judges whether the first path meets road according to the 2nd VXLAN message
Diameter switching condition and when the first path meets path switching condition, passes through the second tunnel of at least two equative routes
Diameter receives the subsequent VXLAN message for belonging to same data flow with the first VXLAN message that first interchanger is sent;By
The second path at least two equative routes described in sends the subsequent VXLAN message to the second switch
When, the shunting to data flow is realized, and can guarantee the latter sub-data flow in previous sub-data flow by second switch
It is just sent after reception, therefore, the present invention is able to solve the prior art and sends system caused by sub-data flow using prefixed time interval
The problem of reduced performance of uniting or packet out-ordering, achievees the effect that improve system performance, avoids packet out-ordering.
Further, due to the embodiment of the present invention by the second path at least two equative routes to described
Second switch sends subsequent VXLAN message, by the load balancing of first path to second path, therefore, this hair
The bright harmony that can also improve the load of VXLAN network path.
Referring to FIG. 4, the flow diagram of the message processing method provided it illustrates further embodiment of the present invention.It should
Message processing method is applied in implementation environment shown in FIG. 1, there is at least two between the first interchanger and second switch
Equative route, referring to fig. 4, this method process specifically include:
Step 401, the first interchanger is that the tunnel original message packaging V XLAN head obtains the first VXLAN message, described first
VXLAN message includes: identification information, the identification information the first VXLAN message for identification.
The first VXLAN message can also include: type code position, and the value of the type code position is used to indicate described
The type of message of message where the tunnel VXLAN head, in embodiments of the present invention, the type of message includes request type and sound
Answer type.Wherein, the message of request type refers to the message that the sender of message actively issues, and the message of respond style is message
Sender need certain condition to trigger the message that could send.For example, the first VXLAN message is first interchanger
The message of the request type of transmission, the 2nd VXLAN message are that the second switch (receives described according to trigger condition
First VXLAN message) send respond style message.
Wherein, the original message is that first interchanger is received from the first equipment for accessing first interchanger
, purpose is to access the message of the second equipment of the second switch.
In embodiments of the present invention, the tunnel VXLAN head can be as shown in table 1 below.
Table 1
The tunnel VXLAN head successively identifies (English by attribute field, reserved field 1, virtual expansible local net network
Text: VXLAN Network Identifier, referred to as: VNI) field and reserved field 2 form, wherein in table 1 where Flags
Field is the attribute field, and field where the Reserved1 after the attribute field is reserved field 1, the void
Field where intending expansible local net network mark is virtual expansible local net network identification field, word where Reserved2
Section is the reserved field 2.
Optionally, the length of the attribute field is usually 8bit (bit), and the type code position of message is carried in institute
It states in attribute field, specifically, in the attribute field, the 5th bit in the attribute field is I, and the value of I need to be set
It is set to 1, the message where indicating the tunnel VXLAN head is effective, and the embodiment of the present invention is using the transmission in the attribute field
Position (English: Send Flag, referred to as: S) and response bit (English: Ack Flag, referred to as: A) and structure types flag bit, the hair
Sending position is the 1st bit in the attribute field, and the response bit is the 2nd bit in the attribute field, institute
It states request type and the respond style to be determined by the value of the type code position, as S=1 and A=0, illustrates type of message
Illustrate that type of message is respond style as S=0 and A=1 for request type.
The length of the reserved field 1 is usually 24bit, and the identification information of message carries in the reserved field 1.Tool
Body, in embodiments of the present invention, the identification information is as shown in table 2 below, the identification information include: traffic identifier (English:
Flow Identification, referred to as: Flow ID) and sequence number (English: Sequence ID), the traffic identifier is for referring to
Showing data flow belonging to the message where the tunnel VXLAN head, the sequence number is used to indicate the transmission sequence an of message,
The length of the traffic identifier and the length of the sequence number are usually all 12bit.
Table 2
Flow ID (traffic identifier) | Sequence ID (sequence number) |
The length of the virtual expansible local net network mark is usually 24bit, for identifying virtual expansible local
Net.The length of the reserved field 2 is usually 8bit.
In embodiments of the present invention, what is be applied primarily to is the attribute field of the 8bit in the tunnel VXLAN head
With the reserved field 1 of 24bit.
Assuming that current original message is first message in data flow that traffic identifier is 00000000, then the first interchanger
Type code position for the tunnel the VXLAN head of original message encapsulation is 10, and the attribute field can be
10001000, the traffic identifier can be able to be 000000000001 for the 000000000000, sequence number, that is, in table 1
Shown in the tunnel VXLAN head, the value that the value of the Flags of 8bit is the Reserved of 10001000,24bit is
000000000000000000000001, after the first interchanger is the original message packaging V XLAN tunnel head, the first exchange
Machine obtains the first VXLAN message, then 10 be the first VXLAN message type code position value,
000000000000000000000001 is the identification information of the first VXLAN message.
Step 402, first interchanger is sent out by the first path at least two equative routes to second switch
Send the first VXLAN message.
After first interchanger obtains the first VXLAN message, first interchanger is by with described second
The first path at least two articles of equative routes between interchanger sends the first VXLAN report to the second switch
Text.
Wherein, the first path is any one paths at least two equative routes.
Step 403, first interchanger records the first VXLAN message in the transmission table of first interchanger
Identification information.
Each list item of the transmission table includes that the mark of data flow belongs to the number with what first interchanger was sent
According to the sequence number of the VXLAN message of stream.Wherein, first interchanger is in first VXLAN message for sending some data flow
When, add a list item in the transmission table, the list item includes the traffic identifier of the data flow and first described
The corresponding relationship of the sequence number of VXLAN message.The identification information for recording the first VXLAN message, specifically includes: record
The corresponding relationship of the sequence number of the traffic identifier and the first VXLAN message of data flow belonging to the first VLAN message.And
And a list item is only established for each data flow in the transmission table, when first interchanger sends the data flow
When subsequent VXLAN message, it is only necessary to update the sequence number in the list item according to the subsequent VXLAN message.
For example, if the first VLAN message is first VXLAN message of data flow 000000000000, described the
One interchanger adds list item (Flow an ID:000000000000, Sequence in the transmission table of first interchanger
ID:000000000001).
Step 404, the first VXLAN message that first interchanger is sent is received in the second switch
Afterwards, the second switch judge the type code position in the first VXLAN message value instruction type of message whether be
Request type.
Specifically, the second switch judges whether the value of the type code position in the first VXLAN message is
Two preset values, when the value of the type code position in the first VXLAN message is the second preset value, the second switch is true
The type of the fixed first VXLAN message is request type.
By the description in above-mentioned steps 401 it is found that the type code position in the first VXLAN message is SA, S=1 and A
When=0, type of message is request type, then second preset value can be 10.Therefore, the second switch can be according to class
Whether it is request type that whether the value of type flag bit SA is 10 type to judge the first VXLAN message.
Since the value of the type code position SA of the first VXLAN message is the second preset value 10, described second hands over
It changes planes and determines that the type of the first VXLAN message is request type.
Step 405, if the type of message of the value instruction of the type code position in the first VXLAN message is request class
Type, then the second switch is used according to the 2nd VXLAN message of the first VXLAN Receive message, the 2nd VXLAN message
In notifying second switch described in first interchanger to receive the first VXLAN message.
Wherein, the 2nd VXLAN message includes: type code position and identification information, and the value of the type code position is
First preset value, the type of message that first preset value is used to indicate the 2nd VXLAN message is respond style.
Since the 2nd VXLAN message is for notifying second switch described in first interchanger to receive described first
VXLAN message, therefore, the type of message of the 2nd VXLAN message is respond style, and the mark of the 2nd VXLAN message
Know the identification information that information is the first VXLAN message, that is, the type code position of the 2nd VXLAN message is 01, mark letter
Breath is 000000000000000000000001.
In embodiments of the present invention, the second switch the 2nd VXLAN according to the first VXLAN Receive message
When message, including two kinds of acquisition modes:
First way: the second switch generates the 2nd VXLAN message according to the first VXLAN message.
Wherein, the 2nd VXLAN message of generation is dedicated for notifying the second exchange described in first interchanger
Machine receives the message of the first VXLAN message, and the 2nd VXLAN message includes the tunnel VXLAN head, the tunnel VXLAN
Head include type code position be 01, identification information 000000000000000000000001.
The second way: the second switch detects in the transmit queue of the second switch with the presence or absence of reversed report
Text, the reversed message are the IP address that outer layer IP address is first interchanger in the transmit queue of the second switch
Message, there are when reversed message described in the transmit queue, VXLAN of the second switch in the reversed message
The identification information and type code position that the first VXLAN message is added in tunnel head obtain the 2nd VXLAN message.
Specifically, the second switch is according to the outer layer source IP address in the first VXLAN message, described second
The transmit queue of interchanger is searched, when there are outer layer purpose IP address in the transmit queue for finding the second switch
For the outer layer source IP address in the first VXLAN message message when, the second switch to the message carry out VXLAN envelope
Dress, and 01 is set by the type code position SA in the tunnel VXLAN head, by the reserved field 1 in the tunnel VXLAN head
It is set as 000000000000000000000001 and obtains the 2nd VXLAN message.
It should be noted that if in the transmit queue of the second switch there are multiple outer layer purpose IP address be first
The message of the IP address of interchanger, then the second switch can be the first interchanger in the multiple outer layer purpose IP address
IP address message in an optional message, the message is packaged to obtain the 2nd VXLAN message, it is preferable that
The second switch is pending according to first in the message for the IP address that the multiple purpose IP address is the first interchanger
The message sent obtains the 2nd VXLAN message.
Message processing method provided in an embodiment of the present invention, second switch is in the transmission for detecting the second switch
There are when reversed message in queue, the mark of the first VXLAN message is added in the tunnel the VXLAN head of the reversed message
Information and type code position obtain the 2nd VXLAN message, since the second switch is without generating new message, because
This is reduced pair while realization notifies second switch described in first interchanger to receive the first VXLAN message
The occupancy of the second switch system resource.
Step 406, the second switch sends the 2nd VXLAN message to first interchanger.
For example, it is 01001000 that the second switch, which sends attribute field to first interchanger, reserved field 1
The 2nd VXLAN message that identification information is 000000000000000000000001.
Step 407, after the 2nd VXLAN message that first interchanger receives that the second switch is sent, institute
It states the first interchanger and judges whether the first path meets path switching condition according to the 2nd VXLAN message.
Wherein, the path switching condition may include: time-switching condition and state switching condition.
Exemplary, first interchanger can be according to the identification information and first report of the 2nd VXLAN message
Whether the identification information of text is identical to judge whether the first path meets time-switching condition, when the 2nd VXLAN is reported
When the identification information of text is identical as the identification information of first message, illustrate that the first path meets time-switching condition,
The time-switching condition refers to: first interchanger has received the second switch and receives the first VXLAN report
The notice message of text, i.e., the described 2nd VXLAN message, at this point, the first VXLAN message and subsequent first VXLAN message
Between time interval meet transmission time interval requirement.It can effectively ensure that using the judgement of the time-switching condition
The timing of message in data flow.
Specifically, first interchanger judges whether the value of the type code position in the 2nd VXLAN message is
One preset value, the type of message that first preset value is used to indicate the 2nd VXLAN message is respond style, when described the
When the value of type code position in two VXLAN messages is first preset value, first interchanger determines described second
The type of VXLAN message is respond style, and then first interchanger judges the identification information in the 2nd VXLAN message
Whether identical, identification information and institute when the 2nd VXLAN message with the identification information of the first VXLAN message in transmission table
State the first VXLAN message identification information it is identical when, illustrate that the second switch has received the first VXLAN message,
The first path meets the time-switching condition at this time.
By the description in above-mentioned steps 401 it is found that as S=0 and A=1, the type of message is respond style, therefore,
First preset value can be 01, and whether first interchanger can be 01 described to judge according to type code position SA
Whether the type of the 2nd VXLAN message is respond style.
Since the attribute field in the 2nd VXLAN message is 01001000, that is, the 2nd VXLAN message
The value of type code position SA is first preset value 01, and therefore, first interchanger determines the 2nd VXLAN message
Type is respond style, and first interchanger judges in identification information and the transmission table in the 2nd VXLAN message
The first VXLAN message identification information it is whether identical, since the identification information in the 2nd VXLAN message is
000000000000000000000001, the identification information with the record of the first interchanger described in step 403
000000000000000000000001 is identical, and therefore, first interchanger determines that the first path meets time-switching
Condition.
When first interchanger determines that the first path expires the time-switching condition, first interchanger is sentenced
Whether the first path of breaking meets the state switching condition, wherein the state switching condition is exchanged by described first
Machine is according to configuration strategy decision, for example, first interchanger can judge according to the bandwidth availability ratio of the first path
The first path whether congestion, if the first path congestion, the first path meets the state switching condition, then
For example, whether first interchanger can also balanced come certainly according to the load in each path at least two equative routes
It is fixed whether to carry out path switching, if at least two equative routes each path load imbalance, the first via
Diameter meets the state switching condition.
When first interchanger determines the first path while meeting time-switching condition and state switching condition,
First interchanger carries out path switching.
It should be noted that first interchanger passes through elder generation in message processing method provided in an embodiment of the present invention
Whether the type of message for judging the 2nd VXLAN message is respond style, is in the type of message of the 2nd VXLAN message
When respond style, first interchanger judges the in identification information in the 2nd VXLAN message and the transmission table
Whether the identification information of one VXLAN message is identical, simplifies operating procedure.
Step 408, if the first path meets path switching condition, first interchanger is being received and institute
When stating the first VXLAN message and belonging to the subsequent VXLAN message of same data flow, pass through at least two articles of equative routes
Two paths send the subsequent VXLAN message to the second switch.
If first interchanger determines that the first path meets path switching condition in step 407, described
One interchanger receive belong to the subsequent VXLAN message of same data flow with the first VXLAN message when, it is described first hand over
It changes planes and the subsequent VXLAN report is sent to the second switch by the second path at least two equative routes
Text.
Wherein, second path is any one paths at least two equative routes in addition to first path.
Step 409, when the first path meets path switching condition, the second switch passes through described at least two
What second path of article equative route received that first interchanger sends belongs to same number with the first VXLAN message
According to the subsequent VXLAN message of stream.
It is exchanged in second path that first interchanger passes through at least two equative routes to described second
When machine is sent and the first VXLAN message belongs to the subsequent VXLAN message of same data flow, the second switch is logical
That crosses that second path receives that first interchanger sends belongs to the described subsequent of same data flow with the first VXLAN message
VXLAN message.
It should be noted that in embodiments of the present invention, the first interchanger when for message packaging V XLAN tunnel head, after
The sequence number of one VXLAN message is added up on the basis of the sequence number of previous VXLAN message, that is, first hands over
Change planes the tunnel the VXLAN head of a VXLAN message after packaging when, the sequence number of previous VXLAN message is added 1, is obtained latter
The sequence number of VXLAN message, for example, the first interchanger encapsulate the first VXLAN message the tunnel VXLAN head when, described first
The Serial No. of VXLAN message: 000000000001, then the first interchanger is in the encapsulation affiliated data of the first VXLAN message
When the subsequent packet of stream, on the basis of the sequence number of the first VXLAN message plus 1 obtains the first VXLAN message
The sequence number 000000000010 of first subsequent VXLAN message, the first interchanger is in the third VXLAN for encapsulating the data flow
When message, according to the method described above and so on.Due to the Serial No. 12bit of VXLAN message, for duration such as elephant streams
For longer data flow, the cumulative sequence number that may result in VXLAN message overflows, therefore, in embodiments of the present invention, institute
State the mark of the first interchanger identification information in the 2nd VXLAN message received and the first VXLAN message
When information is identical, if the first path is unsatisfactory for path switching condition, first interchanger empties to be recorded in transmission table
The first VXLAN message identification information.Wherein, the first VXLAN message that is recorded in transmission table of emptying
Identification information, which refers to, sets 0 for the sequence number in the identification information of the subsequent first VXLAN message for belonging to the data flow.?
In another embodiment, the first path meets path switching condition, and the storage in order to guarantee first interchanger is empty
Between can efficiently use, identification information of first interchanger in the 2nd VXLAN message and the first VXLAN are reported
When the identification information of text is identical, the list item of the identification information including the first VXLAN message is deleted from the transmission table.
In another embodiment, if mark in the 2nd VXLAN message that first interchanger receives
Information is not identical as the identification information of the first VXLAN message, and first interchanger stored in transmission table
The identification information of one VXLAN message shows that the number for having sent message of data flow belonging to the first VXLAN message is more than default
When value, the sequence number of the first VXLAN message stored in transmission table is set to 0 by first interchanger, also, described first hands over
Change planes receive belong to the subsequent VXLAN message of same data flow with the first VXLAN message when, pass through the first via
Diameter sends the subsequent VXLAN message.
Since first interchanger is described in the identification information that determines the 2nd VXLAN message and transmission table record
The identification information of first VXLAN message is identical, and it includes the first VXLAN that first interchanger is deleted from the transmission table
The first VXLAN message that the list item of the identification information of message and first interchanger record in the transmission table
Identification information show data flow belonging to the first VXLAN message the number for having sent message be more than preset value when, institute
It states the first interchanger and empties the identification information of the first VXLAN message recorded in the transmission table and therefore save first
The memory space of interchanger.
It should also be noted that, if identification information in the 2nd VXLAN message that first interchanger receives
It is not identical as the identification information of the first VXLAN message, then show that the 2nd VXLAN message is not the first VLXAN
The corresponding notice message of message, the VXLAN message for still thering is in the first path first interchanger to send, described first
Path is unsatisfactory for path switching condition, at this point, first interchanger belongs to same data with the first VXLAN message receiving
When the subsequent VXLAN message of stream, first interchanger sends the subsequent VXLAN message by the first path.
The sequencing of message processing method step provided in an embodiment of the present invention can carry out appropriate adjustment, and step can also
According to circumstances accordingly to be increased and decreased, illustratively, in embodiments of the present invention, step 403 and step 404 are according to sequencing
It carries out, in fact in other embodiments provided by the invention, the step 403 and step 404 can also be overturned, any to be familiar with
In the technical scope disclosed by the present invention, the method that can readily occur in variation should all cover those skilled in the art
Within protection scope of the present invention, therefore repeat no more.
Message processing method provided in an embodiment of the present invention, by the first path at least two equative routes to second
Interchanger sends the first VXLAN message, receives the second switch is sent according to the first VXLAN message second
VXLAN message judges whether the first path meets path switching condition according to the 2nd VXLAN message, if described
One path meets path switching condition, then is receiving the subsequent VXLAN for belonging to same data flow with the first VXLAN message
When message, the subsequent VXLAN is sent to the second switch by the second path at least two equative routes
Message;It is described subsequent due to being sent by the second path at least two equative routes to the second switch
When VXLAN message, the shunting to data flow is realized, and can guarantee the latter sub-data flow in previous sub-data flow by
Two interchangers are just sent after receiving, and therefore, the present invention is able to solve the prior art and sends sub-data flow using prefixed time interval
The problem of caused system performance reduction or packet out-ordering, achievees the effect that improve system performance, avoids packet out-ordering.
Further, due to the embodiment of the present invention by the second path at least described two equative routes to described
Second switch sends subsequent VXLAN message, by the load balancing of the first path to the second path, therefore, this hair
The bright harmony that can also improve the load of VXLAN network path.
Further, since the embodiment of the present invention is determining that can be carried out path when reaching path switching condition switches,
Therefore, compared with the prior art, the embodiment of the present invention forms sub-data flow after handover, and the flexible in size of each sub-data flow is true
It is fixed, and when the embodiment of the present invention shunts long-term data flow by switching, the sub-data flow of formation more evenly, more
Effectively realize the load balancing of each equative route.
Referring to FIG. 5, it illustrates the block diagrams of message process device 500 provided by one embodiment of the present invention.The report
Literary processing unit 500 can pass through the first interchanger of software, hardware or both being implemented in combination in implementation environment shown in Fig. 1
Some or all of function.There is at least two equative routes, the report between first interchanger and second switch
Literary processing unit 500 may include: the first sending module 510, receiving module 520, judgment module 530 and the second sending module
540。
First sending module 510, for by the first path at least two articles of equative routes to described the
Two interchangers send the first VXLAN message.
The receiving module 520, second sent for receiving the second switch according to the first VXLAN message
VXLAN message, the 2nd VXLAN message is for notifying second switch described in first interchanger to receive described first
VXLAN message.
The judgment module 530, the 2nd VXLAN message judgement for being received according to the receiving module 520
Whether the first path meets path switching condition.
Second sending module 540, for judge in the judgment module 530 the first path meets path and cuts
Change condition and receive when belonging to the subsequent VXLAN message of same data flow with the first VXLAN message, by it is described at least
The second path in two equative routes sends the subsequent VXLAN message to the second switch.
Message process device provided in an embodiment of the present invention, by the first path at least two equative routes to second
Interchanger sends the first VXLAN message, receives the second switch is sent according to the first VXLAN message second
VXLAN message judges whether the first path meets path switching condition according to the 2nd VXLAN message, if described
One path meets path switching condition, then is receiving the subsequent VXLAN for belonging to same data flow with the first VXLAN message
When message, the subsequent VXLAN is sent to the second switch by the second path at least two equative routes
Message;It is described subsequent due to being sent by the second path at least two equative routes to the second switch
When VXLAN message, the shunting to data flow is realized, and can guarantee the latter sub-data flow in previous sub-data flow by
Two interchangers are just sent after receiving, and therefore, the present invention is able to solve the prior art and sends sub-data flow using prefixed time interval
The problem of caused system performance reduction or packet out-ordering, achievees the effect that improve system performance, avoids packet out-ordering.
Further, due to the embodiment of the present invention by the second path at least two equative routes to described
Second switch sends subsequent VXLAN message, by the load balancing of the first path to the second path, therefore, this hair
The bright harmony that can also improve the load of VXLAN network path.
Referring to FIG. 6, the block diagram of the message process device 600 provided it illustrates another embodiment of the present invention.It is described
Message process device 600 can pass through the first exchange of software, hardware or both being implemented in combination in implementation environment shown in Fig. 1
The some or all of function of machine.There are at least two equative routes between first interchanger and second switch, it is described
Message process device 600 may include: the first sending module 610, receiving module 620, judgment module 630 and the second sending module
640。
First sending module 610, for by the first path at least two articles of equative routes to described the
Two interchangers send the first VXLAN message.
The receiving module 620, second sent for receiving the second switch according to the first VXLAN message
VXLAN message, the 2nd VXLAN message is for notifying second switch described in first interchanger to receive described first
VXLAN message.
The judgment module 630, the 2nd VXLAN message judgement for being received according to the receiving module 620
Whether the first path meets path switching condition.
Second sending module 640, for judge in the judgment module 630 the first path meets path and cuts
Change condition and receive when belonging to the subsequent VXLAN message of same data flow with the first VXLAN message, by it is described at least
The second path in two equative routes sends the subsequent VXLAN message to the second switch.
Optionally, the first VXLAN message includes: original message and identification information, and the identification information is for identification
The first VXLAN message, the 2nd VXLAN message include: type code position and the identification information, the type code
The value of position is the first preset value, and first preset value is used to indicate the type of message of the 2nd VXLAN message as response class
Type, described device further include:
Logging modle 650, for recording the identification information of the first VXLAN message in transmission table;
The judgment module 630, comprising:
Judging unit 631, the type of message that the value for the type code position in the 2nd VXLAN message indicates are
When respond style, the first VXLAN message in the identification information and the transmission table in the 2nd VXLAN message is judged
Identification information it is whether identical;
Determination unit 632, for judging to obtain identification information in the 2nd VXLAN message in the judging unit 631
When identical as the identification information of the first VXLAN message in the transmission table, determine that the first path meets path and cuts
Change condition.
Optionally, described device further include:
Removing module 660, the first VXLAN for identification information and record in the 2nd VXLAN message
When the identification information of message is identical, the list item of the identification information including the first VXLAN message is deleted from the transmission table;
Or,
Module 670 is emptied, the identification information of the first VXLAN message for recording in the transmission table shows institute
When stating the number for having sent message of data flow belonging to the first VXLAN message more than preset value, empties and remember in the transmission table
The identification information of the first VXLAN message of record.
Optionally, the first VXLAN message is obtained by the tunnel original message packaging V XLAN head, institute
The identification information for stating the first VXLAN message carries in the reserved field of the tunnel the VXLAN head of the first VXLAN message;
The reserved field of the tunnel the VXLAN head of the 2nd VXLAN message includes the mark letter of the first VXLAN message
Breath, the type code position carry in the attribute field of the tunnel the VXLAN head of the 2nd VXLAN message.
Optionally, the 2nd VXLAN message is to be generated by the second switch according to the first VXLAN message
's;Or,
The 2nd VXLAN message is that the second switch is deposited in the transmit queue for detecting the second switch
In reversed message, added in the tunnel the VXLAN head of the reversed message the first VXLAN message identification information and
What the type code position obtained, the reversed message is outer layer purpose internet protocol in the transmit queue of the second switch
Discuss the message for the IP address that IP address is first interchanger.
Optionally, the first VXLAN message further include: type code position, the type code position are located at described first
In the attribute field of the tunnel the VXLAN head of VXLAN message, the value of the type code position is the second preset value, and described second is pre-
If it is request type that value, which is used to indicate type of message,.
Message process device provided in an embodiment of the present invention, by the first path at least two equative routes to second
Interchanger sends the first VXLAN message, receives the second switch is sent according to the first VXLAN message second
VXLAN message judges whether the first path meets path switching condition according to the 2nd VXLAN message, if described
One path meets path switching condition, then is receiving the subsequent VXLAN for belonging to same data flow with the first VXLAN message
When message, the subsequent VXLAN is sent to the second switch by the second path at least two equative routes
Message;It is described subsequent due to being sent by the second path at least two equative routes to the second switch
When VXLAN message, the shunting to data flow is realized, and can guarantee the latter sub-data flow in previous sub-data flow by
Two interchangers are just sent after receiving, and therefore, the present invention is able to solve the prior art and sends sub-data flow using prefixed time interval
The problem of caused system performance reduction or packet out-ordering, achievees the effect that improve system performance, avoids packet out-ordering.
Further, due to the embodiment of the present invention by the second path at least two equative routes to described
Second switch sends subsequent VXLAN message, by the load balancing of the first path to the second path, therefore, this hair
The bright harmony that can also improve the load of VXLAN network path.
Further, since the embodiment of the present invention is determining that can be carried out path when reaching path switching condition switches,
Therefore, compared with the prior art, the embodiment of the present invention forms sub-data flow after handover, and the flexible in size of each sub-data flow is true
It is fixed, and when the embodiment of the present invention shunts long-term data flow by switching, the sub-data flow of formation more evenly, more
Effectively realize the load balancing of each equative route.
Referring to FIG. 7, the block diagram of the message process device 700 provided it illustrates further embodiment of the present invention.It is described
Message process device 700 can pass through the second exchange of software, hardware or both being implemented in combination in implementation environment shown in Fig. 1
The some or all of function of machine.There are at least two equative routes between the second switch and the first interchanger, it is described
Message process device 700 may include: the first receiving module 710, obtain module 720, sending module 730 and the second receiving module
740。
First receiving module 710, described in being received by the first path at least two equative routes
The first VXLAN message that first interchanger is sent.
The acquisition module 720, the first VXLAN message for being received according to first receiving module 710
The 2nd VXLAN message is obtained, the 2nd VXLAN message is for notifying second switch described in first interchanger to receive institute
State the first VXLAN message.
The sending module 730, described for sending that the acquisition module 720 is got to first interchanger
Two VXLAN messages, in order to which first interchanger judges whether the first path meets according to the 2nd VXLAN message
Path switching condition.
Second receiving module 740, for when the first path meets path switching condition, by it is described at least
What the second path of two articles of equative routes received that first interchanger sends belongs to same data with the first VXLAN message
The subsequent VXLAN message of stream.
Message process device provided in an embodiment of the present invention receives the by first path at least two articles of equative routes
The first VXLAN message that one interchanger is sent sends the according to the first VXLAN Receive message and to first interchanger
Two VXLAN messages, the 2nd VXLAN message is for notifying the first interchanger second switch to receive described first
VXLAN message, in order to which first interchanger judges whether the first path meets road according to the 2nd VXLAN message
Diameter switching condition and when the first path meets path switching condition, passes through the second tunnel of at least two equative routes
Diameter receives the subsequent VXLAN message for belonging to same data flow with the first VXLAN message that first interchanger is sent;By
The second path at least two equative routes described in sends the subsequent VXLAN message to the second switch
When, the shunting to data flow is realized, and can guarantee the latter sub-data flow in previous sub-data flow by second switch
It is just sent after reception, therefore, the present invention is able to solve the prior art and sends system caused by sub-data flow using prefixed time interval
The problem of reduced performance of uniting or packet out-ordering, achievees the effect that improve system performance, avoids packet out-ordering.
Further, due to the embodiment of the present invention by the second path at least two equative routes to described
Second switch sends subsequent VXLAN message, and by the load balancing of first path to the second path, therefore, the present invention is also
It can be improved the harmony of VXLAN network path load.
Referring to FIG. 8, the block diagram of the message process device 800 provided it illustrates another embodiment of the invention.It is described
Message process device 800 can pass through the second exchange of software, hardware or both being implemented in combination in implementation environment shown in Fig. 1
The some or all of function of machine.There are at least two equative routes between the second switch and the first interchanger, it is described
Message process device 800 may include: the first receiving module 810, obtain module 820, sending module 830 and the second receiving module
840。
First receiving module 810, described in being received by the first path at least two equative routes
The first VXLAN message that first interchanger is sent.
The acquisition module 820, the first VXLAN message for being received according to first receiving module 810
The 2nd VXLAN message is obtained, the 2nd VXLAN message is for notifying second switch described in first interchanger to receive institute
State the first VXLAN message.
The sending module 830, described for sending that the acquisition module 820 is got to first interchanger
Two VXLAN messages, in order to which first interchanger judges whether the first path meets according to the 2nd VXLAN message
Path switching condition.
Second receiving module 840, for when the first path meets path switching condition, by it is described at least
What the second path of two articles of equative routes received that first interchanger sends belongs to same data with the first VXLAN message
The subsequent VXLAN message of stream.
Optionally, the first VXLAN message includes: original message and identification information, and the identification information is for identification
First VXLAN message, the 2nd VXLAN message include: type code position and the identification information, the type code position
Value is the first preset value, and the type of message that first preset value is used to indicate the 2nd VXLAN message is respond style.
Optionally, the first VXLAN message is obtained by the tunnel original message packaging V XLAN head, institute
The identification information for stating the first VXLAN message carries in the reserved field of the tunnel the VXLAN head of the first VXLAN message;
The reserved field of the tunnel the VXLAN head of the 2nd VXLAN message includes the mark letter of the first VXLAN message
Breath, the type code position carry in the attribute field of the tunnel the VXLAN head of the 2nd VXLAN message.
Optionally, the acquisition module 820, comprising:
Generation unit 821, for generating the 2nd VXLAN message according to the first VXLAN message;Or,
Encapsulation unit 822 is detected, whether there is reversed message, institute in the transmit queue for detecting the second switch
Stating outer layer purpose internet protocol address in the transmit queue that reversed message is the second switch is first exchange
The message of the IP address of machine, there are when the reversed message in the transmit queue, in the tunnel VXLAN of the reversed message
The identification information of the first VXLAN message is added in head and the type code position obtains the 2nd VXLAN message.
Optionally, the first VXLAN message further include: type code position, the type code position are located at described first
In the attribute field of the tunnel the VXLAN head of VXLAN message, the value of the type code position is the second preset value, and described second is pre-
If it is request type, described device that value, which is used to indicate type of message, further include:
Judgment module 850, the type of message indicated for judging the value of the type code position in the first VXLAN message
It whether is request type;
Trigger module 860, for judging to obtain type code in the first VXLAN message in the judgment module 850
When the type of message of the value instruction of position is request type, the acquisition module 820 is triggered according to the first VXLAN Receive message
2nd VXLAN message.
Message process device provided in an embodiment of the present invention receives the by first path at least two articles of equative routes
The first VXLAN message that one interchanger is sent sends the according to the first VXLAN Receive message and to first interchanger
Two VXLAN messages, the 2nd VXLAN message is for notifying the first interchanger second switch to receive described first
VXLAN message, in order to which first interchanger judges whether the first path meets road according to the 2nd VXLAN message
Diameter switching condition and when the first path meets path switching condition, passes through the second tunnel of at least two equative routes
Diameter receives the subsequent VXLAN message for belonging to same data flow with the first VXLAN message that first interchanger is sent;By
The second path at least two equative routes described in sends the subsequent VXLAN message to the second switch
When, the shunting to data flow is realized, and can guarantee the latter sub-data flow in previous sub-data flow by second switch
It is just sent after reception, therefore, the present invention is able to solve the prior art and sends system caused by sub-data flow using prefixed time interval
The problem of reduced performance of uniting or packet out-ordering, achievees the effect that improve system performance, avoids packet out-ordering.
Further, due to the embodiment of the present invention by the second path at least two equative routes to described
Second switch sends subsequent VXLAN message, and by the load balancing of first path to the second path, therefore, the present invention is also
It can be improved the harmony of VXLAN network path load.
Further, since the embodiment of the present invention is determining that can be carried out path when reaching path switching condition switches,
Therefore, compared with the prior art, the embodiment of the present invention forms sub-data flow after handover, and the flexible in size of each sub-data flow is true
It is fixed, and when the embodiment of the present invention shunts long-term data flow by switching, the sub-data flow of formation more evenly, more
Effectively realize the load balancing of each equative route.
It should be understood that message process device provided by the above embodiment is when handling message, only with above-mentioned each function
The division progress of module can according to need and for example, in practical application by above-mentioned function distribution by different function moulds
Block is completed, i.e., the internal structure of equipment is divided into different functional modules, to complete all or part of function described above
Energy.In addition, message process device provided by the above embodiment and message processing method embodiment belong to same design, it is specific real
Existing process is detailed in embodiment of the method, and which is not described herein again.
Referring to FIG. 9, it illustrates the block diagrams of message process device 900 provided by one embodiment of the present invention.The report
Literary processing unit 900 can be applied in the first interchanger shown in FIG. 1, deposit between first interchanger and second switch
In at least two equative routes, first interchanger can be leaf interchanger, and the message process device 900 may include
But be not limited to: transmitter 910, receiver 920 and processor 930, the processor 930 respectively with the transmitter 910 and institute
State the coupling of receiver 920.
The transmitter 910, for being exchanged by the first path at least described two equative routes to described second
Machine sends the first VXLAN message.
The receiver 920, second sent for receiving the second switch according to the first VXLAN message
VXLAN message, the 2nd VXLAN message is for notifying second switch described in first interchanger to receive described first
VXLAN message.
The processor 930, for judging whether the first path meets path and cut according to the 2nd VXLAN message
Change condition.
The processor 930, for meeting path switching condition in the first path and receiving and described first
When VXLAN message belongs to the subsequent VXLAN message of same data flow, pass through the second path at least two equative routes
The subsequent VXLAN message is sent to the second switch.
Message process device provided in an embodiment of the present invention, by the first path at least two equative routes to second
Interchanger sends the first VXLAN message, receives the second switch is sent according to the first VXLAN message second
VXLAN message judges whether the first path meets path switching condition according to the 2nd VXLAN message, if described
One path meets path switching condition, then is receiving the subsequent VXLAN for belonging to same data flow with the first VXLAN message
When message, the subsequent VXLAN is sent to the second switch by the second path at least two equative routes
Message;It is described subsequent due to being sent by the second path at least two equative routes to the second switch
When VXLAN message, the shunting to data flow is realized, and can guarantee the latter sub-data flow in previous sub-data flow by
Two interchangers are just sent after receiving, and therefore, the present invention is able to solve the prior art and sends sub-data flow using prefixed time interval
The problem of caused system performance reduction or packet out-ordering, achievees the effect that improve system performance, avoids packet out-ordering.
Further, due to the embodiment of the present invention by the second path at least two equative routes to described
Second switch sends subsequent VXLAN message, by the load balancing of the first path to the second path, therefore, this hair
The bright harmony that can also improve the load of VXLAN network path.
Further, the first VXLAN message includes: original message and identification information, and the identification information is for knowing
The not described first VXLAN message, the 2nd VXLAN message include: type code position and the identification information, the type mark
The value of will position is the first preset value, and first preset value is used to indicate the type of message of the 2nd VXLAN message as response
Type,
The processor 930, for recording the identification information of the first VXLAN message in transmission table;
The processor 930, the type of message that the value for the type code position in the 2nd VXLAN message indicates
When for respond style, judge that the first VXLAN in the identification information in the 2nd VXLAN message and the transmission table is reported
Whether the identification information of text is identical;
The processor 930, described in the identification information and the transmission table in the 2nd VXLAN message
When the identification information of first VXLAN message is identical, determine that the first path meets path switching condition.
Optionally, the processor 930, in the 2nd VXLAN message identification information and record described in
When the identification information of first VXLAN message is identical, the mark including the first VXLAN message is deleted from the transmission table and is believed
The list item of breath;Or,
The identification information of the processor 930, the first VXLAN message for recording in the transmission table shows
When the number for having sent message of data flow belonging to the first VXLAN message is more than preset value, empty in the transmission table
The identification information of the first VXLAN message of record.
Optionally, the first VXLAN message is obtained by the tunnel original message packaging V XLAN head, institute
The identification information for stating the first VXLAN message carries in the reserved field of the tunnel the VXLAN head of the first VXLAN message;
The reserved field of the tunnel the VXLAN head of the 2nd VXLAN message includes the mark letter of the first VXLAN message
Breath, the type code position carry in the attribute field of the tunnel the VXLAN head of the 2nd VXLAN message.
Optionally, the 2nd VXLAN message is to be generated by the second switch according to the first VXLAN message
's;Or,
The 2nd VXLAN message is that the second switch is deposited in the transmit queue for detecting the second switch
In reversed message, added in the tunnel the VXLAN head of the reversed message the first VXLAN message identification information and
What the type code position obtained, the reversed message is outer layer purpose internet protocol in the transmit queue of the second switch
Discuss the message for the IP address that IP address is first interchanger.
Optionally, the first VXLAN message further include: type code position, the type code position are located at described first
In the attribute field of the tunnel the VXLAN head of VXLAN message, the value of the type code position is the second preset value, and described second is pre-
If it is request type that value, which is used to indicate type of message,.
Message process device provided in an embodiment of the present invention, by the first path at least two equative routes to second
Interchanger sends the first VXLAN message, receives the second switch is sent according to the first VXLAN message second
VXLAN message judges whether the first path meets path switching condition according to the 2nd VXLAN message, if described
One path meets path switching condition, then is receiving the subsequent VXLAN for belonging to same data flow with the first VXLAN message
When message, the subsequent VXLAN is sent to the second switch by the second path at least two equative routes
Message;It is described subsequent due to being sent by the second path at least two equative routes to the second switch
When VXLAN message, the shunting to data flow is realized, and can guarantee the latter sub-data flow in previous sub-data flow by
Two interchangers are just sent after receiving, and therefore, the present invention is able to solve the prior art and sends sub-data flow using prefixed time interval
The problem of caused system performance reduction or packet out-ordering, achievees the effect that improve system performance, avoids packet out-ordering.
Further, due to the embodiment of the present invention by the second path at least two equative routes to described
Second switch sends the subsequent VXLAN message, by the load balancing of the first path to the second path, therefore,
The present invention can also improve the harmony of VXLAN network path load.
Further, since the embodiment of the present invention is determining that can be carried out path when reaching path switching condition switches,
Therefore, compared with the prior art, the embodiment of the present invention forms sub-data flow after handover, and the flexible in size of each sub-data flow is true
It is fixed, and when the embodiment of the present invention shunts long-term data flow by switching, the sub-data flow of formation more evenly, more
Effectively realize the load balancing of each equative route.
Referring to FIG. 10, the block diagram of the message process device 1000 provided it illustrates further embodiment of the present invention.Institute
Stating message process device 1000 can be applied in second switch shown in FIG. 1, the second switch and the first interchanger
Between exist at least two equative routes, the second switch can be leaf interchanger, the message process device 1000
It can include but is not limited to: receiver 1010, processor 1020 and transmitter 1030, the receiver 1010 and the transmitter
1030 couple with the processor 1020 respectively.
The receiver 1010 is handed over for receiving described first by the first path at least two equative routes
It changes planes the first VXLAN message of transmission.
The processor 1020, for according to the 2nd VXLAN message of the first VXLAN Receive message, described second
VXLAN message is for notifying second switch described in first interchanger to receive the first VXLAN message.
The transmitter 1030, for sending the 2nd VXLAN message to first interchanger, in order to described the
One interchanger judges whether the first path meets path switching condition according to the 2nd VXLAN message.
The receiver 1010, for passing through described at least two when the first path meets path switching condition
What the second path of equative route received that first interchanger sends belongs to same data flow with the first VXLAN message
Subsequent VXLAN message.
Message process device provided in an embodiment of the present invention receives the by first path at least two articles of equative routes
The first VXLAN message that one interchanger is sent sends the according to the first VXLAN Receive message and to first interchanger
Two VXLAN messages, the 2nd VXLAN message is for notifying the first interchanger second switch to receive described first
VXLAN message, in order to which first interchanger judges whether the first path meets road according to the 2nd VXLAN message
Diameter switching condition and when the first path meets path switching condition, passes through the second tunnel of at least two equative routes
Diameter receives the subsequent VXLAN message for belonging to same data flow with the first VXLAN message that first interchanger is sent;By
The second path at least two equative routes described in sends the subsequent VXLAN message to the second switch
When, the shunting to data flow is realized, and can guarantee the latter sub-data flow in previous sub-data flow by second switch
It is just sent after reception, therefore, the present invention is able to solve the prior art and sends system caused by sub-data flow using prefixed time interval
The problem of reduced performance of uniting or packet out-ordering, achievees the effect that improve system performance, avoids packet out-ordering.
Further, due to the embodiment of the present invention by the second path at least two equative routes to described
Second switch sends subsequent VXLAN message, and by the load balancing of first path to the second path, therefore, the present invention is also
It can be improved the harmony of VXLAN network path load.
Further, the first VXLAN message includes: original message and identification information, and the identification information is for knowing
The not described first VXLAN message, the 2nd VXLAN message include: type code position and the identification information, the type mark
The value of will position is the first preset value, and first preset value is used to indicate the type of message of the 2nd VXLAN message as response
Type.
Optionally, the first VXLAN message is obtained by the tunnel original message packaging V XLAN head, institute
The identification information for stating the first VXLAN message carries in the reserved field of the tunnel the VXLAN head of the first VXLAN message;
The reserved field of the tunnel the VXLAN head of the 2nd VXLAN message includes the mark letter of the first VXLAN message
Breath, the type code position carry in the attribute field of the tunnel the VXLAN head of the 2nd VXLAN message.
Optionally, the processor 1020, for generating the 2nd VXLAN message according to the first VXLAN message;
Or,
The processor 1020 whether there is reversed message, institute in the transmit queue for detecting the second switch
Stating outer layer purpose internet protocol address in the transmit queue that reversed message is the second switch is first exchange
The message of the IP address of machine, there are when reversed message described in the transmit queue, in the tunnel VXLAN of the reversed message
The identification information of the first VXLAN message is added in head and the type code position obtains the 2nd VXLAN message.
Optionally, the first VXLAN message further include: type code position, the type code position are located at described first
In the attribute field of the tunnel the VXLAN head of VXLAN message, the value of the type code position is the second preset value, and described second is pre-
If it is request type that value, which is used to indicate type of message,
The processor 1020, the message indicated for judging the value of the type code position in the first VXLAN message
Whether type is request type;
The processor 1020, the message class that the value for the type code position in the first VXLAN message indicates
When type is request type, according to the 2nd VXLAN message described in the first VXLAN Receive message.
Message process device provided in an embodiment of the present invention receives the by first path at least two articles of equative routes
The first VXLAN message that one interchanger is sent sends the according to the first VXLAN Receive message and to first interchanger
Two VXLAN messages, the 2nd VXLAN message is for notifying the first interchanger second switch to receive described first
VXLAN message, in order to which first interchanger judges whether the first path meets road according to the 2nd VXLAN message
Diameter switching condition and when the first path meets path switching condition, passes through the second tunnel of at least two equative routes
Diameter receives the subsequent VXLAN message for belonging to same data flow with the first VXLAN message that first interchanger is sent;By
The second path at least two equative routes described in sends the subsequent VXLAN message to the second switch
When, the shunting to data flow is realized, and can guarantee the latter sub-data flow in previous sub-data flow by second switch
It is just sent after reception, therefore, the present invention is able to solve the prior art and sends system caused by sub-data flow using prefixed time interval
The problem of reduced performance of uniting or packet out-ordering, achievees the effect that improve system performance, avoids packet out-ordering.
Further, due to the embodiment of the present invention by the second path at least two equative routes to described
Second switch sends subsequent VXLAN message, and by the load balancing of first path to the second path, therefore, the present invention is also
It can be improved the harmony of VXLAN network path load.
Further, since the embodiment of the present invention is determining that can be carried out path when reaching path switching condition switches,
Therefore, compared with the prior art, the embodiment of the present invention forms sub-data flow after handover, and the flexible in size of each sub-data flow is true
It is fixed, and when the embodiment of the present invention shunts long-term data flow by switching, the sub-data flow of formation more evenly, more
Effectively realize the load balancing of each equative route.
Further, since the embodiment of the present invention is determining that can be carried out path when reaching path switching condition switches,
Therefore, compared with the prior art, the embodiment of the present invention forms sub-data flow after handover, and the flexible in size of each sub-data flow is true
It is fixed, and when the embodiment of the present invention shunts long-term data flow by switching, the sub-data flow of formation more evenly, more
Effectively realize the load balancing of each equative route.
Figure 11 is please referred to, it illustrates the structural schematic diagrams of message handling system provided by one embodiment of the present invention.Institute
Message handling system 1100 is stated including at least the first interchanger 1110 and second switch 1120, first interchanger 1110 with
It is connected between the second switch 1120 by IP network,
In one possible implementation, first interchanger 1110 includes the message as described in Fig. 5 or Fig. 6
Processing unit;The second switch 1120 includes the message process device as described in Fig. 7 or Fig. 8.
In alternatively possible implementation, first interchanger 1110 includes at message as depicted in figure 9
Manage device;The second switch 1120 includes the message process device as described in 10.
Message handling system provided in an embodiment of the present invention, by the first path at least two equative routes to second
Interchanger sends the first VXLAN message, receives the second switch is sent according to the first VXLAN message second
VXLAN message judges whether the first path meets path switching condition according to the 2nd VXLAN message, if described
One path meets path switching condition, then is receiving the subsequent VXLAN for belonging to same data flow with the first VXLAN message
When message, the subsequent VXLAN is sent to the second switch by the second path at least two equative routes
Message;It is described subsequent due to being sent by the second path at least two equative routes to the second switch
When VXLAN message, the shunting to data flow is realized, and can guarantee the latter sub-data flow in previous sub-data flow by
Two interchangers are just sent after receiving, and therefore, the present invention is able to solve the prior art and sends sub-data flow using prefixed time interval
The problem of caused system performance reduction or packet out-ordering, achievees the effect that improve system performance, avoids packet out-ordering.
Further, due to the embodiment of the present invention by the second path at least two equative routes to described
Second switch sends subsequent VXLAN message, by the load balancing of the first path to the second path, therefore, this hair
The bright harmony that can also improve the load of VXLAN network path.
The embodiment of the invention also provides a kind of message processor, which includes transceiver, memory and difference
The processor being connect with transceiver, memory, wherein batch processing code is stored in memory, and the processor is for calling
The program code stored in memory, for executing above-mentioned message processing method.
Those of ordinary skill in the art will appreciate that realizing that all or part of the steps of above-described embodiment can pass through hardware
It completes, relevant hardware can also be instructed to complete by program, the program can store in a kind of computer-readable
In storage medium, storage medium mentioned above can be read-only memory, disk or CD etc..
The foregoing is merely presently preferred embodiments of the present invention, is not intended to limit the invention, it is all in spirit of the invention and
Within principle, any modification, equivalent replacement, improvement and so on be should all be included in the protection scope of the present invention.
Claims (23)
1. a kind of message processing method, which is characterized in that applied to the first interchanger in virtual expansible local area network VXLAN,
There are at least two equative routes between first interchanger and second switch, which comprises
The first VXLAN message is sent to the second switch by the first path at least two articles of equative routes;
Receive the 2nd VXLAN message that the second switch is sent according to the first VXLAN message, the 2nd VXLAN
Message is for notifying second switch described in first interchanger to receive the first VXLAN message;
Judge whether the first path meets path switching condition according to the 2nd VXLAN message, the path switches item
Part includes: time-switching condition and state switching condition, and the time-switching condition is used to indicate first interchanger and has connect
Receive the 2nd VXLAN message;The state switching condition is used to indicate the first path congestion, alternatively, the state
Switching condition is used to indicate the load imbalance in each path at least two equative routes;
If the first path meets path switching condition, belong to same number with the first VXLAN message receiving
According to stream subsequent VXLAN message when, sent out by the second path at least two equative routes to the second switch
Send the subsequent VXLAN message.
2. the method according to claim 1, wherein the first VXLAN message includes: original message and mark
Information, the identification information the first VXLAN message for identification, the 2nd VXLAN message include: type code position and
Identification information, the value of the type code position are the first preset value, and first preset value is used to indicate the 2nd VXLAN report
The type of message of text is respond style,
Before receiving the 2nd VXLAN message that the second switch is sent according to the first VXLAN message, the method
Further include:
The identification information of the first VXLAN message is recorded in transmission table;
It is described to judge whether the first path meets path switching condition and include:
When the type of message of the value instruction of type code position in the 2nd VXLAN message is respond style, described in judgement
Whether the identification information in the 2nd VXLAN message is identical as the identification information of the first VXLAN message in the transmission table;
If the mark of the identification information in the 2nd VXLAN message and the first VXLAN message in the transmission table
Information is identical, it is determined that the first path meets path switching condition.
3. according to the method described in claim 2, it is characterized in that, receiving the second switch according to described first described
After the 2nd VXLAN message that VXLAN message is sent, the method also includes:
When identification information in the 2nd VXLAN message is identical as the identification information of the first VXLAN message of record,
The list item of the identification information including the first VXLAN message is deleted from the transmission table;Or,
The identification information of the first VXLAN message recorded in the transmission table shows belonging to the first VXLAN message
Data flow the number for having sent message be more than preset value when, empty recorded in the transmission table the first VXLAN report
The identification information of text.
4. according to the method in claim 2 or 3, which is characterized in that
The first VXLAN message is obtained by the tunnel original message packaging V XLAN head, the first VXLAN
The identification information of message carries in the reserved field of the tunnel the VXLAN head of the first VXLAN message;
The reserved field of the tunnel the VXLAN head of the 2nd VXLAN message includes the identification information of the first VXLAN message,
The type code position carries in the attribute field of the tunnel the VXLAN head of the 2nd VXLAN message.
5. according to the method described in claim 4, it is characterized in that,
The 2nd VXLAN message is to be generated by the second switch according to the first VXLAN message;Or,
The 2nd VXLAN message is that the second switch exists instead in the transmit queue for detecting the second switch
When to message, the identification information of the first VXLAN message and described is added in the tunnel the VXLAN head of the reversed message
Type code position obtains, and the reversed message is outer layer purpose Internet protocol IP in the transmit queue of the second switch
Address is the message of the IP address of first interchanger.
6. according to the method described in claim 4, it is characterized in that, the first VXLAN message further include: type code position,
The type code position is located in the attribute field of the tunnel the VXLAN head of the first VXLAN message, the type code position
Value is the second preset value, and it is request type that second preset value, which is used to indicate type of message,.
7. a kind of message processing method, which is characterized in that applied to the second switch in virtual expansible local area network VXLAN,
There are at least two equative routes between the second switch and the first interchanger, which comprises
The first VXLAN report that first interchanger is sent is received by the first path at least two articles of equative routes
Text;
According to the 2nd VXLAN message of the first VXLAN Receive message, the 2nd VXLAN message is for notifying described first
Second switch described in interchanger receives the first VXLAN message;
The 2nd VXLAN message is sent to first interchanger, in order to which first interchanger is according to described second
VXLAN message judges whether the first path meets path switching condition, and the path switching condition includes: time-switching item
Part and state switching condition, the time-switching condition are used to indicate first interchanger and have received the 2nd VXLAN
Message;The state switching condition is used to indicate the first path congestion, alternatively, the state switching condition is used to indicate institute
State the load imbalance in each path at least two equative routes;
When the first path meets path switching condition, institute is received by the second path of at least two equative routes
State the subsequent VXLAN message for belonging to same data flow with the first VXLAN message of the first interchanger transmission.
8. the method according to the description of claim 7 is characterized in that the first VXLAN message includes: original message and mark
Information, the identification information the first VXLAN message for identification, the 2nd VXLAN message include: type code position and
Identification information, the value of the type code position are the first preset value, and first preset value is used to indicate the 2nd VXLAN report
The type of message of text is respond style.
9. according to the method described in claim 8, it is characterized in that,
The first VXLAN message is obtained by the tunnel original message packaging V XLAN head, the first VXLAN
The identification information of message carries in the reserved field of the tunnel the VXLAN head of the first VXLAN message;
The reserved field of the tunnel the VXLAN head of the 2nd VXLAN message includes the identification information of the first VXLAN message,
The type code position carries in the attribute field of the tunnel the VXLAN head of the 2nd VXLAN message.
10. according to the method described in claim 9, it is characterized in that, described according to the first VXLAN Receive message second
VXLAN message, comprising:
The 2nd VXLAN message is generated according to the first VXLAN message;Or,
It detects with the presence or absence of reversed message in the transmit queue of the second switch, the reversed message is second exchange
Outer layer purpose internet protocol address is the message of the IP address of first interchanger in the transmit queue of machine, in the hair
It send in queue there are when the reversed message, adds the first VXLAN message in the tunnel the VXLAN head of the reversed message
Identification information and the type code position obtain the 2nd VXLAN message.
11. method according to claim 9 or 10, which is characterized in that the first VXLAN message further include: type mark
Will position, the type code position are located in the attribute field of the tunnel the VXLAN head of the first VXLAN message, the type mark
The value of will position is the second preset value, and it is request type that second preset value, which is used to indicate type of message, described according to described the
Before the 2nd VXLAN message of one VXLAN Receive message, the method also includes:
Whether the type of message for judging the value instruction of the type code position in the first VXLAN message is request type;
If the type of message that the value of the type code position in the first VXLAN message indicates is request type, institute is executed
The step of stating according to the first VXLAN the 2nd VXLAN message of Receive message.
12. a kind of message process device, which is characterized in that described device is the first friendship in virtual expansible local area network VXLAN
It changes planes, there is at least two equative routes, described device between first interchanger and second switch includes:
First sending module, for being sent by the first path at least two equative routes to the second switch
First VXLAN message;
Receiving module, the 2nd VXLAN message sent for receiving the second switch according to the first VXLAN message,
The 2nd VXLAN message is for notifying second switch described in first interchanger to receive the first VXLAN message;
Judgment module, for judging whether the first path meets path switching condition according to the 2nd VXLAN message, institute
Stating path switching condition includes: time-switching condition and state switching condition, and the time-switching condition is used to indicate described
One interchanger has received the 2nd VXLAN message;The state switching condition is used to indicate the first path congestion, or
Person, the state switching condition are used to indicate the load imbalance in each path at least two equative routes;
Second sending module is reported for meeting path switching condition in the first path and receiving with the first VXLAN
When text belongs to the subsequent VXLAN message of same data flow, by the second path at least two equative routes to described
Second switch sends the subsequent VXLAN message.
13. device according to claim 12, which is characterized in that the first VXLAN message includes: original message and mark
Know information, the identification information the first VXLAN message for identification, the 2nd VXLAN message includes: type code position
And identification information, the value of the type code position is the first preset value, and first preset value is used to indicate the 2nd VXLAN
The type of message of message is respond style, described device further include:
Logging modle, for recording the identification information of the first VXLAN message in transmission table;
The judgment module, comprising:
Judging unit, the type of message that the value for the type code position in the 2nd VXLAN message indicates are response class
When type, the mark of the identification information in the 2nd VXLAN message and the first VXLAN message in the transmission table is judged
Whether information is identical;
Determination unit, for the first VXLAN in the identification information and the transmission table in the 2nd VXLAN message
When the identification information of message is identical, determine that the first path meets path switching condition.
14. device according to claim 13, which is characterized in that described device further include:
Removing module, the mark of the first VXLAN message for identification information and record in the 2nd VXLAN message
When knowledge information is identical, the list item of the identification information including the first VXLAN message is deleted from the transmission table;Or,
Module is emptied, the identification information of the first VXLAN message for recording in the transmission table shows described first
When the number for having sent message of data flow belonging to VXLAN message is more than preset value, the institute recorded in the transmission table is emptied
State the identification information of the first VXLAN message.
15. device described in 3 or 14 according to claim 1, which is characterized in that
The first VXLAN message is obtained by the tunnel original message packaging V XLAN head, the first VXLAN
The identification information of message carries in the reserved field of the tunnel the VXLAN head of the first VXLAN message;
The reserved field of the tunnel the VXLAN head of the 2nd VXLAN message includes the identification information of the first VXLAN message,
The type code position carries in the attribute field of the tunnel the VXLAN head of the 2nd VXLAN message.
16. device according to claim 15, which is characterized in that
The 2nd VXLAN message is to be generated by the second switch according to the first VXLAN message;Or,
The 2nd VXLAN message is that the second switch exists instead in the transmit queue for detecting the second switch
When to message, the identification information of the first VXLAN message and described is added in the tunnel the VXLAN head of the reversed message
Type code position obtains, and the reversed message is outer layer purpose Internet protocol IP in the transmit queue of the second switch
Address is the message of the IP address of first interchanger.
17. device according to claim 15, which is characterized in that the first VXLAN message further include: type code
Position, the type code position are located in the attribute field of the tunnel the VXLAN head of the first VXLAN message, the type code
The value of position is the second preset value, and it is request type that second preset value, which is used to indicate type of message,.
18. a kind of message process device, which is characterized in that described device is the second friendship in virtual expansible local area network VXLAN
It changes planes, there is at least two equative routes, described device between the second switch and the first interchanger includes:
First receiving module, for receiving the first interchanger hair by the first path at least two equative routes
The first VXLAN message sent;
Module is obtained, for according to the 2nd VXLAN message of the first VXLAN Receive message, the 2nd VXLAN message to be used for
Second switch described in first interchanger is notified to receive the first VXLAN message;
Sending module, for sending the 2nd VXLAN message to first interchanger, in order to the first interchanger root
Judge whether the first path meets path switching condition according to the 2nd VXLAN message, the path switching condition includes:
Time-switching condition and state switching condition, the time-switching condition be used to indicate first interchanger have received it is described
2nd VXLAN message;The state switching condition is used to indicate the first path congestion, alternatively, the state switching condition
It is used to indicate the load imbalance in each path at least two equative routes;
Second receiving module, for passing through described at least two roads of equal value when the first path meets path switching condition
What the second path of diameter received that first interchanger sends belongs to the subsequent of same data flow with the first VXLAN message
VXLAN message.
19. device according to claim 18, which is characterized in that the first VXLAN message includes: original message and mark
Know information, the identification information the first VXLAN message for identification, the 2nd VXLAN message includes: type code position
And identification information, the value of the type code position is the first preset value, and first preset value is used to indicate the 2nd VXLAN
The type of message of message is respond style.
20. device according to claim 19, which is characterized in that
The first VXLAN message is obtained by the tunnel original message packaging V XLAN head, the first VXLAN
The identification information of message carries in the reserved field of the tunnel the VXLAN head of the first VXLAN message;
The reserved field of the tunnel the VXLAN head of the 2nd VXLAN message includes the identification information of the first VXLAN message,
The type code position carries in the attribute field of the tunnel the VXLAN head of the 2nd VXLAN message.
21. device according to claim 20, which is characterized in that the acquisition module, comprising:
Generation unit, for generating the 2nd VXLAN message according to the first VXLAN message;Or,
Encapsulation unit is detected, whether there is reversed message in the transmit queue for detecting the second switch, it is described reversed
Message is the IP that outer layer purpose internet protocol address is first interchanger in the transmit queue of the second switch
The message of address adds in the tunnel the VXLAN head of the reversed message there are when the reversed message in the transmit queue
The identification information and the type code position for adding the first VXLAN message obtain the 2nd VXLAN message.
22. the device according to claim 20 or 21, which is characterized in that the first VXLAN message further include: type mark
Will position, the type code position are located in the attribute field of the tunnel the VXLAN head of the first VXLAN message, the type mark
The value of will position is the second preset value, and it is request type, described device that second preset value, which is used to indicate type of message, further include:
Judgment module, for judge the type code position in the first VXLAN message value indicate type of message whether be
Request type;
Trigger module, the type of message that the value for the type code position in the first VXLAN message indicates are request class
When type, the acquisition module is triggered according to the 2nd VXLAN message of the first VXLAN Receive message.
23. a kind of message handling system, the system includes at least the first interchanger and second switch, first interchanger
It is connect between the second switch by IP network,
First interchanger includes the message process device as described in any in claim 12 to 17;
The second switch includes the message process device as described in any in claim 18 to 22.
Priority Applications (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410557950.4A CN105591974B (en) | 2014-10-20 | 2014-10-20 | Message processing method, apparatus and system |
PCT/CN2015/081677 WO2016062106A1 (en) | 2014-10-20 | 2015-06-17 | Packet processing method, device and system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410557950.4A CN105591974B (en) | 2014-10-20 | 2014-10-20 | Message processing method, apparatus and system |
Publications (2)
Publication Number | Publication Date |
---|---|
CN105591974A CN105591974A (en) | 2016-05-18 |
CN105591974B true CN105591974B (en) | 2019-02-05 |
Family
ID=55760233
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201410557950.4A Active CN105591974B (en) | 2014-10-20 | 2014-10-20 | Message processing method, apparatus and system |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN105591974B (en) |
WO (1) | WO2016062106A1 (en) |
Families Citing this family (12)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107634912B (en) * | 2016-07-19 | 2020-04-28 | 华为技术有限公司 | Load balancing method, device and equipment |
US10511668B2 (en) * | 2016-10-07 | 2019-12-17 | Hyundai Motor Company | Method of transmitting and receiving data in vehicle network and apparatus for the same |
CN108206781B (en) | 2016-12-16 | 2021-02-26 | 华为技术有限公司 | Method and equipment for selecting forwarding path |
CN108989237B (en) * | 2017-06-01 | 2021-03-23 | 华为技术有限公司 | Method and device for data transmission |
CN107547342B (en) * | 2017-06-27 | 2020-09-08 | 新华三技术有限公司 | Message broadcasting method and device based on VXLAN tunnel |
CN109039707A (en) * | 2018-07-04 | 2018-12-18 | 烽火通信科技股份有限公司 | The method and system of the rapid active-standby switching of Vxlan channel service |
US10992496B2 (en) | 2019-05-14 | 2021-04-27 | International Business Machines Corporation | Tuning TCP largesend parameter in VXLan cloud environments |
CN110417674B (en) * | 2019-07-26 | 2022-06-21 | 新华三技术有限公司合肥分公司 | Data traffic sharing method and device |
CN112511449B (en) * | 2019-09-16 | 2022-12-30 | 华为技术有限公司 | Message flow out-of-order detection method, message processing method and device |
CN110661732B (en) * | 2019-09-20 | 2022-05-27 | 浪潮思科网络科技有限公司 | Device and method for scheduling flow among working groups based on MAC (media access control) VLAN (virtual local area network) |
CN113691640B (en) * | 2020-05-19 | 2023-04-25 | 阿里巴巴集团控股有限公司 | Communication method, communication device, electronic equipment and computer readable storage medium |
CN117041140B (en) * | 2023-10-10 | 2024-01-30 | 腾讯科技(深圳)有限公司 | Data message transmission method, related device, equipment and storage medium |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2005260321A (en) * | 2004-03-09 | 2005-09-22 | Nec Corp | Alternative control system of label path network |
CN101741709A (en) * | 2008-11-06 | 2010-06-16 | 华为技术有限公司 | Method and system for establishing label switched path and network node |
CN102857416A (en) * | 2012-09-18 | 2013-01-02 | 中兴通讯股份有限公司 | Method for implementing virtual network and virtual network |
CN103368863A (en) * | 2013-07-09 | 2013-10-23 | 杭州华三通信技术有限公司 | Method and equipment for sharing load in SPB (Shortest Path Bridging) network |
EP2775663A1 (en) * | 2011-12-16 | 2014-09-10 | Huawei Technologies Co., Ltd. | Method and device for recovering customer service |
Family Cites Families (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20060092831A1 (en) * | 2004-11-01 | 2006-05-04 | Tekelec | Methods, systems, and computer program products for substitution of card-based telephony bearer channel switch modules in a manner that preserves stable calls |
CN101155109B (en) * | 2006-09-30 | 2010-04-21 | 华为技术有限公司 | Ethernet switching system and equipment |
-
2014
- 2014-10-20 CN CN201410557950.4A patent/CN105591974B/en active Active
-
2015
- 2015-06-17 WO PCT/CN2015/081677 patent/WO2016062106A1/en active Application Filing
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2005260321A (en) * | 2004-03-09 | 2005-09-22 | Nec Corp | Alternative control system of label path network |
CN101741709A (en) * | 2008-11-06 | 2010-06-16 | 华为技术有限公司 | Method and system for establishing label switched path and network node |
EP2775663A1 (en) * | 2011-12-16 | 2014-09-10 | Huawei Technologies Co., Ltd. | Method and device for recovering customer service |
CN102857416A (en) * | 2012-09-18 | 2013-01-02 | 中兴通讯股份有限公司 | Method for implementing virtual network and virtual network |
CN103368863A (en) * | 2013-07-09 | 2013-10-23 | 杭州华三通信技术有限公司 | Method and equipment for sharing load in SPB (Shortest Path Bridging) network |
Also Published As
Publication number | Publication date |
---|---|
CN105591974A (en) | 2016-05-18 |
WO2016062106A1 (en) | 2016-04-28 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN105591974B (en) | Message processing method, apparatus and system | |
KR101317969B1 (en) | Inter-node link aggregation system and method | |
CN104704779B (en) | Method and apparatus for accelerating the forwarding in software defined network | |
US6952397B2 (en) | Communication in a bidirectional ring network with single-direction receiving | |
US20160197812A1 (en) | Network status mapping | |
JPH118646A (en) | Bridge | |
CN106161275A (en) | Prediction for service quality exports packet classification | |
JP2004040766A (en) | System and method for determining destination of internet protocol packet | |
JP2002314571A5 (en) | ||
WO2012075204A1 (en) | Systems and methods for recovery from network changes | |
CN106134138A (en) | A kind of method, apparatus and system of congestion control | |
CN103888351B (en) | The method and device of multiple sessions is managed in the network based on Multi-path route | |
JP2020527918A (en) | Data flow transmission | |
CN108777646A (en) | Flux monitoring method and device | |
CN104852855B (en) | Jamming control method, device and equipment | |
WO2013013642A1 (en) | Method for processing inter-loop service and crossing node | |
CN102055676B (en) | Method and device for realizing load sharing in multiple spanning tree protocol (MSTP) networking environment | |
CN108540386A (en) | One kind preventing Business Stream interrupt method and device | |
CN103200107B (en) | Message transmitting method and message transmitting equipment | |
US8553539B2 (en) | Method and system for packet traffic congestion management | |
CN104247346B (en) | Pseudowire extended group messaging in a packet switched network | |
CN104468386B (en) | Flow equalization method and device in a kind of Ethernet virtualization internet network | |
CN102857415A (en) | Routing bridge and device and method for controlling media access control address study | |
CN102480471A (en) | Method for realizing QoS (quality of service) processing in monitoring RRPP (rapid ring protection protocol) ring and network node | |
JP5254916B2 (en) | Communication device and communication control method in ring network |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |