CN109347748A - A kind of method and apparatus of synchronization of routing information - Google Patents
A kind of method and apparatus of synchronization of routing information Download PDFInfo
- Publication number
- CN109347748A CN109347748A CN201811441576.6A CN201811441576A CN109347748A CN 109347748 A CN109347748 A CN 109347748A CN 201811441576 A CN201811441576 A CN 201811441576A CN 109347748 A CN109347748 A CN 109347748A
- Authority
- CN
- China
- Prior art keywords
- address
- mac
- mac address
- nlri
- continuation
- 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.)
- Pending
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/02—Topology update or discovery
-
- 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/02—Topology update or discovery
- H04L45/021—Ensuring consistency of routing table updates, e.g. by using epoch numbers
-
- 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
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
The embodiment of the present application provides a kind of method and apparatus of synchronization of routing information, applied to the first VTEP, if it is determined that including multiple continuation address in local routing iinformation to be synchronized, then according to the corresponding routing iinformation of multiple continuation address, generation carries target identification, initial address in multiple continuation address, first NLRI of the number of multiple continuation address and other routing iinformations in addition to multiple continuation address, first NLRI carrying is sent to the 2nd VTEP being connected with the first VTEP in the first routing update message, so that the 2nd VTEP obtains routing iinformation to be synchronized according to the first NLRI.Less NLRI can be generated for the synchronous corresponding routing iinformation of multiple continuation address is needed based on above-mentioned processing, can reduce the data volume of transmission, and then improve the efficiency of synchronization of routing information.
Description
Technical field
This application involves Internet technical fields, more particularly to a kind of method and apparatus of synchronization of routing information.
Background technique
VXLAN (Virtual eXtensible LAN, expansible Virtual Local Area Network) networking may include multiple VTEP
(VXLAN Tunnel End Point, expansible Virtual Local Area Network endpoint of a tunnel) can pass through VXLAN tunnel between VT EP
Road is communicated.Every VTEP can be connected with multiple VM (Virtual Machine, virtual machine), and can to itself
Other connected VTEP synchronize the routing iinformation of local V M, and routing iinformation may include MAC (the Media Access of VM
Control, media access control) address, alternatively, can also include the IP address of VM.
In the prior art, the routing iinformation to be synchronized of the VM of itself available connection of VTEP, routing letter to be synchronized
Breath may include: the routing iinformation that the VTEP newly learns, or, the routing iinformation of aging occurs in the VTEP.The VTEP can be with
Routing iinformation to be synchronized is sent to other VTEP being connected with itself.For example, when needing synchronous MAC Address and IP address,
For each routing iinformation to be synchronized, which requires to generate corresponding NLRI (Network Layer
Reachability Information, Network layer reachability information), routing letter to be synchronized is carried in the NLRI of generation
Each NLRI of generation can be sent to other being connected with itself by the MAC Address and IP address that breath includes, then, the VTEP
VTEP。
As it can be seen that when the number of routing iinformation to be synchronized is more, the VTEP needs to generate more NL RI, so that passing
Defeated data volume is larger, causes the efficiency of synchronization of routing information lower.
Summary of the invention
The method and apparatus for being designed to provide a kind of synchronization of routing information of the embodiment of the present application, to improve synchronization routing
The efficiency of information.Specific technical solution is as follows:
In a first aspect, in order to achieve the above object, the embodiment of the present application discloses a kind of method of synchronization of routing information, institute
Method is stated applied to the first expansible Virtual Local Area Network endpoint of a tunnel VTEP, which comprises
If it is determined that including multiple continuation address in local routing iinformation to be synchronized, then according to the multiple continuation address pair
The routing iinformation answered, generation carry target identification, the initial address in the multiple continuation address, the multiple continuation address
Number and other routing iinformations in addition to the multiple continuation address first network layer reachability information NLRI;
First NLRI carrying is sent to second to be connected with the first VTEP in the first routing update message
VTEP, so that the 2nd VTEP obtains routing iinformation to be synchronized according to the first NLRI.
Optionally, the routing iinformation to be synchronized is host Address Resolution Protocol ARP information, the multiple continuation address
For multiple continuous Internet protocol IP address;
It is described according to the corresponding routing iinformation of the multiple continuation address, generation carries target identification, the multiple company
Initial address in continuous address, the number of the multiple continuation address and other routings letter in addition to the multiple continuation address
Breath a NLRI the step of include:
According to the multiple continuous IP address and each media interviews being respectively associated with the multiple continuous IP address
MAC Address is controlled, generation carries target identification, the start ip address in the multiple continuous IP address, the multiple company
The number of continuous IP address, the number of each MAC Address being respectively associated with the multiple continuous IP address and each MAC Address
The first NLRI of purpose;
Wherein, the start ip address is IP minimum or maximum IP address in the multiple continuous IP address, described
Putting in order for each MAC Address is associated with putting in order for the multiple continuous IP address.
Optionally, the routing iinformation to be synchronized is mac address information, and the multiple continuation address is multiple continuous
MAC Address;
It is described according to the corresponding routing iinformation of the multiple continuation address, generation carries target identification, the multiple company
Initial address in continuous address, the number of the multiple continuation address and other routings letter in addition to the multiple continuation address
Breath a NLRI the step of include:
It according to the multiple continuous MAC Address, generates and carries target identification, in the multiple continuous MAC Address
Starting MAC Address, the first NLRI of the number of the multiple continuous MAC Address;
Wherein, the starting MAC Address is MAC minimum or maximum MAC Address in the multiple continuous MAC Address.
Optionally, the method also includes:
It receives what the 2nd VTEP was sent, carries the secondary route update message of the 2nd NLRI, wherein described second
NLRI is the 2nd VTEP in determining local routing iinformation to be synchronized when including multiple continuation address, according to multiple company
Continue what the corresponding routing iinformation in address generated, carries target identification, the initial address in multiple continuation address, multiple company
The number of continuous address and the NLRI of other routing iinformations in addition to multiple continuation address;
Routing iinformation to be synchronized is obtained according to the 2nd NLRI.
Optionally, the 2nd NLRI indicates master synchronization ARP information, and multiple continuation address is for multiple continuous IP
Location, other routing iinformations in addition to multiple continuation address include each MAC being respectively associated with multiple continuous IP address
Address;
It is described according to the 2nd NLRI obtain routing iinformation to be synchronized the step of include:
If the initial address carried in the 2nd NLRI is the smallest IP address of IP in multiple continuous IP address,
Determine that the smallest IP address of IP is associated with first MAC Address in each MAC Address in multiple continuous IP address,
The smallest IP address of IP in multiple continuous IP address is successively added into N, obtains the N+1 IP address, determines the N+1
IP address is associated with the N+1 MAC Address in each MAC Address, until determine N+1 IP address and with determine
The associated MAC Address of each IP address, wherein the N be positive integer, the value of the N is since 1, and the value of the N
The number for being up to multiple continuation address subtracts 1;
If the initial address carried in the 2nd NLRI is the maximum IP address of IP in multiple continuous IP address,
Determine that the maximum IP address of IP is associated with first MAC Address in each MAC Address in multiple continuous IP address,
The maximum IP address of IP in multiple continuous IP address is successively subtracted into N, obtains the N+1 IP address, determines the N+1
IP address is associated with the N+1 MAC Address in each MAC Address, until determine N+1 IP address and with determine
The associated MAC Address of each IP address, wherein the N be positive integer, the value of the N is since 1, and the value of the N
The number for being up to multiple continuation address subtracts 1.
Optionally, the 2nd NLRI indicates that synchronous mac address information, multiple continuation address are multiple continuous MAC
Address;
It is described according to the 2nd NLRI obtain routing iinformation to be synchronized the step of include:
If the initial address carried in the 2nd NLRI is the smallest MAC Address of MAC in multiple continuous MAC Address
When, the smallest MAC Address of MAC in multiple continuous MAC Address is obtained, successively most by MAC in multiple continuous MAC Address
Small MAC Address adds N, obtains the N+1 MAC Address, until obtaining N+1 MAC Address, wherein the N is positive integer, institute
The value of N is stated since 1, and the value of the N is up to the number of multiple continuation address and subtracts 1;
If the initial address carried in the 2nd NLRI is the maximum MAC Address of MAC in multiple continuous MAC Address
When, the maximum MAC Address of MAC in multiple continuous MAC Address is obtained, successively most by MAC in multiple continuous MAC Address
Big MAC Address subtracts N, obtains the N+1 MAC Address, until obtaining N+1 MAC Address, wherein the N is positive integer, institute
The value of N is stated since 1, and the value of the N is up to the number of multiple continuation address and subtracts 1.
Second aspect, in order to achieve the above object, the embodiment of the present application disclose a kind of device of synchronization of routing information, institute
Device is stated applied to the first expansible Virtual Local Area Network endpoint of a tunnel VTEP, described device includes:
Generation module is used for if it is determined that including multiple continuation address in local routing iinformation to be synchronized, then according to
The corresponding routing iinformation of multiple continuation address, generation carry target identification, the initial address in the multiple continuation address, institute
State the first network layer accessibility of the number of multiple continuation address and other routing iinformations in addition to the multiple continuation address
Information NLRI;
Sending module is sent to and described first in the first routing update message for carrying the first NLRI
The 2nd VTEP connected VTEP, so that the 2nd VTEP obtains routing iinformation to be synchronized according to the first NLRI.
Optionally, the routing iinformation to be synchronized is host Address Resolution Protocol ARP information, the multiple continuation address
For multiple continuous Internet protocol IP address;
The generation module, be specifically used for according to the multiple continuous IP address and with the multiple continuous IP address
Each MAC address being respectively associated, generation carry target identification, rising in the multiple continuous IP address
Beginning IP address, the number of the multiple continuous IP address, each MAC Address being respectively associated with the multiple continuous IP address
With the first NLRI of the number of each MAC Address;
Wherein, the start ip address is IP minimum or maximum IP address in the multiple continuous IP address, described
Putting in order for each MAC Address is associated with putting in order for the multiple continuous IP address.
Optionally, the routing iinformation to be synchronized is mac address information, and the multiple continuation address is multiple continuous
MAC Address;
The generation module is specifically used for according to the multiple continuous MAC Address, and generation carries target identification, institute
State the starting MAC Address in multiple continuous MAC Address, the first NLRI of the number of the multiple continuous MAC Address;
Wherein, the starting MAC Address is MAC minimum or maximum MAC Address in the multiple continuous MAC Address.
Optionally, described device further include:
Receiving module sends for receiving the 2nd VTEP, carries the secondary route update message of the 2nd NLRI,
Wherein, it includes multiple continuation address in determining local routing iinformation to be synchronized that the 2nd NLRI, which is the 2nd VTEP,
When, it is generated according to the corresponding routing iinformation of multiple continuation address, carries target identification, rising in multiple continuation address
Beginning address, the NLRI of the number of multiple continuation address and other routing iinformations in addition to multiple continuation address;
Module is obtained, for obtaining routing iinformation to be synchronized according to the 2nd NLRI.
Optionally, the 2nd NLRI indicates master synchronization ARP information, and multiple continuation address is for multiple continuous IP
Location, other routing iinformations in addition to multiple continuation address include each MAC being respectively associated with multiple continuous IP address
Address;
The acquisition module, if for multiple continuous IP specifically for the initial address that is carried in the 2nd NLRI
The smallest IP address of IP in location, it is determined that in multiple continuous IP address in the smallest IP address of IP and each MAC Address
First MAC Address it is associated, the smallest IP address of IP in multiple continuous IP address is successively added into N, obtains N+1
IP address determines that the N+1 IP address is associated with the N+1 MAC Address in each MAC Address, until determining
Out N+1 IP address and with the associated MAC Address of each IP address determined, wherein the N is positive integer, and the N's takes
Value is since 1, and the value of the N is up to the number of multiple continuation address and subtracts 1;
If the initial address carried in the 2nd NLRI is the maximum IP address of IP in multiple continuous IP address,
Determine that the maximum IP address of IP is associated with first MAC Address in each MAC Address in multiple continuous IP address,
The maximum IP address of IP in multiple continuous IP address is successively subtracted into N, obtains the N+1 IP address, determines the N+1
IP address is associated with the N+1 MAC Address in each MAC Address, until determine N+1 IP address and with determine
The associated MAC Address of each IP address, wherein the N be positive integer, the value of the N is since 1, and the value of the N
The number for being up to multiple continuation address subtracts 1.
Optionally, the 2nd NLRI indicates that synchronous mac address information, multiple continuation address are multiple continuous MAC
Address;
The acquisition module, if being multiple continuous MAC specifically for the initial address carried in the 2nd NLRI
In address when the smallest MAC Address of MAC, the smallest MAC Address of MAC in multiple continuous MAC Address is obtained, it is successively that this is more
The smallest MAC Address of MAC adds N in a continuous MAC Address, obtains the N+1 MAC Address, until N+1 MAC Address is obtained,
Wherein, the N is positive integer, and the value of the N is since 1, and the value of the N is up to the number of multiple continuation address
Subtract 1;
If the initial address carried in the 2nd NLRI is the maximum MAC Address of MAC in multiple continuous MAC Address
When, the maximum MAC Address of MAC in multiple continuous MAC Address is obtained, successively most by MAC in multiple continuous MAC Address
Big MAC Address subtracts N, obtains the N+1 MAC Address, until obtaining N+1 MAC Address, wherein the N is positive integer, institute
The value of N is stated since 1, and the value of the N is up to the number of multiple continuation address and subtracts 1.
On the other hand, in order to achieve the above objectives, the embodiment of the present application also discloses a kind of electronic equipment, including processor,
Communication interface, memory and communication bus, wherein processor, communication interface, memory are completed each other by communication bus
Communication;
Memory, for storing computer program;
Processor, when for executing the program stored on memory, method step either described in realization first aspect.
On the other hand, in order to achieve the above objectives, the embodiment of the present application also discloses a kind of machine readable storage medium, storage
There is machine-executable instruction, when being called and being executed by processor, the machine-executable instruction promotes the processor: realizing
Method step either described in first aspect.
On the other hand, in order to achieve the above objectives, the embodiment of the present application also discloses a kind of computer program comprising instruction
Product, when run on a computer, so that method step either described in the above-mentioned first aspect of computer execution.
The embodiment of the present application provides a kind of method of synchronization of routing information, however, it is determined that in local routing iinformation to be synchronized
Including multiple continuation address, the first VTEP then can be generated according to the corresponding routing iinformation of multiple continuation address and be carried target
It identifies, the initial address in multiple continuation address, the number of multiple continuation address and other roads in addition to multiple continuation address
By the first NLRI of information, the first NLRI carrying is sent to second to be connected with the first VTEP in the first routing update message
VTEP, so that the 2nd VTEP obtains routing iinformation to be synchronized according to the first NLRI.Based on above-mentioned processing, for needing to synchronize
The corresponding routing iinformation of multiple continuation address, a NLRI can be generated, reduce the number of the NLRI of generation, and generate
It does not need to carry whole continuation address in NLRI, can reduce the data volume of transmission, and then improve synchronization of routing information
Efficiency.
Certainly, implement the application any product or method it is not absolutely required to and meanwhile reach above all advantages.
Detailed description of the invention
In order to illustrate the technical solutions in the embodiments of the present application or in the prior art more clearly, to embodiment or will show below
There is attached drawing needed in technical description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this
Some embodiments of application for those of ordinary skill in the art without creative efforts, can be with
It obtains other drawings based on these drawings.
Fig. 1 is a kind of frame diagram of group-network construction provided by the embodiments of the present application;
Fig. 2 is a kind of flow chart of the method for synchronization of routing information provided by the embodiments of the present application;
Fig. 3 is a kind of flow chart of the method for synchronization of routing information provided by the embodiments of the present application;
Fig. 4 is a kind of exemplary flow chart of the method for synchronization of routing information provided by the embodiments of the present application;
Fig. 5 is a kind of exemplary flow chart of the method for synchronization of routing information provided by the embodiments of the present application;
Fig. 6 is a kind of structure chart of the device of synchronization of routing information provided by the embodiments of the present application;
Fig. 7 is the structure chart of a kind of electronic equipment provided by the embodiments of the present application.
Specific embodiment
Below in conjunction with the attached drawing in the embodiment of the present application, technical solutions in the embodiments of the present application carries out clear, complete
Site preparation description, it is clear that described embodiments are only a part of embodiments of the present application, instead of all the embodiments.It is based on
Embodiment in the application, it is obtained by those of ordinary skill in the art without making creative efforts every other
Embodiment shall fall in the protection scope of this application.
The embodiment of the present application provides a kind of method of synchronization of routing information, and this method can be applied in network
VTEP。
Referring to Fig. 1, Fig. 1 is a kind of frame diagram of group-network construction provided by the embodiments of the present application, which may include:
VTEP1, VTEP2, VM1, VM2, VM3, VM4, VM5 and VM6, wherein VTEP1 is connected with VM1, VM2 and VM3, VTEP2 and VM4,
VM5 is connected with VM6.
Currently, after VTEP1 gets routing iinformation (the i.e. local routing iinformation to be synchronized) of VM1, VM2 and VM3,
The routing iinformation of VM1, VM2 and VM3 can be sent to VTEP2 by VTEP1, so that the routing of VTEP2 synchronous VM1, VM2 and VM3
Information.Wherein, in three-layer network, routing iinformation to be synchronized can be address resolution protocol (Address Resolution
Protocol, ARP) information, the ARP information of a VM may include the IP address and media access control (Media of a VM
Access Control, MAC) address.In double layer network, routing iinformation to be synchronized can be mac address information, MAC
Location information may include the MAC Address of each VM.
Illustratively, for the routing iinformation of VM1, corresponding NLRI is can be generated in VTEP1, can be carried in the NLRI
The MAC Address and IP address of VM1;For the routing iinformation of VM2, corresponding NLRI is also can be generated in VTEP1, can be in the NLRI
Carry the MAC Address and IP address of VM2;For the routing iinformation of VM3, corresponding NLRI is also can be generated in VTEP1, the NLRI
In can carry the MAC Address and IP address of VM3.Then, above three NLRI can be encapsulated into BGP Update by VTEP1
In (Border Gateway Protocol upgrading, Border Gateway Protocol Update) message, and BGP Update message is sent out
It send to VTEP2.That is, being directed to the routing iinformation of every VM, VTEP1 is required to generate corresponding NLRI, is caused to generate more
NLRI reduces the efficiency of synchronization of routing information so that the data volume of transmission is larger.
In general, the IP address for belonging to the VM of same VSI (Virtual Switch Instance, virtual switch instance) can
To be continuation address, wherein on a VTEP, VSI and VXLAN are corresponded.For example, VM1, VM2 and VM3 belong to it is same
The IP address of VSI, VM1 can be 192.168.1.1, and the IP address of VM2 can be 192.168.1.2, and the IP address of VM3 can be with
For 192.168.1.3, it is seen then that the IP address of VM1, VM2 and VM3 are continuation address.
Alternatively, the MAC Address of VM is also possible to continuation address.For example, the MAC Address of VM1 can be 0-0-1, VM2's
MAC Address can be 0-0-2, and the MAC Address of VM3 can be 0-0-3, it is seen then that the MAC Address of VM1, VM2 and VM3 are continuously
Location.
Therefore, the method for the synchronization of routing information based on application embodiment, when VTEP power-off restarting, local a large amount of VM are simultaneously
When online, since the routing iinformation of multiple VM to be synchronized is continuously, VTEP1 is determined to be wrapped in local routing iinformation to be synchronized
Including multiple continuation address, then VTEP1 can be generated according to the corresponding routing iinformation of multiple continuation address and be carried target identification,
Initial address in multiple continuation address, the number of multiple continuation address and other routing iinformations in addition to multiple continuation address
NLRI (i.e. the first NLRI), and by the first NLRI carrying VTEP2 is sent in the first routing update message, VTEP2 then may be used
To obtain routing iinformation to be synchronized according to the first NLRI.
As it can be seen that VTEP1 can only generate one if including multiple continuation address in local routing iinformation to be synchronized
NLRI can reduce the number of the NLRI of generation, and not need to carry whole continuation address in the NLRI, can reduce transmission
Data volume, and then improve synchronization of routing information efficiency.
Referring to fig. 2, Fig. 2 is a kind of flow chart of the method for synchronization of routing information provided by the embodiments of the present application, this method
It can be applied to the first VTEP, this method may comprise steps of:
S201: if it is determined that including multiple continuation address in local routing iinformation to be synchronized, then according to multiple continuation address
Corresponding routing iinformation, generation carry target identification, the initial address in multiple continuation address, the number of multiple continuation address
With the first NLRI of other routing iinformations in addition to multiple continuation address.
Wherein, the first VTEP usually can connect multiple VM, routing iinformation to be synchronized can be the first VTEP according to
ARP (Address Resolution Protocol, address resolution protocol) message that local VM is sent (including ARP request report
Text and arp response message) learn to obtain, routing iinformation to be synchronized is also possible to the generation aging that the first VTEP is locally stored
Routing iinformation.Target identification is used to indicate to carry in the first NLRI the routing iinformation to be synchronized of multiple VM.
In the embodiment of the present application, the available current routing iinformation to be synchronized of the first VTEP.For example, the first VTEP can
New study to be arrived to the routing iinformation of VM, as routing iinformation to be synchronized, alternatively, by local aging can occur for the first VTEP
The routing iinformation of VM, as routing iinformation to be synchronized.
If the first VTEP determines to include multiple continuation address in local routing iinformation to be synchronized, the first VTEP can be with
According to the corresponding routing iinformation of multiple continuation address, generation carries target identification, and the initial address in multiple continuation address is more
The NLRI (i.e. the first NLRI) of the number of a continuation address and other routing iinformations in addition to multiple continuation address.
According to the difference for the particular content that routing iinformation to be synchronized includes, the first VTEP can take following different side
Formula generates the first NLRI:
Mode one, routing iinformation to be synchronized is host ARP information, and multiple continuation address are for multiple continuous IP
Location, correspondingly, S201 may comprise steps of:
According to multiple continuous IP address and each MAC Address being respectively associated with multiple continuous IP address, generates and carry
There is a target identification, the start ip address in multiple continuous IP address, the number of multiple continuous IP address is and multiple continuous
First NLRI of the number of each MAC Address and each MAC Address that IP address is respectively associated.
Wherein, start ip address be can with IP in multiple continuous IP address minimum or maximum IP address.First VTEP
Multiple VM of connection may belong to the same VSI, and the IP address for belonging to each VM of same VSI can be continuation address.For example,
Belong to the VM of same VSI IP address may include: 192.168.1.1,192.168.1.2,192.168.1.3,
192.168.1.4,192.168.1.5, above-mentioned 5 IP address be continuation address.
In the embodiment of the present application, if routing iinformation to be synchronized is host ARP information, multiple continuation address can be with
For multiple continuous IP address.First VTEP, which then can be generated, carries target identification, the starting in multiple continuous IP address
IP address, the number of multiple continuous IP address, each MAC Address and each MAC being respectively associated with multiple continuous IP address
First NLRI of the number of location.
In this step, the first VTEP can be selected any from the continuous IP address that routing iinformation to be synchronized includes
Number L (L > 1) a continuous IP address, as current multiple continuous IP address to be processed.For example, routing to be synchronized
In information continuous IP address include: 192.168.1.1,192.168.1.2,192.168.1.3,192.168.1.4,
192.168.1.5, then the first VTEP can by above-mentioned 5 IP address, as current multiple continuous IP address to be processed, or
Person, the first VTEP can also be by 192.168.1.1,192.168.1.2 and 192.168.1.3, as current to be processed multiple
Continuous IP address.
It is understood that it is directed to above-mentioned example, and in order to improve the efficiency of synchronization of routing information to greatest extent, first
VTEP can be by above-mentioned 5 continuous IP address, and as current multiple continuous IP address to be processed, then start ip address can
Think 192.168.1.1, or 192.168.1.5.
In first NLRI each MAC Address put in order it is associated with putting in order for multiple continuous IP address.
In a kind of implementation, if start ip address is the smallest IP address in multiple continuous IP address, first
VTEP can determine each MAC Address putting in order in the first NLRI according to the sequence of corresponding IP address from small to large,
That is, each MAC Address puts in order in the first NLRI, with the sequence consensus from small to large of corresponding IP address.
Illustratively, multiple continuous IP address include: 192.168.1.1,192.168.1.2,192.168.1.3.With
192.168.1.1 associated MAC Address is MAC2, is M AC1 with the associated MAC Address of 192.168.1.2, with
192.168.1.3 associated MAC Address is MAC3.If start ip address is 192.168.1.1, each MAC in the first NLRI
Putting in order for address can be MAC2, MAC1, MAC3.
In another implementation, if start ip address is maximum IP address in multiple continuous IP address, the
One VTEP can determine that arrangement of each MAC Address in the first NLRI is suitable according to the sequence from big to small of corresponding IP address
Sequence, that is, each MAC Address puts in order in the first NLRI, with the sequence consensus from big to small of corresponding IP address.
Illustratively, multiple continuous IP address include: 192.168.1.1,192.168.1.2,192.168.1.3.With
192.168.1.1 associated MAC Address is MAC2, is M AC1 with the associated MAC Address of 192.168.1.2, with
192.168.1.3 associated MAC Address is MAC3.If start ip address is 192.168.1.3, MAC in the first NLRI
Putting in order for location can be MAC3, MAC1, MAC2.
In addition, the first VTEP can also generate different types of first NLRI, for example, if routing iinformation to be synchronized is
The routing iinformation that first VTEP newly learns, then the first NLRI can (multi-protocols be reachable up to network layer for MP_REACH_NLRI
Property information, Multiprotocol Reachable Network Laye r Reachability Information);If
Routing iinformation to be synchronized is the routing iinformation that aging locally occurs for the first VTEP, then the first NLRI can be MP_UNREACH_
NLRI (the unreachable Network layer reachability information of multi-protocols, Multiprotocol Unreachable Network Layer
Reachability Informati on).Can be determined according to Type Code (type code) field in the first NLRI
One NLRI is MP_REACH_NLRI or MP_UNREACH_NLRI.
Referring to table (1), table (1) is the structure of NLRI in the prior art.
Table (1)
Wherein, Route Type (route-type) is 1 byte, indicates the type of the NLRI, in the prior art, first
VTEP can obtain the purpose IP address in the tunnel VXLAN, and establish with opposite equip. according to the NLRI of Route Type=3
The tunnel VXLAN can also synchronize local routing iinformation according to the NLRI of Route Type=2.Length is 1 byte, table
Show the length of the NLRI.RD (Route Distinguisher, route-distinguisher) is 8 bytes, is had in the same manner for distinguishing
The different VPN routing iinformations of location.Ethernet Segmengt Identifier (ethernet segment identifier) is 10 bytes, is used
In the link for indicating that VM is connect with the first VTEP.Etherent Tag ID (Ethernet label identifier) is 4 bytes, is used for
Indicate the Ethernet label carried in the NLRI.MAC Address Length (media access control address length) is 1 word
Section, indicates the length of the MAC Address carried in the NLRI.MAC Address is 6 bytes, indicates the MAC carried in the NLRI
Address.IP Address Length (internet protocol address length) is 1 byte, indicates the IP address carried in the NLRI
Length.IP Address is 0 byte, 4 bytes or 16 bytes, indicates the IP address carried in the NLRI.MPLS
Label (Multi-Protocol Label Switch Label, multi-protocol label switching (T-MPLS) label) 1 is 3 bytes, and indicating should
The private network tags carried in NLRI.MPLS Label2 is 0 byte or 3 bytes, indicates the public network mark carried in the NLRI
Label, it follows that generated for the ARP information of a VM, the NLRI of Route Type at least needs 39 bytes.
In order to distinguish with NLRI in the prior art, the method for the synchronization of routing information based on the application can be incited somebody to action
Route Type in NLRI is set as not used numerical value in the prior art, for example, Route Type=11, i.e., above-mentioned target
Mark.Furthermore it is also possible to add Host Numbers (number of host) field and MAC in NLRI in the prior art
Numbers field obtains NLRI shown in table (2).
Table (2)
Route Type (1octet)=11 |
Length(1octet) |
RD(8octet) |
Ethernet Segmengt Identifier(10octets) |
Etherent Tag ID(4octets) |
Host Numebers(1octet) |
IP Address Length(0or 1octet) |
IP Address(0,4,or16octets) |
MAC Numebers(1octet) |
MAC Address Length(1octet) |
MAC Address 1(6octets) |
MAC Address N(6octets) |
MPLS Label 1(3octets) |
MPLS Label 2(0or 3octets) |
Wherein, Host Numbers is 1 byte, and Host Numbers is non-zero value, can indicate that NLRI includes VM's
MAC Address and IP address, if Host Numbers is non-zero value, the specific value of Host Numbers can indicate this
NLRI needs the number of synchronous IP address;The value of Host Numbers is 0, can indicate that NLRI includes the MAC Address of VM, and
IP address not comprising VM.Alternatively, Host Numbers field can also do not included in the NLRI, to indicate that the NLRI includes VM
MAC Address, and do not include VM IP address.IP Address can then indicate start ip address.MAC Numbers is 1
Byte indicates the number for the MAC Address that the NLRI includes, if Host Numbers is non-zero value, the value of MAC Numbers
It is identical as the value of Host Numbers.
In addition, also including discontinuous in routing iinformation to be synchronized if not only including multiple continuous IP address
IP address, then the first VTEP can generate the NLRI of corresponding Route Type=11 according to multiple continuous IP address, and
According to discontinuous IP address, the NLRI of corresponding Route Type=2 is generated.
Illustratively, the IP address in routing iinformation to be synchronized include: 192.168.1.1,192.168.1.2,
192.168.1.3,192.168.1.5,192.168.1.7,192.168.1.8.For 192.168.1.1,192.168.1.2,
192.168.1.3, a Route Type=11, Host Numbers=3, MAC Numbers=3 can be generated in the first VTEP
NLRI;For 192.168.1.5, the NLRI of a Route Ty pe=2 is can be generated in the first VTEP;For
192.168.1.7,192.168.1.8, the first VTEP can be generated a Route T ype=11, Host Numbers=2,
The NLRI of MAC Numbers=2.
For above-mentioned 6 IP address, the first VTEP can only generate 3 NLRI.In the prior art, the first VTEP then needs
Generate 6 NLRI.As it can be seen that the method for the synchronization of routing information based on the application, can reduce the number of the NLRI of generation, reduce
The data volume of transmission, and then improve the efficiency of synchronization of routing information.
In addition, if with multiple continuous associated multiple MAC Address of IP address be also it is continuous, can in the first NLRI
Only to carry the starting MAC Address in multiple MAC Address, to further increase the efficiency of synchronization of routing information.With originating MAC
Location is MAC minimum or the address maximum M AC in multiple continuous MAC Address.For table (2), MAC Address field then may be used
To indicate starting MAC Address.
Illustratively, the IP address in routing iinformation to be synchronized include: 192.168.1.1,192.168.1.2,
192.168.1.3, the associated MAC Address of 192.168.1.1 is 0-0-1, and the associated MAC Address of 192.168.1.2 is 0-0-2,
192.168.1.3 associated MAC Address is 0-0-3.The start ip address then carried in the first NLRI can be
192.168.1.1, starting MAC Address can be 0-0-1;Alternatively, the start ip address carried in the first NLRI can be
192.168.1.3, starting MAC Address can be 0-0-3.
Mode two, routing iinformation to be synchronized are mac address information, and multiple continuation address are multiple continuous MAC Address,
Correspondingly, S201 may comprise steps of:
According to multiple continuous MAC Address, generation carries target identification, the starting MAC in multiple continuous MAC Address
Address, the first NLRI of the number of multiple continuous MAC Address.
Wherein, starting MAC Address is MAC minimum or maximum MAC Address in multiple continuous MAC Address.
In the embodiment of the present application, if routing iinformation to be synchronized is mac address information, multiple continuation address are more
A continuous MAC Address.First VTEP, which can be generated, carries target identification, the starting MAC in multiple continuous MAC Address
Location, the first NLRI of the number of multiple continuous MAC Address.
In this step, the first VTEP can be selected any from the continuous MAC Address that routing iinformation to be synchronized includes
Number Q (Q > 1) a continuous MAC Address, as current multiple addresses continuous M AC to be processed.For example, road to be synchronized
It include: 0-0-1,0-0-2,0-0-3,0-0-4,0-0-5 by MAC Address continuous in information, then the first VTEP can be by above-mentioned 5
A MAC Address, as current multiple continuous MAC Address to be processed, alternatively, the first VTEP can also be by 0-0-1,0-0-2
And 0-0-3, as current multiple continuous MAC Address to be processed.
It is understood that it is directed to above-mentioned example, and in order to improve the efficiency of synchronization of routing information to greatest extent, first
VTEP can be by above-mentioned 5 continuous MAC Address, as current multiple addresses continuous MA C to be processed, then with originating MAC
Location can be 0-0-1, or 0-0-5.For table (2), MAC A ddress field can then indicate starting MAC Address.
Similarly, the first VTEP can generate the first NLRI, at this point, in the first NLRI with not carrying IP according to table (2)
Location, i.e. the value of Host Numebers in the first NLRI is 0, alternatively, not carrying Host Numebers word in the first NLRI
Section.
It is understood that also including if not only including multiple continuous MAC Address in routing iinformation to be synchronized
There is discontinuous MAC Address, then the first VTEP can generate corresponding Route Type=according to multiple continuous MAC Address
11 NLRI, and according to discontinuous MAC Address, generate the NLRI of corresponding R oute Type=2.
Illustratively, the MAC Address in routing iinformation to be synchronized includes: 0-0-1,0-0-2,0-0-3,0-0-5,0-0-
7,0-0-8.For 0-0-1,0-0-2,0-0-3, Route Type=11, a Host Numbers is can be generated in the first VTEP
=0, the NLRI of MAC Numbers=3;For 0-0-5, the NLRI of a Route Type=2 is can be generated in the first VTE P;
For 0-0-7,0-0-8, Route Type=11, Host Numbers=0, a MAC is can be generated in the first VTEP
The NLRI of Numbers=2.
For above-mentioned 6 MAC Address, the first VTEP can only generate 3 NLRI.In the prior art, the first VTEP is then needed
Generate 6 NLRI.As it can be seen that the method for the synchronization of routing information based on the application, can reduce the number of the NLRI of generation, drop
The data volume of low transmission, and then improve the efficiency of synchronization of routing information.
For example, it is assumed that need to be synchronized to opposite end there are the ARP information of 10 VM in Ipv4 networking, and the IP of 10 VM
Location be it is continuous, the MAC Address of 10 VM is discontinuous, then, using currently existing scheme, it is corresponding to generate one for every VM
NLRI, then need 39 byte * 10=390 bytes, and use provided by the present application and technical solution, it is only necessary to+6 word of 32 byte
* 10+3 byte=95 bytes are saved, volume of transmitted data is greatly reduced, improves routing iinformation synchronous efficiency.
S202: the first NLRI carrying is sent to second to be connected with the first VTEP in the first routing update message
VTEP, so that the 2nd VTEP obtains routing iinformation to be synchronized according to the first NLRI.
Wherein, the first routing update message can be BGP Update message.
In the embodiment of the present application, after generating the first NLRI, the first NLRI can be carried and routed more by the first VTEP
In new information (i.e. the first routing update message), and the first routing update message is sent to the VTEP (i.e. being connected with itself
Two VTEP).Correspondingly, can be obtained according to the first NLRI to be synchronized after the 2nd VTEP receives the first routing update message
Routing iinformation.
In addition, the first VTEP can also receive the NLRI of the 2nd VTEP transmission, to obtain the to be synchronized of the local the 2nd VTEP
Routing iinformation.Correspondingly, this method may also comprise the following steps::
S301: it receives what the 2nd VTEP was sent, carries the secondary route update message of the 2nd NLRI.
Wherein, the 2nd NLRI can be the 2nd VTEP include in determining local routing iinformation to be synchronized it is multiple continuously
It when location, is generated according to the corresponding routing iinformation of multiple continuation address, carries target identification, in multiple continuation address
Initial address, the NLRI of the number of multiple continuation address and other routing iinformations in addition to multiple continuation address.
In the embodiment of the present application, the 2nd VTEP includes multiple continuation address in determining local routing iinformation to be synchronized
When, the 2nd VTEP can be generated according to the corresponding routing iinformation of multiple continuation address, carry target identification, multiple continuous
Initial address in address, the number of multiple continuation address and other routing iinformations in addition to multiple continuation address
NLRI (i.e. the 2nd NLRI).
The method and the first VTEP generation method of the first NLRI of the 2nd NLRI of 2nd VTEP generation is identical, no longer superfluous herein
It states.
S302: routing iinformation to be synchronized is obtained according to the 2nd NLRI.
In the embodiment of the present application, after obtaining the 2nd NLRI, the first VTEP can obtain second according to the 2nd NLRI
The routing iinformation to be synchronized of the local VTEP.
For the different type of the 2nd NLRI, the first VTEP can take following different mode to obtain routing to be synchronized
Information:
Mode one, the 2nd NLRI indicate master synchronization ARP information, and multiple continuation address is multiple continuous IP address,
Other routing iinformations in addition to multiple continuation address include each MAC for being respectively associated with multiple continuous IP address
Location, correspondingly, S302 may comprise steps of:
Step 1, if the initial address carried in the 2nd NLRI is for the smallest IP of IP in multiple continuous IP address
Location, it is determined that the smallest IP address of IP is related to first MAC Address in each MAC Address in multiple continuous IP address
Connection, successively adds N for the smallest IP address of IP in multiple continuous IP address, obtains the N+1 IP address, determines N+1
IP address is associated with the N+1 MAC Address in each MAC Address, until determine N+1 IP address and with determine it is every
The associated MAC Address of one IP address.
Wherein, N is positive integer, and the value of N is since 1, and the value of N is up to the number of multiple continuation address and subtracts 1.
In the embodiment of the present application, the 2nd NLRI indicates master synchronization ARP information, then can carry in the 2nd NLRI more
The number of start ip address, multiple continuous IP address in a continuous IP address, and with multiple continuous IP address
Each MAC Address being respectively associated.If start ip address be multiple continuous IP address in the smallest IP address of IP, first
VTEP can determine that start ip address is associated with first MAC Address in each MAC Address, and then, the first VTEP can be incited somebody to action
Start ip address adds 1, obtains second IP address, determines second IP address and second MAC Address phase in each MAC Address
Association, then, start ip address can be added 2 by the first VTEP, obtain third IP address, determine third IP address with respectively
Third MAC Address in MAC Address is associated, and so on, until start ip address is added N by the first VTEP, obtain N+1
A IP address, and determine that the N+1 IP address is associated with the N+1 MAC Address in each MAC Address, and then obtain to same
N+1 IP address of step and with the associated MAC Address of each IP address.
Illustratively, the start ip address carried in the 2nd NLRI is 192.168.1.1, the number of multiple continuation address
It is 4, i.e. N is 3, and the MAC Address carried in the 2nd NLRI is 0-0-1,0-0-3,0-0-5 and 0-0-A.First VTEP can be determined
Start ip address 192.168.1.1 is associated with first MAC Address 0-0-1, and then, the first VTEP can be by start ip address
192.168.1.1 plus 1 obtains second IP address 192.168.1.2, and determines second IP address 92.168.1.2 and second
A MAC Address 0-0-3 is associated, and then, the first VTEP can add start ip address 192.168.1.1 2 to obtain third IP
Address 192.168.1.3 determines that third IP address 92.168.1.3 is associated with third MAC Address 0-0-5, then, the
One VTEP can add start ip address 192.168.1.1 3 to obtain the 4th IP address 192.168.1.4, and determine the 4th
IP address 92.168.1.4 is associated with the 4th MAC Address 0-0-A, so obtain 4 IP address to be synchronized and with it is each
The associated MAC Address of IP address.
Step 2, if the initial address carried in the 2nd NLRI is the maximum IP address of IP in multiple continuous IP address
When, determine that the maximum IP address of IP is associated with first MAC Address in each MAC Address in multiple continuous IP address,
The maximum IP address of IP in multiple continuous IP address is successively subtracted into N, obtains the N+1 IP address, with determining the N+1 IP
Location is associated with the N+1 MAC Address in each MAC Address, every IP up to determining N+1 IP address and with determining
The MAC Address of address information.
Wherein, N is positive integer, and the value of N is since 1, and the value of N is up to the number of multiple continuation address and subtracts 1.
In the embodiment of the present application, the 2nd NLRI indicates master synchronization ARP information, then can carry in the 2nd NLRI more
The number of start ip address, multiple continuous IP address in a continuous IP address, and with multiple continuous IP address
Each MAC Address being respectively associated.If start ip address be multiple continuous IP address in the maximum IP address of IP, first
VTEP can determine that start ip address is associated with first MAC Address in each MAC Address, and then, the first VTEP can be incited somebody to action
Start ip address subtracts 1, obtains second IP address, determines second IP address and second MAC Address phase in each MAC Address
Association, then, start ip address can be subtracted 2 by the first VTEP, obtain third IP address, determine third IP address with respectively
Third MAC Address in MAC Address is associated, and so on, until start ip address is subtracted N by the first VTEP, obtain N+1
It is associated with the N+1 MAC Address in each MAC Address to determine the N+1 IP address for a IP address, and then obtains to be synchronized
N+1 IP address and with the associated MAC Address of each IP address.
Illustratively, the start ip address carried in the 2nd NLRI is 192.168.1.4, the number of multiple continuation address
It is 4, i.e. N is 3, and the MAC Address carried in the 2nd NLRI is 0-0-A, 0-0-5,0-0-3 and 0-0-1.First VTEP can be determined
Start ip address 192.168.1.4 is associated with first MAC Address 0-0-A, and then, the first VTEP can be by start ip address
192.168.1.4 subtract 1 and obtain second IP address 192.168.1.3, and determine second IP address 92.168.1.3 and second
A MAC Address 0-0-5 is associated, and then, start ip address 192.168.1.4 can be subtracted 2 and obtain third IP by the first VTEP
Address 192.168.1.2, and determine that third IP address 92.168.1.2 is associated with third MAC Address 0-0-3, then,
Start ip address 192.168.1.4 can be subtracted 3 and obtain the 4th IP address 192.168.1.1 by the first VTEP, and determine the 4th
A IP address 92.168.1.1 is associated with the 4th MAC Address 0-0-1, so obtain 4 IP address to be synchronized and with it is every
The associated MAC Address of one IP address.
In this step, when the first VTEP determines that Route Type=11, Host Numbers are non-zero value in the 2nd NLRI
When, the routing iinformation to be synchronized that the first VTEP can determine that the 2nd VTEP is sent includes multiple continuous IP address and more with this
A associated multiple MAC Address of continuous IP address, the value of Host Numbers are multiple continuous IP address to be synchronized
Number.
Correspondingly, it includes the IP determined that the first VTEP, which can be generated, if the 2nd NLRI is MP_REACH_NLRI
Address and ARP entry with the associated MAC Address of IP address;If the 2nd NLRI be M P_UNREACH_NLRI, first
VTEP can will include the IP address determined and with the ARP entry of the associated MAC Address of IP address from local deletion.Include
There is the ARP entry of MAC Address and IP address, may refer to table (3).
Table (3)
IP Address | MAC Address | Router MAC | VSI index |
192.168.1.10 | 000A-0000-0001 | a0ce-7e40-0400 | 0 |
192.168.1.11 | 000A-0000-0002 | a0ce-7e40-0400 | 0 |
Table (3) includes IP Address, MAC Address, Router (router) MAC and VSI i ndex (Virtual
Switch Instance index, virtual switch instance index).IP Address indicates the IP address of V M, MAC Address
Indicate that the MAC Address of VM, Router MAC table show that the MAC Address of the first VTEP, VSI index are corresponding with VXLAN belonging to VM.
The method that first VTEP obtains Router MA C and VSI index is the prior art, and details are not described herein again.
In addition, the first V TEP can be with if carrying start ip address and starting MAC Address in the 2nd NLRI simultaneously
MAC Address to be synchronized is determined according to MAC Numbers, and then, the first VTEP can be according to the step one and step in mode one
Rapid two, determine IP address to be synchronized and with the address each IP address associated M AC.First VTEP is true according to MAC Numbers
The method of fixed MAC Address to be synchronized, the method class of IP address to be synchronized is determined with the first VTEP according to Host Numbers
Seemingly, details are not described herein again.
Mode two, the 2nd NLRI indicate that synchronous mac address information, multiple continuation address are multiple continuous MAC Address,
Correspondingly, S302 may comprise steps of:
Step 1, if the initial address carried in the 2nd NLRI is the smallest MAC of MAC in multiple continuous MAC Address
When address, the smallest MAC Address of MAC in multiple continuous MAC Address is obtained, it successively will be in multiple continuous MAC Address
The smallest MAC Address of MAC adds N, obtains the N+1 MAC Address, until obtaining N+1 MAC Address.
Wherein, N is positive integer, and the value of N is since 1, and the value of N is up to the number of multiple continuation address and subtracts 1.
In the embodiment of the present application, the 2nd NLRI indicates master synchronization ARP information, then can carry in the 2nd NLRI more
The number of starting MAC Address and multiple continuous MAC Address in a continuous MAC Address.If starting MAC Address is
The smallest MAC Address of MAC in multiple continuous MAC Address, then the available starting MAC Address of the first VTEP, then, first
Starting MAC Address can be added 1 by VTEP, obtain second MAC Address, and then, starting MAC Address can be added 2 by the first VTEP,
Third MAC Address is obtained, and so on, until the first VTEP adds N for MAC Address is originated, the N+1 MAC Address is obtained, into
And obtain N+1 MAC Address to be synchronized.
Illustratively, the starting MAC Address carried in the 2nd NLRI is 0-0-1, and the number of multiple continuation address is 4,
That is N is 3.The available starting MAC Address 0-0-1 of first VTEP, and starting MAC Address 0-0-1 is added 1, obtain second MAC
Starting MAC Address 0-0-1 can be added 2 by address 0-0-2, then, the first VTEP, obtain third MAC Address 0-0-3, then,
Starting MAC Address 0-0-1 can be added 3 by the first VTEP, obtain the 4th MAC Address 0-0-4, and then obtain 4 to be synchronized
MAC Address.
Step 2, if the initial address carried in the 2nd NLRI is the maximum MAC of MAC in multiple continuous MAC Address
When address, the maximum MAC Address of MAC in multiple continuous MAC Address is obtained, it successively will be in multiple continuous MAC Address
The maximum MAC Address of MAC subtracts N, obtains the N+1 MAC Address, until obtaining N+1 MAC Address.
Wherein, N is positive integer, and the value of N is since 1, and the value of N is up to the number of multiple continuation address and subtracts 1.
In the embodiment of the present application, the 2nd NLRI indicates master synchronization ARP information, then can carry in the 2nd NLRI more
The number of starting MAC Address and multiple continuous MAC Address in a continuous MAC Address.If starting MAC Address is
The maximum MAC Address of MAC in multiple continuous MAC Address, then the available starting MAC Address of the first VTEP, then, first
Starting MAC Address can be subtracted 1 by VTEP, obtain second MAC Address, and then, starting MAC Address can be subtracted 2 by the first VTEP,
Third MAC Address is obtained, and so on, until the first VTEP subtracts N for MAC Address is originated, the N+1 MAC Address is obtained, into
And obtain N+1 MAC Address to be synchronized.
Illustratively, the starting MAC Address carried in the 2nd NLRI is 0-0-4, and the number of multiple continuation address is 4,
That is N is 3.The available starting MAC Address 0-0-4 of first VTEP, and starting MAC Address 0-0-4 is subtracted 1, obtain second MAC
Starting MAC Address 0-0-4 can be subtracted 2 by address 0-0-3, then, the first VTEP, obtain third MAC Address 0-0-2, then,
Starting MAC Address 0-0-1 can be subtracted 3 by the first VTEP, obtain the 4th MAC Address 0-0-1, and then obtain 4 to be synchronized
MAC Address.
In this step, when the first VTEP determines Route Type=11, Host Numbers=0 in the 2nd NLRI, the
The routing iinformation to be synchronized that one VTEP can determine that the 2nd VTEP is sent includes multiple continuous MAC Address, and does not include IP
Address, the value of MAC Numbers are the number of multiple continuous MAC Address to be synchronized.
Correspondingly, it includes to determine that the first VTEP, which can be generated, if the 2nd NLRI is MP_REACH_NLRI
The MAC address entries of MAC Address;If the 2nd NLRI is MP_UNREACH_NLRI, the first VTEP can will include to determine
The MAC address entries of MAC Address are from local deletion.MAC address entries comprising MAC Address may refer to table (4).
Table (4)
MAC Address | Link ID | Next hop |
000A-0000-0001 | Tunnel1 | 1.1.1.1 |
000A-0000-0002 | Tunnel1 | 1.1.1.1 |
Table (4) includes MAC Address, Link ID (link identification) and Next hop (next-hop).MAC Address
Indicate that the MAC Address of VM, Link ID indicate to receive the tunnel VXLAN of the 2nd NLRI, Next hop indicates the mesh in the tunnel VXLAN
IP address.The method that first VTEP obtains Link ID and Next hop is the prior art, and details are not described herein again.
Referring to fig. 4, Fig. 4 is a kind of exemplary flow chart of the method for synchronization of routing information provided by the embodiments of the present application, should
Method can be applied to VTEP1 and VTEP2 in Fig. 1, and this method may comprise steps of:
S401:VTEP1 obtains the IP address and MAC Address of VM1, VM2 and VM3, and generates the first NLRI.
Wherein, the IP address of VM1, VM2 and VM3 are respectively IP1, IP2 and IP3, MAC Address be respectively MAC1, MAC2 and
MAC3, IP1, IP2 and IP3 are continuation address, and IP1 is minimum, and IP2 is greater than IP1, and IP3 is greater than IP2.IP in first NLRI
Address is IP1, Host Numbers=3, MAC Numbers=3, MAC Address put in order for MAC1, MAC2,
MAC3。
S402: the first NLRI is carried and is sent to VTEP2 in the first routing update message.
S403:VTEP2 obtains the start ip address (i.e. IP1) carried in the first NLRI, determines that IP1 is associated with MAC1,
IP1 plus 1 are obtained into IP2, and determine that IP2 is associated with MAC2, IP1 plus 2 are obtained into IP3, and determine that IP3 is associated with MAC3.
As it can be seen that the method for the synchronization of routing information based on the embodiment of the present application, if the IP address of VM1, VM2 and VM3 are
Continuation address, VTEP1 can only generate a NLRI (i.e. the first NLRI), and not need to carry IP2 and IP3 in the first NLRI,
The number that the NLRI of generation can be reduced reduces the data volume of transmission, and then improves the efficiency of synchronization of routing information.
Referring to Fig. 5, Fig. 5 is a kind of exemplary flow chart of the method for synchronization of routing information provided by the embodiments of the present application, should
Method can be applied to VTEP1 and VTEP2 in Fig. 1, and this method may comprise steps of:
S501:VTEP1 obtains the MAC Address of VM1, VM2 and VM3, and generates the first NLRI.
Wherein, the MAC Address of VM1, VM2 and VM3 are respectively MAC1, MAC2 and MAC3, and MAC1, MAC2 and MAC3 are continuous
Address, MAC1 is minimum, and MAC2 is greater than MAC1, and MAC3 is greater than MAC2.MAC Address is MAC1, Host in first NLRI
Numbers=0, MAC Numbers=3.
S502: the first NLRI is carried and is sent to VTEP2 in the first routing update message.
S503:VTEP2 obtains the starting MAC Address (i.e. MAC1) carried in the first NLRI, and MAC1 plus 1 are obtained MAC2,
MAC1 plus 2 are obtained into MAC3.
As it can be seen that the method for the synchronization of routing information based on the embodiment of the present application, if the MAC Address of VM1, VM2 and VM3 are
Continuation address, VTEP1 can only generate a NLRI (i.e. the first NLRI), and do not needed in the first NLRI carry MAC2 and
MAC3 can reduce the number of the NLRI of generation, reduce the data volume of transmission, and then improve the efficiency of synchronization of routing information.
Corresponding with the embodiment of the method for Fig. 2, referring to Fig. 6, Fig. 6 is a kind of synchronization routing letter provided by the embodiments of the present application
The structure chart of the device of breath, described device are applied to the first VTEP, and described device includes:
Generation module 601 is used for if it is determined that including multiple continuation address in local routing iinformation to be synchronized, then according to institute
The corresponding routing iinformation of multiple continuation address is stated, generates and carries target identification, the initial address in the multiple continuation address,
The first network layer of the number of the multiple continuation address and other routing iinformations in addition to the multiple continuation address is reachable
Property information NLRI;
Sending module 602 is sent in the first routing update message and described for carrying the first NLRI
The 2nd one VTEP connected VTEP, so that the 2nd VTEP obtains routing iinformation to be synchronized according to the first NLRI.
Optionally, the routing iinformation to be synchronized is host Address Resolution Protocol ARP information, the multiple continuation address
For multiple continuous Internet protocol IP address;
The generation module 601, be specifically used for according to the multiple continuous IP address and with the multiple continuous IP
Each MAC address that address is respectively associated generates and carries target identification, in the multiple continuous IP address
Start ip address, the number of the multiple continuous IP address, each MAC being respectively associated with the multiple continuous IP address
First NLRI of the number of address and each MAC Address;
Wherein, the start ip address is IP minimum or maximum IP address in the multiple continuous IP address, described
Putting in order for each MAC Address is associated with putting in order for the multiple continuous IP address.
Optionally, the routing iinformation to be synchronized is mac address information, and the multiple continuation address is multiple continuous
MAC Address;
The generation module 602 is specifically used for according to the multiple continuous MAC Address, and generation carries target identification,
Starting MAC Address in the multiple continuous MAC Address, the first NLRI of the number of the multiple continuous MAC Address;
Wherein, the starting MAC Address is MAC minimum or maximum MAC Address in the multiple continuous MAC Address.
Optionally, described device further include:
Receiving module sends for receiving the 2nd VTEP, carries the secondary route update message of the 2nd NLRI,
Wherein, it includes multiple continuation address in determining local routing iinformation to be synchronized that the 2nd NLRI, which is the 2nd VTEP,
When, it is generated according to the corresponding routing iinformation of multiple continuation address, carries target identification, rising in multiple continuation address
Beginning address, the NLRI of the number of multiple continuation address and other routing iinformations in addition to multiple continuation address;
Module is obtained, for obtaining routing iinformation to be synchronized according to the 2nd NLRI.
Optionally, the 2nd NLRI indicates master synchronization ARP information, and multiple continuation address is for multiple continuous IP
Location, other routing iinformations in addition to multiple continuation address include each MAC being respectively associated with multiple continuous IP address
Address;
The acquisition module, if for multiple continuous IP specifically for the initial address that is carried in the 2nd NLRI
The smallest IP address of IP in location, it is determined that in multiple continuous IP address in the smallest IP address of IP and each MAC Address
First MAC Address it is associated, the smallest IP address of IP in multiple continuous IP address is successively added into N, obtains N+1
IP address determines that the N+1 IP address is associated with the N+1 MAC Address in each MAC Address, until determining
Out N+1 IP address and with the associated MAC Address of each IP address determined, wherein the N is positive integer, and the N's takes
Value is since 1, and the value of the N is up to the number of multiple continuation address and subtracts 1;
If the initial address carried in the 2nd NLRI is the maximum IP address of IP in multiple continuous IP address,
Determine that the maximum IP address of IP is associated with first MAC Address in each MAC Address in multiple continuous IP address,
The maximum IP address of IP in multiple continuous IP address is successively subtracted into N, obtains the N+1 IP address, determines the N+1
IP address is associated with the N+1 MAC Address in each MAC Address, until determine N+1 IP address and with determine
The associated MAC Address of each IP address, wherein the N be positive integer, the value of the N is since 1, and the value of the N
The number for being up to multiple continuation address subtracts 1.
Optionally, the 2nd NLRI indicates that synchronous mac address information, multiple continuation address are multiple continuous MAC
Address;
The acquisition module, if being multiple continuous MAC specifically for the initial address carried in the 2nd NLRI
In address when the smallest MAC Address of MAC, the smallest MAC Address of MAC in multiple continuous MAC Address is obtained, it is successively that this is more
The smallest MAC Address of MAC adds N in a continuous MAC Address, obtains the N+1 MAC Address, until N+1 MAC Address is obtained,
Wherein, the N is positive integer, and the value of the N is since 1, and the value of the N is up to the number of multiple continuation address
Subtract 1;
If the initial address carried in the 2nd NLRI is the maximum MAC Address of MAC in multiple continuous MAC Address
When, the maximum MAC Address of MAC in multiple continuous MAC Address is obtained, successively most by MAC in multiple continuous MAC Address
Big MAC Address subtracts N, obtains the N+1 MAC Address, until obtaining N+1 MAC Address, wherein the N is positive integer, institute
The value of N is stated since 1, and the value of the N is up to the number of multiple continuation address and subtracts 1.
The embodiment of the present application also provides a kind of electronic equipment, as shown in fig. 7, comprises processor 701, communication interface 702,
Memory 703 and communication bus 704, wherein processor 701, communication interface 702, memory 703 are complete by communication bus 704
At mutual communication,
Memory 703, for storing computer program;
Processor 701, when for executing the program stored on memory 703, so that the electronic equipment executes same step
By information method the step of, this method comprises:
If it is determined that including multiple continuation address in local routing iinformation to be synchronized, then according to the multiple continuation address pair
The routing iinformation answered, generation carry target identification, the initial address in the multiple continuation address, the multiple continuation address
Number and other routing iinformations in addition to the multiple continuation address first network layer reachability information NLRI;
First NLRI carrying is sent to second to be connected with the first VTEP in the first routing update message
VTEP, so that the 2nd VTEP obtains routing iinformation to be synchronized according to the first NLRI.
Optionally, the routing iinformation to be synchronized is host Address Resolution Protocol ARP information, the multiple continuation address
For multiple continuous Internet protocol IP address;
It is described according to the corresponding routing iinformation of the multiple continuation address, generation carries target identification, the multiple company
Initial address in continuous address, the number of the multiple continuation address and other routings letter in addition to the multiple continuation address
Breath a NLRI the step of include:
According to the multiple continuous IP address and each media interviews being respectively associated with the multiple continuous IP address
MAC Address is controlled, generation carries target identification, the start ip address in the multiple continuous IP address, the multiple company
The number of continuous IP address, the number of each MAC Address being respectively associated with the multiple continuous IP address and each MAC Address
The first NLRI of purpose;
Wherein, the start ip address is IP minimum or maximum IP address in the multiple continuous IP address, described
Putting in order for each MAC Address is associated with putting in order for the multiple continuous IP address.
Optionally, the routing iinformation to be synchronized is mac address information, and the multiple continuation address is multiple continuous
MAC Address;
It is described according to the corresponding routing iinformation of the multiple continuation address, generation carries target identification, the multiple company
Initial address in continuous address, the number of the multiple continuation address and other routings letter in addition to the multiple continuation address
Breath a NLRI the step of include:
It according to the multiple continuous MAC Address, generates and carries target identification, in the multiple continuous MAC Address
Starting MAC Address, the first NLRI of the number of the multiple continuous MAC Address;
Wherein, the starting MAC Address is MAC minimum or maximum MAC Address in the multiple continuous MAC Address.
Optionally, the method also includes:
It receives what the 2nd VTEP was sent, carries the secondary route update message of the 2nd NLRI, wherein described second
NLRI is the 2nd VTEP in determining local routing iinformation to be synchronized when including multiple continuation address, according to multiple company
Continue what the corresponding routing iinformation in address generated, carries target identification, the initial address in multiple continuation address, multiple company
The number of continuous address and the NLRI of other routing iinformations in addition to multiple continuation address;
Routing iinformation to be synchronized is obtained according to the 2nd NLRI.
Optionally, the 2nd NLRI indicates master synchronization ARP information, and multiple continuation address is for multiple continuous IP
Location, other routing iinformations in addition to multiple continuation address include each MAC being respectively associated with multiple continuous IP address
Address;
It is described according to the 2nd NLRI obtain routing iinformation to be synchronized the step of include:
If the initial address carried in the 2nd NLRI is the smallest IP address of IP in multiple continuous IP address,
Determine that the smallest IP address of IP is associated with first MAC Address in each MAC Address in multiple continuous IP address,
The smallest IP address of IP in multiple continuous IP address is successively added into N, obtains the N+1 IP address, determines the N+1
IP address is associated with the N+1 MAC Address in each MAC Address, until determine N+1 IP address and with determine
The associated MAC Address of each IP address, wherein the N be positive integer, the value of the N is since 1, and the value of the N
The number for being up to multiple continuation address subtracts 1;
If the initial address carried in the 2nd NLRI is the maximum IP address of IP in multiple continuous IP address,
Determine that the maximum IP address of IP is associated with first MAC Address in each MAC Address in multiple continuous IP address,
The maximum IP address of IP in multiple continuous IP address is successively subtracted into N, obtains the N+1 IP address, determines the N+1
IP address is associated with the N+1 MAC Address in each MAC Address, until determine N+1 IP address and with determine
The associated MAC Address of each IP address, wherein the N be positive integer, the value of the N is since 1, and the value of the N
The number for being up to multiple continuation address subtracts 1.
Optionally, the 2nd NLRI indicates that synchronous mac address information, multiple continuation address are multiple continuous MAC
Address;
It is described according to the 2nd NLRI obtain routing iinformation to be synchronized the step of include:
If the initial address carried in the 2nd NLRI is the smallest MAC Address of MAC in multiple continuous MAC Address
When, the smallest MAC Address of MAC in multiple continuous MAC Address is obtained, successively most by MAC in multiple continuous MAC Address
Small MAC Address adds N, obtains the N+1 MAC Address, until obtaining N+1 MAC Address, wherein the N is positive integer, institute
The value of N is stated since 1, and the value of the N is up to the number of multiple continuation address and subtracts 1;
If the initial address carried in the 2nd NLRI is the maximum MAC Address of MAC in multiple continuous MAC Address
When, the maximum MAC Address of MAC in multiple continuous MAC Address is obtained, successively most by MAC in multiple continuous MAC Address
Big MAC Address subtracts N, obtains the N+1 MAC Address, until obtaining N+1 MAC Address, wherein the N is positive integer, institute
The value of N is stated since 1, and the value of the N is up to the number of multiple continuation address and subtracts 1.
The communication bus that above-mentioned electronic equipment is mentioned can be Peripheral Component Interconnect standard (Peripheral Component
Interconnect, PCI) bus or expanding the industrial standard structure (Extended Industry Standard
Architecture, EISA) bus etc..The communication bus can be divided into address bus, data/address bus, control bus etc..For just
It is only indicated with a thick line in expression, figure, it is not intended that an only bus or a type of bus.
Communication interface is for the communication between above-mentioned electronic equipment and other equipment.
Memory may include random access memory (Random Access Memory, RAM), also may include non-easy
The property lost memory (Non-Volatile Memory, NVM), for example, at least a magnetic disk storage.Optionally, memory may be used also
To be storage device that at least one is located remotely from aforementioned processor.
Above-mentioned processor can be general processor, including central processing unit (Central Processing Unit,
CPU), network processing unit (Network Processor, NP) etc.;It can also be digital signal processor (Digital Signal
Processing, DSP), it is specific integrated circuit (Application Specific Integrated Circuit, ASIC), existing
It is field programmable gate array (Field-Programmable Gate Array, FPGA) or other programmable logic device, discrete
Door or transistor logic, discrete hardware components.
In another embodiment provided by the present application, a kind of computer readable storage medium is additionally provided, which can
It reads to be stored with computer program in storage medium, the computer program realizes any of the above-described synchronization routing when being executed by processor
The step of method of information.
In another embodiment provided by the present application, a kind of computer program product comprising instruction is additionally provided, when it
When running on computers, so that the method that computer executes any synchronization of routing information in above-described embodiment.
In the above-described embodiments, can come wholly or partly by software, hardware, firmware or any combination thereof real
It is existing.When implemented in software, it can entirely or partly realize in the form of a computer program product.The computer program
Product includes one or more computer instructions.When loading on computers and executing the computer program instructions, all or
It partly generates according to process or function described in the embodiment of the present application.The computer can be general purpose computer, dedicated meter
Calculation machine, computer network or other programmable devices.The computer instruction can store in computer readable storage medium
In, or from a computer readable storage medium to the transmission of another computer readable storage medium, for example, the computer
Instruction can pass through wired (such as coaxial cable, optical fiber, number from a web-site, computer, server or data center
User's line (DSL)) or wireless (such as infrared, wireless, microwave etc.) mode to another web-site, computer, server or
Data center is transmitted.The computer readable storage medium can be any usable medium that computer can access or
It is comprising data storage devices such as one or more usable mediums integrated server, data centers.The usable medium can be with
It is magnetic medium, (for example, floppy disk, hard disk, tape), optical medium (for example, DVD) or semiconductor medium (such as solid state hard disk
Solid State Disk (SSD)) etc..
It should be noted that, in this document, relational terms such as first and second and the like are used merely to a reality
Body or operation are distinguished with another entity or operation, are deposited without necessarily requiring or implying between these entities or operation
In any actual relationship or order or sequence.Moreover, the terms "include", "comprise" or its any other variant are intended to
Non-exclusive inclusion, so that the process, method, article or equipment including a series of elements is not only wanted including those
Element, but also including other elements that are not explicitly listed, or further include for this process, method, article or equipment
Intrinsic element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that
There is also other identical elements in process, method, article or equipment including the element.
Each embodiment in this specification is all made of relevant mode and describes, same and similar portion between each embodiment
Dividing may refer to each other, and each embodiment focuses on the differences from other embodiments.Especially for device,
For electronic equipment, computer readable storage medium and computer program product embodiments, since it is substantially similar to method
Embodiment, so being described relatively simple, the relevent part can refer to the partial explaination of embodiments of method.
The foregoing is merely the preferred embodiments of the application, are not intended to limit the protection scope of the application.It is all
Any modification, equivalent replacement, improvement and so within spirit herein and principle are all contained in the protection scope of the application
It is interior.
Claims (14)
1. a kind of method of synchronization of routing information, which is characterized in that the method is applied to the first expansible Virtual Local Area Network
Endpoint of a tunnel VTEP, which comprises
If it is determined that include multiple continuation address in local routing iinformation to be synchronized, then it is corresponding according to the multiple continuation address
Routing iinformation, generation carry target identification, the initial address in the multiple continuation address, the number of the multiple continuation address
The first network layer reachability information NLRI of mesh and other routing iinformations in addition to the multiple continuation address;
First NLRI carrying is sent to the 2nd VTEP being connected with the first VTEP in the first routing update message,
So that the 2nd VTEP obtains routing iinformation to be synchronized according to the first NLRI.
2. the method according to claim 1, wherein the routing iinformation to be synchronized is host address resolution association
ARP information is discussed, the multiple continuation address is multiple continuous Internet protocol IP address;
It is described that generation carries target identification according to the multiple continuation address corresponding routing iinformation, it is the multiple continuously
Initial address in location, the number of the multiple continuation address and other routing iinformations in addition to the multiple continuation address
The step of one NLRI includes:
According to the multiple continuous IP address and each media access control being respectively associated with the multiple continuous IP address
MAC Address, generation carry target identification, and the start ip address in the multiple continuous IP address is the multiple continuous
The number of the number of IP address, each MAC Address being respectively associated with the multiple continuous IP address and each MAC Address
First NLRI;
Wherein, the start ip address is IP minimum or maximum IP address, each MAC in the multiple continuous IP address
Putting in order for address is associated with putting in order for the multiple continuous IP address.
3. the method according to claim 1, wherein the routing iinformation to be synchronized is mac address information, institute
Stating multiple continuation address is multiple continuous MAC Address;
It is described that generation carries target identification according to the multiple continuation address corresponding routing iinformation, it is the multiple continuously
Initial address in location, the number of the multiple continuation address and other routing iinformations in addition to the multiple continuation address
The step of one NLRI includes:
According to the multiple continuous MAC Address, generation carries target identification, rising in the multiple continuous MAC Address
Beginning MAC Address, the first NLRI of the number of the multiple continuous MAC Address;
Wherein, the starting MAC Address is MAC minimum or maximum MAC Address in the multiple continuous MAC Address.
4. method according to claim 1-3, which is characterized in that the method also includes:
It receives what the 2nd VTEP was sent, carries the secondary route update message of the 2nd NLRI, wherein the 2nd NLRI
When be the 2nd VTEP in determining local routing iinformation to be synchronized including multiple continuation address, according to it is multiple continuously
What the corresponding routing iinformation in location generated, carry target identification, the initial address in multiple continuation address, it is multiple continuously
The NLRI of the number of location and other routing iinformations in addition to multiple continuation address;
Routing iinformation to be synchronized is obtained according to the 2nd NLRI.
5. according to the method described in claim 4, this is more it is characterized in that, the 2nd NLRI indicates master synchronization ARP information
A continuation address is multiple continuous IP address, and other routing iinformations in addition to multiple continuation address include and multiple company
Each MAC Address that continuous IP address is respectively associated;
It is described according to the 2nd NLRI obtain routing iinformation to be synchronized the step of include:
If the initial address carried in the 2nd NLRI is the smallest IP address of IP in multiple continuous IP address, it is determined that
The smallest IP address of IP is associated with first MAC Address in each MAC Address in multiple continuous IP address, successively
The smallest IP address of IP in multiple continuous IP address is added into N, obtains the N+1 IP address, with determining the N+1 IP
Location is associated with the N+1 MAC Address in each MAC Address, until determine N+1 IP address and with determine it is every
The associated MAC Address of one IP address, wherein the N is positive integer, and the value of the N is since 1, and the value of the N is maximum
Number for multiple continuation address subtracts 1;
If the initial address carried in the 2nd NLRI is the maximum IP address of IP in multiple continuous IP address, determine
The maximum IP address of IP is associated with first MAC Address in each MAC Address in multiple continuous IP address, successively
The maximum IP address of IP in multiple continuous IP address is subtracted into N, obtains the N+1 IP address, with determining the N+1 IP
Location is associated with the N+1 MAC Address in each MAC Address, until determine N+1 IP address and with determine it is every
The associated MAC Address of one IP address, wherein the N is positive integer, and the value of the N is since 1, and the value of the N is maximum
Number for multiple continuation address subtracts 1.
6. according to the method described in claim 4, this is more it is characterized in that, the 2nd NLRI indicates synchronous mac address information
A continuation address is multiple continuous MAC Address;
It is described according to the 2nd NLRI obtain routing iinformation to be synchronized the step of include:
If the initial address carried in the 2nd NLRI is the smallest MAC Address of MAC in multiple continuous MAC Address,
The smallest MAC Address of MAC in multiple continuous MAC Address is obtained, it is successively that MAC in multiple continuous MAC Address is minimum
MAC Address add N, the N+1 MAC Address is obtained, until obtain N+1 MAC Address, wherein the N is positive integer, the N
Value since 1, and the value of the N is up to the number of multiple continuation address and subtracts 1;
If the initial address carried in the 2nd NLRI is the maximum MAC Address of MAC in multiple continuous MAC Address,
The maximum MAC Address of MAC in multiple continuous MAC Address is obtained, it is successively that MAC in multiple continuous MAC Address is maximum
MAC Address subtract N, the N+1 MAC Address is obtained, until obtain N+1 MAC Address, wherein the N is positive integer, the N
Value since 1, and the value of the N is up to the number of multiple continuation address and subtracts 1.
7. a kind of device of synchronization of routing information, which is characterized in that described device is applied to the first expansible Virtual Local Area Network
Endpoint of a tunnel VTEP, described device include:
Generation module is used for if it is determined that including multiple continuation address in local routing iinformation to be synchronized, then according to the multiple
The corresponding routing iinformation of continuation address, generation carry target identification, and the initial address in the multiple continuation address is described more
The first network layer reachability information of the number of a continuation address and other routing iinformations in addition to the multiple continuation address
NLRI;
Sending module is sent to and the first VTEP phase in the first routing update message for carrying the first NLRI
The 2nd VTEP even, so that the 2nd VTEP obtains routing iinformation to be synchronized according to the first NLRI.
8. device according to claim 7, which is characterized in that the routing iinformation to be synchronized is host address resolution association
ARP information is discussed, the multiple continuation address is multiple continuous Internet protocol IP address;
The generation module is specifically used for distinguishing according to the multiple continuous IP address and with the multiple continuous IP address
Associated each MAC address, generation carry target identification, the starting ip in the multiple continuous IP address
Address, the number of the multiple continuous IP address, each MAC Address being respectively associated with the multiple continuous IP address and institute
State the first NLRI of the number of each MAC Address;
Wherein, the start ip address is IP minimum or maximum IP address, each MAC in the multiple continuous IP address
Putting in order for address is associated with putting in order for the multiple continuous IP address.
9. device according to claim 7, which is characterized in that the routing iinformation to be synchronized is mac address information, institute
Stating multiple continuation address is multiple continuous MAC Address;
The generation module is specifically used for according to the multiple continuous MAC Address, and generation carries target identification, described more
Starting MAC Address in a continuous MAC Address, the first NLRI of the number of the multiple continuous MAC Address;
Wherein, the starting MAC Address is MAC minimum or maximum MAC Address in the multiple continuous MAC Address.
10. according to the described in any item devices of claim 7-9, which is characterized in that described device further include:
Receiving module sends for receiving the 2nd VTEP, carries the secondary route update message of the 2nd NLRI,
In, the 2nd NLRI is the 2nd VTEP in determining local routing iinformation to be synchronized when including multiple continuation address,
It is generated according to the corresponding routing iinformation of multiple continuation address, carries target identification, the starting in multiple continuation address
Address, the NLRI of the number of multiple continuation address and other routing iinformations in addition to multiple continuation address;
Module is obtained, for obtaining routing iinformation to be synchronized according to the 2nd NLRI.
11. device according to claim 10, which is characterized in that the 2nd NLRI indicates master synchronization ARP information, should
Multiple continuation address be multiple continuous IP address, other routing iinformations in addition to multiple continuation address include with it is multiple
Each MAC Address that continuous IP address is respectively associated;
The acquisition module, if being in multiple continuous IP address specifically for the initial address carried in the 2nd NLRI
The smallest IP address of IP, it is determined that in multiple continuous IP address in the smallest IP address of IP and each MAC Address the
One MAC Address is associated, the smallest IP address of IP in multiple continuous IP address is successively added N, with obtaining the N+1 IP
Location determines that the N+1 IP address is associated with the N+1 MAC Address in each MAC Address, until determining N+1
A IP address and with the associated MAC Address of each IP address determined, wherein the N is positive integer, and the value of the N is from 1
Start, and the value of the N is up to the number of multiple continuation address and subtracts 1;
If the initial address carried in the 2nd NLRI is the maximum IP address of IP in multiple continuous IP address, determine
The maximum IP address of IP is associated with first MAC Address in each MAC Address in multiple continuous IP address, successively
The maximum IP address of IP in multiple continuous IP address is subtracted into N, obtains the N+1 IP address, with determining the N+1 IP
Location is associated with the N+1 MAC Address in each MAC Address, until determine N+1 IP address and with determine it is every
The associated MAC Address of one IP address, wherein the N is positive integer, and the value of the N is since 1, and the value of the N is maximum
Number for multiple continuation address subtracts 1.
12. device according to claim 10, which is characterized in that the 2nd NLRI indicates synchronous mac address information, should
Multiple continuation address are multiple continuous MAC Address;
The acquisition module, if being multiple continuous MAC Address specifically for the initial address carried in the 2nd NLRI
When the smallest MAC Address of middle MAC, the smallest MAC Address of MAC in multiple continuous MAC Address is obtained, successively by multiple company
The smallest MAC Address of MAC adds N in continuous MAC Address, obtains the N+1 MAC Address, until N+1 MAC Address is obtained,
In, the N is positive integer, and the value of the N is since 1, and the value of the N is up to the number of multiple continuation address and subtracts
1;
If the initial address carried in the 2nd NLRI is the maximum MAC Address of MAC in multiple continuous MAC Address,
The maximum MAC Address of MAC in multiple continuous MAC Address is obtained, it is successively that MAC in multiple continuous MAC Address is maximum
MAC Address subtract N, the N+1 MAC Address is obtained, until obtain N+1 MAC Address, wherein the N is positive integer, the N
Value since 1, and the value of the N is up to the number of multiple continuation address and subtracts 1.
13. a kind of electronic equipment, which is characterized in that including processor, communication interface, memory and communication bus, wherein described
Processor, the communication interface, the memory complete mutual communication by the communication bus;
The memory, for storing computer program;
The processor when for executing the program stored on the memory, realizes any side claim 1-6
Method step.
14. a kind of machine readable storage medium, which is characterized in that be stored with machine-executable instruction, by processor call and
When execution, the machine-executable instruction promotes the processor: realizing any method and step of claim 1-6.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811441576.6A CN109347748A (en) | 2018-11-29 | 2018-11-29 | A kind of method and apparatus of synchronization of routing information |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811441576.6A CN109347748A (en) | 2018-11-29 | 2018-11-29 | A kind of method and apparatus of synchronization of routing information |
Publications (1)
Publication Number | Publication Date |
---|---|
CN109347748A true CN109347748A (en) | 2019-02-15 |
Family
ID=65319322
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201811441576.6A Pending CN109347748A (en) | 2018-11-29 | 2018-11-29 | A kind of method and apparatus of synchronization of routing information |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109347748A (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112532501A (en) * | 2019-09-18 | 2021-03-19 | 中国电信股份有限公司 | Host physical address processing method and device and computer readable storage medium |
CN112738285A (en) * | 2019-10-28 | 2021-04-30 | 中国电信股份有限公司 | MAC mapping table processing method, device, controller and system |
CN116319545A (en) * | 2022-11-16 | 2023-06-23 | 天翼云科技有限公司 | Route aggregation processing method and device based on EVPN network |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101133596A (en) * | 2005-04-13 | 2008-02-27 | 思科技术公司 | Method and apparatus for accelerating border gateway protocol convergence |
CN103841028A (en) * | 2014-03-24 | 2014-06-04 | 杭州华三通信技术有限公司 | Method and device for forwarding messages |
CN104283980A (en) * | 2014-10-09 | 2015-01-14 | 杭州华三通信技术有限公司 | Address resolution protocol (ARP) reply on-behalf method and device |
CN105591907A (en) * | 2015-07-28 | 2016-05-18 | 杭州华三通信技术有限公司 | Route acquisition method and device |
US20160261487A1 (en) * | 2015-03-05 | 2016-09-08 | Juniper Networks, Inc. | Update of mac routes in evpn single-active topology |
-
2018
- 2018-11-29 CN CN201811441576.6A patent/CN109347748A/en active Pending
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101133596A (en) * | 2005-04-13 | 2008-02-27 | 思科技术公司 | Method and apparatus for accelerating border gateway protocol convergence |
CN103841028A (en) * | 2014-03-24 | 2014-06-04 | 杭州华三通信技术有限公司 | Method and device for forwarding messages |
CN104283980A (en) * | 2014-10-09 | 2015-01-14 | 杭州华三通信技术有限公司 | Address resolution protocol (ARP) reply on-behalf method and device |
US20160261487A1 (en) * | 2015-03-05 | 2016-09-08 | Juniper Networks, Inc. | Update of mac routes in evpn single-active topology |
CN105591907A (en) * | 2015-07-28 | 2016-05-18 | 杭州华三通信技术有限公司 | Route acquisition method and device |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112532501A (en) * | 2019-09-18 | 2021-03-19 | 中国电信股份有限公司 | Host physical address processing method and device and computer readable storage medium |
CN112532501B (en) * | 2019-09-18 | 2023-04-18 | 中国电信股份有限公司 | Host physical address processing method and device and computer readable storage medium |
CN112738285A (en) * | 2019-10-28 | 2021-04-30 | 中国电信股份有限公司 | MAC mapping table processing method, device, controller and system |
CN112738285B (en) * | 2019-10-28 | 2022-11-18 | 中国电信股份有限公司 | MAC mapping table processing method, device, controller and system |
CN116319545A (en) * | 2022-11-16 | 2023-06-23 | 天翼云科技有限公司 | Route aggregation processing method and device based on EVPN network |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10320664B2 (en) | Cloud overlay for operations administration and management | |
WO2019105066A1 (en) | Route processing method and apparatus, and data transmission method and apparatus | |
CN113300949B (en) | Method for forwarding message, method, device and system for releasing routing information | |
US9736263B2 (en) | Temporal caching for ICN | |
US10103902B1 (en) | Auto-discovery of replication node and remote VTEPs in VXLANs | |
CN111092801B (en) | Data transmission method and device | |
CN105634770B (en) | The method and apparatus for disposing virtual extended local area network | |
CN107231307B (en) | Method, system and device for preventing traffic switching between subnetworks in data center architecture | |
CN108574630A (en) | EVPN message processing methods, equipment and system | |
JP2014135721A (en) | Device and method for distributing traffic of data center network | |
JP2013509808A (en) | System and method for high performance, low power data center interconnect structure | |
WO2008121452A1 (en) | Setting a forwarding address in an internet protocol version 6 (ipv6) | |
CN113302898A (en) | Virtual routing controller for peer-to-peer interconnection of client devices | |
US8988985B2 (en) | Internetworking and IP address management in unified MPLS and IP networks | |
CN109347748A (en) | A kind of method and apparatus of synchronization of routing information | |
CN104852846B (en) | A kind of data forwarding controlling method and system | |
WO2022012689A1 (en) | Route advertisement method and related device | |
WO2021232906A1 (en) | Method for determining packet forwarding and backup path and related device | |
US7860027B2 (en) | Extending an IP everywhere network over a plurality of flooding domains | |
WO2017147027A1 (en) | Addressing for customer premises lan expansion | |
EP3192221B1 (en) | Method and network node for scalable computer network partitioning | |
CN112702773A (en) | Communication method and device | |
EP2556628A1 (en) | System and method for automated discovery of customer-edge devices and interface connections in a virtual-private-networking environment | |
CN116547953A (en) | Implementing inter-segment traffic policies by a network fabric control plane | |
US10530873B1 (en) | Techniques for optimizing EVPN-IRB for IPv6-enabled data centers with top-of-rack deployments |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20190215 |