[j-nsp] CoS 802.1p rewriting

Lionel David Lionel.David at rap.prd.fr
Fri Jul 1 11:58:58 EDT 2005


Hello,

I've a problem for QoS deployment in JUNOS (v.7.0). I've a testbed with 
a M7i on which there are 2 interfaces, ge-0/0/0 and ge-1/3/0. I make a 
DSCP classification on ge-0/0/0 for the incoming trafic and I rewrite 
the 802.1p field on ge-1/3/0 for the trafic outgoing towards a switch on 
which I can see the 802.1p field which is transmitted. I want that the 
trafic tagged with DSCP=0 incoming on ge-0/0/0 is rewritten on the 
ge-1/3/0 outgoing towards the switch with a 802.1p field=001, but it 
doesn't work, the trafic is rewritten systematically  with a 802.1p=010, 
why ???

Here is a sample of my configuration (I've removed some parts like for 
forwarding-classes lbe, premium and network-control for a less big 
configuration).

[class-of-service]
    classifiers {
        dscp test-dscp {
            forwarding-class be+bbe {
                loss-priority low code-points 000000;
                loss-priority high code-points 000010;
            }
        }
        ieee-802.1 test-802.1p {
            forwarding-class be+bbe {
                loss-priority low code-points 001;
                loss-priority high code-points 011;
            }
       }
    }
    forwarding-classes {
        queue 0 lbe;
        queue 1 be+bbe;   
        queue 2 premium;
        queue 3 network-control;
    }
    interfaces {
        ge-0/0/0 {
            unit 0 {
                classifiers {
                    dscp test-dscp;
                }
            }
        }
        ge-1/3/0 {
            unit 0 {
                classifiers {
                    ieee-802.1 test-802.1p;
                }
                rewrite-rules {
                    ieee-802.1 test-802.1p;
                }
            }
        }
    }
    rewrite-rules {
        ieee-802.1 test-802.1p {
            forwarding-class be+bbe {
                loss-priority low code-point 001;
                loss-priority high code-point 011;
            }
        }
    }
}

Can you help me ?

Thanks.

-- 
Lionel DAVID - CORAP                                             



More information about the juniper-nsp mailing list