Pass traffic via specific NIC?


Recommended Posts

58 minutes ago, sdamaged said:

Is it possible to have each client in my house access my unRAID server via a specific network card?  My server has a quad port NIC, so this would be useful

 

Any ideas how i do it?

 

thanks

 

What are you hoping to accomplish by doing that?  Are you after more bandwidth between client and server?  There are easier ways to get that without going the Rube Goldberg route.  Post more details on what your goal is so we understand better.

Link to comment

OK ,i'll try and be a bit more specific

 

I have a media centre in the lounge and bedroom, and if i'm copying a large number of files onto my server from my desktop PC, the media centre in the lounge tends to pause the movie the kids are watching and gets stuck buffering which really annoys them

 

I am assuming if i can pass traffic via a specific NIC then the network connection to the unRAID server won't be congested and causing the throughput to be throttled

 

hope this makes sense!

 

thanks

Link to comment

I'm wondering if this would work

 

Set a different static IP for each NIC via the unRAID network tab, and then have each client connect to the unRAID server via one of those IP addresses.  This *should* in theory ensure that a client is accessing the unRAID server via a specific IP?

Edited by sdamaged
Link to comment

you could assign individual ip address.. and configure each client.

 

or

 

just go to settings>network sexting and change to a bonding mode that fits your network and let the server do the load balancing.

 

------

 

mode=1 (active-backup)

Active-backup policy: Only one slave in the bond is active. A different slave becomes active if, and only if, the active slave fails. The bond's MAC address is externally visible on only one port (network adapter) to avoid confusing the switch. This mode provides fault tolerance. The primary option affects the behavior of this mode.

mode=2 (balance-xor)

XOR policy: Transmit based on [(source MAC address XOR'd with destination MAC address) modulo slave count]. This selects the same slave for each destination MAC address. This mode provides load balancing and fault tolerance.

mode=3 (broadcast)

Broadcast policy: transmits everything on all slave interfaces. This mode provides fault tolerance.

mode=4 (802.3ad)

IEEE 802.3ad Dynamic link aggregation. Creates aggregation groups that share the same speed and duplex settings. Utilizes all slaves in the active aggregator according to the 802.3ad specification.

  • Pre-requisites:
  • Ethtool support in the base drivers for retrieving the speed and duplex of each slave.
  • A switch that supports IEEE 802.3ad Dynamic link aggregation. Most switches will require some type of configuration to enable 802.3ad mode.

mode=5 (balance-tlb)

Adaptive transmit load balancing: channel bonding that does not require any special switch support. The outgoing traffic is distributed according to the current load (computed relative to the speed) on each slave. Incoming traffic is received by the current slave. If the receiving slave fails, another slave takes over the MAC address of the failed receiving slave.

  • Prerequisite: Ethtool support in the base drivers for retrieving the speed of each slave.

mode=6 (balance-alb)

Adaptive load balancing: includes balance-tlb plus receive load balancing (rlb) for IPV4 traffic, and does not require any special switch support. The receive load balancing is achieved by ARP negotiation. The bonding driver intercepts the ARP Replies sent by the local system on their way out and overwrites the source hardware address with the unique hardware address of one of the slaves in the bond such that different peers use different hardware addresses for the server.

Edited by 1812
  • Upvote 2
Link to comment

Sounds like to me maybe you are using a hub on your network instead of a switch? The difference is that a hub broadcasts traffic on every port whereas a switch doesn't, it only broadcasts on the sending and receiving ports. Check your hub and let us know its make and model number? Also what is your network cabling? Cat5, Cat5e? It says on each cable, or at least it should.

Link to comment
On 3/12/2017 at 4:05 PM, sdamaged said:

OK ,i'll try and be a bit more specific

 

I have a media centre in the lounge and bedroom, and if i'm copying a large number of files onto my server from my desktop PC, the media centre in the lounge tends to pause the movie the kids are watching and gets stuck buffering which really annoys them

 

I am assuming if i can pass traffic via a specific NIC then the network connection to the unRAID server won't be congested and causing the throughput to be throttled

 

hope this makes sense!

 

thanks

 

What are you using to watch movies from your server?  Is it a disk I/O bottleneck or network bottleneck that is causing your buffering issues when transferring files?  Watch the stats tab (Dynamix System Statistics plugin) while in that scenario you describe and see what is going on.  If network utilization is low and CPU and/or disk is high then most likely disk I/O bound and increasing network bandwidth will not get you what you are after.

Link to comment

Honestly i'm not 100% sure

 

Watching Kodi via some Intel NUC clients (5-30GB MKV files).  CPU usage on the unRAID server is fairly low (Intel L5630 CPU) and disk IO seems normal, and isn't jumping into red from looking at Netstat

 

I can only assume it's network congestion, but it seems like it shouldn't be happening

 

I'll try the load balancing option inside unRAID and see how that works

 

thanks

Edited by sdamaged
Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.