-
Notifications
You must be signed in to change notification settings - Fork 25
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Document and enforce mesh_metric #969
Comments
RFC 0.1
Metric: The first value should be tried first. In case of suboptimal routing the the range can be used as wiggle-room for individual traffic engineering. By applying this scheme we would prefer:
Open question is where to put VPN. I'd prefer somewhere between 4096-8191. |
I think we should be a bit more granular especially in the area between 1 Gbit/s and 100 Mbit/s so we can set values that match the speed of the connections more closely e.g. by measuring it with iperf3 or looking at the capacities reported by UISP. In my opinion this would help in areas where there are multiple 5 GHz paths with a lot of variance in bandwidth. I know that this was meant with "wiggle room" but I would prefer a more detailed table as it leaves less room for interpretation. In addition I think it is also a good idea to have 2.5 Gbit/s as we already have it with the airFiber 60 Xtreme-Range (ak36<->teufelsberg), eventhough the cable connection/core-router is currently the limit there. My proposal would be as follows:
A connection like emma<->rhnk that has a capacity of 273 Mbit/s would be in the metric range of 1024 - 2047, with a default metric of 1024 or with an adjusted metric set to something closer to 2047. My metrics might need further adjustments, but I think you get the idea of the more complete table. Regarding VPN / backup uplinks I suggest a variant where we take the connection bandwidth into account. My proposal here is to take the downlink connection bandwidth to determine the row from aboves table and then go two or maybe even 3 rows down. With two rows a 250 MBit/s private uplink would get 4096. A 100 MBit/s private uplink would get 6144 and so on. |
Thinking of whether it would be nice to find a way to have metrics in a bidirectional way, as usually 5GHz strongly depends on the direction. And how to model the data for PtMP APs per individual Station. Also it would be beneficial to find a way, how to aritificially double the cost for traffic entering and leaving the location on the same interface. (For instance wilgu10-sama -> sama-sued-60ghz -> w38b). In that case the cost of the routes from w38b should be added twice at sama-sued-60ghz, because the possible bandwidth is only the half. And a third thought is that we could have a helper function, either written as a jinja2 macro or attach a python lookup plugin to our playbooks, where we pass the estimated Bandwidth, instead of manually calculating the cost.
|
I think having a function that translates bandwidth into a mesh_metric is a really good idea. Since most of the traffic is RX we can base everything on measured or estimated RX bandwidth between the node and the neighbor and also apply this to tunspace uplinks. I can follow your argument with traffic entering and leaving the same location at the same interface and would love to see a solution eventhough I think we are also fine without one. In our current network topology (#1010 - contains a map which shows gateway selection) this kind of traffic is either totally valid (traffic within our network), or a cause of routing when we have outages and can't really avoid it. |
We want to start routing IPv4 via Babel soonish. Lets make sure that the metrics are in the desired state to have a deterministic routing experience :)
The text was updated successfully, but these errors were encountered: