-
Notifications
You must be signed in to change notification settings - Fork 7
/
README
68 lines (52 loc) · 2.64 KB
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
This is SLA-NG's "probed" application, which can be used as a ping tool
(a little bit like iperf) or a an SLA daemon collecting statistics for
many measurement sessions. The authors are of this program is Anders
Berggren <[email protected]> and Lukas Garberg <[email protected]>
working for Tele2 <[email protected]>
________________________________________________________________________
COMPILING
In order to compile, you need Linux, libxml2, and pkg-config. In Debian,
these are installed with (as root)
# apt-get install libxml2-dev pkg-config
You can then compile "probed" (the executable probed/probed) with
$ ./configure
$ make
________________________________________________________________________
RUNNING
After compiling, the executable "probed" is found in the folder "probed".
To try it out, start it
$ probed -c 127.0.0.1 -u
which will use user-land timestamping (-u) to ping itself (-c 127.0.0.1).
To ping another machine, start it with as a server with
$ probed -s -u
on one machine, and as a client
$ probed -c name-of-server -u
on the other machine. To try out kernel timestamping, you need a kernel
compiled with the configuration option CONFIG_NETWORK_PHY_TIMESTAMPING
and network drivers with timestamp patches. You can do this yourself by
adding "EXPORT_SYMBOL_GPL(skb_clone_tx_timestamp);" to the Linux file
net/core/timestamping.c and "skb_tx_timestamp(skb);" in the beginning
of the "xmit" function of the driver that you're using. In order to get
hardware timestamping (very accurate!) to work, buy an Intel 82580 NIC,
download the latest Linux kernel, compile it (as noted above) with
CONFIG_NETWORK_PHY_TIMESTAMPING, and check out the Linux netdev thread
http://marc.info/?m=129673051106564 if you're using 2.6.37 or older.
________________________________________________________________________
F.A.Q.
Q: It doesn't compile!
A: It requires Linux (newer versions), libxml2-dev and pkg-config. If
you have, please report compile errors to us.
Q: It crashes!
A: Please contact us!
Q: It just says "Connecting to..."!
A: You need to run probed in server mode (-s) on the other end, and make
sure that both TCP and UDP on port 60666 (or whatever you choose with
the flag -p) is open.
Q: I get TX timestamp errors!
A: You have probably a kernel with CONFIG_NETWORK_PHY_TIMESTAMPING but
not patched drivers with skb_tx_timestamp. See "RUNNING". Or, you
have an Intel 82580 and would like to use hardware timestamping, but
without using a good driver. See http://marc.info/?m=129673051106564.
You also need to be root, in order to use hardware timestamping.
Q: I have checked everything, but still get timestamp errors!
A: Please contact us!