port bonding from my isp router
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 )
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
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.
i will check the setup with hash on ip