Before you buy a server in Frankfurt, you must test it from the places your users really are. A good server latency test from Germany takes about an hour. It uses two tools, including RIPE Atlas probes for network speed and curl for HTTPS timing.
This guide shows how to run both. Also, it shows how to read the results and decide if Frankfurt fits your API.
What You Will Build
By the end of this guide, you will have a simple test setup and a clear report. You can use it to check if Frankfurt is fast enough for your API users. You will learn to build:
A small HTTPS test endpoint in Frankfurt that you own or have approval to test.
RIPE Atlas ping and traceroute tests from probes in Germany and nearby countries.
A repeated curl test that splits each request into DNS, TCP, TLS, and TTFB.
A CSV file with UTC timestamps, probe IDs, and raw results.
A chart that shows where the time goes.
A short summary with median, p95, and packet loss.
A clear decision: buy in Frankfurt, test more, or look at another location.
Step 1: Set Your Goal and Rules
Write these down before you start:
Who are your users? Germany, Austria, Switzerland, Poland, or France?
What is your API target? For example, p95 total time under 300 ms. Pick your own number.
What are you testing? One endpoint, like /health.
Only test servers that are yours; never run tests on someone else's server. Keep your test small. RIPE Atlas is a shared network, and volunteers run the probes, and each test costs credits. Don't run more tests than you need.
Step 2: Prepare the Frankfurt Test Endpoint
You need a small HTTPS endpoint in Frankfurt before you buy the final server. You can use a short trial, a test VPS, or a server you already have in the same city. Your endpoint should:
Have a public IPv4 address and a DNS name, like latency-test.example.com.
Have a valid TLS certificate.
Answer ICMP ping. RIPE Atlas ping needs this.
Return a small response at /health, with no database work.
Here is a quick test with Docker and Caddy. Before you run them, point your domain's DNS A record to the server's IP. Open ports 80 and 443 too. Caddy needs both to get the TLS certificate:
If ping doesn't work, your firewall may be blocking it. Change the firewall rule to allow ping requests (ICMP echo). RIPE Atlas needs this to test your server.
Step 3: Pick Probes From Germany and Neighbors
RIPE Atlas lets you pick probes by country, region, or ASN. A probe is a small device on a real network. You choose where the tests come from. Use a mix like this:
Group
Country codes
Why
Core
DE
Your main users
DACH
AT, CH
Close German-speaking users
Neighbors
NL, FR, PL, CZ
Nearby traffic
Tips:
Use 10 to 20 probes for Germany and 5 to 10 for other countries.
Mix home and business networks if you can.
Save the probe IDs. You need them to repeat the test later.
You must create an account at the RIPE Atlas site, then create an API key. You need credits to run tests.
HTTP limit: RIPE Atlas can only run HTTP tests on its own servers, called anchors. It can't run them on your server. So in this guide, Atlas does the ping, traceroute, and TLS checks, and curl measures the full HTTPS time.
Step 4: Run RIPE Atlas Tests
You can use the web form or the API. The API makes the test easy to repeat and to save. Save your key with:
Bash
exportATLAS_KEY="YOUR-KEY"
Then, create a ping test and a TCP traceroute on port 443:
Don't edit these files. They are your original test data.
Step 6: Check Median, p95, and Packet Loss
The RIPE Atlas results come as raw JSON files, which are hard to read. In this step, you can use a short Python script to turn them into a clean table. You will see the round-trip time (RTT) and packet loss for each probe. You will also get the median and p95 for your Frankfurt server latency test.
Run these commands in order. They create the script, install the tools, and run it.
1) Install the required tools with the commands below:
5) Open the new CSV file and make sure the data looks right before you use it:
Bash
headdata/atlas_ping_clean.csv
The script prints the number of probes, the median RTT, the p95 RTT, and the packet loss. It also saves the clean table to data/atlas_ping_clean.csv.
To see results for each country, add the probe country from your metadata file. Then, group the results by country.
Don't remove probes that look bad. Include them in your report. A slow probe can show a real problem that real users may have.
Step 7: Measure HTTPS Timing With curl
Ping only shows how fast data travels over the network. But your API users wait for the whole HTTPS request. curl shows which part of that request takes the most time.
curl starts its timer when the request begins. Each value below shows how much time passed from that start until a step finished:
time_namelookup: DNS is done.
time_connect: TCP is connected.
time_appconnect: TLS handshake is done.
time_starttransfer: first byte received. It includes server work.
To find how long one step took, take its value and remove the earlier value. You can use these formulas:
Step
Formula
DNS
time_namelookup
TCP
time_connect − time_namelookup
TLS
time_appconnect − time_connect
App TTFB (wait)
time_starttransfer − time_appconnect
Run these commands on each test machine, such as a VPS in Germany or your laptop.
Go to your test folder and check that curl is installed:
The script saves one CSV file per run. The file name includes the machine name and the UTC time.
Note: The analysis script reads the machine name from the file name. Make sure each test machine has a different hostname. Then, copy all the CSV files into the data/ folder on the machine where you run the analysis.
If a request fails, count it as lost. Keep it in the file. The script marks it as FAIL, so you can include it when you calculate packet loss.
Step 8: Make a Chart of Your HTTPS Timing
Your curl files have the raw timing for each request. In this step, you can use a short Python script to split the time into DNS, TCP, TLS, and TTFB. The script also finds the median, p95, and loss for each test location. Then, it draws a chart so you can see which step takes the most time.
If you did not create the venv earlier, run this first:
Bash
python3-mvenvvenv
2) Check that all curl files are in the data folder:
Bash
lsdata/curl_*.csv
3) Then, create the script with the command below:
Bash
cat>analyze_curl.py<<'EOF'importglobimportpandasaspdimportmatplotlib.pyplotaspltframes=[]forfinglob.glob("data/curl_*.csv"):d=pd.read_csv(f)d["source"]=f.split("curl_")[1].split("_")[0]frames.append(d)df=pd.concat(frames)df["fail"]=df["code"].astype(str).eq("FAIL")|df["total"].isna()ok=df[~df["fail"]].copy()ok["dns_ms"]=ok["dns"]*1000ok["tcp_ms"]=(ok["connect"]-ok["dns"])*1000ok["tls_ms"]=(ok["tls"]-ok["connect"])*1000ok["app_ms"]=(ok["ttfb"]-ok["tls"])*1000ok["total_ms"]=ok["total"]*1000summary=ok.groupby("source").agg(n=("total_ms","size"),median_total=("total_ms","median"),p95_total=("total_ms",lambdas:s.quantile(0.95)),median_dns=("dns_ms","median"),median_tcp=("tcp_ms","median"),median_tls=("tls_ms","median"),median_app=("app_ms","median"),)summary["loss_pct"]=df.groupby("source")["fail"].mean()*100summary=summary.round(1)summary.to_csv("data/summary.csv")print(summary)parts=summary[["median_dns","median_tcp","median_tls","median_app"]]ax=parts.plot(kind="bar",stacked=True,figsize=(9,5))ax.set_ylabel("Median time (ms)")ax.set_title("HTTPS time by phase, per test location")plt.xticks(rotation=30,ha="right")plt.tight_layout()plt.savefig("data/https_phases.png",dpi=150)EOF
data/summary.csv has the median, p95, and loss for each location.
data/https_phases.png is the chart. Each bar shows the time split into DNS, TCP, TLS, and app wait.
Tip: The script takes the location name from the file name. Give each test machine a different hostname, so each one shows as its own bar.
Step 9: Read the Results
At this point, you have the numbers and the chart. This step shows you how to read them. You must look at the median, the p95, and the loss.
Median is the middle result. Half of the requests were faster. It shows the normal case.
p95 means 95 of 100 requests were faster than this. It shows slow moments. Users feel p95 more than the median.
Packet loss is the percentage of packets lost or requests failed. Even a small loss can slow an API because lost packets must be retransmitted.
Then, you must look at each phase, such as DNS, TCP, TLS, and app wait, to see where the time goes.
Big phase
What it often means
DNS
Slow DNS provider or no caching
TCP
Long distance or a poor network path
TLS
Distance, since the handshake needs extra round trips
App TTFB
Slow code, database, or an overloaded server
If TCP time is low but TTFB is high, the location is fine, and your app is slow. A bigger server won't fix a distance problem. A new location won't fix slow code.
Also check the traceroute. Look for sudden jumps in time, or a path that leaves the region. A longer route can explain why a probe is slow.
Step 10: Decide If Frankfurt Fits Your API
Now you have real numbers from your tests. First, you can compare them with your own target.
Check
Your target
Result
Pass?
Germany median total
set by you
from your data
yes/no
Germany p95 total
set by you
from your data
yes/no
DACH p95 total
set by you
from your data
yes/no
Loss
set by you
from your data
yes/no
App TTFB
set by you
from your data
yes/no
Then, you can decide if Frankfurt is a good place for your API, if you need more tests, or if you should look at another location.
Most users in Germany, Austria, or Switzerland, and the checks pass: Frankfurt looks like a good fit. Start planning your deployment.
Network time is good, TTFB is high: Fix the app first.
Your users are far away (for example, outside Europe): Compare other locations, or use more than one region.
Results change a lot by time of day: Repeat the test for a few days before you buy.
Once Frankfurt passes your tests, the next question is size, including CPU, RAM, storage, and port speed. Match them to your API load, not to the latency test. Latency tells you about location. It does not tell you about capacity.
After you deploy, run the same tests again on the real server. Compare them with your trial results, and keep both datasets.
Latency Test Report Checklist
A good report lets anyone repeat your test and check your results. Before you finish, make sure you saved all the data below. Keep the raw files, the dates, and the probe details. This also helps when you run the same test again after you deploy.
Test date and time in UTC.
Endpoint name and the server used.
Probe IDs, countries, and networks.
Measurement IDs and raw JSON files.
curl CSV files per location.
The summary CSV and the chart.
Median, p95, and loss for each location.
Any failed or odd results.
Conclusion
A server latency test from Germany is easy when you do it in steps. RIPE Atlas shows network speed from real German and nearby networks. curl shows DNS, TCP, TLS, and TTFB for your API. Together they give you real data for a Frankfurt server latency test, so you can choose a location with facts.
Run the test more than once and keep the raw files. Trust p95 more than the average. One test is not a promise of future speed.
No. HTTP tests only work with RIPE Atlas anchors. Use ping, traceroute, and TLS tests from Atlas, and use curl for HTTPS timing.
Run the curl loop from a few machines in Germany and nearby countries. Then, split the time into DNS, TCP, TLS, and TTFB. This is the simplest way to measure API response time from Germany.
Look at both. The median shows normal speed. The p95 shows how slow the bad moments are.
We use cookies to run PerLod and to understand how the site is used. You can accept everything, or open Manage to turn individual categories off. Cookie policy.