Skip to main content
Contributor I
April 5, 2020
Answered

How to make SonosNet stop carrying lan traffic

Is it possible to disable the feature of sonosnet that carries non-sonos traffic to an ethernet device connected to a remote speaker? I'll try to explain my setup:

In my office, I have my primary router/internet gateway, various computer equipment, and a sonos Play 1, all connected via ethernet. I also have an ethernet cable that runs from the office to the living room, which is on the opposite side of the house.

I have several other sonos speakers around the house, connected to the other speakers using SonosNet.

In the living room, I have an ethernet switch (connected to the cable from the office) that connects to several devices, including a Sonos Connect, and a second wifi router running in 5GHz-only access point mode.

I was experiencing significant latency/poor connectivity on my laptop when connected to the living room access point, and I couldn't figure out why until my wife unplugged the sonos speaker in the office (thinking it wasn't important), which disabled the Sonos in the entire house, and also disconnected the living room AP and other equipment connected to it from the network. The wired connection between the office and living room was still connected, but it seems it wasn't being used in favor of routing traffic over SonosNet (which went down when the office speaker was unplugged).

The obvious solution is to disconnect the Sonos Connect from the ethernet network, relying only on the speaker in the office to connect SonosNet to the rest of the network. The complicating factor is that I'm doing various small electrical work around the house, and frequently shut off power to various rooms. The router is on a UPS and unaffected, but I'd like the Sonos speakers around the house to keep working when _either_ the speaker in the living room or the speaker in the office have power.

Is there anything I can configure in SonosNet to tell it that there are two nodes with upstream network connectivity, so that it will failover from one to the other? If I put some sort of "smarter" networking device in the living room, like a managed switch or a router, can I accomplish the same thing that way?

I'm a software engineer by trade, and a linux buff, so solutions like editing config files or manually making API calls are easy for me.

 

This topic has been closed for further comments. You can use the search bar to find a similar topic, or create a new one by clicking Create Topic at the top of the page.
ratty
rattyAnswer
April 5, 2020

Wiring multiple Sonos devices is, in general, to be recommended since it improves SonosNet coverage and resilience. 

Sonos uses STP (Spanning Tree Protocol) to determine topology and avoid network loops. If the wired path between such devices blocks STP this can result in a loop going uncorrected. Broadcast storms eventually bring down the network.

In this instance the wired path -- which should always be preferred -- is apparently being bypassed wirelessly by SonosNet. Unless there’s a simple wiring fault this is probably due to another STP problem: higher path cost on the wired path compared to the wireless path. The wired path therefore loses out and is blocked. Typically this higher path cost is caused by switches using RSTP (Rapid Spanning Tree Protocol) instead of the classic STP.

If we had a complete description of the network topology, together with make/model of devices, we may be able to advise further.

18 replies

Chris
Lead Maestro
April 5, 2020

You can create a network storm with multiple sonos devices both wired and wireless on (it depends on router and how well it handles STP)

Best thing to do is either only have one Sonos device plugged in via lan 

or 

if want to leave other Sonos devices plugged in lan go into settings...system for that device and disable the wireless for the additional units plugged in router.  That way they will only communicate via lan and not both (creating the storm).

Respect the Queue (2)Move (3)Beam (1) Era100 (2)ARC (1)SonosOne (1)Playbar (4)Play5 (4)Play1 (3)Play3 (1)Port (2)Connect (1) Roam (2) Ace (1)Connect:Amp (4)Sonos Amp (1)Sub + (9) Echo + Smartthings; (2)Play)
ratty
rattyAnswer
April 5, 2020

Wiring multiple Sonos devices is, in general, to be recommended since it improves SonosNet coverage and resilience. 

Sonos uses STP (Spanning Tree Protocol) to determine topology and avoid network loops. If the wired path between such devices blocks STP this can result in a loop going uncorrected. Broadcast storms eventually bring down the network.

In this instance the wired path -- which should always be preferred -- is apparently being bypassed wirelessly by SonosNet. Unless there’s a simple wiring fault this is probably due to another STP problem: higher path cost on the wired path compared to the wireless path. The wired path therefore loses out and is blocked. Typically this higher path cost is caused by switches using RSTP (Rapid Spanning Tree Protocol) instead of the classic STP.

If we had a complete description of the network topology, together with make/model of devices, we may be able to advise further.

buzz
Grand Maestro
April 6, 2020

Odd things can happen. Keep an open mind.

I was once investigating a wired network that was slower than expected. I had a SONOS player, computer, NAS, and various A/V kit connected to a network switch. The computer’s Internet connection was about half the expected speed (this was an ADSL connection) After a bunch of head scratching I finally realized that the LAN connection from the rest of the house to the local switch was not working. The SONOS player had figured this out and shared its wireless connectivity with the switch. This was not a great wireless location for a Player. One normally assumes that if that LAN connection goes down, everything stops, rather than slowing down. There had been some construction and the LAN cable to the switch had been damaged.

mbbushAuthor
Contributor I
April 6, 2020

Thanks for all the advice! This was much faster and more technically detailed than I expected; I’m impressed.

 

Here’s the full network topology:

In the office:

Cable modem → WAN port of Netgear R7800 running DD-WRT, which broadcasts wifi networks on both 2.4 and 5GHz.

Lan port of Netgear R7800 → D-Link GO-SW-8G unmanaged 8-port gigabit switch

The R7800 is on top of a motorized sit-stand desk, and I’ve only run two ethernet cables up and down, using the D-Link switch for everything else.

Several devices are connected to the D-Link switch, including the office Play:1, a couple desktops, and the cable to the living room. When I ran the cable to the living room I actually ran two, so there’s a backup available, or I could home-run one of the devices in the living room.

In the living room:

Cable from office → Rosewill RC-415 unmanaged 5-port gigabit switch → Sonos Connect → Amazon Fire TV (I’m using both ethernet ports on the Connect because it was easier given where the devices are physically located, but I have other options if that’s potentially problematic)

Also connected to the Rosewill switch in the living room is an Asus RT-N66U in access point mode broadcasting a 5GHz network only, with the same SSID as the one from the office. The switch is connected to one of the LAN ports and the DHCP server is disabled.


Other Sonos speakers elsewhere in the house:
1x Play:5
3x Play:1

mbbushAuthor
Contributor I
April 6, 2020

I definitely want to keep an open mind. I know just enough about networking to know that there’s a LOT that I don’t know.

 

I did a little googling and found the specifications for both switches (Rosewill and D-Link) but I didn’t see any mention of STP, RSTP, or any references to 802.1 protocols.

 

If I were to be experiencing a “network storm”, how would I know? Is there some tool I can use to see that that’s happening?

 

Ratty, it’s great to hear that wiring multiple SonosNet devices is a generally-supported and recommended use case. Improving resilience is exactly what I want.

 

At the moment, with the Sonos Connect disconnected from ethernet, I have sub-millisecond ping times between my desktop (connected to the D-Link switch in the Office), and the Asus WAP (connected to the Rosewill switch in the Living Room), so the wired path is (at least for now) strong.

 

Are there any changes you can recommend I make to my setup that would improve resilience? Or other debugging steps I can do to gather more data?

ratty
April 6, 2020

Rewire the Connect. Wait a couple of minutes then go to http://IP_address_of_a_player:1400/support/review and click on Network Matrix. You can choose a hard IP from Settings/System/About My System. Take a screenshot and post it. Let’s confirm what’s happening to the topology.

I may then ask for a bit more data.

 

As for a network storm, you’d certainly know about it. The LAN would grind to a halt, with port LEDs going crazy.

mbbushAuthor
Contributor I
April 14, 2020

Yesterday I had a network storm. I tried to capture the network matrix page at that time, but the lan wasn’t carrying any traffic, and the port LEDs were all blinking away at top speed. The storm happened without warning after not changing anything for about a week (both the office and living room had been plugged in the whole time). Thanks to you folks here, I knew what was going on, because those would have otherwise been confusing symptoms.

 

Network matrix from after the storm was resolved (with the office ethernet cable unplugged):

Office ethernet cable unplugged

Some other screenshots from different times

Living room ethernet unplugged

 

Both plugged in, network working fine
Both plugged in, I think the speakers were still working, but for some reason the noise level spiked. The only thing that I can think of that was different was that this screenshot was captured at nighttime.

 

BCM
April 14, 2020

Not seeing how to subscribe to this thread to see the outcome so I’m commenting. Fantastic read, boys. Well done.

 

Uh. Found it. ‘Add to favorites.’

buzz
Grand Maestro
April 14, 2020

ODFM ANI level: ‘0’ is best, ‘9’ is worst and the unit is struggling. “Inbound” and “Outbound” are indications of wireless signal strength.

 

I have variable wireless too. Next door is a medical facility and there is a power line running by the house. I’m suspicious that one or the other is radiating something obnoxious. I haven’t been able to identify any regular pattern, but afternoons tend to be quieter than late night. It is possible that the power company is reading meters late at night. I’ll have all red cells on the left and some times all green except for one yellow. Generally, I don’t have SONOS wireless issues.

I can’t point to any smoking gun, but the source of your interference might be closer to the Living Room and Play Room and farther from the Bedroom.

ratty
April 14, 2020

There’s nothing odd about the matrix pictures at all. The topologies are correct.

To double-check, wire both Office and Living Room then go to http://Living_room_IP:1400/status/showstp. On line 5 it should say

 root port * path cost **

Is the path cost 10?