All ArticlesDevOps2026-11-13T08:39:26+08:00

90% of Indonesian Traffic Routes Through Singapore — Set Up IIX/OpenIXP Monitoring Before the Next Cable Flap

Indonesian server operators often miss that domestic traffic is silently rerouting through Singapore when a Batam submarine cable degrades, adding 30-80ms latency without any alert firing. After reading, you will know how to set up periodic traceroute and BGP looking-glass checks against IIX and OpenIXP peering paths so you catch reroutes before users file tickets.

Most server operators in Indonesia have monitoring for CPU, disk, and HTTP response codes. Few monitor the actual network path their traffic takes. When a submarine cable between Batam and Singapore degrades — not a full cut, just a degradation — domestic traffic that should stay inside Indonesia quietly reroutes through Singapore. Latency jumps 30 to 80 milliseconds. No alert fires. Users start complaining before anyone on the infrastructure side notices.

According to data cited by Indonesia's Ministry of Communication and Digital (Komdigi) and telecom observers, roughly 90% of Indonesia's international internet traffic routes through Singapore, which serves as the regional hub for data centers, cloud computing, and submarine cable landings. That dependency means any disturbance on the Batam-Singapore cable corridor doesn't just affect international traffic — it can silently pull domestic traffic off its normal path through IIX or OpenIXP and push it through an international transit link instead.

What IIX and OpenIXP actually do at the packet level

IIX (Indonesia Internet Exchange) and OpenIXP are the two primary Internet Exchange Points in Indonesia, both operated under the umbrella of APJII (the Association of Indonesian Internet Service Providers). Their job is straightforward: keep Indonesian-to-Indonesian traffic inside Indonesia.

Without an IXP, if a user on ISP-A in Jakarta wants to reach a server on ISP-B in Jakarta, the packet might travel to Singapore (or further) to reach a transit provider that peers with both ISPs, then come back. IIX and OpenIXP solve this by providing a physical switching fabric where Indonesian ISPs peer directly. ISP-A hands the packet to the exchange fabric, ISP-B picks it up. The packet never leaves the country. Latency stays under 5 milliseconds for intra-Jakarta paths, typically.

For a deeper look at how IIX was established and evolved, APNIC published a useful history: An Open exchange: history of Indonesia's IXP.

Here's where the problem starts. Each ISP's router at the IXP advertises its prefixes via BGP (Border Gateway Protocol). Other ISPs at the exchange receive those advertisements and install them in their routing tables. When everything works, the BGP path through IIX/OpenIXP is shorter (fewer AS hops) and preferred over the international transit path. But BGP is a policy-driven protocol. If the peering session at the IXP flaps, or if an ISP withdraws routes from the exchange due to a configuration change or capacity issue, the next-best path kicks in. That next-best path is often through an international transit provider whose upstream goes through Singapore.

How a cable flap causes silent rerouting

A submarine cable "flap" is not necessarily a full cut. It can be a partial degradation — increased bit error rate, reduced capacity on some fiber pairs, or intermittent signal loss. The physical layer detects errors and the optical equipment may reduce capacity or switch to protection fibers. At the IP layer, what happens depends on how BGP sessions are configured.

Here is the sequence that leads to silent rerouting:

  1. Cable degradation causes packet loss or increased latency on one or more links between Indonesian cities and the IXP, or between the IXP and certain peers.
  2. BGP hold timers expire (default is typically 90 seconds for the hold timer, with keepalives every 30 seconds). If three consecutive keepalives are missed, the BGP session drops.
  3. When the BGP session to the IXP peer drops, the router withdraws those routes from its forwarding table.
  4. The router's BGP decision process selects the next-best path. If the only remaining path is through an international transit provider, traffic now exits Indonesia, hits Singapore, and comes back.
  5. From the server's perspective, nothing changed. The interface is up, the IP is reachable, HTTP returns 200. But every packet now takes an extra 30-80ms round trip through Singapore.

The kernel's routing table on your server doesn't change — it still points to the same default gateway. The rerouting happens upstream, at your ISP's border routers. Your server has no visibility into this unless you actively probe the path.

Detecting reroutes with traceroute and MTR

The simplest detection method: run periodic traceroutes from your server to known domestic destinations and watch for hops that leave Indonesia.

mtr (My Traceroute) combines traceroute and ping into a continuous probe. It shows each hop, its hostname (which often contains location hints like sgp for Singapore, jkt for Jakarta, sub for Surabaya), and per-hop latency statistics.

# Run MTR to a known domestic IP, 100 cycles, report mode
mtr -r -c 100 -w 203.0.113.1

Replace 203.0.113.1 with an actual domestic target — your DNS resolver at the IXP, a domestic CDN node, or another server you operate in a different Indonesian data center. The -r flag produces a report after all cycles complete. The -w flag shows full hostnames instead of truncating them.

What to look for in the output:

  • Hostnames containing sin, sgp, sg, singapore, or AS numbers belonging to Singaporean transit providers appearing in the middle of what should be a domestic path.
  • A sudden latency jump of 20ms or more between consecutive hops, which often indicates a submarine cable crossing.
  • The path should stay within Indonesian AS numbers for domestic destinations. If you see AS numbers belonging to international transit providers (you can check AS ownership at whois services), traffic left the country.

For BGP-level visibility, several looking glass services let you query how routes are seen from inside Indonesian networks. APJII and some Indonesian ISPs operate looking glass tools. You can also check the IIX technical overview for historical context on how the exchange was designed.

Building a cron-based monitoring script

A practical approach: run MTR every 10-15 minutes from your server to several domestic targets, log the output, and grep for signs of international rerouting.

#!/bin/bash
# Save as /usr/local/bin/check-domestic-path.sh
# Runs MTR to domestic targets and flags if path leaves Indonesia

TARGETS='203.0.113.1 198.51.100.1'  # Replace with real domestic IPs
LOGDIR='/var/log/path-monitor'
ALERT_PATTERNS='sin|sgp|\\.sg\\.|singapore'

mkdir -p "$LOGDIR"

for target in $TARGETS; do
  OUTFILE="LOGDIR/mtr-(date +%Y%m%d-%H%M%S)-$target.txt"
  mtr -r -c 30 -w "target" > "OUTFILE" 2>&1

  if grep -qiE "ALERT_PATTERNS" "OUTFILE"; then
    echo "[ALERT] Domestic path to $target appears to route through Singapore" \\
      | mail -s 'Path reroute detected' ops@example.com
  fi
done

Add to cron:

*/15 * * * * /usr/local/bin/check-domestic-path.sh

This is deliberately simple. Hostname-based detection has limits — not all routers have reverse DNS, and some hostnames are misleading. For more reliable detection, compare the AS path. Tools like traceroute -A (if your version supports it) show AS numbers per hop. You can then check whether any AS in the path is outside Indonesia.

For a more robust setup, consider integrating with a monitoring system that can track latency baselines. If your normal domestic RTT is 3ms and it suddenly jumps to 40ms, that's a signal worth alerting on regardless of what the hostnames say.

BGP looking glass checks for peering visibility

Traceroute shows you the forward path from your server. But to understand why traffic rerouted, you need to see how your prefixes (or your destination's prefixes) are being advertised at the exchange.

BGP looking glass servers let you run show ip bgp <prefix> from a router you don't control. Several Indonesian ISPs and APJII have historically operated looking glass services. The availability of these tools changes over time, so search for "IIX looking glass" or "OpenIXP looking glass" to find current endpoints.

What to check:

  • Is your destination prefix visible at the IXP at all? If it disappeared, traffic will take the transit path.
  • What is the AS path length? A domestic path through IIX typically has 1-2 AS hops. If the looking glass shows a path with 4+ hops going through international ASes, something changed.
  • Are there multiple paths? If the IXP path and the transit path are both present, check which one is preferred (marked with > in BGP output) and why.

If you operate your own BGP-speaking infrastructure, you can also set up ExaBGP or a similar tool to monitor BGP updates from your upstream and alert when the AS path to key domestic prefixes changes.

We covered BGP route leak verification in a previous article — the same diagnostic approach applies here, just focused on domestic paths instead of IPv6: Suspect a BGP Route Leak Hit Your IPv6 Traffic? Verify With RIPE RIS and traceroute6.

For context on tracing submarine cable issues specifically on the Batam-Singapore corridor, see: Tracing the real cause of latency during cable disruptions.

Why your existing monitoring misses this

Standard monitoring checks — HTTP 200, ping latency to localhost or the gateway, disk and CPU — all pass during a reroute. The server is fine. The application is fine. The network interface is fine. The problem is 3-4 hops upstream, invisible to anything that only checks endpoints.

Even latency-based monitoring can miss it if your check target is international. If you're pinging 8.8.8.8 and your traffic already goes through Singapore normally, the reroute of domestic traffic won't change that metric at all.

The fix is specific: monitor the path to domestic targets, not just international ones. And monitor the path itself (traceroute), not just the endpoint latency (ping). A 35ms ping to a domestic target that normally responds in 3ms is the signal. But you only see that signal if you're collecting the baseline.

Practical takeaway

Set up MTR-based path monitoring to at least two domestic targets in different ISPs or data centers. Run it every 15 minutes via cron. Alert when hostnames or AS numbers suggest traffic left Indonesia, or when domestic RTT exceeds a threshold you've baselined during normal operation. This takes 20 minutes to set up and catches reroutes hours before user complaints arrive. The 90% dependency on Singapore for international traffic is a known structural reality of Indonesian internet infrastructure — but domestic traffic silently joining that path during a cable flap is the operational risk that most monitoring setups completely ignore.