#configure terminal | Enter to Config mode |
(config)# hardware-profile filter twamp-ipv4 enable | Enable the hardware profile filter for TWAMP ipv4 so that HW timestamps can be retrieved in the DNX hardware for IPv4 |
(config)# hardware-profile filter twamp-ipv6 enable | Enable the hardware profile filter for TWAMP ipv6 so that HW timestamps can be retrieved in the DNX hardware for IPv6 |
(config)#twamp-light control | Enter to Twamp-Light control mode |
(config-twamp-light-ctrl)#control-admin-state enable | Enable the Twamp-light sender framework |
(config-twamp-light-ctrl)#exit | Exit the Twamp-light control mode |
(config)#interface xe1 | Enter interface mode. |
(config-if)#ip address 23.1.1.1/24 | Configure ipv4 address |
(config-if)#ipv6 address 222::1/64 | Configure ipv4 address |
(config-if)# delay-measurement dynamic twamp reflector-ip 23.1.1.2 reflector-port 1235 sender-ip 23.1.1.1 sender-port 1234 dscp 56 | Configure the TWAMP delay measurement |
(config-if)#commit | Commit the candidate configuration to running configuration. |
#configure terminal | Enter Configure mode |
(config)# hardware-profile filter twamp-ipv4 enable | Enable the hardware profile filter for TWAMP ipv4 so that HW timestamps can be retrieved in the DNX hardware for IPv4 |
(config)# hardware-profile filter twamp-ipv6 enable | Enable the hardware profile filter for TWAMP ipv6 so that HW timestamps can be retrieved in the DNX hardware for IPv6 |
(config)#interface xe2 | Enter interface mode. |
(config-if)#ip address 23.1.1.2/24 | Configure ipv4 address |
(config-if)#ipv6 address 222::2/64 | Configure ipv6 address |
(config-if)#exit | Exit interface mode |
(config)#twamp-light reflector | Enter to Twamp-Light reflector mode |
(config-twamp-light-ref)#reflector-admin-state enable | Enable the Twamp-light reflector framework |
(config-twamp-light-ref)#reflector-name r1 reflector-ip 23.1.1.2 reflector-port 1235 sender-ip 23.1.1.1 sender-port 1234 | Create a reflector instance |
(config-twamp-light-ref)#commit | Commit the candidate configuration to the running configuration |
(config-twamp-light-ref)#exit | Exit Twamp-Light reflector mode |
#configure terminal | Enter Configure mode |
(config)# delay-profile interfaces | Enter in to delay profile mode |
(config-dp-int)#burst interval 3000 | To config the burst interval for TWAMP packets in milliseconds( default value is 3000 milliseconds ). |
(config-dp-int)#burst count 10 | To set the number of packets to be sent at each burst interval (default=10) |
(config-dp-int)#interval 30 | To set the computation interval for TWAMP packets in seconds. (Default=30 sec) |
(config-dp-int)#interval 120 | To set the computation interval of TWAMP packets for advertisement periodic mode |
(config-dp-int)# advertisement periodic threshold 10 | Config threshold value inside advertisement periodic mode for TWAMP packets |
(config-dp-int)# advertisement periodic minimum-change 1000 | Config minimum change value inside advertisement periodic mode for TWAMP packets |
(config-dp-int)# advertisement accelerated | Enable advertisement accelerated in delay profile mode |
(config-dp-int)# advertisement accelerated threshold 20 | Config advertisement accelerated minimum change value inside delay profile mode for TWAMP packets |
(config-dp-int)# advertisement accelerated minimum-change 2000 | Config advertisement accelerated minimum change value inside delay profile mode for TWAMP packets |
(config--dp-int)#commit | Commit the candidate configuration to running configuration |
#configure terminal | Enter configure mode |
(config)#interface xe1 | Enter interface mode |
(config-if)#delay-measurement dynamic twamp reflector-ip 23.1.1.2 reflector-port 1235 sender-ip 23.1.1.1 sender port 1234 dscp 56 | Configure delay measurement |
config-if)#loss-measurement dynamic | Configure loss measurement after delay measurement is already configured |
(config-if)#commit | Commit the candidate configuration to running configuration |
(config-if)#exit | Exit interface mode |
#configure terminal | Enter configure mode |
(config)# hardware-profile filter twamp-ipv4 disable | Disable hardware profile filter for TWAMP ipv4 |
(config)# hardware-profile filter twamp-ipv6 disable | Disable hardware profile filter for TWAMP ipv6 |
(config)#interface xe1 | Enter interface mode |
(config-if)# no delay-measurement dynamic twamp reflector-ip 23.1.1.2 | Unconfigure delay measurement |
(config-if)#no loss-measurement dynamic | Unconfigure loss measurement |
(config-if)#commit | Commit the candidate configuration to running configuration |
(config-if)#exit | Exit interface mode |
#configure terminal | Enter configure mode |
(config)# delay-profile interfaces | Enter in to delay profile mode |
(config-dp-int)#no burst interval | Un-Config burst interval value inside delay profile mode |
(config-dp-int)#no burst count | Un-Config burst count value inside delay profile mode |
(config-dp-int)#no interval | Un-Config interval value inside delay profile mode |
(config-dp-int)#no sender-port | Un-Config sender port value inside delay profile mode |
(config-dp-int)#no advertisement periodic | Disable advertisement periodic mode |
config-dp-int)#no interval | Un-Config interval value inside for advertisement periodic mode |
(config-dp-int)#no advertisement periodic threshold | Un-Config threshold value inside advertisement periodic mode |
(config-dp-int)# no advertisement periodic minimum-change | Un-Config minimum change value inside advertisement periodic mode |
(config-dp-int)#no advertisement accelerated | Un-Config accelerated inside advertisement mode |
(config-dp-int)#no advertisement accelerated minimum-change | Un-Config advertisement accelerated minimum change value inside delay profile mode |
(config-dp-int)# no advertisement accelerated threshold | Un-Config advertisement accelerated threshold value inside delay profile mode |
(config-dp-if)#commit | Commit the candidate configuration to running configuration |
Router1# clear twamp measurement interface xe1 | This command will restart the measurement on the specified interface, resetting the collected stats. |
Router1# clear twamp measurement interface all | This command will restart the measurement on all the interfaces, resetting all the collected stats. If there are any non-applied configuration changes to the delay profile, they will be applied when this command is issued. |
#configure terminal | Enter configure mode. |
(config)# hardware-profile filter twamp-ipv4 enable | Enable the hardware profile filter for TWAMP ipv4 so that HW timestamps can be retrieved in the DNX hardware for IPv4 |
(config)#twamp-light control | Enter the Twamp-Light control mode |
(config-twamp-light-ctrl)#control-admin-state enable | Enable the Twamp-light sender framework |
(config-twamp-light-ctrl)#exit | Exit the Twamp-light Control mode |
(config)#interface xe1 | Enter xe1 interface mode |
(config-if)#ip address 10.10.10.1/24 | Configure ipv4 address |
(config-if)#exit | Exit interface mode |
(config)#interface xe2 | Enter xe2 interface mode |
(config-if)#ip address 20.20.20.1/24 | Configure ipv4 address |
(config-if)# delay-measurement dynamic twamp sender-ip 20.20.20.1 reflector-ip 30.30.30.2 reflector-port 1234 | Configuring delay measurement. Since it is applied on interface xe2, it will force the packets to go out from xe2 even if others paths are available |
(config-if)#commit | Commit the candidate configuration to running configuration. |
(config-if)#exit | Exit interface mode |
(config)#ip route 30.30.30.0/24 20.20.20.2 | Set static route to reflector. |
(config)#commit | Commit the candidate configuration to running configuration |
#configure terminal | Enter Configure mode |
(config)# hardware-profile filter twamp-ipv4 enable | Enable the hardware profile filter for TWAMP ipv4 so that HW timestamps can be retrieved in the DNX hardware for IPv4 |
(config)#interface xe1 | Enter xe1 interface mode |
(config-if)#ip address 30.30.30.2/24 | Configure ipv4 address |
(config)#interface xe2 | Enter xe2 interface mode |
(config-if)#ip address 10.10.10.2/24 | Configure ipv4 address |
(config-if)#exit | Exit interface mode. |
(config)#twamp-light reflector | Enter the Twamp-Light reflector mode |
(config-twamp-light-ref)#reflector-admin-state enable | Enabling the Twamp-light reflector framework |
(config-twamp-light-ref)#reflector-name r1 reflector-ip 30.30.30.2 reflector-port 1234 sender-ip 20.20.20.1 | Configuring the reflector instance with reflector ip and port number. Specifying explicitly the sender-ip in the reflector command will force the reflector to reply from the interface where the reflector-ip is configured. |
(config-twamp-light-ref)#commit | Commit the candidate configuration to the running configuration |
(config-if)#exit | Exit interface mode |
(config)#ip route 20.20.20.0/24 30.30.30.1 | Set static route to sender |
(config)#commit | Commit the candidate configuration to running configuration |
#configure terminal | Enter Configure mode |
(config)#interface xe1 | Enter xe1 interface mode |
(config-if)#ip address 20.20.20.2/24 | Configure ipv4 address |
(config)#interface xe2 | Enter xe2 interface mode |
(config-if)#ip address 30.30.30.1/24 | Configure ipv4 address |
(config-if)#commit | Commit |