Skip to content

Example network services and VNFs to test SONATA's tools and platforms

License

Notifications You must be signed in to change notification settings

hadik3r/son-examples

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Build Status

son-examples

This repository contains several example network services and their corresponding VNFs that can be used to test SONATA's SDK tools and SONATA's service platform.

Services (service-projects/)

Example service projects that include NSDs, VNFDs, etc. The projects are given as source code and have to be packed before they can be pushed to the service platform or the emulator.

Emulator

  • sonata-empty-service-emu: Simple service chain with three empty VNFs (UPB) Tutorial.
  • sonata-snort-service-emu: Service with a single Snort VNF (UPB) Tutorial.
  • sonata-sdk-test-service-emu: Service with 2 empty ubuntu VNFs chained to each other (iMinds).
  • sonata-ovs-service-emu: Service with an ovs switch and a Ryu openflow controller (iMinds).
  • sonata-vtc-service-emu: Service with single vTC VNF to test the vTC VNF in the emulator (UPB) Tutorial.
  • sonata-fw-vtc-service-emu: This will be the service for the Y1 review of son-emu (UPB).
  • sonata-fw-dpi-service-emu: Service with a Firewall (ovs+Ryu) and DPI (Snort) (iMinds).
  • sonata-fw-service-emu : Service with a single firewall VNF to test the firewall in the emulator (iMinds).

Service Platform

  • sonata-fw-vtc-service-sp: This will be the service for the Y1 review of SONATA's service platform.

Naming scheme

  • *-emu: Service references Docker-based VNFs that can be executed in son-emu.
  • *-sp: Service references VM-based VNFs that can be executed in SONATA's service platform.

Packaging

The given example projects can be packed with the son-cli tools:

First initialize a local SONATA workspace (if not already done):

  • son-workspace --init

In service-projects/ do:

  • son-package --project sonata-empty-service-emu -n sonata-empty-service
  • son-package --project sonata-snort-service-emu -n sonata-snort-service

The created service packages can be found in:

  • <service-folder>/target/<package-file.son>

VNFs (vnfs/)

Example VNF implementations. Most of them are given as Docker container configurations so that they can directly be used in the emulator. But the Docker containers can also be included and executed within VM images to run them on the service platform.

  • sonata-empty-vnf-docker: Minimalistic empty VNF (UPB).
  • sonata-iperf3-vnf-docker: Iperf3 traffic generator (UPB).
  • sonata-snort-ids-vnf-docker: Snort 2.9 intrusion detection system (UPB).
  • sonata-ovs1-vnf-docker: OpenvSwitch inside Docker container (Packets are processed in userspace inside the vswitch daemon running in the container) (iMinds).
  • sonata-ryu-snort-vnf-docker: Ryu Openflow controller, running as a learning switch (rest API included) (iMinds).
  • sonata-ryu-vnf-docker: Ryu Openflow controller, running as a learning switch (Snort support and rest API included) (iMinds).
  • sonata-vtc-vnf-docker: nDPI based traffic classifier (requieres PF_RING to be installed on the host machine) (NCSRD).
  • sonata-snort-ovs-docker: Snort intrusion detection system, extended with an interface to send alerts to a Ryu openflow controller (iMinds).
  • sonata-son-emu-sap-docker: Generic container that can be used to be deployed as SAP (Service Access Point) for a service deployed in the SONATA SDK emulator. This container has some basic functionality to generate and capture traffic (iMinds).
  • sonata-fw-vnf-docker : Firewall implemented by a Ryu Openflow controller and OpenVSwithc in one single VNF (iMinds).
  • sonata-fw-vnf-vm : Firewall implemented by a Ryu Openflow controller and OpenVSwithc in one single VNF. Exported as a Vagrant-built VM. (iMinds).

Naming scheme

  • *-docker: VNF executed as Docker container (Dockerfile).
  • *-vm: VNF executed as virtual machine image (or Vagrantfile).

Build & Push Docker-based VNFs

In vnfs/ do ...

./build.sh [opt. target repository name (default=sonatanfv)]

./push.sh [opt. target repository name (default=sonatanfv)]

Usage

Deploy example service on son-emu

Step-by-step instructions that show how to deploy the example services on son-emu are given in son-emu's project wiki:

Deploy example service on SONATA's service platform

  • TODO (an example service for the service platform will be available soon)

CI/CD Integration

This repository is integrated into SONATA's CI/CD workflow. The following unittests are executed whenever a pull request is created:

  • Build VNFs: Builds all Docker-based VNF images (vnfs/build.sh).
  • Push VNFs: Pushes all VNF images to SONATA's Docker registry (vnfs/push.sh).
  • Package services: Uses son-package to validate the service projects (service-projects/pack.sh).

Note: The packaged services are not yet uploaded anywhere. We use packaging only to validate the service projects and their descriptors.

License

Son-examples is published under Apache 2.0 license. Please see the LICENSE file for more details.

Useful Links

Contributing

Contributing to the son-examples is really easy. You must:

  1. Clone this repository;
  2. Work on your proposed changes, preferably through submitting issues;
  3. Submit a Pull Request;
  4. Follow/answer related issues (see Feedback-Chanel, below).

Lead Developers

The following lead developers are responsible for this repository and have admin rights. They can, for example, merge pull requests.

Feedback-Chanel

About

Example network services and VNFs to test SONATA's tools and platforms

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C 86.9%
  • Roff 3.7%
  • Shell 2.9%
  • Makefile 2.7%
  • HTML 1.1%
  • POV-Ray SDL 1.0%
  • Other 1.7%