Skip to content
RackTraceDocs

Network simulation

On this page

“What happens if …”: a port gets other VLANs, a switch fails, a firewall rule is added, or forty cameras start streaming. The simulation answers from what is documented: the cabling and port speeds, VLANs and port profiles, the network plan (gateways, routes, firewall rules, port forwards), plus the current load from UniFi when it is available.

A scenario is a sandbox. Nothing you change in it goes to the documentation or to the network. The results are decision support for planning, not a packet-level simulation: every run says on what it rests (see What a result rests on).

The simulation workspace with a scenario, the network map and the results
Simulate from a workstation's port: a check to the internet and 1 Gbit/s of traffic, its load and way on the map.

The workspace#

Open Network → Simulation. Everything is on one screen:

  • Top bar: the scenario (unsaved, or one you saved), Save, New, whether the results are Up to date, Run, and the settings (the key icon).
  • Left: the scenario, in three parts: Changes, Checks and Traffic. Options sits underneath.
  • Middle: the network map, with a layer to show (see The map).
  • Right: the inspector. It shows what you clicked: a check, a device, a link, a change or traffic. With nothing selected it lists what needs attention.
  • Bottom: the results, in tabs. The arrow at the right of the tabs gives them more room.

Each change runs the scenario again by itself. Run runs it once more, for example after a colleague changed the documentation. The scenario stays while the browser tab is open; save it to keep it.

Changes#

Click Add under Changes and choose what changes:

ChangeWhat it does
Port configurationGives a port another port profile or its own VLANs (untagged and tagged, or All others tagged), or switches the port off or on.
New cablePatches or lays a cable between two free ports, for example a backup uplink. It becomes part of the network: spanning tree, paths and VLANs take it into account. Choose the Cable type and the Length (m).
Device failsA switch, gateway or other device goes down.
Link failsA cable, or a LAG between two network devices, breaks.
Internet connection failsA WAN connection of a gateway goes down. The next connection documented in the network plan takes over with its own speed, such as a 4G backup. When none is left, there is no internet.
VLAN gatewayRoutes a VLAN on another device, for example a layer-3 switch.
Static routeAdds a route, or switches a documented route off.
Firewall ruleAdds a rule, first or last, or switches a documented rule off.
Broadcast stormA faulty device on a port floods its VLAN. Set the Rate and the Storm control percentage (0 = off).
Loop cableSomeone patches a cable between two ports, with Spanning tree on (RSTP, the UniFi default) or off.
Powered devicesMore cameras, access points or phones on a switch: How many and the Watts each. The PoE tab shows whether its budget holds.
QoSSwitches calls and video first on or off for this scenario, whatever the settings say.
Traffic growsThe existing traffic grows (or shrinks) by a percentage, for example +50% for a year of growth.

You can also start from the map: click a device or a link and use Let it fail, or Change… next to one of the link's ports. On a gateway, Its internet fails takes away all of its internet connections.

The switch on a change takes it out of the run without removing it, so you can compare with and without it. The ✕ removes it.

Checks: what must work, and what must not#

A check follows one packet through every layer and says where it stops.

  1. Click Add under Checks.
  2. Choose From: a Device, a Port, an IP address, a VLAN or a WiFi network.
  3. Choose To: the Internet, a Device, a Port, an IP address, a VLAN or Its gateway.
  4. Choose the Protocol: one from the list (HTTPS, DNS, SMB, RDP, VoIP and more, plus your own), or Other… with a protocol and a port.
  5. Set the Expectation: Must get through, Must not get through, or Only show the way. Then click Add check.

Each check is traced without and with the changes:

  • L1, cable: the path through patch panels and outlets, and the speed. A link that UniFi reports slower than both ends can do (100 Mbit/s on a gigabit link) is a warning: a bad cable or port, or a fixed speed. Parallel cables between two switches count as one LAG when their ports are in one; when the port configuration is documented and they are not, spanning tree blocks all but one.
  • L2, VLAN: on both ends of each link, whether the VLAN is carried, untagged or tagged, and whether both ends agree.
  • L3, routing: the IP address and the gateway of the VLAN, static routes (the most specific wins), blackhole routes, site-to-site VPN, and the WAN with NAT.
  • L4, firewall: the rules of the gateway, read per platform (see Firewall), and port forwards for traffic that comes in from the internet.

A check gets through, is blocked, or probably gets through: something on the way is not documented. RackTrace never takes something that isn't documented as allowed. In the list a check shows passes, fails, or breaks (it passed without the changes).

Click a check to see each step in the inspector and its way on the map, with STOPS HERE where it stops. A step that stops at a port offers Change this port in the scenario…. A step at a firewall rule offers Switch this rule off in the scenario.

Traffic#

Traffic puts load on the links.

  1. Click Add under Traffic.
  2. Choose From, a port or a device, and To: the internet, its gateway, a device or a port.
  3. Choose the Protocol. It sets how the traffic behaves and its usual rate: a backup takes what it can get, a call or a camera is constant.
  4. Set the Rate (Mbit/s per session) (or click 100M, 1G, 10G), the number of Sessions and the Direction.

Traffic is traced first, and traffic that doesn't get through carries nothing. The rest shares the links: what each flow gets, the bottleneck, the extra latency and the loss. When the protocol has needs (a call, video), the list also shows its quality, good, at risk or poor, an estimate of latency, jitter and loss against what the protocol needs. Click the traffic to see the figures per direction, and its way on the map.

A few things count as links of their own:

  • An access point: traffic from or to an access point is its WiFi clients together. They share its radio, both directions at once (WiFi per access point in the settings).
  • Site-to-site VPN: traffic to another site that goes through a tunnel uses the upload of one WAN and the download of the other, and at most the Site-to-site VPN speed when it is set.
  • QoS: with calls and video first on, a call does not wait behind a full link: its latency and jitter stay low, while a backup gets what is left.

Existing traffic#

The traffic you add comes on top of the traffic that is already there. Choose it under Existing traffic at the top of Traffic:

  • Now — as UniFi reports it: the load on every port at the last sync.
  • The busiest hour of the last 7 days: the real traffic of that hour, on every link.
  • The busiest hour of a day: one of the last 7 days.
  • None: only the traffic you add.

RackTrace keeps the traffic of every port per hour from each sync of UniFi, Meraki or an SNMP scan, for 35 days. The history starts when RackTrace starts syncing, so right after linking a source only Now is there. With an hour from the history and no traffic of your own, the map shows that hour's load and the Links tab lists the fullest links.

Suggested scenarios#

Suggestions in the top bar, and the empty workspace, offer ready-made scenarios made from your network and its history:

  • The busiest hour: the real traffic of the busiest hour. Which links get full?
  • A weak spot fails: the link or switch whose failure cuts off the most devices, at the busiest hour.
  • The internet of a gateway fails: the failover takes over when one is documented, with a check from a device at that site.
  • 50% more traffic: at the busiest hour.
  • A guest network stays apart: checks that it reaches the internet and no other VLAN — a good scenario to watch.

A suggestion opens as a new scenario: change it, then save it.

Options#

  • Include planned cables: simulate the planned situation.
  • Links that UniFi reports as down are down.

The map#

Choose a layer above the map:

  • Network: the switches, gateways and links. Failed devices are faded with a ✕, and switches cut off from the gateway have a red dashed outline. Above it is one Internet: every site with an internet connection of its own is connected to it with its WAN line and speed. A site that goes through another site (see Sites and their internet) has a line to that site instead: purple and dashed for a VPN, teal for MPLS, fibre or a leased line. A site-to-site VPN of the network plan is a purple dashed line between the gateways, thicker when traffic of the scenario goes through it.
  • VLAN: one VLAN at a time. Each link shows U (untagged) or T (tagged), grey when the VLAN isn't carried, ? when one end isn't documented, and ! when the two ends don't agree. The gateway of the VLAN is marked.
  • Traffic: the load. Each link is a pipe, and wider means faster. Traffic moves in lanes that keep right, one per direction; the thicker the lane, the fuller the link. Colours: green < 60 % orange 60–90 % red ≥ 90 %, and dark red when more is asked than fits. The bottleneck pulses with a label such as 200 % asked · +8 ms. A switch flooded by a storm glows, and links blocked by spanning tree are thin grey dashed lines.

A selected check or flow of traffic replaces the layer with its own way; the ✕ next to its name goes back. Click a device or a link to open it in the inspector. Pause stops the animation, and Full screen gives the map the whole window.

After a run, the rack editor's Simulation button colours the cables by load and lets the traffic move along them.

Results#

TabWhat it shows
OverviewFour tiles (checks that pass, devices that lose the network, devices on another VLAN, traffic that gets through) and one line per finding.
ChecksEach check without and with the changes, and where it stops.
ImpactEach device traced to its gateway without and with the changes: who loses the network, who ends up on another VLAN, who gets it back.
SegmentationA matrix from each VLAN to each VLAN and the internet, for one protocol or any. A cell that the scenario changes is marked. Click a cell to add it as a check.
FirewallThe rules of each gateway as the simulation reads them.
TrafficPer flow and direction: Wanted, Gets, without the changes, Limited by, Latency, Loss and Quality.
LinksThe load per link and direction.
PoEPer switch: its PoE budget, what its powered devices draw and what the scenario adds (see below).
Weak spotsThe switches and links whose failure cuts off the most devices, taking redundant links into account. Add as change puts that failure in the scenario.
RunThe model version, the time, the fingerprint and the existing traffic of this run, its discovery sources with their last sync, and the earlier runs of the tenant (see below).

What a result rests on#

Above the results, every run shows on what it rests:

  • Model — the version of the simulation engine. It goes up whenever a change to the engine changes an outcome, so two results of different model versions may differ for that reason alone.
  • Fingerprint — a code made from the whole outcome. The same scenario on the same network, with the same data from the sources and the same model, always gives the same fingerprint.
  • Sources — each discovery source of the tenant with the freshness of its last report, as on the device page: Observed 12 min ago, Observed 7 h ago — old (older than the threshold of its kind, 6 hours) or Not observed yet (never synced: unknown); the line turns amber when one is not fresh. A Simulated label opens the line. Old data is unknown, not down: a port that an old source reported down is not taken as down.
  • Existing traffic — now (and how old the live load is), an hour from the history, or none.

The Overview tab ends with one block Assumptions and uncertainties: everything the run assumed instead of knowing — an old source, no load, a port speed or link aggregation that is not documented, an internet speed that is not set, an estimated PoE draw (13 W per access point, 7 W per camera), and every step of a trace that is not documented.

A run is kept with its model version, fingerprint, sources and assumptions when you ask for it: you click Run, save the scenario, click Run again or make a report with Report. The runs that follow every edit are not kept, and only users who may change the documentation keep runs; the line above the results then says kept. A tenant keeps its last 100 runs. The Run tab lists them, with who ran them for users who may change the documentation. Run again opens what a run ran as a new scenario and runs it; the line above the results then says Same outcome or Another outcome — when the network, its sources or the model changed since.

PoE#

The PoE tab shows, per switch, whether its PoE budget holds:

  • Budget: read from the notes of the switch or of its model, as PoE budget 370 W. The device library has it for the UniFi switches; for another switch, type it into its notes.
  • Draws now: what its access points and cameras draw. When discovery reports the watts per port, those are used; otherwise RackTrace estimates about 13 W for an access point and 7 W for a camera (est.).
  • Added: what the Powered devices changes of the scenario add.

Over budget, the last ports get no power: those devices go down. The overview and the inspector of the switch show it too.

Firewall#

The firewall step reads the rules from the network plan. Rules found by discovery from UniFi, FortiGate and Meraki carry their exact match (addresses, groups, services). Rules you typed in are read from their text, and a rule that can't be read counts as probably.

What applies when no rule matches depends on the platform: UniFi zone-based firewall and classic rules each have their own defaults, a FortiGate denies, and Meraki allows. A gateway of unknown make gives probably. VLANs set to isolated or no internet in the network plan count as well.

The Firewall tab lists each gateway with its platform and rules, and what stands out, such as a rule that is never reached. Switch off takes a rule out in the scenario only.

Settings#

The key icon in the top bar opens the settings. They are the same for everyone in the tenant.

  • Per gateway: the internet speed (Download and Upload, what the provider delivers) and the Routing / IPS throughput, what the gateway routes with threat management on.
  • Latency of the internet itself (ms): added to traffic that leaves through the WAN, for the quality of calls and video.
  • Buffer per port (KB): a full link adds buffer ÷ speed of latency (1 MB at 1 Gbit/s ≈ 8 ms).
  • Existing traffic: Mbit/s per session: how much the current UniFi load competes with new traffic.
  • WiFi per access point (Mbit/s): what one access point carries for all its clients together (600 when empty).
  • Site-to-site VPN (Mbit/s): the most a tunnel carries; empty, the WANs of both sites decide.
  • Calls and video first (QoS): voice and video do not queue behind a full link.
  • Internet of this site (with more than one site): Its own internet connection, or Through … another site. Then choose the Link to that site — a VPN on its own internet line, MPLS, its own fibre or a leased line — and its speed. See Sites and their internet.
  • Your own protocols: an application of your own, such as an ERP client or a camera system. Give it a name, protocol and ports, how it behaves (adapts, constant or small), its rate and what it needs (latency, jitter, loss). It shows up in the protocol lists next to the built-in ones.

Sites and their internet#

Customers with more than one site have their internet in one of two ways, and the simulation follows what you set per site in the settings:

  • Every site its own internet, often with a site-to-site VPN between them. Traffic to the internet leaves at the site itself; traffic to the other site goes through the tunnel and uses the upload of one line and the download of the other.
  • One internet for every site: the branch offices go through the central site. Over a VPN, their traffic goes up their own line, into the central site and out through its line. Over MPLS, fibre or a leased line, it uses that link and its speed. Traffic between the sites uses the same link, also when no VPN is documented in the network plan.

When the central site's internet fails, the sites that go through it lose it too.

Saved scenarios#

Save as… gives the scenario a name. The list in the top bar opens another one. Save keeps the changes to an open scenario, the copy icon saves it as a new one, and the bin deletes it. Saved scenarios belong to the tenant, so colleagues see them too. Viewers can run scenarios but not save them.

Scenarios of the earlier traffic simulation open as well. Their flows, storm, loop and failures become traffic and changes.

Watching a scenario#

Save a scenario with checks, then click Watch in the top bar. From then on RackTrace runs its checks again by itself:

  • after every change in the documentation of the tenant and every sync of a discovery source (once things have been quiet for a minute), and at least once a day;
  • against the network as it is documented: the changes of the scenario are left out, so the checks guard the real network.

The last run of a watched scenario is kept with it, with its model version, fingerprint, sources and assumptions.

A check that fails becomes a security alert: High when something that must not get through gets through, Medium when something that must get through is blocked. When the check passes again, the alert closes by itself. The button shows the last result, such as Watched · 1 fails; hover it for the time. Open the scenario on the alert brings you back to it.

Only checks set to Must get through or Must not get through are watched. Click Watched again to stop; its open alerts are closed.

Report#

Report in the top bar opens the scenario as a document for a change proposal: what changes, the outcome, the network map (and the load when there is traffic), the checks without and with the changes, the impact per device, the traffic and the PoE, and on what it rests: the model version, the fingerprint, the sources and the assumptions. Print it, or choose Save as PDF in the print dialog.

Starting from a port#

Click Simulate next to a port in the rack editor's port panel, or in the port dialog on the device page. The simulation opens with a check from that port to the internet and 1 Gbit/s of traffic from it, and runs straight away. Anything already in the scenario is kept.

When a device or a connection fails#

What if it fails opens the simulation with a new scenario in which only that part fails, and runs it: who loses the network, and which traffic takes another way.

  • On the device page of a switch, gateway, server or other device with connections.
  • In the port dialog on the device page, for a connected port: its connection fails, with the whole link aggregation it belongs to.
  • On an incident page, What if this fails: the device of the check fails, or for a port check its connection.

An unsaved scenario that was open is replaced; a notice says so.

Something missing or not right? Let us know.