Coder Social home page Coder Social logo

mahbubalamdev / seed-emulator Goto Github PK

View Code? Open in Web Editor NEW

This project forked from seed-labs/seed-emulator

0.0 0.0 0.0 175.77 MB

A Python framework for creating emulation of the Internet.

License: GNU General Public License v3.0

Shell 0.30% JavaScript 6.67% Python 72.78% TypeScript 14.26% CSS 2.50% HTML 2.84% Dockerfile 0.65%

seed-emulator's Introduction

Internet Emulator

The objective of the SEED-Emulator project is to help create emulators of the Internet. These emulators are for educational uses, and they can be used as the platform for designing hands-on lab exercises for various subjects, including cybersecurity, networking, etc.

The project provides essential elements of the Internet (as Python classes), including Internet exchanges, autonomous systems, BGP routers, DNS infrastructure, a variety of services. Users can use these elements as the building blocks to build their emulation programmatically. The output of the program is a set of docker container folders/files. When these containers are built and started, they form a small-size Internet. New building blocks are being added, including Blockchain, Botnet, and many other useful elements of the Internet.

The Web UI

Table of Contents

Getting Started

Install the necessary software

To run the emulator, you need to install docker, docker-compose, and python3.

Set up the environment variable

To run the emulator code, you need to add this folder to the PYTHONPATH environment variable. This can be done by running source development.env inside the project's root directory.

Set up the proxy (not needed if you don't have an issue)

The emulator needs to fetch docker images from the Docker Hub. If you are in Mainland China, you may not be able to directly get the docker images. However, there are many docker hub proxies that you can use. Please follow these instructions to set up the docker hub proxies. If you do not have such an issue, please skip this step.

Run Examples

We have provided many examples in the examples/ folder. Detailed explanations are provided the README file in each example folder. To run an example, do the following:

  1. Pick an example, for example, A00-simple-as.

  2. Build the emulation. For this example, go to examples/A00-simple-as/, and run python3 ./simple-as.py. The container files will be created inside the output/ folder. For some examples, such as B02-mini-internet-with-dns, they depend on other examples, so you need to run those examples first.

  3. Build and run the generated containers. First cd output/, then do docker-compose build && docker-compose up. The emulator will start running. Give it a minute or two (or longer if your emulator is large) to let the routers do their jobs.

  4. Some examples already include the visualization container (called Internet Map). Point your browser to http://127.0.0.1:8080/map.html, and you will see the visualization. More instructions on how to use the visualization app is given in this manual. If the map is not included, you can open a new terminal window, navigate to the project root directory, cd to client/, and run docker-compose build && docker-compose up. This will bring up the Internet Map container.

User Manuals

User manuals are provided inside the docs/user_manual/ folder.

Contributing

Contributions to SEED-Emulator are always welcome. For contribution guidelines, please see CONTRIBUTING.

License

The software is licensed under the GNU General Public License v3.0 license, with copyright by The SEED-Emulator Developers (see LICENSE).

seed-emulator's People

Contributors

benthor avatar haotong-w avatar junlel avatar kevin-w-du avatar lenciggaer avatar lschulz avatar magicnat avatar martenwallewein avatar nikilesh122 avatar omahs avatar rawinsader avatar rnsader avatar tjohn327 avatar wonkr avatar zc1023 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.