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 a match criterion for HTTP.

if-match [ not ] protocol http [ url url-string | host hostname-string | mime mime-type ]

Optional.

DAR can classify HTTP packets by the URL address, host name, or MIME type in HTTP packets.

By default, no match criterion is configured for HTTP.

4. Configure a match criterion for RTP.

if-match [ not ] protocol rtp [ payload-type { audio | video | payload-string&<1-16> } * ]

Optional.

DAR can classify RTP packets by the payload type in RTP packets.

By default, no match criterion is configured for RTP.

5. Configure the match criterion for a protocol.

if-match [ not ] protocol protocol-name

Optional.

By default, no match criterion is configured for a protocol.