{"id":49527346,"url":"https://github.com/microsoft/internet-in-a-box","last_synced_at":"2026-05-02T04:00:58.584Z","repository":{"id":65975620,"uuid":"309465404","full_name":"microsoft/internet-in-a-box","owner":"microsoft","description":"Enabling data-informed network simulation","archived":false,"fork":false,"pushed_at":"2023-06-02T17:07:48.000Z","size":131,"stargazers_count":15,"open_issues_count":1,"forks_count":5,"subscribers_count":4,"default_branch":"main","last_synced_at":"2026-04-18T00:21:02.484Z","etag":null,"topics":["machine-learning","network-measurement","network-simulation"],"latest_commit_sha":null,"homepage":"https://www.microsoft.com/en-us/research/project/ibox/","language":"Tcl","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/microsoft.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":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2020-11-02T18:50:49.000Z","updated_at":"2025-11-25T19:29:20.000Z","dependencies_parsed_at":"2026-03-25T06:03:12.831Z","dependency_job_id":null,"html_url":"https://github.com/microsoft/internet-in-a-box","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/microsoft/internet-in-a-box","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/microsoft%2Finternet-in-a-box","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/microsoft%2Finternet-in-a-box/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/microsoft%2Finternet-in-a-box/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/microsoft%2Finternet-in-a-box/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/microsoft","download_url":"https://codeload.github.com/microsoft/internet-in-a-box/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/microsoft%2Finternet-in-a-box/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32520331,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-02T01:12:54.858Z","status":"online","status_checked_at":"2026-05-02T02:00:05.923Z","response_time":132,"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":["machine-learning","network-measurement","network-simulation"],"created_at":"2026-05-02T04:00:54.655Z","updated_at":"2026-05-02T04:00:58.572Z","avatar_url":"https://github.com/microsoft.png","language":"Tcl","funding_links":[],"categories":[],"sub_categories":[],"readme":"# iBox: Internet in a Box\r\n*Data-informed Network Simulation Profiles*\r\n\r\n## About iBox\r\n\r\nThe **iBox** (Internet in a Box) project is an ongoing effort at [Microsoft Research India](https://www.microsoft.com/en-us/research/lab/microsoft-research-india/) on enabling data-informed network simulation. Currently, we use data in the form of per-packet traces gathered at senders and receivers of networked applications to learn network parameters and configure a network simulator accordingly. \r\n\r\nYou can find more details of the work on the [project website](http://aka.ms/ibox) and in our [HotNets'20 paper](https://www.microsoft.com/en-us/research/uploads/prod/2020/09/iBox-HotNets2020.pdf) [[1]](#1).\r\n\r\nThe purpose of this repo is to make **iBox**  network configurations available to the research community. Specifically, we focus here on **iBoxNet**, which is a network model based variant of **iBox**.\r\n\r\n## About generated **iBoxNet** network profiles\r\n### Data source\r\nWe currently use the packet traces available from the [Pantheon project](https://pantheon.stanford.edu/) [[2]](#2) at Stanford to generate the **iBoxNet** network profiles.\r\n\r\n### Format of the **iBoxNet** network profiles\r\nThe JSON files corresponding to each **iBoxNet** network profile mainly contain the following: \r\n1. **Basic network parameters**\r\n\t1. **`bottleneck_bandwidth`** (in kbps)\r\n\t2. **`buffer_size_bytes`** (in bytes)\r\n\t3. **`buffer_size_packets`** (in MTU sized packets)\r\n\t4. **`propagation_delay`** (in milliseconds)\r\n2.  **Cross traffic estimate**\r\n\t1. **`cross_traffic_pattern`**:  a 30s long timeseries with each entry in kbps\r\n3. **Metadata**\r\n\t1. **`measurement_node`**: endpoint A of the flow\r\n\t2. **`peer_cloud_server`**: endpoint B of the flow\r\n\t3. **`data_flow_direction`**: direction of the data flow\r\n\t4. **`link_type`**: type of network link in the experiment\r\n\t5. **`data_source_url`**: static url to the source of the data used for generating this **iBoxNet** network profile\r\n\r\n### Notes\r\n1. The **`cross_traffic_pattern`** is a timeseries *ct* and it is used in the simulation\\emulation experiment by configuring a UDP sender to set its sending rate to *ct*\u003csub\u003e*i*\u003c/sub\u003e kbps at time *i*.\r\n2. The network parameters corresponding to the Pantheon traces are learned only for one direction (as indicated by the **`link_type`** for which the data is collected) while the reverse direction's parameters (for example, the parameters of the downlink in this [network profile](https://github.com/microsoft/internet-in-a-box/blob/main/network-profiles/colombia/cellular/network-profile-1.json)) are populated using default values (not learned from data). \r\n\r\n## Quick Start\r\nTo get started on running ns-2 simulations using the profiles, some sample ns-2 scripts have been provided in the src/sample-code directory. \r\n\r\nPlease install ns-2, tcl, and tcllib and run the following command:\r\n\r\n```bash\r\nns src/sample-code/single-link-with-cross-traffic.tcl arg1 arg2\r\n```\r\nwhere `arg1` is the path to the **iBoxNet** network profile and `arg2` is the directory you want to save your experiment trace file in.\r\n\r\nThe sample script sets up the network topology corresponding to the **iBoxNet** network profile in addition to configuring the cross traffic sender to send traffic into the network appropriately. Further, the script runs a TCP Cubic file transfer for 30s on this network and saves the trace file corresponding to this simulation.\r\n\r\n## Questions?\r\nIf you have any questions, please feel free to [open an issue](https://github.com/microsoft/internet-in-a-box/issues/new) and describe your query.\r\n\r\n## Citations\r\n\r\nIf you'd like to cite our paper, please use this doi: [10.1145/3422604.3425935](https://doi.org/10.1145/3422604.3425935) and if you'd like to cite our network profiles, please use this [GitHub link](https://github.com/microsoft/internet-in-a-box).\r\n\r\n\r\n## References\r\n\u003ca id=\"1\"\u003e[1]\u003c/a\u003e S. Ashok, S. S. Duvvuri, N. Natarajan, V. N. Padmanabhan, S. Sellamanickam, and J. Gehrke. \"iBox: Internet in a Box\". In Proceedings of the 19th ACM Workshop on Hot Topics in Networks, HotNets ’20, page 23–29, New York, NY, USA, 2020. Association for Computing Machinery.  \r\n\u003ca id=\"2\"\u003e[2]\u003c/a\u003e F. Y. Yan, J. Ma, G. D. Hill, D. Raghavan, R. S. Wahby, P. Levis, and K. Winstein.   Pantheon: the training ground for internet congestion-control research. In 2018 USENIX Annual Technical Conference (USENIX ATC 18), pages 731–743, 2018\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmicrosoft%2Finternet-in-a-box","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmicrosoft%2Finternet-in-a-box","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmicrosoft%2Finternet-in-a-box/lists"}