CN108429675B - VRRP (virtual router redundancy protocol) linkage switching method and device and electronic equipment - Google Patents

VRRP (virtual router redundancy protocol) linkage switching method and device and electronic equipment Download PDF

Info

Publication number
CN108429675B
CN108429675B CN201810294972.4A CN201810294972A CN108429675B CN 108429675 B CN108429675 B CN 108429675B CN 201810294972 A CN201810294972 A CN 201810294972A CN 108429675 B CN108429675 B CN 108429675B
Authority
CN
China
Prior art keywords
vrrp
services
value
interface
field
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201810294972.4A
Other languages
Chinese (zh)
Other versions
CN108429675A (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.)
New H3C Information Technologies Co Ltd
Original Assignee
New H3C 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 New H3C Technologies Co Ltd filed Critical New H3C Technologies Co Ltd
Priority to CN201810294972.4A priority Critical patent/CN108429675B/en
Publication of CN108429675A publication Critical patent/CN108429675A/en
Application granted granted Critical
Publication of CN108429675B publication Critical patent/CN108429675B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • 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
    • 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
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/302Route determination based on requested QoS
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/58Association of routers
    • H04L45/586Association of routers of virtual routers

Abstract

The invention provides a VRRP linkage switching method, a device and electronic equipment, which are applied to a VRRP access networking containing a plurality of Virtual Routing Redundancy Protocol (VRRP) groups and relate to the technical field of communication, wherein the method comprises the following steps: firstly, if an uplink interface of a VRRP access network fails, acquiring the sum of bandwidths of non-failed uplink interfaces, and secondly, judging a plurality of services which can be simultaneously met by the sum of bandwidths, wherein it needs to be explained that the priorities of the services are all higher than those of the rest services, and then, performing master-slave switching on the VRRP group corresponding to the rest services, so that when the uplink interface fails, the master-slave switching on the VRRP group corresponding to the service with low priority is performed by measuring the VRRP access network transmission service capacity and judging the service priority, thereby avoiding the phenomenon that all services are influenced by uniformly performing master-slave switching or all services are lost without performing master-slave switching.

Description

VRRP (virtual router redundancy protocol) linkage switching method and device and electronic equipment
Technical Field
The invention relates to the technical field of communication, in particular to a VRRP linkage switching method and device and electronic equipment.
Background
Virtual Router Redundancy Protocol (VRRP) is a routing Protocol proposed by IETF for solving the single point failure phenomenon of a static gateway configured in a local area network, and can dynamically allocate the responsibility of a Virtual Router to one of VRRP routers on the local area network. As shown in fig. 1, in a typical VRRP access networking, a VRRP group is established between a VRRP1 device and a VRRP2 device, and a user accesses an outbound network through the VRRP group via a switch, generally, an uplink interface (an interface between the VRRP group and LSW 2) is deployed on the VRRP group in such a networking, and it is ensured that a primary-standby switch of the VRRP group is triggered when the uplink interface of the VRRP group fails, so that a user gateway is switched to a standby device, and further, a service can be normally switched to the standby device for operation.
However, some scene switches can be problematic: the downstream interface of the VRRP group (the interface to which the VRRP group is connected to LSW 1) enables the VRRP group, typically more than one of the VRRP groups. If there are 3 services accessing to the VRRP group, the access bandwidth of each service is 2G, and there are 3 corresponding VRRP groups, at this time, the suitable outlet of the VRRP group is an equivalent outlet formed by 2 interfaces with 3G bandwidth, so that the uplink and downlink bandwidths are equal. Taking uplink transmission as an example, an uplink outlet corresponds to three VRRP groups, and each VRRP group is associated with the same interface field and state field to perform linkage switching, so that when one or more uplink interfaces fail, either the three VRRP groups are switched or the three VRRP groups are not switched, and a corresponding result is that if the three VRRP groups are switched, all services are affected; if none of the three VRRP groups switch, all traffic may be lost.
In summary, there is no solution to the problem that when multiple VRRP groups are associated with the same uplink interface, if a certain or some of the uplink interfaces have a reduced bandwidth due to a failure, the active/standby VRRP groups cannot be effectively switched.
Disclosure of Invention
In view of this, the present invention aims to provide a method, an apparatus, and an electronic device for VRRP linkage switching, so as to improve the effectiveness of primary/standby switching of a VRRP access network in the prior art when the bandwidth of an uplink interface is reduced due to a failure.
In a first aspect, an embodiment of the present invention provides a VRRP linkage switching method, which is applied to a VRRP access network including multiple virtual routing redundancy protocol VRRP groups, and the method includes:
if the uplink interface of the VRRP access networking fails, acquiring the sum of the bandwidths of the non-failure uplink interfaces;
judging a plurality of services which can be simultaneously satisfied by the sum of the bandwidths, wherein the priorities of the services are higher than those of the rest services;
and performing active-standby switching on VRRP groups corresponding to the rest services.
With reference to the first aspect, an embodiment of the present invention provides a first possible implementation manner of the first aspect, where the determining that the sum of the bandwidths of the services can simultaneously satisfy includes:
judging whether the sum of the bandwidths can simultaneously meet the first n services with the highest priority, wherein the initial value of n is 1;
if not, judging that the services with the priority ranked at the nth bit and the lower priority are the rest services;
and if yes, adding 1 to the value of n, and returning to the judging step.
With reference to the first aspect, an embodiment of the present invention provides a second possible implementation manner of the first aspect, where the method further includes:
presetting a state observation table;
the state observation table comprises a state field and a plurality of interface fields, and the value of the interface field is related to the state of the uplink interface;
the value of the state field is related to the value of each interface field, and the value of the state field represents the VRRP group corresponding to the rest of the service.
With reference to the second possible implementation manner of the first aspect, an embodiment of the present invention provides a third possible implementation manner of the first aspect, where the method further includes:
and if the uplink interface fails, changing the value of the interface field corresponding to the failed uplink interface from the normal value to the failure value.
With reference to the second possible implementation manner of the first aspect, an embodiment of the present invention provides a fourth possible implementation manner of the first aspect, where the performing active/standby switching on the VRRP groups corresponding to the remaining services specifically includes:
acquiring the value of the state field related to the value of each current interface field;
determining a VRRP group which needs to be subjected to main-standby switching according to the value of the state field;
and performing main-standby switching on the VRRP group which needs to be subjected to the main-standby switching.
In a second aspect, an embodiment of the present invention further provides a VRRP linkage switching device, which is applied to a VRRP access network including a plurality of VRRP groups, and includes:
the acquisition module is used for acquiring the sum of the bandwidths of the uplink interfaces without faults if the uplink interfaces have faults;
the judging module is used for judging a plurality of services which can be simultaneously satisfied by the sum of the bandwidths, wherein the priorities of the services are higher than those of the rest services;
and the switching module is used for performing active-standby switching on the VRRP groups corresponding to the rest services.
With reference to the second aspect, an embodiment of the present invention provides a first possible implementation manner of the second aspect, where the determining module is specifically configured to perform the following steps:
judging whether the sum of the bandwidths can simultaneously meet the first n services with the highest priority, wherein the initial value of n is 1;
if not, judging that the services with the priority ranked at the nth bit and the lower priority are the rest services;
and if yes, adding 1 to the value of n, and returning to the judging step.
With reference to the second aspect, an embodiment of the present invention provides a second possible implementation manner of the second aspect, where the method further includes:
the setting module is used for presetting a state observation table;
the state observation table comprises a state field and a plurality of interface fields, and the value of the interface field is related to the state of the uplink interface;
the value of the state field is related to the value of each interface field, and the value of the state field represents the VRRP group corresponding to the rest of the service.
With reference to the second possible implementation manner of the second aspect, an embodiment of the present invention provides a third possible implementation manner of the second aspect, where the method further includes:
and the interface field changing module is used for changing the value of the interface field corresponding to the fault uplink interface from a normal value to a fault value if the uplink interface has faults.
With reference to the second possible implementation manner of the second aspect, an embodiment of the present invention provides a fourth possible implementation manner of the second aspect, where the switching module includes:
the status field acquisition submodule is used for acquiring the value of the status field related to the value of each current interface field;
the VRRP group determination submodule is used for determining a VRRP group which needs to be subjected to main-standby switching according to the value of the state field;
and the main/standby switching submodule is used for performing main/standby switching on the VRRP group which needs to be subjected to the main/standby switching.
In a third aspect, an embodiment of the present invention further provides an electronic device, including a memory and a processor, where the memory stores a computer program operable on the processor, and the processor implements any one of the methods when executing the computer program.
In a fourth aspect, the present invention also provides a computer-readable medium having non-volatile program code executable by a processor, where the program code causes the processor to execute the method described in any one of the above.
The embodiment of the invention has the following beneficial effects:
in the VRRP linkage switching method, apparatus, and electronic device provided by the present application, the VRRP linkage switching method includes a VRRP access network of a plurality of virtual router redundancy protocol VRRP groups, and specifically includes: if the uplink interface of the VRRP access network fails, acquiring the bandwidth sum of the non-failure uplink interface, and then judging a plurality of services which can be simultaneously met by the bandwidth sum, wherein the priorities of the services are higher than those of the rest services, so that the master-slave switching is performed on the VRRP group corresponding to the rest services after the judgment. Because a plurality of VRRP groups are simultaneously connected in the VRRP access network, when a certain uplink interface has a fault, the capacity of the VRRP access network for transmitting services is measured by judging the sum of the bandwidths of the non-fault uplink interfaces, and the services are divided into the plurality of services and the rest services by comparing the priorities corresponding to the services, wherein the priorities of the plurality of services are all higher than the priorities of the rest services, so that the VRRP groups corresponding to the rest services are subjected to active-standby switching, and through the processing, the VRRP groups can be subjected to the effective active-standby switching under the condition that the bandwidths of the uplink interfaces are reduced due to the fault, so that the services with higher priorities (namely, a plurality of services) can be effectively guaranteed, the services with lower priorities (namely, the rest services) can be guaranteed after the active-standby switching, and the influence on all services caused by the uniform active-standby switching when the uplink interfaces have faults in the prior art is avoided, the phenomenon of packet loss of all services can occur when the main/standby switching is not performed.
Additional features and advantages of the disclosure will be set forth in the description which follows, or in part may be learned by the practice of the above-described techniques of the disclosure, or may be learned by practice of the disclosure.
In order to make the aforementioned objects, features and advantages of the present disclosure more comprehensible, preferred embodiments accompanied with figures are described in detail below.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and other drawings can be obtained by those skilled in the art without creative efforts.
Fig. 1 is a diagram of VRRP access networking in the prior art;
fig. 2 is a first flowchart of a VRRP linkage switching method according to an embodiment of the present invention;
fig. 3 is a second flowchart of a VRRP linkage switching method according to an embodiment of the present invention;
fig. 4 is a structural connection diagram of the VRRP linkage switching device according to the embodiment of the present invention.
Icon: 1-an acquisition module; 2-a judging module; and 3, switching the module.
Detailed Description
To make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings, and it is apparent that the described embodiments are some, but not all embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
At present, in a VRRP access networking, when a user initiates network access to the outside, if an uplink interface fails, a VRRP group needs to be triggered to perform active/standby switching, so that a user gateway service is switched to a standby device, and the service can run normally. However, there are problems with the active-standby switching in some scenarios: generally, a VRRP access network generally has more than one VRRP group. If three services are simultaneously accessed to the VRRP access network, assuming that the access bandwidth of each service is two G, three corresponding VRRP groups are provided, at this time, the uplink interface adapted to the VRRP group is an equivalent outlet formed by two interfaces with the bandwidth of 3G, that is, the uplink interface corresponds to the three VRRP groups, and each VRRP group is associated with the same state of the uplink interface to perform linkage switching. However, in the current implementation process, either three VRRP groups are switched, and all services are affected at this time; or three VRRP groups are not switched, and all traffic may be lost.
Based on this, the VRRP linkage switching method, the VRRP linkage switching device and the electronic device provided by the embodiments of the present invention can conveniently and effectively implement active/standby switching of the VRRP access network when the bandwidth of the uplink interface is reduced.
To facilitate understanding of the embodiment, a detailed description will be given to a VRRP linkage switching method disclosed in the embodiment of the present invention.
Example 1
The embodiment of the invention provides a VRRP linkage switching method.
In accordance with an embodiment of the present invention, a more detailed embodiment of a VRRP linkage switching method is provided, it should be noted that the steps illustrated in the flowchart of the accompanying drawings may be performed in a computer system such as a set of computer executable instructions, and that while a logical order is illustrated in the flowchart, in some cases the steps illustrated or described may be performed in an order different than here.
Referring to fig. 2, the VRRP linkage switching method provided in this embodiment is applied to a VRRP access network including a plurality of virtual router redundancy protocol VRRP groups, and specifically includes the following steps:
step S101: and if the uplink interface of the VRRP access networking fails, acquiring the sum of the bandwidths of the non-failure uplink interfaces.
Step S102: and judging a plurality of services which can be simultaneously satisfied by the sum of the bandwidths, wherein the priorities of the services are higher than those of the rest services.
Step S103: and performing active-standby switching on VRRP groups corresponding to the rest services.
In summary, the VRRP linkage switching method provided in this embodiment is applied to a VRRP access network including multiple VRRP groups, and includes: firstly, if an uplink interface of a VRRP access networking fails, acquiring the sum of bandwidths of non-failed uplink interfaces, measuring the capacity of the VRRP access networking for transmitting services by the sum of the bandwidths, then, judging a plurality of services which can be simultaneously met by the sum of the bandwidths, wherein the priorities of the services are higher than those of the rest services, namely, the services are divided into the services and the rest services according to the priorities, then, performing master-slave switching on the VRRP groups corresponding to the rest services (i.e. the services with lower priorities), and through the processing process, when the uplink interface of the VRRP access networking fails, only performing master-slave switching on the VRRP groups corresponding to the services with lower priorities, so that not only the services with higher priorities are ensured to be continuously processed on the master device, but also the services with lower priorities are ensured to be not influenced on the master-slave device after the master-slave switching, the processing procedure improves the phenomenon that all VRRP groups are switched between the main and standby modes or are not switched in the prior art, realizes effective switching of the VRRP groups, and is convenient and quick.
Example 2
The embodiment of the invention provides a VRRP linkage switching method.
In accordance with an embodiment of the present invention, a more detailed embodiment of a VRRP linkage switching method is provided, it should be noted that the steps illustrated in the flowchart of the accompanying drawings may be performed in a computer system such as a set of computer executable instructions, and that while a logical order is illustrated in the flowchart, in some cases the steps illustrated or described may be performed in an order different than here.
Referring to fig. 2 and fig. 3, the VRRP linkage switching method provided in this embodiment is applied to a VRRP access network including a plurality of virtual router redundancy protocol VRRP groups, and specifically includes the following steps:
step S101: and if the uplink interface of the VRRP access networking fails, acquiring the sum of the bandwidths of the non-failure uplink interfaces.
It should be noted that the non-failure uplink interface and the failure uplink interface are both uplink interfaces connected to the VRRP access networking, and since the VRRP access networking includes a plurality of VRRP groups, the number of corresponding uplink interfaces is plural. When one uplink interface fails, acquiring the sum of the bandwidths of all the non-failure uplink interfaces except the uplink interface; and when two uplink interfaces have faults, acquiring the sum of the bandwidths of all the non-fault uplink interfaces except the two uplink interfaces, and so on.
Step S102: and judging a plurality of services which can be simultaneously satisfied by the sum of the bandwidths, wherein the priorities of the services are higher than those of the rest services.
Because the VRRP access networking comprises a plurality of VRRP groups, the corresponding accessed services can be various, and the priority of the various services is preset from high to low. When an uplink interface fails, comparing the sum of the bandwidths with the access bandwidth occupied by the services with the priorities from high to low, judging the services which can be simultaneously met by the sum of the bandwidths, and effectively screening a plurality of services with higher priorities and the rest services with lower priorities through the operation.
In the implementation process, the step S102 determines, according to the order from high to low of the service priority, a service that the sum of bandwidths can be simultaneously satisfied, and specifically includes:
step S1021: and a judging step, namely judging a plurality of services which can be simultaneously satisfied by the sum of the bandwidths, wherein the priorities of the services are higher than those of the rest services.
Where n has an initial value of 1, i.e. starting from the first 1 service with the highest priority. If not, go to step S1022; if yes, proceed to step S1023.
Namely, the state observation table is updated by the judgment. And if the uplink interface fails, changing the value of the interface field corresponding to the failed uplink interface from the normal value to the failure value.
Supposing that a failure occurs on the uplink interface D, at this time, the state of the state observation table needs to be switched, that is, the interface field of the uplink interface D is changed from UP to DOMN, at this time, the interface with the state UP in the state observation table has only E and F, and the sum of the bandwidths of the interfaces is 4G. Judging whether the sum of the bandwidths can simultaneously satisfy the first n services with the highest priority, wherein the sum of the bandwidths (namely 4G) needs to be compared with the sum of the access bandwidths of the service A, B, C, and the comparison sequence from the high-priority service to the next is as follows:
e + F ═ 4G > C ═ 1G, so the bandwidth of the highest priority C service can be effectively guaranteed, and continue to compare;
e + F ═ 4G > B + C ═ 3G, so the sum of the highest priority service C and the second best priority service B can also be effectively guaranteed, and continue to compare;
and E + F is 4G < A + B + C is 6G, and the bandwidth is insufficient when the three services exist simultaneously. The reason is that the service a with lower priority is added at the time of comparison.
Step S1022: and judging that the services with the priority ranked at the nth bit and the lower priority are all the residual services.
That is, corresponding to the above-mentioned operation procedure that E + F is 4G < a + B + C is 6G, and in this case, when three services exist simultaneously, the bandwidth is insufficient.
In this case, the service a with the 3 rd priority is determined as the remaining service, and it is determined that the service with the lowest priority needs to be subjected to VRRP handover.
Step S1023: and adding 1 to the value of n, and returning to the judging step.
And returning to the step S1021, and continuously judging whether the sum of the bandwidths can simultaneously meet the first n services with the highest priority.
That is, the bandwidth of the C service with the highest priority can be effectively guaranteed since the E + F is equal to 4G > C is equal to 1G, and the comparison is continued; and E + F ═ 4G > B + C ═ 3G, so the sum of the highest priority service C and the second priority service B can be effectively guaranteed, and the operation step of the next comparison is continued.
In step S103, the main/standby switching is performed on the VRRP groups corresponding to the remaining services, which specifically includes:
continuing with the above example, based on the value of the status field, the value of the status field is 1, and the VRRP group of the remaining service is determined to be the VRRP group corresponding to service a.
And then, performing active-standby switching on the VRRP groups corresponding to the rest services, namely performing active-standby switching on the VRRP group corresponding to the service A.
Continuing with the above example, similarly, when the E-exit fails again, step S1021 is executed again: a comparison is made according to the description of the method above,
f ═ 2G > C ═ 1G, so the bandwidth of the highest priority C service can be effectively guaranteed, and continue to compare;
f is 2G and B + C is 3G, and at this time, the sum of the highest priority service C and the second best priority service B cannot be effectively guaranteed, and the bandwidth is insufficient. The reason is that the sub-optimal priority service B is added to the comparison.
Step S1022 is executed again: in this case, service a and service B are the remaining services, and the interface fields of both service a and service B are changed to DOWN. And updating the initial value 100 of the state field of the service B in the state observation table to the configuration 2 of the VRRP group corresponding to the service B.
And informing the VRRP group to switch after the state of the state observation table is changed, wherein because Status is 2, the service A is switched and the switching-back condition is not triggered to keep the current state, the service B is in accordance with the switching condition to trigger VRRP switching, and the corresponding VRRP group is not switched if the service C is not in accordance with the switching condition.
Similarly, when the F outlet fails again, step S1021 is executed again: a comparison is made according to the description of the method above,
since 0G < C is 1G, the bandwidth of the highest priority C service cannot be effectively guaranteed, and the bandwidth is insufficient.
Step S1022 is executed again: in this case, service a, service B, and service C are the remaining services, and the interface fields of service a, service B, and service C are all changed to DOWN. And updating the initial value 100 of the state field of the service B in the state observation table to be the configuration 3 of the VRRP group corresponding to the service C.
Step S103: and performing active-standby switching on VRRP groups corresponding to the rest services.
After the service that can be satisfied by the sum of the bandwidths at the same time is determined in step S102, the remaining service, i.e., the remaining service, that is, the service remaining from the sum of the bandwidths is also determined at the same time. Under the condition, the VRRP groups corresponding to the rest services are selected to carry out the main-standby switching, so that the main-standby switching of the specific VRRP groups is pertinently realized, the rest services are switched to the standby equipment, and the normal operation of the services on the standby equipment is further ensured.
In order to monitor the state of the uplink interface in real time, the VRRP linkage switching method further includes: and a state observation table is preset, and in order to facilitate the state monitoring of each service, a virtual observation group is established for each service on the equipment. For example, in a VRRP access networking, three services A, B, C exist in a downlink access, corresponding bandwidths are 3G, 2G, and 1G, respectively, and priorities are C, B, A from high to low. The upstream interfaces have equivalent outlets D, E, F, each with a bandwidth of 2G, and the upstream interface D, E, F is added to the virtual observation group, while the downstream traffic A, B, C is added to the virtual observation group according to its respective traffic priority.
And, the state observation table includes a state field and a plurality of interface fields, and the value of the interface field is related to the state of the uplink interface. Continuing the description of the above example, since all of the D, E, F are uplink interfaces, all of the values of the interface field D, E, F are UP, and in the implementation process, the number of the interface field may be expanded according to the number of the added uplink interfaces; the status field is specifically determined according to the bandwidth of each uplink interface and the sum of the interface bandwidths of the VRRP group linked with the virtual observation group.
The values of the status fields are related to the values of the interface fields, and the values of the status fields represent the VRRP groups corresponding to the remaining services. Specifically, the following relationship is established between the value of the status field and the value of each interface field, and the configuration of the VRRP group corresponding to the downlink service A, B, C is as follows:
VRRP A track watch1 status 1
VRRP B track watch1 status 2
VRRP C track watch1 status 3
the value of the status field represents the VRRP group corresponding to the remaining service, and it is shown from the above configuration that when only one of the upstream interfaces D, E, F has a failure, the service a needs to be switched between the master and the slave; when only one uplink interface fails, the service A needs to be switched between the main service and the standby service; when two uplink interfaces fail, the services A and B need to be switched between the main and standby; the service A needs to be switched between the main service and the standby service; when there are three uplink interface failures, the services A, B and C need to be switched between master and slave, so as to ensure that the sum of the bandwidths of the uplink interfaces on the master device is greater than the sum of the bandwidths of the services that need to be processed, and the services that cannot be satisfied on the master device are handed over to the slave device for processing.
In the implementation process, the state field and the plurality of interface fields of each uplink interface are given initial values to indicate the current state of each uplink interface. In the initial state, the state observation table of the upstream interface D, E, F is set as follows:
TABLE 1
Index Watch D type E type F type Status
1 watch1 UP UP UP 100
Here, it should be noted that, before the master-slave switching of the VRRP group, a default value is set for the value of the state field, where the default value is greater than the value of the state field corresponding to the highest priority service of the service, as shown in table 1, the size of the default value may be flexibly customized according to needs, in this embodiment, as shown in table 1 above, the state value, i.e., the status value, is 100, and is greater than the status values 1, 2, and 3 of the VRRP group corresponding to the service A, B, C, so that none of the three services A, B, C triggers the master-slave switching of the VRRP group.
Corresponding to the case where the service a is the remaining service in step 1022. And updating the initial value 100 of the state field of the service A in the state observation table to be the configuration 1 of the VRRP group corresponding to the service A.
The state observation table at this time is as follows:
TABLE 2
Index Watch D type E type F type Status
1 watch1 DOWN UP UP 1
Here, it should be noted that, before the VRRP group performs the active/standby switching, a default value is set for the value of the status field, and when the service a is the remaining service, the value of the status field related to the value of each current interface field is obtained, as shown in table 2 above, the value of the status field of the VRRP group corresponding to the service a is 1, so the VRRP group corresponding to the service a performs the active/standby switching.
In step S103, the main/standby switching is performed on the VRRP groups corresponding to the remaining services, which specifically includes:
continuing with the above example, based on the value of the status field, the value of the status field is 1, and the VRRP group of the remaining service is determined to be the VRRP group corresponding to service a.
And then, performing active-standby switching on the VRRP groups corresponding to the rest services, namely performing active-standby switching on the VRRP group corresponding to the service A.
Corresponding to the service a and the service B being the remaining services in the above step 1022, the interface fields of both the service a and the service B are changed to DOWN. And updating the initial value 100 of the state field of the service B in the state observation table to the configuration 2 of the VRRP group corresponding to the service B.
The state observation table at this time is as follows:
TABLE 3
Index Watch D type E type F type Status
1 watch1 DOWN DOWN UP 2
Here, it should be noted that, before the primary/standby switching of the VRRP group is performed, a default value is set for the value of the status field, and in the case that the services a and B are the remaining services, the value of the status field related to the value of each current interface field is obtained, as shown in table 3 above, the value of the status field of the VRRP group corresponding to the services a and B is 2, so that the VRRP groups corresponding to the services a and B are both subjected to the primary/standby switching.
And informing the VRRP group to switch after the state of the state observation table is changed, wherein because Status is 2, the service A is switched and the switching-back condition is not triggered to keep the current state, the service B is in accordance with the switching condition to trigger VRRP switching, and the service C is not switched if the service C is not in accordance with the switching condition.
Corresponding to the case where the service C is the remaining service in step 1022. And updating the initial value 100 of the state field of the service C in the state observation table to be the configuration 3 of the VRRP group corresponding to the service C.
The state observation table at this time is as follows:
TABLE 4
Index Watch D type E type F type Status
1 watch1 DOWN DOWN DOWN 3
Here, it should be noted that, before the primary/standby switching of the VRRP group is performed, a default value is set for the value of the status field, and in the case that the services A, B and C are the remaining services, the value of the status field related to the value of each current interface field is obtained, as shown in table 4 above, the value of the status field of the VRRP group corresponding to the service A, B and C is 3, so that the VRRP groups corresponding to the services A, B and C both perform the primary/standby switching.
And after the state of the state observation table is changed, informing the VRRP group to switch, wherein because Status is 3, the services A and B are switched, and the switching-back condition is not triggered to keep the current situation, and the service C meets the switching condition to trigger the switching of the VRRP group.
In addition, the VRRP linkage switching method further includes: and if the uplink interface fails, changing the value of the interface field corresponding to the failed uplink interface from the normal value to the failure value. For example, when the upstream interface D fails, the value of the interface field is changed from the original UP to DOWN; when the uplink interface E also fails, the value of the interface field is also changed from the original UP to DOWN, etc. Through the change of the state, related workers can know the running condition of the uplink interface in time, and the method is convenient and fast.
In addition, the VRRP linkage switching method further includes: after the fault of the uplink interface is repaired, the process that the VRRP group performs the main/standby switching back is the reverse process of the main/standby switching, namely the service switching back is performed according to the value of the state field.
In summary, the VRRP linkage switching method provided in this embodiment is applied to a VRRP access network including a plurality of VRRP groups, and includes: firstly, if the uplink interface of the VRRP access networking is failed, acquiring the bandwidth sum of the non-failed uplink interface, secondly, judging a plurality of services which can be simultaneously met by the bandwidth sum, wherein the priorities of the services are all higher than those of the rest services, then, carrying out active/standby switching on the VRRP group corresponding to the rest services, and in order to facilitate the effective switching of the VRRP group, also presetting a state observation table, establishing a state field and a plurality of interface fields in the state observation table, updating the state field and the interface fields in real time after the judgment, determining the VRRP group which needs to be subjected to the active/standby switching according to the value of the state field, and by the processing method, the effective active/standby switching of the VRRP group can be carried out in the VRRP access networking under the condition that the bandwidth of the uplink interface is reduced, namely, by the setting of the state field and the interface field in the state observation table, the method simply, conveniently and efficiently records the measurement condition of the VRRP access networking transmission service capability and the judgment condition of the service priority level, so that the VRRP group corresponding to the service with the low priority level is switched between the master and the slave, the method is convenient and rapid, and the real-time performance of the service is ensured on the premise of not influencing the service.
Example 3
The embodiment of the invention provides a VRRP linkage switching device. The VRRP linkage switching device is mainly used for executing the VRRP linkage switching method provided in the above-mentioned embodiment of the present invention, and the VRRP linkage switching device provided in the embodiment of the present invention is specifically described below.
Referring to fig. 4, the present embodiment provides a VRRP linkage switching device, which is applied to a VRRP access network including a plurality of VRRP groups, and includes:
the device comprises an acquisition module 1, a processing module and a control module, wherein the acquisition module is used for acquiring the sum of bandwidths of non-fault uplink interfaces if the uplink interfaces have faults;
the judging module 2 is used for judging a plurality of services which can be simultaneously satisfied by the sum of bandwidths, wherein the priorities of the services are higher than those of the rest services;
and the switching module 3 is used for performing active-standby switching on the VRRP groups corresponding to the rest services.
The judging module 2 is specifically configured to perform the following steps:
judging whether the sum of the bandwidths can simultaneously meet the first n services with the highest priority, wherein the initial value of n is 1;
if not, judging that the services with the priority ranked at the nth bit and the lower priority are the rest services;
if yes, adding 1 to the value of n, and returning to the judging step.
In addition, the VRRP linkage switching device also comprises a setting module which is used for presetting a state observation table;
the state observation table comprises a state field and a plurality of interface fields, and the value of the interface field is related to the state of the uplink interface;
the value of the status field is related to the value of each interface field, and the value of the status field characterizes the VRRP group corresponding to the remaining traffic.
In addition, the VRRP interlock switching device further includes:
and the interface field changing module is used for changing the value of the interface field corresponding to the fault uplink interface from a normal value to a fault value if the uplink interface has faults.
The above-mentioned switching module includes:
the status field acquisition submodule is used for acquiring the value of the status field related to the value of each current interface field;
the VRRP group determination submodule is used for determining a VRRP group which needs to be subjected to main-standby switching according to the value of the state field;
and the main/standby switching submodule is used for performing main/standby switching on the VRRP group which needs to be subjected to the main/standby switching.
The VRRP linkage switching device provided by the embodiment of the present invention has the same technical characteristics as the VRRP linkage switching method provided by the above embodiment, so that the same technical problems can be solved, and the same technical effects can be achieved.
Example 5
An electronic device comprising a memory and a processor, the memory having stored therein a computer program operable on the processor, the processor implementing the method of any one of the preceding claims when executing the computer program.
Furthermore, the present embodiments also provide a computer-readable medium having non-volatile program code executable by a processor, the program code causing the processor to perform any of the methods described above.
In addition, in the description of the embodiments of the present invention, unless otherwise explicitly specified or limited, the terms "mounted," "connected," and "connected" are to be construed broadly, e.g., as meaning either a fixed connection, a removable connection, or an integral connection; can be mechanically or electrically connected; they may be connected directly or indirectly through intervening media, or they may be interconnected between two elements. The specific meanings of the above terms in the present invention can be understood in specific cases to those skilled in the art.
In the description of the present invention, it should be noted that the terms "center", "upper", "lower", "left", "right", "vertical", "horizontal", "inner", "outer", etc., indicate orientations or positional relationships based on the orientations or positional relationships shown in the drawings, and are only for convenience of description and simplicity of description, but do not indicate or imply that the device or element being referred to must have a particular orientation, be constructed and operated in a particular orientation, and thus, should not be construed as limiting the present invention. Furthermore, the terms "first," "second," and "third" are used for descriptive purposes only and are not to be construed as indicating or implying relative importance.
The method, the apparatus, and the computer program product for processing a residual table entry provided in the embodiments of the present invention include a computer-readable storage medium storing a non-volatile program code executable by a processor, where instructions included in the program code may be used to execute the method described in the foregoing method embodiments, and specific implementation may refer to the method embodiments, and will not be described herein again.
It is clear to those skilled in the art that, for convenience and brevity of description, the specific working processes of the above-described systems, apparatuses and units may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the embodiments provided in the present invention, it should be understood that the disclosed system, apparatus and method may be implemented in other ways. The above-described embodiments of the apparatus are merely illustrative, and for example, the division of the units is only one logical division, and there may be other divisions when actually implemented, and for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection of devices or units through some communication interfaces, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit.
The functions, if implemented in the form of software functional units and sold or used as a stand-alone product, may be stored in a non-volatile computer-readable storage medium executable by a processor. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
Finally, it should be noted that: the above-mentioned embodiments are only specific embodiments of the present invention, which are used for illustrating the technical solutions of the present invention and not for limiting the same, and the protection scope of the present invention is not limited thereto, although the present invention is described in detail with reference to the foregoing embodiments, those skilled in the art should understand that: any person skilled in the art can modify or easily conceive the technical solutions described in the foregoing embodiments or equivalent substitutes for some technical features within the technical scope of the present disclosure; such modifications, changes or substitutions do not depart from the spirit and scope of the embodiments of the present invention, and they should be construed as being included therein. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.

Claims (12)

1. A VRRP linkage switching method is characterized in that the method is applied to VRRP access networking containing a plurality of Virtual Route Redundancy Protocol (VRRP) groups, and the method comprises the following steps:
if the uplink interface of the VRRP access networking fails, acquiring the sum of the bandwidths of the non-failure uplink interfaces; the uplink interface is an interface for connecting the VRRP access network with the LSW;
judging a plurality of services which can be simultaneously satisfied by the sum of the bandwidths, wherein the priorities of the services are higher than those of the rest services;
and performing active-standby switching on VRRP groups corresponding to the rest services.
2. The method according to claim 1, wherein the determining the services that the sum of the bandwidths can satisfy at the same time specifically includes:
judging whether the sum of the bandwidths can simultaneously meet the first n services with the highest priority, wherein the initial value of n is 1;
if not, judging that the services with the priority ranked at the nth bit and the lower priority are the rest services;
and if yes, adding 1 to the value of n, and returning to the judging step.
3. The method of claim 1, further comprising:
presetting a state observation table;
the state observation table comprises a state field and a plurality of interface fields, and the value of the interface field is related to the state of the uplink interface;
the value of the state field is related to the value of each interface field, and the value of the state field represents the VRRP group corresponding to the rest of the service.
4. The method of claim 3, further comprising:
and if the uplink interface fails, changing the value of the interface field corresponding to the failed uplink interface from the normal value to the failure value.
5. The method according to claim 3, wherein the performing active/standby switching on the VRRP groups corresponding to the remaining services specifically includes:
acquiring the value of the state field related to the value of each current interface field;
determining a VRRP group which needs to be subjected to main-standby switching according to the value of the state field;
and performing main-standby switching on the VRRP group which needs to be subjected to the main-standby switching.
6. A VRRP linkage switching device is characterized in that the VRRP linkage switching device is applied to a VRRP access networking containing a plurality of VRRP groups, and comprises:
the acquisition module is used for acquiring the sum of the bandwidths of the uplink interfaces without faults if the uplink interfaces have faults; the uplink interface is an interface for connecting the VRRP access network with the LSW;
the judging module is used for judging a plurality of services which can be simultaneously satisfied by the sum of the bandwidths, wherein the priorities of the services are higher than those of the rest services;
and the switching module is used for performing active-standby switching on the VRRP groups corresponding to the rest services.
7. The apparatus according to claim 6, wherein the determining module is specifically configured to perform the following steps:
judging whether the sum of the bandwidths can simultaneously meet the first n services with the highest priority, wherein the initial value of n is 1;
if not, judging that the services with the priority ranked at the nth bit and the lower priority are the rest services;
and if yes, adding 1 to the value of n, and returning to the judging step.
8. The apparatus of claim 6, further comprising:
the setting module is used for presetting a state observation table;
the state observation table comprises a state field and a plurality of interface fields, and the value of the interface field is related to the state of the uplink interface;
the value of the state field is related to the value of each interface field, and the value of the state field represents the VRRP group corresponding to the rest of the service.
9. The apparatus of claim 8, further comprising:
and the interface field changing module is used for changing the value of the interface field corresponding to the fault uplink interface from a normal value to a fault value if the uplink interface has faults.
10. The apparatus of claim 8, wherein the switching module comprises:
the status field acquisition submodule is used for acquiring the value of the status field related to the value of each current interface field;
the VRRP group determination submodule is used for determining a VRRP group which needs to be subjected to main-standby switching according to the value of the state field;
and the main/standby switching submodule is used for performing main/standby switching on the VRRP group which needs to be subjected to the main/standby switching.
11. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the method of any one of claims 1-5 when executing the computer program.
12. A computer-readable medium having non-volatile program code executable by a processor, wherein the program code causes the processor to perform the method of any of claims 1-5.
CN201810294972.4A 2018-03-30 2018-03-30 VRRP (virtual router redundancy protocol) linkage switching method and device and electronic equipment Active CN108429675B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810294972.4A CN108429675B (en) 2018-03-30 2018-03-30 VRRP (virtual router redundancy protocol) linkage switching method and device and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810294972.4A CN108429675B (en) 2018-03-30 2018-03-30 VRRP (virtual router redundancy protocol) linkage switching method and device and electronic equipment

Publications (2)

Publication Number Publication Date
CN108429675A CN108429675A (en) 2018-08-21
CN108429675B true CN108429675B (en) 2021-10-12

Family

ID=63160370

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810294972.4A Active CN108429675B (en) 2018-03-30 2018-03-30 VRRP (virtual router redundancy protocol) linkage switching method and device and electronic equipment

Country Status (1)

Country Link
CN (1) CN108429675B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111385170B (en) * 2020-03-18 2021-06-11 杭州迪普科技股份有限公司 Interface state synchronization system and method thereof
CN111917639A (en) * 2020-08-06 2020-11-10 平安科技(深圳)有限公司 VRRP and service interface linkage method, device and system, and storage device
CN114125912B (en) * 2021-10-27 2023-09-29 中盈优创资讯科技有限公司 Method and device for locating packet loss fault of 5G private line service
CN116170383A (en) * 2023-02-08 2023-05-26 广州汇电云联数科能源有限公司 Energy storage power station communication networking method, device, equipment and storage medium

Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1482769A (en) * 2002-09-13 2004-03-17 华为技术有限公司 Master-standby switching and load sharing system and method based on Ethernet access platform
CN1997029A (en) * 2006-12-28 2007-07-11 华为技术有限公司 A system and device for load sharing in the primary and slave access mode
CN101488918A (en) * 2009-01-09 2009-07-22 杭州华三通信技术有限公司 Multi-network card server access method and system
CN101588304A (en) * 2009-06-30 2009-11-25 杭州华三通信技术有限公司 Implementation method of VRRP
CN101645797A (en) * 2009-08-25 2010-02-10 华为技术有限公司 Automatic protective switching method, equipment and system
CN101707570A (en) * 2009-12-17 2010-05-12 杭州华三通信技术有限公司 Load balancing method and equipment in VRRP scene
CN102571612A (en) * 2012-03-07 2012-07-11 杭州华三通信技术有限公司 Virtual router redundancy protocol (VRRP) state switching method and three-layer exchange equipment
CN103684811A (en) * 2012-08-31 2014-03-26 中兴通讯股份有限公司 Service protection method and system of composite link
CN105790995A (en) * 2014-12-26 2016-07-20 中国移动通信集团辽宁有限公司 Automatic business switching method and device
CN106301536A (en) * 2015-05-11 2017-01-04 华为技术有限公司 A kind of EPON pretection switch method, Apparatus and system
CN106533811A (en) * 2016-12-30 2017-03-22 中国电子科技集团公司第三十四研究所 SDH (Synchronous Digital Hierarchy) based redundant communication system and redundancy protection method thereof
CN107592259A (en) * 2017-09-21 2018-01-16 烽火通信科技股份有限公司 A kind of flow switch method in VRRP protections scene

Family Cites Families (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1852141A (en) * 2005-08-16 2006-10-25 华为技术有限公司 Method for realizing upward link back-up
CN100479434C (en) * 2005-09-15 2009-04-15 华为技术有限公司 Method and system for realizing virtual router redundant protocol master and standby equipment switching
CN102469018B (en) * 2010-11-18 2016-01-20 中兴通讯股份有限公司 Priority facility implementation method and device in Virtual Router Redundancy Protocol backup group
CN102263699B (en) * 2011-08-15 2014-12-24 杭州华三通信技术有限公司 Load balancing implementation method and device applied to MPLS TP (multiprotocol label switch transport profile)
CN103581014B (en) * 2012-07-20 2018-02-06 中兴通讯股份有限公司 VRRP routers dynamic adjusting method and device
CN103560955B (en) * 2013-10-24 2016-09-28 华为技术有限公司 Redundance unit changing method and device
US9588850B2 (en) * 2014-10-30 2017-03-07 Aruba Networks, Inc. Network controller failover request to reduce network outages
CN105119822A (en) * 2015-09-08 2015-12-02 烽火通信科技股份有限公司 Backup group management method and system based on VRRP (Virtual Router Redundancy Protocol)
CN106332141A (en) * 2016-09-13 2017-01-11 杭州华三通信技术有限公司 Flow load sharing method and flow load sharing device

Patent Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1482769A (en) * 2002-09-13 2004-03-17 华为技术有限公司 Master-standby switching and load sharing system and method based on Ethernet access platform
CN1997029A (en) * 2006-12-28 2007-07-11 华为技术有限公司 A system and device for load sharing in the primary and slave access mode
CN101488918A (en) * 2009-01-09 2009-07-22 杭州华三通信技术有限公司 Multi-network card server access method and system
CN101588304A (en) * 2009-06-30 2009-11-25 杭州华三通信技术有限公司 Implementation method of VRRP
CN101645797A (en) * 2009-08-25 2010-02-10 华为技术有限公司 Automatic protective switching method, equipment and system
CN101707570A (en) * 2009-12-17 2010-05-12 杭州华三通信技术有限公司 Load balancing method and equipment in VRRP scene
CN102571612A (en) * 2012-03-07 2012-07-11 杭州华三通信技术有限公司 Virtual router redundancy protocol (VRRP) state switching method and three-layer exchange equipment
CN103684811A (en) * 2012-08-31 2014-03-26 中兴通讯股份有限公司 Service protection method and system of composite link
CN105790995A (en) * 2014-12-26 2016-07-20 中国移动通信集团辽宁有限公司 Automatic business switching method and device
CN106301536A (en) * 2015-05-11 2017-01-04 华为技术有限公司 A kind of EPON pretection switch method, Apparatus and system
CN106533811A (en) * 2016-12-30 2017-03-22 中国电子科技集团公司第三十四研究所 SDH (Synchronous Digital Hierarchy) based redundant communication system and redundancy protection method thereof
CN107592259A (en) * 2017-09-21 2018-01-16 烽火通信科技股份有限公司 A kind of flow switch method in VRRP protections scene

Also Published As

Publication number Publication date
CN108429675A (en) 2018-08-21

Similar Documents

Publication Publication Date Title
CN108429675B (en) VRRP (virtual router redundancy protocol) linkage switching method and device and electronic equipment
CN112868206B (en) Method, system and computer readable medium for providing service broker functionality
US10938710B2 (en) Protection switching method and system, and network device
EP3627767A1 (en) Fault processing method and device for nodes in cluster
CN109344014B (en) Main/standby switching method and device and communication equipment
US20090046733A1 (en) Virtual network architecture for space data processing
US20160134467A1 (en) Method and apparatus for switching between master device and backup device
CN112491700B (en) Network path adjustment method, system, device, electronic equipment and storage medium
CN107659426B (en) Method for allocating physical resources and network side equipment
CN109660624B (en) Planning method, server and storage medium for content distribution network resources
CN113364618B (en) Power grid monitoring system master-slave equipment anti-error switching method based on penalty coefficient rule
CN106797319B (en) Network service aware router and application thereof
EP3800843A1 (en) Network optimization method and system, and network device
CN112583708B (en) Connection relation control method and device and electronic equipment
CN109088822B (en) Data flow forwarding method, device, system, computer equipment and storage medium
US10216593B2 (en) Distributed processing system for use in application migration
US11695856B2 (en) Scheduling solution configuration method and apparatus, computer readable storage medium thereof, and computer device
EP3270542B1 (en) Management apparatus, network management method, and storage medium storing program
CN107528724B (en) Optimization processing method and device for node cluster
US10382301B2 (en) Efficiently calculating per service impact of ethernet ring status changes
JP2015138425A (en) System management server and control method
JP6015056B2 (en) Network management system, network management method, network monitoring system, and network management program
JP4344768B2 (en) Path route calculating apparatus, method, and program
CN114490195A (en) Service takeover method, device, storage medium and electronic device
CN117499205B (en) Method, device, equipment and medium for binding disaster recovery of storage system port

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
TR01 Transfer of patent right

Effective date of registration: 20230607

Address after: 310052 11th Floor, 466 Changhe Road, Binjiang District, Hangzhou City, Zhejiang Province

Patentee after: H3C INFORMATION TECHNOLOGY Co.,Ltd.

Address before: 310052 Changhe Road, Binjiang District, Hangzhou, Zhejiang Province, No. 466

Patentee before: NEW H3C TECHNOLOGIES Co.,Ltd.

TR01 Transfer of patent right