Most Shadowsocks guides on the internet explain what the protocol is, then stop. That is not very useful if you are standing in front of a router with a terminal open, wondering why the handshake keeps failing. This page is different. It collects the practical notes our team has built up while running Shadowsocks-Libev, R and GO on real hardware — what worked, what broke, and what we changed.
Why we started using Shadowsocks on routers
Our first use case was simple: a small office with an old OpenWRT router that could not handle a full VPN client. The router had 128 MB of RAM and a single-core MIPS CPU. Running a conventional VPN daemon on it caused the load average to sit above 1.0 even when idle. We switched to Shadowsocks-Libev because the C implementation uses very little memory, and the router's load average dropped to roughly 0.2. That single change is what convinced us to keep testing the other variants.
Over the following months we ran the same set of tests on three devices: the OpenWRT router above, a mid-range Android phone, and a desktop with an AES-NI capable CPU. The goal was not to produce a benchmark table, but to answer a simpler question — which variant and which cipher feels best in everyday use on each device.
What we observed when comparing the three variants
On the router, Libev was clearly the right choice. Memory use stayed under 40 MB even with OBFS enabled, and the connection survived a full week of uptime without needing a restart. Shadowsocks-R worked, but the extra plugin layer pushed memory use higher and the router occasionally dropped connections under load. GO would not fit comfortably in the available flash space, so we did not deploy it there.
On the Android phone, the picture changed. Libev was fine, but the client app's battery drain was noticeably higher than with GO during a two-hour streaming test. We suspect this is related to how the Android client wraps the native library rather than the protocol itself, but the practical result was the same: for mobile use we ended up preferring the GO-based client.
On the desktop, all three variants performed similarly once AES-256-GCM was selected. The AES-NI instructions handled the encryption cheaply, and the bottleneck moved to the network itself. This matches what most people report: on modern desktop CPUs, the choice of variant matters far less than the choice of server location.
Cipher choice: AES-256-GCM versus ChaCha20
We ran a simple throughput test on each device with both ciphers. On the desktop, AES-256-GCM was consistently faster, which is expected given hardware acceleration. On the phone, ChaCha20 was slightly ahead, and more importantly the phone stayed cooler during long sessions. On the router, the difference was small enough that we left it on ChaCha20 because the CPU lacked AES acceleration.
The practical rule we settled on is straightforward: if the device has AES hardware acceleration, use AES-256-GCM; if it does not, use ChaCha20-IETF-Poly1305. Both are AEAD ciphers and both are considered strong. The choice is about efficiency, not about security.
Problems we ran into, and how we fixed them
Handshake failures after a password change. We rotated a password on the server and forgot to update one client. The client kept retrying and the logs showed repeated authentication failures. The fix was obvious once we checked the client config, but the lesson was useful: a single wrong character produces the same symptom as a wrong server address, so check both before assuming the server is down.
Pages loading slowly on one app only. One of our test machines had a browser that ignored the system proxy setting. Shadowsocks was running correctly, but that browser was connecting directly. We confirmed this by comparing the IP address the browser reported against the IP address a command-line tool reported. The fix was to set the proxy inside the browser itself.
DNS leaks on the router. Early on, DNS queries from LAN devices were still going to the ISP resolver even though web traffic was routed through Shadowsocks. We fixed this by pointing the router's DNS forwarder at the Shadowsocks server and enabling the client's DNS handling option. After the change, a DNS leak test showed all queries going through the expected path.
Choosing a server location: what actually matters
We tested several locations over a month, running ping and traceroute checks at different times of day. The single most useful observation was this: a server with a slightly higher but stable latency felt better than a server with an occasionally lower latency and frequent spikes. For video calls, stability mattered more than the raw number. For large downloads, bandwidth mattered more than latency.
If you are choosing a location yourself, run a short test before committing. Ping the candidate server ten times, look at the spread rather than the minimum, and repeat the test during your usual usage hours. A server that looks good at 3 a.m. may behave very differently at 8 p.m.
A note on OBFS
OBFS changes how the traffic looks on the wire so that it blends in with ordinary web traffic. We use it on the router because the network there inspects traffic patterns, and without OBFS the connection was occasionally reset. On the desktop and phone we generally leave it off, because it adds a small amount of overhead and we have not needed it there. It complements encryption rather than replacing it, so never treat OBFS as a substitute for a strong cipher.
Summary of what we learned. Libev for routers and low-memory devices, GO for mobile clients, and any of the three on desktop. Use AES-256-GCM when the CPU supports it, ChaCha20 when it does not. Prioritise stable latency over the lowest ping number. Test DNS handling after setup, because a leak is easy to miss.
The sections below let you pick a variant and a server location to get a configuration. The notes above are the context for those choices — if you are unsure which variant fits your device, re-read the comparison above before selecting one.