[tg] IPv6 and TG, first step !
Hugues VAN PETEGHEM
hvp at info.fundp.ac.be
Wed Jul 20 07:38:01 PDT 2005
Hi all,
As I'm going on holidays for the next 2 weeks, here is the first step of
my work about generating IPv6 using TG. I achieve to do that, but the
code you can find attached is not yet clean and well documented. I will
do that when I'll come back to work.
Anyway, here is an example of IPv6 traffic generation (all the files can
be found attached):
°°°°°°°°°°°°°°°°
CLIENT:
**********
[root at pc06 root]# cat udp_client.tg
on 0:15 udp 2005:0:0:2::2.40000
at 5 setup
at 6 arrival constant 0.01 length constant 576
time 20
[root at pc06 root]# tgv6 -f -i udp_client.tg -o udp_client.tg.out
[root at pc06 root]# dcatv6 udp_client.tg.out > udp_client.tg.txt
[root at pc06 root]# cat udp_client.tg.txt
(...)
Event Time Type Address Id Length
------------------------------------------------------------------------
5.005877 Setup
6.016049 Transmit 2005:0:0:2::2.40000 0 576
6.025924 Transmit 2005:0:0:2::2.40000 1 576
6.035927 Transmit 2005:0:0:2::2.40000 2 576
(...)
25.976571 Transmit 2005:0:0:2::2.40000 1996 576
25.986556 Transmit 2005:0:0:2::2.40000 1997 576
25.996576 Transmit 2005:0:0:2::2.40000 1998 576
26.006568 Teardown
And, on an other terminal:
[root at pc06 root]# tcpdump -i eth0 host 2005:0:0:2::2 -w cap.cap
tcpdump: listening on eth0
1999 packets received by filter
0 packets dropped by kernel
SERVER:
************
[root at pc08 root]# cat udp_server.tg
on 0:15 udp 2005:0:0:2::2.40000 server
at 1.1 wait
[root at pc08 root]# tgv6 -f -i udp_server.tg -o udp_server.tg.out
[root at pc08 root]# killall -9 tgv6
[root at pc08 root]# dcatv6 udp_server.tg.out > udp_server.tg.txt
[root at pc08 root]# cat udp_server.tg.txt
(...)
Event Time Type Address Id Length
------------------------------------------------------------------------
4294967287.228750 Setup
6.037133 Receive 2005::6.45306 0 576
6.046847 Receive 2005::6.45306 1 576
6.056839 Receive 2005::6.45306 2 576
(...)
25.997967 Receive 2005::6.45306 1996 576
26.007976 Receive 2005::6.45306 1997 576
26.017968 Receive 2005::6.45306 1998 576
°°°°°°°°°°°°°°°°
See you soon on the mailling list :
H
--
Hugues VAN PETEGHEM
Computer Science Institute - FUNDP
--------------------------------------
Web : http://www.info.fundp.ac.be/~hvp
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.postel.org/pipermail/tg/attachments/20050720/2c1e3065/attachment-0001.html
-------------- next part --------------
A non-text attachment was scrubbed...
Name: example.tar.gz
Type: application/x-compressed-tar
Size: 77421 bytes
Desc: not available
Url : http://www.postel.org/pipermail/tg/attachments/20050720/2c1e3065/example.tar-0001.bin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: tgv6_dcatv6.tar.gz
Type: application/x-compressed-tar
Size: 123843 bytes
Desc: not available
Url : http://www.postel.org/pipermail/tg/attachments/20050720/2c1e3065/tgv6_dcatv6.tar-0001.bin
More information about the tg
mailing list