Page 1 of 1

RB750G switch and monitoring

Posted: Wed Sep 29, 2010 6:23 pm
by punn
Hi!

I have a question regarding the switch chip installed in the 750G routerboard.
It's a Atheros 8316 chip installed.

To activate the switch function I have made on this 5 port RB ether1 the master port for the rest.
 interface ethernet print detail 
Flags: X - disabled, R - running, S - slave 
 0 R  name="ether1" mtu=1500 l2mtu=1524 mac-address=00:0C:42:71:B9:B8 
      arp=enabled auto-negotiation=yes full-duplex=yes speed=100Mbps 
      master-port=none bandwidth=unlimited/unlimited switch=switch1 

 1 RS name="ether2" mtu=1500 l2mtu=1524 mac-address=00:0C:42:71:B9:B9 
      arp=enabled auto-negotiation=yes full-duplex=yes speed=1Gbps 
      master-port=ether1 bandwidth=unlimited/unlimited switch=switch1 

 2  S name="ether3" mtu=1500 l2mtu=1524 mac-address=00:0C:42:71:B9:BA 
      arp=enabled auto-negotiation=yes full-duplex=yes speed=1Gbps 
      master-port=ether1 bandwidth=unlimited/unlimited switch=switch1 

 3  S name="ether4" mtu=1500 l2mtu=1524 mac-address=00:0C:42:71:B9:BB 
      arp=enabled auto-negotiation=yes full-duplex=yes speed=1Gbps 
      master-port=ether1 bandwidth=unlimited/unlimited switch=switch1 

 4  S name="ether5" mtu=1500 l2mtu=1524 mac-address=00:0C:42:71:B9:BC 
      arp=enabled auto-negotiation=yes full-duplex=yes speed=1Gbps 
      master-port=ether1 bandwidth=unlimited/unlimited switch=switch1 
But unfortunatelly I am not able to monitor the traffic on each port individually.
There should be a traffic also on the ether2 port, as I'm pingig the device attached to it.
Se the attachment.

Please advise me how can I monitor the traffic on each port individually.
Thank you!

Best regards
Gabor
Prague

Re: RB750G switch and monitoring

Posted: Thu Sep 30, 2010 2:51 pm
by zgi
In switch mode, you can't monitor slave interfaces, only master, as far as i know. If you want to monitor each interface put RB in bridge mode.

Re: RB750G switch and monitoring

Posted: Thu Sep 30, 2010 3:11 pm
by kirshteins
You can get stats from switch chip itself:
/interface ethernet print interval=1s stats where name="ether1" 
                    name: "ether1"
            rx-broadcast: 675948
                rx-pause: 0
            rx-multicast: 70697
            rx-fcs-error: 0
          rx-align-error: 0
                 rx-runt: 0
             rx-fragment: 0
                   rx-64: 519755
               rx-65-127: 220824
              rx-128-255: 96321
              rx-256-511: 10987
             rx-512-1023: 5308
            rx-1024-1518: 56235
             rx-1519-max: 0
             rx-too-long: 0
             rx-overflow: 0
                rx-bytes: 157247305
            tx-broadcast: 2964
                tx-pause: 0
            tx-multicast: 2650
             tx-underrun: 0
                   tx-64: 5806
               tx-65-127: 111710
              tx-128-255: 11094
              tx-256-511: 2741
             tx-512-1023: 4882
            tx-1024-1518: 1576
             tx-1519-max: 0
             tx-too-long: 0
            tx-collision: 0
  tx-excessive-collision: 0
   tx-multiple-collision: 0
     tx-single-collision: 0
   tx-excessive-deferred: 0
             tx-deferred: 0
       tx-late-collision: 0
                tx-bytes: 18260645

Re: RB750G switch and monitoring

Posted: Thu Sep 30, 2010 7:44 pm
by punn
In switch mode, you can't monitor slave interfaces, only master, as far as i know. If you want to monitor each interface put RB in bridge mode.
I know that is possible to put it in to bridge mode, but is more hw demanding that the switch chip.
Tried both ways. bridge mode was about 20Mb/s slower then the switch chip.

@kirshteins
is possible the monitooring trough dude ?

Thanks for the reply!