My home network is a little… disorganised. I have 2 or 3 switches residing around the house, PoE, WiFi, and various cobbled together partially wired sections. Time to get organised. Time to get a rack!
I like racks
If you haven’t seen 4Cabling, go have a look. They sell all sorts of networking gear at reasonable prices and they deliver fast. They shipped a rack to me in 24 hours for $10 shipping. I have no idea how that is even possible, given that I’m two states away.
I purchased a shiny new 6RU wall mount rack, a patch panel, a 24 port GigE switch, and 24 patch cables that are too short.
To mount a rack, here are the tools you will need:
- hole saw (maybe)
You will also need timber screws or timber bolts - with enough strength to hold the rack to the wall.
Installing the cabinet
First things first. Measure up the network cabinet. Have a look at all the access points. You need to decide where the cables are going to come in. From the top, side, or base. Remove the cover over that panel. The front door will (hopefully) mount on either side.
Find a nice place to mount it. Check that you have space to open the door.
Double check those measurements. Go back to the rack and look for some mounting holes in the back. Those holes should be in a removeable mounting panel. Remove the panel.
Go back to your installation location. Use a stud finder to find two wall studs (unless you have brick). Mark the centre of the studs. The stud spacing should match up to 2 of the holes in the mounting panel. Match the holes to the studs, and mark the holes on the wall. Hold a level up and ensure the holes are level (you may need to adjust the holes up or down a bit.)
I broke a drill bit, then I had to use a bigger drill bit to drill it out.
This is the type of bolts I am using to mount the cabinet. They are high tensile galvanised wood bolts. To use these, first pre-drill a hole the same width as the timber bolt. The hole should be slightly deeper than the length of the bolt. If you don't do this, it will be very hard to drive in.
Use a rachet to drive the bolt in (going through the mount plate and into the stud). Put some petroleum jelly on it first, so it is easier to drive in. Make sure you go slowly and carefully. If you go too fast, you will snap the head of the bolt off. It is easier to snap than you might think.
At this point, check the mount plate is level. You may need to loosen one of the bolts and adjust up or down slightly, then re-tighten. If it is not level, your cabinet will not be level.
Remember how I asked if you want side or top entry cables? That's important now. You will need to drill a hole with a hole saw in either the ceiling or wall for the cabling to run through.
I used 90mm PVC (storm water!) pipe. I put a 90 degree bend in the ceiling (from the top!) and attached 2m of pipe. This means I can easily feed cable through from inside the ceiling. It's a bit neater to use proper conduit, if you have it on hand.
Now lift the cabinet up into place. I found that I had to bend the metal mounting tabs on the mount plate outwards slightly. You can probably remove the door to lighten the load a little. Once done, re-mount and open the door and put a couple of screws back into the mount plate. Stand back and admire yourself..*cough*.. admire your work.
All done! The rest is easy. Just install a cat6 patch panel, gigabit switch, and run cable through your walls. No worries mate.
I’ve had network gremlins for a few months now. Sometimes my WeMo switches are visible, sometimes not. Chromecast is the same. My devices were screaming for attention, but my router wasn’t listening. Lets look at Multicasting (and Broadcasting).
What is broadcasting?
At a basic level, a network broadcast is when a device spams the whole network with a message.
In computer networking, broadcasting refers to transmitting a packet that will be received by every device on the network.
Why would a device want to do this? Well, lots of reasons.
Take your home network connection for example. When your laptop connects to your home network, it broadcasts a DHCP request. Your router replies with an ipaddress and off you go.
You should also be aware of Multicast.
What is multicasting?
Multicast is similar to broadcast - we are sending a message to multiple nodes, but in this case, we are sending it to a subset of nodes (rather than spamming everyone).
As far as your router is concerned, broadcasts and multicasts are very similar. If you have an issue with one, you probably have an issue with the other.
The symptoms of broken Multicasting
In my case, I had two issues that indicated multicasts were not configured properly.
The first issue was my Belkin WeMo light switch and power socket. These are network aware IP devices that can be switched on or off with my phone. I could control them via 3g, but not over my LAN. This seemed odd, but makes sense when you learn how the WeMo devices work.
Discovery Protocol in action
When away from your home network, WeMo devices register through Belkin’s cloud service. They then accept push messages. So, your phone sends a “light on” command to the WeMo cloud, the WeMo cloud then sends a push message to the switch.
On your home network, the cloud is not used - uPnP kicks in. Your phone sends a multicast discovery message along the lines of “HEY! any WeMo devices out there?”. The WeMo devices pick that up, kick off a handshake with your phone, and away you go.
If the initial discovery multicast message is not received, the WeMo devices are not found.
My second issue was with my ChromeCast. Sometimes it would be discovered by my phone, sometimes not. ChromeCast works by using the DIscovery And Launch (DIAL) protocol. The discovery part uses Simple Service Discovery Protocol (SSDP), sending a multicast message to the address 18.104.22.168. The ChromeCast response is a uPnP UDP message, containing address details for the ChromeCast device.
If the initial Multicast packet is not being sent/received, the ChromeCast will never respond - meaning my phone will never find it.
My router had some multicasting options configured poorly, however uPnP was turned on. This resulted in intermittent discovery of the ChromeCast.
As an interesting side note, the DIAL protocol was co-developed by Netflix and YouTube (with help from Sony and Samsung). My buddy Jase did something similar with discoverable sound hardware a few years back - but he didn’t give it a cool name, so no one heard about it.
Suggested Router Settings
The settings below are the suggested settings for working multicasting on your home WiFi network.
Description: If turned on, this will prevent wireless clients from messaging each other directly. This means no fileshares, no network games, no printing, no nothing. All you can talk to is the router. Unless you are an Internet Cafe, this should be off.
Description: As per Wikipedia: is the process of listening to Internet Group Management Protocol (IGMP) network traffic. The feature allows a network switch to listen in on the IGMP conversation between hosts and routers. By listening to these conversations the switch maintains a map of which links need which IP multicast streams. Multicasts may be filtered from the links which do not need them and thus controls which ports receive specific multicast traffic.
Many multicast capable media devices are known to need this setting turned on. This includes the AppleTV, and ChromeCast.
- HTMIX - (speed)
- OFDM - (speed)
- CCK - (speed)
The first part refers to the modulation, the second part the speed. Each modulation is (generally) aligned with a Wireless speed/standard:
- CCK - 802.11b
- OFDM - 802.11g
- CCK - 802.11b
The speed portion is (min Mbit/s)/(max MBit/sec). The general rule is that the minimum should be a little higher than the maximum bandwidth your streaming device will use. Note that the higher setting you use here, the more you will restrict your WiFi range.
- Beacon Interval: (number)
Your router periodically sends a “Beacon” packet. This does several things:
- Includes a Date/Time used by devices to syncronise
- Advertises the network capabilities
- Announce the SSD and presence of the WiFi router.
- Acts as a “heartbeat” packet
Generally, decreasing the beacon setting will mean more administrative overhead for your network, but you gain increased reliability. Some devices (Apple TV again) require 50ms or less to work.
After the changes have been made above, you will probably need to restart your router. After I made the above changes, I found all WeMo devices were visible and the ChromeCast icon was now appearing in NetFlix. Happy days!
The multicast and broadcast images on this page are sourced from Wikipedia.