Community discussions

MikroTik App
 
sys92
just joined
Topic Author
Posts: 1
Joined: Fri Sep 22, 2017 3:44 pm

Only TCP/UDP port load balancing

Fri Sep 22, 2017 3:47 pm

Hi, is there a way to do ECMP load balancing based only on the transportation header ports? I don't want to consider the 5-tuple flow (addrs, proto, ports), just the ports.
 
User avatar
acruhl
Member
Member
Posts: 371
Joined: Fri Jul 03, 2015 7:22 pm

Re: Only TCP/UDP port load balancing

Fri Sep 22, 2017 4:16 pm

This is not what I would call a "Beginner Basics" question.

The only thing I can think of off hand is the LACP layer 2 hash algorithm, but I think the best you can do is XOR between the last bit of the IP address and port number. Not perfectly random, but it works pretty good in the layer 2 link aggregation world.
 
savage
Forum Guru
Forum Guru
Posts: 1280
Joined: Mon Oct 18, 2004 12:07 am
Location: Cape Town, South Africa
Contact:

Re: Only TCP/UDP port load balancing

Fri Sep 22, 2017 6:24 pm

Not with ECMP I believe, but something similar can be achieved by using https://wiki.mikrotik.com/wiki/Manual:PCC