10.2.4.2. Priority Setting (DSCP Marking)

Operation Confirmed Version:
 Brocade 5600vRouter Version4.2R1S1

This section describes the marking setting for grouping traffic in accordance with arbitrary conditions.

Presumed case for sample setting

  • To set for traffic which is output from interface “dp0s5”

  • To mark UDP traffic from virtual server 7 to virtual server 8 and prioritize its flow most

Configuration diagram
Zone Fig1

Setting flow

  • 1.インターフェース(dp0s5)にてQoSを適用。設定するQoSの名前を MARKING で設定する
  • 2.Performing EF marking (highest-priority setting) for UDP communications from “172.16.9.7”

  • 3.Setting the default policy for traffic The policy name is PROF1.

  • 4.Specifying queue for EF marking to 0

  • 5.Allocating queue 0 to traffic class 0

Command to be entered with CLI

set interfaces dataplane dp0s5 policy qos 'MARKING'
set policy qos name MARKING shaper class 1 match RULE1 mark dscp 'ef'
set policy qos name MARKING shaper class 1 match RULE1 protocol 'udp'
set policy qos name MARKING shaper class 1 match RULE1 source address '172.16.9. 7/32'
set policy qos name MARKING shaper class 1 profile 'PROF1'
set policy qos name MARKING shaper default 'PROF1'
set policy qos name MARKING shaper profile PROF1 map dscp ef to '0'
set policy qos name MARKING shaper profile PROF1 queue 0 traffic-class '0'

Operation check result

The verification result log below allows to confirm that DSCP marking worked, through the following: as for packets forwarded from virtual server 7 “172.16.9.7” in the verification configuration diagram to virtual server 8 “172.16.19.8”, EF marking was made for UDP packets and was not made for ICMP packets.

<UDP packet capture having EF marking made>

Zone Fig1

<ICMP packet capture not having marking made>

Zone Fig1
The configuration after completion of appropriate settings is as follows.
interfaces {
        dataplane dp0s4 {
                address 172.16.9.90/24
        }
        dataplane dp0s5 {
                address 172.16.19.90/24
                policy {
                        qos MARKING
                }
        }
        dataplane dp0s6 {
        }
        dataplane dp0s7 {
                address 10.0.0.90/24
        }
        loopback lo
}
policy {
        qos {
                name MARKING {
                        shaper {
                                class 1 {
                                        match RULE1 {
                                                mark {
                                                        dscp ef
                                                }
                                                protocol udp
                                                source {
                                                        address 172.16.9.7/32
                                                }
                                        }
                                        profile PROF1
                                }
                                default PROF1
                                profile PROF1 {
                                        map {
                                                dscp ef {
                                                        to 0
                                                }
                                        }
                                        queue 0 {
                                                traffic-class 0
                                        }
                                }
                        }
                }
        }
}