CN107547395A - A kind of message transmitting method, device and machinable medium - Google Patents

A kind of message transmitting method, device and machinable medium Download PDF

Info

Publication number
CN107547395A
CN107547395A CN201710497932.5A CN201710497932A CN107547395A CN 107547395 A CN107547395 A CN 107547395A CN 201710497932 A CN201710497932 A CN 201710497932A CN 107547395 A CN107547395 A CN 107547395A
Authority
CN
China
Prior art keywords
message
specific markers
interface
equipment
vxlan tunnels
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201710497932.5A
Other languages
Chinese (zh)
Other versions
CN107547395B (en
Inventor
黄李伟
王伟
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
New H3C Technologies Co Ltd
Original Assignee
New H3C Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by New H3C Technologies Co Ltd filed Critical New H3C Technologies Co Ltd
Priority to CN201710497932.5A priority Critical patent/CN107547395B/en
Publication of CN107547395A publication Critical patent/CN107547395A/en
Application granted granted Critical
Publication of CN107547395B publication Critical patent/CN107547395B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Mobile Radio Communication Systems (AREA)

Abstract

The disclosure provides a kind of message transmitting method, device and machinable medium, and this method includes:After message is received by first interface, it is determined that specific markers corresponding with the message;It is determined that VXLAN tunnels corresponding with the specific markers;The message for carrying the specific markers is sent to by the second equipment by the VXLAN tunnels, so that the second equipment determines second interface corresponding to the specific markers, and message is sent by the second interface.Pass through the technical scheme of the disclosure, message transmissions can be realized by specific markers, and it is no longer dependent on the study and forwarding of MAC Address, so as to greatly reduce the forwarding pressure of tabling look-up of equipment, reduce message transmissions mistake possibility, avoid the memory space of MAC forward tables from being occupied full, the MAC Address of different main frames conflict situations such as caused message transmissions abnormal problem.

Description

A kind of message transmitting method, device and machinable medium
Technical field
The present invention relates to communication technical field, more particularly, to a kind of message transmitting method, device and machine readable storage Medium.
Background technology
VXLAN (Virtual eXtensible Local Area Network, expansible Virtual Local Area Network) is to be based on IP network, using " MAC (Media Access Control, media access control) in UDP (User Datagram Protocol, UDP) " two-layer VPN (Virtual Private Network, the Virtual Private Network of packing forms Network) technology.VXLAN can be based on existing service provider or enterprise IP network, and two layers of interconnection are provided for scattered website, And business isolation can be provided for different tenants.
In VXLAN, the target MAC (Media Access Control) address for being normally based on message transmits the message, for example, VTEP (VXLAN Tunnel End Point, VXLAN endpoint of a tunnel) following MAC forward tables are arrived in study, and it is MAC1 receiving target MAC (Media Access Control) address Message after, then E-Packeted by interface A, receive target MAC (Media Access Control) address be MAC2 message after, then pass through VXLAN tunnels Road 1 E-Packets.
Table 1
MAC Address Outgoing interface
MAC1 Interface A
MAC2 VXLAN tunnels 1
But when a large amount of main frames be present, because the specification of MAC forward tables is limited, if the memory space of MAC forward tables It has been be occupied full that, then lead to not the MAC forwarding-table items for storing All hosts, then cause message transmissions abnormal.If moreover, not With the MAC Address conflict of main frame, message transmissions exception is also resulted in.
The content of the invention
The disclosure provides a kind of message transmitting method, and applied to the first equipment, methods described includes:
After message is received by first interface, it is determined that specific markers corresponding with the message;
It is determined that expansible Virtual Local Area Network VXLAN tunnels corresponding with the specific markers;Wherein, the VXLAN tunnels Road is the VXLAN tunnels between first equipment and the second equipment;
The message for carrying the specific markers is sent to by the second equipment by the VXLAN tunnels, so that the second equipment Second interface corresponding to the specific markers is determined, and message is sent by the second interface.
The disclosure provides a kind of message transmitting method, and applied to the second equipment, methods described includes:
Receive the message for the carrying specific markers that the first equipment is sent by expansible Virtual Local Area Network VXLAN tunnels; Wherein, the message is that the first equipment receives message by first interface, it is determined that specific markers corresponding with the message, and Sent by VXLAN tunnels corresponding with the specific markers;
The specific markers are parsed from the message, and determine second interface corresponding to the specific markers;
The message is sent by the second interface.
The disclosure provides a kind of message transmitting device, and applied to the first equipment, described device includes:
Determining module, for after message is received by first interface, it is determined that specific markers corresponding with the message; It is determined that expansible Virtual Local Area Network VXLAN tunnels corresponding with the specific markers;Wherein, the VXLAN tunnels are described VXLAN tunnels between first equipment and the second equipment;
Sending module, for the message for carrying the specific markers to be sent into described second by the VXLAN tunnels Equipment, so that second equipment determines second interface corresponding to the specific markers, and sent and reported by the second interface Text.
The disclosure provides a kind of message transmitting device, and applied to the second equipment, described device includes:
Receiving module, the carrying spy sent for receiving the first equipment by expansible Virtual Local Area Network VXLAN tunnels Calibrate the message of note;The message is that the first equipment receives message by first interface, it is determined that corresponding with the message special Calibration note, is sent by VXLAN tunnels corresponding with the specific markers;
Determining module, for parsing the specific markers from the message, and determine corresponding to the specific markers Second interface;Sending module, for sending the message by the second interface.
The disclosure provides a kind of machinable medium, applied to the first equipment, on the machinable medium Some computer instructions are stored with, the computer instruction is handled as follows when being performed:
After message is received by first interface, it is determined that specific markers corresponding with the message;
It is determined that expansible Virtual Local Area Network VXLAN tunnels corresponding with the specific markers;Wherein, the VXLAN tunnels Road is the VXLAN tunnels between first equipment and the second equipment;
The message for carrying the specific markers is sent to by the second equipment by the VXLAN tunnels, so that the second equipment Second interface corresponding to the specific markers is determined, and message is sent by the second interface.
The disclosure provides a kind of machinable medium, applied to the second equipment, on the machinable medium Some computer instructions are stored with, the computer instruction is handled as follows when being performed:
Receive the message for the carrying specific markers that the first equipment is sent by expansible Virtual Local Area Network VXLAN tunnels; Wherein, the message is that the first equipment receives message by first interface, it is determined that specific markers corresponding with the message, and Sent by VXLAN tunnels corresponding with the specific markers;
The specific markers are parsed from the message, and determine second interface corresponding to the specific markers;
The message is sent by the second interface.
,, can be by specific in the equipment at VXLAN tunnels both ends in the embodiment of the present disclosure based on above-mentioned technical proposal Mark realizes message transmissions, and is no longer dependent on the study and forwarding of MAC Address, so as to greatly reduce the forwarding pressure of tabling look-up of equipment Power, the possibility of message transmissions mistake is reduced, avoids the memory space of MAC forward tables from being occupied full, the MAC Address conflict of different main frames Situations such as caused message transmissions abnormal problem.
Brief description of the drawings
, below will be to the disclosure in order to clearly illustrate the embodiment of the present disclosure or technical scheme of the prior art The required accompanying drawing used is briefly described in embodiment or description of the prior art, it should be apparent that, in describing below Accompanying drawing is only some embodiments described in the disclosure, for those of ordinary skill in the art, can also be according to this public affairs These accompanying drawings for opening embodiment obtain other accompanying drawings.
Figure 1A and Figure 1B is the application scenarios schematic diagram in a kind of embodiment of the disclosure;
Fig. 2 is the flow chart of the message transmitting method in a kind of embodiment of the disclosure;
Fig. 3 A and Fig. 3 B are the application scenarios schematic diagrams in disclosure another embodiment;
Fig. 4 is the structure chart of the message transmitting device in a kind of embodiment of the disclosure;
Fig. 5 is the hardware structure diagram of the first equipment in a kind of embodiment of the disclosure;
Fig. 6 is the structure chart of the message transmitting device in disclosure another embodiment;
Fig. 7 is the hardware structure diagram of the second equipment in a kind of embodiment of the disclosure.
Embodiment
Purpose in the term that the disclosure uses merely for the sake of description specific embodiment, and the unrestricted disclosure.Moreover, " one kind " of singulative used in the disclosure and claims, " described " and "the" are also intended to including most forms, Unless context clearly shows that other implications.It is also understood that term "and/or" used herein refer to comprising one or Multiple associated list items purposes any or all may combine.
It will be appreciated that though various information, but this may be described using term first, second, third, etc. in the disclosure A little information should not necessarily be limited by these terms.These terms are only used for same type of information being distinguished from each other out.For example, do not departing from In the case of disclosure scope, the first information can also be referred to as the second information, and similarly, the second information can also be referred to as One information.Depending on linguistic context, in addition, used word " if " can be construed to " ... when ", or, " when ... ", or, " in response to determining ".
The embodiment of the present disclosure proposes a kind of message transmitting method, can apply to VXLAN, and VXLAN can include it is multiple Edge device, edge device are connected with main frame.It is the application scenarios schematic diagram of the embodiment of the present disclosure, with side referring to shown in Figure 1A Exemplified by edge equipment is VTEP equipment.VTEP111 is connected by interface 111 with main frame 101, and VTEP111 passes through interface 114 and main frame 104 connections, VTEP112 are connected by interface 112 with main frame 102, and VTEP113 is connected by interface 113 with main frame 103. Being established between VTEP111 and VTEP112 has VXLAN tunnels 1, and being established between VTEP111 and VTEP113 has VXLAN tunnels 2, Being established between VTEP112 and VTEP113 has VXLAN tunnels 3.Mode is established for VXLAN tunnels, can be that manual mode is built Stand or established automatically based on agreement, process is established to this and is repeated no more.
In figure ia, it is that in actual applications, VTEP is set so that each interface of VTEP equipment only connects a main frame as an example A standby interface can also connect multiple main frames, and as shown in Figure 1B, VTEP111 is connected to Access Layer by interface 111 and exchanged Machine, and access-layer switch is connected to multiple main frames (in figure by taking main frame 101 and main frame 105 as an example), VTEP113 passes through interface 113 are connected to access-layer switch, and access-layer switch is connected to multiple main frames and (is with main frame 103 and main frame 106 in figure Example).When the interface of VTEP equipment connects multiple main frames, its handling process is connected the place of a main frame with the interface of VTEP equipment It is similar to manage flow, describes, is subsequently illustrated by taking the application scenarios shown in Figure 1A as an example for convenience.
For the message transmissions between two main frames (follow-up be referred to as the first main frame and the second main frame), in conventional manner, It is to be realized based on MAC Address, and in the embodiment of the present disclosure, the study and forwarding of MAC Address are no longer dependent on, can be by specific Mark realizes the message transmissions between the first main frame and the second main frame.
In one example, the application scenarios of above-mentioned message transmitting method can be:VTEP equipment (is subsequently referred to as One equipment) some interface (being subsequently referred to as first interface) under main frame (such as one or more main frame, is subsequently claimed For the first main frame), some interface for only accessing another VTEP equipment (being subsequently referred to as the second equipment) (is subsequently referred to as Second interface) under main frame (such as one or more main frame, being subsequently referred to as the second main frame).Moreover, second equipment The second main frame under the second interface also only accesses the first main frame under the first interface of first equipment.For example, VTEP111 Interface 111 under main frame (main frame 101 in such as Figure 1A, or main frame 101 and main frame 105 in Figure 1B), only access Main frame (main frame 102 in such as Figure 1A or Figure 1B) under VTEP112 interface 112.Moreover, under VTEP112 interface 112 Main frame only accesses the main frame under VTEP111 interface 111.
In one example, then can be that the first interface of the first equipment configures specific mark in order to realize the transmission of message Note, and can be the second interface configuration identical specific markers of the second equipment.For example, when main frame and interface under interface 111 When having message transmissions demand between the main frame under 112, then it is corresponding with interface 111 can be configured with specific markers A in VTEP111 Relation, and specific markers A and interface 112 corresponding relation can be configured with VTEP112.In another example as the master under interface 113 When having message transmissions demand between the main frame under machine and interface 114, then specific markers B and interface can be configured with VTEP111 114 corresponding relation, and specific markers B and interface 113 corresponding relation can be configured with VTEP113.
In order to realize said process, controller can also be included in VXLAN, such as SDN (Software Defined Network, software defined network) controller etc., and controller can be connected respectively with each VTEP equipment.In figure ia, and Not depending on going out controller, also not depending on going out the annexation of controller and VTEP equipment.
Based on this, controller knows that there are message transmissions to need for the first interface of the first equipment and the second interface of the second equipment When asking, it is possible to which for the first interface and the second interface, one specific markers is set.Then, controller can be to the first equipment Send configuration order, the configuration order carries the corresponding relation of the specific markers and the first interface, and the first equipment is connecing After receiving the configuration order, it is possible to establish the corresponding relation of the specific markers and the first interface.In addition, controller can be to Second equipment send configuration order, the configuration order carry the corresponding relation of the specific markers and the second interface, and second Equipment is after the configuration order is received, it is possible to establishes the corresponding relation of the specific markers and the second interface.
For example, when there is message transmissions demand between the main frame under the main frame under interface 111 and interface 112, controller is Interface 111 and interface 112 set specific markers A.Then, controller carries to VTEP111 send configuration orders, the configuration order There are specific markers A and interface 111 corresponding relation, VTEP111 establishes specific markers A with connecing after the configuration order is received The corresponding relation of mouth 111.Controller carries specific markers A and interface to VTEP112 send configuration orders, the configuration order 112 corresponding relation, VTEP112 establish specific markers A and interface 112 corresponding relation after the configuration order is received.
In another example when there is message transmissions demand between the main frame under the main frame under interface 113 and interface 114, controller For interface 113 and interface 114, specific markers A is set.Then, controller is taken to VTEP111 send configuration orders, the configuration order Corresponding relation with specific markers B Yu interface 114, VTEP111 after the configuration order is received, establish specific markers B with The corresponding relation of interface 114.Controller carries specific markers B and interface to VTEP113 send configuration orders, the configuration order 113 corresponding relation, VTEP113 establish specific markers B and interface 113 corresponding relation after the configuration order is received.
In above process, describe the process that controller configures specific markers for interface in detail, in actual applications, be Realize message transmissions, it is not limited to configure specific markers for interface, such as controller can be that particular community configures specific mark Note, as long as unique interface can be found by this particular community.Wherein, particular community can include but is not limited to use Family information, polymerization information about firms, data center information etc..
For example, controller, which is particular community A, configures specific markers A, there is particular community A and interface 111 on VTEP111 Corresponding relation, there is the corresponding relation of particular community A and interface 112 on VTEP112, so, can also be by specific markers A It is associated with interface 111, interface 112.
In summary, in the embodiment of the present application, the process that specific markers are configured to controller is not limited, controller noted above The process of specific markers is configured for interface, simply the application a example, will not be repeated here.
In one example, due to being passed by VXLAN tunnels between the first equipment and the second equipment It is defeated, therefore, in order to realize message transmissions using specific markers, it is corresponding with VXLAN tunnels that specific markers can also be established Relation.Furthermore, it is possible to actively send message of negotiation request by the first equipment, to establish specific mark in the equipment of the first equipment/second Note and the corresponding relation in VXLAN tunnels;Message of negotiation request can also actively be sent by the second equipment, with the first equipment/the Two equipment establish the corresponding relation of specific markers and VXLAN tunnels.In order to facilitate description, subsequently actively sent and assisted with the first equipment Exemplified by business's request message.
In one example, for " equipment of the first equipment/second establishes the corresponding relation of specific markers and VXLAN tunnels " Process, following manner can be included but is not limited to:First equipment can be by between this first equipment and the second equipment VXLAN tunnels, message of negotiation request is sent to the second equipment, the message of negotiation request can carry specific markers.Second equipment After the message of negotiation request is received by VXLAN tunnels, whether first inquiry is locally configured with corresponding with the specific markers Second interface;If it is not, then flow can be terminated;If it is, the second equipment can establish the specific markers and the VXLAN The corresponding relation in tunnel, and sent by the VXLAN tunnels to the first equipment and consult successfully message, and negotiation success message can To carry the specific markers.Further, the first equipment received by the VXLAN tunnels negotiation success message after, The corresponding relation of the specific markers and the VXLAN tunnels can then be established.
For example, VTEP111 can send the message of negotiation request for carrying specific markers A, example by each VXLAN tunnels Such as, the message of negotiation request for carrying specific markers A is sent to VTEP112 by VXLAN tunnels 1, by VXLAN tunnels 2 to VTEP113 sends the message of negotiation request for carrying specific markers A.VTEP113 after the message of negotiation request is received, due to Second interface corresponding with specific markers A locally is configured without, therefore, terminates flow.VTEP112 connects by VXLAN tunnels 1 After receiving the message of negotiation request, due to interface 112 corresponding with specific markers A has been locally configured, therefore, establish specific A and the corresponding relation in VXLAN tunnels 1 are marked, and sends the negotiation for carrying specific markers A to VTEP111 by VXLAN tunnels 1 Success message.VTEP111 can then establish specific markers A after negotiation success message is received by VXLAN tunnels 1 With the corresponding relation in VXLAN tunnels 1.
Similar with aforesaid way, VTEP111 can establish specific markers B and VXLAN tunnels 2 corresponding relation, and VTEP113 can establish specific markers B and VXLAN tunnels 2 corresponding relation.
Wherein, message of negotiation request and the type for consulting successfully message, can be selected according to being actually needed, such as be consulted Request message and consults successfully message can be based on MP-BGP (MultiProtocol-Border Gateway Protocol, Multi-protocols-Border Gateway Protocol) message, this type of message is not limited.
In one example, above-mentioned specific markers can be VLAN (Virtual Local Area Network, virtual office Domain net) mark or VLAN mark with VXLAN mark corresponding relation, can also be other contents, as specific markers A, Specific markers B etc., the type of this specific markers is not limited.
It is shown in Figure 2 under above-mentioned application scenarios, for the flow chart of the message transmitting method.
Step 201, the first equipment by first interface after message is received, it is determined that specific mark corresponding with the message Note.
Wherein, because the first equipment has built up the corresponding relation of specific markers and first interface, therefore, the first equipment The corresponding relation is inquired about by the first interface for receiving message, it is possible to specific markers corresponding to first interface are obtained, and Specific markers corresponding to first interface are defined as specific markers corresponding to the message.Certainly, the first equipment can also use it Its mode determines specific markers corresponding with the message, for example, the first equipment directly parses specific markers (such as from the message VLAN marks etc.), it is without limitation.
For example, VTEP111 can pass through interface 111 after the message of the transmission of main frame 101 is received by interface 111 Above-mentioned corresponding relation is inquired about, so as to obtain specific markers A corresponding with interface 111.In another example VTEP111 is by connecing After mouth 114 receives the message of the transmission of main frame 104, above-mentioned corresponding relation can be inquired about by interface 114, so as to obtain Specific markers B corresponding with interface 114.
Step 202, the first equipment determines VXLAN tunnels corresponding with the specific markers.Wherein, due to the first equipment Establishing has specific markers and the corresponding relation in VXLAN tunnels, therefore, the corresponding relation is inquired about by the specific markers, it is possible to Determine VXLAN tunnels corresponding with the specific markers.
For example, due to VTEP111 have built up specific markers A and VXLAN tunnels 1 corresponding relation, specific markers B with The corresponding relation in VXLAN tunnels 2, therefore, if that obtained in step 201 is specific markers A, it is possible to determine and the specific mark VXLAN tunnels 1 corresponding to A are remembered, if that obtained in step 201 is specific markers B, it is possible to determine and B pairs of the specific markers The VXLAN tunnels 2 answered.
Step 203, the message for carrying specific markers is sent to the second equipment by the first equipment by VXLAN tunnels.Such as The message for carrying specific markers A is sent to VTEP112 by VTEP111 by VXLAN tunnels 1, and VTEP111 passes through VXLAN tunnels 2 The message for carrying specific markers B is sent to VTEP113.
Step 204, the second equipment receives the message that the first equipment is sent by the VXLAN tunnels.
Step 205, the second equipment parses specific markers from the message, and determines corresponding to the specific markers that second connects Mouthful.
Wherein, because the second equipment has built up the corresponding relation of specific markers and second interface, therefore, the second equipment The specific markers carried by the message inquire about the corresponding relation, it is possible to it is determined that second interface corresponding with the specific markers. Certainly, the second equipment can also use other manner to determine second interface corresponding with the specific markers, without limitation.
For example, after VTEP112 receives the message for carrying specific markers A by VXLAN tunnels 1, parsed from the message Go out specific markers A.Because VTEP112 has built up specific markers A and interface 112 corresponding relation, accordingly, it is determined that this is specific It is interface 112 to mark second interface corresponding to A.
In another example after VTEP113 receives the message for carrying specific markers B by VXLAN tunnels 2, solved from the message Separate out specific markers B.Because VTEP113 has built up specific markers B and interface 113 corresponding relation, accordingly, it is determined that the spy Second interface corresponding to calibration note B is interface 113.
Step 206, the second equipment sends the message by the second interface.
For example, message is sent to main frame 102 by VTEP112 by interface 112, so far, successfully the message of main frame 101 is sent out Main frame 102 is given, is that message transmissions are completed by specific markers A in the process.
In another example message is sent to main frame 103 by VTEP113 by interface 113, so far, successfully by the message of main frame 104 Main frame 103 is sent to, is that message transmissions are completed by specific markers B in the process.
In above process, the flow that the first main frame sends message to the second main frame is described in detail, and for the second master Machine sends the flow of message to the first main frame, and similar with said process, it is no longer repeated herein.
Send the process of message to the second equipment by VXLAN tunnels for the first equipment, the first equipment can be message Encapsulate VXLAN heads, UDP heads and IP heads corresponding to the VXLAN tunnels, and the message after encapsulation is sent to the second equipment, and Two equipment first carry out VXLAN decapsulations after message is received to message, and the message after decapsulation is handled, to this Encapsulation process, decapsulation process are not limited.
Send the process of message to the first equipment by VXLAN tunnels for the second equipment, the second equipment can be message Encapsulate VXLAN heads, UDP heads and IP heads corresponding to the VXLAN tunnels, and the message after encapsulation is sent to the first equipment, and One equipment first carries out VXLAN decapsulations after message is received to message, and the message after decapsulation is handled, to this Encapsulation process, decapsulation process are not limited.
Based on above-mentioned technical proposal, in the embodiment of the present disclosure, message transmissions can be realized by specific markers, and no longer according to Rely the study and forwarding in MAC Address, so as to greatly reduce equipment table look-up forwarding pressure, reduce message transmissions mistake can Can, avoid the memory space of MAC forward tables from being occupied full, the MAC Address of different main frames conflict situations such as caused message transmissions it is different Chang Wenti.
In actual applications, if VTEP equipment is not directly connected to main frame, but access-layer switch and main frame are passed through Connection, then the interface being connected VTEP equipment with access-layer switch, be defined as the interface that VTEP equipment is connected with main frame.Referring to It is the application scenarios schematic diagram of the embodiment of the present disclosure shown in Fig. 3 A, VTEP112 is connected by interface 112 with access-layer switch, And access-layer switch is connected with main frame 102.
Under this application scenarios, for data transmission procedure, identical with flow shown in Fig. 2, simply VTEP112 passes through interface After message is sent to access-layer switch by 112, access-layer switch is no longer based on specific markers A transmitting messages, but is based on The target MAC (Media Access Control) address transmitting message of message, is repeated no more to this transmitting procedure.
Under above-mentioned application scenarios, be so that the first equipment and the second equipment are VTEP equipment as an example, still, the application Application scenarios be not limited to VTEP equipment, the first equipment and the second equipment can also be other types of equipment, to this should It is not limited with scene.For example, as shown in Figure 3 B, when the main frame under interface A has the communication requirement with the main frame under interface B When, then the first equipment can also be convergence layer switch, and the second equipment can be data center's access switch, and first connects Mouth is interface A, and second interface is interface B, under this application scenarios, can equally be handled using above-mentioned technical proposal.
Specifically, VXLAN tunnels can be established between convergence layer switch and data center's access switch, and converge Layer switch can establish the corresponding relation of specific markers and the VXLAN tunnels, and establish specific markers pass corresponding with interface A System, in addition, data center's access switch can also establish the corresponding relation of the specific markers and the VXLAN tunnels, and establish and be somebody's turn to do Specific markers and interface B corresponding relation.
Based on this, convergence layer switch can inquire the specific markers after message is received by interface A, and Message is sent to by data center's access switch by VXLAN tunnels corresponding to the specific markers.Then, data center accesses Interchanger can send message, its processing stream after message is received by interface B corresponding to specific markers that the message carries Journey is similar to the above embodiments, will not be repeated here.
Obviously, aforesaid way is that message is sent into data center's access switch based on specific markers, rather than is based on Message is sent to data center's access switch by MAC Address.Therefore, the study and forwarding of MAC Address are no longer dependent on, so that it may So that message is sent into data center's access switch, so as to greatly reduce the forwarding pressure of tabling look-up of convergence layer switch, reduce The possibility of message transmissions mistake, avoid the memory space of MAC forward tables from being occupied full, the MAC Address of different main frames conflict situations such as Caused message transmissions abnormal problem.
Based on the design same with the above method, the embodiment of the present disclosure additionally provides a kind of message transmitting device, is applied to First equipment, it is shown in Figure 4, it is the structure chart of described device, described device includes:
Determining module 401, for after message is received by first interface, it is determined that specific mark corresponding with the message Note;It is determined that expansible Virtual Local Area Network VXLAN tunnels corresponding with the specific markers;Wherein, the VXLAN tunnels are institutes State the VXLAN tunnels between the first equipment and the second equipment;
Sending module 402, for the message for carrying the specific markers to be sent into described by the VXLAN tunnels Two equipment, so that second equipment determines second interface corresponding to the specific markers, and sent by the second interface Message.
The sending module 402, it is additionally operable to by the VXLAN tunnels between first equipment and the second equipment, to institute State the second equipment and send message of negotiation request, the message of negotiation request carries the specific markers;
Described device also includes (not embodied in figure):Module is established, receives what second equipment returned for working as When consulting successfully message, then the corresponding relation of the specific markers and the VXLAN tunnels is established;Wherein, it is described to consult successfully Message is that second equipment is sent when inquiring and second interface corresponding with the specific markers being locally configured.
Described device also includes (not embodied in figure):Receiving module, for receiving the configuration order of controller transmission, institute State the corresponding relation that configuration order carries the specific markers and the first interface;
It is described to establish module, for establishing the corresponding relation of the specific markers and the first interface;
The determining module 401, specifically for it is determined that during specific markers corresponding with the message, by connecing The first interface for receiving message inquires about the corresponding relation, obtains specific markers corresponding to the first interface, and by described the Specific markers corresponding to one interface are defined as specific markers corresponding to the message.
The first equipment that the embodiment of the present disclosure provides, for hardware view, its hardware structure schematic diagram can specifically join See Fig. 5, the hardware configuration can include:Machinable medium and processor, wherein:
Machinable medium:Store instruction code.
Processor:Communicate, stored in reading and execution machinable medium described with machinable medium Instruction code, realize that message transmissions disclosed in disclosure above-mentioned example operate.
Here, machinable medium can be any electronics, magnetic, optics or other physical storage devices, can be with Comprising or storage information, such as executable instruction, data, etc..For example, machinable medium can be:RAM(Radom Access Memory, random access memory), volatile memory, nonvolatile memory, flash memory, memory driver is (as hard Disk drive), solid state hard disc, any kind of storage dish (such as CD, dvd), either similar storage medium or they Combination.
Based on the design same with the above method, the embodiment of the present disclosure additionally provides a kind of message transmitting device, is applied to Second equipment, it is shown in Figure 6, it is the structure chart of described device, described device includes:
Receiving module 601, the carrying sent for receiving the first equipment by expansible Virtual Local Area Network VXLAN tunnels The message of specific markers;The message is that the first equipment receives message by first interface, it is determined that corresponding with the message Specific markers, sent by VXLAN tunnels corresponding with the specific markers;Determining module 602, for from the message The specific markers are parsed, and determine second interface corresponding to the specific markers;Sending module 603, for by described Second interface sends the message.
The receiving module 601, it is additionally operable to receive the negotiation request that first equipment is sent by the VXLAN tunnels Message, wherein, the message of negotiation request carries specific markers;
Described device also includes (not embodied in figure):Module is established, for local whether be configured with and the spy to be inquired about Second interface corresponding to calibration note;If it is, establish the corresponding relation of the specific markers and the VXLAN tunnels;The hair Module 603 is sent, is additionally operable to send to first equipment by the VXLAN tunnels and consults successfully message, so that described first Equipment is according to the corresponding relation consulted successfully message and establish the specific markers and the VXLAN tunnels.
The receiving module 601, it is additionally operable to receive the configuration order that controller is sent, the configuration order carries described The corresponding relation of specific markers and the second interface;
It is described to establish module, it is additionally operable to establish the corresponding relation of the specific markers and the second interface;
The determining module 602, specifically for it is determined that during second interface corresponding to the specific markers, passing through The specific markers that the message carries inquire about the corresponding relation, obtain second interface corresponding with the specific markers.
The second equipment that the embodiment of the present disclosure provides, for hardware view, its hardware structure schematic diagram can specifically join See Fig. 7, the hardware configuration can include:Machinable medium and processor, wherein:
Machinable medium:Store instruction code.
Processor:Communicate, stored in reading and execution machinable medium described with machinable medium Instruction code, realize that message transmissions disclosed in disclosure above-mentioned example operate.
Here, machinable medium can be any electronics, magnetic, optics or other physical storage devices, can be with Comprising or storage information, such as executable instruction, data, etc..For example, machinable medium can be:RAM(Radom Access Memory, random access memory), volatile memory, nonvolatile memory, flash memory, memory driver is (as hard Disk drive), solid state hard disc, any kind of storage dish (such as CD, dvd), either similar storage medium or they Combination.
Based on the design same with the above method, the embodiment of the present disclosure additionally provides a kind of machinable medium, should For the first equipment, some computer instructions are stored with the machinable medium, the computer instruction is performed When be handled as follows:
After message is received by first interface, it is determined that specific markers corresponding with the message;
It is determined that expansible Virtual Local Area Network VXLAN tunnels corresponding with the specific markers;Wherein, the VXLAN tunnels Road is the VXLAN tunnels between first equipment and the second equipment;
The message for carrying the specific markers is sent to by the second equipment by the VXLAN tunnels, so that the second equipment Second interface corresponding to the specific markers is determined, and message is sent by the second interface.
Based on the design same with the above method, the embodiment of the present disclosure additionally provides a kind of machinable medium, should For the second equipment, some computer instructions are stored with the machinable medium, the computer instruction is performed When be handled as follows:
Receive the message for the carrying specific markers that the first equipment is sent by expansible Virtual Local Area Network VXLAN tunnels; Wherein, the message is that the first equipment receives message by first interface, it is determined that specific markers corresponding with the message, and Sent by VXLAN tunnels corresponding with the specific markers;
The specific markers are parsed from the message, and determine second interface corresponding to the specific markers;
The message is sent by the second interface.
System, device, module or the unit that above-described embodiment illustrates, it can specifically be realized by computer chip or entity, Or realized by the product with certain function.One kind typically realizes that equipment is computer, and the concrete form of computer can To be personal computer, laptop computer, cell phone, camera phone, smart phone, personal digital assistant, media play In device, navigation equipment, E-mail receiver/send equipment, game console, tablet PC, wearable device or these equipment The combination of any several equipment.
For convenience of description, it is divided into various units during description apparatus above with function to describe respectively.Certainly, this is being implemented The function of each unit can be realized in same or multiple softwares and/or hardware when open.
It should be understood by those skilled in the art that, embodiment of the disclosure can be provided as method, system or computer program Product.Therefore, the disclosure can use the reality in terms of complete hardware embodiment, complete software embodiment or combination software and hardware Apply the form of example.Moreover, the embodiment of the present disclosure can use wherein includes computer usable program code in one or more The computer that computer-usable storage medium is implemented on (including but is not limited to magnetic disk storage, CD-ROM, optical memory etc.) The form of program product.
The disclosure is with reference to the flow according to the method for the embodiment of the present disclosure, equipment (system) and computer program product Figure and/or block diagram describe.It is generally understood that by each in computer program instructions implementation process figure and/or block diagram Flow and/or the flow in square frame and flow chart and/or block diagram and/or the combination of square frame.These computer journeys can be provided Sequence instruction to all-purpose computer, special-purpose computer, Embedded Processor or other programmable data processing devices processor with Produce a machine so that produce and be used for by the instruction of computer or the computing device of other programmable data processing devices Realize the dress for the function of being specified in one flow of flow chart or multiple flows and/or one square frame of block diagram or multiple square frames Put.
Moreover, these computer program instructions can also be stored in computer or other programmable datas can be guided to handle and set In the standby computer-readable memory to work in a specific way so that the instruction being stored in the computer-readable memory produces Manufacture including command device, the command device are realized in one flow of flow chart or multiple flows and/or block diagram one The function of being specified in individual square frame or multiple square frames.
These computer program instructions can be also loaded into computer or other programmable data processing devices so that counted Series of operation steps is performed on calculation machine or other programmable devices to produce computer implemented processing, so as in computer Or the instruction performed on other programmable devices is provided for realizing in one flow of flow chart or multiple flows and/or block diagram The step of function of being specified in one square frame or multiple square frames.
Embodiment of the disclosure is the foregoing is only, is not limited to the disclosure.For those skilled in the art For, the disclosure can have various modifications and variations.All any modifications made within the spirit and principle of the disclosure, it is equal Replace, improve etc., it should be included within the right of the disclosure.

Claims (14)

1. a kind of message transmitting method, it is characterised in that applied to the first equipment, methods described includes:
After message is received by first interface, it is determined that specific markers corresponding with the message;
It is determined that expansible Virtual Local Area Network VXLAN tunnels corresponding with the specific markers;Wherein, the VXLAN tunnels are VXLAN tunnels between first equipment and the second equipment;
The message for carrying the specific markers is sent to by the second equipment by the VXLAN tunnels, so that the second equipment determines Second interface corresponding to the specific markers, and message is sent by the second interface.
2. according to the method for claim 1, it is characterised in that
It is described determine corresponding with specific markers VXLAN tunnels before, methods described also includes:
By the VXLAN tunnels between first equipment and second equipment, sent to second equipment and consult request Message, and the message of negotiation request carries the specific markers;
If receiving the negotiation success message that second equipment returns, the specific markers and the VXLAN tunnels are established Corresponding relation;Wherein, it is described to consult successfully message to be second equipment be locally configured and the specific mark inquiring Sent corresponding to note during second interface.
3. according to the method for claim 1, it is characterised in that methods described also includes:
The configuration order that controller is sent is received, the configuration order carries pair of the specific markers and the first interface It should be related to, and establish the corresponding relation of the specific markers and the first interface;
The process for determining specific markers corresponding with the message, is specifically included:
The corresponding relation is inquired about by the first interface for receiving message, obtains specific markers corresponding to the first interface, And specific markers corresponding to the first interface are defined as specific markers corresponding to the message.
4. a kind of message transmitting method, it is characterised in that applied to the second equipment, methods described includes:
Receive the message for the carrying specific markers that the first equipment is sent by expansible Virtual Local Area Network VXLAN tunnels;Wherein, The message is that the first equipment receives message by first interface, it is determined that specific markers corresponding with the message, and pass through What VXLAN tunnels corresponding with the specific markers were sent;
The specific markers are parsed from the message, and determine second interface corresponding to the specific markers;
The message is sent by the second interface.
5. according to the method for claim 4, it is characterised in that methods described also includes:
The message of negotiation request that first equipment is sent by VXLAN tunnels is received, the message of negotiation request carries specific Mark, and inquire about and locally whether be configured with second interface corresponding with the specific markers;
If it is, establish the corresponding relation of the specific markers and the VXLAN tunnels, and by the VXLAN tunnels to First equipment, which is sent, consults successfully message so that first equipment according to it is described consult successfully message establish it is described specific The corresponding relation of mark and the VXLAN tunnels.
6. according to the method for claim 4, it is characterised in that methods described also includes:
The configuration order that controller is sent is received, the configuration order carries pair of the specific markers and the second interface It should be related to, and establish the corresponding relation of the specific markers and the second interface;
The process for determining second interface corresponding to the specific markers, is specifically included:Carried by the message specific Corresponding relation described in tag query, obtain second interface corresponding with the specific markers.
7. a kind of message transmitting device, it is characterised in that applied to the first equipment, described device includes:
Determining module, for after message is received by first interface, it is determined that specific markers corresponding with the message;It is determined that Expansible Virtual Local Area Network VXLAN tunnels corresponding with the specific markers;Wherein, the VXLAN tunnels are described first VXLAN tunnels between equipment and the second equipment;
Sending module, for the message for carrying the specific markers to be sent into second equipment by the VXLAN tunnels, So that second equipment determines second interface corresponding to the specific markers, and message is sent by the second interface.
8. device according to claim 7, it is characterised in that
The sending module, it is additionally operable to, by the VXLAN tunnels between first equipment and the second equipment, set to described second Preparation send message of negotiation request, and the message of negotiation request carries the specific markers;
Described device also includes:
Module is established, for when receiving the negotiation success message that second equipment returns, then establishing the specific markers With the corresponding relation in the VXLAN tunnels;Wherein, it is described to consult successfully message to be second equipment be locally configured inquiring Have what is sent during second interface corresponding with the specific markers.
9. device according to claim 7, it is characterised in that
Described device also includes:Receiving module, for receiving the configuration order of controller transmission, the configuration order carries State the corresponding relation of specific markers and the first interface;
Module is established, for establishing the corresponding relation of the specific markers and the first interface;
The determining module, specifically for it is determined that during specific markers corresponding with the message, being reported by receiving The first interface of text inquires about the corresponding relation, obtains specific markers corresponding to the first interface, and by the first interface Corresponding specific markers are defined as specific markers corresponding to the message.
10. a kind of message transmitting device, it is characterised in that applied to the second equipment, described device includes:
Receiving module, the specific mark of carrying sent for receiving the first equipment by expansible Virtual Local Area Network VXLAN tunnels The message of note;The message is that the first equipment receives message by first interface, it is determined that specific mark corresponding with the message Note, sent by VXLAN tunnels corresponding with the specific markers;
Determining module, for parsing the specific markers from the message, and determine second corresponding to the specific markers Interface;
Sending module, for sending the message by the second interface.
11. device according to claim 10, it is characterised in that
The receiving module, it is additionally operable to receive the message of negotiation request that first equipment is sent by the VXLAN tunnels, its In, the message of negotiation request carries specific markers;
Described device also includes:Module is established, local corresponding with the specific markers second whether be configured with for inquiring about and connect Mouthful;If it is, establish the corresponding relation of the specific markers and the VXLAN tunnels;
The sending module, it is additionally operable to send to first equipment by the VXLAN tunnels and consults successfully message, so that institute The first equipment is stated according to the corresponding relation consulted successfully message and establish the specific markers and the VXLAN tunnels.
12. device according to claim 10, it is characterised in that
The receiving module, it is additionally operable to receive the configuration order that controller is sent, the configuration order carries the specific mark The corresponding relation of note and the second interface;
Module is established, is additionally operable to establish the corresponding relation of the specific markers and the second interface;
The determining module, specifically for it is determined that during second interface corresponding to the specific markers, passing through the report The specific markers that text carries inquire about the corresponding relation, obtain second interface corresponding with the specific markers.
13. a kind of machinable medium, it is characterised in that applied to the first equipment, on the machinable medium Some computer instructions are stored with, the computer instruction is handled as follows when being performed:
After message is received by first interface, it is determined that specific markers corresponding with the message;
It is determined that expansible Virtual Local Area Network VXLAN tunnels corresponding with the specific markers;Wherein, the VXLAN tunnels are VXLAN tunnels between first equipment and the second equipment;
The message for carrying the specific markers is sent to by the second equipment by the VXLAN tunnels, so that the second equipment determines Second interface corresponding to the specific markers, and message is sent by the second interface.
14. a kind of machinable medium, it is characterised in that applied to the second equipment, on the machinable medium Some computer instructions are stored with, the computer instruction is handled as follows when being performed:
Receive the message for the carrying specific markers that the first equipment is sent by expansible Virtual Local Area Network VXLAN tunnels;Wherein, The message is that the first equipment receives message by first interface, it is determined that specific markers corresponding with the message, and pass through What VXLAN tunnels corresponding with the specific markers were sent;
The specific markers are parsed from the message, and determine second interface corresponding to the specific markers;
The message is sent by the second interface.
CN201710497932.5A 2017-06-27 2017-06-27 Message transmission method and device and machine-readable storage medium Active CN107547395B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710497932.5A CN107547395B (en) 2017-06-27 2017-06-27 Message transmission method and device and machine-readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710497932.5A CN107547395B (en) 2017-06-27 2017-06-27 Message transmission method and device and machine-readable storage medium

Publications (2)

Publication Number Publication Date
CN107547395A true CN107547395A (en) 2018-01-05
CN107547395B CN107547395B (en) 2020-12-04

Family

ID=60970949

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710497932.5A Active CN107547395B (en) 2017-06-27 2017-06-27 Message transmission method and device and machine-readable storage medium

Country Status (1)

Country Link
CN (1) CN107547395B (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103957160A (en) * 2014-05-12 2014-07-30 华为技术有限公司 Message sending method and device
CN104104747A (en) * 2014-07-28 2014-10-15 杭州华三通信技术有限公司 Method and device for message transmission
WO2016050158A1 (en) * 2014-09-29 2016-04-07 Hangzhou H3C Technologies Co., Ltd. Learning a mac address in vxlan
CN106209557A (en) * 2016-06-30 2016-12-07 杭州迪普科技有限公司 Message forwarding method and device
CN106254256A (en) * 2015-06-04 2016-12-21 杭州华三通信技术有限公司 Data message forwarding methods based on three layers of VXLAN gateway and equipment
CN106330719A (en) * 2016-10-26 2017-01-11 杭州迪普科技有限公司 VXLAN message forwarding method and device
CN106878181A (en) * 2016-12-29 2017-06-20 新华三技术有限公司 A kind of message transmitting method and device

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103957160A (en) * 2014-05-12 2014-07-30 华为技术有限公司 Message sending method and device
CN104104747A (en) * 2014-07-28 2014-10-15 杭州华三通信技术有限公司 Method and device for message transmission
WO2016050158A1 (en) * 2014-09-29 2016-04-07 Hangzhou H3C Technologies Co., Ltd. Learning a mac address in vxlan
CN106254256A (en) * 2015-06-04 2016-12-21 杭州华三通信技术有限公司 Data message forwarding methods based on three layers of VXLAN gateway and equipment
CN106209557A (en) * 2016-06-30 2016-12-07 杭州迪普科技有限公司 Message forwarding method and device
CN106330719A (en) * 2016-10-26 2017-01-11 杭州迪普科技有限公司 VXLAN message forwarding method and device
CN106878181A (en) * 2016-12-29 2017-06-20 新华三技术有限公司 A kind of message transmitting method and device

Also Published As

Publication number Publication date
CN107547395B (en) 2020-12-04

Similar Documents

Publication Publication Date Title
EP2206052B1 (en) Methods and apparatus for managing addresses related to virtual partitions of a session exchange device
US11190444B2 (en) Configuration mechanisms in a switchless network
EP3499815A1 (en) Packet transmission
CN111092801B (en) Data transmission method and device
US20140086098A1 (en) Method, System and Controlling Bridge for Obtaining Port Extension Topology Information
CN108965092B (en) Data message transmission method and device
CN103051510B (en) The method and apparatus that network strategy unloads to the safety and efficiently of network interface unit
CN108718278B (en) Message transmission method and device
CN104038401A (en) Interoperability for distributed overlay virtual environments
CN108259347A (en) A kind of message transmitting method and device
CN107547391A (en) A kind of message transmitting method and device
US11457096B2 (en) Application based egress interface selection
CN109361606A (en) A kind of message handling system and the network equipment
CN108600109A (en) A kind of message forwarding method and device
CN108737224A (en) A kind of message processing method and device based on micro services framework
US20170302526A1 (en) Communication via a connection management message that uses an attribute having information on queue pair objects of a proxy node in a switchless network
CN104811382A (en) Data packet processing method and device
CN104994022B (en) A kind of method and business board of message transmissions
US11165653B2 (en) Node discovery mechanisms in a switchless network
CN106330779A (en) Server, physical switch, and communication system
CN107547346A (en) A kind of message transmitting method and device
CN109412949A (en) A kind of data message transmission method and device
CN108259218A (en) A kind of IP address distribution method and device
US10904132B2 (en) Method, system, and computer program product for configuring an attribute for propagating management datagrams in a switchless network
EP3902221A1 (en) Processing protocol packet

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant