We use cookies to improve your online experience. By continuing browsing this website, we assume you agree our use of cookies.
单页广告图

HOME < Technology < VRRP Protocal In 4G Wlink


1. VRRP Introduction

The Virtual Router Redundancy Protocol (VRRP) is a fault-tolerant protocol that provides for automatic assignment of available Internet Protocol routers to participating hosts. This increases the availability and reliability of routing paths via automatic default gateway selections on an IP sub-network.



2. VRRP Terms

There are several important terms which are VRRP router, virtual router, master router and backup router in VRRP protocol as below.

l  VRRP router refers to the router running VRRP, which is a physical entity.

l  Virtual router refers to the logical concept created by VRRP protocol. A group of VRRP routers work together to form a virtual router. The virtual router is represented as a logical router with unique fixed IP address and MAC address.

l  Master router. One of the VRRP group member is elected as master router which takes up the responsibility of forwarding the local traffic. The router is elected on the basis of priority. If some group member of VRRP group has higher priority than others then it will be elected as master router. If the priority is same (by default 100) then the router having the highest IP address will become the master router.

l  Backup router. Only one of the VRRP group member will become the master router while others will be back up routers. In case the master router fails, then one of the backup routers will become master router.

3. VRRP message Format

VRRP message is used to inform the priority and status of Master devices to all VRRP routers in the same virtual router. VRRP message is encapsulated in IP message and sent to IP multicast addresses assigned to VRRP. In the IP header, the source address is the main interface address (not the virtual address or auxiliary address), the destination address is 224.0.0.18, the TTL is 255, and the protocol number is 112. The VRRP message format as following.


l  VRRP version for v2 as default.

l VRRP Type. Type for 1 only means Advertisement.

l  Virtual Router ID. Virtual Router ID range from 1 to 255.

l  Priority. The priority of the router sending VRRP notification message in the backup group. The range is from 0 to 255, however the available range is from 1 to 254. 0 means that the router will stop participating VRRP backup group and use to make the backup router to master router without waiting timeout.  255 is reserved for the IP address owner. The default value is 100.

l Count IP Address. The number of virtual IP addresses in the VRRP notification message.

l  Authentication Type. Authentication type of message. The protocol defines 3 types as below.

0 means Non Authentication

1 means Simple Text Password

2 means IP Authentication Header

l  Advertisement Interval 1s as default.

l  Checksum

l  IP Address(es). VRRP group virtual IP address

l  Authentication Data. At present, the text authentication and MD5 authentication are used in this section. For other authentication types, the authentication data should fill as 0.

4. VRRP State Machine

Each VRRP node can be in one of three states as Initiation state, Backup state and Master state.


4.1 Initiation State

The purpose of initiation state is to wait for a Startup event. When this event is received, then following actions are taken.

When router receives Startup message, it will transit to backup or master state. If priority for 255, router will send advertisement packet and broadcast ARP requests, and transit to master state, else transit to backup state.

4.2 Backup state

When router is in backup state, it will work as following.

1) It will receive the VRRP notification message sent by the master, and judge whether the master status is normal.

2) It won’t respond to ARP request of virtual IP address.

3) It will discard the IP message which destination MAC address is virtual MAC address.

4) It will discard the IP message which destination IP address is virtual IP address.

5) If a message with lower priority is received, it will discard the message and won’t reset the timer.

If a message with the same priority is received, it will reset the timer and won’t further compare the IP address.

6) The router will transit to master state when receives Master_down_timer timeout message.

The router will transit to Initiation state when receives Shutdown message.

4.3 Master state

When router is in master state, it will work as following.

1) It will send VRRP notification message regularly.

2) It will respond to ARP request of virtual IP address with MAC address.

3) It will transfer IP message which destination MAC address is virtual MAC address.

4) The router is the owner of the virtual IP address, it will receive IP message which destination IP address is the virtual IP address. Otherwise, it will discard the IP message.

5) If the router receives a higher priority message, it’ll transit to backup state.

6) The router will transit to initiation state when receives Shutdown message.

5. VRRP in WLINK 4G Router


-- The end








TOP