CN109995646A - Link switch-over method, device and equipment - Google Patents

Link switch-over method, device and equipment Download PDF

Info

Publication number
CN109995646A
CN109995646A CN201711483774.4A CN201711483774A CN109995646A CN 109995646 A CN109995646 A CN 109995646A CN 201711483774 A CN201711483774 A CN 201711483774A CN 109995646 A CN109995646 A CN 109995646A
Authority
CN
China
Prior art keywords
physical
virtual machine
virtual
link
group
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
CN201711483774.4A
Other languages
Chinese (zh)
Other versions
CN109995646B (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.)
Xian Huawei Technologies Co Ltd
Original Assignee
Xian Huawei Technologies Co 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 Xian Huawei Technologies Co Ltd filed Critical Xian Huawei Technologies Co Ltd
Priority to CN201711483774.4A priority Critical patent/CN109995646B/en
Publication of CN109995646A publication Critical patent/CN109995646A/en
Application granted granted Critical
Publication of CN109995646B publication Critical patent/CN109995646B/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
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/06Management of faults, events, alarms or notifications
    • H04L41/0654Management of faults, events, alarms or notifications using network fault recovery
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/28Routing or path finding of packets in data switching networks using route fault recovery

Landscapes

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

Abstract

A kind of link switch-over method, device and equipment.This method comprises: passing through the first service link transmission services between the first virtual machine and the second virtual machine;When detecting business transmission abnormality, the first virtual machine, which passes through, establishes the second service link between the second virtual network port and the second virtual machine, the odd even characteristic of the network address of the first virtual network port and the second virtual network port is different;Business is switched on the second service link from the first service link and is transmitted by the first virtual machine.In the embodiment of the present application, the different network address of odd even characteristic is configured by two virtual network ports to virtual machine, after detecting business transmission abnormality and being switched to another virtual network port and establish new service link, new service link must not be identical with physical link corresponding to original service link, to avoid physical link switching is unsuccessful from happening, and then avoid business impaired.

Description

Link switch-over method, device and equipment
Technical field
The invention relates to technical field of virtualization, in particular to a kind of link switch-over method, device and equipment.
Background technique
Currently, usually by service link and being held when providing related service by virtual machine (Virtual Machine, VM) The physical link collaboration for carrying the service link is completed.When the physical link of bearer service link is in communication sub-health state, For example, then needing to switch physical link when packet loss, Cuo Bao, network delay are larger.
In the related technology, the physical link of bearer service link is that each physical equipment is adjusted using source-destination address hash Spend what algorithm determined.Source-destination address hash dispatching algorithm is also referred to as the Kazakhstan Internet protocol (Internet Protocol, IP) Uncommon (HASH) algorithm.Specifically, physical equipment carries out the source IP address of service link and the end number of purpose IP address different Or operation, the corresponding Hash hashed value of the service link is obtained, which is used to indicate the object for transmitting the service link Manage network interface.When service link switches, each physical equipment can recalculate the corresponding Hash of service link after switching Hashed value determines corresponding physical internet ports according to the corresponding Hash hashed value of service link after switching later.
Since the source IP address and purpose IP address of service link are randomly assigned, it is thus possible to deposit before the handover The corresponding Hash hashed value of the service link situation identical as the corresponding Hash hashed value of service link after switching generates, at this time Physical link switching is unsuccessful.
Summary of the invention
The embodiment of the present application provides a kind of link switch-over method, device and equipment, can be used for solving in the related technology because Caused by physical link switching is unsuccessful the problem of traffic lost.
On the one hand, the embodiment of the present application provides a kind of link switch-over method, in the method, the first virtual machine and the second void Pass through the first service link transmission services between quasi- machine, wherein the first service link is the first virtual network port of the first virtual machine The service link established between the second virtual machine, there are 2n-1 group intermediate physical sections between the first virtual machine and the second virtual machine Point, n are positive integer, and each group of intermediate physical node includes mutual cascade 2 physical nodes, the physics where the first virtual machine Two physical internet ports of equipment have physical link, the second virtual machine with 2 physical nodes of the 1st group of intermediate physical node respectively Two physical internet ports of the physical equipment at place have physics chain with 2 physical nodes of 2n-1 group intermediate physical node respectively Road has parallel physical link and intersection as n > 1 between i-th group of intermediate physical node and i+1 group intermediate physical node Physical link, wherein the Physical Network slogan that parallel physics link pair is answered is 0, intersects the corresponding Physical Network slogan of physical link and is 1, i is positive integer;When detecting business transmission abnormality, the first virtual machine passes through between the second virtual network port and the second virtual machine Establish the second service link;Wherein, the odd even characteristic of the network address of the first virtual network port and the second virtual network port is different;First Business is switched on the second service link from the first service link and is transmitted by virtual machine.
It is different to configure odd even characteristic by two virtual network ports to virtual machine for technical solution provided by the embodiments of the present application Network address, it is new after detecting business transmission abnormality and being switched to another virtual network port and establish new service link Service link must not be identical with physical link corresponding to original service link, to avoid physical link switching unsuccessful It happens, and then avoids business impaired.
In a possible design, the network address of above-mentioned first virtual network port is the net of even number and the second virtual network port Network address is odd number;Alternatively, the network address that the network address of the first virtual network port is odd number and the second virtual network port is even number.
In a possible design, above-mentioned second virtual machine includes third virtual network port and the 4th virtual network port, and The odd even characteristic of the network address of three virtual network ports and the 4th virtual network port is different.
In a possible design, operation has virtual switch in the physical equipment where the first virtual machine, virtual to hand over It changes planes using Source Hashing Scheduling algorithms selection physical link.
In a possible design, above-mentioned physical node selects physics chain using source-destination address hash dispatching algorithm Road.
In a possible design, as n=1, there are 1 group of intermediate physicals between the first virtual machine and the second virtual machine Node, intermediate physical node include mutual cascade 2 power boards;Alternatively, as n=2, the first virtual machine and the second virtual machine Between there are 3 groups of intermediate physical nodes, wherein the 1st group of intermediate physical node includes mutual cascade 2 the first power boards, the 2nd Group intermediate physical node includes mutual cascade 2 TOR (Top of Rank) interchanger, and the 3rd group of intermediate physical node includes mutual Mutually cascade 2 the second power boards;Alternatively, there are 5 groups of intermediate physicals between the first virtual machine and the second virtual machine as n=3 Node, wherein the 1st group of intermediate physical node includes mutual cascade 2 the first power boards, and the 2nd group of intermediate physical node includes Mutual cascade 2 the first TOR interchangers, the 3rd group of intermediate physical node include mutual cascade 2 EOR (End of Rank) Interchanger, the 4th group of intermediate physical node include mutual cascade 2 the 2nd TOR interchangers, and the 5th group of intermediate physical node includes Mutual cascade 2 the second power boards.
On the other hand, the embodiment of the present application provides a kind of link switching device, which, which has, realizes above method example In function.The function can also execute corresponding software realization by hardware realization by hardware.The hardware or Software includes one or more modules corresponding with above-mentioned function or unit.
It include processor and communication interface in the structure of device in a possible design, the processor is configured To support device to execute the function in the above method.The communication interface is used to support the communication between device and other equipment. Further, device can also include memory, and the memory with processor for coupling, the necessary program of save set Instruction and data.
In another aspect, the embodiment of the present application provides a kind of computer storage medium, for being stored as used in above-mentioned apparatus Computer program, it includes for executing program designed by above-mentioned aspect.
Another aspect, the embodiment of the present application provide a kind of computer program product, when the computer program product is performed When, it is used to execute link switch-over method provided by the various possible designs of above-mentioned first aspect and first aspect.
Detailed description of the invention
Fig. 1 is the unsuccessful schematic diagram of link switching that the relevant technologies provide;
Fig. 2A is the schematic diagram of the application scenarios shown in one exemplary embodiment of the application;
Fig. 2 B is the schematic diagram of data center's scene shown in one exemplary embodiment of the application;
Fig. 2 C is the schematic diagram of data center's scene shown in another exemplary embodiment of the application;
Fig. 2 D is the schematic diagram of data center's scene shown in another exemplary embodiment of the application;
Fig. 3 is the flow chart of the link switch-over method shown in one exemplary embodiment of the application;
Fig. 4 A is the schematic diagram of the link switching shown in one exemplary embodiment of the application;
Fig. 4 B is the schematic diagram of the link switching shown in one exemplary embodiment of the application;
Fig. 5 A is the structural block diagram of the link switching device shown in one exemplary embodiment of the application;
Fig. 5 B is the structural block diagram of the physical equipment shown in one exemplary embodiment of the application.
Specific embodiment
To keep the purposes, technical schemes and advantages of the application clearer, below in conjunction with attached drawing, to the embodiment of the present application In technical solution be described.
The network architecture and business scenario of the embodiment of the present application description are to clearly illustrate that the application is implemented The technical solution of example, does not constitute the restriction to technical solution provided by the embodiments of the present application, those of ordinary skill in the art can Know, with the differentiation of the network architecture and the appearance of new business scene, technical solution provided by the embodiments of the present application is for similar Technical problem, it is equally applicable.
In conjunction with reference Fig. 1, it illustrates the unsuccessful schematic diagrames of link switching that the relevant technologies provide.Wherein, the first industry The source address of business link 101 is 172.10.0.10 (the corresponding network address of 0 plane of the first virtual machine 11), and destination address is 172.20.0.11 (the corresponding network address of 0 plane of the second virtual machine 13), carries the physics chain of first service link 101 Road is as follows: No. 1 physics of No. 1 physical internet ports → TOR interchanger 2 of No. 0 physical internet ports → power board 1 of the first physical equipment 12 No. 0 physical internet ports of No. 1 physical internet ports of network interface → power board 3 → second physical equipment 14.
When first service link 101 is switched to the second service link 102, the source address of the second service link 102 is 172.10.0.12 (the corresponding network address of 1 plane of the first virtual machine 11), destination address are that (second is virtual by 172.20.0.13 The corresponding network address of 1 plane of machine 13), the physical link for carrying second service link 102 is still as follows: the first physics is set The 1 of No. 1 physical internet ports → power board 3 of No. 1 physical internet ports → TOR interchanger 2 of standby 12 No. 0 physical internet ports → power board 1 Number No. 0 physical internet ports of physical internet ports → second physical equipment 14.
After switching to the second service link 102 due to the first service link 101, physical link is simultaneously had not been changed, therefore object Reason link does not switch successfully.
Before technical solution provided by the embodiments of the present application is introduced, first to the invention relates to phase Noun is closed to be introduced.
Virtual machine: by software simulate with complete hardware system function, operate in a completely isolated environment Complete computer.Virtual machine generally includes 2 virtual planes, and virtual network port corresponding with this 2 virtual planes. Illustratively, virtual machine includes 0 plane and 1 plane, corresponding No. 0 virtual network port of 0 plane, corresponding No. 1 virtual network port of 1 plane.
Service link: a kind of logical links is used for transmission business datum and control signaling etc..
Physical link: the link of the physical circuit composition between each physical node and each physical node.Physical cord Road can be cable, optical fiber etc..
In conjunction with reference Fig. 2A, it illustrates the schematic diagrames of the application scenarios shown in the application one embodiment.The applied field Scape includes the first virtual machine 10, the second virtual machine 20 and 2n-1 group intermediate physical node, and n is positive integer.
First virtual machine 10 includes two virtual network ports, respectively No. 0 virtual network port and No. 1 virtual network port, No. 0 virtual net Mouth is the corresponding virtual network port of 0 plane of the first virtual machine 10, and No. 1 virtual network port is that 1 plane of the first virtual machine 10 is corresponding Virtual network port, and No. 0 virtual network port respectively corresponds different network address from No. 1 virtual network port.First virtual machine 10 is run on In first physical equipment 40, the first physical equipment 40 includes No. 0 physical internet ports and No. 1 physical internet ports.Optionally, the first physics is set Operation has the first virtual switch 41 in standby 40.First physical equipment 40 can be veneer, be also possible to host, such as server.
Second virtual machine 20 includes two virtual network ports, respectively No. 0 virtual network port and No. 1 virtual network port, No. 0 virtual net Mouth is the corresponding virtual network port of 0 plane of the second virtual machine 20, and No. 1 virtual network port is that 1 plane of the second virtual machine 20 is corresponding Virtual network port, and No. 0 virtual network port respectively corresponds different network address from No. 1 virtual network port.Second virtual machine 20 is run on In second physical equipment 50, the second physical equipment 50 includes No. 0 physical internet ports and No. 1 physical internet ports.Optionally, the second physics is set Operation has the second virtual switch 51 in standby 50.Second physical equipment 50 can be veneer, be also possible to host, such as server.
Intermediate physical node is between the first physical equipment 10 and the second physical equipment 50, each group of intermediate physical node Including mutual cascade 2 physical nodes 30.In addition, No. 0 physical internet ports of the first physical equipment 40 and No. 1 physical internet ports difference There are physical link, No. 0 physical internet ports of the second physical equipment 50 and 1 with 2 physical nodes 30 of the 1st group of intermediate physical node Number physical internet ports have physical link with 2 physical nodes 30 of 2n-1 group intermediate physical node respectively.In addition, working as n > 1 When, there is parallel physical link between i-th group of intermediate physical node and i+1 group intermediate physical node and intersect physical link. Wherein, the Physical Network slogan that parallel physics link pair is answered is 0, and the corresponding Physical Network slogan of intersection physical link is positive whole for 1, i Number.
There is at least two service link, service link between first virtual machine 10 and the second virtual machine 20 can be used for transmitting Business datum, control signaling etc..Above-mentioned two service link can be used for transmitting identical business, and it is different to can be used for transmission Business.There is also at least two physical links between first physical equipment 40 and the second physical equipment 50,
When the application scenarios are data center's scene, physical node 30 included by every group of intermediate physical node can be Power board, TOR interchanger, EOR interchanger etc..
In conjunction with reference Fig. 2 B, it illustrates the signals of data center's scene shown in one exemplary embodiment of the application Figure.The scene is properly termed as straddle scene in frame.As n=1, there are 1 group between the first virtual machine 10 and the second virtual machine 20 Intermediate physical node, this group of intermediate physical node include mutual cascade 2 power boards, are shown in figure with power board 1 and power board 2 Out.Two physical internet ports of two physical internet ports of the first physical equipment 40 and the second physical equipment 50 with power board 1, The foundation of power board 2 has physical link.
In conjunction with reference Fig. 2 C, it illustrates the signals of data center's scene shown in another exemplary embodiment of the application Figure.The scene is properly termed as across frame scene in TOR.As n=2, there are 3 groups between the first virtual machine 10 and the second virtual machine 20 Intermediate physical node, wherein the 1st group of intermediate physical node includes mutual cascade 2 the first power boards, with power board 1 in figure It is shown with power board 2, the 2nd group of intermediate physical node includes mutual cascade 2 TOR interchangers, with TOR 1 and TOR 2 in figure It shows, the 3rd group of intermediate physical node includes mutual cascade 2 the second power boards, is shown in figure with power board 3 and power board 4. Two physical internet ports of the first physical equipment 40 have physical link, the second physical equipment 50 with 2 the first power board foundation respectively Two physical internet ports have physical link with the foundation of 2 the second power boards respectively.In addition, every two groups adjacent intermediate physical nodes Between have parallel physical link and intersect physical link.
In conjunction with reference Fig. 2 D, it illustrates the signals of data center's scene shown in another exemplary embodiment of the application Figure.The scene is properly termed as across TOR through EOR interaction scenarios.As n=3, deposited between the first virtual machine 10 and the second virtual machine 20 In 5 groups of intermediate physical nodes, wherein the 1st group of intermediate physical node 30 includes mutual cascade 2 the first power boards, in figure with Power board 1 and power board 2 are shown, and the 2nd group of intermediate physical node includes mutual cascade 2 the first TOR interchangers, in figure with TOR 1 and TOR 2 are shown, and the 3rd group of intermediate physical node includes mutual cascade 2 EOR interchangers, with EOR 1 and EOR in figure 2 show, and the 4th group of intermediate physical node includes mutual cascade 2 the 2nd TOR interchangers, are shown in figure with TOR 3 and TOR 4, 5th group of intermediate physical node includes mutual cascade 2 the second power boards, is shown in figure with power board 3 and power board 4.First Two physical internet ports of physical equipment 40 are established with two the first power boards respectively physical link, and the two of the second physical equipment 50 A physical internet ports have physical link with two the second power board foundation respectively.In addition, every two groups adjacent intermediate physical nodes it Between have parallel physical link and intersect physical link.
It should be noted that each physical equipment (such as first physical equipment, the second physical equipment, physical node) is wrapped Physical internet ports are included, the quantity of physical internet ports can be 2,4 or other quantity.Each physical internet ports are corresponding with physical internet ports Number, Physical Network slogan can be indicated using 0 or 1.For ease of description, the physical internet ports that Physical Network slogan is 0 are claimed below For No. 0 physical internet ports, the physical internet ports that Physical Network slogan is 1 are known as No. 1 physical internet ports.
When the corresponding Physical Network slogan of physical internet ports is set, can according to physical equipment put sequence, number, slot number, Priority etc. is set in advance.For example, the corresponding Physical Network of small physical internet ports can will be numbered for the first physical equipment Slogan is set as 0, numbers the corresponding Physical Network slogan of big physical internet ports and is set as 1.For another example can be incited somebody to action for power board The corresponding Physical Network slogan of the small physical internet ports of slot number is set as 0, the corresponding Physical Network slogan setting of the big physical internet ports of slot number It is 1.For another example the corresponding Physical Network slogan of the higher physical internet ports of priority can be set as 0, preferentially for interchanger The corresponding Physical Network slogan of the lower physical internet ports of grade is set as 1.
In addition, the concatenate rule of the physical link between each physical equipment is as follows: the first physical equipment, the second physics The physical internet ports of equipment can have physical link between any one physical internet ports (such as power board) of physical node.Object When connection obtains physical link between reason node and physical node, there are the Physical Network slogans of two physical internet ports of physical link It should be identical.For example, having physical link between No. 0 physical internet ports of power board and No. 0 physical internet ports of TOR interchanger, hand over Changing has physical link between No. 1 physical internet ports of plate and No. 1 physical internet ports of TOR interchanger.Further, No. 0 Physical Network Between mouthful physical link is parallel to each other namely Fig. 2 C or Fig. 2 D shown in parallel physical link;Between No. 1 physical internet ports Physical link cross one another namely Fig. 2 C or Fig. 2 D shown in intersect physical link.
It is different to configure odd even characteristic by two virtual network ports to virtual machine for technical solution provided by the embodiments of the present application Network address, it is new after detecting business transmission abnormality and being switched to another virtual network port and establish new service link Service link must not be identical with physical link corresponding to original service link, to avoid physical link switching unsuccessful It happens, and then avoids business impaired.
In conjunction with reference Fig. 3, it illustrates the schematic diagrames for the link switch-over method that the application one embodiment provides.This method It can be applied in any application scenarios described above, this method may include the following steps.
Step 201, pass through the first service link transmission services between the first virtual machine and the second virtual machine.
First service link is the service link established between the first virtual network port of the first virtual machine and the second virtual machine. Optionally, the first virtual machine include the first virtual network port and the second virtual network port, the second virtual machine include third virtual network port and 4th virtual network port.First service link is the first virtual network port of the first virtual machine and the third virtual network port of the second virtual machine Between the service link established.Virtual network port is that the logic communicated between virtual machine and other entities (such as virtual switch) connects Mouthful.
Two virtual network ports of the first virtual machine can be distinguished using different network interfaces number, such as the first virtual network port Network interface number is 0, and the network interface number of the second virtual network port is 1;Alternatively, the network interface number of the first virtual network port is 1, the second virtual network port Network interface number is 0.Similarly, two virtual network ports of the second virtual machine can also be distinguished using different network interfaces number, example If the network interface number of third virtual network port is 0, the network interface number of the 4th virtual network port is 1;Alternatively, the network interface number of third virtual network port is 1, the network interface number of the 4th virtual network port is 0.
The odd even characteristic of the network address of first virtual network port and the second virtual network port is different.Third virtual network port and the 4th The odd even characteristic of the network address of virtual network port is different.The odd even characteristic of network address is used to indicate last position of network address Number is odd number or even number.Network address can be IP address.Illustratively, IP address 172.20.00.13, the then net The odd even characteristic of network address is odd number.For another example IP address is 172.20.00.16, then the odd even characteristic of the network address is even Number.In one example, it is odd number that the network address of the first virtual network port, which is the network address of even number and the second virtual network port,;? In another example, the network address of the first virtual network port is that the network address of odd number and the second virtual network port is even number.One In a example, the network address of third virtual network port is that the network address of even number and the 4th virtual network port is odd number;At another In example, the network address of third virtual network port is that the network address of odd number and the 4th virtual network port is even number.
There are 2n-1 group intermediate physical node between first virtual machine and the second virtual machine, n is positive integer.Intermediate physical section Point can be power board, is also possible to TOR interchanger, can also be EOR interchanger.TOR interchanger refers in data center The interchanger of the top of server cabinet or unit installation.EOR interchanger refers to the server cabinet or unit in data center End installation interchanger.
As n=1, there are 1 group of intermediate physical node, this group of intermediate physical sections between the first virtual machine and the second virtual machine Point includes mutual cascade 2 power boards.As n=2, there are 3 groups of intermediate physicals between the first virtual machine and the second virtual machine Node, wherein the 1st group of intermediate physical node includes mutual cascade 2 the first power boards, and the 2nd group of intermediate physical node includes Mutual cascade 2 TOR interchangers, the 3rd group of intermediate physical node include mutual cascade 2 the second power boards.As n=3, There are 5 groups of intermediate physical nodes between first virtual machine and the second virtual machine, wherein the 1st group of intermediate physical node includes mutual Cascade 2 the first power boards, the 2nd group of intermediate physical node include mutual cascade 2 the first TOR interchangers, among the 3rd group Physical node includes mutual cascade 2 EOR interchangers, and the 4th group of intermediate physical node includes mutual cascade 2 the 2nd TOR Interchanger, the 5th group of intermediate physical node include mutual cascade 2 the second power boards.
Each group of intermediate physical node includes between mutual cascade 2 physical nodes namely above-mentioned two physical node It interconnects.Above-mentioned two physical node can be cascaded by ordinary user port, can also using special cascade port into Row cascade.If when between two physical nodes using the cascade of ordinary user port, the cable between port can use cross cable; If when between two physical nodes using the cascade of special cascade port, the cable between port can use straight-through cable.
Two physical internet ports of the physical equipment where the first virtual machine, 2 objects with the 1st group of intermediate physical node respectively Manage node have physical link, two physical internet ports of the physical equipment where the second virtual machine respectively with 2n-1 group intermediary 2 physical nodes for managing node have physical link.That is, two physical internet ports of the physical equipment where the first virtual machine point It is not connect between 2 physical nodes of the 1st group of intermediate physical node by wired mode, the physics where the second virtual machine is set Two standby physical internet ports are connect with 2 physical nodes of 2n-1 group intermediate physical node by wired mode respectively.It is above-mentioned Wired mode can be cable connection.
As n > 1, between i-th group of intermediate physical node and i+1 group intermediate physical node have parallel physical link and Intersect physical link, i is positive integer.Optionally, the Physical Network slogan that parallel physics link pair is answered is 0, intersects physical link pair The Physical Network slogan answered is 1.
When passing through the first service link transmission services, the physical link of the first service link is carried as where virtual machine Physical equipment and physical node codetermine.
Optionally, operation has virtual switch in the physical equipment where the first virtual machine, and virtual switch is using source Location hashes dispatching algorithm (SRC-IP algorithm) and selects physical link.Source Hashing Scheduling algorithm makees the source address of transmission services Corresponding physical internet ports are found out from the hash table of static allocation for hashed key (Hash Key).In one example, if source address Last one-bit digital be odd number, then by No. 1 physical internet ports transmission services of the physical equipment where virtual machine, if source address Last one-bit digital be even number, then pass through No. 0 physical internet ports transmission services of the physical equipment where virtual machine.For example, source Address is 172.18.00.07, then passes through No. 1 physical internet ports transmission services of the physical equipment where virtual machine.
Optionally, physical node selects physics chain using source-destination address hash dispatching algorithm (SRC-DST-IP algorithm) Road.Specifically, the last one-bit digital of the source address of the first service link and destination address is carried out XOR operation by physical node, If exclusive or result is 0, No. 0 physical internet ports transmission services of the physical node are selected, if exclusive or result is 1, select the object Manage No. 1 physical internet ports transmission services of node.When the last one-bit digital of source address is odd number, the last one digit number of destination address Word is odd number, alternatively, the last one-bit digital of source address is even number, the last one-bit digital of destination address is even number, exclusive or knot Fruit perseverance is 0, selects No. 0 physical internet ports transmission services of the physical node at this time.When source address last one-bit digital be odd number, The last one-bit digital of destination address be even number, alternatively, the last one-bit digital of source address be even number, destination address last Bit digital is odd number, and exclusive or result perseverance is 1, selects No. 1 physical internet ports transmission services of the physical node at this time.
Step 302, when detecting business transmission abnormality, the first virtual machine passes through the second virtual network port and the second virtual machine Between establish the second service link.
Business transmission abnormality may include at least one of following several situations: packet loss, Cuo Bao, network delay and network Shake.Optionally, when the first service link is the service link established between the first virtual network port and third virtual network port, the One virtual machine is by establishing the second service link between the second virtual network port and the 4th virtual network port of the second virtual machine.
In the embodiment of the present application, when detecting business transmission abnormality, entrained mesh when virtual machine is by transmission services Address be modified with source address, to establish the second service link.For example, by source address by the first virtual of the first virtual machine The network address of network interface is revised as the network address of the second virtual network port, by destination address by the third virtual net of the second virtual machine The network address of mouth is revised as the network address of the 4th virtual network port.
Step 303, business is switched on the second service link from the first service link and is transmitted by the first virtual machine.
After the second service link is successfully established, passed between the first virtual machine and the second virtual machine by the second service link Defeated business.
It should be noted that virtual machine reselects object based on the source address after change when service link switches Manage link, physical node based on after change source address and destination address reselect physical link, due to the first virtual machine packet The odd even characteristic of the network address of the first virtual network port and the second virtual network port that include is not identical, the third that the second virtual machine includes The odd even characteristic of the network address of virtual network port and the 4th virtual network port is not also identical, therefore determined based on the second service link Physical link and the physical link determined based on the first service link be not centainly identical, that is, after service link switching, each object Equipment (such as the physical equipment where the first virtual machine, the physical equipment where the second virtual machine, physical node) is managed according to new Physical link come carry switching after the second service link.
In conclusion technical solution provided by the embodiments of the present application, is configured odd by two virtual network ports to virtual machine The different network address of even characteristic establishes new service link when detecting business transmission abnormality and being switched to another virtual network port Later, new service link must not be identical with physical link corresponding to original service link, so that physical link be avoided to cut Change it is unsuccessful happen, and then avoid business impaired.
It is explained so that link switch-over method shown in Fig. 3 is applied to data center's scene shown in Fig. 2 D as an example.
First virtual machine include No. 0 virtual network port and No. 1 virtual network port, and network address be respectively 172.20.0.10 and 172.30.0.11.Second virtual machine also includes No. 0 virtual network port and No. 1 virtual network port, and network address is respectively And 172.30.0.12 172.20.0.11.
In conjunction with reference Fig. 4 A, parallel plane is formed between the first virtual machine 10 and the second virtual machine 20.Parallel plane refers to There are service link, 1 planes of the first virtual machine 10 between 0 plane of the first virtual machine 10 and 0 plane of the second virtual machine 20 There are service link between 1 plane of the second virtual machine 20.
The source address of first service link 401 is 172.20.0.10, destination address 172.20.0.11, the first business chain The corresponding physical link in road is as follows: No. 1 physical internet ports → TOR 2 of No. 0 physical internet ports → power board 1 of the first physical equipment 40 No. 1 physical internet ports → EOR 1 No. 1 physical internet ports → TOR 4 No. 1 physical internet ports → power board 3 No. 1 physical internet ports → No. 0 physical internet ports of the second physical equipment 50.When the first service link 401 switches to the second service link 402, the second business The source address of link 402 is 172.30.0.11, destination address 172.30.0.12.The corresponding physics of second service link 402 Link is as follows: No. 1 Physical Network of No. 1 physical internet ports → TOR 1 of No. 1 physical internet ports → power board 2 of the first physical equipment 40 No. 1 physical internet ports → second physics of No. 1 physical internet ports → power board 4 of No. 1 physical internet ports → TOR 3 of mouth → EOR 2 is set Standby 50 No. 1 physical internet ports.
In conjunction with reference Fig. 4 B, crossing plane is formed between the first virtual machine 10 and the second virtual machine 20.Crossing plane refers to There are service link, 1 planes of the first virtual machine 10 between 0 plane of the first virtual machine 10 and 1 plane of the second virtual machine 20 There are service link between 0 plane of the second virtual machine 20.
The source address of third service link 403 is 172.20.0.10, destination address 172.30.0.12.Third business chain The corresponding physical link in road 403 is as follows: No. 0 physical internet ports of No. 0 physical internet ports → power board 1 of the first physical equipment 40 → No. 0 physics of No. 0 physical internet ports → power board 3 of No. 0 physical internet ports → TOR 3 of No. 0 physical internet ports → EOR 1 of TOR 1 No. 0 physical internet ports of network interface → second physical equipment 50.When third service link 403 switches to four service link 404, the The source address of four service link 404 is 172.30.0.11, destination address 172.20.0.11.4th service link 404 is corresponding Physical link it is as follows: No. 0 of No. 0 physical internet ports → TOR 2 of No. 1 physical internet ports → power board 2 of the first physical equipment 40 No. 0 physical internet ports → the second of No. 0 physical internet ports → power board 4 of No. 0 physical internet ports → TOR 4 of physical internet ports → EOR 2 No. 1 physical internet ports of physical equipment 50.
In above method embodiment, from the angle of link switching device (namely physical equipment) to technology provided by the present application Explanation is introduced in scheme.It is understood that link switching device is in order to realize the above functions, it comprises execute each function It can corresponding hardware configuration and/or software module (or unit).Each example described in conjunction with embodiment disclosed herein Unit and algorithm steps, the embodiment of the present application can realize with the combining form of hardware or hardware and computer software.Certain A function is executed in a manner of hardware or computer software driving hardware actually, depending on technical solution specific application and Design constraint.Those skilled in the art can realize each specific application using different methods described Function, but this realization is it is not considered that exceed the range of the technical solution of the embodiment of the present application.
The embodiment of the present application can carry out the division of functional unit, example according to above method example to link switching device Such as, each functional unit of each function division can be corresponded to, two or more functions can also be integrated at one It manages in unit.Above-mentioned integrated unit both can take the form of hardware realization, can also be in the form of software functional units It realizes.It should be noted that being schematical, only a kind of logic function stroke to the division of unit in the embodiment of the present application Point, there may be another division manner in actual implementation.
Fig. 5 A shows the structural block diagram of the link switching device of the application one embodiment offer.The device includes: logical Believe unit 501 and processing unit 502.
Communication unit 501 is for realizing step 301 in above method embodiment and the corresponding function of step 303, Yi Jiqi The communication steps that it expresses or implies.
Processing unit 502 is for realizing the corresponding function of step 302 in above method embodiment and other expresses or hidden The processing step contained.
Fig. 5 B shows the structural block diagram of the physical equipment 510 of the application one embodiment offer, which can To be to run veneer, the host etc. that have virtual machine.The physical equipment 510 includes: processor 512 and memory 511.Optionally, Physical equipment 510 can also include bus 513.Wherein, processor 512 and memory 511 can be interconnected by 513 phase of bus It connects;It is total that bus 513 can be Peripheral Component Interconnect standard (Peripheral Component Interconnect, abbreviation PCI) Line or expanding the industrial standard structure (Extended Industry Standard Architecture, abbreviation EISA) bus etc.. The bus 513 can be divided into address bus, data/address bus, control bus etc..For convenient for indicating, only with a thick line in Fig. 5 B It indicates, it is not intended that an only bus or a type of bus.It in the embodiment of the present application, can be in memory 511 It is stored with computer program, processor 512 forms virtual machine, the virtual machine by the computer program in run memory 511 For executing each step in above method example.
The step of method in conjunction with described in the embodiment of the present application disclosure or algorithm, can be come real in a manner of hardware It is existing, it is also possible to execute the mode of software instruction by processor to realize.Software instruction can be (or single by corresponding software module Member) composition, software module (or unit) can be stored on random access memory (Random Access Memory, RAM), Flash memory, read-only memory (Read Only Memory, ROM), Erasable Programmable Read Only Memory EPROM (Erasable Programmable ROM, EPROM), Electrically Erasable Programmable Read-Only Memory (Electrically EPROM, EEPROM), post Storage, hard disk, mobile hard disk, CD-ROM (CD-ROM) or any other form well known in the art storage medium in. A kind of illustrative storage medium is coupled to processor, to enable a processor to from the read information, and can be to Information is written in the storage medium.Certainly, storage medium is also possible to the component part of processor.Pocessor and storage media can be with In ASIC.In addition, the ASIC can be located in physical equipment.Certainly, pocessor and storage media can also be used as discrete Component is present in physical equipment.
Those skilled in the art it will be appreciated that in said one or multiple examples, retouched by the embodiment of the present application The function of stating can be realized with hardware, software, firmware or their any combination.The embodiment of the present application also provides computers Program product, when the computer program product is performed, for realizing function provided by above method example.In addition, Above-mentioned computer program can be stored in computer-readable medium or as one or more on computer-readable medium A instruction or code are transmitted.Computer-readable medium includes computer storage media and communication media, wherein communication media Including convenient for from a place to any medium of another place transmission computer program.Storage medium can be general or special Any usable medium enough accessed with computer capacity.
It should be understood that referenced herein " multiple " refer to two or more."and/or", description association The incidence relation of object indicates may exist three kinds of relationships, for example, A and/or B, can indicate: individualism A exists simultaneously A And B, individualism B these three situations.Character "/" typicallys represent the relationship that forward-backward correlation object is a kind of "or".Make herein " first ", " second " and similar word are not offered as any sequence, quantity or importance, and are used only to distinguish Different objects.
Above-described specific embodiment carries out the purpose of the embodiment of the present application, technical scheme and beneficial effects It is further described, it should be understood that the foregoing is merely the specific embodiments of the embodiment of the present application, and does not have to In limit the embodiment of the present application protection scope, it is all on the basis of the technical solution of the embodiment of the present application, done it is any Modification, equivalent replacement, improvement etc. should all include within the protection scope of the embodiment of the present application.

Claims (14)

1. a kind of link switch-over method, which is characterized in that the described method includes:
Pass through the first service link transmission services between first virtual machine and the second virtual machine, wherein first service link It is the service link established between the first virtual network port of first virtual machine and second virtual machine, described first is virtual There are 2n-1 group intermediate physical node between machine and second virtual machine, the n is positive integer, each group of intermediate physical node Including mutual cascade 2 physical nodes, two physical internet ports of the physical equipment where first virtual machine are respectively with the 1st 2 physical nodes of group intermediate physical node have physical link, two objects of the physical equipment where second virtual machine Managing network interface has physical link with 2 physical nodes of 2n-1 group intermediate physical node respectively, as n > 1, among i-th group There is parallel physical link between physical node and i+1 group intermediate physical node and intersect physical link, wherein is described parallel The corresponding Physical Network slogan of physical link is 0, and the corresponding Physical Network slogan of the intersections physical link is 1, and the i is positive whole Number;
When detecting the business transmission abnormality, first virtual machine passes through the second virtual network port and second virtual machine Between establish the second service link;Wherein, the odd even of the network address of first virtual network port and second virtual network port Characteristic is different;
The business is switched on second service link from first service link and is transmitted by first virtual machine.
2. the method according to claim 1, wherein
The network address of first virtual network port is that the network address of even number and second virtual network port is odd number;
Alternatively,
The network address of first virtual network port is that the network address of odd number and second virtual network port is even number.
3. the method according to claim 1, wherein second virtual machine includes third virtual network port and the 4th Virtual network port, and the third virtual network port is different with the odd even characteristic of the network address of the 4th virtual network port.
4. the method according to claim 1, wherein running in physical equipment where first virtual machine has Virtual switch, the virtual switch use Source Hashing Scheduling algorithms selection physical link.
5. the method according to claim 1, wherein the physical node is using source-destination address hash scheduling Algorithms selection physical link.
6. the method according to claim 1, wherein
As n=1, there are 1 group of intermediate physical node, the intermediaries between first virtual machine and second virtual machine Managing node includes mutual cascade 2 power boards;
Alternatively,
As n=2, there are 3 groups of intermediate physical nodes between first virtual machine and second virtual machine, wherein the 1st group Intermediate physical node includes mutual cascade 2 the first power boards, and the 2nd group of intermediate physical node includes mutual cascade 2 cabinets TOR interchanger is pushed up, the 3rd group of intermediate physical node includes mutual cascade 2 the second power boards;
Alternatively,
As n=3, there are 5 groups of intermediate physical nodes between first virtual machine and second virtual machine, wherein the 1st group Intermediate physical node includes mutual cascade 2 the first power boards, and the 2nd group of intermediate physical node includes cascade 2 the mutually One TOR interchanger, the 3rd group of intermediate physical node include mutual cascade 2 column end EOR interchanger, the 4th group of intermediate physical node Including mutual cascade 2 the 2nd TOR interchangers, the 5th group of intermediate physical node includes mutual cascade 2 the second power boards.
7. a kind of link switching device, which is characterized in that described device includes:
Communication unit, for passing through the first service link transmission services between the second virtual machine, wherein first business chain Road is the service link established between the first virtual network port of first virtual machine and second virtual machine, and described first is empty There are 2n-1 group intermediate physical node between quasi- machine and second virtual machine, the n is positive integer, each group of intermediate physical section Point includes mutual cascade 2 physical nodes, two physical internet ports of the physical equipment where first virtual machine respectively with 2 physical nodes of the 1st group of intermediate physical node have physical link, two of the physical equipment where second virtual machine Physical internet ports have physical link with 2 physical nodes of 2n-1 group intermediate physical node respectively, as n > 1, in i-th group Between there is parallel physical link between physical node and i+1 group intermediate physical node and intersect physical link, wherein it is described flat The corresponding Physical Network slogan of row physical link is 0, and the corresponding Physical Network slogan of the intersections physical link is 1, and the i is positive whole Number;
Processing unit, for when detecting the business transmission abnormality, first virtual machine by the second virtual network port with The second service link is established between second virtual machine;Wherein, first virtual network port and second virtual network port The odd even characteristic of network address is different;
The communication unit is also used to the business switching to the second service link upload from first service link It is defeated.
8. device according to claim 7, which is characterized in that
The network address of first virtual network port is that the network address of even number and second virtual network port is odd number;
Alternatively,
The network address of first virtual network port is that the network address of odd number and second virtual network port is even number.
9. device according to claim 7, which is characterized in that second virtual machine includes third virtual network port and the 4th Virtual network port, and the third virtual network port is different with the odd even characteristic of the network address of the 4th virtual network port.
10. device according to claim 7, which is characterized in that run in the physical equipment where first virtual machine There is virtual switch, the virtual switch uses Source Hashing Scheduling algorithms selection physical link.
11. device according to claim 7, which is characterized in that the physical node is using source-destination address hash scheduling Algorithms selection physical link.
12. device according to claim 7, which is characterized in that
As n=1, there are 1 group of intermediate physical node, the intermediaries between first virtual machine and second virtual machine Managing node includes mutual cascade 2 power boards;
Alternatively,
As n=2, there are 3 groups of intermediate physical nodes between first virtual machine and second virtual machine, wherein the 1st group Intermediate physical node includes mutual cascade 2 the first power boards, and the 2nd group of intermediate physical node includes mutual cascade 2 cabinets TOR interchanger is pushed up, the 3rd group of intermediate physical node includes mutual cascade 2 the second power boards;
Alternatively,
As n=3, there are 5 groups of intermediate physical nodes between first virtual machine and second virtual machine, wherein the 1st group Intermediate physical node includes mutual cascade 2 the first power boards, and the 2nd group of intermediate physical node includes cascade 2 the mutually One TOR interchanger, the 3rd group of intermediate physical node include mutual cascade 2 column end EOR interchanger, the 4th group of intermediate physical node Including mutual cascade 2 the 2nd TOR interchangers, the 5th group of intermediate physical node includes mutual cascade 2 the second power boards.
13. a kind of physical equipment, which is characterized in that the physical equipment includes processor and memory, wherein
Computer program is stored in the memory;
The processor forms virtual machine by the computer program run in the memory, and the virtual machine is for executing such as The described in any item methods of the claims 1 to 6.
14. a kind of computer storage medium, which is characterized in that be stored with computer program, institute in the computer storage medium It states computer program and is performed realization such as method as claimed in any one of claims 1 to 6.
CN201711483774.4A 2017-12-29 2017-12-29 Link switching method, device and equipment Active CN109995646B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711483774.4A CN109995646B (en) 2017-12-29 2017-12-29 Link switching method, device and equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711483774.4A CN109995646B (en) 2017-12-29 2017-12-29 Link switching method, device and equipment

Publications (2)

Publication Number Publication Date
CN109995646A true CN109995646A (en) 2019-07-09
CN109995646B CN109995646B (en) 2021-10-01

Family

ID=67110029

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711483774.4A Active CN109995646B (en) 2017-12-29 2017-12-29 Link switching method, device and equipment

Country Status (1)

Country Link
CN (1) CN109995646B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI766631B (en) * 2021-03-29 2022-06-01 中華電信股份有限公司 Service function chain path switching method and computer-readable medium thereof

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100039937A1 (en) * 2007-10-31 2010-02-18 Architecture Technology Corporation Reliable transport protocol providing receiver-based congestion control
CN101783770A (en) * 2010-03-12 2010-07-21 成都市华为赛门铁克科技有限公司 Method and system for processing message, service processing board and circuit processing board
CN102868631A (en) * 2012-09-28 2013-01-09 华为技术有限公司 Load sharing method and device
CN103401781A (en) * 2013-07-18 2013-11-20 杭州华三通信技术有限公司 Access method and access device applied to TRILL (Transparent Interconnection of Lots of Links) network
US20140254352A1 (en) * 2013-03-11 2014-09-11 Dell Products L.P. System and method for rapid vlt connection failure handling
CN104753707A (en) * 2013-12-29 2015-07-01 中国移动通信集团公司 System maintenance method and network switching equipment

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100039937A1 (en) * 2007-10-31 2010-02-18 Architecture Technology Corporation Reliable transport protocol providing receiver-based congestion control
CN101783770A (en) * 2010-03-12 2010-07-21 成都市华为赛门铁克科技有限公司 Method and system for processing message, service processing board and circuit processing board
CN102868631A (en) * 2012-09-28 2013-01-09 华为技术有限公司 Load sharing method and device
US20140254352A1 (en) * 2013-03-11 2014-09-11 Dell Products L.P. System and method for rapid vlt connection failure handling
CN103401781A (en) * 2013-07-18 2013-11-20 杭州华三通信技术有限公司 Access method and access device applied to TRILL (Transparent Interconnection of Lots of Links) network
CN104753707A (en) * 2013-12-29 2015-07-01 中国移动通信集团公司 System maintenance method and network switching equipment

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI766631B (en) * 2021-03-29 2022-06-01 中華電信股份有限公司 Service function chain path switching method and computer-readable medium thereof

Also Published As

Publication number Publication date
CN109995646B (en) 2021-10-01

Similar Documents

Publication Publication Date Title
CN101485156B (en) System and method for switching traffic through a network
US9600440B2 (en) Network topology of hierarchical ring with recursive shortcuts
CN101094185A (en) Method and device for forwarding message based on multilink
La et al. Optimal routing control: Game theoretic approach
CN108111410B (en) Method and device for constructing deadlock-free route in network with Cartesian topology
Li et al. On the design and analysis of data center network architectures for interconnecting dual-port servers
Wang et al. Designing efficient high performance server-centric data center network architecture
CN107634905A (en) Data forwarding method and device in pile system
CN104639437A (en) Forwarding method and apparatus of broadcast messages in stack system
CN113630347A (en) Data transmission method, system, storage medium and equipment
CN103873367B (en) Route data grouping, method and device for determining route and fat tree network
CN102932250B (en) Non-deadlock self-adaptation routing method based on fault-tolerant computer network structure
CN109936505B (en) Method and apparatus in data-centric software-defined networks
CN1825832A (en) Ring rapid spanning tree protocol
Bogdanski Optimized routing for fat-tree topologies
CN109995646A (en) Link switch-over method, device and equipment
CN104954439A (en) Cloud server, node interconnection method thereof and cloud server system
Vignéras et al. The bxi routing architecture for exascale supercomputer
WO2008040063A1 (en) Multi-path switching networks
CN102647424B (en) Data transmission method and data transmission device
CN103179034A (en) Deadlock-free adaptive routing method
CN111817958B (en) Message forwarding method and network equipment
CN1738286A (en) Method for realizing heavy route in IP network
CN1729661A (en) Return path derivation in packet-switched networks
Manfred Circuit switching versus packet switching

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