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.1.tar.gz (318.8 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.1-py3-none-any.whl (11.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: tcp_ip_simulation-0.2.1.tar.gz
  • Upload date:
  • Size: 318.8 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.1.tar.gz
Algorithm Hash digest
SHA256 cc24abad54942a083007325d408114d4338ef69b5c4130696871f3edcea537b4
MD5 fe9133e680a4f9c323e4a8a5d1102ebd
BLAKE2b-256 3b30ffce7cdede07e51b4d7717ad5f9ae495be925150b1c24c7482249788c035

See more details on using hashes here.

File details

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

File metadata

  • Download URL: tcp_ip_simulation-0.2.1-py3-none-any.whl
  • Upload date:
  • Size: 11.3 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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 10ca6726de57f6c8dd99cf6bf121079d2baedb8cd89d0d77719c96d5d92ccfa6
MD5 3040fb05a029d7dfa17a71e8c496b7cc
BLAKE2b-256 ce9f30fad2523ba5e75f145092ed3af66bdf18b5dfc77a336a8ee94c6d19e860

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