We are moving! New user registrations to this forum is now closed. Posting here will be disabled eventually. Please go to the new community for your Snakeoil OS support and other discussions. (June 03)

New community website: https://community.snakeoil-os.net (June 03)

Join us in the new community by Creating a new account. (June 04)


Using the Snakeoil machine as a bridge
#1
I have added a second dedicated network card to my Snake-oil computer so that the CPU of this computer doesn't have to bother about handling network traffic. Besides providing a better sound quality this additional network card also gives the option to configure the Snakeoil machine as a bridge between the NAS and a renderer like pictured below.

NAS --> Switch/FMC --> Snakeoil machine (LMS) --> Renderer

According to posts on forums having a direct connection between the server and the client might have benefits for the sound. However when trying to setup this bridge via bridge-utils and runnning the "brctl addbr br0" command I get the message "add bridge failed: Package not installed”.Does this mean that in the current kernel of Snakeoil this function has been disabled so that bridging is not supported?
Reply

#2
Sorry for the late reply. Didn't see this pop up in new messages for some reason.
 
(01-Apr-2017, 07:51 AM)Leonard Wrote: According to posts on forums having a direct connection between the server and the client might have benefits for the sound. However when trying to setup this bridge via bridge-utils and runnning the "brctl addbr br0" command I get the message "add bridge failed: Package not installed”.Does this mean that in the current kernel of Snakeoil this function has been disabled so that bridging is not supported?
Yes, bridging is disabled in the kernel.

Bridging is actually not a good option in terms of latency because the packets have to be "copied" twice. This is an expensive CPU operation, and best done on a switch with very fast forwarding speed. If you add a bridge in a network that's full of traffic, then the whole thing gets bogged down with your bridge PC becoming the bottleneck.

Setting up a different IP network to forward packets from one NIC to another is also a waste of computer resources, worse if using low end cards (e.g. Realtek).

NIC are not designed to forward traffic. Most PC network cards do not (some even do checksums in software which makes it worse). But good network switches are.

If you want good networking performance, these are some suggestions: 
  1. Use Intel network cards
  2. Use jumbo frames (not sure what size is optimal, so you can have a play with that)
  3. Use a good network switch. I use HP ProCurve Layer 2 switch because they are fanless, but any layer 2 or 3 switch from Cisco, Juniper, etc should work also.
  4. Use high quality network cables, how the wires are unwound before terminated affects the bandwidth of these cables. Again not sure what is optimal, just have to keep doing trial and error on this.
In the future Snakeoil OS will support LACP trunking. What does this is use "team" NIC up into a "single" connection, e.g. combining 2x 1 Gbps NIC into a 2 Gbps link back to your switch. This reduces latency because usually one network card is used to send data out to the switch, and the other network card receives data from the switch. You'd need at least a layer 2 switch to do this.

Give these a go and tell me how you find it. Thumbs Up
Snakeoil Operating System - Music, your way!
Reply



Bookmarks

Possibly Related Threads…
Thread Author Replies Views Last Post
  [split] Possible To Load Snakeoil OS in RAM wxrbbs 14 924 09-Jun-2025, 06:43 AM
Last Post: Snoopy8
  Snakeoil Music server & Snakeoil its own endpoint hkphantomgtr 9 1,992 22-Jul-2024, 05:51 PM
Last Post: Snoopy8
  Working on new Snakeoil release - 1.3.x (Codename Measurements) agent_kith 42 11,471 19-Nov-2023, 10:53 AM
Last Post: agent_kith
  Make SnakeOil install much easier Snoopy8 5 1,931 24-Aug-2023, 03:28 PM
Last Post: agent_kith
  Automatic Ripping Machine Coacharnold 1 1,727 08-Jun-2021, 08:25 AM
Last Post: Snoopy8



Users browsing this thread:
2 Guest(s)

[-]
Our Sponsors

[-]
Welcome
You have to register before you can post on our site.

Username/Email:


Password:





[-]
Latest Threads
Android Firefox issues with forum
Last Post: agent_kith
Yesterday 04:45 PM
» Replies: 21
» Views: 1200
[split] Possible To Load Snakeoil OS in ...
Last Post: Snoopy8
09-Jun-2025 06:43 AM
» Replies: 14
» Views: 924
Snakeoil 1.4.3 (High End U3)
Last Post: hkphantomgtr
05-Jun-2025 03:58 PM
» Replies: 67
» Views: 6186
Snakeoil with Ubuntu Desktop ?
Last Post: Snoopy8
02-Jun-2025 09:38 AM
» Replies: 8
» Views: 564
Add IR remote control using Flirc USB in...
Last Post: Snoopy8
31-May-2025 03:50 PM
» Replies: 5
» Views: 408
Work In Progress: 1.4.4
Last Post: hkphantomgtr
29-May-2025 11:44 PM
» Replies: 44
» Views: 3348
SQ difference - Raspberry Pi vs x86_64?
Last Post: Snoopy8
27-May-2025 02:16 PM
» Replies: 42
» Views: 3644
Snakeoil 1.4.0 (High End)
Last Post: aabman
25-May-2025 11:35 AM
» Replies: 93
» Views: 10968
new install issues
Last Post: carlodim
23-May-2025 09:56 AM
» Replies: 42
» Views: 2730
Is this project still alive?
Last Post: agent_kith
20-May-2025 03:11 PM
» Replies: 10
» Views: 722

[-]
SnakeoilOS Mission Statement

Our mission is to create a free to use computer OS that is easy to install, intuitive to operate and play music that will connect and engage with you emotionally.

SnakeoilOS gives you the freedom to spend more time on listening, enjoying and exploring music. Wasting time on computers is now a thing of the past! Everything is constantly evolving/improving. Please check back often for updates.

If you like this project, do show your support with a small token donation. All donations collected will be used to run this website, and for purchasing new equipment for the project.


Powered By MyBB, © 2002-2025. Theme © Melroy van den Berg.