Shared contracts EcoNAT Documentation / BRAS functionality / Shared contracts
Within one contract, the work of several users with the common maximum bandwidth can be organized (the shared contract). In this case, personal settings for the bandwidth limitation are taken into account if they are less than the common maximum bandwidth. In one contract there can be subscribers with a common bandwidth and with an individual.
EcoNAT:3:#show brascontract 17
Shared 192.168.55.5 Authorized Bytes rx/tx: 0/0; Packets rx/tx: 0/0
Shared 192.168.55.6 Authorized Bytes rx/tx: 0/0; Packets rx/tx: 0/0
Not shared 192.168.55.7 Authorized Bytes rx/tx: 0/0; Packets rx/tx: 0/0
When using the maximum bandwidth of the channel, the speed between the contract participants is distributed in proportion to their activity.
Adding a shared contract entry is possible using the RADIUS protocol or the proprietary EcoBRAS protocol, depending on the version and license of the firmware.
The configuration of the entry for the client on the RADIUS server should be similar to the following (for example, the record is for freeRADIUS).
192.168.55.5 Auth-Type := Accept
Cisco-Account-Info := "QU;5000000;D;5000000",
Cisco-Account-Info += "P12345678",
Cisco-Account-Info += "VU;8000000;D;8000000",
Where:
P12345678 - contract identifier in the format P<contract identifier>. A combination of numbers, capital and lowercase Latin letters may be used as an identifier for a contract;
QU / QD - speed limit of this client;
VU / VD - speed limit of the general contract.
In the event that a client with individual bandwidth restrictions is launched, the last attribute is missing. Such a client can be included in the contract with the general bandwidth settings.
For the CoA request, the following parameters should also appear:
Cisco-Account-Info := \"P12345678\", Cisco-Account-Info := \"VU;2012000;D;2012000\"
With the help of the EcoBRAS protocol, the addition of clients of the general contract is carried out by the ads command (see "Billing console and EcoBRAS protocol").
One must repeatedly specify the speed limit of the general contract when adding a new subscriber who is included in the general contract, because the value specified at the previous addition will be replaced.