API & MCP

Everything a person can do on Signalhouse Route Lookup & Packet Path Simulator (longest prefix match), a program or AI agent can do with the same inputs and get the identical result.

HTTP API

Signalhouse Route Lookup & Packet Path Simulator (longest prefix match)

Paste a routing table (connected, static, null, OSPF, BGP … routes with next hops, administrative distances and metrics) and destination addresses: the simulator builds the forwarding table like a router — best distance, then metric, equal-cost paths, recursive next hops, interfaces that are down — and explains for every destination which route wins by longest prefix match and why the others lose. With a Signalhouse Network lab topology it walks a packet hop by hop and finds blackholes, forwarding loops, MTU drops and asymmetric return paths.

Inputs of Signalhouse Route Lookup & Packet Path Simulator (longest prefix match)
FieldTypeDefaultDescription
routestable[{"prefix":"0.0.0.0/0","nextHop":"203.0.113.1","protocol":"static","name":"DefauRouting table. One route per row. Protocol: connected, local, static, blackhole (null route), ospf, rip, eigrp, isis, ebgp or ibgp. Leave distance empty for the default (connected 0, static 1, eBGP 20, OSPF 110, RIP 120, iBGP 200).
destinationstextarea"10.1.2.3\n10.200.0.1\n198.51.100.7"Destinations (one per line)
interfacesDowntext—Interfaces that are down (optional). Comma-separated, e.g. eth1. Their connected routes disappear and routes through them stop working.
topologytextarea—Network lab topology JSON (optional). Instead of a table: a topology exported from the Signalhouse Network lab ({ nodes, links }). Then name the start device and the destination below.
fromtext—Packet from (device id or name)
totext—Packet to (address or device)
sizeinteger1500Packet size
dfbooleantrue“Don’t Fragment” set (IPv4)

Example request

Longest prefix match, ECMP, a floating backup and recursive next hops

curl -X POST https://signalhouseroutelookup.usefulweb.site/api/v1/calculate -H 'content-type: application/json' -d '{"routes":[{"prefix":"0.0.0.0/0","nextHop":"203.0.113.1","protocol":"static","name":"Default route"},{"prefix":"203.0.113.0/24","interface":"eth0","protocol":"connected"},{"prefix":"192.0.2.0/24","interface":"eth1","protocol":"connected"},{"prefix":"10.0.0.0/8","nextHop":"192.0.2.1","protocol":"ospf","metric":20},{"prefix":"10.0.0.0/8","nextHop":"192.0.2.5","protocol":"ospf","metric":20},{"prefix":"10.1.0.0/16","nextHop":"192.0.2.9","protocol":"static"},{"prefix":"10.1.0.0/16","nextHop":"192.0.2.1","protocol":"ospf","metric":5},{"prefix":"10.1.2.0/24","nextHop":"10.1.255.1","protocol":"static","name":"Recursive next hop"}],"destinations":"10.1.2.3\n10.200.0.1\n198.51.100.7"}'

Every result contains

inputs (normalised, defaults applied), summary, result (validated against the published schema), units, assumptions, sources, warnings, computedAt and links.

MCP (Model Context Protocol)

{
  "mcpServers": {
    "signalhouse-route-lookup": { "type": "http", "url": "https://signalhouseroutelookup.usefulweb.site/mcp" }
  }
}