realvnf / bjointsp-adapter Goto Github PK
View Code? Open in Web Editor NEWAdapter to map the inputs and outputs of the B-JointSP to the simulator interface
Adapter to map the inputs and outputs of the B-JointSP to the simulator interface
Discussion on how to best evaluate B-JointSP and compare it against other algorithms (mostly DDPG). Related to https://github.com/RealVNF/evaluation/issues/29
Current approach:
Alternative:
0.1 * 6 = 0.6
. Round up to 1.1/1=1
(but may be more during bursts or MMP).This way, we would calculate roughly the data rate that needs to be served in parallel. But still split it into separate flows of the pre-defined size (here, 1) such that B-JointSP can embed the flows separately.
As discussed:
prev_schedule
from last run.prev_schedule
to uniform distribution for all nodesprev_schedule
rather than normalizing the 0s and resetting to a uniform schedulePlease add an overview in the Readme (before setup) that contains info about what the adapter does. At least:
Best to check comments in the code, old notes/issues, eg, CN-UPB/B-JointSP#17, if you're not sure anymore. A few bullet points are fine, no long text please.
So that we can run multiple experiments in parallel. And don't have to write to file the whole time. Shouldn't break anything of the existing functionality.
Not sure whether to do this in the adapter or B-JointSP itself. Probably both.
(venv) (base) G:\bjointsp-adapter>bjointsp-adapter -n "res/networks/triangle.graphml" -sf "res/service_functions/abc.yaml" -c "res/config/sim_config.yaml" -i 50
sfc_1's weight: 6.0
Best overlays:
Overlay of sfc_1
4 instances: (vnf_source,pop0):[f1] (a,pop0) (b,pop0) (c,pop0)
3 edges: (vnf_source,pop0):[f1]->(a,pop0):[f1] (a,pop0)->(b,pop0):[f1] (b,pop0)->(c,pop0):[f1]
Writing solution to results/bjointsp\triangle-sfc_1-first_source-2019-09-24_13-10-15_2034.yaml
Traceback (most recent call last):
File "g:\bjointsp-adapter\venv\lib\site-packages\coordsim\simulation\flowsimulator.py", line 205, in process_flow
demanded_total_capacity += self.params.sf_list[sf_i]['resource_function'](sf_data['load'])
KeyError: 'vnf_source'
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "g:\bjointsp-adapter\venv\lib\site-packages\coordsim\simulation\flowsimulator.py", line 121, in pass_flow
yield self.env.process(self.process_flow(flow, sfc))
KeyError: 'vnf_source'
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "g:\bjointsp-adapter\venv\lib\site-packages\coordsim\simulation\flowsimulator.py", line 96, in init_flow
yield self.env.process(self.pass_flow(flow, sfc))
KeyError: 'vnf_source'
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "G:\bjointsp-adapter\venv\Scripts\bjointsp-adapter-script.py", line 11, in <module>
load_entry_point('bjointsp-adapter==0.0.2', 'console_scripts', 'bjointsp-adapter')()
File "g:\bjointsp-adapter\venv\lib\site-packages\adapter\adapter.py", line 104, in main
apply_state = simulator.apply(action)
File "g:\bjointsp-adapter\venv\lib\site-packages\siminterface\simulator.py", line 113, in apply
self.env.run(until=runtime_steps)
File "g:\bjointsp-adapter\venv\lib\site-packages\simpy\core.py", line 138, in run
self.step()
File "g:\bjointsp-adapter\venv\lib\site-packages\simpy\core.py", line 230, in step
raise exc
KeyError: 'vnf_source'
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.