Skip to content

Willie-Conway/NetSim-Pro-Network-Simulation-Lab

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

3 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

🌐 NetSim Pro β€” Network Simulation Lab

alt text

NetSim Pro HTML5 CSS3 JavaScript Networking


πŸ“‹ Repository Info

About 🌐

NetSim Pro is a comprehensive, browser-based network simulation and learning platform that brings together five critical networking domains in one unified interface: Topology Designer, Protocols & Ports Reference, Packet Simulator, IP Analyzer, and Network Design Guide. Built with pure HTML/CSS/JavaScript, this educational tool allows networking students, IT professionals, and engineers to design networks, simulate packet flows, explore protocols, analyze IP addressing, and follow a structured design guide β€” all in a safe, simulated environment. No actual network equipment required. πŸ”Œ


✨ Key Features

πŸŽ“ 5 Interactive Networking Modules

Module Focus Key Capabilities
01 β€” Topology Designer Network Design Drag-and-drop devices, connection wiring, auto-layout, packet animation, device info panel
02 β€” Protocols & Ports Protocol Reference 27+ protocols, layer-based filtering, search, modal with RFC details, example headers
03 β€” Packet Simulator Packet Flow Visual packet travel, OSI layer animation, protocol selection, burst mode, real-time logging
04 β€” IP Analyzer Addressing IP classification, CIDR subnet calculation, binary/hex conversion, range reference, subnet table
05 β€” Design Guide Methodology 7-step structured workflow, interactive checklists, progress tracking, best practices

πŸ“Š Module 01: Topology Designer β€” Network Design Canvas

Device Library πŸ–₯️

  • 7 device types with unique icons and colors:
    • Router (Cyan) β€” Network routing, gateway
    • Switch (Green) β€” LAN switching, VLANs
    • Firewall (Red) β€” Security policies, filtering
    • Server (Purple) β€” Applications, services
    • Desktop (Amber) β€” End-user workstations
    • Laptop (Amber) β€” Mobile endpoints
    • Cloud/Internet (Cyan) β€” External networks

Interactive Canvas 🎨

  • Drag-and-drop placement β€” intuitive device positioning
  • Grid background β€” alignment reference
  • Device movement β€” click and drag to reposition
  • Auto-layout β€” circular arrangement with one click
  • Right-click delete β€” quick removal

Connection Wiring πŸ”Œ

  • Wire Tool mode β€” toggle to connect devices
  • Click-to-connect β€” select first device, then second
  • Visual connections β€” lines between devices
  • No duplicate connections β€” prevents redundant links

Device Information πŸ“‹

  • Click any device to display:
    • Device name and type
    • IP address (auto-assigned)
    • MAC address
    • Connection count
    • Status (Online)

Packet Animation πŸ“¦

  • Test packet β€” animated ping between first and last device
  • Visual travel β€” glowing dot moves across connections
  • Real-time feedback β€” toast notifications

alt text


πŸ“‘ Module 02: Protocols & Ports β€” Comprehensive Reference

Protocol Coverage πŸ“š

Category Protocols
Application HTTP, HTTPS, DNS, DHCP, FTP, SSH, SMTP, IMAP, SNMP, LDAP, NTP
Transport TCP, UDP
Network IP, ICMP
Link ARP

Protocol Details πŸ”

  • Port numbers β€” standard IANA assignments
  • Transport protocol β€” TCP/UDP identification
  • OSI layer classification β€” Application/Transport/Network/Link
  • Detailed descriptions β€” purpose and functionality
  • Example headers β€” packet structure visualization
  • RFC references β€” official standards documentation
  • Handshake processes β€” connection establishment flows
  • Security considerations β€” vulnerabilities and mitigations
  • Common use cases β€” real-world applications

Search & Filter πŸ”Ž

  • Real-time search β€” by protocol name, port, keyword
  • Layer filtering β€” All/Application/Transport/Network/Link
  • Protocol tags β€” quick identification (web, encrypted, DNS, etc.)

Interactive Modal πŸ“±

  • Click any protocol card to open detailed modal
  • Tabular metadata β€” RFC, handshake, security, use cases
  • Code blocks β€” example headers and packet structures
  • Close on backdrop β€” click outside to dismiss

alt text


πŸ“¦ Module 03: Packet Simulator β€” Visual Packet Flow

Network Topology 🌍

  • 5-node network path:
    • Client (192.168.1.10) β€” Amber
    • Gateway (192.168.1.1) β€” Cyan
    • Firewall (10.0.0.1) β€” Red
    • Internet Router (203.0.113.1) β€” Cyan
    • Server (93.184.216.34) β€” Purple

Packet Parameters βš™οΈ

Parameter Options
Source Desktop (192.168.1.10), Laptop (192.168.1.20), Server (10.0.0.5)
Destination DNS (8.8.8.8), Web Server (93.184.216.34), Gateway, Internal Server
Protocol HTTP, HTTPS, DNS, SSH, SMTP, FTP, ICMP
Payload Size 64–65,535 bytes
TTL 1–255

Visual Animation 🎬

  • Packet travel β€” glowing dot traverses network path
  • Color-coded β€” protocol-specific colors
  • Sequential animation β€” hop-by-hop visualization
  • Burst mode β€” 10 packets in rapid succession

OSI Layer Traversal 🧱

  • 7-layer visualization β€” Physical to Application
  • Real-time highlighting β€” active layer illuminates during traversal
  • Protocol-specific layers β€” dynamic protocol mapping:
    • HTTP β€” Application (HTTP) β†’ Transport (TCP) β†’ Network (IP) β†’ Link (Ethernet)
    • HTTPS β€” Application (HTTPS) β†’ TLS β†’ Transport (TCP)
    • DNS β€” Application (DNS) β†’ Transport (UDP) β†’ Network (IP)
    • ICMP β€” Network (ICMP+IP) β†’ Link (Ethernet)

Packet Log πŸ“‹

  • Timestamped entries β€” HH:MM:SS.mmm format
  • Source β†’ Destination β€” directional arrows
  • Protocol badge β€” color-coded identification
  • Payload size and TTL β€” packet metadata
  • Auto-scroll β€” latest entries always visible

alt text


πŸ” Module 04: IP Analyzer β€” Address Analysis & Subnet Calculation

IP Classification 🏷️

Type Detection Color
Private 10.0.0.0/8, 172.16.0.0/12, 192.168.0.0/16 🟒 Green
Public All other global unicast 🟑 Amber
Loopback 127.0.0.0/8 🟑 Amber
Link-local 169.254.0.0/16 🟑 Amber
Multicast 224.0.0.0/4 πŸ”΅ Cyan
Reserved 0.0.0.0/8, 240.0.0.0/4 πŸ”΄ Red

CIDR Subnet Calculator πŸ“

  • Network address β€” subnet identifier
  • Broadcast address β€” subnet-wide communication
  • Subnet mask β€” dotted decimal notation
  • Usable hosts β€” total hosts minus network/broadcast
  • Decimal representation β€” integer conversion
  • Hexadecimal β€” 8-digit hex format

Binary Display πŸ’»

  • Octet breakdown β€” 8-bit per octet visualization
  • Bit highlighting β€” 1 (cyan) / 0 (dim)
  • Period separators β€” dotted decimal grouping
  • Color coding β€” visual binary representation

IP Range Reference πŸ“–

  • 11 common ranges including:
    • RFC 1918 private spaces (10.0.0.0/8, 172.16.0.0/12, 192.168.0.0/16)
    • Loopback (127.0.0.0/8)
    • APIPA (169.254.0.0/16)
    • Documentation ranges (192.0.2.0/24)
    • Multicast (224.0.0.0/4)
  • Click to auto-fill β€” instant analysis

Subnet Reference Table πŸ“Š

CIDR Subnet Mask Usable Hosts Use Case
/8 255.0.0.0 16,777,214 Class A
/16 255.255.0.0 65,534 Class B
/24 255.255.255.0 254 Standard LAN
/25 255.255.255.128 126 Small subnet
/26 255.255.255.192 62 Smaller subnet
/27 255.255.255.224 30 Very small
/28 255.255.255.240 14 Small office
/29 255.255.255.248 6 Point-to-point+
/30 255.255.255.252 2 Point-to-point
/32 255.255.255.255 1 Host route

Random IP Generator 🎲

  • One-click random IP β€” test various scenarios
  • Template library β€” private, public, loopback, reserved

alt text


πŸ“˜ Module 05: Design Guide β€” Network Design Methodology

7-Step Structured Workflow πŸ“

Step Title Key Activities
1 Gather Business Requirements Identify needs, budget, constraints, user count, performance requirements
2 Assess Current Infrastructure Diagram existing devices, document technologies, audit bandwidth
3 Define Network Goals Performance benchmarks, security requirements, redundancy, scalability
4 Select Devices & Technologies Choose hardware, wireless strategy, VLAN scheme, cabling standards
5 Design the Physical Network Logical topology, cable routes, IP addressing, VLAN structure, power redundancy
6 Develop Implementation Plan Phased rollout, team assignments, rollback scenarios, maintenance windows
7 Document the Network Design Store diagrams, document IPs/MACs, record configurations, create runbooks

Interactive Features βœ…

  • Expandable steps β€” click headers to reveal content
  • Task checklists β€” check off completed items
  • Progress tracking β€” step status (Pending/In Progress/Complete)
  • Auto-advance β€” completing a step unlocks the next
  • Reopen functionality β€” revisit completed steps

Content Richness πŸ“š

  • Detailed guidance β€” best practices for each phase
  • Real-world considerations β€” production network requirements
  • Security-focused β€” integrated throughout the design process

alt text


🎨 Design & Aesthetics

Network Lab Aesthetic πŸ–₯️

  • Dark background (#080c18) β€” professional lab environment
  • Cyan accent (#00d4ff) β€” network devices, protocols, primary actions
  • Green (#00ff88) β€” switches, success states
  • Red (#ff4466) β€” firewalls, alerts
  • Purple (#a855f7) β€” servers
  • Amber (#ffaa00) β€” end-user devices

Typography ✍️

  • JetBrains Mono β€” Monospace for code, IPs, packet data
  • Space Grotesk β€” Sans-serif for UI and labels

Visual Elements πŸ–ΌοΈ

  • Live indicator β€” pulsing green dot in header
  • Toast notifications β€” user feedback with color coding
  • Progress bars β€” step completion, scan progress
  • Color-coded badges β€” protocol layers, severity indicators
  • Hover tooltips β€” IP pool cells, device info
  • Animated packet travel β€” real-time simulation
  • Grid background β€” topology designer reference

πŸ› οΈ Technical Implementation

Tech Stack πŸ₯ž

  • Pure HTML5/CSS3/JavaScript β€” No frameworks or dependencies
  • Canvas API β€” Topology designer, packet animation
  • Flexbox/Grid β€” Responsive layout across all tabs
  • Custom fonts β€” JetBrains Mono, Space Grotesk

Core Components 🧩

Component Purpose Features
Topology Canvas Network design Device placement, connections, auto-layout
Protocol Grid Reference library 27+ protocols, search, filtering
Packet Simulator Flow visualization OSI traversal, burst mode, logging
IP Analyzer Address analysis CIDR calc, binary display, reference tables
Design Guide Methodology 7-step workflow, interactive checklists

Key Functions πŸ”§

// Topology Designer
drawTopo()                 // Render canvas with devices and connections
autoLayout()               // Circular arrangement of all devices
startPacketAnim()          // Animate packet between devices
toggleConnectMode()        // Enable/disable wiring tool
showDeviceInfo()           // Display device properties panel

// Protocols & Ports
renderProtocols()          // Render protocol grid with filtering
showProtoModal()           // Display detailed protocol information
filterProtocols()          // Real-time search filtering
setLayer()                 // Filter by OSI layer

// Packet Simulator
sendPacket()               // Send single packet with animation
sendBurst()                // Send 10 packets sequentially
animateOSI()               // Highlight OSI layers during traversal
logPacket()                // Add entry to packet log

// IP Analyzer
analyzeIP()                // Parse IP/CIDR and calculate results
classifyIP()               // Determine IP type (private/public/etc.)
randomIP()                 // Generate random IP address
toBinary()                 // Convert octet to binary string

// Design Guide
renderGuide()              // Render interactive design steps
toggleStep()               // Expand/collapse step content
toggleCheck()              // Toggle checklist item
completeStep()             // Mark step as complete

πŸŽ₯ Video Demo Script (60-75 seconds)

Time Module Scene Action
0:00 Topology Canvas Drag devices (Router, Switch, Firewall) onto canvas
0:05 Topology Wiring Toggle Wire Tool β†’ connect Router β†’ Switch β†’ Firewall
0:10 Topology Packet Click "Send Test Packet" β†’ glowing dot animates
0:15 Protocols Search Type "DNS" β†’ filter results β†’ click card
0:20 Protocols Modal Show DNS details (port 53, RFC 1034, example header)
0:25 Packet Simulator Select HTTP β†’ Click "Send Packet"
0:30 Packet Animation Packet travels Client→Gateway→Firewall→Router→Server
0:35 Packet OSI OSI layers highlight sequentially (7β†’1)
0:40 IP Analyzer Enter "192.168.1.100/24" β†’ Analyze
0:45 IP Results Shows: Private IP, Class C, subnet mask, binary display
0:50 IP Reference Click "10.0.0.0/8" range β†’ auto-fills β†’ Analyze
0:55 Guide Steps Expand Step 3 (Define Goals) β†’ check off tasks
1:00 Guide Complete Click "Mark Complete" β†’ unlocks Step 4
1:05 All Navigation Tab through 5 modules
1:10 Toast Feedback Success message appears

🚦 Performance

  • Load Time: < 1 second (no external dependencies)
  • Memory Usage: < 60 MB
  • Animation: Canvas-based packet animation (60fps)
  • Real-time Updates: Protocol search filtering (instant)

πŸ›‘οΈ Educational Value

NetSim Pro is designed for:

  • CCNA candidates β€” practice subnetting, protocol knowledge, network design
  • Network+ students β€” understand OSI model, IP addressing, device roles
  • Networking professionals β€” refresh protocol details, design methodologies
  • IT instructors β€” demonstrate concepts with interactive visuals

πŸ“ License

MIT License β€” see LICENSE file for details.


πŸ™ Acknowledgments

  • Cisco Networking Academy β€” CCNA curriculum inspiration
  • IETF RFCs β€” Protocol specifications and standards
  • Wireshark β€” Packet dissection methodology
  • Subnet Calculators β€” CIDR calculation references

πŸ“§ Contact


🏁 Future Enhancements

  • Add more protocols (BGP, OSPF, RIP, etc.)
  • Implement VLAN configuration module
  • Add routing table simulation
  • Include wireless networking (802.11)
  • Add network security ACL configuration
  • Implement IPv6 addressing support
  • Add network performance monitoring
  • Include subnetting practice quiz
  • Add export/import for topology designs
  • Implement real-time collaboration

NetSim Pro is more than a simulator β€” it's your interactive networking lab. πŸš€

Updated: March 2026

About

NetSim Pro is a comprehensive, browser-based network simulation and learning platform that brings together five critical networking domains in one unified interface: Topology Designer, Protocols & Ports Reference, Packet Simulator, IP Analyzer, and Network Design Guide. Built with pure HTML/CSS/JavaScript, this educational tool allows networkingπŸ”Œ.

Topics

Resources

License

Stars

Watchers

Forks

Contributors

Languages