Friday, September 30, 2016

GLBP Operation

We have talked about couple of “First Hop Redundancy Protocol” already in this module. Here is another one for you.
                          GLBP (Gateway Load Balancing Protocol) and its name suggests one of the big benefits, It’s bring to the table is the ability to do Load-Balancing easier than we could do otherwise.
              For Example, think about HSRP, with HSRP we had an “Active Router”, we had “Standby Router”, and the “Active Router” which actively forwarding traffic, but the Standby Router was not. It was just sitting around waiting for the Active Router to fail, and if we did want to use that Router not just have sit their dormant. What we could do, is do some manual load-balancing. We can have traffic from “One Vlan or One Subnet treat that Standby Router as the Active Router for that Vlan” and have “Another Vlan use the other Router is the Active Router for that Vlan”, But that was administrative overhead. We had the manually configured Load-Balancing. We get Load-Balancing automatically with GLBP, With GLBP we can have all of our “Routers forwarding traffic” without the need to go in and says” This Vlan uses this Router, and this Vlan uses that Router”, and the couple of terms we need to know when we talking about GLBP.
We gonna have one Router that’s the “Active Virtual Gateway” or the “AVG”.
              The AVG is going to respond to “ARP Requests” that coming from the Host, and wanna Hosts says” Hey! What’s the Mac-Address for let’s say 10.1.1.1, if that’s are “Virtual IP Address” The AVG is gonna respond and say “Here’s the mac-address for that Virtual IP Address” and the Virtual mac-address that’s it hands out, is the mac-address corresponding to an AVF an “Active Virtual Forwarder”.
              And this “AVF’s” going to do job of like actually forwarding traffic of the local subnet, and we can have as many as “4 AVF’s” within group. We can have some other Virtual forwarders that are not currently active. They standing by, but we can have as many as many “4 Active Virtual forwarders” they are simultaneously able to send traffic of its subnet, and to demonstrate how it works. Consider PC1 on Picture, it is going to send a “ARP Request”.
                 Up to Router R1 because Router R1 is in this examples Acting as the “AVG the Active Virtual Gateway”, and that ARP Request.
                “Going to say “what is the mac-address corresponding to 10.1.1.1”, that’s the PC1 default gateway and R1 Acting as “Active Virtual Gateway” going to respond and say.

                          “The Mac-Address for 10.1.1.1 is 1111.1111.1111”.
  
                      Obviously that the mac-address i just made up to make this easier to visualize. But it’s gonna respond with the mac-address that corresponds to an “Active Virtual Forwarder and AVF”. In this case R1 in addition to being AVG, it’s also an AVF. It’s saying “Here is my mac-address is an AVF” send your frames to me, and PC1 now has a Mac-Address corresponding to its default gateway IP Address.it can now send traffic of its local subnet, now PC2 needs to know how to get off this subnet.

                               PC2 its configured with a default gateway of 10.1.1.1, just like PC1 was. It also sends an “ARP Request” which just gonna be handled by Router R1 acting as the Active Virtual Gateway, and its asking the same question that PC1 did, its asking “What is the mac-address corresponding to 10.1.1.1”.

                           But this time, the “Active Virtual Gateway” says “The mac-address corresponding to 10.1.1.1 is this all 2222.2222.2222 mac-address”.
                             It gave a different answer to PC2, then gave to PC1, and who has that Virtual Mac-address. It’s the different AVF, its R2. R2 has the all 22222.2222.2222 Virtual mac-address assigned it, and how did R2 get that Virtual mac-address. Well as an “Active Virtual Forwarder”, Router R2 discovered that Virtual mac-address form the AVG based on “Hello Message”, and now when PC2 attempts to send traffic of the local subnet, it’s going to the same default gateway IP Address, that PC1 is using. However it’s gonna be using different router. Because the “Mac-Address” in Layer2 header of that Ethernet frame. It’s destined for R2 instead of R1. This is how we get Load-Balancing without doing any administrative work. We get load-balancing automatically.
           By the way we do more than Load-Balancing. We also get Redundancy, if Router R2 were to go down, that would be detected by Router R1, and R1 would become Active for the all 2222.2222.2222’s Virtual Mac-Address, and there are some timers that says “How! Long the AVG will continue giving out that Virtual Mac-Address and response to “ARP Queries”. How long Router R1 in this case is going to continue servicing that mac-address”. We will talk about timers in our Next Topic. When we get into the Configuration.
                   But realize we are getting Load-Balance and we getting Redundancy, thanks to GLBP. But there is a big design Cavour that we need to know about and it deal with STP.
               Can you see that we were using multilayer switches instead of these Router, if those multilayer switches were connected, in a Layer 2 Spanning Tree topology, where one of them were root, in case like that, since we were doing load-balancing across many as 4 multilayer switches or 4 Routers at the same time. With Spanning Tree Protocol, we might have some optimal patting, because STP might be forcing us to go to another path. If you are using multilayer switches with GLBP and those switches part of Layer 2 STP, you might consider HSRP instead of GLBP, because of this suboptimal patting you can get, if you are using router like we showing in this topology this is a great way to do Load-Balancing, infect we can go and tweak? How the load-balancing works.
                Let’s talk about 3 different options that GLBP has
    1.      The Default load-balancing option is “Round-robin”.

                    With Round-Robin our “Active Virtual Gateway” is going to be Responding to “ARP Queries”, by giving out the Virtual Mac-Addresses of all of the Active Virtual Forwarder’s and equal times of amount, with Round-robin in this example, that Active Virtual Gateway is going to respond “One ARP Request” by saying “The Mac-Address for 10.1.1.1 is the all 1111.1111.1111’s Mac-Address”, and it will respond to the next “ARP Request” by saying “it’s all 2222.2222.2222’s Mac-Address”. Then it will go back to the all 1111.1111.1111’s then the all 2222.2222.2222’s, maybe we had 4 Routers, maybe we had 4 Multilayer switches. It would give out the mac-address for each of those AVF’s and equal amount of times. With Round-robin we doing equal load-balancing across all over the AVF’s.
                             And i say we doing equal Load-Balancing realize that, the traffic is not gonna be perfectly Load-Balanced because some of clients actually send more traffic than other clients But at least we equally dispersing the different AVF Mac-Addresses.
     2.      Another Load-Balancing Option is “Host-Dependent”.

                      We probably not going to use this option that much but if you do have a design requirement that says “A Particular PC or A Particular Host needs to always point to a specific Mac-Address” as it’s Default Gateway Mac-Address. You can configure that. You can link together a specific host to always get the same “ARP Reply” to always get a ‘Reply” to saying “The Mac-Address for this default Gateway is, whatever you want the Mac-Address to be” and Remember “Round-Robin” is the default. With Round-Robin we were giving each of our AVF’s, and equal “Weighting”. We giving out their Mac-Addresses in equal amount of times.
                                                    However, we might not want that, we might have higher Powered Router or we might have a higher Powered Multilayer Switch, and we want that switch or that router, to get the bulk of the traffic. We wanna give out it’s “Virtual Mac-Address” more often, than we give out Virtual Mac-Address, of an older Router that might be part of this GLBP group, and we can do that using the “Weighted Load-Balancing Option”.      
      3.      With the “Weighted Load-Balancing Option” we can associate a “Weight” with different “Active Virtual Forwarder’s”.
                      For example, let’s say, do we gave R1 ‘Weight of 50”, and we gave R2 a “Weight of 100”. Well in that example for everyone time we gave out R1’s “Virtual Mac-Address”, we would give out Router R2’s “Virtual Mac-Address” twice because 100 is 2 times 50.

                               That’s the way we can adjust the Weight. There is another way we could use this “Weighting”, we could use with a “Tracking”, Remember with, HSRP we had “Interface Tracking” and “Object Tracking”, In with VRRP we had just “Object Tracking”, But even with that we could still track the “Line-Protocol” state of an interface.
                               So essentially we did have an “Interface Tracking”. Well with GLBP we don’t technically have “Interface Tracking”, But we do have “Object Tracking” and what we can do with Object tracking is say “I want to track, may be the state of a particular interface, and if that interface goes down, or maybe we are tracking whether or not a route is in the IP Routing table and if that router disappears”. We could say, we want to reduce the “Weight” by certain amount, suddenly this Router or this Multilayer switch becomes less attractive. It has lower “Weight”, its start handling lower percentage of traffic and infect we can have some “Threshold Set”.
                                 And we can say “if you drop below the threshold”, if your “Weight” get down to 20 is an example, then AVG could temporarily stop handing out that Active Virtual Forwarder’s (Virtual Mac-Address). In response to “ARP Queries”, and then may be that Route came back up, maybe that interface came back up and then that case, if the Weight got backed for a certain level. We can set high “Watermark Router Threshold”, if it gets back to certain level than, the AVF can start the accepting traffic again and the AVG, will once to start handing out that AVF’s “Virtual Mac-Address” and responds for “ARP Queries” and before we get to the configuration in our next topic, just a few extra things I want you to know about GLBP.

Ø  We know that HSRP is Cisco Proprietary, and VRRP is an open standard. Well GLBP is also Cisco Proprietary, we know that HSRP cannot have the Virtual ip address, be the same as interfaces ip address, then VRRP does allow a Virtual IP Address to match an interfaces IP Address. Well GLBP is like HSRP in that respect, you cannot have a Virtual IP Address match an interfaces IP Address.
Ø  And GLBP is gonna use the same multicast group to send messages that used by HSRP Version 2 which is 224.0.0.102
Ø  And GLBP by default also has the same timers that HSRP has. Specifically, it has a Hello time of 3 Seconds and “Hold Time” Timer of 10 Seconds.
Ø  And Cisco does support GLBP Authentication. Both “Plain Text” and “MD5” Authentication.
But Please keep in your mind, your knowledge may vary, you may or may not have GLBP Support based on Your Model of Cisco Catalyst or Router
 Now with this better understanding of GLBP Operation. Let’s set it up in out Next Topic.





If You Like the Post. Don’t forget to “Subscribe/Share/Comment”. Thank You.

               
Read More

Wednesday, September 28, 2016

VRRP Configuration

                  Let’s take a look how to Setup VRRP using this Topology. Here we using Multilayer on example. We got Switch SW2 and SW3, and we want to Setup SW2 to be the “Master VRRP Router(Switch)” and Switch SW3 to be the “Backup Router(Switch)”. This is gonna be very similar with HSRP Configuration.
           
VRRP initial Configuration on Multilayer Switch SW2: -
Ø  SW2(config)#interface fastethernet 0/3
Ø  SW2(config-if)#description CONNECTED WITH SW1
Ø  SW2(config-if)#vrrp 10 ip 10.1.1.1
ü  10:- VRRP Group Number
ü  10.1.1.1: -Virtual IP Address
ü  That will educate this interface about the Virtual IP address
Ø  SW2(config-if)#vrrp 10 priority 110
ü  Setting “Higher Priority” on SW2 will Master Switch
ü   “Preempt Option” enabled by Default.

VRRP initial Configuration on Multilayer Switch SW3: -
Ø  SW3(config)#interface fastEthernet 0/3
Ø  SW3(config-if)#description CONNECTED WITH SW1
Ø  SW3(config-if)#vrrp 10 ip 10.1.1.1
Now We done with initial VRRP Configuration

Verification: -
          1.      First use “tracert” Command on PC1 for verify the Path
          2.      Then run Continues Ping on PC using “ping 1.1.1.1 -t
          3.      Third Step Shutdown the Port on “SW2 fastetherent0/3
          4.      And then feel the change using “ping and tracert”

Troubleshooting and Verification command: -
                    Ø  SW#show vrrp brief
                    Ø  SW#show vrrp

VRRP Intervals -
   Ø  Advertisement Interval: -1 Second
   Ø  Down Time Interval: -3 Time greater than Advertisement Interval + Skew Time

Skew Time: -
Step 1.       256   -  110                     VRRP Priority (in this Case Switch SW2)  
                    Take The Value =                           146
Step 2.      Then Divide it to = 146/256    =   0.570
                                            Now Our Master Down interval is
Step 3.        3       +       0.570                   =    3.570
VRRP MAC Address: -
MAC Address     0000.5e00.01XX

0000.5e
Industry Standard
0001
VRRP ID
XX
VRRP Group Number

The Multicast address used to send VRRP messages has now changed
 VRRP
Multicast Address
VRRP
224.0.0.18

VRRP Tracking: -

Similar HSRP has “Interface Tracking” and “Object Tracking”
Technically VRRP does not do “Interface tracking” does do “Object and Enhanced Object Tracking”. one of object we track “Interface State
How we can essentially do “interface tracking” with VRRP

First Create the Tracking for interface State: -      
            Ø  SW2#track 1 interface fastethernet 0/1 line-protocol
Appling to VRRP: -
            Ø  SW2(config)#interface fastethernet 0/3
            Ø  SW2(config-if)#description CONNECTED WITH SW1
            Ø  SW2(config-if)#vrrp 10 track 1 decrement 20
ü  10 :- VRRP Group Number
ü  1:- Track Number
ü  20 :- Decrement Value
Verification: -
            Ø  SW2(config)#interface fastetherent 0/1
            Ø  SW2(config-if)#shutdown
            Ø  SW2(config-if)#do show vrrp brief                                           

VRRP Support couple of Authentication
                           VRRP industry standard “First Hop Redundancy Protocol”. Please be aware of authentication is no longer part of RFC. It still supports Cisco iOS. But it might not necessary be supported on third party device, if you are in mixed environment be sure that everyone agrees on whatever authentication type trying to use.
             1.      Text
             2.      MD5
                      We probably do not be sending plain text Authentication across the network, because if somebody capture those packets, can clearly read that packet.     
                        Usually better to MD5 because that’s gonna run a “Hashing Algorithm” on the string, and each side runs the “Hashing Algorithm”, and they compare Hash Values. If the Hash values equal, then they have some assurance that the other side or device has the same string. Let’s set this up on Switch SW2.

Text Authentication Setting in SW2: -
           Ø  SW2(config)#interface fastetherent 0/3
           Ø  SW2(config-if)#vrrp 10 authentication text $3cr3T
ü  10:- VRRP Group Number
ü  $3cr3T:- it is a Password
Text Authentication in SW3: -
           Ø  SW3(config)#interface fastetherent 0/3
           Ø  SW3(config-if)#vrrp 10 authentication text $3cr3T
ü  $3cr3T:- it is a Password

MD5 Authentication in SW2: -
           Ø  SW2(config)#interface fastetherent 0/3
           Ø  SW2(config-if)#vrrp 10 authentication md5 key-string $3cr3T

MD5 Authentication in SW3: -
           Ø  SW3(config)#interface fastetherent 0/3
           Ø  SW3(config-if)#vrrp 10 authentication md5 key-string $3cr3T

Verification: -
           Ø  SW#show vrrp



If You Like the Post. Don’t forget to “Subscribe/Share/Comment”. Thank You.
Read More

Monday, September 26, 2016

VRRP Opeations


                     Now let’s talk about an industry standard, it’s VRRP (Virtual Router Redundancy Protocol), and it has lot of similarity to HSRP.But there are few differences. Let’s take a look exactly how VRRP works in this topic.
                         You can see in this topology like HSRP, we got couple of Routers or Multilayer Switches. That are capable of forwarding traffic of our local subnet, and the Router that actually doing that job in HSRP, we called “Active Router”. And the Router that next candidate to become the Active Router, we called it the “Standby Router”. Well the terminology changes with VRRP, with VRRP instead of calling Router or multilayer switch, The Active Router, we call it “Master Router”.
And instead of having a Standby Router, we have a “Backup Router”.
                    What in generally the mission of both of these protocols is the same, if we have a failure for example on SW2, we lost our Master Router.
                           Then SW3 could transition from a Backup role to a master Role, and traffic could be forwarded via SW3.
                             One other difference if we wanted to in generally, it’s possible with VRRP to have the Virtual Router’s IP Address which in this case is 10.1.1.1
                         We can have that Virtual Router IP Address (VVIP Address) of a Physical interface on SW2 for example, in this case SW2 has an IP Address of 10.1.1.2 on fast Ethernet0/3, but it actually could have an ip address 10.1.1.1
                               But generally that not considered to be best Practice. Generally we do just like we did with HSRP, we give that Virtual Router an IP Address that’s not assigned to Physical interface one of our router.
                            Another difference between these Protocols is with HSRP by default, we sent a Hello message in every 3 Seconds. Well VRRP, we send an “Advertisement” every 1 second.
                                        Another difference is way tracking works. Remember with HSRP, we can do “Interface Tracking” on our Router or Multilayer Switch. And if interface went down, we can say “I want to decrement the HSRP Priority by a certain number. HSRP have another option called “Object Tracking”. Well with VRRP, we don’t technically have interface tracking feature, However on of the objects that we can track is a “interface State”

   Ø  HSRP Created by Cisco, for Cisco in 1994
   Ø  VRRP Created by IETF in 1999.Works between multiple Vendors.
   Ø  GLBP Created by Cisco, for Cisco in 2005




If You Like the Post. Don’t forget to “Subscribe/Share/Comment”. Thank You.

Read More