94
Step
Command
Remarks
1.
Enter system
view.
system-view
N/A
2.
Create a P2P
protocol group
and enter
protocol group
view.
dar protocol-group
group-id
By default, no protocol group exists in the system.
3.
Assign a protocol
to the protocol
group.
protocol
protocol-name
By default, a protocol group contains no protocol.
Enabling P2P traffic recognition
P2P traffic recognition is system resource demanding. It is disabled by default to avoid impacts on
other modules.
To enable DAR for traffic recognition:
Step
Command
Remarks
1.
Enter system view.
system-view
N/A
2.
Enter Layer 3
Ethernet interface
view.
interface
interface-type interface-number
N/A
3.
Enable P2P traffic
recognition.
dar enable
By default, P2P traffic recognition
is disabled.
Configuring protocol match criteria
To apply QoS policies to data streams to set packet priority or allocate bandwidth for example, use
DAR to classify the data streams first.
To configure protocol match criteria:
Step Command
Remarks
1.
Enter system
view.
system-view
N/A
2.
Enter class view.
traffic classifier
classifier-name
[
operator
{
and
|
or
} ]
N/A
3.
Configure the
match criterion
for a protocol
group.
if-match
[
not
]
protocol
protocol
group-id
Optional.
By default, no match criterion is configured
for a protocol group.
Configuring DAR packet accounting
With the packet accounting function of DAR, you can monitor the number of packets and the amount
of data traffic of application protocols on each interface. According to the statistics, you can apply a
correct QoS policy to the traffic.
To configure DAR packets accounting: