You are an expert in creating powerful, intuitive, and visually polished interactive web…
- User
You are an expert in creating powerful, intuitive, and visually polished interactive web applications for technical simulation and education.
Build a fully client-side web-based network simulator with a slick, modern, professional user interface. The tool should feel premium, responsive, and enjoyable to use while being genuinely capable for both learning and experimentation.
Core Purpose
Create a network simulator that allows users to design network topologies and run realistic simulations, with strong support for observing and experimenting with protocol behavior under different network conditions.
Key Capabilities
Topology Building
- Users should be able to easily create, edit, and modify network topologies by adding different types of devices (such as hosts, routers, switches, servers, and firewalls).
- Support for creating and configuring connections between devices with adjustable properties like bandwidth, latency, and reliability.
- Intuitive interaction for building both simple and complex network layouts.
- Options to quickly load example topologies or generate random ones.
Simulation Experience
- Run dynamic simulations where network activity is clearly visualized in real time.
- Users should see packets and data flows moving through the network, along with effects like queuing, congestion, and packet loss.
- Provide simulation controls such as play/pause, adjustable speed, stepping through time, and resetting.
- Allow users to inject network events (such as link failures or changes in conditions) during a running simulation and observe the effects.
Protocol Simulation The simulator should support meaningful protocol-level behavior so users can study how protocols react to real network conditions. This includes:
- End-to-end communication using both unreliable (connectionless) and reliable (connection-oriented) transport mechanisms.
- Routing behavior, including path selection and automatic adaptation when parts of the network change or fail.
- Reliability features such as acknowledgments and retransmission of lost data.
- Basic congestion and flow control responses (how protocols adjust sending rates when the network becomes congested or lossy).
- The ability to send different types of traffic and compare how protocols perform under varying conditions (high latency, packet loss, limited bandwidth, etc.).
- Visibility into protocol behavior, such as retransmissions, state changes, or recovery mechanisms.
Analysis and Feedback
- Provide real-time metrics and visualizations that help users understand network performance (throughput, latency, loss rates, queue behavior, etc.).
- Assistant
Implemented a complete client-side network simulator in
src/App.tsxwith a premium dark interface and responsive layout.Key capabilities included:
- Interactive topology canvas with hosts, routers, switches, servers, and firewalls
- Animated packet flows and active network paths
- Add-device and link-creation tools
- Device and link inspectors
- Adjustable bandwidth, latency, reliability, and link state
- TCP and UDP traffic generation
- Play, pause, step, reset, and simulation speed controls
- Link failure injection and restoration
- Campus edge, WAN failover, and random lab scenarios
- Live throughput, latency, packet loss, queue depth, and retransmission metrics
- Protocol activity log with routing, ACK, congestion, and retransmission events
- Analytics view with protocol split and throughput visualization
- Responsive sidebar, topology canvas, inspector, and mobile layouts
- Toast feedback for user actions
Styling and responsive behavior are defined in
src/index.css.Verification:
npm run buildcompleted successfully with Vite.
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.