nepi.git
12 years agosmall bugfix in netns metadata nepi_v2
Alina Quereilhac [Fri, 27 May 2011 14:54:18 +0000 (16:54 +0200)]
small bugfix in netns metadata

12 years agobug fixing: addresses and routes
Alina Quereilhac [Fri, 27 May 2011 13:46:33 +0000 (15:46 +0200)]
bug fixing: addresses and routes

12 years agoMerge with head
Claudio-Daniel Freire [Wed, 25 May 2011 15:48:27 +0000 (17:48 +0200)]
Merge with head

12 years agoAdd RTT trace to V4Ping, update test to test the RTT trace
Claudio-Daniel Freire [Wed, 25 May 2011 15:32:37 +0000 (17:32 +0200)]
Add RTT trace to V4Ping, update test to test the RTT trace

12 years agoResize big buck bunny so that the example works better
Claudio-Daniel Freire [Wed, 25 May 2011 10:35:47 +0000 (12:35 +0200)]
Resize big buck bunny so that the example works better

12 years agodeleted label from graphical info
Alina Quereilhac [Wed, 25 May 2011 10:09:53 +0000 (12:09 +0200)]
deleted label from graphical info

12 years agobug fix in traces
Alina Quereilhac [Tue, 24 May 2011 16:55:18 +0000 (18:55 +0200)]
bug fix in traces

12 years agons3 testbed small bugfix in the schedule_event
Alina Quereilhac [Tue, 24 May 2011 14:48:23 +0000 (16:48 +0200)]
ns3 testbed small bugfix in the schedule_event

12 years agons3 set/get during simulation execution
Alina Quereilhac [Tue, 24 May 2011 13:14:08 +0000 (15:14 +0200)]
ns3 set/get during simulation execution

12 years agoadded: experiment_description.get_element(guid)
Alina Quereilhac [Tue, 24 May 2011 11:46:07 +0000 (13:46 +0200)]
added: experiment_description.get_element(guid)

12 years agoAdded metods to obtain factory_id, testbed_id and testbed_version for a box using...
Alina Quereilhac [Tue, 24 May 2011 10:44:45 +0000 (12:44 +0200)]
Added metods to obtain factory_id, testbed_id and testbed_version for a box using inly a guid, from the controller

12 years agoFix PL tests after controller interface change
Claudio-Daniel Freire [Tue, 24 May 2011 10:10:10 +0000 (12:10 +0200)]
Fix PL tests after controller interface change

12 years agoMerge with head
Claudio-Daniel Freire [Tue, 24 May 2011 08:26:42 +0000 (10:26 +0200)]
Merge with head

12 years agoShorten big buck bunny film
Claudio-Daniel Freire [Tue, 24 May 2011 08:24:07 +0000 (10:24 +0200)]
Shorten big buck bunny film

12 years agoeliminated parameters testbed_guid in experiment controller methods when the guid...
Alina Quereilhac [Mon, 23 May 2011 23:26:36 +0000 (01:26 +0200)]
eliminated parameters testbed_guid in experiment controller methods when the guid is present. I might have broken pl :S.

12 years agoadded tags to boxes. For now only one tag: MOBILE
Alina Quereilhac [Mon, 23 May 2011 21:01:50 +0000 (23:01 +0200)]
added tags to boxes. For now only one tag: MOBILE

12 years agoadded category to attributes
Alina Quereilhac [Mon, 23 May 2011 17:22:07 +0000 (19:22 +0200)]
added category to attributes

12 years agoRouting fixes in ns3: consider point-to-point patterns when figuring out nexthop...
Claudio-Daniel Freire [Mon, 23 May 2011 15:40:07 +0000 (17:40 +0200)]
Routing fixes in ns3: consider point-to-point patterns when figuring out nexthop/interface associations:
  192.168.2.2/32 -> iface 10
  192.168.3.0/24 -> 192.168.2.2

12 years agoFix routing: only consider gateway addresses for routes_here (ie: the GW must belong...
Claudio-Daniel Freire [Mon, 23 May 2011 15:39:01 +0000 (17:39 +0200)]
Fix routing: only consider gateway addresses for routes_here (ie: the GW must belong to the interface's network, the rest doesn't really matter)

12 years agominor correction
Alina Quereilhac [Mon, 23 May 2011 12:17:47 +0000 (14:17 +0200)]
minor correction

12 years agons3 testbed receives a "StopTime" parameter to force the simulator to stop at a certa...
Alina Quereilhac [Mon, 23 May 2011 11:58:52 +0000 (13:58 +0200)]
ns3 testbed receives a "StopTime" parameter to force the simulator to stop at a certain time.

12 years agoAdded support for ns-3 Wimax module. wimax_ns3.py example not working: SS never regis...
Alina Quereilhac [Sun, 22 May 2011 09:49:02 +0000 (11:49 +0200)]
Added support for ns-3 Wimax module. wimax_ns3.py example not working: SS never registered with BS!

12 years agoSynchronization fixes:
Claudio-Daniel Freire [Fri, 20 May 2011 14:35:31 +0000 (16:35 +0200)]
Synchronization fixes:
 - tun_connect retries on binding error (happens regularly during tests and may happen in Real Life (tm) too)
 - re-enabled wrongfully disabled ns3-in-pl tests
 - added prestart global synchronization step, which solves many cross-testbed synchronization issues

12 years agoTicket #30: Routing in PlanetLab, with a (currently broken) test
Claudio-Daniel Freire [Fri, 20 May 2011 12:04:18 +0000 (14:04 +0200)]
Ticket #30: Routing in PlanetLab, with a (currently broken) test
TODO:
 - dynamically modify routes
 - dynamically query routes
 - fix some synchronization issues with routes+cross-connections
 - parallelize routing table setup

12 years agoPL Point-to-point link support (TUNs automatically set their interfaces for P2P,...
Claudio-Daniel Freire [Thu, 19 May 2011 16:07:00 +0000 (18:07 +0200)]
PL Point-to-point link support (TUNs automatically set their interfaces for P2P, but there's also a way to manually specify it)
It needs support from vsys

12 years agoMore descriptive exception messages for design errors
Claudio-Daniel Freire [Thu, 19 May 2011 16:05:33 +0000 (18:05 +0200)]
More descriptive exception messages for design errors

12 years agoFix XML generation for attribute-less boxes
Claudio-Daniel Freire [Wed, 18 May 2011 12:05:20 +0000 (14:05 +0200)]
Fix XML generation for attribute-less boxes

12 years agobugfix: graphical info was not being set when reconstructing the testbeds from the...
Alina Quereilhac [Wed, 18 May 2011 10:29:40 +0000 (12:29 +0200)]
bugfix: graphical info was not being set when reconstructing the testbeds from the xml description in base.py

12 years agoBack to 2-node snat test
Claudio-Daniel Freire [Wed, 18 May 2011 09:43:32 +0000 (11:43 +0200)]
Back to 2-node snat test

12 years agoWait for node dependencies to be installed before using them (invoking gcc)
Claudio-Daniel Freire [Wed, 18 May 2011 09:43:05 +0000 (11:43 +0200)]
Wait for node dependencies to be installed before using them (invoking gcc)

12 years agoFix TUNGETIFF ioctl invocation to use the correct buffer structure
Claudio-Daniel Freire [Wed, 18 May 2011 09:42:47 +0000 (11:42 +0200)]
Fix TUNGETIFF ioctl invocation to use the correct buffer structure

12 years agoCross TUN test
Claudio-Daniel Freire [Tue, 17 May 2011 13:13:33 +0000 (15:13 +0200)]
Cross TUN test

12 years agoGeneral cross TUN fixes
Claudio-Daniel Freire [Tue, 17 May 2011 13:13:20 +0000 (15:13 +0200)]
General cross TUN fixes

12 years agoget methods of proxies should pickle data, they need to preserve the data types.
Claudio-Daniel Freire [Tue, 17 May 2011 13:12:45 +0000 (15:12 +0200)]
get methods of proxies should pickle data, they need to preserve the data types.

12 years agoFix invisible attribute implementation: they should be both queriable and settable.
Claudio-Daniel Freire [Tue, 17 May 2011 13:11:36 +0000 (15:11 +0200)]
Fix invisible attribute implementation: they should be both queriable and settable.

12 years agoPreserve the traceback when relaying exceptions from within threads
Claudio-Daniel Freire [Tue, 17 May 2011 13:09:40 +0000 (15:09 +0200)]
Preserve the traceback when relaying exceptions from within threads

12 years agoTunChannel finalization fix
Claudio-Daniel Freire [Mon, 16 May 2011 15:38:35 +0000 (17:38 +0200)]
TunChannel finalization fix

12 years agoMissing imports
Claudio-Daniel Freire [Mon, 16 May 2011 15:38:24 +0000 (17:38 +0200)]
Missing imports

12 years agoInitial u ntested implementation of TunChannel for netns
Claudio-Daniel Freire [Mon, 16 May 2011 15:06:34 +0000 (17:06 +0200)]
Initial u ntested implementation of TunChannel for netns

12 years agoAdd TUNGETIFF to constants, they're useful
Claudio-Daniel Freire [Mon, 16 May 2011 14:59:44 +0000 (16:59 +0200)]
Add TUNGETIFF to constants, they're useful

12 years agoForgot to implement with_pi & ethernet_mode (oops)
Claudio-Daniel Freire [Mon, 16 May 2011 14:41:00 +0000 (16:41 +0200)]
Forgot to implement with_pi & ethernet_mode (oops)

12 years agoDocument stock implementation functions
Claudio-Daniel Freire [Mon, 16 May 2011 14:36:21 +0000 (16:36 +0200)]
Document stock implementation functions

12 years agoAdd tunchannel_impl, see previous commit
Claudio-Daniel Freire [Mon, 16 May 2011 14:21:32 +0000 (16:21 +0200)]
Add tunchannel_impl, see previous commit

12 years agoRefactor a bit more, connect, wait, create and configure functions are also general...
Claudio-Daniel Freire [Mon, 16 May 2011 14:21:10 +0000 (16:21 +0200)]
Refactor a bit more, connect, wait, create and configure functions are also general enough to be put in a shared utility module.
Move that code to tunchannel_impl, to separate it from the core tunchannel stuff (which may be required if that generic implementation isn't applicable for some - ie, for tun_connect in PL).

12 years agoRefactor TunChannel implementation in ns3 to make it common to all testbeds:
Claudio-Daniel Freire [Mon, 16 May 2011 14:05:59 +0000 (16:05 +0200)]
Refactor TunChannel implementation in ns3 to make it common to all testbeds:
it's quite generic and reusable.

12 years agoInitial untested implementation of ns3 tun-compliant connections (Tunchannel)
Claudio-Daniel Freire [Mon, 16 May 2011 13:34:49 +0000 (15:34 +0200)]
Initial untested implementation of ns3 tun-compliant connections (Tunchannel)

12 years agoTermination fix on tun_connect
Claudio-Daniel Freire [Mon, 16 May 2011 13:34:19 +0000 (15:34 +0200)]
Termination fix on tun_connect

12 years agoRefactor tunnelling code to put VPN channel protocol stuff in nepi.util (so that...
Claudio-Daniel Freire [Mon, 16 May 2011 09:56:36 +0000 (11:56 +0200)]
Refactor tunnelling code to put VPN channel protocol stuff in nepi.util (so that testbeds other than PL can implement their own).

12 years agoLots of cross-connection fixes, TUN synchronization, etc
Claudio-Daniel Freire [Fri, 13 May 2011 13:53:46 +0000 (15:53 +0200)]
Lots of cross-connection fixes, TUN synchronization, etc
Redirect most PL tests to our NepiPLC
Add multi-PLC capabilities and tests

NOTE: Some tests are degraded because we don't have ennough nodes to do proper tests yet

12 years agoFix connection resolution order check
Claudio-Daniel Freire [Fri, 13 May 2011 08:36:40 +0000 (10:36 +0200)]
Fix connection resolution order check

12 years agoAllow customization of the PLC API to be used for experiments
Claudio-Daniel Freire [Thu, 12 May 2011 14:44:36 +0000 (16:44 +0200)]
Allow customization of the PLC API to be used for experiments

12 years agoFix for 64-bit PL: shared object compilation must be done with -fPIC
Claudio-Daniel Freire [Thu, 12 May 2011 14:37:44 +0000 (16:37 +0200)]
Fix for 64-bit PL: shared object compilation must be done with -fPIC

12 years agoFix broken netref commit: do not consider them resolved if there's any exception...
Claudio-Daniel Freire [Thu, 12 May 2011 13:13:15 +0000 (15:13 +0200)]
Fix broken netref commit: do not consider them resolved if there's any exception, don't consider exceptions there as an error either. Premature resolution often results in KeyError exceptions (among possibly others)

12 years agoFix stupid bug: missing ns3 reference in _add_static_route
Claudio-Daniel Freire [Thu, 12 May 2011 13:12:24 +0000 (15:12 +0200)]
Fix stupid bug: missing ns3 reference in _add_static_route

12 years agoWoops... fix broken commit about netrefs
Claudio-Daniel Freire [Thu, 12 May 2011 13:05:42 +0000 (15:05 +0200)]
Woops... fix broken commit about netrefs

12 years agoSNAT test
Claudio-Daniel Freire [Thu, 12 May 2011 12:29:25 +0000 (14:29 +0200)]
SNAT test
currently failing due to PL bug :-O

12 years agoCapture packets on FD-based tuns, by spawning a tcpdump in the background
Claudio-Daniel Freire [Thu, 12 May 2011 12:29:03 +0000 (14:29 +0200)]
Capture packets on FD-based tuns, by spawning a tcpdump in the background

12 years agoNetrefs: resolve at create time when possible, some NS3 objects require proper create...
Claudio-Daniel Freire [Thu, 12 May 2011 12:28:15 +0000 (14:28 +0200)]
Netrefs: resolve at create time when possible, some NS3 objects require proper create-time values.

12 years agoNS3 fix: properly handle default (0.0.0.0/0) and host (x.y.z.w/32) routes.
Claudio-Daniel Freire [Thu, 12 May 2011 12:27:25 +0000 (14:27 +0200)]
NS3 fix: properly handle default (0.0.0.0/0) and host (x.y.z.w/32) routes.

12 years agoBig refactoring of proxy code.
Claudio-Daniel Freire [Thu, 12 May 2011 07:26:50 +0000 (09:26 +0200)]
Big refactoring of proxy code.
 * Decorator-based serverside dispatch code
   which is easier to maintain
 * Automatic proxy generation using introspection on
   abstract interface (Proxy/ExperimentController) and
   serverside dispatch code.
 * Tried to maintain meaningful tracebacks
 * No more repeated code - stuff is only written once,
   so changes are easier to apply.
 * Changed marshalling for setters to use pickling instead
   of adding a fictious (and limited) type parameter.
 * Fixed some interface mismatches in the process

12 years agoBetter credits for big buck bunny
Claudio-Daniel Freire [Thu, 12 May 2011 07:05:40 +0000 (09:05 +0200)]
Better credits for big buck bunny

12 years agoCC-licensed movie for the example
Claudio-Daniel Freire [Wed, 11 May 2011 15:21:28 +0000 (17:21 +0200)]
CC-licensed movie for the example

12 years agoRemove debugging output from tun_connect - oops
Claudio-Daniel Freire [Tue, 10 May 2011 13:03:50 +0000 (15:03 +0200)]
Remove debugging output from tun_connect - oops

12 years agoSynchronization fix for cross connections: wait for tunnels to be up before starting...
Claudio-Daniel Freire [Tue, 10 May 2011 12:58:32 +0000 (14:58 +0200)]
Synchronization fix for cross connections: wait for tunnels to be up before starting applications

12 years agoTest adaptations for NS3-in-NEPI cross connections:
Claudio-Daniel Freire [Tue, 10 May 2011 10:04:49 +0000 (12:04 +0200)]
Test adaptations for NS3-in-NEPI cross connections:
 * don't make all tests use the same home - it's confusing for debugging
 * Enable debugging output
 * Include some useful traces

12 years agoFix super call, totally wrong
Claudio-Daniel Freire [Tue, 10 May 2011 08:58:27 +0000 (10:58 +0200)]
Fix super call, totally wrong

12 years agoMinor strace fix (still commented though, so just fix commented code)
Claudio-Daniel Freire [Tue, 10 May 2011 08:57:53 +0000 (10:57 +0200)]
Minor strace fix (still commented though, so just fix commented code)

12 years agoFix cross-testbed netrefs when using NEPI-in-NEPI setups.
Claudio-Daniel Freire [Tue, 10 May 2011 08:56:49 +0000 (10:56 +0200)]
Fix cross-testbed netrefs when using NEPI-in-NEPI setups.

12 years agoAdd missing IPv6 connectors
Claudio-Daniel Freire [Tue, 10 May 2011 08:55:39 +0000 (10:55 +0200)]
Add missing IPv6 connectors
Fix cross connections by properly handling linux abstract socket names

12 years agoTry connecting to the FD-passing unix socket twice - to alleviate synchronization...
Claudio-Daniel Freire [Tue, 10 May 2011 08:54:41 +0000 (10:54 +0200)]
Try connecting to the FD-passing unix socket twice - to alleviate synchronization issues

12 years agoProperly handle linux abstract socket names
Claudio-Daniel Freire [Tue, 10 May 2011 08:53:52 +0000 (10:53 +0200)]
Properly handle linux abstract socket names

12 years agoDetect alternate NS3 installations (_ns3 module instead of ns3)
Claudio-Daniel Freire [Tue, 10 May 2011 08:53:02 +0000 (10:53 +0200)]
Detect alternate NS3 installations (_ns3 module instead of ns3)

12 years agoFixed several typos
Claudio-Daniel Freire [Tue, 10 May 2011 08:52:24 +0000 (10:52 +0200)]
Fixed several typos
Somewhat better error handling

13 years agoNS3-in-PL fixes all over the place.
Claudio-Daniel Freire [Fri, 6 May 2011 16:46:41 +0000 (18:46 +0200)]
NS3-in-PL fixes all over the place.
Cross-connection fixes all over the place too.
Still couldn't get cross connections working, but that's specific to FileDescriptorNetDevice

13 years agoCreate home directory if not found - NS3 needs it indeed
Claudio-Daniel Freire [Fri, 6 May 2011 16:45:32 +0000 (18:45 +0200)]
Create home directory if not found - NS3 needs it indeed

13 years agoRemember root directory - it's useful
Claudio-Daniel Freire [Fri, 6 May 2011 16:45:07 +0000 (18:45 +0200)]
Remember root directory - it's useful

13 years agoContract attributes cannot be read-only
Claudio-Daniel Freire [Fri, 6 May 2011 16:44:51 +0000 (18:44 +0200)]
Contract attributes cannot be read-only

13 years agoSome fixes to TUN/TAP devices
Claudio-Daniel Freire [Fri, 6 May 2011 16:44:00 +0000 (18:44 +0200)]
Some fixes to TUN/TAP devices
Fixed support for FileDescriptor-based taps.
(still ongoing though)

13 years agoProvide better failure messages
Claudio-Daniel Freire [Fri, 6 May 2011 16:42:56 +0000 (18:42 +0200)]
Provide better failure messages

13 years agoTypos, type, environment, synchronization and other small fixes to Proxies
Claudio-Daniel Freire [Fri, 6 May 2011 16:42:36 +0000 (18:42 +0200)]
Typos, type, environment, synchronization and other small fixes to Proxies

13 years agoFix typo
Claudio-Daniel Freire [Fri, 6 May 2011 15:19:28 +0000 (17:19 +0200)]
Fix typo

13 years agoDo not rebuild ns3 if it's already built.
Claudio-Daniel Freire [Wed, 4 May 2011 16:39:40 +0000 (18:39 +0200)]
Do not rebuild ns3 if it's already built.
Normally, make and friends already do this natively, but waf seems to get confused because we do ./waf clean

13 years agoTicket #14: cross-connections between NS3 and PlanetLab through file descriptors...
Claudio-Daniel Freire [Wed, 4 May 2011 15:03:01 +0000 (17:03 +0200)]
Ticket #14: cross-connections between NS3 and PlanetLab through file descriptors (that means, NS3 instances running inside PL ATM)

13 years ago- TAP interfaces
Claudio-Daniel Freire [Wed, 4 May 2011 10:38:03 +0000 (12:38 +0200)]
- TAP interfaces
- TAP tunnelling
- Encrypted tunnels
- UDP-based tunnels

13 years agoCross connections (initial planetlab-side implementation following the tun protocol)
Claudio-Daniel Freire [Wed, 4 May 2011 08:13:34 +0000 (10:13 +0200)]
Cross connections (initial planetlab-side implementation following the tun protocol)

13 years agoFIX support for tap and pl-tap modes.
Claudio-Daniel Freire [Wed, 4 May 2011 08:11:55 +0000 (10:11 +0200)]
FIX support for tap and pl-tap modes.
Yey...

13 years agoTicket #29: Nepi-in-Nepi FINISHED
Claudio-Daniel Freire [Tue, 3 May 2011 13:26:50 +0000 (15:26 +0200)]
Ticket #29: Nepi-in-Nepi FINISHED
Wooow...

13 years agoTestbed netrefs implemented.
Claudio-Daniel Freire [Tue, 3 May 2011 12:20:14 +0000 (14:20 +0200)]
Testbed netrefs implemented.
Some basic tests added.

13 years agoTicket #29: resolve netrefs for netreffed testbeds and configure them in a middle...
Claudio-Daniel Freire [Tue, 3 May 2011 11:06:44 +0000 (13:06 +0200)]
Ticket #29: resolve netrefs for netreffed testbeds and configure them in a middle step, allowing testbed-in-testbed scenarios.
Needs testings.

13 years agoSometimes when controller process cleanup happens concurrently with testbed teardown...
Claudio-Daniel Freire [Tue, 3 May 2011 11:05:55 +0000 (13:05 +0200)]
Sometimes when controller process cleanup happens concurrently with testbed teardown, exceptions may ensue in shutil.rmtree.
Just catch them and retry, sidestepping the issue. Proper synchronization is not easy, and not worth the amount of work for mere testing.

13 years agoTicket #29: Phasing out AccessConfiguration.
Claudio-Daniel Freire [Tue, 3 May 2011 10:19:32 +0000 (12:19 +0200)]
Ticket #29: Phasing out AccessConfiguration.
Not fully removed, sadly enough.
ExperimentControllers still need them.

13 years agoTicket #29: introduce some "standard" box attributes to support testbed-in-testbed...
Claudio-Daniel Freire [Mon, 2 May 2011 16:42:51 +0000 (18:42 +0200)]
Ticket #29: introduce some "standard" box attributes to support testbed-in-testbed deployment

13 years agoDo not build NS3 examples - not needed
Claudio-Daniel Freire [Mon, 2 May 2011 16:42:16 +0000 (18:42 +0200)]
Do not build NS3 examples - not needed

13 years agoDisable NS3Dependency test on normal test runs, it takes a long time to run.
Claudio-Daniel Freire [Mon, 2 May 2011 16:41:57 +0000 (18:41 +0200)]
Disable NS3Dependency test on normal test runs, it takes a long time to run.

13 years ago- Merge with head
Claudio-Daniel Freire [Mon, 2 May 2011 15:24:00 +0000 (17:24 +0200)]
- Merge with head
- Add NS3Dependency object to PlanetLab, which makes possible the instantiation of NS3 TestbedController s.
- Add support for environment modifiers, required by NS3Dependency
- Better error logging (buildlog, installlog) for PlanetLab Dependency objects

13 years agoMake integration tests also use the new environment variables
Claudio-Daniel Freire [Mon, 2 May 2011 11:29:03 +0000 (13:29 +0200)]
Make integration tests also use the new environment variables

13 years agominor changes to examples
Alina Quereilhac [Mon, 2 May 2011 11:18:36 +0000 (13:18 +0200)]
minor changes to examples

13 years agoJust tidying up
Claudio-Daniel Freire [Mon, 2 May 2011 10:16:41 +0000 (12:16 +0200)]
Just tidying up

13 years agoTake PL_SSH_KEY environment so that users may override the default ssh key
Claudio-Daniel Freire [Mon, 2 May 2011 10:13:32 +0000 (12:13 +0200)]
Take PL_SSH_KEY environment so that users may override the default ssh key

13 years agoLook for SSH key in the user's home folder as given by environment HOME.
Claudio-Daniel Freire [Mon, 2 May 2011 09:33:31 +0000 (11:33 +0200)]
Look for SSH key in the user's home folder as given by environment HOME.
More portable.