CN107147555A - The switching method and equipment, storage medium of a kind of VXLAN networks - Google Patents

The switching method and equipment, storage medium of a kind of VXLAN networks Download PDF

Info

Publication number
CN107147555A
CN107147555A CN201710520390.9A CN201710520390A CN107147555A CN 107147555 A CN107147555 A CN 107147555A CN 201710520390 A CN201710520390 A CN 201710520390A CN 107147555 A CN107147555 A CN 107147555A
Authority
CN
China
Prior art keywords
terminal
address
vxlan
target terminal
switched
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201710520390.9A
Other languages
Chinese (zh)
Other versions
CN107147555B (en
Inventor
宋晓丽
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Lenovo Beijing Ltd
Original Assignee
Lenovo Beijing Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Lenovo Beijing Ltd filed Critical Lenovo Beijing Ltd
Priority to CN201710520390.9A priority Critical patent/CN107147555B/en
Publication of CN107147555A publication Critical patent/CN107147555A/en
Application granted granted Critical
Publication of CN107147555B publication Critical patent/CN107147555B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/46Interconnection of networks
    • H04L12/4641Virtual LANs, VLANs, e.g. virtual private networks [VPN]
    • H04L12/4675Dynamic sharing of VLAN information amongst network nodes
    • H04L12/4679Arrangements for the registration or de-registration of VLAN attribute values, e.g. VLAN identifiers, port VLAN membership
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/46Interconnection of networks
    • H04L12/4633Interconnection of networks using encapsulation techniques, e.g. tunneling
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/22Alternate routing

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Security & Cryptography (AREA)
  • Small-Scale Networks (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The embodiment of the invention discloses a kind of switching method of VXLAN networks and equipment, storage medium, wherein, methods described includes:To be switched terminal determines the IP address of the target terminal of switching;IP address is revised as the IP address of the target terminal in the forwarding-table item that to be switched terminal is safeguarded itself;To be switched terminal carries the IP address of the target terminal in VXLAN messages;The VXLAN messages are sent to other-end by be switched terminal.

Description

The switching method and equipment, storage medium of a kind of VXLAN networks
Technical field
The present invention relates to the switching method and equipment, storage medium of electronic technology, more particularly to a kind of VXLAN networks.
Background technology
Virtual extended LAN (Virtual Extensible LAN, VXLAN) is that two layer message is encapsulated in IP by one kind Superposition (overlay) technology on message, VXLAN endpoint of a tunnels (VXLAN Tunneling End Point, VTEP) are safeguarded VXLAN forwarding-table items, are mainly used in encapsulation/decapsulation of message.In current mechanism, it can not become once VXLAN tunnel buildings More, substantial amounts of message dropping otherwise can be caused, but may need to be adjusted VXLAN tunnels in practical application, for example, is gone out In the planning again of management platform, load balancing, or the change of VTEP host's entities business etc. have demand by some VTEP The service switching of processing will ensure the continuity of VXLAN business to others VTEP.
The content of the invention
In view of this, the embodiment of the present invention provides one kind to solve at least one problem present in prior art Switching method and equipment, the storage medium of VXLAN networks.
What the technical scheme of the embodiment of the present invention was realized in:
In a first aspect, the embodiment of the present invention provides a kind of switching method of VXLAN networks, methods described includes:
To be switched terminal determines the IP address of the target terminal of switching;
IP address is revised as the IP address of the target terminal in the forwarding-table item that to be switched terminal is safeguarded itself;
To be switched terminal carries the IP address of the target terminal in VXLAN messages;
The VXLAN messages are sent to other-end by be switched terminal.
In other embodiments, the IP address of the target terminal is carried and reported the VXLAN more by the to be switched terminal Text, including:
To be switched terminal expands to the reserved field in the heading of VXLAN multicast messages the IP address word of target terminal Section;
To be switched terminal carries the IP address of the target terminal in the heading of VXLAN multicast messages.
In other embodiments, methods described also includes:
First bit expanded of the first row in the heading of VXLAN multicast messages is flag by be switched terminal, described What flag was used to identifying VXLAN multicast messages act as service switching;
The flag is revised as default identifier by be switched terminal, and the identifier is used to identify VXLAN multicasts Message is service switching message.
In other embodiments, methods described also includes:
The other-end receives the VXLAN multicast messages;
Flag of the other-end in the VXLAN multicast messages determines that the VXLAN multicast messages are business Switch message;
The IP address of target terminal of the other-end in the VXLAN multicast messages, by turning for self maintained IP address is revised as the IP address of the target terminal in forwarding list item.
In other embodiments, the other-end includes target terminal, and methods described also includes:
The IP address of target terminal of the target terminal in the VXLAN multicast messages, by turning for self maintained IP address is revised as locally in forwarding list item.
In other embodiments, methods described also includes:
The VXLAN multicast messages are sent to after other-end by be switched terminal, start timer timing;
If being not received by the service message that the other-end is sent in timing time, the business of itself is closed;
If receiving the service message that the other-end is sent in timing time, to the end for sending service message End sends the VXLAN multicast messages.
In other embodiments, the to be switched terminal determines to be switched target terminal, including:
To be switched terminal receives the IP address that target terminal is carried in service switching request, the service switching request.
In other embodiments, the to be switched terminal determines to be switched target terminal, including:
To be switched terminal receives handover operation;
To be switched terminal is based on the handover operation, obtains the mark of target terminal;
To be switched terminal determines the IP address of the target terminal according to the mark of the target terminal.
Second aspect, the embodiment of the present invention provides a kind of switching terminal of VXLAN networks, and the terminal connects including outside Mouth, memory, processor and storage are on a memory and the computer program that can run on a processor, it is characterised in that institute Following steps are realized when stating computing device described program:
It is determined that the IP address of the target terminal of switching;
IP address is revised as the IP address of the target terminal in the forwarding-table item that itself is safeguarded;
The IP address of the target terminal is carried in VXLAN messages;
The VXLAN messages are sent to by other-end by the external interface.
The third aspect, the embodiment of the present invention provides a kind of computer-readable recording medium, is stored thereon with computer program, Characterized in that, the computer program realizes a kind of switching method of foregoing VXLAN networks when being executed by processor the step of.
In the embodiment of the present invention, to be switched terminal determines the IP address of the target terminal of switching;To be switched terminal by itself IP address is revised as the IP address of the target terminal in the forwarding-table item safeguarded;To be switched terminal is by the target terminal IP address is carried in VXLAN messages;The VXLAN messages are sent to other-end by be switched terminal;So, it is possible realization will VXLAN tunneling terminations from a VTEP smoothly be switched to another VTEP, and keep the continuity of business.
Brief description of the drawings
Fig. 1 is the implementation process schematic diagram of the switching method of VXLAN networks of the embodiment of the present invention;
Fig. 2 is the schematic diagram of the VXLAN multicast messages after the embodiment of the present invention extends;
Fig. 3 is the implementation process schematic diagram of the switching method of VXLAN networks of the embodiment of the present invention;
Fig. 4 is the schematic diagram of a scenario of correlation technique;
Fig. 5 is schematic diagram of a scenario of the embodiment of the present invention;
Fig. 6 is the implementation process schematic diagram of the switching terminal of VXLAN networks of the embodiment of the present invention.
Embodiment
The technical solution of the present invention is further elaborated with specific embodiment below in conjunction with the accompanying drawings.
The present embodiment provides a kind of switching method of VXLAN networks, applied to be switched terminal, the information processing method institute The function of realization can realize that certain program code can be stored in by the processor caller code in electronic equipment In computer-readable storage medium, it is seen then that the electronic equipment at least includes processor and storage medium.
Fig. 1 is the implementation process schematic diagram of the switching method of VXLAN networks of the embodiment of the present invention, as shown in figure 1, this method Including:
Step S101, to be switched terminal determines the IP address of the target terminal of switching;
Here, to be switched terminal is VTEP terminals.
Here, the to be switched terminal determines to be switched target terminal, including:To be switched terminal receives service switching please Ask, the IP address of target terminal is carried in the service switching request.
IP address is revised as the target terminal in step S102, the forwarding-table item that to be switched terminal is safeguarded itself IP address;
Step S103, to be switched terminal carries the IP address of the target terminal in VXLAN messages;
The VXLAN messages are sent to other-end by step S104, to be switched terminal.
Here, general to be switched terminal, target terminal and other-end belong to a packet, and one in VTEP packets When individual member is as to be switched terminal, then one of other-end in group as target terminal, in group except to be switched terminal it Outer other-end as step S104 other-end.As shown in figure 4, a VTEP packet includes VTEP A to D, work as VTEP A is as to be switched terminal, and VTEP B are used as other-end as purpose terminal, VTEP B, VTEP C and VTEP D.
In other examples, the to be switched terminal determines to be switched target terminal, including:To be switched terminal connects Receive user (keeper) handover operation;To be switched terminal is based on the handover operation, obtains the mark of target terminal;To be switched end Hold the IP address that the target terminal is determined according to the mark of the target terminal.
In the embodiment of the present invention, to be switched terminal determines the IP address of the target terminal of switching;To be switched terminal by itself IP address is revised as the IP address of the target terminal in the forwarding-table item safeguarded;To be switched terminal is by the target terminal IP address is carried in VXLAN messages;The VXLAN messages are sent to other-end by be switched terminal;So, it is possible realization will VXLAN tunneling terminations from a VTEP smoothly be switched to another VTEP, and keep the continuity of business.
The present embodiment provides a kind of switching method of VXLAN networks, and this method includes:
Step S201, to be switched terminal determines the IP address of the target terminal of switching;
Here, to be switched terminal is VTEP terminals.
IP address is revised as the target terminal in step S202, the forwarding-table item that to be switched terminal is safeguarded itself IP address;
Reserved field in the heading of VXLAN multicast messages is expanded to target terminal by step S203, to be switched terminal IP address field;
Here, the reserved field in the heading of VXLAN multicast messages is expanded to target terminal by the to be switched terminal IP address field, including:Rear 24 bit expanded that to be switched terminal reserves heading the first row is target terminal IP address Preceding 24 bit or rear 24 bit;Rear 8 bit expanded that to be switched terminal reserves the row of heading second is target terminal IP Rear 8 bit or preceding 8 bit of location.
Here, the heading (VXLAN Header) of VXLAN multicast messages is as shown in Fig. 2 A figures, and A figures are included at 3 Reserved field, wherein reserved field is preceding 8 bit of the first row at first, at second for the first row rear 24bit as reserved Field 12, is used as reserved field 13 at the 3rd for the rear 8bit of the second row.In the present embodiment, 12 in reserved field and 13 are expanded Open up as IP address field.Referring to shown in Fig. 2 B figures, in reserved field 12 and 13 as the target terminal after extending IP Location field 22 and 23.As a kind of embodiment, in reserved field 12 as target ip address preceding 24bit, reserved field In 13 as target ip address rear 8bit.In other examples, 12 in reserved field are used as target ip address In 24bit afterwards, reserved field 13 as target ip address preceding 8bit.
Step S204, to be switched terminal carries the IP address of the target terminal heading in VXLAN multicast messages In.
Here, step S203 and step S204 in fact provide one kind and realize that step S103 " incite somebody to action described by be switched terminal The IP address of target terminal is carried in VXLAN messages " method.
The VXLAN messages are sent to other-end by step S205, to be switched terminal.
General to be switched terminal, target terminal and other-end belong to a packet, when one in VTEP packets into When member is as to be switched terminal, then one of other-end in group is as target terminal, and group is interior in addition to be switched terminal Other-end as step S104 other-end.As shown in figure 4, a VTEP packet includes VTEP A to D, when VTEP A make For to be switched terminal, VTEP B are used as other-end as purpose terminal, VTEP B, VTEP C and VTEP D.
In other examples, the to be switched terminal determines to be switched target terminal, including:To be switched terminal connects Receive user (keeper) handover operation;To be switched terminal is based on the handover operation, obtains the mark of target terminal;To be switched end Hold the IP address that the target terminal is determined according to the mark of the target terminal.
Based on foregoing embodiment, the present embodiment provides a kind of switching method of VXLAN networks, and this method includes:
Step S301, to be switched terminal determines the IP address of the target terminal of switching;
Here, to be switched terminal is VTEP terminals.
IP address is revised as the target terminal in step S302, the forwarding-table item that to be switched terminal is safeguarded itself IP address;
Reserved field in the heading of VXLAN multicast messages is expanded to target terminal by step S303, to be switched terminal IP address field;
Step S304, to be switched terminal carries the IP address of the target terminal heading in VXLAN multicast messages In.
Here, step S303 and step S304 in fact provide one kind and realize that step S103 " incite somebody to action described by be switched terminal The IP address of target terminal is carried in VXLAN messages " method.
First bit expanded of the first row in the heading of VXLAN multicast messages is mark by step S305, to be switched terminal Know position, what the flag was used to identifying VXLAN multicast messages act as service switching;
The flag is revised as default identifier by step S306, to be switched terminal, and the identifier is used to identify VXLAN multicast messages are service switching message.
The VXLAN messages are sent to other-end by step S307, to be switched terminal.
In other examples, the to be switched terminal determines to be switched target terminal, including:To be switched terminal connects Receive user (keeper) handover operation;To be switched terminal is based on the handover operation, obtains the mark of target terminal;To be switched end Hold the IP address that the target terminal is determined according to the mark of the target terminal.
VXLAN multicast messages in the present embodiment are to distinguish VXLAN multicast messages as a kind of service switching message Service switching message in common message or the present embodiment, as shown in Fig. 2 A figures, first in preceding 8 bit of the first row Individual bit 11 is as flag, when flag bit 11 is set to default identifier, then it is this reality to recognize VXLAN multicast messages The service switching message in example is applied, when flag bit 11 is not set as default identifier, then recognizes that VXLAN multicast messages are Common message.During realization, when can be default identifier 1 by flag bit set, service switching message be represented, can During using by flag bit set as 0, common message is represented.
Based on foregoing embodiment, Fig. 3 illustrates for the implementation process of the switching method of VXLAN networks of the embodiment of the present invention Figure, as shown in figure 3, the present embodiment provides a kind of switching method of VXLAN networks, this method includes:
Step S401, to be switched terminal determines the IP address of the target terminal of switching;
Here, to be switched terminal is VTEP terminals.
IP address is revised as the target terminal in step S402, the forwarding-table item that to be switched terminal is safeguarded itself IP address;
Reserved field in the heading of VXLAN multicast messages is expanded to target terminal by step S403, to be switched terminal IP address field;
Step S404, to be switched terminal carries the IP address of the target terminal heading in VXLAN multicast messages In.
Here, step S403 and step S404 in fact provide one kind and realize that step S103 " incite somebody to action described by be switched terminal The IP address of target terminal is carried in VXLAN messages " method.
First bit expanded of the first row in the heading of VXLAN multicast messages is mark by step S405, to be switched terminal Know position;
Here, what the flag was used to identifying VXLAN multicast messages act as service switching;
The flag is revised as default identifier by step S406, to be switched terminal, and the identifier is used to identify VXLAN multicast messages are service switching message;
The VXLAN messages are sent to other-end by step S407, to be switched terminal.
Here, to be switched terminal, target terminal and other-end belong to one packet, when VTEP packet in one into When member is as to be switched terminal, then one of other-end in group is as target terminal, and group is interior in addition to be switched terminal Other-end as step S104 other-end.As shown in figure 4, a VTEP packet includes VTEP A to D, when VTEP A make For to be switched terminal, VTEP B are used as other-end as purpose terminal, VTEP B, VTEP C and VTEP D.
Step S408, the other-end receives the VXLAN multicast messages;
Here, other-end is that the other-end in group in addition to be switched terminal, i.e. other-end include target terminal.
Step S409, flag of the other-end in the VXLAN multicast messages determines report more than the VXLAN Text is service switching message;
Step S410, the IP address of target terminal of the other-end in the VXLAN multicast messages, by itself IP address is revised as the IP address of the target terminal in the forwarding-table item of maintenance.
Step S411, the IP address of target terminal of the target terminal in the VXLAN multicast messages, by itself IP address is revised as locally in the forwarding-table item of maintenance.
Based on foregoing embodiment, the present embodiment provides a kind of switching method of VXLAN networks, and this method includes:
Step S501, to be switched terminal determines the IP address of the target terminal of switching;
Here, to be switched terminal is VTEP terminals.
IP address is revised as the target terminal in step S502, the forwarding-table item that to be switched terminal is safeguarded itself IP address;
Reserved field in the heading of VXLAN multicast messages is expanded to target terminal by step S503, to be switched terminal IP address field;
Step S504, to be switched terminal carries the IP address of the target terminal heading in VXLAN multicast messages In.
The VXLAN messages are sent to other-end by step S505, to be switched terminal.
First bit expanded of the first row in the heading of VXLAN multicast messages is mark by step S506, to be switched terminal Know position, what the flag was used to identifying VXLAN multicast messages act as service switching;
The flag is revised as default identifier by step S507, to be switched terminal, and the identifier is used to identify VXLAN multicast messages are service switching message.
Step S508, the other-end receives the VXLAN multicast messages;
Step S509, flag of the other-end in the VXLAN multicast messages determines report more than the VXLAN Text is service switching message;
Step S510, the IP address of target terminal of the other-end in the VXLAN multicast messages, by itself IP address is revised as the IP address of the target terminal in the forwarding-table item of maintenance.
Step S511, the IP address of target terminal of the target terminal in the VXLAN multicast messages, by itself IP address is revised as locally in the forwarding-table item of maintenance.
The VXLAN multicast messages are sent to after other-end by step S512, to be switched terminal, start timer meter When;
Step S513, if being not received by the service message that the other-end is sent in timing time, is closed certainly The business of body;
Step S514, if receiving the service message that the other-end is sent in timing time, to transmission industry The terminal of business message sends the VXLAN multicast messages.
In other examples, the to be switched terminal determines to be switched target terminal, including:To be switched terminal connects Receive user (keeper) handover operation;To be switched terminal is based on the handover operation, obtains the mark of target terminal;To be switched end Hold the IP address that the target terminal is determined according to the mark of the target terminal.
In order to solve that service switching function will be increased in VTEP functional entitys in foregoing technical problem, the present embodiment, this Sample once receives service switching request, then triggers VTEP by multicast message, notify other VTEP entities to carry out forwarding-table item Change.
The present embodiment is by extending VXLAN heads, the change for notifying other related VTEP forwarding-table items, wherein the 1st It is IP replacement notice message/service switching request messages that bit, which is used to identify this message, and other 32bit are the Target IP replaced. This method includes:
Step S51, VTEP receive service switching request/notice, and the content of request/notice includes the target VTEP to be switched IP。
Here, service switching request/notice can be that management platform is sent or VTEP host's entity hair Go out, or keeper manually triggering and equipment triggering.
Step S52, VTEP notify its VNI group member VTEP associated based on VXLAN multicast messages, and it is safeguarded IP address is that the entry of itself is updated to the target VTEP of switching in forwarding-table item, and starts the to be switched completion such as timer, is closed Close the VTEP services of local terminal;
Step S52, others association VNI member VTEP receives parsing VXLAN Header after VXLAN messages, if the 1st Individual bit puts 1, then IP address entry consistent with the VXLAN packet outer layer source IPs, is replaced with the forwarding-table item safeguarded it Purpose IP entrained by the message.
With reference to Fig. 5, the switching method of the VXLAN networks includes:
Step S61, VTEP A receive service switching request, and service switching request message is sent into other members in group;
Here, service switching request message is sent in the form of VXLAN multicasts, and message internal layer source MAC is VTEPA MAC Address, purpose MAC indicates multicast purpose, the VXLAN VNI except identifying multicast group, also comprising the work(for replacing VTEP A Energy entity VTEPB IP address, outer layer source is VTEP A, and purpose is multicast.The message is by VTEP A in many of all associateds Broadcast and group broadcasted.
Here, other members include in organizing:VTEP B, VTEP C and VTEP D.
Other members are received after the message in step S62, group, and parsing first bit of VXLAN header is set, then is sentenced The fixed message is service switching request message, and examination goes out entries of the remote IP for IP A in forward table, and replaces with message The replacement IP of middle carrying:IP B;
Here, remote IP are revised as IP B by VTEP C and VTEP D from IP A.
The VTEP B for being used to replace in step S63, group receive the message, and it is itself to parse replacement IP, then examination goes out Remote IP are IP A entry, and its corresponding mac address is recorded as into local, the follow-up encapsulation that message is directly carried out to it Decapsulation and forward process;
Start timer after the transmission of step S64, VTEP A finishing service handover request messages, latency services have switched Into, the message of distal end is such as no longer received in timer timing cycle, then close local terminal VTEP business;If still being received in timer period To distal end message, then broadcasting service handover request message and timer is reset again, until can not receive the message of distal end, close this Hold VTEP business.
Overlay stateless network technologies are also the important component at Future Data center.Overlay is the meaning of superposition Think, i.e., by being superimposed the logical network of a software definition on existing network, legacy network is not transformed as far as possible, passes through definition Logical network thereon, realizes service logic, so as to solve the network problem at legacy data center, greatly saves legacy user Investment.Overlay is that a kind of be framed in (business) double layer network in three layers/tetra- layers message of legacy network is transmitted Network technology.Such technology is actually a kind of tunnel encapsulation technology.Have in its tangible network technology much Encapsulation technology, such as MPLS, VPLS, GRE etc..Overlay it is the most key be stateless network to be realized, i.e., in many numbers Exchanged visits according between center, virtual machine (vm) migration can be carried out to unaware.For upper layer application business without informing, a kind of perhaps industry Business is that multiple virtual machines are provided simultaneously for multiple data centers, and this is normal in Overlay networks.Overlay Include three big standard techniques at present, wherein surely belonging to that VXLAN technologies are of greatest concern, VXLAN is that Cisco and VMware are proposed jointly Come, it is just wide concerned since being suggested.From the structure of encapsulation, VXLAN, which is provided, exists double layer network overlay VNI in ability on three-layer network, VXLAN Header has 24 bit, and quantity is far longer than 4096, and UDP encapsulation Three-layer network can be passed through, has more preferable autgmentability than VLAN.In data center, Overlay provides a kind of solution data The technological means that plane is forwarded and multi-tenant is isolated, and the SDN mentioned before, are to define a kind of network rack for controlling and managing Structure.Both do not conflict at the psychology effection in Future Data, and VXLAN technologies or the necessary condition of SDN deployment, only portion SDN could be gone up by having affixed one's name to VXLAN, and both can organically combine, and play a role jointly.
In the present embodiment, by the application of the program can realize by VXLAN tunneling terminations from a VTEP cutting smoothly Another VTEP is changed to, and keeps the continuity of business.Scheme, which is used, at least to be included:Management platform plans again for VXLAN, Load balancing and disaster tolerance, the scene such as VTEP host's entity acts exception or business change.
Based on foregoing embodiment, the embodiment of the present invention provides a kind of switching terminal of VXLAN networks, and Fig. 6 is the present invention The composition structural representation of the switching terminal of embodiment VXLAN networks, as shown in fig. 6, the switching terminal 600 includes external interface 601st, memory 602, processor 603 and storage be on a memory and the computer program that can run on a processor, the place Reason device 603 realizes following steps when performing described program:
It is determined that the IP address of the target terminal of switching;
IP address is revised as the IP address of the target terminal in the forwarding-table item that itself is safeguarded;
The IP address of the target terminal is carried in VXLAN messages;
The VXLAN messages are sent to by other-end by the external interface.
In other embodiments, the IP address by the target terminal is carried in VXLAN multicast messages, including:Will Reserved field in the heading of VXLAN multicast messages expands to the IP address field of target terminal;By the target terminal IP address is carried in the heading of VXLAN multicast messages.
In other embodiments, following steps are realized during the computing device described program:By VXLAN multicast messages The first bit expanded of the first row is flag in heading, and the flag is used to identify acting as VXLAN multicast messages Service switching;The flag is revised as default identifier, the identifier is used to identify VXLAN multicast messages for business Switch message.
In other embodiments, following steps are realized during the computing device described program:
The VXLAN multicast messages are sent to after other-end by be switched terminal, start timer timing;
If being not received by the service message that the other-end is sent in timing time, the business of itself is closed;
If receiving the service message that the other-end is sent in timing time, to the end for sending service message End sends the VXLAN multicast messages.
In other embodiments, the to be switched terminal determines to be switched target terminal, including:To be switched terminal is received The IP address of target terminal is carried in service switching request, the service switching request.
In other embodiments, the to be switched terminal determines to be switched target terminal, including:To be switched terminal is received Handover operation;To be switched terminal is based on the handover operation, obtains the mark of target terminal;To be switched terminal is according to the target The mark of terminal determines the IP address of the target terminal.
Based on foregoing embodiment, the embodiment of the present invention provides a kind of other-end of VXLAN networks, the other-end bag Include external interface, memory, processor and store the computer program that can be run on a memory and on a processor, the place Reason device realizes following steps when performing described program:
Receive the VXLAN multicast messages;
Flag in the VXLAN multicast messages determines that the VXLAN multicast messages are service switching messages;
The IP address of target terminal in the VXLAN multicast messages, by IP in the forwarding-table item of self maintained It is revised as the IP address of the target terminal in location.
In other embodiments, the other-end includes target terminal, is realized during the computing device described program Following steps:
The IP address of target terminal of the target terminal in the VXLAN multicast messages, by turning for self maintained IP address is revised as locally in forwarding list item.
The description of above terminal embodiment, the description with above method embodiment is similar, with same embodiment of the method Similar beneficial effect.For the ins and outs not disclosed in terminal embodiment of the present invention, the inventive method embodiment refer to Description and understand.
In the embodiment of the present invention, if realizing a kind of switching of above-mentioned VXLAN networks in the form of software function part Method, and as independent production marketing or in use, can also be stored in a computer read/write memory medium.It is based on Such to understand, the part that the technical scheme of the embodiment of the present invention substantially contributes to prior art in other words can be with soft The form of part product is embodied, and the computer software product is stored in a storage medium, including some instructions are to make Obtain a computer equipment (can be personal computer, server or network equipment etc.) and perform each embodiment of the invention The all or part of methods described.And foregoing storage medium includes:USB flash disk, mobile hard disk, read-only storage (Read Only Memory, ROM), magnetic disc or CD etc. are various can be with the medium of store program codes.So, the embodiment of the present invention is not limited Combined in any specific hardware and software.
The embodiment of the present invention provides a kind of computer-readable recording medium, is stored thereon with computer program, its calculating Machine program realizes a kind of method of the switching of foregoing VXLAN networks when being executed by processor the step of.
It should be understood that " one embodiment " or " embodiment " that specification is mentioned in the whole text means relevant with embodiment During special characteristic, structure or characteristic are included at least one embodiment of the present invention.Therefore, occur everywhere in entire disclosure " in one embodiment " or " in one embodiment " identical embodiment is not necessarily referred to.In addition, these specific feature, knots Structure or characteristic can be combined in one or more embodiments in any suitable manner.It should be understood that in the various implementations of the present invention In example, the size of the sequence number of above-mentioned each process is not meant to the priority of execution sequence, and the execution sequence of each process should be with its work( It can be determined with internal logic, any limit is constituted without tackling the implementation process of the embodiment of the present invention.The embodiments of the present invention Sequence number is for illustration only, and the quality of embodiment is not represented.
It should be noted that herein, term " comprising ", "comprising" or its any other variant are intended to non-row His property is included, so that process, method, article or device including a series of key elements not only include those key elements, and And also including other key elements being not expressly set out, or also include for this process, method, article or device institute inherently Key element.In the absence of more restrictions, the key element limited by sentence "including a ...", it is not excluded that including this Also there is other identical element in process, method, article or the device of key element.
, can be by it in several embodiments provided herein, it should be understood that disclosed apparatus and method Its mode is realized.Apparatus embodiments described above are only schematical, for example, the division of the unit, is only A kind of division of logic function, can have other dividing mode, such as when actually realizing:Multiple units or component can be combined, or Another system is desirably integrated into, or some features can be ignored, or do not perform.In addition, shown or discussed each composition portion Coupling point each other or direct-coupling or communication connection can be the INDIRECT COUPLINGs of equipment or unit by some interfaces Or communication connection, can be electrical, machinery or other forms.
The above-mentioned unit illustrated as separating component can be or may not be it is physically separate, it is aobvious as unit The part shown can be or may not be physical location;Both a place can be located at, multiple network lists can also be distributed to In member;Part or all of unit therein can be selected to realize the purpose of this embodiment scheme according to the actual needs.
In addition, each functional unit in various embodiments of the present invention can be fully integrated into a processing unit, also may be used Be each unit individually as a unit, can also two or more units it is integrated in a unit;It is above-mentioned Integrated unit can both be realized in the form of hardware, it would however also be possible to employ hardware adds the form of SFU software functional unit to realize.
One of ordinary skill in the art will appreciate that:Realizing all or part of step of above method embodiment can pass through Programmed instruction related hardware is completed, and foregoing program can be stored in computer read/write memory medium, and the program exists During execution, the step of execution includes above method embodiment;And foregoing storage medium includes:Movable storage device, read-only deposit Reservoir (Read Only Memory, ROM), magnetic disc or CD etc. are various can be with the medium of store program codes.
Or, if the above-mentioned integrated unit of the present invention is realized using in the form of software function module and is used as independent product Sale in use, can also be stored in a computer read/write memory medium.Understood based on such, the present invention is implemented The part that the technical scheme of example substantially contributes to prior art in other words can be embodied in the form of software product, The computer software product is stored in a storage medium, including some instructions are to cause a computer equipment (can be with It is personal computer, server or network equipment etc.) perform all or part of each of the invention embodiment methods described. And foregoing storage medium includes:Movable storage device, ROM, magnetic disc or CD etc. are various can be with Jie of store program codes Matter.
The foregoing is only a specific embodiment of the invention, but protection scope of the present invention is not limited thereto, any Those familiar with the art the invention discloses technical scope in, change or replacement can be readily occurred in, should all be contained Cover within protection scope of the present invention.Therefore, protection scope of the present invention should be based on the protection scope of the described claims.

Claims (12)

1. a kind of switching method of VXLAN networks, it is characterised in that methods described includes:
To be switched terminal determines the IP address of the target terminal of switching;
IP address is revised as the IP address of the target terminal in the forwarding-table item that to be switched terminal is safeguarded itself;
To be switched terminal carries the IP address of the target terminal in VXLAN messages;
The VXLAN messages are sent to other-end by be switched terminal.
2. according to the method described in claim 1, it is characterised in that the to be switched terminal is by the IP address of the target terminal Carry in VXLAN multicast messages, including:
To be switched terminal expands to the reserved field in the heading of VXLAN multicast messages the IP address field of target terminal;
To be switched terminal carries the IP address of the target terminal in the heading of VXLAN multicast messages.
3. method according to claim 2, it is characterised in that methods described also includes:
First bit expanded of the first row in the heading of VXLAN multicast messages is flag, the mark by be switched terminal What position was used to identifying VXLAN multicast messages act as service switching;
The flag is revised as default identifier by be switched terminal, and the identifier is used to identify VXLAN multicast messages For service switching message.
4. method according to claim 3, it is characterised in that methods described also includes:
The other-end receives the VXLAN multicast messages;
Flag of the other-end in the VXLAN multicast messages determines that the VXLAN multicast messages are service switchings Message;
The IP address of target terminal of the other-end in the VXLAN multicast messages, by the forward table of self maintained IP address is revised as the IP address of the target terminal in.
5. method according to claim 4, it is characterised in that the other-end includes target terminal, and methods described is also Including:
The IP address of target terminal of the target terminal in the VXLAN multicast messages, by the forward table of self maintained IP address is revised as locally in.
6. according to the method described in claim 1, it is characterised in that methods described also includes:
The VXLAN multicast messages are sent to after other-end by be switched terminal, start timer timing;
If being not received by the service message that the other-end is sent in timing time, the business of itself is closed;
If receiving the service message that the other-end is sent in timing time, sent out to the terminal for sending service message Send the VXLAN multicast messages.
7. the method according to any one of claim 1 to 6, it is characterised in that the to be switched terminal determines to be switched Target terminal, including:
To be switched terminal receives the IP address that target terminal is carried in service switching request, the service switching request.
8. the method according to any one of claim 1 to 6, it is characterised in that the to be switched terminal determines to be switched Target terminal, including:
To be switched terminal receives handover operation;
To be switched terminal is based on the handover operation, obtains the mark of target terminal;
To be switched terminal determines the IP address of the target terminal according to the mark of the target terminal.
9. a kind of switching terminal of VXLAN networks, it is characterised in that the terminal include external interface, memory, processor and Store the computer program that can be run on a memory and on a processor, it is characterised in that journey described in the computing device Following steps are realized during sequence:
It is determined that the IP address of the target terminal of switching;
IP address is revised as the IP address of the target terminal in the forwarding-table item that itself is safeguarded;
The IP address of the target terminal is carried in VXLAN messages;
The VXLAN messages are sent to by other-end by the external interface.
10. switching terminal according to claim 9, it is characterised in that the IP address by the target terminal is carried In VXLAN multicast messages, including:
Reserved field in the heading of VXLAN multicast messages is expanded to the IP address field of target terminal;
The IP address of the target terminal is carried in the heading of VXLAN multicast messages.
11. switching terminal according to claim 10, it is characterised in that realized during the computing device described program with Lower step:
It is flag by the first bit expanded of the first row in the heading of VXLAN multicast messages, the flag is used to identify VXLAN multicast messages act as service switching;
The flag is revised as default identifier, the identifier is used to identify VXLAN multicast messages for service switching Message.
12. a kind of computer-readable recording medium, is stored thereon with computer program, it is characterised in that the computer program quilt The step of method described in any one of claim 1 to 8 is realized during computing device.
CN201710520390.9A 2017-06-30 2017-06-30 VXLAN network switching method and device and storage medium Active CN107147555B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710520390.9A CN107147555B (en) 2017-06-30 2017-06-30 VXLAN network switching method and device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710520390.9A CN107147555B (en) 2017-06-30 2017-06-30 VXLAN network switching method and device and storage medium

Publications (2)

Publication Number Publication Date
CN107147555A true CN107147555A (en) 2017-09-08
CN107147555B CN107147555B (en) 2020-06-23

Family

ID=59784969

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710520390.9A Active CN107147555B (en) 2017-06-30 2017-06-30 VXLAN network switching method and device and storage medium

Country Status (1)

Country Link
CN (1) CN107147555B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111193756A (en) * 2018-11-14 2020-05-22 中移(杭州)信息技术有限公司 VXLAN tunnel load balancing method and related equipment
CN112910939A (en) * 2019-12-03 2021-06-04 华为技术有限公司 Data processing method and related device

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104270298A (en) * 2014-09-30 2015-01-07 杭州华三通信技术有限公司 Method and device for forwarding message in VXLAN
CN104980916A (en) * 2015-05-07 2015-10-14 东南大学 Marked net mobile access method
US20150381386A1 (en) * 2014-06-30 2015-12-31 Arista Networks, Inc. Method and system for vxlan encapsulation offload
CN105577417A (en) * 2014-11-06 2016-05-11 杭州华三通信技术有限公司 VXLAN (virtual extensible local area network)-based massage forwarding method and device
CN105991387A (en) * 2015-01-29 2016-10-05 杭州华三通信技术有限公司 Message transformation method and device of virtual extensible local area network (VXLAN)
CN106656532A (en) * 2015-10-28 2017-05-10 华为软件技术有限公司 Network element switching method and device
CN106899430A (en) * 2016-12-09 2017-06-27 新华三技术有限公司 A kind of flow method for processing forwarding and device

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20150381386A1 (en) * 2014-06-30 2015-12-31 Arista Networks, Inc. Method and system for vxlan encapsulation offload
CN104270298A (en) * 2014-09-30 2015-01-07 杭州华三通信技术有限公司 Method and device for forwarding message in VXLAN
CN105577417A (en) * 2014-11-06 2016-05-11 杭州华三通信技术有限公司 VXLAN (virtual extensible local area network)-based massage forwarding method and device
CN105991387A (en) * 2015-01-29 2016-10-05 杭州华三通信技术有限公司 Message transformation method and device of virtual extensible local area network (VXLAN)
CN104980916A (en) * 2015-05-07 2015-10-14 东南大学 Marked net mobile access method
CN106656532A (en) * 2015-10-28 2017-05-10 华为软件技术有限公司 Network element switching method and device
CN106899430A (en) * 2016-12-09 2017-06-27 新华三技术有限公司 A kind of flow method for processing forwarding and device

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111193756A (en) * 2018-11-14 2020-05-22 中移(杭州)信息技术有限公司 VXLAN tunnel load balancing method and related equipment
CN112910939A (en) * 2019-12-03 2021-06-04 华为技术有限公司 Data processing method and related device

Also Published As

Publication number Publication date
CN107147555B (en) 2020-06-23

Similar Documents

Publication Publication Date Title
CN103095546B (en) A kind of method, device and data center network processing message
CN108259291B (en) VXLAN message processing method, device and system
CN111800326B (en) Message transmission method and device, processing node and storage medium
EP3605972B1 (en) Packet transmission method, edge device, and machine readable storage medium
CN104813288B (en) The apparatus and method that tenant's specific data are separated during for using MPLS in the cloud computing for enable OPENFLOW
CN105763440B (en) A kind of method and apparatus of message forwarding
CN102035736B (en) Forwarding apparatus and method of packets
CN104823405A (en) IP multicast service leave process for MPLS-based virtual private cloud networking
CN107645431B (en) Message forwarding method and device
CN106209557B (en) Message forwarding method and device
CN104301251A (en) QoS processing method, system and device
CN105634942A (en) Method and switch for forwarding message
CN113132202B (en) Message transmission method and related equipment
CN109729012A (en) A kind of unicast message transmission method and device
CN108600109A (en) A kind of message forwarding method and device
CN109412949A (en) A kind of data message transmission method and device
CN108063718A (en) Message processing method, device and electronic equipment
CN107147555A (en) The switching method and equipment, storage medium of a kind of VXLAN networks
CN105812221B (en) The device and method of data transmission in virtual expansible Local Area Network
CN104780090B (en) Method, apparatus, the PE equipment of VPN multicast transmissions
CN107171966B (en) A kind of VXLAN file transmitting method, VTEP and VXLAN system
CN112702254B (en) Message processing method and device and electronic equipment
CN103297344A (en) Distributed data communicating system and multicast message transmitting method thereof
CN107086960B (en) Message transmission method and device
CN106502841B (en) Data back up method and device

Legal Events

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