Talk at FRnOG 44 (translated)
An English translation of a talk based on the previous blog post.
This is the English translation of a short talk given at FRnOG 44 in Paris, November 2026.
It is based on a previous post.
What’s a good network diagnostic tool for autonomous LLM agents?
While working on CloudyWithAChanceOfLatency, I’ve had to ask myself this question that I believe will be of interest to some of you: what diagnostic tool to give an LLM for it to conduct investigations?
But before answering that question, I probably should address this one: “In 2026, is it still necessary to do any live diagnostic at all? Don’t we have everything in the monitoring already?”
Don’t we have enough observability that we no longer need investigation?
One good trend in the industry during the past decade has been to take instrumentation and observability seriously.
Logs, traces, exceptions and exemplars are everywhere. When is the last time you needed to run a debugger on a live system?
Networks are no different: These days, the networks we deal with are virtualised; it’s all software and is monitored as such.
Benchmarks exist that show agentic SREs are helpful already to absorb this enormous amount of data and help forming diagnostics.
The issue is: your monitored system can depend on another that’s outside of your perimeter, whose monitoring you can’t access. Most of us depend on external networks; that’s the nature of networking.
Your own network you monitor; others’, you investigate.
And classical network investigative tools are still the best way to see what’s happening out there.
Fortunately, LLMs are very skilled in running and reading the output of those tools.
There is an issue though.
An example of the shortcomings of LLMs live investigation
Picture yourself on call; it’s Saturday 2am and you’ve just been paged by your agent. It’s asking for the permission to run this:
from scapy.all import IP, UDP, Raw, send, AsyncSniffer
import time
SRC = "10.20.4.1" # spoofed OSAKA-CR-01 (Osaka side)
DST = "10.100.0.50" # a Tokyo-side address the packet returns to (you)
PORT = 9999
sizes = [100, 500, 1000, 1400, 1472]
results = {}
def handler(pkt):
if Raw in pkt:
send_ts = float(pkt[Raw].load.split(b"|")[0])
results.setdefault(len(pkt), []).append((pkt.time - send_ts) * 1000)
sniffer = AsyncSniffer(filter=f"src host {SRC} and udp port {PORT}", prn=handler, store=0)
sniffer.start()
for size in sizes:
for _ in range(50):
payload = f"{time.time():.6f}|".encode() + b"A" * (size - 20)
send(IP(src=SRC, dst=DST) / UDP(dport=PORT) / Raw(load=payload), verbose=0)
time.sleep(0.01)
time.sleep(1)
sniffer.stop()
for size, lats in sorted(results.items()):
print(f"{size}B: n={len(lats)} avg={sum(lats)/len(lats):.3f}ms max={max(lats):.3f}ms")
That’s a python program, probably setuid root since it has to forge packets.
Should you approve?
Should you audit that program? and Scapy? and all its dependencies?
Do you risk a DoS? Data exfiltration? Reputational damage?
LLMs are good at coding, and they get it right 99% of the time. The problem with vibe-coding live is of course the other 1%.
Vibe-netops are riskier than vibe-coding, because after your confidential
information ended up in a web forum or after the agent hacked the NSA you
cannot merely run git revert.
What do netops engineers do in practice?
I’ve asked around, and couldn’t get a definitive answer, but instead got a set of common sense measures to mitigate the risks:
- Don’t give the agent access to any unbounded tools;
- Require approval if you do;
- Ask another LLM for pre-approval;
- Surround the box the agent will have access to with a firewall to limit its reach;
- Also use a traffic shaper to slow it down;
- Record everything;
That’s the Swiss-cheese model of security, and that’s the best we have.
I have issues with some of those slices of cheese though: coding is one of the most impressive skills of an LLM so preventing it is like tying its hands behind its back.
I wanted to know what it costs in terms of efficiency.
The benchmark
There are many SRE benchmarks out there, but most of them are about DevOps; mostly reading logs and monitoring to figure out what’s wrong with K8s. A few benchmarks are about NetOps but they are built on top of Containerlab; giving a whole container to each simulated piece of equipment would be extremely limiting, so I wrote a simulator with the network library I had available.
I’ve built a network of about 100 nodes that I can run comfortably on my laptop, to simulate the corporate network of a fictitious company, and planted about 20 errors in it (misconfigurations and flawed equipment), and wrote the corresponding user tickets.

There are three sites of observations where the LLM can get a shell to run commands.
The commands that are available on those sites are configurable: on some runs of
the benchmark, candidates will have access only to busybox, which comes with
basic versions of mtr, ping, netcat… On other runs of the benchmark the
candidates will also have the real mtr and tcpdump; finally, on some runs
of the benchmark the candidates will have no other network investigation tool
than Scapy, the well known (by humans and LLM alike) tool to craft packets.
Example of a ticket
Here is one of the tickets that the candidate will have to investigate:
# Bug 4011 - ACME-ME San Jose very slow from New York, but ping is fine
Marcus Bell: Sending a message with a GIF (port 37337) takes ages.
Nothing fails, it's just slow.
NYC Helpdesk: ping to san-jose-me is perfect, no loss at all, about 50ms.
Marcus Bell: Any news? The helpdesk says ping is perfect,
but ping doesn't send GIFs.
To close a ticket, the candidate must submit an explanation, an estimated location (IP of the faulty equipment) and a justification, and will be graded based on the accuracy of this diagnostic, as well as how much time and how many tokens were needed to get there.
This one example is a simple case of bad policy routing, sending your application traffic toward an unreliable path while the ICMP goes direct.
It is already interesting to notice that even Opus, without the proper mtr,
gets it wrong 2 times out of 3:
| busybox | + mtr + tcpdump | Scapy |
|---|---|---|
| 2.5, 2.5, 7.25 | 8.25, 6.25 | 9.4, 6.5, 9.0 |
Note: all scores are on a 10-points scale, the higher the better.
What it costs to prevent code-mode for investigation
Here are the final results, using Opus 5.5:
| toolbox | Quality (min to max) | Time | I/O |
|---|---|---|---|
| busybox | 7.2 (6.5 to 8.1) | 3.7 | 4.6 |
| busybox + mtr + tcpdump | 8.6 (8.5 to 8.7) | 4.6 | 3.7 |
| Scapy | 9.2 (9.1 to 9.3) | 5.8 | 5.2 |
So I was right to worry.
I started to wonder: how to design a tool as efficient as Scapy, but safe?
I interviewed the LLMs on the finish line: “So, how did it go? Happy with the tools?”
The specifications
To my surprise, LLMs were not super happy with Scapy.
First of all, Scapy has basically only two modes of operation: fully automatic or fully manual. Either you have a stream and the OS deals with actual connection establishment, congestion control etc behind the scenes, or you drive the connection packet by packet yourself. A better tool would allow the agent to mix both: use the stream interface when it’s convenient yet see how the sausage is made and be able to insert a specific packet in the stream.
Then, it is hard to make accurate time measurements with Scapy: typically, incoming packets are timestamped by the driver but outgoing packets are timestamped by the program itself. Ideally, a better tool would automatically recapture outgoing traffic to have both incoming and outgoing packets accurately timestamped.
Finally, the kernel has to be explicitly told to not look at the generated packets and the responses coming back. Again, that’s something a dedicated tool could do automatically.
On top of better ergonomics, of course, I want safety:
-
the tool must be a domain specific language that can only send and receive packets, as opposed to a general programming language that can do anything (access files, call the operating system…)
-
the tool must not be able to exfiltrate data, ie. not a single byte of payload must depend on any byte read from the environment or sniffed traffic (the only two sources of external information once you have ruled out files).
-
the program must have its own firewall and traffic shaper and be forced to declare a budget of packets, time, connections, and the target IPs to make audit simpler (think AppArmor, but for network)
-
similarly, the program must have to declare any potentially dangerous feature it needs: IP spoofing, promiscuous mode, send tainted data.
-
Finally, LLMs like to learn by trial and error, which is a bit concerning for programs that communicate on the network; therefore, the program must be statically checked so that errors are detected before a single packet hits the wire. Ideally, error messages must guide the LLM toward the solution.
Crafty
Let me introduce Crafty, the tool that implements all of the above requirements.
Here is, for instance, the translation of the earlier Scapy program that Opus wrote after having read the 10k tokens of Crafty’s manual:
# Latency through the network, by size, of datagrams sent from a spoofed
# source to an address that routes them back to us.
src_ip = 10.20.4.1 # spoofed OSAKA-CR-01 (Osaka side)
BUDGET = {max_duration: 3m, max_packets: 1000}
PORTS = {udp: [[40000, 40010]]}
PERMISSIONS = {local_ips: [Accept(OWN_IP), Accept(10.20.4.1)],
remote_ips: [Accept(OWN_IP), Accept(10.20.4.1)]}
/IP!(src=src_ip, dst=OWN_IP)/UDP(dst=9999) {
latencies = map(key=0, default=[])
foreach size [100, 500, 1000, 1400, 1472] {
repeat count=50 every=10ms {
probe = ("${I}|" + string(#41 * size))[:size]
p = Raw(probe)
catch {
expect timeout=500ms /IP!(src == src_ip)/UDP(dst == 9999)/Raw(probe) {
latencies[size] += MATCH[Eth].ts - p[Eth].ts
}
}
}
}
report(latencies, name="latency")
}
Notice the first lines declaring the budget and special permissions that are asked for.
You could ask the agent why it needs to spoof this address and go back to sleep.
A non declared permission would yield this error, before anything is run:
spoof.cfty: line 10, column 6: Source address 10.20.4.1 is not permitted
Nice, but is it efficient as an investigative tool?
Quality scores
| Model (runs) | busybox | Scapy | Crafty |
|---|---|---|---|
| Opus 5.5 (3) | 7.2 | 9.2 | 9.3 |
| Sonnet 5.5 (2 - 3) | 7.6 | 7.9 | |
| DeepSeek Flash (1) | 7.5 | 8.0 | |
| DeepSeek V4 Pro (1) | 7.5 | 7.1 | |
| Kimi K3 (1) | 6.5 | 8.0 | |
| GLM 5.3 Flash (2) | 5.2 | 5.3 | 7.3 |
So, yes! It’s about the same as Scapy, so no quality was lost in exchange for the safety.
I also looked at smaller models because of course it’s comical to speak about preventing data exfiltration if you send all your most intimate chat about issues in your infrastructure to OpenAI or Anthropic.
At some point you will want your model to run locally.
And these numbers show that, given the right tools, even GLM could be helpful to investigate live network issues.
Note: Those numbers suggest that GLM with Crafty does much better than GLM with Scapy. I’ve done more tests since then and I believe this is a fluke, and that if there is indeed a difference it is much smaller.
Lies, damned lies, and benchmarks
Many limitations have to be kept in mind:
-
Very limited number of runs: I was short on time (and tokens) to run as many tries as I’d have liked; especially since Crafty and the benchmark itself were constantly evolving.
-
Only one class of incidents: those when this kind of tools are useful. Real network investigation has of course many more.
-
Limited bandwidth: even though I could simulate a large network, that’s a large network built from 90s-era gear; it’s speaking Mbps not Gbps. There is just no way to simulate 100Gbps on a single GHz CPU.
-
Shared code: What made Crafty possible is that I had that network library with which I could also build the simulator; but this also introduces a possible bias since Crafty and the simulator share some code.
-
Anthropic principle: Crafty is fine tuned to succeed in this benchmark. I do believe it’s as general as Scapy but can’t prove it now.
-
Models have to read a manual: Scapy is part of LLMs training set, Crafty is not. Therefore there is a token cost implied by Crafty that’s not measured in the quality scores.
-
Grading is done by an LLM: I’ve submitted the grading criteria to a couple of LLMs to check that they grade similarly, but maybe they are all biased toward favoring the kind of justification output by Crafty.
I hope this benchmark is still sufficient to convince many of you that we can do better than yoloing with the network during investigations.
Check for yourself, you can run it at home:
./crafty -e 'print("Merci !")'
What’s next?
-
Use the Crafty language to build the investigative branch of Cloudy.
-
Blur the distinction between investigation and monitoring, by using the same tool to do both;
-
Make monitoring more flexible and follow the investigative work; especially, help non-regression monitoring to become standard.
-
Enjoy safer, more capable autonomous agents!
Want to test on your site? Ask for a key