CN106161253A - A kind of message processing method and device - Google Patents
A kind of message processing method and device Download PDFInfo
- Publication number
- CN106161253A CN106161253A CN201610487900.2A CN201610487900A CN106161253A CN 106161253 A CN106161253 A CN 106161253A CN 201610487900 A CN201610487900 A CN 201610487900A CN 106161253 A CN106161253 A CN 106161253A
- Authority
- CN
- China
- Prior art keywords
- vtep
- address
- message
- unicast message
- forwarding
- 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
- H04L45/00—Routing or path finding of packets in data switching networks
- H04L45/74—Address processing for routing
-
- 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/4633—Interconnection of networks using encapsulation techniques, e.g. tunneling
-
- 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]
Abstract
The embodiment of the invention discloses a kind of message processing method and device, the method includes: after a VTEP receives the unicast message that virtual machine sends, find that this locality does not stores the forwarding information that the destination address of this unicast message is corresponding, then according to the acquiescence forwarding information preset, this unicast message is forwarded to the 2nd VTEP, so that this unicast message is proceeded to forward by the 2nd VTEP.Visible, the embodiment of the present invention all stores the forwarding information of all of virtual machine without all of VTEP, one of them VTEP is only needed to store the forwarding information of all of virtual machine, to realize saving the address space of part VTEP in networking, reduce the requirement of the address space to part VTEP in networking, save Internet resources, reduce the cost of VTEP, and then reduce the effect of the cost of networking.
Description
Technical field
The present invention relates to communication technical field, particularly to a kind of message processing method and device.
Background technology
Existing EVPN (Ethernet Virtual Private Network, Ethernet VPN (virtual private network)) network
In, each VTEP (VXLAN Tunnel End Point, VXLAN endpoint of a tunnel, wherein, VXLAN:Virtual
EXtensible Local Area Network, expansible Virtual Local Area Network) mac address table and the IP forward table that are preserved
In, all preserve all virtual machines in this EVPN network corresponding MAC (Media Access Control, media interviews control
System) address list item and IP address list item.
For existing EVPN network, each VTEP is required for enough address spaces to preserve in whole network
The MAC Address list item of all virtual machines and IP address list item, and then ensure business normal process.When address insufficient space, it is not
When can preserve MAC Address list item and the IP address list item of all virtual machines, it may appear that following problem: when the mac address table of VTEP
During memory space inadequate, when VTEP receives unicast message, it is impossible to find the purpose of this unicast message in mac address table
The forwarding information that MAC Address is corresponding, now will produce the unicast message of the unknown, and this unknown unicast message can be at whole EVPN net
Flood in network;When the IP forward table memory space inadequate of VTEP, when VTEP receives unicast message, forward from the IP stored
Table does not finds the forwarding information that the purpose IP address of this unicast message is corresponding, now can abandon this unicast message.
Therefore, each VTEP in networking (EVPN network) must have enough address spaces, it is necessary to reaches corresponding property
When in energy requirement, especially networking, virtual machine quantity is bigger, the address space of each VTEP is required higher, the performance of its correspondence
Requiring the highest, the most this restriction brings certain restriction, the one-tenth that networking (EVPN network) builds to the deployment of EVPN network
This also can be of a relatively high.
Summary of the invention
The embodiment of the invention discloses a kind of message processing method and device, empty to save the address of part VTEP in networking
Between, reduce the requirement of the address space of VTEP in networking.Concrete scheme is as follows:
On the one hand, embodiments provide a kind of message processing method, be applied to the first expansible VLAN
Endpoint of a tunnel VTEP in network VXLAN, described method includes:
The unicast message that sink virtual machine sends;
If this locality does not stores the forwarding information that the destination address of described unicast message is corresponding, then turn according to the acquiescence preset
Photos and sending messages, is forwarded to the 2nd VTEP by described unicast message, so that described unicast message is forwarded by described 2nd VTEP.
On the one hand embodiments provide a kind of message process device, be applied to the first expansible Virtual Local Area Network
Endpoint of a tunnel VTEP in VXLAN, described device includes: receiver module and forwarding module;
Described receiver module, the unicast message sent for sink virtual machine;
Described forwarding module, if the forwarding information that the destination address not storing described unicast message for this locality is corresponding,
Then according to the acquiescence forwarding information preset, described unicast message is forwarded to the 2nd VTEP, so that described 2nd VTEP is to described
Unicast message forwards.
In this programme, after a VTEP receives the unicast message that virtual machine sends, find that this locality has not stored this list
Report the forwarding information corresponding to destination address of literary composition, then according to the acquiescence forwarding information preset, this unicast message is forwarded to the
Two VTEP, so that this unicast message is proceeded to forward by the 2nd VTEP, this unicast message is forwarded to this by the 2nd VTEP
The destination party that destination address is corresponding.Visible, the embodiment of the present invention all stores without all of VTEP be related to all of virtual
The forwarding information of machine, only needs one of them VTEP to store the forwarding information about all of virtual machine, to save in networking
The address space of part VTEP, reduces the requirement of the address space to part VTEP in networking, saves Internet resources, reduces
The cost of VTEP, and then reduce the cost of networking.
Certainly, arbitrary product or the method for implementing the present invention must be not necessarily required to reach all the above excellent simultaneously
Point.
Accompanying drawing explanation
In order to be illustrated more clearly that the embodiment of the present invention or technical scheme of the prior art, below will be to embodiment or existing
In having technology to describe, the required accompanying drawing used is briefly described, it should be apparent that, the accompanying drawing in describing below is only this
Some embodiments of invention, for those of ordinary skill in the art, on the premise of not paying creative work, it is also possible to
Other accompanying drawing is obtained according to these accompanying drawings.
The schematic flow sheet of a kind of message processing method that Fig. 1 is provided by the embodiment of the present invention;
The structural representation of a kind of message process device that Fig. 2 is provided by the embodiment of the present invention;
The schematic diagram of a kind of BGP message that Fig. 3 is provided by the embodiment of the present invention;
Message between a kind of VTEP that Fig. 4 is provided by the embodiment of the present invention forwards schematic diagram;
Message between the another kind of VTEP that Fig. 5 is provided by the embodiment of the present invention forwards schematic diagram.
Detailed description of the invention
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clear, complete
Describe, it is clear that described embodiment is only a part of embodiment of the present invention rather than whole embodiments wholely.Based on
Embodiment in the present invention, it is every other that those of ordinary skill in the art are obtained under not making creative work premise
Embodiment, broadly falls into the scope of protection of the invention.
Embodiments provide a kind of message processing method and device, empty to save the address of part VTEP in networking
Between, reduce the requirement of the address space of part VTEP in networking.
A kind of message processing method provided the embodiment of the present invention below is introduced.
It should be noted that a kind of message processing method that the embodiment of the present invention is provided, can apply to first can expand
Endpoint of a tunnel VTEP in exhibition Virtual Local Area Network VXLAN, in networking, only storage can have local side empty in a VTEP
The forwarding information that the address of plan machine is corresponding, and in the 2nd VTEP, storage has the forwarding letter that in networking, the address of all virtual machines is corresponding
Breath, so that address lookup can concentrate in the 2nd VTEP, received unicast message can be carried out by the 2nd VTEP
Normal forwarding.In actual applications, the 2nd VTEP can be that BGP (Border Gateway Protocol, assist by borde gateway
View) Router Reflector, additionally, this networking can be EVPN network.This unicast message can be data message or the association of clean culture
View message.In networking, unicast message is the message encapsulated through VXLAN in repeating process.Report is received at VTEP
Wen Hou, the most first carries out VXLAN decapsulation, before forwarding unicast message, first unicast message is carried out VXLAN encapsulation.
A kind of message processing method that the embodiment of the present invention is provided, as it is shown in figure 1, step can be included:
The unicast message that S101: sink virtual machine sends;
S102: if this locality does not stores the forwarding information that the destination address of this unicast message is corresponding, then silent according to preset
Recognize forwarding information, this unicast message is forwarded to the 2nd VTEP, so that this unicast message is forwarded by the 2nd VTEP.
Oneth VTEP is previously stored with this acquiescence forwarding information preset, when a VTEP receives clean culture report
Literary composition, and it was found that during forwarding information corresponding to the local destination address not storing the unicast message received, then pre-according to this
If acquiescence forwarding information, the unicast message received is forwarded to the 2nd VTEP, the 2nd VTEP this unicast message is continued
Forward.
Visible, the embodiment of the present invention all stores the forwarding information being related to all of virtual machine without all of VTEP,
One of them VTEP is only needed to store the forwarding information about all of virtual machine, to save the address of part VTEP in networking
Space, reduces the requirement of the address space to part VTEP in networking, saves Internet resources, reduces the cost of VTEP, and then
Reduce the cost of networking.
It is understood that this networking both can carry out two layers of forwarding of message, three layers of forwarding of message can be carried out again,
When this unicast message needs to carry out two layers of forwarding, it can be determined that whether a VTEP equipment this locality has stored this unicast message
Purpose media control access MAC Address;When this unicast message needs to carry out three layers of forwarding, it can be determined that a VTEP sets
The standby local purpose IP address whether storing this unicast message.
In a kind of specific implementation, a mac address table locally stored for VTEP includes the default mac preset
Address list item, this default mac address list item includes: forward the packet the forwarding information to the 2nd VTEP for instruction;
If described this locality does not stores the forwarding information that the destination address of this unicast message is corresponding, then according to the acquiescence preset
Forwarding information, is forwarded to this unicast message the 2nd VTEP (S102), specifically includes:
If the target MAC (Media Access Control) address of this unicast message is not the target MAC (Media Access Control) address of a VTEP, and in this mac address table
Do not include this target MAC (Media Access Control) address, then according to this default mac address list item, this unicast message is forwarded to the 2nd VTEP.
It should be noted that when the target MAC (Media Access Control) address of this unicast message is not the target MAC (Media Access Control) address of a VTEP, then
Oneth VTEP may determine that needs carry out two layers of forwarding to this unicast message, and a VTEP searches locally stored MAC ground
Location table, determines in the local mac address table stored, does not stores the target MAC (Media Access Control) address of this unicast message, i.e. do not stored this
The forwarding information that the target MAC (Media Access Control) address of unicast message is corresponding, then according to this include for instruction forward the packet to this second
The default mac address list item of the forwarding information of VTEP, is forwarded to the 2nd VTEP by this unicast message, so that the 2nd VTEP continues
Forward this unicast message.
In a kind of specific implementation, a VTEP is preset with the MAC Address of the 2nd VTEP, and this first
IP forward table locally stored for VTEP includes the acquiescence IP forwarding-table item preset, and this acquiescence IP forwarding-table item includes: be used for
Instruction forwards the packet the forwarding information to the 2nd VTEP;
If described this locality does not stores the forwarding information that the destination address of this unicast message is corresponding, then according to the acquiescence preset
Forwarding information, is forwarded to the 2nd VTEP by this unicast message, specifically includes:
If the target MAC (Media Access Control) address that the target MAC (Media Access Control) address of this unicast message is a VTEP, and this IP forward table do not wrap
Include the purpose IP address of this unicast message, then the target MAC (Media Access Control) address of this unicast message is revised as the MAC ground of the 2nd VTEP
Location, and according to this acquiescence IP forwarding-table item, amended unicast message is forwarded to the 2nd VTEP.
It is understood that when a VTEP find the target MAC (Media Access Control) address in this unicast message be self (first
VTEP) target MAC (Media Access Control) address, then may determine that needs carry out three layers of forwarding to this unicast message, and a VTEP searches this locality
The IP forward table of storage, finds not store in this IP forward table the purpose IP address of this unicast message, has not i.e. stored this list
Report the forwarding information that the purpose IP address of literary composition is corresponding, the target MAC (Media Access Control) address of this unicast message is revised as the MAC of the 2nd VTEP
Address, and include the acquiescence IP forwarding-table item of the forwarding information forwarded the packet to the 2nd VTEP for instruction according to this, will
Amended unicast message is forwarded to the 2nd VTEP, so that the 2nd VTEP continues to forward this amended unicast message.
In a kind of specific implementation, a forwarding information locally stored for VTEP does not include far-end virtual machine
The forwarding information that address is corresponding.
Concrete, in the forwarding information that a VTEP this locality is stored, at least storage has as a side, VTEP this locality
The forwarding information that the address of virtual machine is corresponding, it may also be said to be that a VTEP this locality has at least stored a side, VTEP this locality
The address information (including MAC Address and the IP address of corresponding virtual machine, and the forwarding information of correspondence) of virtual machine.It is appreciated that
, a VTEP receives ARP (Address Resolution Protocol, the address solution that local side virtual machine sends
Analysis agreement) message, the address information of entrained virtual machine can be learnt in this ARP message, generate corresponding MAC Address list item and
IP forwarding-table item;After a VTEP receives the ARP message that far-end virtual machine sends, do not learn this ARP message is taken
The address information of the virtual machine of band.
In a kind of specific implementation, a VTEP can determine according to the remaining space of the address space of self be
The address information of no study far-end virtual machine.After a VTEP receives the ARP message that far-end virtual machine sends, this is first years old
VTEP can first judge that local remaining address space, whether less than Spatial Residual threshold value, if being not less than, then can learn this
The address information about this far-end virtual machine entrained in the ARP message that far-end virtual machine is sent, when judging local institute
When remaining address space is less than Spatial Residual threshold value, the threshold value about address space can be arranged to 0, i.e. give tacit consent to the most not
Preserve the address information of far-end virtual machine.Wherein, this Spatial Residual threshold value is the value that the own configuration information according to VTEP determines,
This Spatial Residual threshold value can be with static configuration.
In a kind of specific implementation, in order to prevent the phenomenon of broadcast loops in networking, the message i.e. forwarded,
This networking is ceaselessly forwarded owing to can not find destination party.Each VTEP in this networking must support unicast message
After horizontal segmentation function, i.e. VTEP receive the message forwarded and come from network side, do not allow to forward again by network side to be somebody's turn to do
Message (i.e. VTEP receives the message sent from other VTEP, will not forward the packet to other VTEP again), say, that
Generally, the 2nd VTEP, after receiving the unicast message sent from a VTEP, can only be transmitted to local side virtual
Machine, does not allows other VTEP relaying in this networking, and in embodiments of the present invention, the 2nd VTEP need sometimes by
The unicast message received, carries out forwarding (receiving the unicast message sent from a VTEP, then forwarding again by network side
Other VTEP that destination address to this unicast message is corresponding) situation, now, in order to ensure the normal forwarding of unicast message,
2nd VTEP is accomplished by knowing which VTEP in advance to be needed to perform the horizontal segmentation function for unicast message, and which VTEP needs
The horizontal segmentation function for unicast message is suppressed (when i.e. forwarding unicast message, to cancel the horizontal segmentation merit of corresponding VTEP
Can, when forwarding broadcasting packet and multicast message, still carry out horizontal segmentation function).Concrete, if a VTEP and second
Each VTEP support level dividing function in the networking of VTEP place, the most described method can also include:
Send Border Gateway Protocol (BGP) message to the 2nd VTEP, this BGP message carried horizontal segmentation suppression mark,
This horizontal segmentation suppression mark for indicate the 2nd VTEP forward receive from other VTEP and need send to this first
The unicast message of VTEP or the 2nd VTEP forward that receive from a VTEP and need to send the clean culture to other VTEP
Message.
In one implements, this BGP message can be BGP NLRI (Network Layer Reachability
Information, Network Layer Reachable Information notification packet) message.In default situations, this BGP message is not carried this for
The horizontal segmentation suppression labelling of unicast message, a VTEP need to indicate the 2nd VTEP forward that receive from other VTEP and
Need to send to the unicast message of a VTEP or the 2nd VTEP forward that receive from a VTEP and need to send to
During the unicast message of other VTEP, can send the BGP message that carry horizontal segmentation suppression mark to the 2nd VTEP, this carries level
The concrete form of the BGP NLRI message of segmentation suppression labelling, as it is shown on figure 3, wherein, should " Unknown Unicast MAC
Address Forward Enable " identify and a VTEP transmission is carried out two layers of unicast message forwarded carry out level and divide
Cut suppression, " Unknown Unicast IP Address Forward Enable " should identify and a VTEP transmission is entered
The unicast message that row three layers forwards carries out horizontal segmentation suppression.
In one implements, when the 2nd VTEP equipment is virtual due to do not upgrade in time in locally stored networking
The forwarding information of machine, occurs that the 2nd VTEP equipment this locality does not stores the forwarding information that the destination address of this unicast message is corresponding
Situation time, the 2nd VTEP equipment can carry out L 2 broadcast (to this according to prior art handling process to this unicast message
Unicast message carries out two layers when forwarding) or three layers abandon while forwarding (this unicast message is carried out three layers).
The message processing method provided the embodiment of the present invention below by specific embodiment is introduced.
As shown in Figure 4, in EVPN network, including VTEP and switch, in the diagram, equipment 1, equipment 2, equipment 3 and set
Standby 4 be VTEP, R equipment 1 and R equipment 2 be switch.Wherein, the mac address table that equipment 1, equipment 2 and equipment 3 are stored divides
Cun Chu not have: default mac address list item, this default mac address list item includes: forward the packet to equipment 4 for instruction
Forwarding information, in the IP forward table stored, storage has respectively: acquiescence IP forwarding-table item, and this acquiescence IP forwarding-table item includes:
Forward the packet the forwarding information to equipment 4 for instruction, and equipment 1, equipment 2 and equipment 3 are previously stored with the MAC of equipment 4
Address;In the mac address table that equipment 4 is stored, storage has: the MAC Address list item of all virtual machines, equipment 4 in this EVPN network
The IP forward table stored stores and has: the IP address list item of all virtual machines in this EVPN network.Below with at this EVPN net
Network is carried out illustrate as a example by the message two layers between virtual machine 10 and virtual machine 30 forwards:
Before carrying out unicast message forwarding, the forwarding to ARP message:
Virtual machine 10, in order to obtain the target MAC (Media Access Control) address of virtual machine 30, sends ARP message, the source that this ARP message carries
MAC Address is the MAC Address (being designated as MAC10) of virtual machine 10, and source IP address is the IP address (being designated as IP10) of virtual machine 10, with
And the IP address (being designated as IP30) that target ip address is virtual machine 30;
Equipment 1 receives the ARP message that virtual machine 10 sends, the MAC Address of study virtual machine 10 entrained by ARP message
With IP address, generate corresponding MAC Address list item and IP address list item, and this ARP message is broadcasted in this EVPN network, this
Time equipment 2, equipment 3 and equipment 4 can receive the ARP message after carrying out VXLAN encapsulation, handling process is roughly the same (all to this
Side, ground virtual machine broadcasts this ARP message);
Equipment 1, by the MAC Address of virtual machine 10 and IP address, is advertised to equipment 4 by BGP message;This BGP message is also taken
With horizontal segmentation suppression mark.Unlike the prior art, this BGP message is only advertised to equipment 4;
Equipment 4 receives the BGP message that equipment 1 sends, and parses MAC10 and IP10, generates the MAC of virtual machine 10 correspondence
Address list item and IP address list item, and according to horizontal segmentation suppression mark entrained in this BGP message, suppression is for equipment 1
The horizontal segmentation function of unicast message;
Equipment 4 receives the ARP message coming from equipment 1, this ARP message is carried out VXLAN decapsulation, by ARP message
To the virtual machine broadcast of local side, equipment 2 roughly the same with the process of equipment 3 (all broadcasting this ARP message);It should be noted that
If equipment 4 does not also learn the corresponding forwarding information of virtual machine 10, then need to learn, in this locality according to this ARP message
Generate MAC Address list item and the IP forwarding-table item of virtual machine 10 correspondence, and to this ARP message of spot broadcasting;If equipment 4 is
Through learning the corresponding forwarding information of virtual machine 10, then to this ARP message of spot broadcasting;
After virtual machine 30 receives this ARP message by equipment 3, find that the target ip address of this ARP message is self, then
Generating arp reply message according to this ARP message, the target MAC (Media Access Control) address of arp reply message is MAC10, and purpose IP address is
IP10, source MAC is the MAC Address (being designated as MAC30) of virtual machine 30, and source IP address is that the IP address of virtual machine 30 (is designated as
IP30), this arp reply message is sent to equipment 3;
After equipment 3 receives arp reply message, search the mac address table stored, do not find this arp reply message
The forwarding information that target MAC (Media Access Control) address MAC10 is corresponding, by arp reply message according to default mac address list item, carries out VXLAN envelope
Dress, and the arp reply message after this encapsulation is sent to equipment 4;
Equipment 3, by the MAC Address of virtual machine 30 and IP address, is advertised to equipment 4 by BGP message;This BGP message is also taken
With horizontal segmentation suppression mark.Unlike the prior art, this BGP message is only advertised to equipment 4;
Equipment 4 receives the BGP message that equipment 3 sends, and parses MAC30 and IP30 and generates the MAC of virtual machine 30 correspondence
Address list item and IP address list item, and according to horizontal segmentation suppression mark entrained in this BGP message, suppression is for equipment 3
The horizontal segmentation function of unicast message;
Equipment 4 receives the VXLAN channel message (the arp reply message after encapsulation) from equipment 3, to VXLAN tunnel
Message carries out VXLAN decapsulation, searches the mac address table stored, determines forwarding information corresponding to target MAC (Media Access Control) address MAC10,
According to this forwarding information, arp reply message carried out VXLAN encapsulation, and be forwarded to equipment 1;
Equipment 1 receives VXLAN channel message (the arp reply message after encapsulation), carries out VXLAN channel message
VXLAN decapsulates, and searches the mac address table stored, determines the forwarding information that target MAC (Media Access Control) address is corresponding, believe according to this forwarding
Arp reply message is forwarded to virtual machine 10 by breath, and virtual machine 10 obtains the MAC Address of virtual machine 30.
Afterwards, carrying out the forwarding of unicast message, process is as follows:
When virtual machine 10 needs to access virtual machine 30, virtual machine 10 sends unicast message, the purpose MAC ground of this unicast message
Location is MAC30, and source MAC is MAC10;
After equipment 1 receives this unicast message, find that the target MAC (Media Access Control) address of this unicast message is not for purpose MAC of self
Address, searches the mac address table stored, and finds that target MAC (Media Access Control) address is searched unsuccessfully and (i.e. judges not store in mac address table
Have the forwarding information that this target MAC (Media Access Control) address is corresponding), according to default mac address list item, after unicast message is carried out VXLAN encapsulation
It is forwarded to equipment 4;
Equipment 4 receives VXLAN channel message (unicast message after encapsulation), enters the VXLAN channel message received
Row VXLAN decapsulates, it is thus achieved that unicast message, find the target MAC (Media Access Control) address of this unicast message for the target MAC (Media Access Control) address of self,
Search the mac address table stored, determine the forwarding information that target MAC (Media Access Control) address is corresponding, according to this forwarding information again by clean culture
Message is forwarded to equipment 3 after carrying out VXLAN encapsulation;
Equipment 3 receives VXLAN channel message (unicast message after encapsulation), enters the VXLAN channel message received
Row VXLAN decapsulates, it is thus achieved that unicast message, find the target MAC (Media Access Control) address of this unicast message for the target MAC (Media Access Control) address of self,
Search the mac address table stored, find the forwarding information that target MAC (Media Access Control) address is corresponding, according to this forwarding information by clean culture report
Literary composition is transmitted to virtual machine 30;
Virtual machine 30 arrives the unicast message forwarding of virtual machine 10 and is also similar to.
Based on Fig. 4, as it is shown in figure 5, to carry out the report between virtual machine 10 and virtual machine 20 in this EVPN network
Literary composition three layers illustrates as a example by forwarding:
When virtual machine 10 needs to access virtual machine 20, discovery virtual machine 20 and virtual machine 10 be not at the same network segment, then empty
Plan machine 10 sends unicast message, and the target MAC (Media Access Control) address of this unicast message is purpose MAC of equipment 1, and purpose IP address is virtual machine
Purpose IP20 of 20, source MAC is MAC10, and source IP address is IP10;
Equipment 1 receives this unicast message, finds that the target MAC (Media Access Control) address of this unicast message is the target MAC (Media Access Control) address of self,
Searching locally stored IP forward table, purpose IP address searching failure (i.e. judges that this locality has not stored this purpose IP address pair
The forwarding information answered), the target MAC (Media Access Control) address of this unicast message is revised as from the target MAC (Media Access Control) address of equipment 1 equipment 4 preset
MAC Address, and according to default acquiescence IP forwarding-table item, be forwarded to after amended unicast message is carried out VXLAN encapsulation
Equipment 4;
Equipment 4 receives VXLAN channel message (after encapsulation and amended unicast message), to VXLAN channel message
Carry out VXLAN decapsulation, it is thus achieved that amended unicast message, find that the target MAC (Media Access Control) address of this amended unicast message is for certainly
The target MAC (Media Access Control) address of body, determines the forwarding letter that this purpose IP address (purpose IP20) is corresponding from locally stored IP forward table
Breath, the target MAC (Media Access Control) address of this amended unicast message is revised as purpose MAC20 of virtual machine 20, and (equipment 4 is owing to storing
The forwarding information that all virtual machines in this EVPN networking are corresponding, accordingly, also can store all virtual machines corresponding in ARP table
ARP, equipment 4 can know MAC Address corresponding to IP20, i.e. MAC20 by the ARP of virtual machine 20 correspondence), according to
Forwarding information corresponding to purpose IP20 is forwarded to equipment 2 after amended unicast message is carried out VXLAN encapsulation;
Equipment 2 receives VXLAN channel message (after encapsulation and amended unicast message), to VXLAN channel message
Carry out VXLAN decapsulation, it is thus achieved that amended unicast message, find that the target MAC (Media Access Control) address of this amended unicast message is not
The target MAC (Media Access Control) address of self, searches the mac address table stored, and finds corresponding the turning of target MAC (Media Access Control) address (purpose MAC20)
Photos and sending messages, is transmitted to virtual machine 20 by unicast message.Now, this unicast message forwards successfully.
Corresponding to said method embodiment, the embodiment of the present invention additionally provides a kind of message process device, can apply to
Endpoint of a tunnel VTEP in first expansible Virtual Local Area Network VXLAN, as in figure 2 it is shown, described device may include that reception mould
Block 201 and forwarding module 202;
Described receiver module 201, the unicast message sent for sink virtual machine;
Described forwarding module 202, if the forwarding letter that the destination address not storing described unicast message for this locality is corresponding
Breath, then according to the acquiescence forwarding information preset, be forwarded to the 2nd VTEP by described unicast message, so that described 2nd VTEP is to institute
State unicast message to forward.
The application embodiment of the present invention, after a VTEP receives the unicast message that virtual machine sends, finds that this locality does not stores
There is the forwarding information that the destination address of this unicast message is corresponding, then according to the acquiescence forwarding information preset, this unicast message is turned
Sending to the 2nd VTEP, so that this unicast message is proceeded to forward by the 2nd VTEP, this unicast message is turned by the 2nd VTEP
Send to the destination party that this destination address is corresponding.Visible, the embodiment of the present invention all stores without all of VTEP and is related to own
The forwarding information of virtual machine, only need one of them VTEP storage about the forwarding information of all of virtual machine, with saving
The address space of part VTEP in networking, reduces the requirement of the address space to part VTEP in networking, saves Internet resources,
Reduce the cost of VTEP, and then reduce the cost of networking.
In a kind of specific implementation, a described mac address table locally stored for VTEP includes the acquiescence preset
MAC Address list item, described default mac address list item includes: forward the packet the forwarding to described 2nd VTEP for instruction
Information;
Described forwarding module 202 specifically for, if the target MAC (Media Access Control) address of described unicast message is not a described VTEP
Target MAC (Media Access Control) address, and described mac address table do not include described target MAC (Media Access Control) address, then according to described default mac address list item,
Described unicast message is forwarded to described 2nd VTEP.
In a kind of specific implementation, a described VTEP is preset with the MAC Address of described 2nd VTEP, and described
Oneth IP forward table locally stored for VTEP includes the acquiescence IP forwarding-table item preset, and wraps in described acquiescence IP forwarding-table item
Include: forward the packet the forwarding information to described 2nd VTEP for instruction;
Described forwarding module 202 specifically for, if the mesh that the target MAC (Media Access Control) address of described unicast message is a described VTEP
MAC Address, and described IP forward table does not include the purpose IP address of described unicast message, then by the mesh of described unicast message
MAC Address be revised as the MAC Address of described 2nd VTEP, and according to described acquiescence IP forwarding-table item, by amended clean culture
Message is forwarded to described 2nd VTEP.
In a kind of specific implementation, a described forwarding information locally stored for VTEP does not include far-end virtual machine
Forwarding information corresponding to address.
In a kind of specific implementation, described device can also include message transmission module;
Described message transmission module, if each VTEP in a described VTEP and described 2nd VTEP place networking props up
Holding horizontal segmentation function, send Border Gateway Protocol (BGP) message to described 2nd VTEP, in described BGP message, the level of carrying is divided
Cutting suppression mark, described horizontal segmentation suppression mark forwards that receive from other VTEP for indicating described 2nd VTEP and needs
Send to a described VTEP unicast message or described 2nd VTEP forward from described oneth VTEP receive and needs
Send the unicast message to other VTEP.
For systems/devices embodiment, owing to it is substantially similar to embodiment of the method, so the comparison described is simple
Single, relevant part sees the part of embodiment of the method and illustrates.
It should be noted that in this article, the relational terms of such as first and second or the like is used merely to a reality
Body or operation separate with another entity or operating space, and deposit between not necessarily requiring or imply these entities or operating
Relation or order in any this reality.And, term " includes ", " comprising " or its any other variant are intended to
Comprising of nonexcludability, so that include that the process of a series of key element, method, article or equipment not only include that those are wanted
Element, but also include other key elements being not expressly set out, or also include for this process, method, article or equipment
Intrinsic key element.In the case of there is no more restriction, statement " including ... " key element limited, it is not excluded that
Including process, method, article or the equipment of described key element there is also other identical element.
One of ordinary skill in the art will appreciate that all or part of step realizing in said method embodiment is can
Completing instructing relevant hardware by program, described program can be stored in computer read/write memory medium,
The storage medium obtained designated herein, such as: ROM/RAM, magnetic disc, CD etc..
The foregoing is only presently preferred embodiments of the present invention, be not intended to limit protection scope of the present invention.All
Any modification, equivalent substitution and improvement etc. made within the spirit and principles in the present invention, are all contained in protection scope of the present invention
In.
Claims (10)
1. a message processing method, it is characterised in that be applied to the tunnel end in the first expansible Virtual Local Area Network VXLAN
Point VTEP, described method includes:
The unicast message that sink virtual machine sends;
If this locality does not stores the forwarding information that the destination address of described unicast message is corresponding, then forward letter according to the acquiescence preset
Breath, is forwarded to the 2nd VTEP by described unicast message, so that described unicast message is forwarded by described 2nd VTEP.
Method the most according to claim 1, it is characterised in that wrap in a described mac address table locally stored for VTEP
Including default default mac address list item, described default mac address list item includes: forward the packet to described for instruction
The forwarding information of two VTEP;
If described this locality does not stores the forwarding information that the destination address of described unicast message is corresponding, then turn according to the acquiescence preset
Photos and sending messages, is forwarded to the 2nd VTEP by described unicast message, specifically includes:
If the target MAC (Media Access Control) address of described unicast message is not the target MAC (Media Access Control) address of a described VTEP, and described mac address table
In do not include described target MAC (Media Access Control) address, then according to described default mac address list item, described unicast message is forwarded to described
Two VTEP.
Method the most according to claim 1, it is characterised in that be preset with described 2nd VTEP's in a described VTEP
MAC Address, and a described IP forward table locally stored for VTEP includes the acquiescence IP forwarding-table item preset, described acquiescence IP
Forwarding-table item includes: forward the packet the forwarding information to described 2nd VTEP for instruction;
If described this locality does not stores the forwarding information that the destination address of described unicast message is corresponding, then turn according to the acquiescence preset
Photos and sending messages, is forwarded to the 2nd VTEP by described unicast message, specifically includes:
If the target MAC (Media Access Control) address that the target MAC (Media Access Control) address of described unicast message is a described VTEP, and in described IP forward table not
Including the purpose IP address of described unicast message, then the target MAC (Media Access Control) address of described unicast message is revised as described 2nd VTEP
MAC Address, and according to described acquiescence IP forwarding-table item, amended unicast message is forwarded to described 2nd VTEP.
Method the most according to claim 1, it is characterised in that do not wrap in a described forwarding information locally stored for VTEP
Include the forwarding information that the address of far-end virtual machine is corresponding.
5. according to the arbitrary described method of claim 1-4, it is characterised in that if a described VTEP and described 2nd VTEP institute
Each VTEP support level dividing function in networking, the most described method also includes:
Send Border Gateway Protocol (BGP) message to described 2nd VTEP, described BGP message carried horizontal segmentation suppression mark,
Described horizontal segmentation suppression mark forwards that receive from other VTEP for indicating described 2nd VTEP and needs to send to institute
The unicast message or described 2nd VTEP that state a VTEP forward that receive from a described VTEP and need to send to other
The unicast message of VTEP.
6. a message process device, it is characterised in that be applied to the tunnel end in the first expansible Virtual Local Area Network VXLAN
Point VTEP, described device includes: receiver module and forwarding module;
Described receiver module, the unicast message sent for sink virtual machine;
Described forwarding module, if the forwarding information that the destination address not storing described unicast message for this locality is corresponding, then root
According to default acquiescence forwarding information, described unicast message is forwarded to the 2nd VTEP, so that described 2nd VTEP is to described clean culture
Message forwards.
Device the most according to claim 6, it is characterised in that wrap in a described mac address table locally stored for VTEP
Including default default mac address list item, described default mac address list item includes: forward the packet to described for instruction
The forwarding information of two VTEP;
Described forwarding module specifically for, if the target MAC (Media Access Control) address of described unicast message is not purpose MAC of a described VTEP
Address, and described mac address table do not include described target MAC (Media Access Control) address, then according to described default mac address list item, by described
Unicast message is forwarded to described 2nd VTEP.
Device the most according to claim 6, it is characterised in that be preset with described 2nd VTEP's in a described VTEP
MAC Address, and a described IP forward table locally stored for VTEP includes the acquiescence IP forwarding-table item preset, described acquiescence IP
Forwarding-table item includes: forward the packet the forwarding information to described 2nd VTEP for instruction;
Described forwarding module specifically for, if purpose MAC that the target MAC (Media Access Control) address of described unicast message is described VTEP ground
Location, and described IP forward table do not include the purpose IP address of described unicast message, then by the purpose MAC ground of described unicast message
The MAC Address of described 2nd VTEP is revised as in location, and according to described acquiescence IP forwarding-table item, amended unicast message is forwarded
To described 2nd VTEP.
Device the most according to claim 6, it is characterised in that do not wrap in a described forwarding information locally stored for VTEP
Include the forwarding information that the address of far-end virtual machine is corresponding.
10. according to the device described in any one of claim 6-9, it is characterised in that described device also includes message transmission module;
Described message transmission module, if each VTEP in a described VTEP and described 2nd VTEP place networking props up water holding
Flat dividing function, sends Border Gateway Protocol (BGP) message to described 2nd VTEP, carries horizontal segmentation and press down in described BGP message
System mark, described horizontal segmentation suppression mark forwards that receive from other VTEP for indicating described 2nd VTEP and needs to send out
The unicast message or described 2nd VTEP that deliver to a described VTEP forward that receive from a described VTEP and need to send
Unicast message to other VTEP.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610487900.2A CN106161253B (en) | 2016-06-23 | 2016-06-23 | Message processing method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610487900.2A CN106161253B (en) | 2016-06-23 | 2016-06-23 | Message processing method and device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN106161253A true CN106161253A (en) | 2016-11-23 |
CN106161253B CN106161253B (en) | 2020-12-25 |
Family
ID=57350091
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610487900.2A Active CN106161253B (en) | 2016-06-23 | 2016-06-23 | Message processing method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106161253B (en) |
Cited By (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106878168A (en) * | 2017-03-20 | 2017-06-20 | 新华三技术有限公司 | A kind of message forwarding method and device |
CN106911547A (en) * | 2017-02-10 | 2017-06-30 | 新华三技术有限公司 | A kind of message forwarding method and device |
CN106921577A (en) * | 2017-03-10 | 2017-07-04 | 新华三技术有限公司 | MAC address learning method and device |
CN111327545A (en) * | 2018-12-14 | 2020-06-23 | 北京金山云网络技术有限公司 | Data sending method and device, network system and switch |
CN112866119A (en) * | 2020-12-30 | 2021-05-28 | 迈普通信技术股份有限公司 | Virtual extensible local area network communication method and device, electronic equipment and storage medium |
CN113726658A (en) * | 2021-08-09 | 2021-11-30 | 中国联合网络通信集团有限公司 | Route forwarding method and device |
CN115225568A (en) * | 2021-03-31 | 2022-10-21 | 瞻博网络公司 | Fast reroute to Ethernet VPN-VLANS |
US11570086B2 (en) | 2021-02-22 | 2023-01-31 | Juniper Networks, Inc. | Fast reroute for BUM traffic in ethernet virtual private networks |
Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101521631A (en) * | 2009-04-14 | 2009-09-02 | 华为技术有限公司 | Treatment method, equipment and system for VPLS network messages |
CN103269299A (en) * | 2013-04-22 | 2013-08-28 | 杭州华三通信技术有限公司 | Packet forwarding method and device in SPBM network |
CN103404079A (en) * | 2011-02-22 | 2013-11-20 | 阿尔卡特朗讯公司 | Efficient multicasting in a distributed system architecture |
CN103647853A (en) * | 2013-12-04 | 2014-03-19 | 华为技术有限公司 | Method for sending ARP message in VxLAN, VTEP and VxLAN controller |
CN103731353A (en) * | 2013-12-26 | 2014-04-16 | 华为技术有限公司 | Physical address acquiring method of virtual machine |
CN103814554A (en) * | 2013-12-11 | 2014-05-21 | 华为技术有限公司 | Communication method, device and system of virtual extensible local area network |
CN103888386A (en) * | 2012-12-24 | 2014-06-25 | 华为技术有限公司 | Extensible virtual local area network message transmission method, device and system |
CN104283980A (en) * | 2014-10-09 | 2015-01-14 | 杭州华三通信技术有限公司 | Address resolution protocol (ARP) reply on-behalf method and device |
US20160156554A1 (en) * | 2012-04-04 | 2016-06-02 | Marvell Israel (M.I.S.L) Ltd. | Transparent rbridge |
-
2016
- 2016-06-23 CN CN201610487900.2A patent/CN106161253B/en active Active
Patent Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101521631A (en) * | 2009-04-14 | 2009-09-02 | 华为技术有限公司 | Treatment method, equipment and system for VPLS network messages |
CN103404079A (en) * | 2011-02-22 | 2013-11-20 | 阿尔卡特朗讯公司 | Efficient multicasting in a distributed system architecture |
US20160156554A1 (en) * | 2012-04-04 | 2016-06-02 | Marvell Israel (M.I.S.L) Ltd. | Transparent rbridge |
CN103888386A (en) * | 2012-12-24 | 2014-06-25 | 华为技术有限公司 | Extensible virtual local area network message transmission method, device and system |
CN103269299A (en) * | 2013-04-22 | 2013-08-28 | 杭州华三通信技术有限公司 | Packet forwarding method and device in SPBM network |
CN103647853A (en) * | 2013-12-04 | 2014-03-19 | 华为技术有限公司 | Method for sending ARP message in VxLAN, VTEP and VxLAN controller |
CN103814554A (en) * | 2013-12-11 | 2014-05-21 | 华为技术有限公司 | Communication method, device and system of virtual extensible local area network |
CN103731353A (en) * | 2013-12-26 | 2014-04-16 | 华为技术有限公司 | Physical address acquiring method of virtual machine |
CN104283980A (en) * | 2014-10-09 | 2015-01-14 | 杭州华三通信技术有限公司 | Address resolution protocol (ARP) reply on-behalf method and device |
Cited By (12)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106911547A (en) * | 2017-02-10 | 2017-06-30 | 新华三技术有限公司 | A kind of message forwarding method and device |
CN106911547B (en) * | 2017-02-10 | 2020-09-25 | 新华三技术有限公司 | Message forwarding method and device |
CN106921577A (en) * | 2017-03-10 | 2017-07-04 | 新华三技术有限公司 | MAC address learning method and device |
CN106921577B (en) * | 2017-03-10 | 2019-06-07 | 新华三技术有限公司 | MAC address learning method and device |
CN106878168A (en) * | 2017-03-20 | 2017-06-20 | 新华三技术有限公司 | A kind of message forwarding method and device |
CN106878168B (en) * | 2017-03-20 | 2021-03-19 | 新华三技术有限公司 | Message forwarding method and device |
CN111327545A (en) * | 2018-12-14 | 2020-06-23 | 北京金山云网络技术有限公司 | Data sending method and device, network system and switch |
CN112866119A (en) * | 2020-12-30 | 2021-05-28 | 迈普通信技术股份有限公司 | Virtual extensible local area network communication method and device, electronic equipment and storage medium |
US11570086B2 (en) | 2021-02-22 | 2023-01-31 | Juniper Networks, Inc. | Fast reroute for BUM traffic in ethernet virtual private networks |
CN115225568A (en) * | 2021-03-31 | 2022-10-21 | 瞻博网络公司 | Fast reroute to Ethernet VPN-VLANS |
US11546253B2 (en) | 2021-03-31 | 2023-01-03 | Juniper Networks, Inc | Fast reroute for ethernet virtual private networks—virtual extensible local area network |
CN113726658A (en) * | 2021-08-09 | 2021-11-30 | 中国联合网络通信集团有限公司 | Route forwarding method and device |
Also Published As
Publication number | Publication date |
---|---|
CN106161253B (en) | 2020-12-25 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106161253A (en) | A kind of message processing method and device | |
CN110784411B (en) | Method, device and system for establishing BIER forwarding table item | |
EP3148127A1 (en) | Egress protection for bum traffic with link failures in evpn | |
CN106878288B (en) | message forwarding method and device | |
CN108964940B (en) | Message sending method and device and storage medium | |
EP3110087B1 (en) | Processing method and related device for host route in virtual sub-network, and communication system | |
CN105791457A (en) | Data processing method and apparatus | |
CN107317752B (en) | Method and device for forwarding data message | |
CN108600074B (en) | Method and device for forwarding multicast data message | |
CN101534209B (en) | A method and device for sending multicast messages | |
US10855576B2 (en) | Information transmission method and device | |
CN106982163B (en) | Method and gateway for acquiring route on demand | |
CN105187311B (en) | A kind of message forwarding method and device | |
WO2013029440A1 (en) | Method and apparatus for implementing layer-2 interconnection of data centers | |
CN109412926B (en) | Tunnel establishment method and device | |
US11405307B2 (en) | Information transfer method and device | |
CN101394333A (en) | Packet forwarding method, apparatus and network system | |
CN103731349A (en) | Method for conducting Ethernet virtualized message transmission between interconnection neighbors and edge device | |
WO2022048412A1 (en) | Method for generating table item, method for sending message, device, and system | |
CN105337855A (en) | Method and device used for processing modified message | |
JP2019521619A (en) | Packet forwarding | |
WO2022121466A1 (en) | Data processing method and device for ethernet virtual private network, and storage medium | |
CN103763750A (en) | Method for fast achieving packet forwarding in wireless ad hoc network of TDMA protocol | |
CN102904814B (en) | Data transmission method, source PE, object PE and data transmission system | |
US20190199633A1 (en) | Method and apparatus for forwarding in information centric networking |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
CB02 | Change of applicant information | ||
CB02 | Change of applicant information |
Address after: 310052 Binjiang District Changhe Road, Zhejiang, China, No. 466, No. Applicant after: Xinhua three Technology Co., Ltd. Address before: 310053 Hangzhou science and Technology Industrial Park, high tech Industrial Development Zone, Zhejiang Province, No. six and road, No. 310 Applicant before: Huasan Communication Technology Co., Ltd. |
|
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |