{"id":22862929,"url":"https://github.com/ntut-xuan/tra","last_synced_at":"2025-03-31T09:19:27.653Z","repository":{"id":271649133,"uuid":"884440448","full_name":"ntut-xuan/TRA","owner":"ntut-xuan","description":"TRA (Traffic Realtime Analysis) is an application to fetch packet loss and queueing delay between two network interface.","archived":false,"fork":false,"pushed_at":"2025-01-13T10:43:47.000Z","size":39,"stargazers_count":0,"open_issues_count":2,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-06T13:48:03.811Z","etag":null,"topics":["network","sniffer-packet","traffic-analysis"],"latest_commit_sha":null,"homepage":"","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"wtfpl","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ntut-xuan.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}},"created_at":"2024-11-06T18:53:52.000Z","updated_at":"2025-01-13T10:43:50.000Z","dependencies_parsed_at":null,"dependency_job_id":"39d2bdf6-32de-4411-9b5e-0f0e7507ff55","html_url":"https://github.com/ntut-xuan/TRA","commit_stats":null,"previous_names":["ntut-xuan/tra"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ntut-xuan%2FTRA","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ntut-xuan%2FTRA/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ntut-xuan%2FTRA/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ntut-xuan%2FTRA/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ntut-xuan","download_url":"https://codeload.github.com/ntut-xuan/TRA/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246443534,"owners_count":20778252,"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","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":["network","sniffer-packet","traffic-analysis"],"created_at":"2024-12-13T10:44:51.659Z","updated_at":"2025-03-31T09:19:27.642Z","avatar_url":"https://github.com/ntut-xuan.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# TRA (Traffic Realtime Analysis)\n\n\u003e We call it TRA just because the name is coincides with [Taiwan Railway Administration（臺鐵）](https://en.wikipedia.org/wiki/Taiwan_Railways_Administration) and it's fun.\n\u003e\n\u003e The packet may delay but it will reach the destination, LOL.\n\n![TRA](https://github.com/user-attachments/assets/8280af8a-193d-44ea-b4f5-d5c19bb62226)\n\nTRA (Traffic Realtime Analysis) is an application to fetch packet loss and queueing delay between two network interface.\n\nWith TRA, it can sniff receive packet and transmit packet and check the packet is transmit through your service successfully or not.\n\n## OS Requirement\n\nTRA only support on Linux with `libpcap` library. Please take a look about [Installation](#Installation) part.\n\n## Installation\n\nTRA need `libpcap` to build, please make sure that you already have `libpcap-dev` first.\n\n```\ncmake .\ncmake --build\n```\n\n## Dev Environment\n\nWe provide a docker for build environment. It provide two test device and already configure the tra-node as the gateway.\n\n```\n+------------------------+                          +------------------------+\n|                   LAN1 |                          | LAN2                   |\n|    +------------+      |      +------------+      |      +------------+    |\n|    +            +      |      +            +      |      +            +    |\n|    +  DEVICE-1  + -----|----- +  TRA-NODE  + -----|----- +  DEVICE-2  +    |\n|    +            +      |      +            +      |      +            +    |\n|    +------------+      |      +------------+      |      +------------+    |\n|                        |                          |                        |\n+------------------------+                          +------------------------+\n```\n\nWe expected that `DEVICE-1` and `DEVICE-2` will communicate through `TRA-NODE`. `TRA-NODE` will sniff two interface which connect `DEVICE-1` and `DEVICE-2`.\n\nSince `TRA-NODE` is play as gateway, we expected that the identification value of received packet of `TRA-NODE` will as same as transmit packet from `TRA-NODE`. Therefore, we can check every packet `TRA-NODE` received is transmit successfully or not.\n\nIt's good to develop TRA with this environment to test TRA is work or not.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fntut-xuan%2Ftra","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fntut-xuan%2Ftra","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fntut-xuan%2Ftra/lists"}