Network dependencies¶
What each host connects to, and when. Today the security groups allow outbound TCP 443 to any address (and TCP 80 from bench), so none of this needs configuring. The list matters if egress is narrowed later, if a proxy or firewall is put in front of the hosts, or if a third-party service is down.
All internet traffic leaves through each VPC's NAT gateway. The hosts have no inbound internet access. See Design decisions for why egress is limited to these ports.
Every host¶
| Service | Port | Needed for | When |
|---|---|---|---|
AWS Systems Manager (ssm, ssmmessages, ec2messages in the host's region) |
443 | Session Manager, send-command, run-on-hosts.sh |
Always. Without it the host drops out of SSM. |
| Amazon S3 (the bench bucket, us-east-1) | 443 | Code sync, inputs, results | Each deploy, each new input, the end of each run. bench, g4dn and g6 use their VPCs' S3 gateway endpoints. trn2 and g7e are in other regions, so they go through their NAT gateways. |
EC2 instance metadata (169.254.169.254) |
80 | Instance role credentials, EC2 identity in run_start |
Always. Local to the host, not affected by security groups. |
Inference hosts (trn2, g4dn, g7e, g6)¶
| Service | Port | Needed for | When |
|---|---|---|---|
Hugging Face Hub (huggingface.co and its download hosts under hf.co) |
443 | Model weights and config | Every start of vllm.service. See Hugging Face. |
Docker Hub (registry-1.docker.io, auth.docker.io and its CDN) |
443 | vllm/vllm-openai on g4dn, g7e and g6. The python base image for the client. |
Installing or changing the vLLM image. Building the client image. |
| Amazon ECR, ap-southeast-4 | 443 | The trn2 vLLM image | Installing or changing the trn2 image. Pulling from another region works too, but goes through the NAT gateway. |
GitHub Container Registry (ghcr.io) |
443 | The uv binary copied into the client image |
Building the client image |
Debian package mirrors (deb.debian.org) |
443 | ffmpeg in the client image | Building the client image. The Dockerfile switches apt to HTTPS because these hosts have no port 80. |
PyPI (pypi.org, files.pythonhosted.org) |
443 | Client dependencies from uv.lock |
Building the client image |
run-local.sh rebuilds the client image before every on-host run. Docker's
layer cache makes this a no-op when nothing has changed, but a changed
uv.lock or Dockerfile means the registries above have to be reachable at
run time.
Runner hosts¶
| Service | Port | Needed for | When |
|---|---|---|---|
Ubuntu apt mirrors (*.ec2.archive.ubuntu.com, security.ubuntu.com) |
80 | Packages Docker's install needs | Installing Docker and updates |
Docker (get.docker.com, download.docker.com) |
443 | The install script and Docker's apt repository | Installing or updating Docker |
Docker Hub, ghcr.io, Debian package mirrors and PyPI |
443 | The client image, as on the inference hosts above | Building the client image, at the start of a run when something changed |
| The target's vLLM host, in the same VPC | 8000, 8001 | vLLM and the sidecar | Every run |
Bench host¶
| Service | Port | Needed for | When |
|---|---|---|---|
Ubuntu apt mirrors (*.ec2.archive.ubuntu.com, security.ubuntu.com) |
80 | ffmpeg, jq, make, tmux | Install packages and updates |
| Snap Store | 443 | The AWS CLI snap | Installing it |
astral.sh and GitHub |
443 | The uv installer and binary | Installing uv |
| PyPI | 443 | uv sync |
Installing or updating the client |
| Inference hosts, over VPC peering | 8000, 8001 | vLLM and the sidecar | Bench runs only |
Building the trn2 image¶
Wherever you build it (Container images):
| Service | Port | Needed for |
|---|---|---|
Amazon ECR Public (public.ecr.aws) |
443 | The Neuron SDK 2.33 base image |
GitHub (github.com) |
443 | Cloning the vllm-neuron fork and nki-library |
| PyPI | 443 | soundfile and av |
| Amazon ECR in your registry's region | 443 | Pushing the result |
Hugging Face¶
vLLM downloads MODEL from the Hugging Face Hub into
/opt/snap-asr-bench/hf-cache on first start: 4.4 GB for
Qwen/Qwen3-ASR-1.7B on g4dn. The model is public, so no account or
token is used.
The Hub is contacted on every start, not just the first. On g4dn the
journal shows You are sending unauthenticated requests to the HF Hub on
each of the five starts since 2026-11-02. The model is requested at
revision=main, so vLLM checks for the latest commit of the model
repository each time. This has two effects:
- A change upstream changes the benchmark. If the model's repository
gets a new commit, the next restart downloads and serves it without
warning. To pin the model, add
--revision <commit>toVLLM_ARGSin the host's env file. - A Hugging Face outage or rate limit can affect start-up. Whether vLLM then falls back to the cached copy hasn't been tested here. Unauthenticated requests get lower rate limits.
HF_HUB_OFFLINE=1 would make vLLM use only the cache, and HF_TOKEN would
authenticate. Neither works by just adding it to vllm.env:
start-vllm.sh passes only the variables it names to the container (for
example -e VLLM_LOGGING_LEVEL). Add -e HF_HUB_OFFLINE or -e HF_TOKEN
to the script as well. Don't commit a token to the env files.