Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support 5GTANGO package format #6

Closed
20 tasks done
mpeuster opened this issue Jun 6, 2018 · 2 comments
Closed
20 tasks done

Support 5GTANGO package format #6

mpeuster opened this issue Jun 6, 2018 · 2 comments
Labels
migration Migration task: son-profile to tng-sdk-profile
Projects

Comments

@mpeuster
Copy link

mpeuster commented Jun 6, 2018

Make use of 5GTANGO package and unpackaging. Would be a perfect fit here and reduce development overhead if only done once.

tng-profile will work on project strcutures!!!

  • ensure installation of tng-sdk-package during setup
  • add new generator module tango.py

Implement Generation Process

  • unpack the input *.tgo to a temp dir base_service
  • generate projects using base_service
    • add mp connection informations to example PED
    • copy projects
    • gen: add mps
      • add MP VNFDs to project
      • update NSD: functions, connection points, links, VNFFG
    • gen: add resource limits to VNFs
      • for each VNF, find VNFD
      • overwrite field in VNFD
      • store new VNFD
  • walk over the generated service projects and call the packager
  • add unit tests for generated projects and packages
    • split unittests to separated files
    • generate dummy ex/ec and let it update the example service, then check the project folder if the NSD and VNFDs are changed as they should
  • return: NOTHING (everything is added to the ec's in each ex)
  • print generator statistics
  • refactor init.py
@mpeuster mpeuster added the migration Migration task: son-profile to tng-sdk-profile label Jun 6, 2018
@mpeuster mpeuster added this to To do in Development via automation Jun 6, 2018
@mpeuster mpeuster moved this from To do to In progress in Development Jul 30, 2018
@mpeuster
Copy link
Author

mpeuster commented Aug 14, 2018

Examples:

tng-bench -p examples/peds/example_ped1.yml

tng-bench -p examples/peds/example_ped1.yml -v --no-execution


@mpeuster
Copy link
Author

mpeuster commented Aug 14, 2018

Reverse engineering:

# generator args
args = Namespace(
config='config.yml',
graph_only=False,
no_display=False,
no_execution=True,
no_generation=False,
output_dir='/Users/manuel/tango/tng-sdk-benchmark',
ped='/Users/manuel/tango/tng-sdk-benchmark/examples/peds/example_ped1.yml', 
results_file='test_results.yml',
service_generator='eu.5gtango',
verbose=True,
work_dir='/var/folders/yx/lvxqrl7j7954pkz6mmsh72br0000gn/T/tmpr5e7sxux')

# experiment configuration objects/parameter member
ExperimentConfiguration(service_throughput_63)
{'mp::mp.input::cmd_start': 'iperf -c 1.1.1.1 -t 120',
 'mp::mp.input::cmd_stop': None,
 'mp::mp.input::container': 'mpeuster/p2-mp',
 'mp::mp.output::cmd_start': 'iperf -s -u',
 'mp::mp.output::cmd_stop': None,
 'mp::mp.output::container': 'mpeuster/p2-mp',
 'repetition': 0,
 'rl::eu.5gtango.vnf1.0.1::cpu_bw': 0.2,
 'rl::eu.5gtango.vnf1.0.1::cpu_cores': 1,
 'rl::eu.5gtango.vnf1.0.1::io_bw': None,
 'rl::eu.5gtango.vnf1.0.1::mem_max': 128,
 'rl::eu.5gtango.vnf1.0.1::mem_swap_max': None,
 'rl::eu.5gtango.vnf2.0.1::cpu_bw': 0.1,
 'rl::eu.5gtango.vnf2.0.1::cpu_cores': 1,
 'rl::eu.5gtango.vnf2.0.1::io_bw': None,
 'rl::eu.5gtango.vnf2.0.1::mem_max': 512,
 'rl::eu.5gtango.vnf2.0.1::mem_swap_max': None,
 'rl::mp.input::cpu_bw': 0.2,
 'rl::mp.input::cpu_cores': 1,
 'rl::mp.input::io_bw': None,
 'rl::mp.input::mem_max': 512,
 'rl::mp.input::mem_swap_max': None,
 'rl::mp.output::cpu_bw': 0.2,
 'rl::mp.output::cpu_cores': 1,
 'rl::mp.output::io_bw': None,
 'rl::mp.output::mem_max': 512,
 'rl::mp.output::mem_swap_max': None}

mpeuster pushed a commit to mpeuster/tng-sdk-benchmark that referenced this issue Aug 28, 2018
Signed-off-by: peusterm <manuel.peuster@uni-paderborn.de>
Development automation moved this from In progress to Done Aug 28, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
migration Migration task: son-profile to tng-sdk-profile
Projects
Development
  
Done
Development

No branches or pull requests

1 participant