CN106209557A - Message forwarding method and device - Google Patents
Message forwarding method and device Download PDFInfo
- Publication number
- CN106209557A CN106209557A CN201610532452.3A CN201610532452A CN106209557A CN 106209557 A CN106209557 A CN 106209557A CN 201610532452 A CN201610532452 A CN 201610532452A CN 106209557 A CN106209557 A CN 106209557A
- Authority
- CN
- China
- Prior art keywords
- vlan
- message
- interface
- mark
- vxlan
- 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
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L12/00—Data switching networks
- H04L12/28—Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
- H04L12/46—Interconnection of networks
- H04L12/4641—Virtual LANs, VLANs, e.g. virtual private networks [VPN]
- H04L12/4645—Details on frame tagging
- H04L12/4666—Operational details on the addition or the stripping of a tag in a frame, e.g. at a provider edge node
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L49/00—Packet switching elements
- H04L49/25—Routing or path finding in a switch fabric
- H04L49/253—Routing or path finding in a switch fabric using establishment or release of connections between ports
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Computer Security & Cryptography (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
The application provides a kind of message forwarding method and device, the method includes that first interface plate receives the VXLAN message carrying a VNI, oneth VXLAN message decapsulation is obtained VLAN message, and adds the VLAN mark that the oneth is corresponding for VNI the transmission of to VLAN message to network board;Network board obtains outgoing interface corresponding to VLAN message and the 2nd VLAN mark;Utilize the 2nd VLAN mark to replace the VLAN mark in VLAN message, and send to the second interface board from outgoing interface;The 2nd VNI that second interface board utilizes the 2nd VLAN mark corresponding adds encapsulation and obtains the 2nd VXLAN message VLAN message, and is forwarded on the distributed switching equipment in opposite end.Interface board and network board by distributed switching equipment are implemented in combination with VXLAN three-layer network and close, and interface board and network board are all to realize message in exchange chip to forward, and forward efficiency is high.
Description
Technical field
The application relates to network communication technology field, particularly relates to a kind of message forwarding method and device.
Background technology
Data center generally uses server virtualization technology, and a physical server is virtualized into multiple stage VM
(Virtual Machine, virtual machine), and require physical server support VXLAN (Virtual Extensible LAN,
Expansible Virtual Local Area Network) technology, with VLAN (Virtual Local Area Network, virtual local area that VM is sent
Net) message is packaged into VXLAN message, then carried out three layers of forwarding by switching equipment, but, the exchange chip in general switching equipment
Do not support that VXLAN three-layer network closes function.
In the prior art, a VXLAN is received when the exchange chip not supporting switching equipment that VXLAN three-layer network closes
During message, generally by a VXLAN message up sending to processor, processor the oneth VXLAN message is carried out decapsulation and obtain
VLAN message, and search various list item VLAN message is processed, then the VLAN message after processing is packaged into second
VXLAN message, and the 2nd VXLAN message is forwarded, thus realize three layers of forwarding across VXLAN.But, switching equipment connects
The all VXLAN messages received are required for delivering to processor, and owing to processor needs to look into various list item, processing speed is slow, leads
The forward efficiency causing VXLAN message is extremely low.
Summary of the invention
In view of this, the application provides a kind of message forwarding method and device, to solve existing pass-through mode forwarding effect
The problem that rate is low.
First aspect according to the embodiment of the present application, it is provided that a kind of message forwarding method, described method is applied to distributed
On switching equipment, described distributed switching equipment includes network board, first interface plate and the second interface board, described method bag
Include:
Described first interface plate receives the VXLAN message carrying a VNI, and it is corresponding to obtain a described VNI
The oneth VLAN mark;A described VXLAN message decapsulation is obtained VLAN message, and a described VLAN mark is added
In described VLAN message, and described VLAN message is sent to described network board;
Described network board obtains outgoing interface corresponding to described VLAN message and the 2nd VLAN mark;Utilize described second
VLAN mark replaces the VLAN mark in described VLAN message, and is sent to institute from described outgoing interface by described VLAN message
State the second interface board;
Described second interface board obtains the 2nd VNI that described 2nd VLAN mark is corresponding, and utilizes described 2nd VNI to institute
State VLAN message to add encapsulation and obtain the 2nd VXLAN message, and described 2nd VXLAN message is forwarded to the distributed exchange in opposite end sets
Standby upper.
Second aspect according to the embodiment of the present application, it is provided that a kind of apparatus for forwarding message, described device is applied to distributed
On switching equipment, described device includes: first interface unit, crosspoint and the second interface unit;
Described first interface unit, carries the first of the first virtual expansible local net network mark VNI for receiving
VXLAN message, and obtain described first corresponding for a VNI virtual LAN VLAN mark;To a described VXLAN message solution
Encapsulation obtains VLAN message, and a described VLAN mark is added in described VLAN message, and is sent out by described VLAN message
Deliver to described crosspoint;
Described crosspoint, for obtaining outgoing interface corresponding to described VLAN message and the 2nd VLAN mark;Utilize described
2nd VLAN mark replaces the VLAN mark in described VLAN message, and is sent from described outgoing interface by described VLAN message
To described second interface unit;
Described second interface unit, for obtaining the 2nd VNI that described 2nd VLAN mark is corresponding, and utilizes described second
VNI adds encapsulation and obtains the 2nd VXLAN message described VLAN message, and described 2nd VXLAN message is forwarded to opposite end distribution
On formula switching equipment.
Application the embodiment of the present application, the first interface plate of distributed switching equipment carries the of a VNI receiving
During one VXLAN message, first obtain a VLAN mark corresponding for VNI, a VXLAN message decapsulation is obtained
VLAN message, and a VLAN mark is added in VLAN message, and be sent on network board;Network board obtains should
After outgoing interface that VLAN message is corresponding and the 2nd VLAN mark, the 2nd VLAN mark is utilized to replace first in VLAN message
VLAN identifies, and is sent to the second interface board from this outgoing interface by this VLAN message;Second interface board obtains the 2nd VLAN mark
Know the 2nd corresponding VNI, and utilize the 2nd VNI that VLAN message adds encapsulation to obtain the 2nd VXLAN message, and by this second
VXLAN message is forwarded on the distributed switching equipment in opposite end, thus, it is achieved three layers of forwarding of VXLAN message.Based on above-mentioned realization
Mode, distributed switching equipment utilizes interface board decapsulate message and add encapsulation, to realize VXLAN message and VLAN report
Conversion between literary composition, and the VXLAN message adding encapsulation is carried out two layers of forwarding, utilize network board to search the route being pre-configured with
Table carries out three layers of forwarding of travelling across VLAN, and therefore, distributed switching equipment has been implemented in combination with VXLAN by interface board and network board
The function that three-layer network closes, changes without going VXLAN message up sending to processor to look into various list item and forwards, this
Outward, interface board and network board are all that the message realized in exchange chip forwards, and processing speed is fast, thus, improve VXLAN
The forward efficiency of message.
Accompanying drawing explanation
Fig. 1 is that the application forwards application scenarios figure according to a kind of message shown in an exemplary embodiment;
Fig. 2 is the application embodiment flow chart according to a kind of message forwarding method shown in an exemplary embodiment;
Fig. 3 is the application hardware structure diagram according to a kind of distributed switching equipment shown in an exemplary embodiment;
Fig. 4 is the application example structure figure according to a kind of apparatus for forwarding message shown in an exemplary embodiment.
Detailed description of the invention
Here will illustrate exemplary embodiment in detail, its example represents in the accompanying drawings.Explained below relates to
During accompanying drawing, unless otherwise indicated, the same numbers in different accompanying drawings represents same or analogous key element.Following exemplary embodiment
Described in embodiment do not represent all embodiments consistent with the application.On the contrary, they are only with the most appended
The example of the apparatus and method that some aspects that described in detail in claims, the application are consistent.
It is only merely for describing the purpose of specific embodiment at term used in this application, and is not intended to be limiting the application.
" a kind of ", " described " and " being somebody's turn to do " of singulative used in the application and appended claims is also intended to include majority
Form, unless context clearly shows that other implications.It is also understood that term "and/or" used herein refers to and wraps
Any or all containing one or more projects of listing being associated may combination.
Although should be appreciated that in the application possible employing term first, second, third, etc. to describe various information, but this
A little information should not necessarily be limited by these terms.These terms are only used for same type of information is distinguished from each other out.Such as, without departing from
In the case of the application 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.Depend on linguistic context, word as used in this " if " can be construed to " ... time " or " when ...
Time " or " in response to determining ".
Fig. 1 is that the application forwards application scenarios figure, the distribution in Fig. 1 according to a kind of message shown in an exemplary embodiment
Formula switching equipment includes network board and multiple interface board (interface board 1 shown in figure and interface board 2), interface board and network board
The interface connected is internal interface, and the interface that switching equipment distributed with opposite end is connected is external interface, sets in distributed exchange
Being communicated by network board between each interface board in Bei, wherein, the exchange chip in network board supports travelling across VLAN three layers
Forwarding capability, each interface board all includes exchange chip, and exchange chip is used for E-Packeting, and supports VXLAN two-layer gateway
Function.
Fig. 2 is the application embodiment flow chart according to a kind of message forwarding method shown in an exemplary embodiment, should
Embodiment is applied on distributed switching equipment, is described in detail in conjunction with the application scenarios figure shown in Fig. 1, implements in the application
In example, interface board is for realizing the conversion between VXLAN message and VLAN message, and the VLAN message obtained is forwarded to exchange
Web plate, network board is for processing the VLAN message from each interface board, and realizes travelling across VLAN three layers forwarding, each interface board and friendship
Draping plate is all that the message realized by exchange chip is changed and forwarded, therefore, distributed switching equipment utilize network board and
Interface board has been implemented in combination with the function that VXLAN three-layer network closes.As it is shown in figure 1, interface board 1 is properly termed as first interface plate, interface
Plate 2 is properly termed as the second interface board.
As in figure 2 it is shown, this embodiment comprises the following steps:
Step 201: first interface plate receives the VXLAN message carrying a VNI, obtains a VNI corresponding
The oneth VLAN mark.
First interface plate on distributed switching equipment can first obtain the VLAN belonging to internal interface and external interface institute
The VXLAN belonged to, and utilize the mark of this VXLAN to set up the corresponding table of VXLAN with VLAN with the mark of this VLAN.
For obtaining the process of corresponding for a VNI VLAN mark, this first interface plate can utilize this first
VNI searches the corresponding table of VXLAN with VLAN, and obtains a VLAN mark corresponding for VNI.
Wherein, the heading of a VXLAN message carries a VNI (VXLAN NetworkIdentifier,
VXLAN network identity), a VNI refers to the mark of the VXLAN belonging to a VXLAN message, and a VNI is permissible
It is No. VXLAN, it is generally the case that the mark of this VXLAN is made up of 24 bits in messages, thus 2^24=can be supported
The VXLAN quantity of 16777216, and the mark of traditional VLAN is made up of 12 bits in messages, can support 2^12=4096's
VLAN quantity, therefore, compares traditional vlan technology, and VXLAN technology can support large-scale virtual machine in data center.As
Shown in table 1, for the corresponding table of exemplary VXLAN with VLAN a kind of in first interface plate, the such as the oneth VNI is 10, first interface
Plate can get a VLAN of correspondence and be designated 100.
VXLAN identifies | VLAN identifies |
10 | 100 |
Table 1
Step 202: first interface plate obtains VLAN message to a VXLAN message decapsulation, and by a VLAN mark
Know and add in this VLAN message, and this VLAN message is sent to network board.
Obtain the process of VLAN message for a VXLAN message decapsulation, first interface plate can by this first
The heading of VXLAN message removes, and obtains traditional VLAN message.Wherein, the heading of a VXLAN message can include
IP head and a VNI, the source IP address in this IP head is the IP address of the distributed switching equipment as transmitting terminal, purpose IP ground
Location is the IP address of local device.
Step 203: network board obtains outgoing interface corresponding to this VLAN message and the 2nd VLAN mark.
Specifically, network board can utilize the purpose IP address search routing table that this VLAN message carries, and acquisition should
Outgoing interface and the 2nd VLAN that purpose IP address is corresponding identify.
Wherein, the exchange chip of network board can be pre-configured with routing table, this routing table records purpose IP ground
The corresponding relation that location, outgoing interface identify with down hop VLAN, this routing table can be static routing, the mesh that this VLAN message carries
The IP address that IP address is virtual machine to be accessed in data center, down hop VLAN is designated the VLAN belonging to this virtual machine
Network.As shown in table 2, the purpose IP address for a kind of exemplary routing table, such as this VLAN message is VM1IP, switching network
The outgoing interface that the exchange chip of plate can get is interface 1, and the 2nd VLAN is designated 200.
Purpose IP address | Outgoing interface | Down hop VLAN identifies |
VM1IP | Interface 1 | 200 |
VM2IP | Interface 2 | 300 |
Table 2
Step 204: network board utilizes the 2nd VLAN mark to replace the VLAN mark in this VLAN message, and will
This VLAN message is sent to the second interface board from outgoing interface.
It should be noted that a VLAN mark can be identical with the 2nd VLAN mark, it is also possible to differ.When first
When VLAN mark is identical with the 2nd VLAN mark, represent the source IP address in this VLAN message and the void indicated by purpose IP address
Plan machine is positioned in same vlan network, when a VLAN mark differs with the 2nd VLAN mark, represents this VLAN message
In source IP address be positioned in different vlan networks from the virtual machine indicated by purpose IP address, network board need realize across
VLAN tri-layers forwarding.
It is described in detail with an example below, as described in step 201 to step 202, the exchange chip of network board
By after the routing table that lookup is pre-configured with, get the 2nd VLAN mark 200, due to a VLAN mark 100 and second
VLAN mark 200 differs, and therefore, the VLAN mark 100 in VLAN message is converted to by the exchange chip of network board
2nd VLAN mark 200, and by supporting that this VLAN message is forwarded on the second interface board by the outgoing interface 1 of VLAN200, thus
Realize travelling across VLAN three layers forwarding.
Step 205: the second interface board obtains the 2nd VNI that the 2nd VLAN mark is corresponding, and utilizes the 2nd VNI to this
VLAN message adds encapsulation and obtains the 2nd VXLAN message, and the 2nd VXLAN message is forwarded to the distributed switching equipment in opposite end
On.
Also can set up the corresponding table of VXLAN with VLAN on second interface board, it sets up first interface plate in process such as step 201
Set up the process of the corresponding table of VXLAN with VLAN, repeat no more.
For obtaining the process of the 2nd VNI corresponding to the 2nd VLAN mark, the second interface board can utilize this second
The corresponding table of VLAN identifier lookup VXLAN with VLAN, and obtain the 2nd VNI that the 2nd VLAN mark is corresponding.As shown in table 3, for
A kind of corresponding table of exemplary VXLAN with VLAN in second interface board, as described in step 204, the such as the 2nd VLAN is designated
200, it is 20 that the second interface board can get the 2nd VNI of correspondence.
VXLAN identifies | VLAN identifies |
20 | 200 |
Table 1
The process of the 2nd VXLAN message, the second interface board is obtained for utilizing the 2nd VNI that this VLAN message adds encapsulation
Can obtain the 2nd VNI corresponding add packaging information, and it is new as this VLAN message with the 2nd VNI that this adds packaging information
Heading, thus obtain the 2nd VXLAN message.
Wherein, the exchange chip of the second interface board can be pre-configured with corresponding the sealing up of the VXLAN belonging to external interface
Dress information, this adds packaging information can include source IP address and purpose IP address, and source IP address is local device IP address, purpose
IP address is the IP address of the distributed switching equipment of opposite end, and belonging to the external interface of the distributed switching equipment of receiving terminal
The mark of VXLAN include the 2nd VNI.
For the process being forwarded on the distributed switching equipment in opposite end by the 2nd VXLAN message, the second interface board should
2nd VXLAN message is sent to the distributed switching equipment in opposite end from the external interface of this interface board.
From above-described embodiment, the first interface plate of distributed switching equipment carries the of a VNI receiving
During one VXLAN message, first obtain a VLAN mark corresponding for VNI, a VXLAN message decapsulation is obtained
VLAN message, and a VLAN mark is added in VLAN message, and be sent on network board;Network board obtains should
After outgoing interface that VLAN message is corresponding and the 2nd VLAN mark, the 2nd VLAN mark is utilized to replace first in VLAN message
VLAN identifies, and is sent to the second interface board from this outgoing interface by this VLAN message;Second interface board obtains the 2nd VLAN mark
Know the 2nd corresponding VNI, and utilize the 2nd VNI that VLAN message adds encapsulation to obtain the 2nd VXLAN message, and by this second
VXLAN message is forwarded on the distributed switching equipment in opposite end, thus, it is achieved three layers of forwarding of VXLAN message.Based on above-mentioned realization
Mode, distributed switching equipment utilizes interface board decapsulate message and add encapsulation, to realize VXLAN message and VLAN report
Conversion between literary composition, and the VXLAN message adding encapsulation is carried out two layers of forwarding, utilize network board to search the route being pre-configured with
Table carries out three layers of forwarding of travelling across VLAN, and therefore, distributed switching equipment has been implemented in combination with VXLAN by interface board and network board
The function that three-layer network closes, changes without going VXLAN message up sending to processor to look into various list item and forwards, this
Outward, interface board and network board are all that the message realized in exchange chip forwards, and processing speed is fast, thus, improve VXLAN
The forward efficiency of message.
Corresponding with the embodiment of aforementioned message forwarding method, present invention also provides the embodiment of apparatus for forwarding message.
The embodiment of the application apparatus for forwarding message can be applied on distributed switching equipment.Device embodiment can be led to
Cross software to realize, it is also possible to realize by the way of hardware or software and hardware combining.As a example by implemented in software, as a logic
Device in meaning, is that computer program instructions corresponding in nonvolatile memory is read by the processor by its place equipment
Get and internal memory runs formation.For hardware view, as it is shown on figure 3, illustrate according to an exemplary embodiment for the application
The hardware structure diagram of a kind of distributed switching equipment, except the processor shown in Fig. 3, internal memory, network interface and non-volatile
Outside property memorizer, in embodiment, the equipment at device place is generally according to the actual functional capability of this equipment, it is also possible to include that other are hard
Part, repeats no more this.
Fig. 4 is the application example structure figure according to a kind of apparatus for forwarding message shown in an exemplary embodiment, should
Embodiment is applied on distributed switching equipment, and this device includes: first interface unit 410, crosspoint 420 and second connect
Mouth unit 430;Wherein, described first interface unit 410 can be the first interface plate of distributed switching equipment, described exchange list
Unit 420 can be the network board of distributed switching equipment, and described second interface unit 430 can be distributed switching equipment
Second interface board;
Described first interface unit 410, carries the of the first virtual expansible local net network mark VNI for receiving
One VXLAN message, and obtain described first corresponding for a VNI virtual LAN VLAN mark;To a described VXLAN message
Decapsulation obtains VLAN message, and a described VLAN mark is added in described VLAN message, and by described VLAN message
Send to described crosspoint 420;
Described crosspoint 420, for obtaining outgoing interface corresponding to described VLAN message and the 2nd VLAN mark;Utilize institute
State the VLAN mark that the 2nd VLAN mark is replaced in described VLAN message, and described VLAN message is sent out from described outgoing interface
Deliver to described second interface unit 430;
Described second interface unit 430, for obtaining the 2nd VNI that described 2nd VLAN mark is corresponding, and utilizes described
2nd VNI adds encapsulation and obtains the 2nd VXLAN message described VLAN message, and described 2nd VXLAN message is forwarded to opposite end
On distributed switching equipment.
In an optional implementation, described first interface unit 410, specifically for obtaining a described VNI
During a corresponding VLAN mark, a described VNI is utilized to search the corresponding table of VXLAN with VLAN;Obtain described first
A VLAN mark corresponding for VNI.
In another optional implementation, described second interface unit 430, specifically for obtaining described second
During the 2nd VNI that VLAN mark is corresponding, utilize the described 2nd VLAN corresponding table of identifier lookup VXLAN with VLAN;Obtain
The 2nd VNI that described 2nd VLAN mark is corresponding.
In another optional implementation, described first interface unit 410 and described second interface unit 430 all wrap
Including internal interface and external interface, described internal interface is connected with described crosspoint, and described external interface is distributed with opposite end
Switching equipment connects, and described first interface unit 410 includes with described second interface unit 430: set up corresponding table subelement;
The corresponding table subelement of described foundation, for obtaining the VLAN belonging to described internal interface;Obtain described external interface
Affiliated VXLAN;The mark utilizing described VXLAN sets up the corresponding table of VXLAN with VLAN with the mark of described VLAN.
In another optional implementation, described crosspoint 420 is provided with routing table, described routing table in advance
Record has the corresponding relation that purpose Internet protocol IP address, outgoing interface identify, described crosspoint 420, tool with down hop VLAN
Body is for, during obtaining outgoing interface corresponding to described VLAN message and the 2nd VLAN mark, utilizing described VLAN message to take
The purpose IP address search routing table of band;Obtain outgoing interface corresponding to described purpose IP address and the 2nd VLAN mark.
In said apparatus, the function of unit and the process that realizes of effect specifically refer to corresponding step in said method
Realize process, do not repeat them here.
For device embodiment, owing to it corresponds essentially to embodiment of the method, so relevant part sees method in fact
The part executing example illustrates.Device embodiment described above is only schematically, wherein said as separating component
The unit illustrated can be or may not be physically separate, and the parts shown as unit can be or can also
It not physical location, i.e. may be located at a place, or can also be distributed on multiple NE.Can be according to reality
Need to select some or all of module therein to realize the purpose of the application scheme.Those of ordinary skill in the art are not paying
In the case of going out creative work, i.e. it is appreciated that and implements.
From above-described embodiment, the first interface plate of distributed switching equipment carries the of a VNI receiving
During one VXLAN message, first obtain a VLAN mark corresponding for VNI, a VXLAN message decapsulation is obtained
VLAN message, and a VLAN mark is added in VLAN message, and be sent on network board;Network board obtains should
After outgoing interface that VLAN message is corresponding and the 2nd VLAN mark, the 2nd VLAN mark is utilized to replace first in VLAN message
VLAN identifies, and is sent to the second interface board from this outgoing interface by this VLAN message;Second interface board obtains the 2nd VLAN mark
Know the 2nd corresponding VNI, and utilize the 2nd VNI that VLAN message adds encapsulation to obtain the 2nd VXLAN message, and by this second
VXLAN message is forwarded on the distributed switching equipment in opposite end, thus, it is achieved three layers of forwarding of VXLAN message.Based on above-mentioned realization
Mode, distributed switching equipment utilizes interface board decapsulate message and add encapsulation, to realize VXLAN message and VLAN report
Conversion between literary composition, and the VXLAN message adding encapsulation is carried out two layers of forwarding, utilize network board to search the route being pre-configured with
Table carries out three layers of forwarding of travelling across VLAN, and therefore, distributed switching equipment has been implemented in combination with VXLAN by interface board and network board
The function that three-layer network closes, changes without going VXLAN message up sending to processor to look into various list item and forwards, this
Outward, interface board and network board are all that the message realized in exchange chip forwards, and processing speed is fast, thus, improve VXLAN
The forward efficiency of message.
The foregoing is only the preferred embodiment of the application, not in order to limit the application, all essences in the application
Within god and principle, any modification, equivalent substitution and improvement etc. done, should be included within the scope of the application protection.
Claims (10)
1. a message forwarding method, it is characterised in that described method is applied on distributed switching equipment, described distributed friendship
Exchange device includes network board, first interface plate and the second interface board, and described method includes:
Described first interface plate receives the VXLAN message carrying the first virtual expansible local net network mark VNI, and
Obtain described first corresponding for a VNI virtual LAN VLAN mark;A described VXLAN message decapsulation is obtained VLAN
Message, and a described VLAN mark is added in described VLAN message, and described VLAN message is sent to described exchange
Web plate;
Described network board obtains outgoing interface corresponding to described VLAN message and the 2nd VLAN mark;Utilize described 2nd VLAN mark
Know the VLAN mark replaced in described VLAN message, and described VLAN message is sent to described second from described outgoing interface
Interface board;
Described second interface board obtains the 2nd VNI that described 2nd VLAN mark is corresponding, and utilizes described 2nd VNI to described
VLAN message adds encapsulation and obtains the 2nd VXLAN message, and described 2nd VXLAN message is forwarded to the distributed switching equipment in opposite end
On.
Method the most according to claim 1, it is characterised in that it is corresponding that described first interface plate obtains a described VNI
The process of the first virtual LAN VLAN mark, specifically includes:
Described first interface plate utilizes a described VNI to search the corresponding table of VXLAN with VLAN;
Described first interface plate obtains a described VLAN mark corresponding for VNI.
Method the most according to claim 2, it is characterised in that it is right that described second interface board obtains described 2nd VLAN mark
The process of the 2nd VNI answered, specifically includes:
Described second interface board utilizes the described 2nd VLAN corresponding table of identifier lookup VXLAN with VLAN;
Described second interface board obtains the 2nd VNI that described 2nd VLAN mark is corresponding.
Method the most according to claim 3, it is characterised in that described first interface plate and described second interface board all include
Internal interface and external interface, described internal interface is connected with described network board, described external interface and the distributed friendship in opposite end
Exchange device connects, and described first interface plate and the second interface board are set up the process of the corresponding table of VXLAN with VLAN, specifically included:
Obtain the VLAN belonging to described internal interface;
Obtain the VXLAN belonging to described external interface;
The mark utilizing described VXLAN sets up the corresponding table of VXLAN with VLAN with the mark of described VLAN.
Method the most according to claim 1, it is characterised in that be provided with routing table on described network board in advance, described
Routing table record has the corresponding relation that purpose Internet protocol IP address, outgoing interface identify, described network board with down hop VLAN
Obtain outgoing interface corresponding to described VLAN message and the process of the 2nd VLAN mark, specifically include:
Described network board utilizes the purpose IP address search routing table that described VLAN message carries;
Described network board obtains outgoing interface corresponding to described purpose IP address and the 2nd VLAN mark.
6. an apparatus for forwarding message, it is characterised in that described device is applied on distributed switching equipment, described device bag
Include: first interface unit, crosspoint and the second interface unit;Wherein, described first interface unit is described distributed friendship
The first interface plate of exchange device, described crosspoint is the network board of described distributed switching equipment, described second interface list
Unit is the second interface board of described distributed switching equipment;
Described first interface unit, for receiving the VXLAN carrying the first virtual expansible local net network mark VNI
Message, and obtain described first corresponding for a VNI virtual LAN VLAN mark;To a described VXLAN message decapsulation
Obtain VLAN message, and a described VLAN mark is added in described VLAN message, and described VLAN message is sent extremely
Described crosspoint;
Described crosspoint, for obtaining outgoing interface corresponding to described VLAN message and the 2nd VLAN mark;Utilize described second
VLAN mark replaces the VLAN mark in described VLAN message, and is sent to institute from described outgoing interface by described VLAN message
State the second interface unit;
Described second interface unit, for obtaining the 2nd VNI that described 2nd VLAN mark is corresponding, and utilizes described 2nd VNI
Described VLAN message is added encapsulation and obtains the 2nd VXLAN message, and described 2nd VXLAN message is forwarded to the distributed friendship in opposite end
On exchange device.
Device the most according to claim 6, it is characterised in that described first interface unit, specifically for described in acquisition
During an oneth VLAN mark corresponding for VNI, a described VNI is utilized to search the corresponding table of VXLAN with VLAN;Obtain institute
State a VLAN mark corresponding for VNI.
Device the most according to claim 7, it is characterised in that described second interface unit, specifically for described in acquisition
During the 2nd VNI that 2nd VLAN mark is corresponding, utilize the described 2nd VLAN corresponding table of identifier lookup VXLAN with VLAN;
Obtain the 2nd VNI that described 2nd VLAN mark is corresponding.
Device the most according to claim 8, it is characterised in that described first interface unit and described second interface unit are equal
Including internal interface and external interface, described internal interface is connected with described crosspoint, and described external interface is distributed with opposite end
Formula switching equipment connects, and described first interface unit includes with described second interface unit: set up corresponding table subelement;
The corresponding table subelement of described foundation, for obtaining the VLAN belonging to described internal interface;Obtain belonging to described external interface
VXLAN;The mark utilizing described VXLAN sets up the corresponding table of VXLAN with VLAN with the mark of described VLAN.
Device the most according to claim 5, it is characterised in that be provided with routing table on described crosspoint in advance, described
Routing table record has purpose Internet protocol IP address, a corresponding relation of outgoing interface and down hop VLAN mark, described crosspoint,
Specifically for, during obtaining outgoing interface corresponding to described VLAN message and the 2nd VLAN mark, utilizing described VLAN message
The purpose IP address search routing table carried;Obtain outgoing interface corresponding to described purpose IP address and the 2nd VLAN mark.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610532452.3A CN106209557B (en) | 2016-06-30 | 2016-06-30 | Message forwarding method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610532452.3A CN106209557B (en) | 2016-06-30 | 2016-06-30 | Message forwarding method and device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN106209557A true CN106209557A (en) | 2016-12-07 |
CN106209557B CN106209557B (en) | 2019-09-06 |
Family
ID=57473392
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610532452.3A Active CN106209557B (en) | 2016-06-30 | 2016-06-30 | Message forwarding method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106209557B (en) |
Cited By (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106803804A (en) * | 2016-12-22 | 2017-06-06 | 杭州华为数字技术有限公司 | The method and apparatus of transmitting message |
CN107547395A (en) * | 2017-06-27 | 2018-01-05 | 新华三技术有限公司 | A kind of message transmitting method, device and machinable medium |
CN108173753A (en) * | 2017-12-28 | 2018-06-15 | 迈普通信技术股份有限公司 | Message forwarding method, switching card, service card and distribution switch |
CN108199963A (en) * | 2017-12-27 | 2018-06-22 | 新华三技术有限公司 | Message forwarding method and device |
CN108989176A (en) * | 2018-08-13 | 2018-12-11 | 郑州云海信息技术有限公司 | A kind of virtual machine exchange visit methods, devices and systems |
CN109525479A (en) * | 2018-12-19 | 2019-03-26 | 锐捷网络股份有限公司 | A kind of message processing method and equipment |
CN110505138A (en) * | 2019-08-23 | 2019-11-26 | 杭州迪普科技股份有限公司 | Message forwarding method, device, electronic equipment and machine readable storage medium |
CN111131030A (en) * | 2019-12-24 | 2020-05-08 | 浪潮思科网络科技有限公司 | Route processing method, equipment and medium under EVPN |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104350714A (en) * | 2014-05-29 | 2015-02-11 | 华为技术有限公司 | Packet forwarding method and VxLAN gateway |
CN104821914A (en) * | 2015-05-04 | 2015-08-05 | 杭州华三通信技术有限公司 | Message forwarding method and equipment of TRILL network |
CN104967564A (en) * | 2015-05-04 | 2015-10-07 | 杭州华三通信技术有限公司 | Message forwarding method from virtual local area network (VLAN) to transparent interconnect of lots of links (TRILL) network and message forwarding device from VLAN to TRILL network |
US20150381495A1 (en) * | 2014-06-30 | 2015-12-31 | Nicira, Inc. | Methods and systems for providing multi-tenancy support for single root i/o virtualization |
CN105429870A (en) * | 2015-11-30 | 2016-03-23 | 北京瑞和云图科技有限公司 | VXLAN security gateway device and application method thereof in SDN |
-
2016
- 2016-06-30 CN CN201610532452.3A patent/CN106209557B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104350714A (en) * | 2014-05-29 | 2015-02-11 | 华为技术有限公司 | Packet forwarding method and VxLAN gateway |
US20150381495A1 (en) * | 2014-06-30 | 2015-12-31 | Nicira, Inc. | Methods and systems for providing multi-tenancy support for single root i/o virtualization |
CN104821914A (en) * | 2015-05-04 | 2015-08-05 | 杭州华三通信技术有限公司 | Message forwarding method and equipment of TRILL network |
CN104967564A (en) * | 2015-05-04 | 2015-10-07 | 杭州华三通信技术有限公司 | Message forwarding method from virtual local area network (VLAN) to transparent interconnect of lots of links (TRILL) network and message forwarding device from VLAN to TRILL network |
CN105429870A (en) * | 2015-11-30 | 2016-03-23 | 北京瑞和云图科技有限公司 | VXLAN security gateway device and application method thereof in SDN |
Cited By (13)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106803804A (en) * | 2016-12-22 | 2017-06-06 | 杭州华为数字技术有限公司 | The method and apparatus of transmitting message |
CN106803804B (en) * | 2016-12-22 | 2019-12-17 | 杭州华为数字技术有限公司 | Method and device for transmitting message |
CN107547395B (en) * | 2017-06-27 | 2020-12-04 | 新华三技术有限公司 | Message transmission method and device and machine-readable storage medium |
CN107547395A (en) * | 2017-06-27 | 2018-01-05 | 新华三技术有限公司 | A kind of message transmitting method, device and machinable medium |
CN108199963A (en) * | 2017-12-27 | 2018-06-22 | 新华三技术有限公司 | Message forwarding method and device |
CN108199963B (en) * | 2017-12-27 | 2020-01-07 | 新华三技术有限公司 | Message forwarding method and device |
CN108173753A (en) * | 2017-12-28 | 2018-06-15 | 迈普通信技术股份有限公司 | Message forwarding method, switching card, service card and distribution switch |
CN108989176A (en) * | 2018-08-13 | 2018-12-11 | 郑州云海信息技术有限公司 | A kind of virtual machine exchange visit methods, devices and systems |
CN109525479A (en) * | 2018-12-19 | 2019-03-26 | 锐捷网络股份有限公司 | A kind of message processing method and equipment |
CN109525479B (en) * | 2018-12-19 | 2021-09-14 | 锐捷网络股份有限公司 | Message processing method and device |
CN110505138A (en) * | 2019-08-23 | 2019-11-26 | 杭州迪普科技股份有限公司 | Message forwarding method, device, electronic equipment and machine readable storage medium |
CN111131030B (en) * | 2019-12-24 | 2020-10-30 | 浪潮思科网络科技有限公司 | Route processing method, equipment and medium under EVPN |
CN111131030A (en) * | 2019-12-24 | 2020-05-08 | 浪潮思科网络科技有限公司 | Route processing method, equipment and medium under EVPN |
Also Published As
Publication number | Publication date |
---|---|
CN106209557B (en) | 2019-09-06 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106209557A (en) | Message forwarding method and device | |
CN103200069B (en) | A kind of method and apparatus of Message processing | |
CN107332775B (en) | Cross-host machine inter-visit system based on docker container and control method thereof | |
CN108718278B (en) | Message transmission method and device | |
CN105827495B (en) | The message forwarding method and equipment of VXLAN gateway | |
CN113411243B (en) | Data transmission method and device | |
CN108259299B (en) | Forwarding table item generating method and device and machine-readable storage medium | |
CN106998286A (en) | A kind of VXLAN message forwarding methods and device | |
CN104871483A (en) | IP multicast service join process for MPLS-based virtual private cloud networking | |
CN104823405A (en) | IP multicast service leave process for MPLS-based virtual private cloud networking | |
CN106878048A (en) | Fault handling method and device | |
CN110213148B (en) | Data transmission method, system and device | |
CN107645431B (en) | Message forwarding method and device | |
CN102792651B (en) | At the device of MAC layer application service path Route Selection | |
CN109729012A (en) | A kind of unicast message transmission method and device | |
CN103139075B (en) | A kind of message transmitting method and equipment | |
CN110034993A (en) | Transmit method, equipment and the network system of data | |
CN105379228A (en) | Method, switch, and controller for implementing ARP | |
CN107547391A (en) | A kind of message transmitting method and device | |
CN107094110A (en) | A kind of DHCP message retransmission method and device | |
CN106330719A (en) | VXLAN message forwarding method and device | |
CN106330553A (en) | Message forwarding method and device | |
CN104780090A (en) | VPN multicast transmission method and device PE equipment | |
CN106209637A (en) | From message forwarding method and the equipment of virtual expansible LAN to VLAN | |
CN110191042A (en) | A kind of message forwarding method and device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
CB02 | Change of applicant information |
Address after: Binjiang District and Hangzhou city in Zhejiang Province Road 310051 No. 68 in the 6 storey building Applicant after: Hangzhou Dipu Polytron Technologies Inc Address before: Binjiang District and Hangzhou city in Zhejiang Province Road 310051 No. 68 in the 6 storey building Applicant before: Hangzhou Dipu Technology Co., Ltd. |
|
CB02 | Change of applicant information | ||
GR01 | Patent grant | ||
GR01 | Patent grant |