Monday, August 3, 2020

VPLS.US 09/30/2012 802.1ag for unix

http://vpls.us/?p=780 Sun, 30 Sep 2012 18:07:58 +0000 timc
http://vpls.us/?p=780

http://www.bortzmeyer.org/ethernet-oam.html

Of course it's in french. But if you translate it...

https://noc.sara.nl/nrg/dot1ag-utils/

bash-4.2# ethping -ieth1 -l7 -c5 00:00:5e:00:01:14
Sending CFM LBM to 00:00:5e:00:01:14
Request timeout for 1878795604
Request timeout for 1878795605
Request timeout for 1878795606
Request timeout for 1878795607
bash-4.2#

and a try with the trace


bash-4.2# ethtrace -i eth1 -l 7 00:09:3d:13:f2:a0
Sending CFM LTM probe to 00:09:3d:13:f2:a0
ttl 1: LTM with id 1925342007
no replies for LTM 1925342007
ttl 2: LTM with id 1925342008
no replies for LTM 1925342008
ttl 3: LTM with id 1925342009
no replies for LTM 1925342009
ttl 4: LTM with id 1925342010
no replies for LTM 1925342010
ttl 5: LTM with id 1925342011
no replies for LTM 1925342011
ttl 6: LTM with id 1925342012
no replies for LTM 1925342012
ttl 7: LTM with id 1925342013
no replies for LTM 1925342013
ttl 8: LTM with id 1925342014
no replies for LTM 1925342014
ttl 9: LTM with id 1925342015
no replies for LTM 1925342015

]]>

780
2012-09-30 11:07:58
2012-09-30 18:07:58
open
open
odds-ends
publish
0
0
post

0



_wordbooker_thumb



_wordbooker_extract
http://www.bortzmeyer.org/ethernet-oam.html

Of course it's in french. But if you translate it...

https://noc.sara.nl/nrg/dot1ag-utils/

bash-4.2# ethping -ieth1 -l7 -c5 00:00:5e:00:01:14
Sending CFM LBM to 00:00: ...]]>


_wordbooker_options



_edit_last



_oembed_3b89bc87179a7f8c07ed3748776125d7



_oembed_6f64d583c5ce7c0fbb63f94471f0b1d7



http://vpls.us/?p=786 Tue, 02 Oct 2012 18:16:20 +0000 timc
http://vpls.us/?p=786

#!/bin/bash
echo "setmac to $1"
numbers=(`echo $1 | tr ':' ' '`)
echo ${numbers[0]}

KEY=669955aa
numbers[0]=c0
numbers[1]=ff
numbers[2]=ee
numbers[3]=c0
numbers[4]=ff
numbers[5]=ee

ethtool -E eth0 magic 0x$KEY offset 0x7e value 0x${numbers[0]}
ethtool -E eth0 magic 0x$KEY offset 0x7f value 0x${numbers[1]}
ethtool -E eth0 magic 0x$KEY offset 0x80 value 0x${numbers[2]}
ethtool -E eth0 magic 0x$KEY offset 0x81 value 0x${numbers[3]}
ethtool -E eth0 magic 0x$KEY offset 0x82 value 0x${numbers[4]}
ethtool -E eth0 magic 0x$KEY offset 0x83 value 0x${numbers[5]}

echo ethtool -E eth0 magic 0x$KEY offset 0x83 value 0x${number[5]}

Had some problems finding the the magic, but after that it was all downhill

eth1: flags=4163  mtu 1500
        inet 10.45.21.205  netmask 255.255.254.0  broadcast 10.45.21.255
        inet6 fe80::c2ff:eeff:fec0:ffee  prefixlen 64  scopeid 0x20

        ether c0:ff:ee:c0:ff:ee  txqueuelen 1000  (Ethernet)
        RX packets 43102  bytes 8804897 (8.3 MiB)
        RX errors 0  dropped 15  overruns 0  frame 0
        TX packets 7729  bytes 1102903 (1.0 MiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0
        device interrupt 16  

]]>

786
2012-10-02 11:16:20
2012-10-02 18:16:20
open
open
macs
publish
0
0
post

0


_wordbooker_thumb



_wordbooker_extract

#!/bin/bash
echo "setmac to $1"
numbers=(`echo $1 | tr ':' ' '`)
echo ${numbers[0]}

KEY=669955aa
numbers[0]=c0
numbers[1]=ff
numbers[2]=ee
numbers[3]=c0
numbers ...]]>


_wordbooker_options



_edit_last



http://vpls.us/?p=792 Thu, 04 Oct 2012 18:17:52 +0000 timc
http://vpls.us/?p=792


RFC 2544 Applicability Statement: Use on Production Networks Considered Harmful

2544 is to be considered Harmful :) oh wow, so we've been using testing procedures that are to be considered harmful. Yeah, we knew all that :P We just haven't had many other options. The new Y.1564 standard that is out from the ITU-T is going to go a long way towards rectifying a lot of the problems of testing Ethernet in the last mile between the PE and CE. However, what is really a Gem is hidden in the back of that little document. Back in Appendix I. CBS and EBS test methodology. It describes the tests that are included to be preliminary or experimental, and for informational purposes only. I'm not sure why that is, perhaps the tests really aren't applicable to a real world test and probably more geared towards the testing of lab gear? I guess that would be my initial guess as to why they weren't included in the formal document. However for the lab. OH YEAH. This is cool. E.3 basically lets the tester, run tests against the hardware buffers to determine the buffer capacity.

Let me repeat that. E.3 allows a tester to test the buffer capacity of a circuit / interface / hardware / switch, etcetra.... Line item 4 on E.3 says to test EBS.

the transmitter turns off for the smallest amount of time necessary
to ensure that the B-e token bucket is full and has overflowed by an amount
equal to or greater than 2%(EBS). Then the transmitter bursts the largest
number of back-to back (minimum interframe gap) frames that will drawn down
the Be token bucket until the number of tokens is more than or equal to

Being the geek that I am, I was drooling when I read that. I've been burned by so many switch vendors that don't allocate enough buffer space to their small interfaces on a switch and the first time you try to send traffic from the core to the edge interface in that box, it' pukes, or more specifically just starts puking packets out of it's buffers, making customers call in and complain. The customers calling in and complaining is by far the worse.

The only draw back is that I have to ask the vendors if they support ITU-T 1564 SAM Appendix I
]]>