Switching

last person joined: yesterday 

Ask questions and share experiences about EX and QFX portfolios and all switching solutions across your data center, campus, and branch locations.
  • 1.  COS rewrite does not work

    Posted 02-26-2011 02:49

    Hello folks,

    I am just trying to figure out why my setup does not work like I expect it to do.
    Maybe there are some limitations i missed, maybe some of the stuff works in another way (by design os whatever).

    Please have look at my drawing, which is a usual classroom setup:

         vlan.11 172.23.11.10/24 (l3 in vlan vr11)
         vlan.12 172.23.12.10/24 (l3 in vlan vr12)
                    
                    SRX240 (switched)
                      |
                      |
            Trunk     |    ge-0/0/8 (both ends)
                      |
                      |
                    EX4200
                      /\
                     /  \
        ge-0/0/6    /    \ ge-0/0/7
       vlan vr11   /      \  vlan vr12
                 vr11    vr12
    			 
    172.23.11.100/24     172.23.12.100.0/24

    I tried to setup the following on EX4200 switch:


    - classify packets from vr11 to forwarding-class "test" by a MF classifier
    - build a scheduler-map
    - assign scheduler map
    - rewrite marker with ieee802.1p defaults on egress trunk

    When I generate traffic from vr11 to 172.23.11.10, the packets have to pass the switch (obviously).
    Inspecting the outgoing interface (ge-0/0/8) statistics one can see transit packets in the expected
    forwarding-class, but the packets are not assigned to the output queue. While using the pcap module
    on the SRX, I cannot find any priotity bits set on incoming packets.
    So i assume that the packets aren't rewritten with a marker.
    What is wrong with my configuration?

    ### code for EX4200
    set class-of-service schedulers nc transmit-rate percent 5
    set class-of-service schedulers nc buffer-size percent 5
    set class-of-service schedulers nc priority strict-high
    set class-of-service schedulers test transmit-rate percent 20
    set class-of-service schedulers test buffer-size percent 20
    set class-of-service schedulers test priority strict-high
    set class-of-service schedulers ef transmit-rate percent 30
    set class-of-service schedulers ef buffer-size percent 30
    set class-of-service schedulers ef priority strict-high
    set class-of-service schedulers be transmit-rate percent 45
    set class-of-service schedulers be buffer-size percent 45
    set class-of-service schedulers be priority low
    
    set class-of-service scheduler-maps test forwarding-class network-control scheduler nc
    set class-of-service scheduler-maps test forwarding-class best-effort scheduler be
    set class-of-service scheduler-maps test forwarding-class assured-forwarding scheduler test
    set class-of-service scheduler-maps test forwarding-class expedited-forwarding scheduler ef
    
    set class-of-service interfaces ge-0/0/8 scheduler-map test
    set class-of-service interfaces ge-0/0/8 unit 0 rewrite-rules ieee-802.1 default
    set class-of-service interfaces ge-0/0/10 scheduler-map test
    set class-of-service interfaces ge-0/0/10 unit 0 classifiers ieee-802.1 default
    set class-of-service interfaces ge-0/0/10 unit 0 rewrite-rules ieee-802.1 default
    set class-of-service interfaces vlan unit 11 rewrite-rules ieee-802.1 default
    
    set firewall family ethernet-switching filter base term vr11 from source-address 172.23.11.0/24
    set firewall family ethernet-switching filter base term vr11 then forwarding-class expedited-forwarding
    set firewall family ethernet-switching filter base term vr11 then loss-priority low
    set firewall family ethernet-switching filter base term rest then accept
    
    set interfaces ge-0/0/6 unit 0 family ethernet-switching port-mode access
    set interfaces ge-0/0/6 unit 0 family ethernet-switching vlan members v11
    set interfaces ge-0/0/6 unit 0 family ethernet-switching filter input base
    set interfaces ge-0/0/8 unit 0 family ethernet-switching port-mode trunk
    set interfaces ge-0/0/8 unit 0 family ethernet-switching vlan members all
    
    
    ## code on SRX
    set class-of-service interfaces ge-0/0/1 unit 0 classifiers ieee-802.1 default
    set class-of-service interfaces ge-0/0/1 unit 0 rewrite-rules ieee-802.1 default
    set class-of-service interfaces ge-0/0/2 unit 0 classifiers ieee-802.1 default
    set class-of-service interfaces ge-0/0/2 unit 0 rewrite-rules ieee-802.1 default
    set class-of-service interfaces ge-0/0/8 unit 0 classifiers ieee-802.1 default
    set class-of-service interfaces ge-0/0/8 unit 0 rewrite-rules ieee-802.1 default
    set class-of-service interfaces ge-0/0/10 unit 0 classifiers ieee-802.1 default
    set class-of-service interfaces ge-0/0/10 unit 0 rewrite-rules ieee-802.1 default

     

     

    Statistical output on EX and SRX:

     

    lab@exA-1> show interfaces statistics ge-0/0/8 detail | find "ss que"
      Egress queues: 8 supported, 4 in use
      Queue counters:       Queued packets  Transmitted packets      Dropped packets
        0 best-effort                    0                  381                    0
        1 assured-forw                   0                    0                    0
        5 expedited-fo                   0                 1125                    0
        7 network-cont                   0                    0                    0
      Queue number:         Mapped forwarding classes
    
    
    lab@srxA-1> show interfaces statistics ge-0/0/8 detail |find "ss que"
      Egress queues: 8 supported, 4 in use
      Queue counters:       Queued packets  Transmitted packets      Dropped packets
        0 best-effort                    0                    0                    0
        1 expedited-fo                   0                    0                    0
        2 assured-forw                   0                    0                    0
        3 network-cont               37074                37074                    0

     

     

    Any ideas, I am completely lost.

     

    Thanks in advance,

     

    Klaus



  • 2.  RE: COS rewrite does not work

    Posted 03-05-2011 04:24

    Hi Klaus,

     

    One thing I notice is that your output from the SRX isn't going to show you the marked packets - you're looking at an egress queue for port ge-0/0/8.  That would be traffic FROM the SRX, hence why everything is Network Control - probably STP BPDUs or something similar.

     

    The line: 

     

    set class-of-service interfaces vlan unit 11 rewrite-rules ieee-802.1 default

    will do nothing unless you're routing through the RVI vlan.11 on the EX4200 which I assume you're not from the diagram.

     

     Can you add the output of the following commands from your EX4200:

     

    show class-of-service interfaces ge-0/0/8

    show class-of-service interfaces ge-0/0/6

    show interfaces queue ge-0/0/8

     

     

     



  • 3.  RE: COS rewrite does not work
    Best Answer

    Posted 03-05-2011 12:58

    HI,

     

    thanks for your replay.

     

    I found my mistake on SRX, which is the forwarding device.

     

    I missed to specifiy a classifier to sort the BA tagged packets to the right forwarding class. After I defined one, the packets got sorted to the correct queue.

     

    Thanks

     

    Klaus



  • 4.  RE: COS rewrite does not work

    Posted 10-31-2013 19:32
    Hii Can you post your full configuration on SRX for me to reference? Thanks so much.


  • 5.  RE: COS rewrite does not work

    Posted 11-10-2013 23:53

    Hi,

     

    it was only a lab setup and the tests are month and month ago.

     

    Sorry - I don't have any configs anymore.

     

    Klaus