Sunday, December 25, 2016

Multi-Chassis Etherchannel (MEC)

What is rationale and benefits behind this?

Let's start with some basics. We have an user connected to access switch. Which is connected to some distribution switch upstream.



This works until distribution switch or link fail. How do we make it better? Use Etherchannel.


While we still depend on failure of distribution switch, we are now protected from single link failure and bandwidth available to access switch has been almost* doubled.
Benefits of current topology are:
- STP consider etherchannel as one link - will NOT engage and recalculate L2 topology after single link failure
- Practically zero switchover time
- Both links are used at tue same time
But still couple of issues are not resolved:
- failure of distribution switch kills connectivity
- completely equal utilization of both links is very hard to achieve; having doubled bandwidth by having number of links doubled is not possible

Now let's consider different topology with paralel connections to two distribution switches.



It's better for sure, as right now we don't rely on only one distribution switch. Should one of them fail, we can still have our network access through other one. This is also resilient to single link failure.
Drawbacks? Yes, a couple:
- Spanning tree must be enabled in order to make sure there are no L2 loops in the network
- One of uplinks will be permanently blocked, so we pay for two connections and use only one
- after failure of active link, connectivity could be interrupted for amount of time needed by STP to recalculate network topology.

Multichassis etherchannel is a hybrid topology which allows to get the best of dual homing and bundling separate connections together at the same time.


Resilient to single switch or link failure. Both links used at the same time, and single link failure does not trigger topology recalculation.
Although it seems perfect, we still need to remember that there are some limitations, too. First of all, it adds complexity to environment, especially when control plane of distibution switches are separated like Cisco vPC (Virtual Port Channel available on Nexus switches) does. In other implementations they can be joined together like Cisco VSS (Virtual Switching System available on Catalyst 6xxx switches) which basically turns two different switches into one.


Problem
Single homed
Dual homed
Ether Channel
MEC
Switch failure breaks connectivity
YES
NO
YES
NO
Link Failure breaks connectivity
YES
NO
NO
NO
Cannot use all connections
NO
YES
NO
NO
Link failure triggers topology change
YES
YES
NO
NO

Tuesday, December 20, 2016

Destination net unreachable? Fine!

Amazing, today I encountered internet link failure (again) and I was trying to ping google. Interesting how my Windows interprets ping results:

PS C:\Users\me> ping 8.8.8.8 -t

Pinging 8.8.8.8 with 32 bytes of data:
Reply from 192.168.66.1: Destination net unreachable.
Request timed out.
Reply from 192.168.66.1: Destination net unreachable.
Reply from 192.168.66.1: Destination net unreachable.
Reply from 192.168.66.1: Destination net unreachable.
Reply from 192.168.66.1: Destination net unreachable.
Request timed out.
Reply from 192.168.66.1: Destination net unreachable.
Reply from 192.168.66.1: Destination net unreachable.
Reply from 192.168.66.1: Destination net unreachable.
Reply from 192.168.66.1: Destination net unreachable.
Request timed out.
Reply from 192.168.66.1: Destination net unreachable.
Reply from 192.168.66.1: Destination net unreachable.
Request timed out.
Reply from 192.168.66.1: Destination net unreachable.
Reply from 192.168.66.1: Destination net unreachable.
Reply from 192.168.66.1: Destination net unreachable.
Reply from 192.168.66.1: Destination net unreachable.
Reply from 192.168.66.1: Destination net unreachable.
Reply from 192.168.66.1: Destination net unreachable.
Reply from 192.168.66.1: Destination net unreachable.
Reply from 192.168.66.1: Destination net unreachable.
Reply from 192.168.66.1: Destination net unreachable.
Reply from 192.168.66.1: Destination net unreachable.
Reply from 192.168.66.1: Destination net unreachable.
Request timed out.
Reply from 192.168.66.1: Destination net unreachable.
Reply from 192.168.66.1: Destination net unreachable.
Reply from 192.168.66.1: Destination net unreachable.
Reply from 192.168.66.1: Destination net unreachable.

Ping statistics for 8.8.8.8:
    Packets: Sent = 31, Received = 26, Lost = 5 (16% loss),
Control-C
PS C:\Users\me>


Led stripes

Being huge fan of led stripes I've recently installed a couple of them in my kitchen to provide light when I prepare food. Work area under cupboard is usually quite dark. So I just got rid of halogen lights and installed led stripe.
Also, I installed another couple of stripes as ambient light in my living room and bedroom.
Then I went for Christmas decoration light on my balcony :-)

With that being said I earned some experience with led stripes, I made a couple of good and bad purchases. I left with three lots of spare stripes and couple of spare power supplies. Those are the things I learned during that time:

- first stripe I bought back in 2011 and (surprisingly) I still use it today. It was installed as ambient light in my living room, then it was painted twice so it wasn't shining quite well. I decided to replace it with new one. Once I removed it I cleaned it up and guess what. Still works perfectly. I reused it for ambient light in my bedroom as it does not produce too much light.

 - Then I stopped, because back then it was quite expensive (cheapest 3528 price was more than 3x 5630 price as of Today).

 - I bought waterproof stripe of 5630's for my kitchen light. It is the strongest light I could find, although they already offer 5730 which does the same but with half of power consumption.

 - Waterproof led tape is quite heavy, so if you stick it to ceiling it may fall off. From my experience, stripes with 3m tape are the best (make sure it's original). Waterproof stripe is also more expensive.

- If you are not going with your led stripes outside or to really challenging environment, don't go for waterproof (I have never tried it in the bathroom, however).

 - I dropped idea of having waterproof stripe in my kitchen and ordered regular one. It has been working perfectly for a couple of months and really, I don't expect any troubles with it.

 - Sales people usually are declaring Watt consumption but from my experience it is usually lower then declared. Before purchase of power supply, I usually verify how much power my stripe is consuming using multimeter and add 20% of buffer to make sure power supply does not work at 100% capacity (will damage itself quickly if yes)

 - For some reason I also started with waterproof power supplies and I already had to replace three out of four. For home installation it does not make any sense, so finally I also replaced them. Again,  if you really don't need IP67, don't go for it.

- Also, waterproof is difficult to reconnect because you will have to damage protective silicone shield and then rebuild it somehow

 - White cold is... cold. It is good for very modern interiors but if you want to make your home sweet home or add ambient light, white warm is good. For my kitchen lights I used white neutral and I am quite happy about it.

 - It doesn't make really sense to me to buy led stripe with less than 60 LEDs per meter unless you really want to have particular LEDs clearly visible.

- One of very often emphasized feature of LED stripes is ability to cut and reconnect. To do this you need some very basic cutting/soldering skills. Please keep in mind that once you solder it, stripe is not flexible in that place anymore. If you buy a lot of 5m you can expect it to be soldered couple of times already.

- 90 degrees cornering with LED stripes is quite challenging

This is my spec cheatsheet (values are taken from LED specs, and by the way, 99% of LEDs used in stripes are made by Epistar.

LED Type Lumens per diode Lumens per meter Power draw per meter My comments
35286lm 360lm 4.8W This is most likely 1st one I have bought. It is excellent as an ambient light and if you hide it behind the corner, with 300leds per meter you will see continuous light
505018lm 1080lm 14.4W
283525lm 1500lm 10,8W
563060lm 3600lm 18WThis is the one I bought recently. Excellent if you have work area you need to bring some light into. It is also okay as an ambient light but expect it will also bring a lot of light to the environment. If you just want to emphasize something and leave the rest of the room dark, just go for 3528.
673060lm 3600lm 9,6W Looks very promising as it delivers as much light as 5630 only power consumtion is reduced by 50%. I will definitely try it in the future.

And, by the way, Let type is just size of the LED. For example, 2835 = 2,8mm x 3,5mm

Have fun with your LED installations.