The Two-Way Active Measurement Protocol (TWAMP)
MX EX and SRX supporting TWAMP:
https://www.juniper.net/documentation/en_US/junos/topics/concept/twamp-overview-d110.html
Server Side:
set twamp server routing-instance-list Edu port 10862 set twamp server authentication-mode none set twamp server client-list Senders address 192.168.0.0/16
set ethernet connectivity-fault-management linktrace set ethernet connectivity-fault-management maintenance-domain md7 level 7 set ethernet connectivity-fault-management maintenance-domain md7 maintenance-association ma7 continuity-check interval 10s set ethernet connectivity-fault-management maintenance-domain md7 maintenance-association ma7 continuity-check hold-interval 1 set ethernet connectivity-fault-management maintenance-domain md7 maintenance-association ma7 mep 2001 interface ge-0/0/1.0 set ethernet connectivity-fault-management maintenance-domain md7 maintenance-association ma7 mep 2001 direction down set ethernet connectivity-fault-management maintenance-domain md7 maintenance-association ma7 mep 2001 auto-discovery
Client Side:
set ethernet connectivity-fault-management linktrace set ethernet connectivity-fault-management maintenance-domain md7 level 7 set ethernet connectivity-fault-management maintenance-domain md7 maintenance-association ma7 continuity-check interval 10s set ethernet connectivity-fault-management maintenance-domain md7 maintenance-association ma7 continuity-check hold-interval 1 set ethernet connectivity-fault-management maintenance-domain md7 maintenance-association ma7 mep 101 interface ge-0/0/1.0 set ethernet connectivity-fault-management maintenance-domain md7 maintenance-association ma7 mep 101 direction down set ethernet connectivity-fault-management maintenance-domain md7 maintenance-association ma7 mep 101 auto-discovery
set twamp client control-connection Reflector1 destination-port 10862 set twamp client control-connection Reflector1 routing-instance Edu set twamp client control-connection Reflector1 target-address 192.168.1.2 set twamp client control-connection Reflector1 test-count 0 set twamp client control-connection Reflector1 test-interval 10 set twamp client control-connection Reflector1 test-session Class1 target-address 192.168.1.2 set twamp client control-connection Reflector1 test-session Class1 dscp-code-points ef set twamp client control-connection Reflector1 test-session Class2 target-address 192.168.1.2 set twamp client control-connection Reflector1 test-session Class2 dscp-code-points af41
request services rpm twamp start client
show services rpm twamp client history-results
MX80:
set performance-monitoring hardware-assisted-timestamping
set performance-monitoring delegate-server-processing