Configuring a class map – ATL Telecom R1-SW Ethernet Switch User Manual

Page 186

Advertising
background image

R1-SW24L2B User’s Manual

9-18

Configuring a Class Map

A class-map is a mechanism that you use to name and to isolate a specific traffic flow (or class)
from all other traffic. The class-map defines the criteria used to match against a specific traffic
flow to further classify it. If you have more than one type of traffic that you want to classify, you
can create another class-map and use a different name. After a packet is matched against the
class-map criteria, you further classify it through the use of a policy-map.


You can classify packets and assign them to specific queues based on the following criteria:

Table 9-1 Criteria for packet classification

Criterion

Description

Value

cos

The CoS (Class of Service) value

0 ~ 7

dsap

The DSaP (Destination Service Access Point) value

0 ~ 255

dscp

The DSCP (DiffServe Code Point) value

0 ~ 63

tos

The ToS (Type of Service) value

0 ~ 7

ip-prec

The IP precedence value

0 ~ 7

ip-sa

The source IP address

ip-da

The destination IP address

mac-sa

The source MAC address

mac-da

The destination MAC address

tcp-dpn

The destination TCP port number

0 ~ 65535

tcp-flag

The TCP flag value

tcp-spn

The source TCP port number

0 ~ 65535

udp-spn

The source UDP port number

0 ~ 65535

udp-dpn

The destination UDP port number

0 ~ 65535

ether-type

The Ethernet Type filed value

0 ~ 65535

input-port

The input port number

output-port

The output port number

protocol

The L4 Protocol field value

0 ~ 255

vlan-sid

The VLAN ID that the input port belongs to.

1 ~ 4094

vlan-did

The VLAN ID that the output port belongs to.

1 ~ 4094


CoS field can not be included with DSCP or IP precedence in the same class-map. To make the
CoS field available, enable IEEE 802.1p using 802.1p classification enable command.
If IEEE 802.1p is enabled, DSCP and IP precedence criteria in class-maps are not available. To
use the DSCP or IP precedence instead of CoS, disable the IEEE 802.1p using 802.1p

Advertising