omf_ec 6.0.0.pre.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/.gitignore +4 -0
- data/Gemfile +4 -0
- data/Rakefile +7 -0
- data/bin/omf_test +161 -0
- data/config/ec.yml +164 -0
- data/exp_repo/system/exp/eventlib.rb +96 -0
- data/exp_repo/system/exp/imageNode.rb +283 -0
- data/exp_repo/system/exp/reset.rb +21 -0
- data/exp_repo/system/exp/saveNode.rb +99 -0
- data/exp_repo/system/exp/stat.rb +49 -0
- data/exp_repo/system/exp/stdlib.rb +122 -0
- data/exp_repo/system/exp/tell.rb +53 -0
- data/exp_repo/system/exp/testlib.rb +12 -0
- data/exp_repo/system/exp/winlib.rb +154 -0
- data/exp_repo/system/topo/active.rb +9 -0
- data/exp_repo/system/topo/all.rb +10 -0
- data/exp_repo/system/topo/circle.rb +23 -0
- data/exp_repo/test/app/aodvd.rb +73 -0
- data/exp_repo/test/app/appDef1.rb +102 -0
- data/exp_repo/test/app/athstats.rb +76 -0
- data/exp_repo/test/app/echo.rb +36 -0
- data/exp_repo/test/app/gennyReceiverAppDef.rb +100 -0
- data/exp_repo/test/app/gennySenderAppDef.rb +106 -0
- data/exp_repo/test/app/itgdec.rb +79 -0
- data/exp_repo/test/app/itgr.rb +77 -0
- data/exp_repo/test/app/itgs.rb +105 -0
- data/exp_repo/test/app/nop.rb +36 -0
- data/exp_repo/test/app/otg2.rb +68 -0
- data/exp_repo/test/app/otg2_mp.rb +56 -0
- data/exp_repo/test/app/otr2.rb +56 -0
- data/exp_repo/test/app/otr2_mp.rb +51 -0
- data/exp_repo/test/app/trace_oml2.rb +62 -0
- data/exp_repo/test/app/wlanconfig_oml2.rb +42 -0
- data/exp_repo/test/exp/conf-room-demo.rb +118 -0
- data/exp_repo/test/exp/planetlab.rb +82 -0
- data/exp_repo/test/exp/test01.rb +42 -0
- data/exp_repo/test/exp/test02.rb +60 -0
- data/exp_repo/test/exp/test03.rb +95 -0
- data/exp_repo/test/exp/test04.rb +105 -0
- data/exp_repo/test/exp/test05.rb +87 -0
- data/exp_repo/test/exp/test06.rb +71 -0
- data/exp_repo/test/exp/tutorial/hello-world-wired.rb +79 -0
- data/exp_repo/test/exp/tutorial/hello-world-wireless.rb +87 -0
- data/exp_repo/test/exp/tutorial/using-filters.rb +69 -0
- data/exp_repo/test/exp/tutorial/using-groups.rb +64 -0
- data/exp_repo/test/exp/tutorial/using-properties.rb +93 -0
- data/exp_repo/test/exp/tutorial/using-prototypes.rb +111 -0
- data/exp_repo/test/proto/aodvrouter.rb +55 -0
- data/exp_repo/test/proto/driverqueryapp.rb +59 -0
- data/exp_repo/test/proto/forwarder.rb +73 -0
- data/exp_repo/test/proto/itgcbrsender.rb +70 -0
- data/exp_repo/test/proto/itgdecoder.rb +64 -0
- data/exp_repo/test/proto/itgreceiver.rb +55 -0
- data/exp_repo/test/proto/itgvoipsender.rb +64 -0
- data/exp_repo/test/proto/listener2.rb +62 -0
- data/exp_repo/test/proto/nop.rb +47 -0
- data/exp_repo/test/proto/probelink.rb +48 -0
- data/exp_repo/test/proto/raw_receiver.rb +64 -0
- data/exp_repo/test/proto/receiver2_mp.rb +48 -0
- data/exp_repo/test/proto/sender2_mp.rb +54 -0
- data/exp_repo/test/proto/udp_receiver.rb +55 -0
- data/exp_repo/test/proto/udp_sender.rb +61 -0
- data/lib/omf_ec/version.rb +3 -0
- data/lib/omf_ec.rb +5 -0
- data/omf_ec.gemspec +24 -0
- metadata +145 -0
@@ -0,0 +1,55 @@
|
|
1
|
+
#
|
2
|
+
# Copyright (c) 2006-2009 National ICT Australia (NICTA), Australia
|
3
|
+
#
|
4
|
+
# Copyright (c) 2004-2009 WINLAB, Rutgers University, USA
|
5
|
+
#
|
6
|
+
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
7
|
+
# of this software and associated documentation files (the "Software"), to deal
|
8
|
+
# in the Software without restriction, including without limitation the rights
|
9
|
+
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
10
|
+
# copies of the Software, and to permit persons to whom the Software is
|
11
|
+
# furnished to do so, subject to the following conditions:
|
12
|
+
#
|
13
|
+
# The above copyright notice and this permission notice shall be included in
|
14
|
+
# all copies or substantial portions of the Software.
|
15
|
+
#
|
16
|
+
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
17
|
+
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
18
|
+
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
19
|
+
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
20
|
+
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
21
|
+
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
22
|
+
# THE SOFTWARE.
|
23
|
+
#
|
24
|
+
#
|
25
|
+
#
|
26
|
+
# Define a prototype
|
27
|
+
#
|
28
|
+
|
29
|
+
# This is an OMF Prototype definition
|
30
|
+
# This prototype contains a single UDP traffic receiver, which uses the
|
31
|
+
# existing application otr2.
|
32
|
+
# It allows OMF entities to use and instrument this traffic receiver
|
33
|
+
#
|
34
|
+
defPrototype("test:proto:udp_receiver") do |p|
|
35
|
+
p.name = "UDP_Receiver"
|
36
|
+
p.description = "Nodes which receive UDP packets"
|
37
|
+
|
38
|
+
# Define the properties (and their default values) that can be configured
|
39
|
+
# for this prototype
|
40
|
+
#
|
41
|
+
p.defProperty('localHost', 'Host that generate the packets', 'localhost')
|
42
|
+
p.defProperty('localPort', 'Host that generate the packets', 3000)
|
43
|
+
|
44
|
+
# Define the application to be installed on this type of node,
|
45
|
+
# bind the application properties to the prototype properties,
|
46
|
+
# and finally, define what measurements should be collected
|
47
|
+
# for each application.
|
48
|
+
#
|
49
|
+
p.addApplication("test:app:otr2") do |otr|
|
50
|
+
|
51
|
+
otr.bindProperty('udp:local_host', 'localHost')
|
52
|
+
otr.bindProperty('udp:local_port', 'localPort')
|
53
|
+
otr.measure('udp_in', :samples => 1)
|
54
|
+
end
|
55
|
+
end
|
@@ -0,0 +1,61 @@
|
|
1
|
+
#
|
2
|
+
# Copyright (c) 2006-2010 National ICT Australia (NICTA), Australia
|
3
|
+
#
|
4
|
+
# Copyright (c) 2004-2010 WINLAB, Rutgers University, USA
|
5
|
+
#
|
6
|
+
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
7
|
+
# of this software and associated documentation files (the "Software"), to deal
|
8
|
+
# in the Software without restriction, including without limitation the rights
|
9
|
+
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
10
|
+
# copies of the Software, and to permit persons to whom the Software is
|
11
|
+
# furnished to do so, subject to the following conditions:
|
12
|
+
#
|
13
|
+
# The above copyright notice and this permission notice shall be included in
|
14
|
+
# all copies or substantial portions of the Software.
|
15
|
+
#
|
16
|
+
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
17
|
+
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
18
|
+
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
19
|
+
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
20
|
+
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
21
|
+
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
22
|
+
# THE SOFTWARE.
|
23
|
+
#
|
24
|
+
#
|
25
|
+
|
26
|
+
# This is an OMF Prototype definition
|
27
|
+
# This prototype contains a single UDP traffic generator, which uses the
|
28
|
+
# existing application otg2.
|
29
|
+
# It allows OMF entities to use and instrument this traffic generator
|
30
|
+
#
|
31
|
+
defPrototype("test:proto:udp_sender") do |p|
|
32
|
+
p.name = "UDP_Sender"
|
33
|
+
p.description = "A node which transmit unicast CBR UDP packets"
|
34
|
+
|
35
|
+
# Define the properties (and their default values) that can be configured
|
36
|
+
# for this prototype
|
37
|
+
#
|
38
|
+
p.defProperty('destinationHost', 'Host to send packets to')
|
39
|
+
p.defProperty('destinationPort', 'Host to send packets to',3000)
|
40
|
+
p.defProperty('localHost', 'Host that generate the packets', 'localhost')
|
41
|
+
p.defProperty('localPort', 'Host that generate the packets',3000)
|
42
|
+
p.defProperty('packetSize', 'Size of packets [bytes]', 512)
|
43
|
+
p.defProperty('rate', 'Number of bits per second [bps]', 4096)
|
44
|
+
p.defProperty('broadcast', 'Allow broadcast', 0)
|
45
|
+
|
46
|
+
# Define the application to be installed on this type of node,
|
47
|
+
# bind the application properties to the prototype properties,
|
48
|
+
# and finally, define what measurements should be collected
|
49
|
+
# for each application.
|
50
|
+
#
|
51
|
+
p.addApplication("test:app:otg2") do |otg|
|
52
|
+
otg.bindProperty('udp:broadcast', 'broadcast')
|
53
|
+
otg.bindProperty('udp:dst_host', 'destinationHost')
|
54
|
+
otg.bindProperty('udp:dst_port', 'destinationPort')
|
55
|
+
otg.bindProperty('udp:local_host', 'localHost')
|
56
|
+
otg.bindProperty('udp:local_port', 'localPort')
|
57
|
+
otg.bindProperty('cbr:size', 'packetSize')
|
58
|
+
otg.bindProperty('cbr:rate', 'rate')
|
59
|
+
otg.measure('udp_out', :samples => 1)
|
60
|
+
end
|
61
|
+
end
|
data/lib/omf_ec.rb
ADDED
data/omf_ec.gemspec
ADDED
@@ -0,0 +1,24 @@
|
|
1
|
+
# -*- encoding: utf-8 -*-
|
2
|
+
$:.push File.expand_path("../lib", __FILE__)
|
3
|
+
require "omf_ec/version"
|
4
|
+
|
5
|
+
Gem::Specification.new do |s|
|
6
|
+
s.name = "omf_ec"
|
7
|
+
s.version = OmfEc::VERSION
|
8
|
+
s.authors = ["NICTA"]
|
9
|
+
s.email = ["omf-user@lists.nicta.com.au"]
|
10
|
+
s.homepage = "https://www.mytestbed.net"
|
11
|
+
s.summary = %q{OMF experiment controller}
|
12
|
+
s.description = %q{Experiment controller of OMF, a generic framework for controlling and managing networking testbeds.}
|
13
|
+
|
14
|
+
s.rubyforge_project = "omf_ec"
|
15
|
+
|
16
|
+
s.files = `git ls-files`.split("\n")
|
17
|
+
s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
|
18
|
+
s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
|
19
|
+
s.require_paths = ["lib"]
|
20
|
+
|
21
|
+
# specify any dependencies here; for example:
|
22
|
+
s.add_development_dependency "minitest", "~> 2.11.3"
|
23
|
+
s.add_runtime_dependency "omf_common", "~> 6.0.0.pre"
|
24
|
+
end
|
metadata
ADDED
@@ -0,0 +1,145 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: omf_ec
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 6.0.0.pre.2
|
5
|
+
prerelease: 6
|
6
|
+
platform: ruby
|
7
|
+
authors:
|
8
|
+
- NICTA
|
9
|
+
autorequire:
|
10
|
+
bindir: bin
|
11
|
+
cert_chain: []
|
12
|
+
date: 2012-05-29 00:00:00.000000000 Z
|
13
|
+
dependencies:
|
14
|
+
- !ruby/object:Gem::Dependency
|
15
|
+
name: minitest
|
16
|
+
requirement: !ruby/object:Gem::Requirement
|
17
|
+
none: false
|
18
|
+
requirements:
|
19
|
+
- - ~>
|
20
|
+
- !ruby/object:Gem::Version
|
21
|
+
version: 2.11.3
|
22
|
+
type: :development
|
23
|
+
prerelease: false
|
24
|
+
version_requirements: !ruby/object:Gem::Requirement
|
25
|
+
none: false
|
26
|
+
requirements:
|
27
|
+
- - ~>
|
28
|
+
- !ruby/object:Gem::Version
|
29
|
+
version: 2.11.3
|
30
|
+
- !ruby/object:Gem::Dependency
|
31
|
+
name: omf_common
|
32
|
+
requirement: !ruby/object:Gem::Requirement
|
33
|
+
none: false
|
34
|
+
requirements:
|
35
|
+
- - ~>
|
36
|
+
- !ruby/object:Gem::Version
|
37
|
+
version: 6.0.0.pre
|
38
|
+
type: :runtime
|
39
|
+
prerelease: false
|
40
|
+
version_requirements: !ruby/object:Gem::Requirement
|
41
|
+
none: false
|
42
|
+
requirements:
|
43
|
+
- - ~>
|
44
|
+
- !ruby/object:Gem::Version
|
45
|
+
version: 6.0.0.pre
|
46
|
+
description: Experiment controller of OMF, a generic framework for controlling and
|
47
|
+
managing networking testbeds.
|
48
|
+
email:
|
49
|
+
- omf-user@lists.nicta.com.au
|
50
|
+
executables:
|
51
|
+
- omf_test
|
52
|
+
extensions: []
|
53
|
+
extra_rdoc_files: []
|
54
|
+
files:
|
55
|
+
- .gitignore
|
56
|
+
- Gemfile
|
57
|
+
- Rakefile
|
58
|
+
- bin/omf_test
|
59
|
+
- config/ec.yml
|
60
|
+
- exp_repo/system/exp/eventlib.rb
|
61
|
+
- exp_repo/system/exp/imageNode.rb
|
62
|
+
- exp_repo/system/exp/reset.rb
|
63
|
+
- exp_repo/system/exp/saveNode.rb
|
64
|
+
- exp_repo/system/exp/stat.rb
|
65
|
+
- exp_repo/system/exp/stdlib.rb
|
66
|
+
- exp_repo/system/exp/tell.rb
|
67
|
+
- exp_repo/system/exp/testlib.rb
|
68
|
+
- exp_repo/system/exp/winlib.rb
|
69
|
+
- exp_repo/system/topo/active.rb
|
70
|
+
- exp_repo/system/topo/all.rb
|
71
|
+
- exp_repo/system/topo/circle.rb
|
72
|
+
- exp_repo/test/app/aodvd.rb
|
73
|
+
- exp_repo/test/app/appDef1.rb
|
74
|
+
- exp_repo/test/app/athstats.rb
|
75
|
+
- exp_repo/test/app/echo.rb
|
76
|
+
- exp_repo/test/app/gennyReceiverAppDef.rb
|
77
|
+
- exp_repo/test/app/gennySenderAppDef.rb
|
78
|
+
- exp_repo/test/app/itgdec.rb
|
79
|
+
- exp_repo/test/app/itgr.rb
|
80
|
+
- exp_repo/test/app/itgs.rb
|
81
|
+
- exp_repo/test/app/nop.rb
|
82
|
+
- exp_repo/test/app/otg2.rb
|
83
|
+
- exp_repo/test/app/otg2_mp.rb
|
84
|
+
- exp_repo/test/app/otr2.rb
|
85
|
+
- exp_repo/test/app/otr2_mp.rb
|
86
|
+
- exp_repo/test/app/trace_oml2.rb
|
87
|
+
- exp_repo/test/app/wlanconfig_oml2.rb
|
88
|
+
- exp_repo/test/exp/conf-room-demo.rb
|
89
|
+
- exp_repo/test/exp/planetlab.rb
|
90
|
+
- exp_repo/test/exp/test01.rb
|
91
|
+
- exp_repo/test/exp/test02.rb
|
92
|
+
- exp_repo/test/exp/test03.rb
|
93
|
+
- exp_repo/test/exp/test04.rb
|
94
|
+
- exp_repo/test/exp/test05.rb
|
95
|
+
- exp_repo/test/exp/test06.rb
|
96
|
+
- exp_repo/test/exp/tutorial/hello-world-wired.rb
|
97
|
+
- exp_repo/test/exp/tutorial/hello-world-wireless.rb
|
98
|
+
- exp_repo/test/exp/tutorial/using-filters.rb
|
99
|
+
- exp_repo/test/exp/tutorial/using-groups.rb
|
100
|
+
- exp_repo/test/exp/tutorial/using-properties.rb
|
101
|
+
- exp_repo/test/exp/tutorial/using-prototypes.rb
|
102
|
+
- exp_repo/test/proto/aodvrouter.rb
|
103
|
+
- exp_repo/test/proto/driverqueryapp.rb
|
104
|
+
- exp_repo/test/proto/forwarder.rb
|
105
|
+
- exp_repo/test/proto/itgcbrsender.rb
|
106
|
+
- exp_repo/test/proto/itgdecoder.rb
|
107
|
+
- exp_repo/test/proto/itgreceiver.rb
|
108
|
+
- exp_repo/test/proto/itgvoipsender.rb
|
109
|
+
- exp_repo/test/proto/listener2.rb
|
110
|
+
- exp_repo/test/proto/nop.rb
|
111
|
+
- exp_repo/test/proto/probelink.rb
|
112
|
+
- exp_repo/test/proto/raw_receiver.rb
|
113
|
+
- exp_repo/test/proto/receiver2_mp.rb
|
114
|
+
- exp_repo/test/proto/sender2_mp.rb
|
115
|
+
- exp_repo/test/proto/udp_receiver.rb
|
116
|
+
- exp_repo/test/proto/udp_sender.rb
|
117
|
+
- lib/omf_ec.rb
|
118
|
+
- lib/omf_ec/version.rb
|
119
|
+
- omf_ec.gemspec
|
120
|
+
homepage: https://www.mytestbed.net
|
121
|
+
licenses: []
|
122
|
+
post_install_message:
|
123
|
+
rdoc_options: []
|
124
|
+
require_paths:
|
125
|
+
- lib
|
126
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
127
|
+
none: false
|
128
|
+
requirements:
|
129
|
+
- - ! '>='
|
130
|
+
- !ruby/object:Gem::Version
|
131
|
+
version: '0'
|
132
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
133
|
+
none: false
|
134
|
+
requirements:
|
135
|
+
- - ! '>'
|
136
|
+
- !ruby/object:Gem::Version
|
137
|
+
version: 1.3.1
|
138
|
+
requirements: []
|
139
|
+
rubyforge_project: omf_ec
|
140
|
+
rubygems_version: 1.8.23
|
141
|
+
signing_key:
|
142
|
+
specification_version: 3
|
143
|
+
summary: OMF experiment controller
|
144
|
+
test_files: []
|
145
|
+
has_rdoc:
|