Q: How does MA5200F/G set the bandwidth for users?
Generally, it has two steps to allocate bandwidth to users: definition of bandwidth level and reference of of bandwidth level.
1. MA5200F/G is inbuilt with 32 traffic control levels of user-car (0~31), and they can be used to define different traffic control levels. By default, the online users will reference the user-car 0, with bandwidth of 10M.
2. For the definition of user-car, execute the configuration command in system view, for example:
[MA5200G]user-car 31 up 1024 1024 5120 down 1024 1024 5120 (the configuration is the same for both MA5200F and MA5200G)
The configuration definesa traffic control level with both upstream and downstream traffic as 1M. The parameters behind the command "up" and "down" represent for basic speed, average speed, and peak speed respectively. It is suggested to set the basic and average speed as the same, and the peak speed is 5 times as that of basic times.
3. The range defined for user-car: you can define the bandwidth for either all users in a domain or an individual user alone.
The configuration to define the bandwidth for users in a domain is as follows:
[MA5200G-aaa-domain-aaa]user-car 31 (both MA5200F and MA5200G have the same configuration)
For the bandwidth configured fo a user:
a. For the local users, the configuration for VLAN users under MA5200F is as follows:
[MA5200F-local-aaa-server]batch-user ethernet 1 10 1 domain aaa user-car 31
The configuration sets the traffic control level to 31 for VLAN user in aaa domain with vlanid as 10 and at Ethernet port 1.
VLAN users under MA5200G are configured as follows:
[MA5200G-local-aaa-server]user MA5200G-010200000000010@aaa user-car 31
The configuration sets the traffic control level to 31 (PVC user configurations are the same, and the accounts differ) for VLAN user in aaa domain with vlanid as 10 and at port 2 in slot 1
The configuration for common account is as follows:
[MA5200G-local-aaa-server]user 123@aaa user-car 31 (both MA5200F and MA5200G have the configuration)
The configuration sets the traffic control level of the user with account as 123@aaa to 31.
b. For radius authentication users, they are often allocated bandwidth by RADIUS. CAR is advertised by No. 25 (class) attribute or No. 26-1 to 26-6 attributes of radius. In the corresponding radius group, the radius-server class-as-car command helps configure whether or not CAR value is contained by the class attribute. If you do not use class attribute, use No. 26 attribute to allocate bandwidth, and the six attributes from 26-1 to 26－6 correspond to upstream peak spee, upstream average speed, upstream basic speed, downstream peak speed, down average speed and downstream basic speed. If a packet contains No. 25 and No. 26 attributes at the same time, and it is configured with class-as-car, take the latest attribute.