CN116192739A - VRRP expansion method and device - Google Patents

VRRP expansion method and device Download PDF

Info

Publication number
CN116192739A
CN116192739A CN202111425405.6A CN202111425405A CN116192739A CN 116192739 A CN116192739 A CN 116192739A CN 202111425405 A CN202111425405 A CN 202111425405A CN 116192739 A CN116192739 A CN 116192739A
Authority
CN
China
Prior art keywords
vrrp
mac address
group
unified
vrrp 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.)
Pending
Application number
CN202111425405.6A
Other languages
Chinese (zh)
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.)
Suzhou Centec Communications Co Ltd
Original Assignee
Suzhou Centec Communications 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 Suzhou Centec Communications Co Ltd filed Critical Suzhou Centec Communications Co Ltd
Priority to CN202111425405.6A priority Critical patent/CN116192739A/en
Publication of CN116192739A publication Critical patent/CN116192739A/en
Pending legal-status Critical Current

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/58Association of routers
    • H04L45/586Association of routers of virtual routers
    • 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
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/09Mapping addresses
    • H04L61/25Mapping addresses of the same type

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Small-Scale Networks (AREA)
  • Communication Control (AREA)

Abstract

A VRRP expansion method and device, wherein the VRRP expansion method comprises the following steps: when creating a VRRP group, designating the VRRP group to use a preset unified Mac address as a virtual Mac address of the VRRP group; the unified Mac address is an arbitrary unicast Mac. By the device and the method, the problem of limitation of the specification of the VRRP group in the prior art can be solved.

Description

VRRP expansion method and device
Technical Field
The present invention relates to network communication technologies, and in particular, to a method and apparatus for extending VRRP.
Background
Virtual router redundancy protocol (Virtual Router Redundancy Protocol, VRRP) is a partitioning of a set of routers within a local area network together to form a VRRP backup set that functionally corresponds to a virtual router identified using a virtual router number (VRID). The following description uses virtual routers instead of VRRP backup groups. The virtual router has its own virtual IP address (vIP) and virtual MAC address (vMAC), the appearance of which is exactly the same as that of the actual physical router. The host in the local area network sets the IP address of the virtual router as a default gateway, and communicates with the external network through the virtual router. The virtual router is operated on top of the actual physical router. It consists of a plurality of actual routers, including a Master router and a plurality of Backup routers. When the Master router works normally, a host in the local area network communicates with the outside through the Master. When the Master router fails, one device in the Backup router becomes a new Master router and takes over the task of forwarding the message.
The virtual MAC address of the virtual router is associated with the value of VRID. The virtual MAC is 00-00-5E-00-01- { VRID }, when the virtual router uses the IPv4 protocol; when IPv6 is used, the virtual MAC is 00-00-5E-00-02- { VRID }. Wherein VRID is hexadecimal representation, the maximum is 0xFF, and the MAC is used as the source MAC of VRRP notification message. Under existing VRRP mechanisms, the virtual MACs used by each VRRP group are different.
Since each VRRP backup group requires a different virtual MAC, if the size of the MAC related entries on the device is small, the number of VRRP backup groups is limited.
In some current switches, a DsRouterMac will be used to represent a set of router MACs. Typically a DsRouterMac can store up to 4 router MAC addresses. As shown in fig. 1, each three-layer interface in the system is associated with a DsRouterMac, when a message comes in from the three-layer interface, the destination MAC in the message is compared with the MAC addresses stored in the DsRouterMac, and if the destination MAC of the message can be matched with one of the 4 router MACs stored in the DsRouterMac, the message is routed and forwarded.
When implementing VRRP on a switch using the above-described application DsRouterMac, it is necessary to put the virtual MAC of the VRRP also into DsRouterMac. However, since the current protocol prescribes that the virtual MACs used by each VRRP group are different, it is limited that at most 4 VRRP groups can be configured on one interface; meanwhile, if different VRRP groups with different VRIDs are required to be configured on a plurality of interfaces, one DsRouterMac is required for each interface, so that the specification of the VRRP group is limited under the condition that the DsRouterMac specification is limited.
Disclosure of Invention
The technical problem to be solved by the embodiment of the invention is how to solve the problem of the prior art that the specification of the VRRP group is limited.
In order to solve the above technical problems, an embodiment of the present invention provides a VRRP extension method, including: when creating a VRRP group, designating the VRRP group to use a preset unified Mac address as a virtual Mac address of the VRRP group; the unified Mac address is an arbitrary unicast Mac.
In the above-mentioned VRRP extension method, in the gratuitous ARP message sent out in broadcast form by the Master device in the VRRP group, the unified Mac address is used as the virtual Mac address of the VRRP group.
In the above VRRP extension method, when the Master device in the VRRP group requests the Mac of the Host through the normal ARP message, the unified Mac address is used as the source address of the request.
In the above VRRP extension method, when the Master device in the VRRP group performs ARP reply, the unified Mac address is used as the source Mac address of the ARP reply packet.
In the above VRRP extension method, the Master device in the VRRP group uses the unified Mac address as the virtual Mac address of the present VRRP group in the VRRP notification message.
In order to solve the above technical problem, the embodiment of the present invention further provides a VRRP extension apparatus, which is characterized in that the apparatus is applied to a Master device and a Backup device in a VRRP group, and includes: a receiving unit for receiving a configured preset unified Mac address; the processing unit is used for designating the VRRP group to use a preset unified Mac address as a virtual Mac address of the VRRP group when the VRRP group is created; the unified Mac address is an arbitrary unicast Mac.
In the above-mentioned VRRP extension apparatus, the processing unit of the Master device in the VRRP group uses the unified Mac address as the virtual Mac address of the VRRP group in a gratuitous ARP packet that is sent out in a broadcast manner.
In the above-mentioned VRRP extension apparatus, the processing unit of the Master device in the VRRP group uses the unified Mac address as the source address of the request when the Master device in the VRRP group requests the Mac of Host through the normal ARP message.
In the above VRRP extension apparatus, when the processing unit of the Master device in the VRRP group performs the ARP reply, the unified Mac address is used as the source Mac address of the ARP reply packet.
In the above-mentioned VRRP extension apparatus, the processing unit of the Master device in the VRRP group uses the unified Mac address as the virtual Mac address of the VRRP group in the VRRP notification message.
Aiming at the problem of limited specification of VRRP groups in the prior art, the invention changes the virtual MAC of the VRRP from different of each VRRP group to the same virtual MAC of each VRRP group by pre-configuring a unified Mac address, thereby breaking the association between the virtual router vMAC address and the VRID in the VRRP backup group, and not limiting the number of the VRRP backup groups due to the own specification of DsRouter Mac table entries, so that the specification of the VRRP can be expanded.
Drawings
Fig. 1 is a schematic diagram of the correspondence between different interfaces and DsRouterMac of a three-layer device in the prior art;
fig. 2 is a schematic diagram of a VRRP advertisement message in a VRRP extension method of the present embodiment;
fig. 3 is a schematic diagram of a gratuitous ARP message in a VRRP extension method of the present embodiment;
fig. 4 is a schematic diagram of an ARP request message in a VRRP extension method of the present embodiment;
fig. 5 is a schematic diagram of an ARP reply message in a VRRP extension method of the present embodiment;
fig. 6 is a schematic diagram of correspondence between different interfaces of three layers of devices and DsRouterMac in a VRRP extension method of the present embodiment.
Detailed Description
In the prior art, a partial switch would use one DsRouterMac to represent a set of router MACs. Usually, a DsRouterMac can store at most 4 router MAC addresses, each three-layer interface in the system is associated with a DsRouterMac, when a message comes in from the three-layer interface, the destination MAC in the message is compared with the MAC addresses stored in the DsRouterMac, and if the destination MAC of the message can be matched with one of the 4 router MACs stored in the DsRouterMac, the message is routed and forwarded. When implementing VRRP on a switch using the above-described application DsRouterMac, it is necessary to put the virtual MAC of the VRRP also into DsRouterMac. However, since the current protocol prescribes that the virtual MACs used by each VRRP group are different, it is limited that at most 4 VRRP groups can be configured on one interface; meanwhile, if different VRRP groups with different VRIDs are required to be configured on a plurality of interfaces, the specification of the VRRP groups is limited under the condition that the DsRouterMac specification is limited because one interface can only be associated with one DsRouterMac.
The embodiment of the invention discloses a VRRP expansion method, which aims at the problem of limited specification of VRRP groups in the prior art, and modifies virtual MAC of VRRP from different to same virtual MAC of each VRRP group by pre-configuring a unified Mac address, thereby breaking the association between virtual router vMAC address and VRID in the VRRP backup group, and not limiting the number of the VRRP backup groups due to the specification of DsRouterMac table item, so that the specification of VRRP can be expanded.
In order that the above objects, features and advantages of the invention will be readily understood, a more particular description of the invention will be rendered by reference to specific embodiments thereof which are illustrated in the appended drawings.
The VRRP extension method of the present embodiment may be applied to a computer network using the VRRP protocol, especially in the case where three layers Master device and Backup device as gateway devices are used to associate interfaces using DsRouterMac. The VRRP expansion method specifically comprises the following steps:
step S101, receiving a configured preset unified Mac address;
in this embodiment, the administrator of the network switch will pre-configure a MAC as a unified MAC address for use by the VRRP. Hereinafter, the unified Mac address is referred to as a unified Mac address. Any unicast Mac that does not have a specific meaning may be designated as the unitorm-Mac, except for the Host Mac address.
Step S102, when creating a VRRP group, designating the VRRP group to use a preset unified Mac address as a virtual Mac address of the VRRP group;
a VRRP group is created (three-layer switch or router) that is designated to use the unique-Mac as the virtual Mac address of the present VRRP group. After designating to use the unique-Mac, the Master device periodically sends a VRRP notification message to the Back up device, and the unique-Mac is also carried as the virtual Mac address of the VRRP group, as shown in fig. 2.
The differences between this embodiment and the prior art are: the Source of the message uses 00:0a:00:0a instead of the conventional 00-00-5E-00-01- { VRID }. It will be appreciated that 00:0a:00:0a is a unique-mac configured by the administrator in this embodiment, this particular mac is merely an example of this embodiment, and that virtually any unicast mac may be configured as the unique-mac.
After the creation of the VRRP group is completed, as shown in fig. 3, the Master device in the VRRP group uses the unique-Mac as the virtual Mac address of the present VRRP group in the gratuitous ARP message.
The free ARP (Gratuitous ARP) packet sends out the data packet in a broadcast mode, and does not need to be responded, and the function of the free ARP (Gratuitous ARP) packet is mainly to tell other computers about own IP addresses and MAC addresses except for detecting address conflicts and updating ARP cache tables of other devices. The Source and Sender MAC address in the gratuitous ARP message announce the unique-mac to the outside by using 00:0a:00:0a of unique-mac.
When Master equipment in the VRRP group requests the Mac of Host through a common ARP message, the unitorm-Mac is used as the virtual Mac address of the VRRP group. As shown in FIG. 4, source and Sender MAC address in the Arp request message also both use 00:0a:00:0a of uniform-mac.
When the Master device of the VRRP replies by performing ARP, the unique-Mac is also used as the source Mac address of the ARP reply. As shown in FIG. 5, ARPBoth Source and Sender MAC address in reply messages use 00:0a:00:0a:00:0a of uniform-mac.
Both Source and Sender MAC address in the message of the present invention use preconfigured unique-mac instead of the traditional 00-00-5E-00-01- { VRID }. The virtual MAC of the VRRP is therefore no longer associated with the VRID, and different VRRP groups may also use the same virtual MAC. As shown in fig. 6, only one DsRouterMac is used on such an interface regardless of how many groups of VRRPs are configured (as in the case of load sharing); meanwhile, virtual MAC is the same, and VRRP groups configured on different interfaces can share the same DsRouterMac, so that the specification of the switch DsRouterMac (one DsRouterMac stores 4 MAC addresses at most) cannot influence the VRRP specification.
It will be understood by those skilled in the art that the VRID number (2) of the VRRP, the virtual IP (11.1.1.1), the Host IP (11.1.1.2) and the like in the drawings of the present embodiment are only examples, and may be arbitrarily configured according to the actual network environment in the application, and do not limit the protection scope of the present embodiment.
Compared with a VRRP expansion method in the embodiment of the invention, the embodiment of the invention also provides a VRRP expansion device which is applied to Master equipment and Back up equipment in a VRRP group and comprises the following steps: a receiving unit for receiving a configured preset unified Mac address; the processing unit is used for designating the VRRP group to use a preset unified Mac address as a virtual Mac address of the VRRP group when the VRRP group is created; the unified Mac address is an arbitrary unicast Mac.
Specifically, in the above-mentioned VRRP extension apparatus, the processing unit of the Master device in the VRRP group uses the unified Mac address as the virtual Mac address of the VRRP group in a gratuitous ARP packet that is sent out in a broadcast form.
Specifically, in the above-mentioned VRRP extension apparatus, when the Master device in the VRRP group requests the Mac of Host through the normal ARP message, the unified Mac address is used as the source address of the request
Specifically, in the above-mentioned VRRP extension apparatus, when the processing unit of the Master device in the VRRP group performs the ARP reply, the unified Mac address is used as the source Mac address of the ARP reply packet.
Specifically, in the above-mentioned VRRP extension apparatus, the processing unit of the Master device in the VRRP group uses the unified Mac address as the virtual Mac address of the VRRP group in the VRRP notification message.
It will be appreciated by those skilled in the art that a VRRP extension apparatus of the present embodiment and a VRRP extension method described above are based on the same inventive concept, so that the content of the present embodiment may refer to the corresponding content of the previous embodiment, and will not be repeated here.
Those of ordinary skill in the art will appreciate that all or part of the steps in the various methods of the above embodiments may be implemented by a program to instruct related hardware, the program may be stored in a computer readable storage medium, and the storage medium may include: ROM, RAM, magnetic or optical disks, etc.
Although the present invention is disclosed above, the present invention is not limited thereto. Various changes and modifications may be made by one skilled in the art without departing from the spirit and scope of the invention, and the scope of the invention should be assessed accordingly to that of the appended claims.

Claims (10)

1. A VRRP extension method, comprising:
when creating a VRRP group, designating the VRRP group to use a preset unified Mac address as a virtual Mac address of the VRRP group; the unified Mac address is an arbitrary unicast Mac.
2. The VRRP extension method of claim 1 wherein Master devices in the VRRP group use the unified Mac address as the virtual Mac address of the present VRRP group in gratuitous ARP messages sent out in broadcast form.
3. The VRRP extension method of claim 1 wherein Master devices in the VRRP group use the unified Mac address as the source address of the request when requesting the Mac of Host via a normal ARP message.
4. The VRRP extension method of claim 1 wherein Master devices in the VRRP group use the unified Mac address as the source Mac address of the ARP reply packet when performing the ARP reply.
5. The VRRP extension method of claim 1 wherein Master devices in the VRRP group use the unified Mac address as a virtual Mac address of the present VRRP group in a VRRP advertisement message.
6. A VRRP extension apparatus, applied to a Master device and a Backup device in a VRRP group, comprising:
a receiving unit for receiving a configured preset unified Mac address;
the processing unit is used for designating the VRRP group to use a preset unified Mac address as a virtual Mac address of the VRRP group when the VRRP group is created; the unified Mac address is an arbitrary unicast Mac.
7. The VRRP extension apparatus of claim 6 wherein the unified Mac address is used as the virtual Mac address of the VRRP group in a gratuitous ARP message that is sent out in broadcast form by the processing unit of the Master device in the VRRP group.
8. The VRRP extension apparatus of claim 6 wherein Master devices in the VRRP group use the unified Mac address as a source address of the request when requesting a Mac of Host via a normal ARP message.
9. The VRRP extension apparatus of claim 6 wherein the processing unit of the Master device in the VRRP group uses the unified Mac address as the source Mac address of the ARP reply packet when performing the ARP reply.
10. The VRRP extension apparatus of claim 6 wherein the processing unit of the Master device in the VRRP group uses the unified Mac address as the virtual Mac address of the VRRP group in the VRRP notification message.
CN202111425405.6A 2021-11-26 2021-11-26 VRRP expansion method and device Pending CN116192739A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111425405.6A CN116192739A (en) 2021-11-26 2021-11-26 VRRP expansion method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111425405.6A CN116192739A (en) 2021-11-26 2021-11-26 VRRP expansion method and device

Publications (1)

Publication Number Publication Date
CN116192739A true CN116192739A (en) 2023-05-30

Family

ID=86449417

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111425405.6A Pending CN116192739A (en) 2021-11-26 2021-11-26 VRRP expansion method and device

Country Status (1)

Country Link
CN (1) CN116192739A (en)

Similar Documents

Publication Publication Date Title
US9674139B2 (en) Detection of a misconfigured duplicate IP address in a distributed data center network fabric
US7415535B1 (en) Virtual MAC address system and method
EP3401783B1 (en) Method and apparatus for determining virtual machine migration
EP2637364B1 (en) Method, apparatus and system for address resolution
EP3402151A1 (en) Server cluster-based message generation method and load balancer
US7814232B2 (en) Network address translation with gateway load distribution
US10608866B2 (en) Forwarding Ethernet packets
US9525648B2 (en) Method for acquiring physical address of virtual machine
US10382391B2 (en) Systems and methods for managing network address information
US10616175B2 (en) Forwarding information to forward data to proxy devices
US10382329B1 (en) Source MAC access controls in a virtual redundant router protocol environment
EP2745474A1 (en) Virtualization gateway between virtualized and non-virtualized networks
CN106878288B (en) message forwarding method and device
US20090113021A1 (en) System and method for generating functional addresses
CN107094110B (en) DHCP message forwarding method and device
CN101964799A (en) Solution method of address conflict in point-to-network tunnel mode
EP2629492A1 (en) Method, switch, and system for processing a message
EP4207646A1 (en) Mlag link failure switching method and apparatus
CN107547339A (en) A kind of gateway media access control MAC address feedback method and device
US8284782B1 (en) System and method for avoiding ARP cache pollution
CN104301446A (en) Message processing method, switch device and system
JPWO2014142278A1 (en) Control device, communication system, communication method, and program
CN109768909B (en) Message forwarding method and device
US10484281B1 (en) Router operating methods and apparatus using virtual VPN instances for hosts of remote extranet VPNs
CN116192739A (en) VRRP expansion method and device

Legal Events

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