Thursday, February 8, 2018

twamp server and client

1- download and compile
$ git cloen https://github.com/emirica/twamp-protocol.git
$ cd twamp-protocol
$ make

2- allow the binary  to bind to lower port (862)
$  sudo setcap CAP_NET_BIND_SERVICE=+eip /home/user1/twamp-protocol/server

3- run server
$ /home/user1/twamp-protocol/server

4- run client

- test only one packete
$ ./client  -s localhost

-test 100 packets
$ ./client  -s localhost -n 100


5- if we want to deny that binary to bind to allow port, run command below

$  sudo setcap CAP_NET_BIND_SERVICE=-eip /home/user1/twamp-protocol/server

No comments:

Post a Comment