/interface/ethernet/switch/qos/port

当前显示英文原文,切换到「中文」可查看译文。

port

This sub-menu configures QoS settings for individual switch ports. It allows you to assign a QoS profile to ingress packets arriving on a specific port. If the port is configured as trusted, the assigned profile can...


interface/ethernet/switch/qos/port

Syscap: rbswitch and crs_prestera Type: Directory

This sub-menu configures QoS settings for individual switch ports. It allows you to assign a QoS profile to ingress packets arriving on a specific port. If the port is configured as trusted, the assigned profile can be overridden by match rules based on packet header values.

By default, all ports are untrusted and receive the default QoS profile (Best-Effort, PCP=0, DSCP=0). In this default state, priority fields are cleared from egress packets.

FlagNameDescription
Iinvalid
Rrunning
ArgumentTypeDescription
profileenumQoS profile to assign to ingress packets by default.
mapenumQoS Packet-to-Profile mapping.
trust-l2enum (ignore | trust | keep) { ignore:0, trust:1, keep:2 }Trust Layer 2 header (PCP) for QoS mapping.
trust-l3enum (ignore | trust | keep) { ignore:0, trust:1, keep:2 }Trust Layer 3 header (DSCP) for QoS mapping.
tx-managerenumQoS Tx Manager for egress traffic on this port.
pfcenumPriority Flow Control profile for ingress traffic on this port.
egress-rate-queue0numEgress rate limit for queue 0.
egress-rate-queue1numEgress rate limit for queue 1.
egress-rate-queue2numEgress rate limit for queue 2.
egress-rate-queue3numEgress rate limit for queue 3.
egress-rate-queue4numEgress rate limit for queue 4.
egress-rate-queue5numEgress rate limit for queue 5.
egress-rate-queue6numEgress rate limit for queue 6.
egress-rate-queue7numEgress rate limit for queue 7.

Port Stats

[admin@Mikrotik] /interface/ethernet/switch/qos/port> print stats where name=ether2
                  name:     ether2
             tx-packet:      2 887
               tx-byte:  3 938 897
           drop-packet:      1 799
             drop-byte:  2 526 144
      tx-queue0-packet:         50
      tx-queue1-packet:      1 871
      tx-queue3-packet:        774
      tx-queue5-packet:        192
        tx-queue0-byte:      3 924
        tx-queue1-byte:  2 468 585
        tx-queue3-byte:  1 174 932
        tx-queue5-byte:    291 456
    drop-queue1-packet:      1 799
      drop-queue1-byte:  2 526 144

Port Resources/Usage

危险

Due to hardware limitations, some switch chip models may break traffic flow while accessing QoS port usage data. Use port usage for diagnostics/troubleshooting only. For monitoring, use QoS monitor or Port stats instead.

[admin@crs326] /interface/ethernet/switch/qos/port> print usage where name=ether2
                 name:  ether2
           packet-cap:     136
           packet-use:       5
             byte-cap:  35 840
             byte-use:   9 472
    queue0-packet-cap:     130
    queue0-packet-use:       1
    queue1-packet-cap:       5
    queue1-packet-use:       4
    queue3-packet-cap:      65
    queue3-packet-use:       2
      queue0-byte-cap:  24 576
      queue0-byte-use:     256
      queue1-byte-cap:   7 680
      queue1-byte-use:   6 144
      queue3-byte-cap:  14 080
      queue3-byte-use:   3 072

Port PFC Stats (Previous Generations)

[admin@crs317] /interface/ethernet/switch/qos/port> print pfc interval=1 where running
                 name:  sfp-sfpplus1 sfp-sfpplus2   ether1
                  pfc:          roce     disabled disabled
               pfc-tx:            46            
        pfc-paused-tc:             3            
 pfc3-pause-threshold:     1 048 576            
pfc3-resume-threshold:        10 240            
             pfc3-use:     1 075 200

Port PFC Stats (New Generations)

[admin@crs812] /interface/ethernet/switch/qos/port> print pfc interval=1 where pfc=roce
                 name:       sfp56-5 
                  pfc:          roce
             rx-pause:           287              
             tx-pause:            46             
             pfc3-use:     2 184 200 
Read-only ArgumentTypeDescription
namestringPort name.
switchenumSwitch chip name.
tx-packetmulti { counter: num }The total number of packets transmitted via this port.
tx-bytesmulti { counter: num }The total number of bytes transmitted via this port.
packet-usenumPort's packet usage. The number of packets currently enqueued in all port's queues.
byte-usenumPort's byte usage. The size of hardware buffers (in bytes) that are currently allocated for the enqueued packets. Since the buffers are allocated by blocks (usually - 256B each), the allocated buffer size can be bigger than the actual payload.
queue0-shared-packet-capnumShared queue capacity (individual queue capacity + shared buffers) for queue 0.
queue1-shared-packet-capnumShared queue capacity (individual queue capacity + shared buffers) for queue 1.
queue2-shared-packet-capnumShared queue capacity (individual queue capacity + shared buffers) for queue 2.
queue3-shared-packet-capnumShared queue capacity (individual queue capacity + shared buffers) for queue 3.
queue4-shared-packet-capnumShared queue capacity (individual queue capacity + shared buffers) for queue 4.
queue5-shared-packet-capnumShared queue capacity (individual queue capacity + shared buffers) for queue 5.
queue6-shared-packet-capnumShared queue capacity (individual queue capacity + shared buffers) for queue 6.
queue7-shared-packet-capnumShared queue capacity (individual queue capacity + shared buffers) for queue 7.
queue0-shared-byte-capnumShared queue capacity (individual queue capacity + shared buffers) for queue 0.
queue1-shared-byte-capnumShared queue capacity (individual queue capacity + shared buffers) for queue 1.
queue2-shared-byte-capnumShared queue capacity (individual queue capacity + shared buffers) for queue 2.
queue3-shared-byte-capnumShared queue capacity (individual queue capacity + shared buffers) for queue 3.
queue4-shared-byte-capnumShared queue capacity (individual queue capacity + shared buffers) for queue 4.
queue5-shared-byte-capnumShared queue capacity (individual queue capacity + shared buffers) for queue 5.
queue6-shared-byte-capnumShared queue capacity (individual queue capacity + shared buffers) for queue 6.
queue7-shared-byte-capnumShared queue capacity (individual queue capacity + shared buffers) for queue 7.
queue0-packet-capnumIndividual queue capacity. The maximum number of packets that can be enqueued in queue 0.
queue1-packet-capnumIndividual queue capacity. The maximum number of packets that can be enqueued in queue 1.
queue2-packet-capnumIndividual queue capacity. The maximum number of packets that can be enqueued in queue 2.
queue3-packet-capnumIndividual queue capacity. The maximum number of packets that can be enqueued in queue 3.
queue4-packet-capnumIndividual queue capacity. The maximum number of packets that can be enqueued in queue 4.
queue5-packet-capnumIndividual queue capacity. The maximum number of packets that can be enqueued in queue 5.
queue6-packet-capnumIndividual queue capacity. The maximum number of packets that can be enqueued in queue 6.
queue7-packet-capnumIndividual queue capacity. The maximum number of packets that can be enqueued in queue 7.
queue0-byte-capnumIndividual queue capacity. The maximum number of bytes that can be enqueued in queue 0.
queue1-byte-capnumIndividual queue capacity. The maximum number of bytes that can be enqueued in queue 1.
queue2-byte-capnumIndividual queue capacity. The maximum number of bytes that can be enqueued in queue 2.
queue3-byte-capnumIndividual queue capacity. The maximum number of bytes that can be enqueued in queue 3.
queue4-byte-capnumIndividual queue capacity. The maximum number of bytes that can be enqueued in queue 4.
queue5-byte-capnumIndividual queue capacity. The maximum number of bytes that can be enqueued in queue 5.
queue6-byte-capnumIndividual queue capacity. The maximum number of bytes that can be enqueued in queue 6.
queue7-byte-capnumIndividual queue capacity. The maximum number of bytes that can be enqueued in queue 7.
queue0-packet-usenumQueue packet usage. The number of enqueued packets in queue 0.
queue1-packet-usenumQueue packet usage. The number of enqueued packets in queue 1.
queue2-packet-usenumQueue packet usage. The number of enqueued packets in queue 2.
queue3-packet-usenumQueue packet usage. The number of enqueued packets in queue 3.
queue4-packet-usenumQueue packet usage. The number of enqueued packets in queue 4.
queue5-packet-usenumQueue packet usage. The number of enqueued packets in queue 5.
queue6-packet-usenumQueue packet usage. The number of enqueued packets in queue 6.
queue7-packet-usenumQueue packet usage. The number of enqueued packets in queue 7.
queue0-byte-usenumQueue buffer usage (in bytes) for queue 0.
queue1-byte-usenumQueue buffer usage (in bytes) for queue 1.
queue2-byte-usenumQueue buffer usage (in bytes) for queue 2.
queue3-byte-usenumQueue buffer usage (in bytes) for queue 3.
queue4-byte-usenumQueue buffer usage (in bytes) for queue 4.
queue5-byte-usenumQueue buffer usage (in bytes) for queue 5.
queue6-byte-usenumQueue buffer usage (in bytes) for queue 6.
queue7-byte-usenumQueue buffer usage (in bytes) for queue 7.
byte-maxnumMaximum port buffer fill level (in bytes). Use the reset-counters command to reset values.
queue0-byte-maxnumMaximum queue buffer fill level (in bytes) for queue 0.
queue1-byte-maxnumMaximum queue buffer fill level (in bytes) for queue 1.
queue2-byte-maxnumMaximum queue buffer fill level (in bytes) for queue 2.
queue3-byte-maxnumMaximum queue buffer fill level (in bytes) for queue 3.
queue4-byte-maxnumMaximum queue buffer fill level (in bytes) for queue 4.
queue5-byte-maxnumMaximum queue buffer fill level (in bytes) for queue 5.
queue6-byte-maxnumMaximum queue buffer fill level (in bytes) for queue 6.
queue7-byte-maxnumMaximum queue buffer fill level (in bytes) for queue 7.
pfc0-pause-thresholdnumPause threshold of traffic class 0.
pfc1-pause-thresholdnumPause threshold of traffic class 1.
pfc2-pause-thresholdnumPause threshold of traffic class 2.
pfc3-pause-thresholdnumPause threshold of traffic class 3.
pfc4-pause-thresholdnumPause threshold of traffic class 4.
pfc5-pause-thresholdnumPause threshold of traffic class 5.
pfc6-pause-thresholdnumPause threshold of traffic class 6.
pfc7-pause-thresholdnumPause threshold of traffic class 7.
pfc0-resume-thresholdnumResume threshold of traffic class 0.
pfc1-resume-thresholdnumResume threshold of traffic class 1.
pfc2-resume-thresholdnumResume threshold of traffic class 2.
pfc3-resume-thresholdnumResume threshold of traffic class 3.
pfc4-resume-thresholdnumResume threshold of traffic class 4.
pfc5-resume-thresholdnumResume threshold of traffic class 5.
pfc6-resume-thresholdnumResume threshold of traffic class 6.
pfc7-resume-thresholdnumResume threshold of traffic class 7.
pfc0-usenumCurrent buffer usage of traffic class 0 (in bytes). In other words, it is the total size of all queued packets on all ports that were received from this port. Only PFC-enabled traffic classes are displayed.
pfc1-usenumCurrent buffer usage of traffic class 1 (in bytes). In other words, it is the total size of all queued packets on all ports that were received from this port. Only PFC-enabled traffic classes are displayed.
pfc2-usenumCurrent buffer usage of traffic class 2 (in bytes). In other words, it is the total size of all queued packets on all ports that were received from this port. Only PFC-enabled traffic classes are displayed.
pfc3-usenumCurrent buffer usage of traffic class 3 (in bytes). In other words, it is the total size of all queued packets on all ports that were received from this port. Only PFC-enabled traffic classes are displayed.
pfc4-usenumCurrent buffer usage of traffic class 4 (in bytes). In other words, it is the total size of all queued packets on all ports that were received from this port. Only PFC-enabled traffic classes are displayed.
pfc5-usenumCurrent buffer usage of traffic class 5 (in bytes). In other words, it is the total size of all queued packets on all ports that were received from this port. Only PFC-enabled traffic classes are displayed.
pfc6-usenumCurrent buffer usage of traffic class 6 (in bytes). In other words, it is the total size of all queued packets on all ports that were received from this port. Only PFC-enabled traffic classes are displayed.
pfc7-usenumCurrent buffer usage of traffic class 7 (in bytes). In other words, it is the total size of all queued packets on all ports that were received from this port. Only PFC-enabled traffic classes are displayed.
pfc-paused-tcmulti { array-id, tc: num }The list of traffic classes that should be paused. PFC pause frames (XOFF) are periodically sent with the listed timers set from this port.
pfc-unknownmulti { counter: num }Unknown PFC frame count.
pfc-rxmulti { counter: num }Received PFC frame count.
pfc-txnumTransmitted PFC frame count.
rx-pausemulti { counter: num }Received pause frame count.
tx-pausemulti { counter: num }Transmitted pause frame count.
tx-queue0-packetmulti { counter: num }The number of packets transmitted via this port from queue 0.
tx-queue0-bytemulti { counter: num }The number of bytes transmitted via this port from queue 0.
tx-queue1-packetmulti { counter: num }The number of packets transmitted via this port from queue 1.
tx-queue1-bytemulti { counter: num }The number of bytes transmitted via this port from queue 1.
tx-queue2-packetmulti { counter: num }The number of packets transmitted via this port from queue 2.
tx-queue2-bytemulti { counter: num }The number of bytes transmitted via this port from queue 2.
tx-queue3-packetmulti { counter: num }The number of packets transmitted via this port from queue 3.
tx-queue3-bytemulti { counter: num }The number of bytes transmitted via this port from queue 3.
tx-queue4-packetmulti { counter: num }The number of packets transmitted via this port from queue 4.
tx-queue4-bytemulti { counter: num }The number of bytes transmitted via this port from queue 4.
tx-queue5-packetmulti { counter: num }The number of packets transmitted via this port from queue 5.
tx-queue5-bytemulti { counter: num }The number of bytes transmitted via this port from queue 5.
tx-queue6-packetmulti { counter: num }The number of packets transmitted via this port from queue 6.
tx-queue6-bytemulti { counter: num }The number of bytes transmitted via this port from queue 6.
tx-queue7-packetmulti { counter: num }The number of packets transmitted via this port from queue 7.
tx-queue7-bytemulti { counter: num }The number of bytes transmitted via this port from queue 7.
tx-drop-packetmulti { counter: num }Total transmitted packets dropped.
tx-drop-bytemulti { counter: num }Total transmitted bytes dropped.
tx-drop-queue0-packetmulti { counter: num }The number of packets dropped from queue 0.
tx-drop-queue0-bytemulti { counter: num }The number of bytes dropped from queue 0.
tx-drop-queue1-packetmulti { counter: num }The number of packets dropped from queue 1.
tx-drop-queue1-bytemulti { counter: num }The number of bytes dropped from queue 1.
tx-drop-queue2-packetmulti { counter: num }The number of packets dropped from queue 2.
tx-drop-queue2-bytemulti { counter: num }The number of bytes dropped from queue 2.
tx-drop-queue3-packetmulti { counter: num }The number of packets dropped from queue 3.
tx-drop-queue3-bytemulti { counter: num }The number of bytes dropped from queue 3.
tx-drop-queue4-packetmulti { counter: num }The number of packets dropped from queue 4.
tx-drop-queue4-bytemulti { counter: num }The number of bytes dropped from queue 4.
tx-drop-queue5-packetmulti { counter: num }The number of packets dropped from queue 5.
tx-drop-queue5-bytemulti { counter: num }The number of bytes dropped from queue 5.
tx-drop-queue6-packetmulti { counter: num }The number of packets dropped from queue 6.
tx-drop-queue6-bytemulti { counter: num }The number of bytes dropped from queue 6.
tx-drop-queue7-packetmulti { counter: num }The number of packets dropped from queue 7.
tx-drop-queue7-bytemulti { counter: num }The number of bytes dropped from queue 7.