Re: [VRRP] Proposal for Maintenance Event for VRRP [RFC-5798]

"Anurag Kothari (ankothar)" <ankothar@cisco.com> Fri, 01 March 2013 15:01 UTC

Return-Path: <ankothar@cisco.com>
X-Original-To: vrrp@ietfa.amsl.com
Delivered-To: vrrp@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 0412521F9308 for <vrrp@ietfa.amsl.com>; Fri, 1 Mar 2013 07:01:46 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -10.194
X-Spam-Level:
X-Spam-Status: No, score=-10.194 tagged_above=-999 required=5 tests=[AWL=-0.195, BAYES_00=-2.599, J_CHICKENPOX_54=0.6, RCVD_IN_DNSWL_HI=-8]
Received: from mail.ietf.org ([64.170.98.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id waaafJRZFKyG for <vrrp@ietfa.amsl.com>; Fri, 1 Mar 2013 07:01:44 -0800 (PST)
Received: from rcdn-iport-4.cisco.com (rcdn-iport-4.cisco.com [173.37.86.75]) by ietfa.amsl.com (Postfix) with ESMTP id B7B1021F92F8 for <vrrp@ietf.org>; Fri, 1 Mar 2013 07:01:44 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=cisco.com; i=@cisco.com; l=9925; q=dns/txt; s=iport; t=1362150104; x=1363359704; h=from:to:cc:subject:date:message-id:references: in-reply-to:content-transfer-encoding:mime-version; bh=Iop00FsUqKArqGdC0MhQqNs9ENptqfWQDrbcMpIViY8=; b=IGazx9N1ddbjLVjnTAfbBlG+8D7OTdJHlctNxlJnshyBAVpQMEDZ7/IY vC5IHo3O/Y6oOYEEbRBqf+MCDxKF41oc4jK+3sJS73fjMbtDuK0qJqoPK syh5PlBmYTxxt5m7LWVIVXWmNmLCodM26CAeLK3yLp0dpLaOxnIRDgqP+ c=;
X-IronPort-Anti-Spam-Filtered: true
X-IronPort-Anti-Spam-Result: AgEFAOHBMFGtJXHA/2dsb2JhbABEwjN8FnOCHwEBAQQBAQFrCxACAQgRBAEBCx0HJwsUCQgCBA4FCAESh3gMwQmNOgkQgRAmBgUHBoJZYQOINZ55gwiBcjU
X-IronPort-AV: E=Sophos;i="4.84,761,1355097600"; d="scan'208";a="182714653"
Received: from rcdn-core2-5.cisco.com ([173.37.113.192]) by rcdn-iport-4.cisco.com with ESMTP; 01 Mar 2013 15:01:44 +0000
Received: from xhc-rcd-x09.cisco.com (xhc-rcd-x09.cisco.com [173.37.183.83]) by rcdn-core2-5.cisco.com (8.14.5/8.14.5) with ESMTP id r21F1iMw014878 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=FAIL); Fri, 1 Mar 2013 15:01:44 GMT
Received: from xmb-rcd-x05.cisco.com ([169.254.15.93]) by xhc-rcd-x09.cisco.com ([173.37.183.83]) with mapi id 14.02.0318.004; Fri, 1 Mar 2013 09:01:43 -0600
From: "Anurag Kothari (ankothar)" <ankothar@cisco.com>
To: sreenatha <sreenatha.setty@ibtechnology.com>
Thread-Topic: Proposal for Maintenance Event for VRRP [RFC-5798]
Thread-Index: AQHOFdIXMs1MhoGdzkqW+jdD3o4AJZiPq2bAgAEBhoCAADnPAA==
Date: Fri, 1 Mar 2013 15:01:42 +0000
Message-ID: <A2BB90B33FFDF740876C5AAE307D83DB1C2963EE@xmb-rcd-x05.cisco.com>
References: <512F8815.5010204@ibtechnology.com> <A2BB90B33FFDF740876C5AAE307D83DB1C295D1C@xmb-rcd-x05.cisco.com> <5130366D.6070302@ibtechnology.com>
In-Reply-To: <5130366D.6070302@ibtechnology.com>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
x-originating-ip: [10.82.229.53]
Content-Type: text/plain; charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
Cc: "vrrp@ietf.org" <vrrp@ietf.org>
Subject: Re: [VRRP] Proposal for Maintenance Event for VRRP [RFC-5798]
X-BeenThere: vrrp@ietf.org
X-Mailman-Version: 2.1.12
Precedence: list
List-Id: Virtual Router Redundancy Protocol <vrrp.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/vrrp>, <mailto:vrrp-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/vrrp>
List-Post: <mailto:vrrp@ietf.org>
List-Help: <mailto:vrrp-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/vrrp>, <mailto:vrrp-request@ietf.org?subject=subscribe>
X-List-Received-Date: Fri, 01 Mar 2013 15:01:46 -0000

Hi Sreenatha

I don't think we need to define a "Maintenance_Event" when the router is in either Init or Backup State. The intention of the "Maintenance_Event" is to trigger a failover from "Master" to a "Backup" router as soon as possible (especially when preemption is not configured).

But if you are asking if priority = 0 should be allowed (either by user configuration or dynamically) when the router is in "Init" or "Backup" state then I think the answer should be yes, It should be treated just like any other change in priority is treated when the router is in these states.

Please let me know if I am missing something.

Thanks
-Anurag

From: sreenatha [mailto:sreenatha.setty@ibtechnology.com] 
Sent: Friday, March 01, 2013 12:03 AM
To: Anurag Kothari (ankothar)
Cc: vrrp@ietf.org
Subject: Re: Proposal for Maintenance Event for VRRP [RFC-5798]

Hi Anurag,
    One more point on original proposal of handling Maintenance Event. 

Whether "Maintenance_Event" from user is allowed only in Master state or any other state?

If Maintenance_Event comes in other state(Init or Backup) apart from the Master state, what would be the behaviour of the router?

This point also we need to take care.

Thanks,
Sreenatha Setty


On 03/01/2013 01:31 AM, Anurag Kothari (ankothar) wrote:
Hi Sreenatha
 
Totally agree with your observation.
 
Also as pointed out by some other participants the additional backup router in my original analysis will never become master on seeing the first ADVERTISEMENT with priority zero as it will keep resetting it's Master_Down_Timer to Skew_Time in the storm of ADVERTISEMENTs with zero priority and the Master_Down_Timer will never fire for the additional backup router.
 
Thanks
-Anurag 
 
P.S. Noticed the typos: the additional lines in my email should be numbered 706 and 707 (instead of 701 and 702) and probably yours should be 426 and 427 (instead of 421 and 422).
 
From: sreenatha [mailto:sreenatha.setty@ibtechnology.com] 
Sent: Thursday, February 28, 2013 11:39 AM
To: vrrp@ietf.org
Cc: Anurag Kothari (ankothar)
Subject: Re: Proposal for Maintenance Event for VRRP [RFC-5798]
 
Hi Anurag,
    Modification to algorithm is correct. But this modification is taking care only when Router is in Master state.
What about if Backup router(priority value is zero) receives ADVERTISEMENT message with priority value as zero?

Same condition we will consider, where both VRRP routers priority is set to zero, and both sending ADVERTISEMENT messages with priority as zero. According to new modification any one router, lets take "Router A", will remain in Master state and other router, lets say "Router B", will transit to Backup state.

Now according to RFC-5798:
When "Router B" is in Backup state,
(420) - If an ADVERTISEMENT is received, then:
 
         (425) + If the Priority in the ADVERTISEMENT is zero, then:
 
            (430) * Set the Master_Down_Timer to Skew_Time
 
         (440) + else // priority non-zero
 
So this lead to Master_Down_Timer to expire soon. 
 
Again in Backup state,
(365) - If the Master_Down_Timer fires, then:
 
         (370) + Send an ADVERTISEMENT
                    |
                    |
                    ...
                    
         (405) + Set the Adver_Timer to Advertisement_Interval
 
         (410) + Transition to the {Master} state
 
(415) -endif // Master_Down_Timer fire
 
So this lead to continuous switch over from Backup to Master state and vice verse state transitions in "Router B".
 
To avoid this condition,
In Backup state also we need to do modification. Same as you suggested in Master state, same extra condition we need to check in Backup state also.
Modifications in Backup state as follows(Differences from RFC-5798 highlighted with Underline):
 
 
(420) - If an ADVERTISEMENT is received, then:
 
         (425) + If the Priority in the ADVERTISEMENT is zero, 
         
         (421) -+ and
 
         (422) -+ Local Priority is greater than zero, then:
 
            (430) * Set the Master_Down_Timer to Skew_Time
 
         (440) + else // priority non-zero or local-priority is zero
             (Continue other logic)
 
This will avoid state-transition flip-flap problem in "Router B".
 
Thanks,
Sreenatha Setty
 

On 02/27/2013 01:30 AM, vrrp-request@ietf.org wrote:
Some concerns have been raised regarding the following situation / Corner Case:
Due to congestion or some other fault in the network the ADVERTISEMENTs from the Master router do not reach backup router(s). The Master_Down_timer fires and one of the back router transitions to Master State at the same time the priority of this router and the original Master is set to zero. How would the network behave in this case?
 
For sure the probability of this happening would be very low (as it is a double/multiple fault situation). Here is my analysis of the situation and solution for the same.
 
We will have two Master routers both sending ADVERTISEMENTs with Priority = 0. This will create a vicious circle of sending ADVERTISEMENTs (one router triggering the other) at a fast rate. This would also cause the Virtual MAC to shuttle continuously between two ports on the switch(es) at a fast rate. Both of these can probably cause high CPU utilization on the router and the LAN Switches.
 
If there is an additional backup router available then it will become master on seeing the first Advertisement with Priority = 0 and both the Masters (with priority = 0) will transition to Backup on seeing the advertisement with non-zero priority from the new Master.
 
For the situation where we do not have an additional backup router we can avoid this by making following modifications (Differences from RFC-5798 highlighted in RED):
 
(700) - If an ADVERTISEMENT is received, then:
 
   (705) -+ If the Priority in the ADVERTISEMENT is zero,
 
   (701) -+ and
 
   (702) -+ Local Priority is greater than zero, then:
 
      (710) -* Send an ADVERTISEMENT
 
      (715) -* Reset the Adver_Timer to Advertisement_Interval
 
   (720) -+ else // priority was non-zero or local priority was zero
 
      (725) -* If the Priority in the ADVERTISEMENT is greater
      than the local Priority,
 
      (730) -* or
 
      (735) -* If the Priority in the ADVERTISEMENT is equal to
      the local Priority and the primary IPvX Address of the
      sender is greater than the local primary IPvX Address, then:
 
         (740) -@ Cancel Adver_Timer
 
         (745) -@ Set Master_Adver_Interval to Adver Interval
         contained in the ADVERTISEMENT
 
         (750) -@ Recompute the Skew_Time
 
         (755) @ Recompute the Master_Down_Interval
 
         (760) @ Set Master_Down_Timer to Master_Down_Interval
 
         (765) @ Transition to the {Backup} state
 
      (770) * else // new Master logic
 
         (775) @ Discard ADVERTISEMENT
 
      (780) *endif // new Master detected
 
   (785) +endif // was priority zero?
 
(790) -endif // advert recv
 
 
Please let me know if I have missed something.
 
Thanks
-Anurag
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.ietf.org/mail-archive/web/vrrp/attachments/20130226/cc6018e8/attachment.htm>
 
------------------------------
 
_______________________________________________
vrrp mailing list
vrrp@ietf.org
https://www.ietf.org/mailman/listinfo/vrrp
 
 
End of vrrp Digest, Vol 81, Issue 10
************************************
 
 
Disclaimer : 
This email communication may contain privileged and confidential information and is intended for the use of the addressee only.If you are not an intended recipient you are requested not to reproduce, copy disseminate or in any manner distribute this email communication as the same is strictly prohibited. If you have received this email in error, please notify the sender immediately by return e-mail and delete the communication sent in error. Email communications cannot be guaranteed to be secure & error free and IB Technology is not liable for any errors in the email communication or for the proper, timely and complete transmission thereof.

Disclaimer : 
This email communication may contain privileged and confidential information and is intended for the use of the addressee only.If you are not an intended recipient you are requested not to reproduce, copy disseminate or in any manner distribute this email communication as the same is strictly prohibited. If you have received this email in error, please notify the sender immediately by return e-mail and delete the communication sent in error. Email communications cannot be guaranteed to be secure & error free and IB Technology is not liable for any errors in the email communication or for the proper, timely and complete transmission thereof.