CN106209557B - Message forwarding method and device - Google Patents
Message forwarding method and device Download PDFInfo
- Publication number
- CN106209557B CN106209557B CN201610532452.3A CN201610532452A CN106209557B CN 106209557 B CN106209557 B CN 106209557B CN 201610532452 A CN201610532452 A CN 201610532452A CN 106209557 B CN106209557 B CN 106209557B
- Authority
- CN
- China
- Prior art keywords
- vlan
- message
- interface
- vxlan
- mark
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
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
Abstract
The application provides a kind of message forwarding method and device, this method includes that first interface plate receives the first VXLAN message for carrying the first VNI, first VXLAN message is decapsulated to obtain VLAN message, and the corresponding first VLAN mark of the first VNI is added to VLAN message and is sent to network board;Network board obtains the corresponding outgoing interface of VLAN message and the 2nd VLAN mark;The first VLAN in replacement VLAN message is identified using the 2nd VLAN to identify, and is sent to second interface plate from outgoing interface;Second interface plate seals up dress to VLAN message using corresponding 2nd VNI of the 2nd VLAN mark and obtains the 2nd VXLAN message, and is forwarded on the distribution switching equipment of opposite end.It is implemented in combination with VXLAN three-layer network by the interface board and network board of distributed switching equipment to close, and interface board and network board are to realize message forwarding in exchange chip, forward efficiency is high.
Description
Technical field
This application involves network communication technology field more particularly to a kind of message forwarding methods and device.
Background technique
Data center generallys use server virtualization technology, and a physical server is virtualized into more VM
(Virtual Machine, virtual machine), and require physical server support VXLAN (Virtual Extensible LAN,
Expansible Virtual Local Area Network) technology, the VLAN that VM is sent (Virtual Local Area Network, virtual local area
Net) message is packaged into VXLAN message, then carries out three layers of forwarding by switching equipment, however, the exchange chip in general switching equipment
VXLAN three-layer network is not supported to close function.
In the prior art, when the exchange chip for the switching equipment for not supporting VXLAN three-layer network to close receives the first VXLAN
When message, usually by the first VXLAN message up sending to processor, the first VXLAN message is decapsulated to obtain by processor
VLAN message, and search various list items and VLAN message is handled, then the VLAN message after processing is packaged into second
VXLAN message, and the 2nd VXLAN message is forwarded, to realize three layers of forwarding across VXLAN.But switching equipment connects
All VXLAN messages received require to be sent to processor, and since processor needs to look into various list items, processing speed is slow, leads
Cause the forward efficiency of VXLAN message 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 low problem of rate.
According to the embodiment of the present application in a first aspect, providing a kind of message forwarding method, the method is applied to distribution
On switching equipment, the distribution switching equipment includes network board, first interface plate and second interface plate, the method packet
It includes:
The first interface plate receives the first VXLAN message for carrying the first VNI, and it is corresponding to obtain the first VNI
The first VLAN mark;The first VXLAN message is decapsulated to obtain VLAN message, and the first VLAN is identified and is added
The network board is sent into the VLAN message, and by the VLAN message;
The network board obtains the corresponding outgoing interface of the VLAN message and the 2nd VLAN mark;Utilize described second
VLAN mark replaces the first VLAN mark in the VLAN message, and the VLAN message is sent to institute from the outgoing interface
State second interface plate;
The second interface plate obtains the 2nd VLAN and identifies corresponding 2nd VNI, and using the 2nd VNI to institute
It states VLAN message and seals up dress and obtain the 2nd VXLAN message, and the 2nd VXLAN message is forwarded to the exchange of opposite end distribution and is set
It is standby upper.
According to the second aspect of the embodiment of the present application, a kind of apparatus for forwarding message is provided, described device is applied to distribution
On switching equipment, described device includes: first interface unit, crosspoint and second interface unit;
The first interface unit carries the first of the first virtual expansible local net network mark VNI for receiving
VXLAN message, and obtain the corresponding first virtual LAN VLAN mark of the first VNI;To the first VXLAN message solution
Encapsulation obtains VLAN message, and the first VLAN mark is added in the VLAN message, and the VLAN message is sent out
It send to the crosspoint;
The crosspoint, for obtaining the corresponding outgoing interface of the VLAN message and the 2nd VLAN mark;Using described
2nd VLAN mark replaces the first VLAN mark in the VLAN message, and the VLAN message is sent from the outgoing interface
To the second interface unit;
The second interface unit identifies corresponding 2nd VNI for obtaining the 2nd VLAN, and utilizes described second
VNI seals up dress to the VLAN message and obtains the 2nd VXLAN message, and the 2nd VXLAN message is forwarded to opposite end distribution
On formula switching equipment.
Using the embodiment of the present application, the first interface plate of distributed switching equipment carries the of the first VNI receiving
When one VXLAN message, the corresponding first VLAN mark of the first VNI is first obtained, the first VXLAN message is decapsulated to obtain
VLAN message, and the first VLAN mark is added in VLAN message, and is sent on network board;Network board obtains should
After the corresponding outgoing interface of VLAN message and the 2nd VLAN mark, first in replacement VLAN message is identified using the 2nd VLAN
VLAN mark, and the VLAN message is sent to second interface plate from the outgoing interface;Second interface plate obtains the 2nd VLAN mark
Know corresponding 2nd VNI, and dress sealed up to VLAN message using the 2nd VNI and obtains the 2nd VXLAN message, and by this second
VXLAN message is forwarded on the distribution switching equipment of opposite end, thus, realize three layers of forwarding of VXLAN message.Based on above-mentioned realization
Mode, distributed switching equipment are decapsulated to message and are sealed up dress using interface board, to realize that VXLAN message and VLAN are reported
Conversion between text, and two layers of forwarding are carried out to the VXLAN message for sealing up dress, preconfigured routing is searched using network board
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 is converted and is forwarded without removing to look into various list items for VXLAN message up sending to processor, this
Outside, interface board and network board are the message forwardings realized in exchange chip, and processing speed is fast, thus, improve VXLAN
The forward efficiency of message.
Detailed description of the invention
Fig. 1 is a kind of the application message forwarding application scenario diagram shown according to an exemplary embodiment;
Fig. 2 is a kind of the application embodiment flow chart of message forwarding method shown according to an exemplary embodiment;
Fig. 3 is a kind of the application hardware structure diagram of distributed switching equipment shown according to an exemplary embodiment;
Fig. 4 is a kind of the application example structure figure of apparatus for forwarding message shown according to an exemplary embodiment.
Specific embodiment
Example embodiments are described in detail here, and the example is illustrated in the accompanying drawings.Following description is related to
When attached drawing, unless otherwise indicated, the same numbers in different drawings indicate the same or similar elements.Following exemplary embodiment
Described in embodiment do not represent all embodiments consistent with the application.On the contrary, they be only with it is such as appended
The example of the consistent device and method of some aspects be described in detail in claims, the application.
It is only to be not intended to be limiting the application merely for for the purpose of describing particular embodiments in term used in this application.
It is also intended in the application and the "an" of singular used in the attached claims, " described " and "the" including majority
Form, unless the context clearly indicates other meaning.It is also understood that term "and/or" used herein refers to and wraps
It may be combined containing one or more associated any or all of project listed.
It will be appreciated that though various information, but this may be described using term first, second, third, etc. in the application
A little information should not necessarily be limited by these terms.These terms are only used to for same type of information being distinguished from each other out.For example, not departing from
In the case where the application range, 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 context, word as used in this " if " can be construed to " ... when " or " when ...
When " or " in response to determination ".
Fig. 1 is a kind of the application message forwarding application scenario diagram shown according to an exemplary embodiment, the distribution in Fig. 1
Formula switching equipment includes network board and multiple interface boards (interface board 1 and interface board 2 are shown in figure), interface board and network board
The interface of connection is internal interface, and the interface connecting with opposite end distribution switching equipment is external interface, is set in distribution exchange
It is communicated between each interface board by network board in standby, wherein the exchange chip in network board supports three layers of travelling across VLAN
Forwarding capability, each interface board include exchange chip, and exchange chip supports VXLAN two-layer gateway for E-Packeting
Function.
Fig. 2 is a kind of the application embodiment flow chart of message forwarding method shown according to an exemplary embodiment, should
Embodiment is applied on distributed switching equipment, and application scenario diagram as shown in connection with fig. 1 is described in detail, and implements in the application
In example, obtained VLAN message is forwarded to exchange for realizing the conversion between VXLAN message and VLAN message by interface board
Web plate, network board realize three layers of travelling across VLAN forwarding, each interface board and friendship for handling the VLAN message from each interface board
Draping plate is the message conversion and forwarding realized by exchange chip, therefore, distributed switching equipment using network board and
Interface board has been implemented in combination with the function of VXLAN three-layer network pass.As shown in Figure 1, interface board 1 is properly termed as first interface plate, interface
Plate 2 is properly termed as second interface plate.
As shown in Fig. 2, the embodiment the following steps are included:
Step 201: first interface plate receives the first VXLAN message for carrying the first VNI, and it is corresponding to obtain the first VNI
The first VLAN mark.
First interface plate on distributed switching equipment can first obtain VLAN belonging to internal interface and external interface institute
The VXLAN of category, and the corresponding table of VXLAN and VLAN is established with the mark of the VLAN using the mark of the VXLAN.
For the process for obtaining the first VNI corresponding first VLAN mark, the first interface plate can use this first
VNI searches VXLAN table corresponding with VLAN, and obtains the corresponding first VLAN mark of the first VNI.
Wherein, carried in the heading of the first VXLAN message the first VNI (VXLAN NetworkIdentifier,
VXLAN network identity), the first VNI refers to the mark of VXLAN belonging to the first VXLAN message, and the first VNI can be with
It is No. VXLAN, it is generally the case that the mark of the VXLAN is made of 24 bits in messages, so as to support 2^24=
16777216 VXLAN quantity, and the mark of traditional VLAN is made of 12 bits in messages, can support 2^12=4096's
VLAN quantity, therefore, compared to traditional vlan technology, VXLAN technology can support large-scale virtual machine in data center.Such as
It is a kind of illustrative VXLAN table corresponding with VLAN in first interface plate shown in table 1, such as the first VNI is 10, first interface
Plate is available to be identified as 100 to corresponding first VLAN.
VXLAN mark | VLAN mark |
10 | 100 |
Table 1
Step 202: first interface plate decapsulates the first VXLAN message to obtain VLAN message, and the first VLAN is marked
Knowledge is added in the VLAN message, and the VLAN message is sent to network board.
Decapsulate to obtain the process of VLAN message for the first VXLAN message, first interface plate can by this first
The heading of VXLAN message removes, and obtains traditional VLAN message.Wherein, the heading of the first VXLAN message may include
IP and the first VNI, the source IP address in the IP are the IP address of the distributed switching equipment as transmitting terminal, destination IP
Location is the IP address of local device.
Step 203: network board obtains the corresponding outgoing interface of VLAN message and the 2nd VLAN mark.
Specifically, the purpose IP address that network board can use VLAN message carrying searches routing table, and obtaining should
The corresponding outgoing interface of purpose IP address and the 2nd VLAN are identified.
Wherein, it can be pre-configured with routing table in the exchange chip of network board, destination IP is recorded in the routing table
The corresponding relationship that location, outgoing interface and next-hop VLAN are identified, the routing table can be static routing, the mesh which carries
IP address be the virtual machine to be accessed in data center IP address, next-hop VLAN is identified as VLAN belonging to the virtual machine
Network.It as shown in table 2, is a kind of illustrative routing table, such as the purpose IP address of the VLAN message is VM1IP, switching network
The available outgoing interface arrived of the exchange chip of plate is interface 1, and the 2nd VLAN is identified as 200.
Purpose IP address | Outgoing interface | Next-hop VLAN mark |
VM1IP | Interface 1 | 200 |
VM2IP | Interface 2 | 300 |
Table 2
Step 204: network board is replaced the first VLAN in the VLAN message using the 2nd VLAN mark and is identified, and will
The VLAN message is sent to second interface plate from outgoing interface.
It should be noted that the first VLAN mark can be identical with the 2nd VLAN mark, it can not also be identical.When first
When VLAN mark is identical as the 2nd VLAN mark, void indicated by source IP address and the purpose IP address in the VLAN message is indicated
Quasi- machine is located in the same vlan network, when the first VLAN mark and not identical the 2nd VLAN mark, indicates the VLAN message
In source IP address be located in different vlan networks from virtual machine indicated by purpose IP address, network board need realize across
Tri- layers of VLAN forwarding.
It is described in detail below with an example, as described in step 201 to step 202, the exchange chip of network board
After preconfigured routing table, the 2nd VLAN mark 200 is got, due to the first VLAN mark 100 and second
VLAN mark 200 is not identical, and therefore, the exchange chip of network board is converted to the first VLAN mark 100 in VLAN message
2nd VLAN mark 200, and by supporting the outgoing interface 1 of VLAN200 that the VLAN message is forwarded on second interface plate, thus
Realize three layers of travelling across VLAN forwarding.
Step 205: second interface plate obtains the 2nd VLAN and identifies corresponding 2nd VNI, and using the 2nd VNI to this
VLAN message seals up dress and obtains the 2nd VXLAN message, and the 2nd VXLAN message is forwarded to opposite end distribution switching equipment
On.
Also VXLAN table corresponding with VLAN, first interface plate in establishment process such as step 201 can be established on second interface plate
The process for establishing VXLAN table corresponding with VLAN, repeats no more.
Identify the process of corresponding 2nd VNI for the 2nd VLAN is obtained, second interface plate can use this second
VLAN identifier lookup VXLAN table corresponding with VLAN, and obtain the 2nd VLAN and identify corresponding 2nd VNI.As shown in table 3, it is
A kind of illustrative VXLAN table corresponding with VLAN in second interface plate, as described in step 204, such as the 2nd VLAN is identified as
200, second interface plate it is available to corresponding 2nd VNI be 20.
VXLAN mark | VLAN mark |
20 | 200 |
Table 1
The process of the 2nd VXLAN message, second interface plate are obtained for dress is sealed up to the VLAN message using the 2nd VNI
Available 2nd VNI is corresponding to add packaging information, and adds packaging information new as the VLAN message with the 2nd VNI this
Heading, to obtain the 2nd VXLAN message.
Wherein, it can be pre-configured with that VXLAN belonging to external interface is corresponding to be sealed up in the exchange chip of second interface plate
Information is filled, should add packaging information may 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 end
VXLAN mark include the 2nd VNI.
For the process being forwarded to the 2nd VXLAN message on the distribution switching equipment of opposite end, second interface plate should
2nd VXLAN message is sent on the distribution switching equipment of opposite end from the external interface of this interface board.
As can be seen from the above embodiments, the first interface plate of distributed switching equipment carries the of the first VNI receiving
When one VXLAN message, the corresponding first VLAN mark of the first VNI is first obtained, the first VXLAN message is decapsulated to obtain
VLAN message, and the first VLAN mark is added in VLAN message, and is sent on network board;Network board obtains should
After the corresponding outgoing interface of VLAN message and the 2nd VLAN mark, first in replacement VLAN message is identified using the 2nd VLAN
VLAN mark, and the VLAN message is sent to second interface plate from the outgoing interface;Second interface plate obtains the 2nd VLAN mark
Know corresponding 2nd VNI, and dress sealed up to VLAN message using the 2nd VNI and obtains the 2nd VXLAN message, and by this second
VXLAN message is forwarded on the distribution switching equipment of opposite end, thus, realize three layers of forwarding of VXLAN message.Based on above-mentioned realization
Mode, distributed switching equipment are decapsulated to message and are sealed up dress using interface board, to realize that VXLAN message and VLAN are reported
Conversion between text, and two layers of forwarding are carried out to the VXLAN message for sealing up dress, preconfigured routing is searched using network board
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 is converted and is forwarded without removing to look into various list items for VXLAN message up sending to processor, this
Outside, interface board and network board are the message forwardings realized in exchange chip, 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 embodiments of apparatus for forwarding message.
The embodiment of the application apparatus for forwarding message can be applied on distributed switching equipment.Installation practice can lead to
Software realization is crossed, can also be realized by way of hardware or software and hardware combining.Taking software implementation as an example, as a logic
Device in meaning is to be read computer program instructions corresponding in nonvolatile memory by the processor of equipment where it
Get what operation in memory was formed.For hardware view, as shown in figure 3, being shown for the application according to an exemplary embodiment
A kind of distributed switching equipment hardware structure diagram, in addition to processor shown in Fig. 3, memory, network interface and non-volatile
Property memory except, equipment in embodiment where device can also include that other are hard generally according to the actual functional capability of the equipment
Part repeats no more this.
Fig. 4 is a kind of the application example structure figure of apparatus for forwarding message shown according to an exemplary embodiment, should
Embodiment is applied on distributed switching equipment, which includes: first interface unit 410, crosspoint 420 and second connect
Mouth unit 430;Wherein, the first interface unit 410 can be the first interface plate of distributed switching equipment, and the exchange is single
Member 420 can be the network board of distributed switching equipment, and the second interface unit 430 can be distributed switching equipment
Second interface plate;
The first interface unit 410 carries the of the first virtual expansible local net network mark VNI for receiving
One VXLAN message, and obtain the corresponding first virtual LAN VLAN mark of the first VNI;To the first VXLAN message
Decapsulation obtains VLAN message, and the first VLAN mark is added in the VLAN message, and by the VLAN message
It is sent to the crosspoint 420;
The crosspoint 420, for obtaining the corresponding outgoing interface of the VLAN message and the 2nd VLAN mark;Using institute
It states the first VLAN that the 2nd VLAN mark is replaced in the VLAN message to identify, and the VLAN message is sent out from the outgoing interface
It send to the second interface unit 430;
The second interface unit 430 identifies corresponding 2nd VNI for obtaining the 2nd VLAN, and described in utilization
2nd VNI seals up dress to the VLAN message and obtains the 2nd VXLAN message, and the 2nd VXLAN message is forwarded to opposite end
On distributed switching equipment.
In an optional implementation, the first interface unit 410 is specifically used for obtaining the first VNI
During corresponding first VLAN mark, VXLAN table corresponding with VLAN is searched using the first VNI;Obtain described first
The corresponding first VLAN mark of VNI.
In another optional implementation, the second interface unit 430 is specifically used for obtaining described second
During VLAN identifies corresponding 2nd VNI, the 2nd VLAN identifier lookup VXLAN table corresponding with VLAN is utilized;It obtains
2nd VLAN identifies corresponding 2nd VNI.
In another optional implementation, the first interface unit 410 and the second interface unit 430 are wrapped
Internal interface and external interface are included, the internal interface is connect with the crosspoint, and the external interface and opposite end are distributed
Switching equipment connection, the first interface unit 410 and the second interface unit 430 include: to establish corresponding table subelement;
The corresponding table subelement of the foundation, for obtaining VLAN belonging to the internal interface;Obtain the external interface
Affiliated VXLAN;The corresponding table of VXLAN and VLAN is established with the mark of the VLAN using the mark of the VXLAN.
In another optional implementation, routing table, the routing table are provided on the crosspoint 420 in advance
Record has the corresponding relationship of purpose Internet protocol IP address, outgoing interface and next-hop VLAN mark, the crosspoint 420, tool
Body is used to take during obtaining the corresponding outgoing interface of the VLAN message and the 2nd VLAN is identified using the VLAN message
The purpose IP address of band searches routing table;It obtains the corresponding outgoing interface in the destination IP address and the 2nd VLAN is identified.
The function of each unit and the realization process of effect are specifically detailed in the above method and correspond to step in above-mentioned apparatus
Realization process, details are not described herein.
For device embodiment, since it corresponds essentially to embodiment of the method, so related place is referring to method reality
Apply the part explanation of example.The apparatus embodiments described above are merely exemplary, wherein described be used as separation unit
The unit of explanation may or may not be physically separated, and component shown as a unit can be or can also be with
It is not physical unit, it can it is in one place, or may be distributed over multiple network units.It can be according to actual
The purpose for needing to select some or all of the modules therein to realize application scheme.Those of ordinary skill in the art are not paying
Out in the case where creative work, it can understand and implement.
As can be seen from the above embodiments, the first interface plate of distributed switching equipment carries the of the first VNI receiving
When one VXLAN message, the corresponding first VLAN mark of the first VNI is first obtained, the first VXLAN message is decapsulated to obtain
VLAN message, and the first VLAN mark is added in VLAN message, and is sent on network board;Network board obtains should
After the corresponding outgoing interface of VLAN message and the 2nd VLAN mark, first in replacement VLAN message is identified using the 2nd VLAN
VLAN mark, and the VLAN message is sent to second interface plate from the outgoing interface;Second interface plate obtains the 2nd VLAN mark
Know corresponding 2nd VNI, and dress sealed up to VLAN message using the 2nd VNI and obtains the 2nd VXLAN message, and by this second
VXLAN message is forwarded on the distribution switching equipment of opposite end, thus, realize three layers of forwarding of VXLAN message.Based on above-mentioned realization
Mode, distributed switching equipment are decapsulated to message and are sealed up dress using interface board, to realize that VXLAN message and VLAN are reported
Conversion between text, and two layers of forwarding are carried out to the VXLAN message for sealing up dress, preconfigured routing is searched using network board
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 is converted and is forwarded without removing to look into various list items for VXLAN message up sending to processor, this
Outside, interface board and network board are the message forwardings realized in exchange chip, and processing speed is fast, thus, improve VXLAN
The forward efficiency of message.
The foregoing is merely the preferred embodiments of the application, not to limit the application, all essences in the application
Within mind and principle, any modification, equivalent substitution, improvement and etc. done be should be included within the scope of the application protection.
Claims (10)
1. a kind of message forwarding method, which is characterized in that the method is applied on distributed switching equipment, the distributed friendship
Exchange device includes network board, first interface plate and second interface plate, which comprises
The first interface plate receives the first VXLAN message for carrying the first virtual expansible local net network mark VNI, and
Obtain the corresponding first virtual LAN VLAN mark of the first VNI;The first VXLAN message is decapsulated to obtain VLAN
Message, and the first VLAN mark is added in the VLAN message, and the VLAN message is sent to the exchange
Web plate;
The network board obtains the corresponding outgoing interface of the VLAN message and the 2nd VLAN mark;It is marked using the 2nd VLAN
Know the first VLAN mark replaced in the VLAN message, and the VLAN message is sent to described second from the outgoing interface
Interface board;
The second interface plate obtains the 2nd VLAN and identifies corresponding 2nd VNI, and using the 2nd VNI to described
VLAN message seals up dress and obtains the 2nd VXLAN message, and the 2nd VXLAN message is forwarded to opposite end distribution switching equipment
On.
2. the method according to claim 1, wherein first interface plate acquisition the first VNI is corresponding
The process of first virtual LAN VLAN mark, specifically includes:
The first interface plate searches VXLAN table corresponding with VLAN using the first VNI;
The first interface plate obtains the corresponding first VLAN mark of the first VNI.
3. according to the method described in claim 2, it is characterized in that, the second interface plate obtains the 2nd VLAN mark pair
The process of the 2nd VNI answered, specifically includes:
The second interface plate utilizes the 2nd VLAN identifier lookup VXLAN table corresponding with VLAN;
The second interface plate obtains the 2nd VLAN and identifies corresponding 2nd VNI.
4. according to the method described in claim 3, it is characterized in that, the first interface plate and the second interface plate include
Internal interface and external interface, the internal interface are connect with the network board, and the external interface and opposite end distribution are handed over
Exchange device connection, the first interface plate and second interface plate establish the process of VXLAN table corresponding with VLAN, specifically include:
Obtain VLAN belonging to the internal interface;
Obtain VXLAN belonging to the external interface;
The corresponding table of VXLAN and VLAN is established with the mark of the VLAN using the mark of the VXLAN.
5. described the method according to claim 1, wherein be provided with routing table on the network board in advance
Routing table record has the corresponding relationship of purpose Internet protocol IP address, outgoing interface and next-hop VLAN mark, the network board
The process for obtaining the corresponding outgoing interface of the VLAN message and the 2nd VLAN mark, specifically includes:
The network board searches routing table using the purpose IP address that the VLAN message carries;
The network board obtains the corresponding outgoing interface in the destination IP address and the 2nd VLAN is identified.
6. a kind of apparatus for forwarding message, which is characterized in that described device is applied on distributed switching equipment, described device packet
It includes: first interface unit, crosspoint and second interface unit;Wherein, the first interface unit is the distributed friendship
The first interface plate of exchange device, the crosspoint are the network board of the distributed switching equipment, the second interface list
Member is the second interface plate of the distributed switching equipment;
The first interface unit, for receiving the first VXLAN for carrying the first virtual expansible local net network mark VNI
Message, and obtain the corresponding first virtual LAN VLAN mark of the first VNI;The first VXLAN message is decapsulated
VLAN message is obtained, and the first VLAN mark is added in the VLAN message, and the VLAN message is sent to
The crosspoint;
The crosspoint, for obtaining the corresponding outgoing interface of the VLAN message and the 2nd VLAN mark;Utilize described second
VLAN mark replaces the first VLAN mark in the VLAN message, and the VLAN message is sent to institute from the outgoing interface
State second interface unit;
The second interface unit identifies corresponding 2nd VNI for obtaining the 2nd VLAN, and utilizes the 2nd VNI
Dress is sealed up to the VLAN message and obtains the 2nd VXLAN message, and the 2nd VXLAN message is forwarded to opposite end distribution and is handed over
On exchange device.
7. device according to claim 6, which is characterized in that the first interface unit is specifically used for described in the acquisition
During the corresponding first VLAN mark of first VNI, VXLAN table corresponding with VLAN is searched using the first VNI;Obtain institute
State the corresponding first VLAN mark of the first VNI.
8. device according to claim 7, which is characterized in that the second interface unit is specifically used for described in the acquisition
During 2nd VLAN identifies corresponding 2nd VNI, the 2nd VLAN identifier lookup VXLAN table corresponding with VLAN is utilized;
It obtains the 2nd VLAN and identifies corresponding 2nd VNI.
9. device according to claim 8, which is characterized in that the first interface unit and the second interface unit are equal
Including internal interface and external interface, the internal interface is connect with the crosspoint, and the external interface and opposite end are distributed
The connection of formula switching equipment, the first interface unit and the second interface unit include: to establish corresponding table subelement;
The corresponding table subelement of the foundation, for obtaining VLAN belonging to the internal interface;It obtains belonging to the external interface
VXLAN;The corresponding table of VXLAN and VLAN is established with the mark of the VLAN using the mark of the VXLAN.
10. device according to claim 6, which is characterized in that be provided with routing table on the crosspoint in advance, it is described
The corresponding relationship that routing table record has purpose Internet protocol IP address, outgoing interface and next-hop VLAN to identify, the crosspoint,
Specifically for utilizing the VLAN message during obtaining the corresponding outgoing interface of the VLAN message and the 2nd VLAN is identified
The purpose IP address of carrying searches routing table;It obtains the corresponding outgoing interface in the destination IP address and the 2nd VLAN is identified.
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 CN106209557A (en) | 2016-12-07 |
CN106209557B true 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) |
Families Citing this family (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
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 |
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 |
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 |
Citations (4)
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 |
CN105429870A (en) * | 2015-11-30 | 2016-03-23 | 北京瑞和云图科技有限公司 | VXLAN security gateway device and application method thereof in SDN |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US9419897B2 (en) * | 2014-06-30 | 2016-08-16 | Nicira, Inc. | Methods and systems for providing multi-tenancy support for Single Root I/O Virtualization |
-
2016
- 2016-06-30 CN CN201610532452.3A patent/CN106209557B/en active Active
Patent Citations (4)
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 |
CN105429870A (en) * | 2015-11-30 | 2016-03-23 | 北京瑞和云图科技有限公司 | VXLAN security gateway device and application method thereof in SDN |
Also Published As
Publication number | Publication date |
---|---|
CN106209557A (en) | 2016-12-07 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106209557B (en) | Message forwarding method and device | |
CN103200069B (en) | A kind of method and apparatus of Message processing | |
CN104639414B (en) | A kind of message forwarding method and equipment | |
CN105827495B (en) | The message forwarding method and equipment of VXLAN gateway | |
CN113411243B (en) | Data transmission method and device | |
CN106998286A (en) | A kind of VXLAN message forwarding methods and device | |
CN106209643B (en) | Message forwarding method and device | |
CN104092595B (en) | Message processing method and device in virtualization system based on 802.1BR | |
CN108718278B (en) | Message transmission method and device | |
CN106209553A (en) | Message processing method, equipment and system | |
CN107645431B (en) | Message forwarding method and device | |
CN104145458A (en) | Packet forwarding method, device and data center network | |
CN110213148B (en) | Data transmission method, system and device | |
CN105379228A (en) | Method, switch, and controller for implementing ARP | |
CN109729012A (en) | A kind of unicast message transmission method and device | |
CN110034993A (en) | Transmit method, equipment and the network system of data | |
CN107645433A (en) | Message forwarding method and device | |
CN107094110A (en) | A kind of DHCP message retransmission method and device | |
CN107547399A (en) | The processing method and PE equipment of a kind of multicast forwarding list item | |
CN106330719A (en) | VXLAN message forwarding method and device | |
CN104780090B (en) | Method, apparatus, the PE equipment of VPN multicast transmissions | |
CN113660164A (en) | Message forwarding method and network equipment | |
CN106209637A (en) | From message forwarding method and the equipment of virtual expansible LAN to VLAN | |
CN105939296A (en) | Method and device for processing message | |
CN109246016A (en) | Message processing method and device across VXLAN |
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 | ||
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. |
|
GR01 | Patent grant | ||
GR01 | Patent grant |