Jump to content

Network Load Ballancing Windows 10

Initially I intended to team my two WAN ports to work simultaneously, but since the latest Intel drivers do not support that feature on Windows 10 Build1511, I am looking into creating a load balancing script. The thing is that I have never done anything like this and I have no idea where to begin. Do you guys have an idea on the exact procedure or perhaps could refer me to a good guide somewhere else? Help is much appreciated! 

 

PS: I tried network teaming with PowerShell and still no avail.  

CPU: AMD Ryzen 9 - 3900x @ 4.4GHz with a Custom Loop | MBO: ASUS Crosshair VI Extreme | RAM: 4x4GB Apacer 2666MHz overclocked to 3933MHz with OCZ Reaper HPC Heatsinks | GPU: PowerColor Red Devil 6900XT | SSDs: Intel 660P 512GB SSD and Intel 660P 1TB SSD | HDD: 2x WD Black 6TB and Seagate Backup Plus 8TB External Drive | PSU: Corsair RM1000i | Case: Cooler Master C700P Black Edition | Build Log: here

Link to comment
https://linustechtips.com/topic/555907-network-load-ballancing-windows-10/
Share on other sites

Link to post
Share on other sites

10 minutes ago, leadeater said:

My first question is why? What are you actually trying to achieve? I don't think you will get what you are expecting by trying to do this.

 

My idea is to improve my bandwidth so that I can download stuff while gaming online.  

CPU: AMD Ryzen 9 - 3900x @ 4.4GHz with a Custom Loop | MBO: ASUS Crosshair VI Extreme | RAM: 4x4GB Apacer 2666MHz overclocked to 3933MHz with OCZ Reaper HPC Heatsinks | GPU: PowerColor Red Devil 6900XT | SSDs: Intel 660P 512GB SSD and Intel 660P 1TB SSD | HDD: 2x WD Black 6TB and Seagate Backup Plus 8TB External Drive | PSU: Corsair RM1000i | Case: Cooler Master C700P Black Edition | Build Log: here

Link to post
Share on other sites

this? http://menistuff.blogspot.ro/2012/02/network-load-balancing-using-windows-7.html

On Error Resume Next 
strComputer = "."
strMainNIC = "Wired"
strMainNICDevice = "Marvell Yukon 88E8056 PCI-E Gigabit Ethernet Controller"

Set objWMIService = GetObject("winmgmts:" _ 
& "{impersonationLevel=impersonate}!\\" & strComputer & "\Root\CIMV2" ) 
Set colItems = objWMIService.ExecQuery _ 
("Select * From Win32_NetworkAdapter Where NetConnectionID = '" & strMainNIC  & "'") 
For Each objItem in colItems 
strMACAddress = objItem.MACAddress 
Wscript.Echo "MACAddress: " & strMACAddress 
Next 
Set colNetCard = objWMIService.ExecQuery _ 
("Select * From Win32_NetworkAdapterConfiguration where IPEnabled=TRUE" ) 
For Each objNetCard in colNetCard 
If objNetCard.MACAddress = strMACAddress Then 
For Each strIPAddress in objNetCard.IPAddress 
Wscript.Echo "Description: " & objNetCard.Description 
Wscript.Echo "IP Address: " & strIPAddress 
Wscript.Echo "IPConnectionMetric: " & objNetCard.IPConnectionMetric 
regValueDataMetric = objNetCard.IPConnectionMetric 
Next 
End If 
Next 
For X = 0 to 1000000000000000000 
Set objWMIService = GetObject("winmgmts:" _ 
& "{impersonationLevel=impersonate}!\\" & strComputer & "\Root\CIMV2" ) 
Set colItems = objWMIService.ExecQuery _ 
("select * from Win32_PerfFormattedData_TCPIP_NetworkInterface Where Name = '" & strMainNICDevice  & "'" ) 
For Each objItem in colItems 
bytesTotal = objitem.BytesTotalPersec 
bandwidth = objItem.CurrentBandwidth 
result = FormatNumber(( bytesTotal / bandwidth) * 1000) 
output = "Main NIC utilization : " & result & " % Utilized: " & objitem.BytesTotalPersec & " " & regValueDataMetric & " Total Bandwidth: " & bandwidth 
WScript.Echo output 
NEXT 
If result >= 0.8 Then 
Wscript.Echo "Utilizing Secondary NIC"
If regValueDataMetric = "1" Then 
regValueDataMetric = "50" 
Set WshShell = WScript.CreateObject("WScript.Shell")
WshShell.Run  "netsh interface ipv4 set interface """"Wired"""" metric=" & regValueDataMetric, 0, TRUE
Set colItems = objWMIService.ExecQuery _ 
("Select * From Win32_NetworkAdapter Where NetConnectionID = '" & strMainNIC  & "'") 
End if 
End If 
If result <= 0.8 Then 
If regValueDataMetric = "50" Then 
   regValueDataMetric = "1" 
Set WshShell = WScript.CreateObject("WScript.Shell")
WshShell.Run  "netsh interface ipv4 set interface """"Wired"""" metric=" & regValueDataMetric, 0, TRUE
Set colItems = objWMIService.ExecQuery _ 
("Select * From Win32_NetworkAdapter Where NetConnectionID = '" & strMainNIC  & "'") 
For Each objItem in colItems 
strMACAddress = objItem.MACAddress 
Wscript.Echo "MACAddress: " & strMACAddress 
Next 
Set colNetCard = objWMIService.ExecQuery _ 
("Select * From Win32_NetworkAdapterConfiguration where IPEnabled=TRUE" ) 
End if 
End If 
WScript.Sleep 1000
Next

 

Link to post
Share on other sites

39 minutes ago, Analog said:

 

My idea is to improve my bandwidth so that I can download stuff while gaming online.  

1. You actually have two Internet connections?

2. The connections are actually connected directly to your computer? No router or firewall in between? No local network?

3. Your idea will be better served by implementing traffic shaping (normally seen as QOS or Quality of Service in managed switches and routers). Much more cost effective than paying for two connections.

Link to post
Share on other sites

29 minutes ago, beavo451 said:

1. You actually have two Internet connections?

2. The connections are actually connected directly to your computer? No router or firewall in between? No local network?

3. Your idea will be better served by implementing traffic shaping (normally seen as QOS or Quality of Service in managed switches and routers). Much more cost effective than paying for two connections.

Yes, I have two Internet connections, but I am actually only paying for one, the other one is free. One is going directly into my computer, the other one goes through a switch first, which acts as a slitter for my router.  

CPU: AMD Ryzen 9 - 3900x @ 4.4GHz with a Custom Loop | MBO: ASUS Crosshair VI Extreme | RAM: 4x4GB Apacer 2666MHz overclocked to 3933MHz with OCZ Reaper HPC Heatsinks | GPU: PowerColor Red Devil 6900XT | SSDs: Intel 660P 512GB SSD and Intel 660P 1TB SSD | HDD: 2x WD Black 6TB and Seagate Backup Plus 8TB External Drive | PSU: Corsair RM1000i | Case: Cooler Master C700P Black Edition | Build Log: here

Link to post
Share on other sites

9 minutes ago, Analog said:

Yes, I have two Internet connections, but I am actually only paying for one, the other one is free. One is going directly into my computer, the other one goes through a switch first, which acts as a slitter for my router.  

Would be more effective and more reliable if you got a router that supports WAN load balancing and/or policy based routing. The original teaming you were trying to do even though not currently supported in Windows 10 would not do what you want it to. 

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×