728x90

COS 설정 확인 shell 명령어



jnpr@PE-3# exit 
Exiting configuration mode

{master}
jnpr@PE-3> start shell pfe network fpc4 


RMPC platform (1200Mhz QorIQ P2020 processor, 3584MB memory, 512KB flash)

NPC0(pe1-RE0 vty)# show cos scheduler-hierarchy

<--snip-->

class-of-service egress scheduler hierarchy - rates in kbps
---------------------------------------------------------------------------------
                                    shaping guarntd delaybf  excess
interface name               index    rate    rate    rate    rate
 other
---------------------------- -----  ------- ------- ------- -------
-------------
xe-0/0/1                       164        0       0       0       0
  xe-0/0/1.2000                329    10000       0       0       0
    q 1 - pri 0/0            37272        0     24%     24%      0%
    q 2 - pri 0/0            37272        0      2%      2%      0%
    q 3 - pri 2/0            37272        0      1%      5%      0%
    q 4 - pri 0/0            37272        0     24%     24%      0%
    q 5 - pri 3/0            37272        0     24%    5000      0% exact
  xe-0/0/1.32767               429        0    2000    2000       0
    q 0 - pri 0/1                2        0     95%     95%      0%
    q 3 - pri 0/1                2        0      5%      5%      0%


NGMPC4(PE-3 vty)# show cos halp ifl 401
IFL type: Basic

--------------------------------------------------------------------------------
IFL name: (xe-4/0/0.200, xe-4/0/0)   (Index 401, IFD Index 207)
    XQ chip id: 0
    XQ chip Scheduler: 0
    XQ chip L2 index: -1
    XQ chip L3 index: -1
    XQ chip L4 index: 31
    XQ chip base Q index: 248
    Number of queues: 8
Queue    State        Max       Guaranteed   Burst  Weight Priorities Drop-Rules  Scaling-profile 
Index                 rate         rate      size            G    E   Wred  Tail       ID
------ ----------- ----------- ------------ ------- ------ ---------- ----------  ----------------
   248  Configured  3000000000            0 67108864      1   GL   EL    0   140        3
   249  Configured  3000000000    200000000 67108864     24   GL   EL    4   493        3
   250  Configured  3000000000    300000000 67108864     37   GL   EL    4   493        3
   251  Configured  3000000000    500000000 67108864     62   GL   EL    4   493        3
   252  Configured  3000000000     Disabled 67108864      1   GH   EH    4   508        1
   253  Configured  3000000000            0 67108864      1   GL   EL    0   140        3
   254  Configured  3000000000            0 67108864      1   GL   EL    0   140        3
   255  Configured  3000000000            0 67108864      1   GL   EL    0   140        3



728x90
The following highlighted truncated output of the command indicates a few error fields; the meaning of which is unknown to many users.
user@test>show interface ge-0/0/0 extensive
Physical interface: ge-0/0/0, Enabled, Physical link is Up
  Interface index: 134, SNMP ifIndex: 505, Generation: 137
  Link-level type: Ethernet, MTU: 1514, Link-mode: Full-duplex, Speed: 1000mbps,
  BPDU Error: None, MAC-REWRITE Error: None, Loopback: Disabled,
  Source filtering: Disabled, Flow control: Enabled, Auto-negotiation: Enabled,
  Remote fault: Online
  Device flags   : Present Running
  Interface flags: SNMP-Traps Internal: 0x0
  Link flags     : None
  CoS queues     : 8 supported, 8 maximum usable queues
  Hold-times     : Up 0 ms, Down 0 ms
  Current address: 00:26:88:eb:62:c0, Hardware address: 00:26:88:eb:62:c0
  Last flapped   : 2012-06-04 14:39:14 UTC (00:35:10 ago)
  Statistics last cleared: Never
  Traffic statistics:
   Input  bytes  :                30972                    0 bps
   Output bytes  :                    0                    0 bps
   Input  packets:                  427                    0 pps
   Output packets:                    0                    0 pps
  Input errors:     Errors: 0, Drops: 0, Framing errors: 0, Runts: 0, Policed discards: 0,        L3 incompletes: 0, L2 channel errors: 0, L2 mismatch timeouts: 0,     
FIFO errors: 0, Resource errors: 0 Output errors: Carrier transitions: 1, Errors: 0, Drops: 0, Collisions: 0, Aged packets: 0,
FIFO errors: 0, HS link CRC errors: 0, MTU errors: 0, Resource errors: 0

CAUSE:


SOLUTION:

The errors can be classified as Input and Output. Input errors account for the erroneous counters, which occur at the input queue of SRX interface.

  • Errors: Sum of the incoming frame aborts and FCS errors.

  • Drops: Number of packets dropped by the input queue of the I/O Manager ASIC. If the interface is saturated, this number increments once, for every packet that is dropped by the ASIC's RED mechanism.

  • Framing errors: Number of packets received with an invalid frame checksum (FCS).

  • Runts: Number of received frames that are smaller than the runt threshold.

  • Policed discards: Number of frames that the incoming packet match code discarded, as they were not recognized or not of interest. Usually, this field reports protocols that the JUNOS software does not handle.

  • L3 incompletes: Number of incoming packets discarded, as they have failed Layer 3 sanity checks for the headers. For example, a frame with less than 20 bytes of available IP header is discarded.

  • L2 channel errors: Number of times the software did not find a valid logical interface for an incoming frame.

  • L2 mismatch timeouts: Number of malformed or short packets which caused the incoming packet handler to discard the frame as unreadable.

  • FIFO errors: Number of FIFO errors in the receive direction that are reported by the ASIC on the PIC. If this value is ever non-zero, the PIC is probably malfunctioning.

  • Resource errors: Sum of transmit drops.

Output errors can be broadly summarized as follows:

  • Carrier transitions: Number of times that the interface has gone from down to up. This number does not normally increment quickly; increasing only when the cable is unplugged, the far-end system is powered down and then up, or another issue occurs. If the number of carrier transitions increments quickly (perhaps once every 10 seconds), the cable, far-end system, PIC or PIM is malfunctioning.

  • Errors: Sum of the outgoing frame aborts and FCS errors.

  • Drops: The number of packets which are dropped by the output queue of the I/O Manager ASIC. If the interface is saturated, this number increments once for every packet, which is dropped by the ASIC's RED mechanism.

  • Collisions: The number of Ethernet collisions. The Gigabit Ethernet PIC supports only full-duplex operation; so for Gigabit Ethernet PICs, this number should always remain 0. If it is non-zero, there is a software bug.

  • Aged packets: The number of packets which remained in the shared packet SDRAM for so long, that the system automatically purged them. The value in this field should never increment. If it does, it is most likely a software bug or possible malfunctioning hardware.

  • FIFO errors: The number of FIFO errors in the send direction, as reported by the ASIC on the PIC. If this value is ever non-zero, the PIC is probably malfunctioning.

  • HS link CRC errors: The number of errors on the high-speed links between the ASICs, which are responsible for handling the router interfaces.

  • MTU errors: The number of packets whose size exceeded the interface MTU.

  • Resource errors: Sum of transmit drops.


728x90

 

 

 

 

 

PE1

set interfaces ge-0/0/1 mac 00:0c:29:c7:28:8b

set interfaces ge-0/0/1 unit 0 family inet address 10.10.8.6/24

set interfaces ge-0/0/1 unit 0 family mpls

 

set interfaces ge-0/0/4 vlan-tagging

set interfaces ge-0/0/4 encapsulation vlan-ccc

set interfaces ge-0/0/4 mac 00:0c:29:c7:28:a9

set interfaces ge-0/0/4 unit 0 encapsulation vlan-ccc

set interfaces ge-0/0/4 unit 0 vlan-id 1000

set interfaces ge-0/0/4 unit 0 family ccc

 

set interfaces lo0 unit 0 family inet address 6.6.6.6/24

set routing-options router-id 6.6.6.6

set routing-options forwarding-table export ECMP

set protocols mpls interface ge-0/0/1.0

set protocols ospf area 0.0.0.0 interface ge-0/0/1.0

set protocols ospf area 0.0.0.0 interface lo0.0 passive

set protocols ldp interface ge-0/0/1.0

set protocols ldp interface lo0.0

set protocols l2circuit neighbor 2.2.2.2 interface ge-0/0/4.0 virtual-circuit-id 1

 

 

PE2

 

set interfaces ge-0/0/1 vlan-tagging

set interfaces ge-0/0/1 encapsulation vlan-ccc

set interfaces ge-0/0/1 mac 00:0c:29:4a:be:1d

set interfaces ge-0/0/1 unit 0 encapsulation vlan-ccc

set interfaces ge-0/0/1 unit 0 vlan-id 1000

set interfaces ge-0/0/1 unit 0 family ccc

 

set interfaces ge-0/0/4 mac 00:0c:29:4a:be:3b

set interfaces ge-0/0/4 unit 0 family inet address 10.10.8.2/24

set interfaces ge-0/0/4 unit 0 family mpls

set interfaces lo0 unit 0 family inet address 2.2.2.2/32

set routing-options router-id 2.2.2.2

set routing-options forwarding-table export ECMP

set protocols mpls interface ge-0/0/4.0

set protocols ospf area 0.0.0.0 interface lo0.0 passive

set protocols ospf area 0.0.0.0 interface ge-0/0/4.0

set protocols ldp interface ge-0/0/4.0

set protocols ldp interface lo0.0

set protocols l2circuit neighbor 6.6.6.6 interface ge-0/0/1.0 virtual-circuit-id 1

 

 

chano@PE2# run show l2circuit connections 

Layer-2 Circuit Connections:

 

Legend for interface status  

Up -- operational            

Dn -- down                   

Neighbor: 6.6.6.6 

    Interface                 Type  St     Time last up          # Up trans

    ge-0/0/1.0(vc 1)          rmt   Up     May 18 11:23:56 2015           1

      Remote PE: 6.6.6.6, Negotiated control-word: Yes (Null)

      Incoming label: 299888, Outgoing label: 300128

      Negotiated PW status TLV: No

      Local interface: ge-0/0/1.0, Status: Up, Encapsulation: VLAN

      Flow Label Transmit: No, Flow Label Receive: No

 

 

chano@PE1> ping mpls l2circuit virtual-circuit 1 neighbor 2.2.2.2      

!!!!!

--- lsping statistics ---

5 packets transmitted, 5 packets received, 0% packet loss

 

 

728x90

 

 

 

 

 

PE1

set interfaces ge-0/0/1 mac 00:0c:29:c7:28:8b

set interfaces ge-0/0/1 unit 0 family inet address 10.10.8.6/24

set interfaces ge-0/0/1 unit 0 family mpls

set interfaces ge-0/0/4 encapsulation ethernet-ccc

set interfaces ge-0/0/4 mac 00:0c:29:c7:28:a9

set interfaces ge-0/0/4 unit 0

set interfaces lo0 unit 0 family inet address 6.6.6.6/24

set routing-options router-id 6.6.6.6

set routing-options forwarding-table export ECMP

set protocols mpls interface ge-0/0/1.0

set protocols ospf area 0.0.0.0 interface ge-0/0/1.0

set protocols ospf area 0.0.0.0 interface lo0.0 passive

set protocols ldp interface ge-0/0/1.0

set protocols ldp interface lo0.0

set protocols l2circuit neighbor 2.2.2.2 interface ge-0/0/4.0 virtual-circuit-id 1

 

 

PE2

set interfaces ge-0/0/1 encapsulation ethernet-ccc

set interfaces ge-0/0/1 mac 00:0c:29:4a:be:1d

set interfaces ge-0/0/1 unit 0

set interfaces ge-0/0/4 mac 00:0c:29:4a:be:3b

set interfaces ge-0/0/4 unit 0 family inet address 10.10.8.2/24

set interfaces ge-0/0/4 unit 0 family mpls

set interfaces lo0 unit 0 family inet address 2.2.2.2/32

set routing-options router-id 2.2.2.2

set routing-options forwarding-table export ECMP

set protocols mpls interface ge-0/0/4.0

set protocols ospf area 0.0.0.0 interface lo0.0 passive

set protocols ospf area 0.0.0.0 interface ge-0/0/4.0

set protocols ldp interface ge-0/0/4.0

set protocols ldp interface lo0.0

set protocols l2circuit neighbor 6.6.6.6 interface ge-0/0/1.0 virtual-circuit-id 1

 

 

chano@PE2# run show l2circuit connections 

Layer-2 Circuit Connections:

 

Legend for interface status  

Up -- operational            

Dn -- down                   

Neighbor: 6.6.6.6 

    Interface                 Type  St     Time last up          # Up trans

    ge-0/0/1.0(vc 1)          rmt   Up     May 15 22:25:06 2015           1

      Remote PE: 6.6.6.6, Negotiated control-word: Yes (Null)

      Incoming label: 299888, Outgoing label: 300128

      Negotiated PW status TLV: No

      Local interface: ge-0/0/1.0, Status: Up, Encapsulation: ETHERNET

      Flow Label Transmit: No, Flow Label Receive: No

 

 

chano@PE1> ping mpls l2circuit virtual-circuit 1 neighbor 2.2.2.2      

!!!!!

--- lsping statistics ---

5 packets transmitted, 5 packets received, 0% packet loss

 

 

 

 

 

+ Recent posts