Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/katharaframework/kathara
A lightweight container-based network emulation system.
https://github.com/katharaframework/kathara
bgp computer-networks containers dns-server docker k8s kubernetes netkit network-emulation network-emulator network-engineering nfv ospf p4 p4-language p4language python rip sdn virtual-network
Last synced: about 1 month ago
JSON representation
A lightweight container-based network emulation system.
- Host: GitHub
- URL: https://github.com/katharaframework/kathara
- Owner: KatharaFramework
- License: gpl-3.0
- Created: 2017-03-31T14:07:48.000Z (over 7 years ago)
- Default Branch: main
- Last Pushed: 2024-09-11T20:11:12.000Z (2 months ago)
- Last Synced: 2024-09-26T02:29:19.419Z (about 2 months ago)
- Topics: bgp, computer-networks, containers, dns-server, docker, k8s, kubernetes, netkit, network-emulation, network-emulator, network-engineering, nfv, ospf, p4, p4-language, p4language, python, rip, sdn, virtual-network
- Language: Python
- Homepage: https://www.kathara.org/
- Size: 4.21 MB
- Stars: 436
- Watchers: 18
- Forks: 64
- Open Issues: 8
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
- Security: SECURITY.md
Awesome Lists containing this project
README
- Official Website
- What is it?
- How does it work?
- Installation
- Quick Example
- Publications
- External Tools
- Success Stories
- Join Us
- Docker Images and Dockerfiles
- Examples and Tutorials
- Python APIs
- Man Pages
## What is it?
**Kathará** (from the Greek Καθαρά, _purely_) is a lightweight network emulation system based on Docker containers.
It can be really helpful in showing interactive demos/lessons, testing production networks in a sandbox environment, or developing new network protocols.
Kathará is the spiritual successor of the notorious [Netkit](https://www.netkit.org/), hence it is cross-compatible, and inherits its language and features.
## How does it work?
Each network device is emulated by a container.
Virtual network devices are interconnected by virtual L2 LANs.
Each container can potentially run a different Docker image. Built-in images include **Quagga**, **FRRouting**, **Bind**, **P4**, **OpenVSwitch**, and more, but you can also use your own container images.
For more information about Kathará images please visit the dedicated [repository](https://github.com/KatharaFramework/Docker-Images).
Kathará extremely simplifies the creation of complex networks using the concept of **network scenario**: a directory containing a file with the network topology, and, foreach device, files and folders containing the configuration of that device.
Kathará emulates network scenarios using either Docker or Kubernetes as backend virtualization system.
## Installation
Install Docker and then run the installer specific for your Operating System. For a step-by-step guide check the [Wiki](https://github.com/KatharaFramework/Kathara/wiki).
For further information on how to use Kathará on Kubernetes (**Megalos**) please refer to the [Wiki Page](https://github.com/KatharaFramework/Kathara/wiki/Megalos-(Kathara-over-Kubernetes)).
Kathará also provides a set of Python APIs.
See the [Python APIs Tutorial](https://github.com/KatharaFramework/Kathara-Labs/tree/main/tutorials/python-api) and the [docs](https://github.com/KatharaFramework/Kathara/wiki/Kathara-API-Docs).
## Quick Example
* Install Kathará by following the Installation section.
* Download and unpack the network scenario of a "Small Internet" from [here](https://github.com/KatharaFramework/Kathara-Labs/blob/main/main-labs/labs-integrating-several-technologies/small-internet-with-dns-and-web-server/kathara-lab_small-internet-with-dns-and-web-server.zip)
(network topology can be found [here](https://github.com/KatharaFramework/Kathara-Labs/blob/main/main-labs/labs-integrating-several-technologies/small-internet-with-dns-and-web-server/kathara-lab_small-internet-with-dns-and-web-server.pdf)).
* `cd` inside `small-internet-with-dns-webserver` and run `kathara lstart`.
* Kathará will read the configuration of the scenario from `lab.conf` and the various `*.startup` files and start the devices, opening terminal windows to interact with them.
* After you're done experimenting, simply run `kathara lclean` and wait until the network scenario closes.
## Publications and Presentations
Kathará is developed by [Roma Tre Computer Networks and Security Research Group](https://compunet.ing.uniroma3.it/).
Several publications are related to the tool:
- **Kathará: A container-based framework for implementing network function virtualization and software defined networks** (at NOMS 2018)
- Presentation
- **Megalos: A Scalable Architecture for the Virtualization of Network Scenarios** (at NOMS 2020)
- Presentation
- **Kathará: A Lightweight Network Emulation System** (at NOMS 2020)
- Presentation
- Best Demo Paper Award
- **Megalos: A Scalable Architecture for the Virtualization of Large Network Scenarios** (in MDPI Future Internet Journal 2021)
- **Sibyl: a Framework for Evaluating the Implementation of Routing Protocols in Fat-Trees** (at NOMS 2022)
- NOMS2022 Presentation
- RTGWG Session at IETF114
Kathará has been also presented in meetings and workshops:
- RIFT Working Group Meeting (IETF 107 - March 2020)
- Kathará: A Lightweight Network Emulation System (Italian Audio) (GraphRM - June 2022)
- Kathará: A Lightweight and Scalable Network Emulation System (RIPE 85 - October 2022)
## External Tools
- [Netkit Lab Generator](https://github.com/KatharaFramework/Netkit-Lab-Generator), a GUI that allows the easy creation of a network scenario configuration and the visualization of its network topology.
- [VFTGen](https://github.com/KatharaFramework/VFTGen), a tool that allows to create three levels Fat Tree topologies (single-plane or multi-planes) and automatically configure them to run on Kathará.
- [Tacatá](https://github.com/damiano-massarelli/Tacata), a lightweight Python script which creates Netkit and Kathará labs using an enriched version of the lab.conf file with a simple syntax.
- [net-vis](https://github.com/Friscobuffo/net-vis-localhost), a tool that parses (and generates) the `lab.conf` file and all the `.startup` files to visualize the network.
- [kathara-lab-starter](https://github.com/BuonHobo/kathara-lab-starter), an easy and extensible tool to get a kathara lab started. Utilizing JSON input files, it accelerates setup, while minimizing configuration redundancies.
## Success Stories
As far as we know, Kathará is currently being used in many [courses and projects](https://www.kathara.org/stories.html).
We encourage you to tell us your story!
We are also collecting network scenarios from the community. If you want to be added to the [list](https://github.com/KatharaFramework/Kathara-Labs/tree/main/community-labs), please contact us!
## Join Us
Kathará is an open source project.
Feel free to download the code, play with it, and submit feature requests, notify bugs, or open pull requests!
Thanks to everyone who has contributed to the development of Kathará!