{"id":22220944,"url":"https://github.com/nokia/genindustrialnettraffic","last_synced_at":"2026-03-06T05:35:15.657Z","repository":{"id":152002190,"uuid":"553585472","full_name":"nokia/genIndustrialNetTraffic","owner":"nokia","description":null,"archived":false,"fork":false,"pushed_at":"2023-01-27T12:23:31.000Z","size":1142,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-07-27T16:50:50.343Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/nokia.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2022-10-18T12:50:14.000Z","updated_at":"2024-04-26T09:56:49.000Z","dependencies_parsed_at":null,"dependency_job_id":"cad3f8e6-b3ab-461c-a27d-00b059d582af","html_url":"https://github.com/nokia/genIndustrialNetTraffic","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/nokia/genIndustrialNetTraffic","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nokia%2FgenIndustrialNetTraffic","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nokia%2FgenIndustrialNetTraffic/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nokia%2FgenIndustrialNetTraffic/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nokia%2FgenIndustrialNetTraffic/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nokia","download_url":"https://codeload.github.com/nokia/genIndustrialNetTraffic/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nokia%2FgenIndustrialNetTraffic/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279000715,"owners_count":26082911,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-09T02:00:07.460Z","response_time":59,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-12-02T23:11:04.503Z","updated_at":"2025-10-09T03:38:32.085Z","avatar_url":"https://github.com/nokia.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# A Generative Approach for Production-Aware Industrial Network Traffic Modeling\nPretrained generated models for production-aware industrial network traffic modeling\n\n## Contribution\nwe investigate the network traffic data generated from a laser cutting machine deployed in a Trumpf factory in Germany. We evaluate the data and model the network traffic as a production state dependent stochastic process in two steps: first, we model the production process as a multi-state semi Markov process, then we learn the conditional distributions of the production state dependent packet interarrival time and packet size with different generative models, including variational autoencoder (VAE), conditional variational autoencoder (CVAE), and generative adversarial network (GAN).\n\nIn this repository, we publish the pretrained models for the industrial network traffic. \n\n![](Distribution_sojourn_time.png)\n\n## Dependencies\nWe have used the following software versions:\n- python (3.8)\n  - numpy (1.22)\n  - scikit-learn (1.0.2)\n  - pandas (1.3.5)\n  - pytorch (1.10.1)\n  \n## Launching scripts\n\nThe most easy way to launch the scripts is to run `tox -e run` in the `generative_models` directory in a new conda environment. \n\nDependencies are collected to the [requirements.txt](generative_models\\requirements.txt) file. \nThe traffic generation can be launched through the `main.py` script. \n\n`saved_model*` directories are the pre-trained models that are used for generating the distributions. They are loaded in\nthe main.py for generating our distributions and there is no need to change or modify them.\n\n## Modifying the configuration\n\nThis can be achieved by chanding the code of the script. \n\n* `model` variable in line 25 selects the model used, must be VAE, CVAE or GAN\n* `x_dim` variable in line 29 selects the dimension of the output. 1 means only distribution of interarrival time\n  between packets, 2 means joint distribution of interarrival time and packet size\n* Line 85 is the output, which is a dictionary which has as a key the industrial state and as value the list of interarrival time and/or packet size\n\n## Example output\n\nRunning the script should result in similar diagrams than [1D_distribution_CVAE.png](generative_models\\1D_distribution_CVAE.png), \n[1D_distribution_GAN.png](generative_models\\1D_distribution_GAN.png) or [1D_distribution_VAE.png](generative_models\\1D_distribution_VAE.png).\n\n## License\n\nThis work is licensed under the Creative Commons Attribution-NonCommercial 4.0 International License.\n© 2022 Nokia\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnokia%2Fgenindustrialnettraffic","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnokia%2Fgenindustrialnettraffic","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnokia%2Fgenindustrialnettraffic/lists"}