EXAMPLE
of MGEN6 Test
---------------------
We want to measure the link between two hosts: "pampol-axi" and "malv".
1.- We run "drec" in one of the hosts (pampol-axi) in this case. Drec will
log all the packets sent by the other host (malv). With this packets logged
we will be able to calculate some statistics.
[root@pampol-axi /root]# drec6 -s 200000 testIPv6
DREC: Version 3.1 IPv6
DREC: program priority set to 98
DREC: Listening for packets ...
(Hit <CTRL-C> to stop)
DREC: Closing log file ...
2.- We execute mgen6 in the other host (malv). We configure mgen to send
to the packets to "pampol-axi" with a ratio of 900 packets per second, 1280
bytes packet size and a constant flow of 10 seconds.
malv:/root ->mgen6 -b pampol-axi
-r 900 -s 1280 -d 10 200000
MGEN: Version 3.1 IPv6
MGEN: program priority set to 98
MGEN: Loading event queue ...
MGEN: Seeding random number generator ...
MGEN: Beginning packet generation ...
(Hit <CTRL-C> to stop)
MGEN: Packets Tx'd :
9000
MGEN: Transmission period: 10.004 seconds.
MGEN: Ave Tx pkt rate : 899.630 pps.
MGEN: Interface Stats : eth0
Frames Tx'd : 9002
Tx Errors : 0
Collisions : 0
MGEN: Done.
When
mgen6 finishes, it shows some statistics.
3- When mgen6 has fihised, we can
stop drec and it shows some statistics.
DREC:
Packets logged: 9000
DREC: Interface Stats : eth0
Frames Recv'd
: 2
Rx Errors : 0
DREC: Done.
4.- Using the file created by drec, we can calculate a lot of statistics
using the mcalc utility.
[root@pampol-axi
/root]# decode testIPv6 | mcalc6
MCALC: Version 3.1 IPv6
---------------------------------------------------------
FLOW>0001 SOURCE>3ffe:3326:3:916::702/1024 DESTINATION>3ffe:3326:3:916::701/5000
Num pkts recvd : 9000
Join delay : 0.000000 sec
Recv pkt rate : 897.796 pkt/sec
Recv data rate : 9194.451 kbps
Pkts dropped : 0
Ave. Tx Delay : 0.014181 sec
Max. Tx Delay : 0.024808 sec
Min. Tx Delay : 0.001577 sec
Delay variation : 0.023231 sec
---------------------------------------------------------
MCALC: SUMMARY RESULTS
MCALC: Number of active flows : 1 flows
MCALC: Number of groups joined : 0 groups
MCALC: GROUP JOIN LATENCY STATISTICS
MCALC: Ave. group join latency : 0.000 sec
MCALC: Min. group join latency : 0.000000 sec
MCALC: Max. group join latency : 0.000000 sec
MCALC: DATA TRANSMISSION LATENCY STATISTICS (Time-sync'd machines required!)
MCALC: Ave. data latency :
0.014181 sec
MCALC: Min. data latency :
0.001577 sec
MCALC: Max. data latency :
0.024808 sec
MCALC: PER-FLOW DATA LATENCY VARIATION
MCALC: Ave. latency variation : 0.023231 sec
MCALC: Min. latency variation : 0.023231 sec
MCALC: Max. latency variation : 0.023231 sec
MCALC: PACKET RECEPTION STATISTICS
MCALC: Total packets received : 9000 pkts
MCALC: Total recv packet rate : 897.796 pkt/sec
MCALC: Total recv data rate : 9194.451 kbps
MCALC: Est. num pkts dropped :
0 pkts