How Exactly does sticky Connections work? (Clarification Needed)

  • Ok so far im figuring out Sticky Connections (outgoing) means 1 of 2 things:

    1: Per Machine (what i think its at right now): Once a machine asks for internet access the router will assign it ONE WAN interface and thats it, next machine gets another interface, and so on and so forth on a round robin way.
    Using this method the top speed achieved by the machines requesting the internet outbound link will be as fast as the connection they got assigned permits and no more

    OR it could be this:

    2: Per Host (The ideal): every time a machine tries to connect to an ip outside it gets a wan assigned, and as long as that machine connects to that same IP it will always get that same WAN assigned as outgoing for that specific IP, if the machine tries to connect to ANOTHER DIFFERENT IP, then the next wan in the round robin would be assigned to that other IP, so in theory, the machine in question could download at WAN1's max speed from IP1 and at WAN2's max speed from IP2, effectively using the max out of both connections, and in the case of P2P or download accelerators this would enable a max speed of both WANs combined which is what we ideally want.

    Soo from testing im seeing it works more like option 1 which really sucks… its like setting a random gateway when connecting... and basically its no better than having 4 routers all with DHCP servers enabled on diff ips, and just randomly getting one or another IP to pick gateways....

    Sooo which is sticky connections? 1 or 2?

    and in case its 1, is there any way to turn it into 2?

    Thanks in advance

  • It's described here:

    though sticky connections appear to have issues in FreeBSD for at least some people, with outbound/gateway load balancing. If you see some traffic just disappearing, that's probably why.

Log in to reply