How ultraethernet/uet-htsim works
HTSIM is a discrete-event network simulator focused on evaluating congestion-control transports across configurable datacenter topologies and traffic scenarios. A typical run configures a transport-specific executable, builds topology and traffic inputs, then simulates packet delivery and records results. The graph preserves the documented scenario and analysis capability, as well as the event, packet, queue, and link layers. Edges cite README or source-index evidence; some runtime wiring is not established by the excerpts, so it is omitted.
Main entry points: main_uec.cpp UEC runner · main_ndp.cpp NDP runner · queue.h Packet queues · dragon_fly_topology.cpp Dragonfly topology
Components 21
Simulation runs
- NDP runner
htsim/sim/datacenter/main_ndp.cpp - UEC runner
htsim/sim/datacenter/main_uec.cpp - Run configuration
htsim/sim/config.h
Topology and traffic
- Traffic matrices
htsim/sim/datacenter/connection_matrix.cpp - Topology interface
htsim/sim/datacenter/topology.h - Fat-tree topology
htsim/sim/datacenter/fat_tree_topology.cpp - Dragonfly topology
htsim/sim/datacenter/dragon_fly_topology.cpp - Fat-tree switch
htsim/sim/datacenter/fat_tree_switch.cpp
Transport protocols
- NDP transport
htsim/sim/ndp.cpp - UEC transport
htsim/sim/uec.cpp
Simulation runtime
- Packets and routes
htsim/sim/network.h - Event scheduler
htsim/sim/eventlist.h - Packet queues
htsim/sim/queue.h - Composite queues
htsim/sim/compositequeue.h - Link delay
htsim/sim/pipe.h - Switch ports
htsim/sim/switch.h - Circular buffer
htsim/sim/circular_buffer.h
Logging and analysis
- Run log
htsim/sim/logfile.h - Metrics loggers
htsim/sim/loggers.h - Result analysis
htsim/sim/datacenter/validation/analysis_and_plotting.py
Other components
- Simulation user
Connections 29
- Simulation user → NDP runner: configures run
- Simulation user → UEC runner: configures run
- NDP runner → Run configuration: reads settings
htsim/sim/datacenter/main_ndp.cpp - UEC runner → Run configuration: reads settings
htsim/sim/datacenter/main_uec.cpp - NDP runner → Traffic matrices: loads flows
htsim/sim/datacenter/main_ndp.cpp - UEC runner → Traffic matrices: loads flows
htsim/sim/datacenter/main_uec.cpp - NDP runner → Fat-tree topology: configures topology
htsim/sim/datacenter/main_ndp.cpp - UEC runner → Fat-tree topology: configures topology
htsim/sim/datacenter/main_uec.cpp - NDP runner → NDP transport: runs transport
htsim/sim/datacenter/main_ndp.cpp - UEC runner → UEC transport: runs transport
htsim/sim/datacenter/main_uec.cpp - NDP runner → Event scheduler: schedules events
htsim/sim/datacenter/main_ndp.cpp - UEC runner → Event scheduler: schedules events
htsim/sim/datacenter/main_uec.cpp - NDP runner → Run log: creates output
htsim/sim/datacenter/main_ndp.cpp - UEC runner → Run log: creates output
htsim/sim/datacenter/main_uec.cpp - UEC runner → Metrics loggers: configures metrics
htsim/sim/datacenter/main_uec.cpp - Fat-tree topology → Topology interface: implements
htsim/sim/datacenter/fat_tree_topology.cpp - Dragonfly topology → Topology interface: implements
- Fat-tree topology → Fat-tree switch: creates switches
htsim/sim/datacenter/fat_tree_topology.cpp - Dragonfly topology → Packet queues: allocates queues
htsim/sim/datacenter/dragon_fly_topology.cpp - Dragonfly topology → Link delay: creates links
htsim/sim/datacenter/dragon_fly_topology.cpp - Dragonfly topology → Metrics loggers: registers queue metrics
htsim/sim/datacenter/dragon_fly_topology.cpp - NDP transport → Packets and routes: uses packet routes
htsim/sim/ndp.cpp - NDP transport → Packet queues: interacts with queues
htsim/sim/ndp.cpp - UEC transport → Circular buffer: buffers state
htsim/sim/uec.cpp - Composite queues → Packet queues: extends queue
htsim/sim/compositequeue.h - Packet queues → Circular buffer: buffers packets
htsim/sim/queue.h - Switch ports → Packet queues: groups ports
htsim/sim/switch.h - Run log → Event scheduler: uses event timing
htsim/sim/logfile.h - Result analysis → Simulation user: summarizes results