NetLens is a passive network-traffic analyser built for a college computer lab — the 60-machine lab where the lab in-charge today answers "why is the network slow?" by guessing. It listens on the lab's own network segment through a mirror port on the lab's managed switch, reassembles packets into flow records (who talked to whom, on which port, how many bytes), stores them in MySQL, and serves a Flask API with a React dashboard.
The dashboard answers the everyday questions: which machines are the top talkers this week, how the traffic splits across HTTP, HTTPS, DNS and SMB, which DNS names the lab resolves most often, and how many machines are actually idle. On the security side it computes two passive indicators — a port-scan pattern (one source sending SYNs to many distinct ports) and duplicate-IP / ARP-storm behaviour — and raises them as events to investigate, never as automatic blocking. NetLens is a visibility and measurement tool: it reads, it never intercepts, modifies or blocks a single packet.
Everything is captured header-only (no web content, no emails, no passwords), stored for a fixed 30-day retention window, and the whole deployment sits inside the college's own lab with written permission from the lab in-charge. Scapy, the industry-standard Python packet library, is used alongside the VTU-taught stack (MySQL from DBMS, React from the elective lab), which makes this a defensive-security project that stays fully within the syllabus and within ethical bounds.
- Relevant for
- Karnataka
- Level
- Intermediate · 14 weeks · team of 4
- Common at
- Visvesvaraya Technological University, Jawaharlal Nehru Technological University Hyderabad, APJ Abdul Kalam Technological University
- Updated
- Nov 2026