port bonding from my isp router

Advice

Hello

my isp give me a 2gpbs/1200gpbs fiber connection to the router ( 4x1gbps ports ) i have itried and i can launch two 1gpbs speedtest on two port at the same time

my goal is to bond 2 ports to distribute those 2gbps to my network , here is a drawing of my idea

currently i'm running this setup with only 1 port to my isp router ( so all my device get 1gbps to internet )i have tried to use the lagg capacity of my sg2424 to aggregate two port to my router but it didnt work att all

is my goal is possible ? if yes with witch configuration or hardware ? ( i have edge router x too if needed )

​

ps : i'm stuck with my isp router , i dont have a fiber router and from my reading there is some security in place to prevent such use case ( putting a router instead the isp router )

​

https://preview.redd.it/7ds7vr7zs3b91.png?width=600&format=png&auto=webp&s=0ea3a195ee750c173ef8454f4d6c7f0e9311a79c

edit i got this shit working with my edge router x with port bonding mode 0 ( round robin), but the speed is a awfull, 600mpbs max

Posted Jul 12, 2022, 9:13 AM UTC · edited

17
TheEthyr•

It's can be really difficult for port bonding (aka LAG or Link Aggregation) to work in a home network.

Each traffic flow must always take a single link within a LAG. The mapping of a traffic flow to a specific link is usually determined by a hash algorithm. The hash algorithm can vary. It's common to hash one or more of the src/dst MAC address, src/dst IP address and occasionally TCP/UDP ports.

Therefore, in order to LAG to work well, you need a sufficient diversity of traffic flows that can be distributed across the two links. This seldom ever happens in home network setting.

I checked the documentation of your sg2424 switch and it can hash on either src/dst MAC address or src/dst IP addresses. Hashing on src/dst MAC addresses won't work. All the flows between one of the blue devices and the router will have the same src/dst MAC addresses, so they will always use one link. You will need to set the switch to hash on src/dst IP addresses. Then hope that Internet traffic has a sufficient diversity of IP addresses to be reasonably balanced by the switch.

Similarly, you will want the router and the end devices to hash on at least on src/dst IP addresses. Better if they can hash on TCP/UDP ports as well, but this is not as common.

2
noextOP•

i will check the setup with hash on ip

1
smiley_coight•

is my goal is possible ?

No, you don't have the gear to aggregate 2 separate WAN links to give you the sum of each individual link.

You can do load balancing in either fail over or Round Robin, but not WAN aggregation.

If you use segmented downloading systems, then load balancing might enable your system to utilise both WAN links for the downloads but any single threaded download is only going to go as fast as the fastest SINGLE wan connection you have.

https://fusionbroadband.com.au/fusion-pwan/ can supply special devices which can be used to combine the WAN links you have available in to a single faster connection. They use SDWAN tech to do so, linking all of your WANs back to a datacentre where their systems combine the respective WANS and whatnot. It's very cleverly done.
Certain Draytek routers can perform the same features using GRE over L2TP VPN links over separate WAN connections, but you need to have one of the Draytek sitting in a datacentre somewhere to give you a good link to the WWW.

1
noextOP•

its not technicaly 2 separate WAN, those 2 ports are on the same network ( ake 192.168.1.2 and 192.168.1.3 as default, router beeing 192.168.1.1 ) and they share the same outside ip

1
smiley_coight•

Do you have one wan ip or 2?

1
noextOP•

1 wan ip

i have check some forum and one guy have done this setup with a asus AX86U router ( 2 cable from to the same isp router to his router )

1
smiley_coight•

So you have one wan ip or 2?

1