{"id":15399089,"url":"https://github.com/cjiw/hust-network-lab2","last_synced_at":"2026-06-18T09:32:08.830Z","repository":{"id":223463251,"uuid":"703026367","full_name":"CjiW/HUST-network-lab2","owner":"CjiW","description":"华中科技大学计算机网络实验-RDT协议","archived":false,"fork":false,"pushed_at":"2023-12-04T05:51:13.000Z","size":47,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-11-21T09:24:20.407Z","etag":null,"topics":["hust","lab","network"],"latest_commit_sha":null,"homepage":"","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/CjiW.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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}},"created_at":"2023-10-10T13:06:15.000Z","updated_at":"2024-02-20T09:50:46.000Z","dependencies_parsed_at":null,"dependency_job_id":"3c46eff0-5af5-4362-98e9-c43b31643079","html_url":"https://github.com/CjiW/HUST-network-lab2","commit_stats":{"total_commits":12,"total_committers":1,"mean_commits":12.0,"dds":0.0,"last_synced_commit":"811026bd4b6759f90bd3ef7a9504d8e93fc8e00c"},"previous_names":["cjiw/hust-network-lab2"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/CjiW/HUST-network-lab2","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CjiW%2FHUST-network-lab2","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CjiW%2FHUST-network-lab2/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CjiW%2FHUST-network-lab2/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CjiW%2FHUST-network-lab2/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/CjiW","download_url":"https://codeload.github.com/CjiW/HUST-network-lab2/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CjiW%2FHUST-network-lab2/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34485163,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-18T02:00:06.871Z","response_time":128,"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":["hust","lab","network"],"created_at":"2024-10-01T15:46:51.503Z","updated_at":"2026-06-18T09:32:08.272Z","avatar_url":"https://github.com/CjiW.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# RDT 协议设计实验\n\n## 开发平台\n```\n--------------- OS    -----------------\nPRETTY_NAME=\"Ubuntu 22.04.3 LTS\"\nNAME=\"Ubuntu\"\nVERSION_ID=\"22.04\"\nVERSION=\"22.04.3 LTS (Jammy Jellyfish)\"\nVERSION_CODENAME=jammy\nID=ubuntu\nID_LIKE=debian\nUBUNTU_CODENAME=jammy\nLinux WIN-11 5.15.133.1-microsoft-standard-WSL2 #1 SMP Thu Oct 5 21:02:42 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux\n-------------- gcc/g++ ----------------\ngcc (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0\ng++ (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0\n-------------- make    ----------------\nGNU Make 4.3 Built for x86_64-pc-linux-gnu\n-------------- cmake   ----------------\ncmake version 3.22.1\n```\n## 目录结构\n```\n.\n├── bin\n│   ├── gbn\n│   ├── sr\n│   ├── stop_wait\n│   └── tcp\n├── include/\n├── lib\n│   └── libnetsim.a\n├── src_gbn/\n├── src_sr/\n├── src_stopwait/\n├── src_tcp/\n├── README.md\n├── CMakeLists.txt\n├── input.txt\n├── output.txt\n└── test.sh\n```\n\n## 编译方法\n\u003e 编译时需要静态库 `lib/libnetsim.a`\n\n1. 创建并进入 `build` 文件夹\n```shell\n(project_dir) mkdir build \u0026\u0026 cd build\n```\n2. 构建，目标位置为 `项目目录/bin`\n```shell\n(project_dir/build) cmake ..\n(project_dir/build) make\n```\n## 运行方法\n\u003e 运行时不需要静态库 `lib/libnetsim.a`\n\n命令格式为 `可执行文件路径 输入文件路径 输出文件路径`，仿真系统日志将输出到标准输出，收发窗口信息将输出到 `gbn_log.txt` 文件。\n```shell\n(project_dir/build) ../bin/gbn ../input.txt ../output.txt\nor\n(project_dir) ./bin/gbn input.txt output.txt\nor\n(project_dir/bin) ./gbn ../input.txt ../output.txt\n```\n\n## 测试脚本\n\n脚本将重复运行十次，并且使用 `diff` 工具比较文件内容，并且生成一个 `test.log` 文件\n\n```shell\n(project_dir) ./test.sh gbn\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcjiw%2Fhust-network-lab2","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcjiw%2Fhust-network-lab2","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcjiw%2Fhust-network-lab2/lists"}