- Table of Contents
- Related Documents
-
Title | Size | Download |
---|---|---|
05-EDSG commands | 59.98 KB |
EDSG service policy commands
EDSG service policies are supported only when the device operates in standard mode. For more information about setting the system operating mode to standard, see device management in Fundamentals Configuration Guide.
EDSG service policies are supported only on CSPEX (except CSPEX-1104-E) cards.
EDSG service policies are applicable only to IPoE and PPPoE users.
accounting-method
Use accounting-method to specify accounting methods for the EDSG service.
Use undo accounting-method to restore the default.
Syntax
accounting-method { none | radius-scheme radius-scheme-name [ none ] }
undo accounting-method
Default
The device does not perform accounting on the EDSG service.
Views
EDSG service policy view
Predefined user roles
network-admin
Parameters
none: Does not perform accounting.
radius-scheme radius-scheme-name: Specifies a RADIUS scheme by its name, a case-insensitive string of 1 to 32 characters.
Usage guidelines
Use this command to perform independent accounting on the EDSG service. The accounting methods can be different from those used for non-EDSG services.
You can specify one primary accounting method and a backup accounting method for the EDSG service. When the primary method is invalid, the device attempts to use the backup method. For example, the accounting-method radius-scheme radius-scheme-name none command specifies a primary RADIUS accounting method and a backup method (no accounting). The device first attempts to perform RADIUS accounting. If the RADIUS accounting method is invalid, the device does not perform accounting.
Examples
# In EDSG service policy sp1, perform RADIUS accounting on the EDSG service based on RADIUS scheme rd.
<Sysname> system-view
[Sysname] service policy sp1
[Sysname-service-policy-sp1] accounting-method radius-scheme rd1
Related commands
display service policy
radius scheme
authentication-method
Use authentication-method to specify authentication methods for the EDSG service.
Use undo authentication-method to restore the default.
Syntax
authentication-method { none | radius-scheme radius-scheme-name [ none ] }
undo authentication-method
Default
The device does not perform authentication on the EDSG service.
Views
EDSG service policy view
Predefined user roles
network-admin
Parameters
none: Does not perform authentication.
radius-scheme radius-scheme-name: Specifies a RADIUS scheme by its name, a case-insensitive string of 1 to 32 characters.
Usage guidelines
Use this command to perform independent authentication on the EDSG service. The authentication methods can be different from those used for non-EDSG services.
You can specify one primary authentication method and a backup authentication method for the EDSG service. When the primary method is invalid, the device attempts to use the backup method. For example, the authentication-method radius-scheme radius-scheme-name none command specifies a primary RADIUS authentication method and a backup method (no authentication). The device first attempts to perform RADIUS authentication. If the RADIUS authentication method is invalid, the device does not perform authentication.
Examples
# In EDSG service policy sp1, perform RADIUS authentication on the EDSG service based on RADIUS scheme rd.
<Sysname> system-view
[Sysname] service-policy sp1
[Sysname-service-policy-sp1] authentication-method radius-scheme rd1
Related commands
display service policy
car
Use car to set CAR parameters for the EDSG service.
Use undo car to restore the default.
Syntax
car { inbound | outbound } cir cir-value [ pir pir-value ] [ cbs cbs-value ] [ ebs ebs-value ]
undo car { inbound | outbound }
Default
No CAR parameters are set for the EDSG service.
Views
EDSG service policy view
Predefined user roles
network-admin
Parameters
inbound: Performs CAR for upstream EDSG traffic.
outbound: Performs CAR for downstream EDSG traffic.
cir cir-value: Specifies the CIR, in kbps. The value range for the cir-value argument is 300 to 10000000.
pir pir-value: Specifies the PIR, in kbps. The value range for the pir-value argument is 300 to 10000000. If you specify the PIR, make sure the PIR is equal to or higher than the CIR. If you do not specify the PIR, the value of PIR is the same as the value of the CIR.
cbs cbs-value: Specifies the CBS, in bytes. The value range for the cbs-value argument is 4096 to 187500000. If you do not specify the CBS, the CBS of the EDSG traffic is not restricted.
ebs ebs-value: Specifies the EBS, in bytes. The value range for the ebs-value argument is 0 to 256000000. If you do not specify the EBS, the EBS of the EDSG traffic is not restricted.
Usage guidelines
Use this command to limit the rate of the EDSG traffic.
Examples
# For upstream EDSG traffic, set the CIR to 100 kbps and the PIR to 500 kbps. For downstream EDSG traffic, set the CIR to 200 kbps and the PIR to 2000 kbps.
<Sysname> system-view
[Sysname] service policy sp1
[Sysname-service-policy-sp1] car inbound cir 100 pir 500
[Sysname-service-policy-sp1] car outbound cir 200 pir 2000
Related commands
display service policy
display service policy
Use display service policy to display EDSG service policy configuration.
Syntax
display service policy [ policy-name ]
Views
Any view
Predefined user roles
network-admin
network-operator
Parameters
policy-name: Specifies an EDSG service policy by its name, a case-insensitive string of 1 to 31 characters. The EDSG service policy name cannot contain a left bracket ([), right bracket (]), or semicolon (;). If you do not specify an EDSG service policy, this command displays the configuration for all EDSG service policies.
Examples
# Display the configuration for EDSG service policy sp1.
<Sysname> display service policy sp1
Service policy: sp1
Service ID : 4
Authentication method : RADIUS=Rd1, None
Accounting method : RADIUS=Rd1, None
Traffic statistics : Separate
Inbound CAR : CIR=222 kbps, PIR=2222 kpbs, CBS=5678 bytes, EBS=5678 bytes
Outbound CAR : CIR=222 kbps, PIR=2222 kpbs
Dual-stack rate limit mode : Merge
# Display the configuration for all EDSG service policies.
<Sysname> display service policy
Total 2 service policies.
Service policy: sp1
Service ID : 4
Authentication method : RADIUS=Rd1, None
Accounting method : RADIUS=Rd1, None
Traffic statistics : Separate
Inbound CAR : CIR=222 kbps, PIR=2222 kpbs, CBS=5678 bytes, EBS=5678 bytes
Outbound CAR : CIR=222 kbps, PIR=2222 kpbs
Dual-stack rate limit mode : Separate
Service rate-limit mode : Separate
Service policy: test
Service ID : 4
Authentication method : None
Accounting method : RADIUS=Rd2, None
Traffic statistics : Separate
Inbound CAR : CIR=100 kbps, PIR=640000 kpbs
Outbound CAR : CIR=5000 kbps, PIR=640000 kpbs
Dual-stack rate limit mode : Merge
Service rate-limit mode : Merge
Table 1 Command output
Field |
Description |
Total xx service policies |
Total number of EDSG service policies. |
Service ID |
ID of the EDSG service policy. |
Authentication method |
Authentication methods for the EDSG service policy. |
Accounting method |
Accounting methods for the EDSG service policy. |
Traffic statistics |
Traffic statistics mode for the EDSG service: · Merge—The EDSG service traffic of a user is included in the overall traffic of the user. · Separate—The EDSG service traffic of a user is excluded from the overall traffic of the user. |
Inbound CAR |
CAR parameters for incoming traffic of the EDSG service: · CIR—Committed information rate, in kbps. · PIR—Peak information rate, in kbps. · CBS—Committed burst size, in bytes. · EBS—Excess burst size, in bytes. |
Outbound CAR |
CAR parameters for outgoing traffic of the EDSG service: · CIR—Committed information rate, in kbps. · PIR—Peak information rate, in kbps. · CBS—Committed burst size, in bytes. · EBS—Excess burst size, in bytes. |
Dual-stack rate limit mode |
Rate limit mode for IPv4 and IPv6 EDSG traffic: · Merge—Collectively limits the rate of IPv4 and IPv6 EDSG traffic. · Separate—Separately limits the rates of IPv4 and IPv6 EDSG traffic. |
Service rate-limit mode |
Rate limit mode for EDSG services: · Merge—In-band mode. In this mode, the device limits the overall rates of both EDSG traffic and non-EDSG traffic for a user within the available basic bandwidth of the user. The bandwidth for the EDSG traffic is preferentially guaranteed. · Separate—Out-band mode. In this mode, the device limits the rate of EDSG traffic within an independent bandwidth. The bandwidth for the non-EDSG traffic is not affected. |
rate-limit dual-stack separate
Use rate-limit dual-stack separate to enable separate mode to separately limit the rates of IPv4 and IPv6 EDSG traffic.
Use undo rate-limit dual-stack separate to disable separate mode for collectively limiting the rate of IPv4 and IPv6 EDSG traffic.
Syntax
rate-limit dual-stack separate
undo rate-limit dual-stack separate
Default
Separate rate limit mode is disabled for IPv4 and IPv6 EDSG traffic. The device collectively limits the rate of IPv4 and IPv6 EDSG traffic.
Views
EDSG service policy view
Predefined user roles
network-admin
Usage guidelines
This feature takes effect only when the rate limit mode for EDSG services is set to in-band. To set the rate limit mode for EDSG services to in-band, use the service rate-limit mode merge command in ISP domain view or EDSG service policy view.
Examples
<Sysname> system-view
[Sysname] service policy sp1
[Sysname-service-policy-sp1] rate-limit dual-stack separate
Related commands
display service policy
service rate-limit mode (EDSG service policy view)
service rate-limit mode (ISP domain view)
service rate-limit mode (EDSG service policy view)
Use service rate-limit mode to set the rate limit mode for EDSG services.
Use undo service rate-limit mode to restore the default.
Syntax
service rate-limit mode { merge | separate }
undo service rate-limit mode
Default
The rate limit mode used in ISP domain view applies.
Views
EDSG service policy view
Predefined user roles
network-admin
Parameters
merge: Specifies the in-band mode. In this mode, the device limits the overall rates of both EDSG traffic and non-EDSG traffic for a user within the available basic bandwidth of the user. The bandwidth for the EDSG traffic is preferentially guaranteed.
separate: Specifies the out-band mode. In this mode, the device limits the rate of EDSG traffic within an independent bandwidth. The bandwidth for the non-EDSG traffic is not affected.
Usage guidelines
Assume that the available basic bandwidth for a user is 20 Mb and the available bandwidth for EDSG traffic of the user is 12 Mb.
· In in-band mode, the EDSG bandwidth is excluded from the basic bandwidth. The actual bandwidth for the user is 32 Mb, in which 12 Mb is exclusively used for EDSG services.
· In out-band mode, the EDSG bandwidth is included in the basic bandwidth. The actual bandwidth for the user is 20 Mb, in which 12 Mb is exclusively used for EDSG services, and the remaining 8 Mb is used for non-EDSG services.
The rate limit mode set in EDSG service policy view takes precedence over the rate limit mode set in ISP domain view.
Examples
# In EDSG service policy sp1, set the rate limit mode for EDSG services to out-band mode.
<Sysname> system-view
[Sysname] service policy sp1
[Sysname-service-policy-sp1] service rate-limit mode separate
Related commands
display service policy
service rate-limit mode (ISP domain view)
service policy
Use service policy to create an EDSG service policy and enter its view, or enter the view of an existing EDSG service policy.
Use undo service policy to delete an EDSG service policy.
Syntax
service policy policy-name
undo service policy policy-name
Default
No EDSG service policies exist.
Views
System view
Predefined user roles
network-admin
Parameters
policy-name: Specifies the name of an EDSG service policy, a case-insensitive string of 1 to 31 characters. The EDSG service policy name cannot contain a left bracket ([), right bracket (]), or semicolon (;).
Examples
# Create an EDSG service policy named sp1 and enter its view.
<Sysname> system-view
[Sysname] service policy sp1
[Sysname-service-policy-sp1]
Related commands
display service policy
service-id
Use service-id to set the ID for an EDSG service policy.
Use undo service-id to restore the default.
Syntax
service-id number
undo service-id
Default
No ID is set for an EDSG service policy.
Views
EDSG service policy view
Predefined user roles
network-admin
Parameters
number: Specifies the ID of the EDSG service policy, in the range of 1 to 8. Only the IDs of 1 to 4 can take effect.
Usage guidelines
An EDSG service ID uniquely identifies an EDSG service.
You can set only one ID for an EDSG service policy. You can set the same ID for different EDSG service policies.
If the RADIUS server assigns multiple EDSG service policies that have different IDs, all the assigned EDSG service policies take effect. If the RADIUS server assigns multiple EDSG service policies that have the same ID, only the EDSG service policy that successfully triggers EDSG authentication takes effect. For all EDSG service policies assigned to a user to take effect, make sure the EDSG server assigns EDSG policies that have different IDs to the user.
Examples
# In EDSG service policy sp1, set the EDSG service ID to 3.
<Sysname> system-view
[Sysname] service policy sp1
[Sysname-service-policy-sp1] service-id 3
Related commands
display service policy
traffic statistics
Use traffic statistics to set the EDSG traffic statistics mode.
Use undo traffic statistics to restore the default.
Syntax
traffic statistics { merge | separate }
undo traffic statistics
Default
The separate mode is used for EDSG traffic statistics. The device excludes the amount of EDSG traffic from the overall traffic.
Views
EDSG service policy view
Predefined user roles
network-admin
Parameters
merge: Includes the amount of EDSG traffic into the overall traffic.
separate: Excludes the amount of EDSG traffic from the overall traffic.
Usage guidelines
The EDSG traffic statistics mode determines whether to include the EDSG traffic of a user into the overall traffic of the user or not.
The EDSG traffic statistics mode does not affect accounting for the EDSG service. An accounting packet for the EDSG traffic records the statistics only of the EDSG service traffic.
The EDSG rate limit mode does not affect the EDSG traffic statistics mode.
Examples
# In EDSG service policy sp1, set the EDSG traffic statistics mode to merge.
<Sysname> system-view
[Sysname] service policy sp1
[Sysname-service-policy-sp1] traffic statistics merge
Related commands
display service policy