Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
54 commits
Select commit Hold shift + click to select a range
9ce6550
new controller with bandwidth calculation
Nov 4, 2018
a82c642
add openAI controller in uniflex
Nov 11, 2018
8788613
rename agent
Nov 13, 2018
b5bb2d2
abstract controller
Nov 26, 2018
3f2db93
channel management controller
Nov 27, 2018
ff26c1e
one uniflex controller
Dec 5, 2018
0d5542b
debug controller
Dec 5, 2018
0697306
debug controller
Dec 9, 2018
3a63107
some debug
Dec 11, 2018
ad77040
switch of timer
Dec 11, 2018
a6c4768
debug code
Dec 12, 2018
ae61b13
multi dim controller, 1client agent
Dec 23, 2018
f62be9f
debug agent and controller
Mar 6, 2019
16455d9
simulation to config
Mar 7, 2019
b47d629
change controller iface
Mar 8, 2019
ed51455
check scenarios
Mar 10, 2019
e13e4f3
addthomsonalgorithm
Apr 8, 2019
7400d61
add channel list and csv export
Apr 15, 2019
2a884fe
split for simulation
Apr 16, 2019
d6e6527
exprot csv data
Apr 19, 2019
dfadb3c
config for dist file
Apr 20, 2019
68af1d9
broker is nuc4
Apr 25, 2019
5b844c5
disable plot
Apr 25, 2019
aa7829a
disable plot
Apr 25, 2019
6505b64
select nuc4 as controller
Apr 29, 2019
4d1e900
fix real wifi problems
May 1, 2019
dd9b5e8
variable steptime
May 1, 2019
49f2aae
rename file
May 1, 2019
5e4d0cc
add step argument
May 6, 2019
1a6f699
debug rrm agent
May 6, 2019
9fe8fce
debug rrm agent
May 6, 2019
b68892a
debug rrm agent
May 6, 2019
896080f
debug rrm agent
May 6, 2019
e45b386
enable float times
May 7, 2019
6962f93
log sqrt value error
May 7, 2019
86abd7b
set broker address in ap, create unsymetric example
May 11, 2019
b771e12
comment controller
May 12, 2019
b8f9b61
change observation model and agents
Jun 7, 2019
8db81b8
debug thompson
Jun 8, 2019
0c11be8
thompson back to normal, neuro normalize reward
Jun 8, 2019
15c96b7
add client switch in config
Jun 8, 2019
773eec1
improve nn agent
Jun 9, 2019
a5e4d83
improve rrm agent
Jun 18, 2019
139a010
implement round robin training mode without debug, enable mode for se…
Jun 19, 2019
67cf4c7
static various setups
Jul 15, 2019
b204fbe
run multiple scenarios
Jul 25, 2019
a2d3e4c
clean up
Jul 29, 2019
27b7a0b
debug
Jul 29, 2019
f27d417
debug
Jul 29, 2019
eb46883
more random in neuronal network
Jul 30, 2019
41677da
debug with testbed
Jul 30, 2019
8e77edb
prepare submission
Sep 24, 2019
245ccb8
set config required
Nov 2, 2019
7a0c161
fix readme
Nov 2, 2019
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions openAI_RRM/LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
The MIT License (MIT)

Copyright (c) 2016 Technische Universität Berlin

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
28 changes: 28 additions & 0 deletions openAI_RRM/SimulationSlavesConfig/Setting2_2/common.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
from uniflex.core import events

__author__ = "Piotr Gawlowicz"
__copyright__ = "Copyright (c) 2016, Technische Universität Berlin"
__version__ = "0.1.0"
__email__ = "{gawlowicz}@tkn.tu-berlin.de"


class AveragedSpectrumScanSampleEvent(events.EventBase):
def __init__(self, avg):
super().__init__()
self.avg = avg


class StartMyFilterEvent(events.EventBase):
def __init__(self):
super().__init__()


class StopMyFilterEvent(events.EventBase):
def __init__(self):
super().__init__()


class ChangeWindowSizeEvent(events.EventBase):
def __init__(self, value):
super().__init__()
self.window = value
26 changes: 26 additions & 0 deletions openAI_RRM/SimulationSlavesConfig/Setting2_2/config_slave.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
## UniFlex Agent config file

config:
name: 'HC node'
info: 'rrm control simulation'
iface: 'lo'
iface: 'lo'
sub: "tcp://127.0.0.1:8990"
pub: "tcp://127.0.0.1:8989"

control_applications:
discovery:
module : uniflex_app_discovery_pyre
class_name : PyreDiscoverySlaveModule
kwargs: {"iface":"lo", "groupName":"uniflex_1234"}

modules:
simple:
module : uniflex_module_simple
class_name : SimpleModule4
devices : ['phy0']
kwargs : { "clients" : ["cc:cc:cc:cc:cc:01", "cc:cc:cc:cc:cc:02"],
'neighbors' : [['aa:aa:aa:aa:aa:02', 'aa:aa:aa:aa:aa:03']],
'myMAC' : 'aa:aa:aa:aa:aa:01',
'simulation': {'channelSwitchingTime': 0, 'channelThroughputDefault':54000000, 'txBytesRandom':0, 'clientnum':2, 'mode': 'single'}}

26 changes: 26 additions & 0 deletions openAI_RRM/SimulationSlavesConfig/Setting2_2/config_slave2.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
## UniFlex Agent config file

config:
name: 'HC node'
info: 'rrm control simulation'
iface: 'lo'
iface: 'lo'
sub: "tcp://127.0.0.1:8990"
pub: "tcp://127.0.0.1:8989"

control_applications:
discovery:
module : uniflex_app_discovery_pyre
class_name : PyreDiscoverySlaveModule
kwargs: {"iface":"lo", "groupName":"uniflex_1234"}

modules:
simple:
module : uniflex_module_simple
class_name : SimpleModule4
devices : ['phy0']
kwargs : { "clients" : ["cc:cc:cc:cc:cc:11", "cc:cc:cc:cc:cc:12"],
'neighbors' : [['aa:aa:aa:aa:aa:01', 'aa:aa:aa:aa:aa:03']],
'myMAC' : 'aa:aa:aa:aa:aa:02',
'simulation': {'channelSwitchingTime': 0, 'channelThroughputDefault':54000000, 'txBytesRandom':0, 'clientnum':2, 'mode': 'single'}}

15 changes: 15 additions & 0 deletions openAI_RRM/SimulationSlavesConfig/Setting2_2/readme.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# Start environment if Uniflex is installed in some
source ~/Uniflex/dev/bin/activate

# 2a. Run control program in master node:
uniflex-broker
# 2b. Run control program in master node:
python3 rl_agent.py --config ./config_master_simulation.yaml
# you can choose thompson_agent.py or thompson_agent2.py, too

# 2c. Run modules in slave node:
#Simulation
uniflex-agent --config ./config_slave.yaml
uniflex-agent --config ./config_slave2.yaml

# For debugging mode run with -v option
28 changes: 28 additions & 0 deletions openAI_RRM/SimulationSlavesConfig/Setting2_2unsym/common.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
from uniflex.core import events

__author__ = "Piotr Gawlowicz"
__copyright__ = "Copyright (c) 2016, Technische Universität Berlin"
__version__ = "0.1.0"
__email__ = "{gawlowicz}@tkn.tu-berlin.de"


class AveragedSpectrumScanSampleEvent(events.EventBase):
def __init__(self, avg):
super().__init__()
self.avg = avg


class StartMyFilterEvent(events.EventBase):
def __init__(self):
super().__init__()


class StopMyFilterEvent(events.EventBase):
def __init__(self):
super().__init__()


class ChangeWindowSizeEvent(events.EventBase):
def __init__(self, value):
super().__init__()
self.window = value
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
## UniFlex Agent config file

config:
name: 'HC node'
info: 'rrm control simulation'
iface: 'lo'
iface: 'lo'
sub: "tcp://127.0.0.1:8990"
pub: "tcp://127.0.0.1:8989"

#broker:
# xsub: "tcp://127.0.0.1:8990"
# xpub: "tcp://127.0.0.1:8989"

control_applications:
discovery:
module : uniflex_app_discovery_pyre
class_name : PyreDiscoverySlaveModule
kwargs: {"iface":"lo", "groupName":"uniflex_1234"}

modules:
simple:
module : uniflex_module_simple
class_name : SimpleModule4
devices : ['phy0']
kwargs : { "clients" : ["cc:cc:cc:cc:cc:01", "cc:cc:cc:cc:cc:02"],
'neighbors' : [['aa:aa:aa:aa:aa:02', 'aa:aa:aa:aa:aa:03']],
'myMAC' : 'aa:aa:aa:aa:aa:01',
'simulation': {'channelSwitchingTime': 0, 'channelThroughputDefault': 54000000,
'channelThroughput':[54000000, 54000000, 54000000, 54000000, 26000000],
'txBytesRandom':0, 'clientnum':2, 'mode': 'single'}}

Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
## UniFlex Agent config file

config:
name: 'HC node'
info: 'rrm control simulation'
iface: 'lo'
iface: 'lo'
sub: "tcp://127.0.0.1:8990"
pub: "tcp://127.0.0.1:8989"

#broker:
# xsub: "tcp://127.0.0.1:8990"
# xpub: "tcp://127.0.0.1:8989"

control_applications:
discovery:
module : uniflex_app_discovery_pyre
class_name : PyreDiscoverySlaveModule
kwargs: {"iface":"lo", "groupName":"uniflex_1234"}

modules:
simple:
module : uniflex_module_simple
class_name : SimpleModule4
devices : ['phy0']
kwargs : { "clients" : ["cc:cc:cc:cc:cc:11"],
'neighbors' : [['aa:aa:aa:aa:aa:01', 'aa:aa:aa:aa:aa:03']],
'myMAC' : 'aa:aa:aa:aa:aa:02',
'simulation': {'channelSwitchingTime': 0, 'channelThroughputDefault': 54000000,
'channelThroughput':[54000000, 54000000, 54000000, 54000000, 26000000],
'txBytesRandom':0, 'clientnum':2, 'mode': 'single'}}

15 changes: 15 additions & 0 deletions openAI_RRM/SimulationSlavesConfig/Setting2_2unsym/readme.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# Start environment if Uniflex is installed in some
source ~/Uniflex/dev/bin/activate

# 2a. Run control program in master node:
uniflex-broker
# 2b. Run control program in master node:
python3 rl_agent.py --config ./config_master_simulation.yaml
# you can choose thompson_agent.py or thompson_agent2.py, too

# 2c. Run modules in slave node:
#Simulation
uniflex-agent --config ./config_slave.yaml
uniflex-agent --config ./config_slave2.yaml

# For debugging mode run with -v option
28 changes: 28 additions & 0 deletions openAI_RRM/SimulationSlavesConfig/Setting3_112/common.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
from uniflex.core import events

__author__ = "Piotr Gawlowicz"
__copyright__ = "Copyright (c) 2016, Technische Universität Berlin"
__version__ = "0.1.0"
__email__ = "{gawlowicz}@tkn.tu-berlin.de"


class AveragedSpectrumScanSampleEvent(events.EventBase):
def __init__(self, avg):
super().__init__()
self.avg = avg


class StartMyFilterEvent(events.EventBase):
def __init__(self):
super().__init__()


class StopMyFilterEvent(events.EventBase):
def __init__(self):
super().__init__()


class ChangeWindowSizeEvent(events.EventBase):
def __init__(self, value):
super().__init__()
self.window = value
28 changes: 28 additions & 0 deletions openAI_RRM/SimulationSlavesConfig/Setting3_112/config_slave.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
## UniFlex Agent config file

config:
name: 'HC node'
info: 'filter runs on local node'
iface: 'lo'
iface: 'lo'
sub: "tcp://127.0.0.1:8990"
pub: "tcp://127.0.0.1:8989"

control_applications:
discovery:
module : uniflex_app_discovery_pyre
class_name : PyreDiscoverySlaveModule
kwargs: {"iface":"lo", "groupName":"uniflex_1234"}

modules:
simple:
module : uniflex_module_simple
class_name : SimpleModule4
devices : ['phy0']
kwargs : { "clients" : ["cc:cc:cc:cc:cc:01", "cc:cc:cc:cc:cc:02", "cc:cc:cc:cc:cc:03", "cc:cc:cc:cc:cc:04", "cc:cc:cc:cc:cc:05", "cc:cc:cc:cc:cc:06"],
'neighbors' : [['aa:aa:aa:aa:aa:02', 'aa:aa:aa:aa:aa:03']],
'myMAC' : 'aa:aa:aa:aa:aa:01',
'simulation': {'channelSwitchingTime': 0, 'channelThroughputDefault':54000000, 'txBytesRandom':0, 'clientnum':1,
'mode': 'single'
}}

28 changes: 28 additions & 0 deletions openAI_RRM/SimulationSlavesConfig/Setting3_112/config_slave2.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
## UniFlex Agent config file

config:
name: 'HC node'
info: 'filter runs on local node'
iface: 'lo'
iface: 'lo'
sub: "tcp://127.0.0.1:8990"
pub: "tcp://127.0.0.1:8989"

control_applications:
discovery:
module : uniflex_app_discovery_pyre
class_name : PyreDiscoverySlaveModule
kwargs: {"iface":"lo", "groupName":"uniflex_1234"}

modules:
simple:
module : uniflex_module_simple
class_name : SimpleModule4
devices : ['phy0']
kwargs : { "clients" : ["cc:cc:cc:cc:cc:11", "cc:cc:cc:cc:cc:12", "cc:cc:cc:cc:cc:13", "cc:cc:cc:cc:cc:14", "cc:cc:cc:cc:cc:15", "cc:cc:cc:cc:cc:16"],
'neighbors' : [['aa:aa:aa:aa:aa:01', 'aa:aa:aa:aa:aa:03']],
'myMAC' : 'aa:aa:aa:aa:aa:02',
'simulation': {'channelSwitchingTime': 0, 'channelThroughputDefault':54000000, 'txBytesRandom':0, 'clientnum':1,
'mode': 'single'
}}

28 changes: 28 additions & 0 deletions openAI_RRM/SimulationSlavesConfig/Setting3_112/config_slave3.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
## UniFlex Agent config file

config:
name: 'HC node'
info: 'filter runs on local node'
iface: 'lo'
iface: 'lo'
sub: "tcp://127.0.0.1:8990"
pub: "tcp://127.0.0.1:8989"

control_applications:
discovery:
module : uniflex_app_discovery_pyre
class_name : PyreDiscoverySlaveModule
kwargs: {"iface":"lo", "groupName":"uniflex_1234"}

modules:
simple:
module : uniflex_module_simple
class_name : SimpleModule4
devices : ['phy0']
kwargs : { "clients" : ["cc:cc:cc:cc:cc:21", "cc:cc:cc:cc:cc:22", "cc:cc:cc:cc:cc:23", "cc:cc:cc:cc:cc:24", "cc:cc:cc:cc:cc:25", "cc:cc:cc:cc:cc:26"],
'neighbors' : [['aa:aa:aa:aa:aa:02', 'aa:aa:aa:aa:aa:01']],
'myMAC' : 'aa:aa:aa:aa:aa:03',
'simulation': {'channelSwitchingTime': 0, 'channelThroughputDefault':54000000, 'txBytesRandom':0, 'clientnum':2,
'mode': 'single' # training or working
}}

16 changes: 16 additions & 0 deletions openAI_RRM/SimulationSlavesConfig/Setting3_112/readme.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# Start environment if Uniflex is installed in some
source ~/Uniflex/dev/bin/activate

# 2a. Run control program in master node:
uniflex-broker
# 2b. Run control program in master node:
python3 rl_agent.py --config ./config_master_simulation.yaml
# you can choose thompson_agent.py or thompson_agent2.py, too

# 2c. Run modules in slave node:
#Simulation
uniflex-agent --config ./config_slave.yaml
uniflex-agent --config ./config_slave2.yaml
uniflex-agent --config ./config_slave3.yaml

# For debugging mode run with -v option
28 changes: 28 additions & 0 deletions openAI_RRM/SimulationSlavesConfig/Setting3_222/common.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
from uniflex.core import events

__author__ = "Piotr Gawlowicz"
__copyright__ = "Copyright (c) 2016, Technische Universität Berlin"
__version__ = "0.1.0"
__email__ = "{gawlowicz}@tkn.tu-berlin.de"


class AveragedSpectrumScanSampleEvent(events.EventBase):
def __init__(self, avg):
super().__init__()
self.avg = avg


class StartMyFilterEvent(events.EventBase):
def __init__(self):
super().__init__()


class StopMyFilterEvent(events.EventBase):
def __init__(self):
super().__init__()


class ChangeWindowSizeEvent(events.EventBase):
def __init__(self, value):
super().__init__()
self.window = value
Loading