[Commotion-discuss] distribution of load among gateways and speed gains?, , (Dan Staples) (Josh King)

Josh King jking at opentechinstitute.org
Mon Jun 9 14:56:11 EDT 2014


Hey John, Dan,

No problem! SmartGateway has the following configuration parameters
pertaining to weighting by bandwidth:

SmartGatewayWeightExitLinkUp (controls whether to consider upload
bandwidth in gateway selection, default is 1)
SmartGatewayWeightExitLinkDown (controls whether to consider download
bandwidth in gateway selection, default is 1)
SmartGatewayWeightEtx (controls whether to consider ETX in gateway
selection, default is (obviously) 1)
SmartGatewayDividerEtx (controls how bandwidth and ETX are compared,
default is 0)

The recommended settings in the README suggest leaving the first 3
settings at one, and setting SmartGatewayDividerEtx to 4096 (if it's set
to zero, as it is by default, bandwidth is not taken into account and
only ETX is used). The README contains the formula for the calculation:

http://olsr.org/git/?p=olsrd.git;a=blob_plain;f=README-Olsr-Extensions;hb=HEAD

In general, the READMEs in the OLSRd git repository, both for the daemon
itself and for its plugins, are the best source of documentation for
specific configuration settings. OLSRd has been around for along while,
and thus a lot of other documentation you find around the internet is
out of date.

So using this knowledge, you'd set the upstream and downstream speed in
the OLSRd configuration file on your gateway node, and then configure
every other node in the network with SmartGatewayDividerEtx, which will
force OLSRd to take those bandwidth values into account. I haven't
tested this myself though, as we don't currently have an automated way
built into Commotion to test those values.

On 06/09/2014 02:37 PM, Dan Staples wrote:
> I'm curious about this as well.
> 
> On 06/03/2014 09:31 AM, john coleman wrote:
>> josh,
>>
>> 	Following up on the scenario you describe in the paragraph copied below, I tracked down the OLSR setting for upstream and downstream speed.  Can you point me in the direction of the setting(s) to "set every other node in the network to take that into account when choosing a gateway"?
>> I assume it's on the OLSR Daemon page but I'm not finding anything obvious.  
>> thanks,
>>
>> john
>>
>> commotion-discuss-request at lists.chambana.net wrote the following on 6/2/2014 11:00 AM:
>>> ----------------------------------------------------------------------
>>>
>>> Message: 1
>>> Date: Sun, 01 Jun 2014 21:34:38 -0400
>>> From: Josh King <jking at opentechinstitute.org>
>>> To: Dan Staples <danstaples at opentechinstitute.org>
>>> Cc: commotion-discuss at lists.chambana.net
>>> Subject: Re: [Commotion-discuss] distribution of load among gateways
>>> 	and speed gains?, (Dan Staples)
>>> Message-ID: <538BD4AE.3040509 at opentechinstitute.org>
>>> Content-Type: text/plain; charset="utf-8"
>>>
>>
>>>
>>> The first, which is: can OLSR take gateway bandwidth into account when
>>> it selects a gateway? This is actually something that OLSRv1 can do,
>>> though we don't enable it by default as it's relatively new and fairly
>>> complex. OLSRv1 has SmartGateway, which we enable by default and which
>>> uses IP-over-IP tunnels in order to select and use gateways in such a
>>> way that it helps to avoid breaking connections when a new gateway
>>> becomes 'closer' (you have a better path to it) than your old gateway.
>>> SmartGateway also provides parameters that are disabled by default for
>>> tuning whether the capacity of the gateway is taken into account when
>>> selecting which gateway to use (i.e., whether to sometimes use a fat
>>> pipe that is further away than a thin pipe that is closer). However, the
>>> values that a gateway advertises are not dynamic (OLSR has no inherent
>>> way of 'knowing' how much bandwidth its upstream link has) so the values
>>> it uses are upstream and downstream bandwidth parameters set manually in
>>> the configuration file. So if you knew the speed of a particular
>>> connection, you could set it manually in the config file and set every
>>> other node in the network to take that into account when choosing a gateway.
>>>
>>
>>
>> _______________________________________________
>> Commotion-discuss mailing list
>> Commotion-discuss at lists.chambana.net
>> https://lists.chambana.net/mailman/listinfo/commotion-discuss
>>
> 

-- 
Josh King
Lead Technologist
The Open Technology Institute
http://opentechinstitute.org
PGP Fingerprint: 8269 ED6F EA3B 7D78 F074 1E99 2FDA 4DA1 69AE 4999

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 884 bytes
Desc: OpenPGP digital signature
URL: <http://lists.chambana.net/pipermail/commotion-discuss/attachments/20140609/174e359f/attachment.sig>


More information about the Commotion-discuss mailing list