Changes between Version 8 and Version 9 of UsersGuide
- Timestamp:
- Oct 15, 2012 5:58:37 PM (12 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
UsersGuide
v8 v9 215 215 === Mixing Containers === 216 216 217 Mixing containers requires the experimenter to assign container types in their topology assignment. This is done by attaching an attribute to nodes. The attribute is named {{{containers:node_type}}} . If the experiment definition is in [http://fedd.isi.deterlab.net/wiki/TopDl topdl] the attribute can be attached using the [http://fedd.deterlab.net/wiki/TopdlLibrary#SharedFunctions standard topdl routines]. Attaching the attribute in ns2 is done using the DETER {{{tb-add-node-attribute}}} command.217 Mixing containers requires the experimenter to assign container types in their topology assignment. This is done by attaching an attribute to nodes. The attribute is named {{{containers:node_type}}} it takes the same values as the [UsersGuide#UsingOtherContainerTypes --default-container parameter to containerize.py]. If the experiment definition is in [http://fedd.isi.deterlab.net/wiki/TopDl topdl] the attribute can be attached using the [http://fedd.deterlab.net/wiki/TopdlLibrary#SharedFunctions standard topdl routines]. Attaching the attribute in ns2 is done using the DETER {{{tb-add-node-attribute}}} command. 218 218 219 219 {{{ … … 221 221 }}} 222 222 223 That command in an ns2 topology description will set {{{node}}} to be placed in an openvz container. Using this feature, we can modify our [attachment:example1.tcl first topology] to consist of qemu nodes and a single process container in the center. Process nodes can have unlimited interfaces, but we cannot log into them. The new topology filelooks like this:223 That command in an ns2 topology description will set {{{node}}} to be placed in an openvz container. Using this feature, we can modify our [attachment:example1.tcl first topology] to consist of qemu nodes and a single process container in the center. Process nodes can have unlimited interfaces, but we cannot log into them. The [attachment:example3.tcl new topology file] looks like this: 224 224 225 225 {{{ … … 247 247 }}} 248 248 249 Because we have explicitly set the {{{container_node_type}}} of each node, the {{{--default-container}}} parameter to {{{containerize.py}}} does nothing. We can create this experiment using: 250 251 {{{ 252 users:~$ /share/containers/containerize.py DeterTest example3 ~/example3.tcl 253 Containerized experiment DeterTest/example3 successfully created! 254 Access it via http://www.isi.deterlab.net//showexp.php3?pid=DeterTest&eid=example3 255 }}} 256 257 258 When we swap it in, the experiment will have 10 satellite containers in qemu VMs and a central process that only forwards packets. Again, you cannot log in to a process container, but you can use the qemu nodes as though they were physical machines. 259 260 Another interesting mixture of containers is to put a physical node into the mix. Here is a modified version of [attachment:example3.tcl our mixed topology] that places the {{{n-9}}} satellite on a physical computer, by setting its {{{containers:node_type}}} to {{embedded_pnode}}}. 261 262 After creating that experiment: 263 264 {{{ 265 users:~$ /share/containers/containerize.py DeterTest example4 ~/example4.tcl Containerized experiment DeterTest/example4 successfully created! 266 Access it via http://www.isi.deterlab.net//showexp.php3?pid=DeterTest&eid=example4 267 }}} 268 269 We can call up the DETER experiment page and look at the visualization tab: 270 271 272 273 === Changing The Packing Factor === 274