Skip to main content

Generates materials for a classroom simulation of TCP/IP

Project description

TCP/IP Simulation

TCP/IP is the protocol responsible for routing messages around the Internet. This package generates everything you need to run a fun and informative simulation of TCP/IP in your classroom, for any number of students. We once ran this simulation with 200 students in a gymnasium!

Installation

This package is installed on PyPI, so you can install it with pip. The simplest way to install and use this package is with pipx:

% pipx install tcp-ip-simulation

Quickstart

You will need a csv file containing a name column, listing the names of all the participants in the simulation. Then run:

% generate-tcp-ip-simulation names.csv

This will generate materials for your simulation. Here's an example.

Options

The generate-tcp-ip-simulation command has a number of options you can use to tweak your simulation:

% generate-tcp-ip-simulation --help

usage: generate [-h] [-l IP_ADDRESS_LENGTH] [-m MAX_NODES]
                [-n NODES_PER_NAMESERVER] [-o OUTFILE] [-r] [-s FIGSIZE]
                participants

Generate materials for a classroom simulation of TCP/IP

positional arguments:
  participants

options:
  -h, --help            show this help message and exit
  -l, --ip-address-length IP_ADDRESS_LENGTH
                        Number of components in IP addresses
  -m, --max-nodes MAX_NODES
                        Maximum nodes per network
  -n, --nodes-per-nameserver NODES_PER_NAMESERVER
                        Maximum nodes per network
  -o, --outfile OUTFILE
                        Path to save result HTML file
  -r, --random          Randomize order of participants
  -s, --figsize FIGSIZE
                        Size of simulation graph

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

tcp_ip_simulation-0.2.0.tar.gz (318.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

tcp_ip_simulation-0.2.0-py3-none-any.whl (11.2 kB view details)

Uploaded Python 3

File details

Details for the file tcp_ip_simulation-0.2.0.tar.gz.

File metadata

  • Download URL: tcp_ip_simulation-0.2.0.tar.gz
  • Upload date:
  • Size: 318.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.1.3 CPython/3.13.5 Darwin/24.6.0

File hashes

Hashes for tcp_ip_simulation-0.2.0.tar.gz
Algorithm Hash digest
SHA256 0803162828bfa0b5b1f3640fe124b592757184b720c061d8661c896e01a465b4
MD5 bc60c41280f4b90e6e6647e6cbcad634
BLAKE2b-256 4f501dc4cf3296516b6570d90150665cd006c2857c62017ac13505ba56998fbd

See more details on using hashes here.

File details

Details for the file tcp_ip_simulation-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: tcp_ip_simulation-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 11.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.1.3 CPython/3.13.5 Darwin/24.6.0

File hashes

Hashes for tcp_ip_simulation-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 e0bf39e2981901a3208ecb3db42f50d3412c9a0d818bacbfe73ce97deeb75225
MD5 24680cbcfed826f8e40e763ab0236a71
BLAKE2b-256 d029e51aec80709c5b8cef72b4eedd1876a691664999d013b75e7e5c30739671

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page