Jump to content
XPEnology Community
  • 0

Link Aggregation - traffic flow on only 1 NIC


vanst

Question

Hi All,

 

I set up up a Static LAG with TL-SG108E. NIC teaming has been enabled on the conputer and when downloading / upload something, I can see that packets are distributed between 2 NIC.

The same set up had been applied for the NAS, I choose "Balance XOR" since the switch is not supporting dynamic LAG.

 

image.thumb.png.7cb3f77e79a07a2a58df605dab35f8ac.png

 

image.thumb.png.e85e8376ab5468868cc3d22ea57c0366.png

 

However, when download / upload a file to the NAS via HTTP / FIle Explore, traffic only flows on one network card.

 

ash-4.3# ifconfig
bond0     Link encap:Ethernet  HWaddr 10:90:28:EA:80:A8
          inet addr:192.168.1.5  Bcast:192.168.1.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MASTER MULTICAST  MTU:1500  Metric:1
          RX packets:720074 errors:0 dropped:0 overruns:0 frame:0
          TX packets:3259540 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:782275593 (746.0 MiB)  TX bytes:4559670542 (4.2 GiB)

eth0      Link encap:Ethernet  HWaddr 10:90:28:EA:80:A8
          UP BROADCAST RUNNING SLAVE MULTICAST  MTU:1500  Metric:1
          RX packets:212119 errors:0 dropped:0 overruns:0 frame:0
          TX packets:403 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:21191560 (20.2 MiB)  TX bytes:39678 (38.7 KiB)
          Interrupt:19 memory 0xd0680000-d06a0000

eth1      Link encap:Ethernet  HWaddr 10:90:28:EA:80:A8
          UP BROADCAST RUNNING SLAVE MULTICAST  MTU:1500  Metric:1
          RX packets:507955 errors:0 dropped:0 overruns:0 frame:0
          TX packets:3259137 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:761084033 (725.8 MiB)  TX bytes:4559630864 (4.2 GiB)

lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:65536  Metric:1
          RX packets:1128 errors:0 dropped:0 overruns:0 frame:0
          TX packets:1128 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1
          RX bytes:152400 (148.8 KiB)  TX bytes:152400 (148.8 KiB)

I am currently running:

 

Quote

 

Jun's Loader 1.04b

DSM 6.2.1-23824 Update 6 - DS918+

Custom build J1900

Intel onboard network card

DUB-1312 USB 3.0 to Gigabit Ethernet Adapter 

 

 

############# Update

 

I have tried to setup interface bonding with Mikrotik hAP AC2. Bonding mode is 802.3ad.

 

image.png.40f610aea8a839890a873dcb248202d0.png

The same setting in DSM

 

image.thumb.png.19e5ab997f944ee788c2f0dbada0b1fe.png

 

However, still same issue persist. Traffic only goes through 1 network card.

 

 

Could you advise when possible way to troubleshoot. Thank you!

 

Edited by vanst
Update the information
Link to comment
Share on other sites

4 answers to this question

Recommended Posts

  • 0

802.3ad means LACP. LACP only balances on multiple requests. If you access the NAS from 2 different clients at the same time then both network ports should be used or show throughput. 

 

9 hours ago, vanst said:

Static LAG with TL-SG108E

 

Afaik this switch is unmanaged. Don’t know how you‘ve set up a lag.

  • Like 1
Link to comment
Share on other sites

  • 0
18 hours ago, vanst said:

Hi All,

 

I set up up a Static LAG with TL-SG108E. NIC teaming has been enabled on the conputer and when downloading / upload something, I can see that packets are distributed between 2 NIC.

The same set up had been applied for the NAS, I choose "Balance XOR" since the switch is not supporting dynamic LAG.

 

However, when download / upload a file to the NAS via HTTP / FIle Explore, traffic only flows on one network card.

 

However, still same issue persist. Traffic only goes through 1 network card.

 

Could you advise when possible way to troubleshoot. Thank you!

 

 

Again if it wasn't clear from @jensmanders reply, you are testing with one IP stream.  Each session can only use one of the paths.  If you open up a deliberately multi-network threaded application or run multiples independents in parallel, you might see both in use concurrently.  It's 100% dependent upon the algorithm.  Some algorithms will only EVER assign you one IP for all sessions a static timeframe, some will do it on IP session.  Set up a test with multiple devices and multiple concurrent activities to be sure.

Edited by flyride
  • Like 1
Link to comment
Share on other sites

  • 0

Oops, I keep thinking that LACP allow us to bond network card to have a higher bandwidth, like 1 Gpbs + 1 Gbps => 2 Gbps. I will do more learning about this

 

5 hours ago, jensmander said:

Afaik this switch is unmanaged. Don’t know how you‘ve set up a lag.

I think you are referring to TL-SG108 - an unmanaged switch. TL-SG108"E" is the Pro version with some L2 features like VLAN and LAG.

 

image.thumb.png.1f1f312c549bab991558d0b8e249e780.png

Edited by vanst
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   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.

×
×
  • Create New...