Understanding 3-Way and 4-Way Switches

Do you have a room that has two or more entrances and you would like to have a switch at each entrance to control a light? Or more commonly, did your electrician set one up for you and now you have replaced a broken switch but can’t get it to work right? Fear not, some simple diagrams should help sort it out.

First of all, there are 2-way, 3-way, and 4-way switches; each with a different purpose. Two-way switches are most common and only have two terminals in addition to the ground screw. These are very simple in nature and simply either break or complete the circuit to turn a light on or off.

If you have two switches that control a light, you must use 3-way switches (more on 4-ways later if you have more than 2 switches). Usually we see people get in trouble when they want to replace one switch with a dimmer. The dimmer in this situation must be a three way and the three wires must go to the correct terminals. (at the end of this article we explain how to look at a switch and most of the time get the hook-up correct. When all else fails, use a continuity tester.) Three-way switches will have 3 terminals in addition to the ground screw. One hot(usually black) wire either comes from the power panel into the switch or one hot wire exits the switch and goes to the light. In between the switches are two wires called travelers. These are considered switched hot wires and can be typically black, red, or sometimes a white wire has black tape wrapped around it at each end to designate it as a hot and not a neutral wire.

Four way switches are used when you have 3 or more switches to control a light. As can be seen in the diagrams below, there is always a 3-way switch at the start and end of the circuit, with 1 or more 4-ways in between. The 4-way switches simply have the two travelers coming in and then going out to the next switch down the line.

Let’s take a look a some diagrams to understand how the circuit and switches work.

First here is an example of a 3-way switch setup. Light is off as there is no path for the hot.

Switch 1 Switch 2

—- —- OFF

Hot | / 2|——-+2 | ——-

—-|1 | | 1|—-| Light |

| 3|——-+3 / | ——-

—- —- Neutral|


Switch 2 is moved, Light is ON as there is now a path for the hot.

Switch 1 Switch 2

—- —- ON

Hot | / 2|——-+2 | ——-

—-|1 | | 1|—–| Light |

| 3|——-+3 | ——-

—- —- Neutral |


Either moving Switch 1 or Switch 2 will break the hot. And from the Off state, either Switch will make the connection.

Now for an example of a 4-way switch setup. The 4-way switch must be in-between the 3-ways.

3-way 4-way 3-way

Switch 1 Switch 2 Switch 3

—- —- —- ON

Hot | / 2|—–|1–3|—–|2 | ——-

—-|1 | | | | 1|—–| Light |

| 3|—–|2–4|—–|3 | ——-

—- —- —- Neutral |


Moving either switch 1 or 3 like before will turn the light off.

3-way 4-way 3-way

Switch 1 Switch 2 Switch 3

—- —– —- OFF

Hot | / 2|—–|1 3|—–|2 | ——-

—-|1 | | X | | 1|—–| Light |

| 3|—–|2 4|—–|3 | ——-

—- —– —- Neutral |


Switch 2 either connects 1to3 and 2to4 like shown or when it is flipped it cross connects 1to4 and 2to3. So in the case shown, if switch 2 was flipped, the path would go from switch 1 1-2, then switch 2 1to4, but would stop a switch 3 since there is no path and thus the light goes off.

You may add additional 4-way switches into the middle of the wiring. The 3-way switches must always be at the beginning and at the end of the circuit.

The wires in-between the the 3-way switches are called travelers. If you are pulling wire through conduit, best to use different colored wire like blue and orange. If you are using Romex, I prefer to use the 4 wire version which has a ground, a white neutral, and a black and a red. Little more expensive but from a safety perspective I prefer not to wrap a black piece of tape around the white wire to mark it as a hot.

So use the red and the black for your travelers between switches. On the 3-way switches, you cannot just connect the hot to one of the terminals and the travelers to the remaining two. Look at a diagram on the switch or most times there is a single terminal on the top or bottom for the in/out hot and then two terminals (one on each side) at the other end are for the travelers. Connecting the hot to the side that has one terminal and the travelers to the side that has two terminals is usually NOT the way to do it.

Same goes for the travelers in and out of a 4-way switch. The in is typically both sides of the top of the switch and the out goes on both side of the bottom of the switch. You can verify what is right or wrong using a simple continuity buzzer and comparing the results against the diagram above.

If you didn’t get the wires on the correct terminals, then you will find that it sometimes takes flipping two of the switches to get the light to turn on or off. With the proper wiring, any single switch that is flipped should cause the light to go on or off.

And please remember to turn the power off first. BZZZT sounds or arc welding your switch is not a good thing.

Choose the Right Switches for Your Local Area Network Upgrade in 2011

Mid-size and large organizations are entering another cycle of Local Area Network upgrades due to two recent technology changes. One is that 10Gb Ethernet are now standard connections on servers. The other is the widespread adoption of wireless devices like the iPad that has put a strain on Wireless Local Area Networks. This is forcing the adoption of 10Gb Ethernet for server and access layer uplink connectivity. Because the LAN has to be upgraded, organizations are looking ahead a few years to see what other technologies are going to have to be accommodated, and working with experienced network designers to put together a comprehensive plan. There are many considerations to take into account in order to get an optimal design for the Core, Distribution, and Access layer upgrades, and specific Cisco switch choices are important in order to implement the design well.

Core Network Upgrades

The core network is the primary site where application servers are located. Most organizations now have a combination of dedicated application servers alongside servers configured for hosting virtual servers, usually running VMware ESXi. The older servers tend to have multiple Gigabit Ethernet connections, so the core network switches are similar to the Cisco 6500 or a stack of Cisco 3750 Gigabit switches, with 50-300 Gigabit Ethernet ports total.

New servers are shipping with 10 Gb Ethernet on the motherboard, and the price for 10 Gb Ethernet cards has dropped so much that 1 Gb for servers is becoming difficult to cost justify. Especially since 10 Gb connections in the datacenter can be made with copper twinax cabling, it is difficult to make the decision to purchase anything else.

This is combined with the trend to moving away from storage in the servers, usually called Direct Attached Storage, and moving all storage into a fast and reliable storage array accessed by iSCSI, Fibre Channel (FC), Fibre Channel over Ethernet (FCoE), or ATA over Ethernet (AoE). Sometimes the storage array is accessed at the file level as Network Attached Storage (NAS) by either CIFS or NFS. It is much more cost-effective to access networked storage over 10G Ethernet connections than 1Gb Ethernet or even Fibre Channel because the price of a 10Gb Ethernet connection is much lower than an equivalent Fibre Channel connection. Because the storage array can be backed up and replicated to another site, it adds the additional benefit of improving business continuity capabilities.

If the organization is purchasing new storage arrays at the same time as the new servers, they can be specified for 10Gb iSCSI, 10Gb FCoE, or 10Gb AoE, but if the storage arrays are older Fibre Channel arrays, there has to be a provision made for connecting the new servers to the old storage. This is where the Cisco Nexus 5000 switches come into play. The Nexus 5000’s have the ability to connect to FC storage arrays, and merge the FC stream into a 10 Gb FCoE connection. This capability allows the organization to not have to purchase Fibre Channel Host Bus Adapters for every new server, and also limits the size of the Fibre Channel Storage Area Network that has to be maintained.

Not only can the Nexus 5000 provide Ethernet access to legacy storage for the new servers, it can connect the older 1 Gb servers into the system as well. This is done by connecting Nexus 2000 fabric extenders into the Nexus 5000 at 10 Gb speed, putting the Nexus 2000 boxes at the top of the rack of the older servers, and connecting the multitude of existing1 Gb Ethernet to the Nexus 2000 boxes. This architecture provides high speed server and storage access at the upgraded core of the network, as well as connectivity to new storage, legacy storage, and older servers.

All this server and storage connectivity should ideally be done at layer 2, without any layer 3 routing getting in the way and slowing things down. This is also the design recommendation for using Vmware with shared storage, because this allows for virtual server loads to be dynamically moved between physical servers while still accessing the same storage.

The core network upgrade can all be done independently of the access layer upgrade. If an organization has a large layer 3 switch like the Cisco 6500 or a stack of Cisco 3750’s at the core of their current network, the Nexus 5000 can be connected in with multiple 10 Gb Ethernet connections, providing the lowest cost upgrade while still retaining the core network upgrade performance benefits. For larger core networks, the Cisco Nexus 7000 can be used to provide a larger quantity of 10 Gb links to multiple Nexus 5000 switches.

Access Layer Switch Considerations

The access layer upgrade is sometimes usually driven by the need to have 1Gb desktop connectivity, but in many cases more by the desire of the organization to have 802.11N wireless access points. 802.11N full speed access requires 1Gb links, and multiple access points mean the uplinks from the switches have to then increase to 10Gb.

The access layer switches are used for workstation connectivity and are also used to power 802.11N wireless access points, 1 Gb IP phones, and Ethernet powered thin clients. In addition to high speed wireless, the access layer has to accommodate Voice, Video, and Virtual Desktop Infrastructure. For all these requirements, the access layer switches have to have more than just raw bandwidth. They also need to be:

  1. Secure – with voice, video, and desktop sessions on the LAN, the switches must have security features that can prevent them from getting attacked with MAC address floods, rogue DHCP servers, gratuitous ARP’s changing the default gateway, and other attacks that can be launched by malware. This security must be implemented at the switch level.
  2. Fast – As traffic goes through multiple switches, each hop can add latency. Instead of store and forward of the Ethernet frames, switches should use cut-through to move things along. At the choke points of the LAN, which are the uplinks, bonding multiple uplinks together can improve speed if done properly.
  3. Quality of Service – The switches should be able to reclassify traffic at the switch port level as it enters the LAN in order to prevent untrusted applications from claiming the highest traffic priority. Then throughout the LAN infrastructure, higher priority applications like voice, video, and virtual desktop sessions have to be given priority over other traffic like file transfers and print jobs.
  4. Reliable – Long Mean Time Between Failure, well tested code to limit bugs, good support from the manufacturer in case there is a software or hardware issue.
  5. Manageable – The switches have to be able to be managed remotely, have SNMP information, be able to log, and be configurable. GUI interfaces are OK, but there is nothing like a solid command line interface for rapid configuration, troubleshooting, and repair. Ideally the switch management should be integrated into a network management application.
  6. Power Density– Switches have to be able to support the power density of the planned devices. Most switches can not power all ports at the highest levels, so it is important to calculate the expected power load of the switches and specify the correct ones.
  7. Power and Cooling – Since many devices like access points, video cameras, and IP phones are powered from the switches, all access layer switches require properly sized Uninterruptable Power Systems. A basic switch consumes about 60 Watts. A 48 port switch with 15 Watt phones plugged into every port will require at least 600 Watts. Put a few of those switches in the closet an you are looking at not only upgrading to a much bigger UPS, but also better cooling.
  8. Redundancy Capable – The only place that there should be a single point of failure is at the access layer in the closets. If a switch fails, only the devices connected to that switch should lose connectivity – all others should work around the issue. In most cases that means dual uplinks from each closet to a redundant distribution layer at the core, and these uplinks should be able to link together into a port channel so that the full bandwidth of the uplinks can be used.

Distribution Switch Upgrades

The distribution layer is where all the access layer uplinks come together. Most of the organizations tend to have a large main campus with an extensive LAN. Many of them have a LAN that is set up in a fashion similar to the Cisco High Availability LAN designs of a few years back. This is 100 Mb Ethernet at the access layer and multiple1Gb fiber uplinks to the core/distribution switches. The larger networks have multiple distribution switches and separate core switches, but most mid-size organizations have the collapsed core/distribution model.

The Nexus 7000 enters the discussion when an organization considers upgrading the fiber uplinks on the access layer switches from 1 Gb to 10Gb Ethernet. As soon as an organization internalizes the need for 1Gb access layer switches and 10Gb uplinks, the place where these uplinks all come together has to be upgraded as well. The logical choice for this upgrade is the Nexus 7000.

The Cisco 6500 is an excellent switch that has versatility and speed. The problem is that most of the installed base has Sup720 supervisors. These supervisors have a maximum connection speed to any one line card of 40Gb, which means an entire 6509 can only have 32 10Gb Ethernet ports without oversubscription. It is more cost-effective to either replace the Cisco 6500 with a Cisco Nexus 7000, or change the 6500 to a 1Gb access-layer switch. Just about every 1Gb blade on the 6500 can be upgraded for Power over Ethernet, and with bigger power supplies, the 6500 makes an excellent access layer switch.

One of the catches in this 1Gb to 10Gb upgrade is the fiber issue from the access closets. The requirements for 10Gb fiber are different than for 1Gb fiber. 1 Gb fiber connections can be made for a considerable distance over multi-mode fiber with the use of long-haul SFP’s and mode conditioning cables. This does not work for 10Gb Ethernet over fiber! Longer multimode fiber runs have to be re-pulled with single mode fiber in order to support the 10Gb uplink upgrade.

Cisco Switch Models

Cisco switches have all of the above listed attributes, and sometimes more importantly, there are always good local Cisco resellers in every market that are able to create a custom design based on the organization’s needs, then assist with the installation, configuration, and ongoing support. Other brands of switches can be used, but having local experts available is an important consideration.

There are a few Cisco switches that we use in every design, because they have the right combination of price and capabilities. These are used in most LAN design situations, unless there are special requirements.

Cisco 2960-S. This is an excellent all around access layer switch. It can be set up as a standalone switch, or four of them can be stacked together with FlexStack when fitted with the optional stacking module. The uplink ports can be set up as either 1 Gb or 10Gb, and the stack uplink ports can be bonded together to create a reliable connection back to the distribution switch. The stack can be managed as one switch, and the stack connection speed is fast at 20 Gbps. This is a layer 2 switch.

Cisco 3750-X This is a great distribution switch or core/distribution switch. It is faster than the 2960-S and can route at high speed, making it an excellent layer 3 switch. The switch can have up to 9 in a StackWise stack, which can be managed as a single switch, and the stack connection speed is very fast at 64 Gbps. There is a model of this switch that has six 10Gb ports, so it can be used as a core/distribution switch for smaller environments.

Cisco 4500. This is a good access-layer switch. It can have a high density of 1Gb ports, and multiple 10Gb uplink ports. Even though it is a chassis switch, it should not usually used at the core layer of the network, since it can easily be oversubscribed, leading to potential server and storage performance issues.

Nexus 5000 This switch has 20-40 ports that can be used for 10Gb or 1Gb connections. It is used to connect servers, Nexus 2000 switch extenders, and to connect to Layer 3 switches. There is also a larger version of the Nexus 5000 that can be enabled for Layer 3 switching as well, the 5596.

Cisco Nexus 7000. This is the switch of choice for multiple 10G uplinks and very fast layer 3 routing. It works well with the Nexus 5000 and Nexus 2000 series switches, completing the Nexus core and distribution switch design.

Remote Site Switching

For remote sites that are away from the main campus, unless they are big, the LAN should be designed with the knowledge that 100 Mbs is usually faster than required. Most remote sites connect back to the network core over a Private Network such as a Metro Ethernet connection, and MPLS Wide Area Network, or the Internet through a Virtual Private Network. The speed requirements of remote site LAN’s can be much lower. This switches we usually use for this design are:

  • Cisco 2960 with Gigabit uplinks
  • Cisco 3750 with Gigabit ports for the uplinks

If 1Gb connections to the desktop are preferred, the Cisco 2960-S and Cisco 3750-X listed above are a good combination.

One of the most useful devices to increase reliability of the switching infrastructure is a redundant power supply. A good rule of thumb is that moving parts break first, so the most likely item to fail in the switch is the power supply or the cooling fans. Every single power supply stackable Cisco switch and most of the smaller routers have a DC port in the back. That is for backup power.

The Cisco RPS2300 can be used for redundant power. It has dual power supplies, and can connect to six different devices. If those devices ever lose their power supply, then the RPS box will provide power via the DC power port, and everything will continue to run.

Putting together a LAN upgrade design is a straightforward process. The difference between a good design and a poor one really come down to the details. No one wants to get a cheap network that will not handle the needs of the organization in the next few years and have to be replaced, and conversely most organizations would not want to pay for an oversized network that is too expensive.

It is best to get a design done from a reseller that regularly sells deploys the products they are recommending. Good Value Added Reseller’s will stay on top of the new products that are out, and will change their recommendations are based on the customer’s needs and budget. Many will do this at no cost as part of the sales process, and in many cases they are better than consultants or switch manufacturer’s, because the VAR’s are responsible for putting together designs that will work when they do the the deployment!

Dimmer Switches – a Guide to Types available and Their Use

The Use of Dimmer Switches

Basically dimmer switches are use to vary the brightness of light bulbs. They are used mainly for incandescant bulbs and halogens, but there will shortly be on the market a compact fluorescent (energy saving) bulb which can be controlled with a dimmer switch, although these bulbs will be relatively expensive. Dimmer switches save energy, in that a bulb dimmed to, say, half power only uses about half the electricity, there being very little consumption in the switch itself. Most cheaper dimmer switches contain a high current variable resistor which is run in series with the bulb. Some more expensive ones dim the bulb electronically, but for normal home use I would recommend the former. Some contain fuses, and if the dimmer switch fails, check if a fuse inside it has blown. This is particularly liable to happen if the bulb blows.

Different Types of Dimmer Switches

The most common is a wall switch, which replaces an ordinary light switch. They are easy to fit. There are 2 terminals on one way switches, and the wires can fit either way round. There are 3 terminals on 2 way switches, usually marked ‘C’, ‘L1’, and ‘L2’. Just connect the wires on the dimmer switch exactly as they were on the original switch. A 2 way switch can be used as a one way one, leaving either the ‘L1’ or ‘L2’ terminal not used. In a 2 way switch system, only one switch is replaced with a dimmer, and this controls the brightness. The other switch just switches the light(s) on or off, the brightness being determined by where the dimmer switch is set.
Pull cord dimmer switches for bathrooms are available. With these, you just keep pulling the cord, until the desired brightness is reached.
In-line dimmer switches for floor and table lamps can be wired into the mains flex. Alternatively, for these lamps, plug-in dimmer swithes are very simple to use. No wiring is involved; the unit plugs into the mains socket, and the lamp plugs into this. Dimming is controlled by a small rotary knob on the plug-in unit.

Considerations When Using a Dimmer Switch

Dimmer switches are rated with maximum and minimum load wattages, say typically 40W to 400W. This means the total bulb wattage that the dimmer switch controls must be within these limits. If using mains halogen bulbs, leave plenty of spare capacity; ideally double the wattage of the bulbs to get the maximum load wattage of the dimmer switch. 12 volt halogen bulbs can give problems with dimmer switches. If you want to use one, make sure the transformer can be used with a dimmer switch and vice versa, otherwise the lights may flicker and there may be an appreciable hum. Your retailer will give you advice on this.
There are commomly two types of dimmer switches – push on/push off and those which click off or on at the end of the knob rotation. The former have the advantage that the previous dimmed setting is maintained the next time it is switched on, but I prefer the latter, as I think they increase bulb life. The bulb is always brought up from zero to full brightness, rather than applying the full voltage to it immediately it is switched on. This more gradual increase is better for the life of the bulb.

Dimming Low Energy Bulbs

These cannot generally be easily dimmed. As has been said above, a compact fluorescent will soon be available which can be used with a dimmer switch, but I think a better option is to buy one which can be dimmed with an ordinary switch. These are already available – see the link below. LED lighting again cannot be easily dimmed at present, but this is generally not very bright, and dimming is usually not needed with these.