trema/trema — Issue #148: traffic monitor from Software Design (Oct)
Author: canaan
Created: 2011-11-21 04:44:24+00:00
State: open

Trema could handle the one-way packet sending but could not send the packets
on the another-way if I did not got first errors.

The trema window show this messages,
y-kanaumi@ubuntu-vm:~/work/trema/trema$ ./trema run ./traffic_monitor.rb -c ./trema.conf
[sudo] password for y-kanaumi:
Mon Nov 21 13:35:46 +0900 2011
3a:5d:45:f7:33:6b 5 packets (378 bytes)
d6:d0:b4:fc:59:63 5 packets (378 bytes)
4e:d5:28:fd:dd:6f 4 packets (300 bytes)
00:00:00:00:00:02 44 packets (2816 bytes)
6a:d6:3f:05:cb:59 5 packets (378 bytes)
/home/y-kanaumi/work/trema/trema/ruby/trema/mac.rb:63:in `initialize': Invalid MAC address: # (RuntimeError)
from (eval):43:in `new'
from (eval):43:in `initialize'
from (eval):43:in `new'
from (eval):43:in `flow_mod'
from (eval):20:in `packet_in'
from /home/y-kanaumi/work/trema/trema/ruby/trema/dsl/runner.rb:132:in `start_trema'
from /home/y-kanaumi/work/trema/trema/ruby/trema/dsl/runner.rb:132:in `run!'
from /home/y-kanaumi/work/trema/trema/ruby/trema/dsl/runner.rb:132:in `maybe_run_apps'
from /home/y-kanaumi/work/trema/trema/ruby/trema/dsl/runner.rb:131:in `fork'
from /home/y-kanaumi/work/trema/trema/ruby/trema/dsl/runner.rb:131:in `maybe_run_apps'
from /home/y-kanaumi/work/trema/trema/ruby/trema/dsl/runner.rb:33:in `run'
from /home/y-kanaumi/work/trema/trema/ruby/trema/sub-commands.rb:71:in `run'
from ./trema:66:in `__send__'
from ./trema:66
from /usr/lib/ruby/1.8/fileutils.rb:121:in `chdir'
from /usr/lib/ruby/1.8/fileutils.rb:121:in `cd'
from ./trema:57
y-kanaumi@ubuntu-vm:~/work/trema/trema$

The window of sending packets show this messages,
y-kanaumi@ubuntu-vm:~/work/trema/trema$ ./trema send_packets --source host2 --dest host1 --n_pkts 100 --pps 10
y-kanaumi@ubuntu-vm:~/work/trema/trema$ ./trema send_packets --source host1 --dest host2 --n_pkts 100 --pps 10
2011/11/21 13:36:17.022280 [ ERR] (cli.c:257:cli_exec_cmd_with_to) cannot get a reply from server.
2011/11/21 13:36:17.022431 [ ERR] (cli.c:678:cli_parse_send_packets) cannot execute a command.
2011/11/21 13:36:17.022437 [ ERR] (cli.c:132:main) cannot execute.
y-kanaumi@ubuntu-vm:~/work/trema/trema$

=======
My config file is,
y-kanaumi@ubuntu-vm:~/work/trema/trema$ more trema.conf
vswitch {
datapath_id "0xabc"
}
vhost ("host1") {
ip "192.168.0.1"
mac "00:00:00:00:00:01"
}
vhost ("host2") {
ip "192.168.0.2"
mac "00:00:00:00:00:02"
}
link "0xabc", "host1"
link "0xabc", "host2"