Technical Guides / Protocols, Cores, and Subscriptions
Clash Protocols and the mihomo Core: A Technical Guide
Installing Clash, importing a subscription, or checking your connection for the first time? Start with the Clash user guide. If you're already connected and want to compare nodes or figure out why a new client can't load some settings, start here. Rule out compatibility issues first, then test with the apps you actually use—protocol names alone can't predict speed.
1. Choosing a Protocol: Know the Difference Between Clients, Cores, and Nodes
A Protocol Is Only One Part of a Node
The client is the interface you use day to day. It imports configuration, displays proxy groups, and may request network permissions from your operating system. The core reads rules, establishes proxy connections, and handles protocol traffic. A node is a set of connection parameters for a particular server. A client called Clash doesn't necessarily use the same core as another Clash-branded client, or support the same configuration. And even when two clients use the same core, they can differ in import options, background restrictions, and how they merge configurations.
Choosing a node isn't a matter of picking a protocol in the client and entering an address and port. The server determines which protocol it accepts, how traffic is transported, and how connections are authenticated. All of these settings need to match. Two nodes might use the same domain but different ports, transport layers, or authentication. The protocol, connection address, and name used to validate the security layer are separate things. Node names are usually just labels: calling one “Direct” or “High Speed” doesn't change how it connects. Before comparing nodes, check their type and transport in the node details—not just their names.
Keep Proxy Modes Separate from Node Protocols
Rule mode determines which requests connect directly and which go to a proxy group; the group then selects a node. Protocols like SS and VMess only come into play after a request has been routed to a node that uses them. If a speed test works but an app doesn't, first check whether the request reached the client and matched the intended rule, then check the node protocol. Desktop apps may ignore the system proxy, while the traffic routed on a phone depends on the operating system and client settings. Global mode can help you check rule matching, but it won't route traffic the client doesn't handle or fix incorrect protocol settings.
Another common source of confusion is the time shown for a node. It's usually based on a probe request sent through that node, and can be affected by the destination, caching, and connection reuse. It doesn't directly measure the distance to the server or reflect response times in every app. Try the lowest result first, but don't make it the default route for all traffic right away. When the probe target and the services you use are on different networks, two nodes with similar results can feel very different in practice.
Use Three Checks to Narrow Down Node Options
First, check the core: does it support the protocol and the node's specific transport and security options? Second, check the network: can your current connection reach the server, and can it establish the required transport? Third, check real-world use: does it handle everyday tasks reliably, such as opening a webpage, background sync, calls, or reconnecting after a network change? If a node fails any check, note which layer failed before trying another. Changing one variable at a time helps you tell whether the issue is with server settings, client import, or your network.
When testing, treat configuration loading, connection establishment, and a successful request as three separate outcomes. A configuration loading only means the parser accepted the file. Establishing a connection might mean only that the outer handshake succeeded. A successful request confirms that the specific destination was reachable at that time. When recording a node's performance, include the network, app, and time of the test—one successful attempt doesn't mean it will always work. Keep a known-good option too: besides giving you something to switch back to, it can help distinguish a node issue from a problem with your local network.
2. SS and VMess: Lightweight Forwarding and Flexible Connections
SS: Check the Encryption Method, Then Look for Extra Layers
SS stands for Shadowsocks, originally designed as a lightweight encrypted proxy. A basic node typically includes an address, port, password, and encryption method. “Basic” here means no additional transport plugin—not unencrypted. Depending on the deployment, it may forward TCP traffic, UDP traffic, or both. The type of traffic an app generates, whether the local proxy accepts it, and whether the server supports forwarding it are three separate things. If a webpage loads, that only confirms that particular connection worked; it doesn't test datagram forwarding for games or voice apps.
Use the encryption method specified in the original configuration; don't pick a newer-looking option at random. Older methods, common authenticated encryption methods, and the Shadowsocks 2022 family differ in compatibility and key formats. A password from an older configuration can't simply be reused as the pre-shared key required by a newer method. Some nodes also require a plugin, and both ends must agree on its type and options. Manually entering a plugin-based node as basic SS may save successfully in the UI but fail to connect. Use the complete configuration from your provider, and change the encryption method only when you can manage both ends.
SS without a plugin is often easier to troubleshoot because it has fewer connection layers to check. With few connections and a stable network path, the proxy's overhead may be negligible. Under sustained heavy traffic, however, encryption method, device instruction set, and core implementation can all affect resource use. Basic SS makes a useful baseline, but “lightweight” doesn't guarantee better battery life or faster speeds. A less congested route matters more than a simpler protocol if the connection is overloaded.
VMess: Check Identity, Transport, and Security Separately
VMess comes from the V2Ray ecosystem and separates the proxy session from the transport that carries it. A node usually has an account ID and may also use outer components such as standard TLS and WebSocket. Two nodes both labeled VMess can take different routes: one may use a more direct transport, while another passes through a web server or reverse proxy. The direct route usually has fewer settings to check; the other can work with existing infrastructure, but adds more potential points of failure, including the route, hostname, and security settings.
VMess authentication depends on the system clock. If the same configuration works on several devices but fails on one after its date was changed manually, check automatic time synchronization before changing the node identity. When migrating older configurations, check whether the current implementation still supports the legacy authentication settings. A field in an old export isn't necessarily a valid default for every current core. If the provider can generate a current-format configuration, use it for comparison. When a connection fails, narrow down the cause in this order: parsing error, system time, outer handshake, then proxy request.
When It Makes Sense to Keep an Older Node
If your existing VMess configuration is maintainable, loads on the platforms you use, and works reliably in the apps that matter, there's no need to switch just because of its protocol name. For a low-powered, always-on device, basic SS may be worth trying as a comparison, provided the server offers a suitable encryption method and forwarding capabilities. Compare them using the same destination, similar routes, and the same task. If you're comparing SS that connects directly to a server with VMess routed through an extra proxy, note that you're comparing two deployments—not just two protocols.
3. Trojan and VLESS: Separate the Proxy Protocol from the Security Layer
Trojan: Standard TLS Isn't an Optional Extra
The classic Trojan design carries a proxy session over a standard TLS connection. The server checks the proxy credentials after establishing the secure channel. In practice, that means the server name and certificate trust matter alongside the address, port, and credentials. The address determines where the connection goes; the name the client uses for the handshake and validation must match the server's deployment. Replacing the domain in the original configuration with an IP address may cause name validation to fail. Reaching the machine doesn't necessarily mean you've reached the same service.
If errors mention an expired or untrusted certificate, or a name mismatch, first check the device date, the server name in the configuration, and whether other devices have the same issue. If only one device fails, check its clock and system trust store. If all devices fail, ask the provider to check the certificate and server entry point. Don't disable certificate validation as a routine fix: if the connection works afterward, that only means validation was failing—it doesn't prove the server is the one you expected. If the outer handshake succeeds but the connection still fails, check the proxy credentials and transport settings.
VLESS: Nodes with the Same Name Can Use Different Transport and Security Settings
VLESS comes from the Xray ecosystem and separates proxy signaling from transport security. Deployments typically use an account ID and may add standard TLS, REALITY, or other security settings, depending on the node. VLESS itself doesn't encrypt the payload, so the name alone doesn't tell you how a connection is protected. Check the full combination: protocol, outer transport, and security settings. A client that advertises VLESS support may not support every possible combination in its core.
During migration, pay particular attention to flow and the transport type. flow isn't an optional speed boost; some deployments require both ends to use matching session settings. If an old client exported a link without important options, or a new client only recognized the node name and account ID, the entry may still look complete in the list. Compare the provider's original subscription with the parameters the new client actually imported. Don't overwrite everything with another working node as a template: two nodes at the same address may require different transport paths, validation names, or settings.
Use the Handshake Stage to Tell Network Issues from Configuration Issues
With either protocol, a timeout shown in the client doesn't necessarily mean the network is slow. Check whether the address resolves and the server port accepts an outer connection, then see whether the security handshake completes. Only after that should you focus on proxy authentication and destination access. Conversely, a successful security handshake doesn't guarantee the app will work. The wrong proxy group, a rule routing the request to another node, or a slow destination can all look like “it won't open.” The first error in the logs is usually more useful than the last timeout line.
On a stable network, both Trojan and properly configured VLESS can be good everyday options. For short connections, perceived speed often depends on the outer handshake and connection reuse. Large downloads are more likely to reveal limits in server bandwidth, outbound congestion, and device performance. You don't need to migrate every app just because a node ranks higher in a speed test. Try a real task on the new node, then check whether fresh connections, background recovery, and repeated requests all work. If someone else maintains the service, clear parameters and a complete configuration matter more than a protocol combination that merely sounds newer.
4. Hysteria2 and TUIC: Choosing Between QUIC-Based Connections
UDP for the Outer Connection Isn't the Same as UDP from an App
QUIC runs over UDP and provides encrypted connections with multiple independent streams. Hysteria2 and TUIC both build on QUIC, but they're different proxy protocols. Saying the outer connection uses UDP describes how your device talks to the proxy server; the app traffic being forwarded can still use TCP or UDP. To know whether a chat app, browser, or call will work through a node, check traffic handling and forwarding across the whole path. You can't infer app compatibility from the outer transport. Likewise, a node that forwards app UDP doesn't necessarily use a QUIC-based outer connection.
Hysteria2: Throughput on Unreliable Networks and Bandwidth Settings
One of Hysteria2's design goals is to maintain useful throughput on high-latency or somewhat lossy links. When using congestion control that sets a target based on bandwidth, the upstream and downstream values should reflect what the current connection can actually sustain—not the peak listed in your broadband plan. Upstream is especially likely to be limited by a home network or mobile hotspot. Setting it too high can cause queueing and more packet loss: downloads may look fast while other interactions slow down. Whether this feature is available and where to set it depends on the server configuration and client core.
Hysteria2 and the original Hysteria use different configurations; similar names don't make them interchangeable. If a connection fails, confirm that the subscription explicitly provides the second-generation protocol and preserve its authentication and security settings. If it only fails on one type of network, test the same node on another network you're authorized to use. If it fails on both, check the server configuration or client support first. If it fails only on one network while TCP-based alternatives work there, investigate whether outer UDP traffic can get through. Mild packet loss and a port that can't communicate at all are different problems: the former may be tunable, while the latter won't be fixed by raising the bandwidth setting.
TUIC: Compare Real-World Performance and Deployment Compatibility
TUIC also uses QUIC and focuses on efficiently establishing and carrying proxy sessions. Multiple streams can progress over one QUIC connection; if one stream retransmits lost data, the others don't have to wait for it. However, all streams still share network capacity and are affected by congestion, so more streams don't automatically mean more speed. Real-world performance also depends on the implementation's congestion control, connection reuse, handling of app datagrams, and the server's network route. Check which protocol revisions and configuration formats both ends support; don't copy fields from an old client straight into a new one.
Some implementations let a client that has connected before try sending data sooner. This depends on session resumption and doesn't mean every connection starts with no wait. It's not a universal switch to enable by default. A cold start, reconnecting to the network, or the first request after a long idle period may still require a new connection. When switching from Wi-Fi to cellular, whether a connection survives depends on the app, core, and network path—not just QUIC's design. Test an actual network switch and compare interruption and recovery times.
Keep a Proven Alternative Route
Some access networks handle UDP queueing and idle connections differently from TCP. A node that tests well during the day may become unreliable during the evening rush or after waking from sleep. For a mobile device's default node, consider keeping a tested alternative that doesn't rely on QUIC for its outer connection. Switch to it manually once to confirm that the proxy group really selected it and the same app starts working again. If you use automatic selection, check whether it switches successfully when probes fail and whether it keeps bouncing between nodes after recovery. That behavior can affect long-lived connections too.
5. Speed, Resource Use, and Battery Life on Mobile
Test Three Types of Tasks, Not Just Latency
Start with a cold page load: without deliberately warming up the connection, use the same app to open the same destination and measure how long it takes to receive the first content. Next, test sustained transfers using the same permitted data source, and watch for fluctuations over a stable period instead of recording only the peak. Finally, test recovery: reconnect to the network after an interruption and note how long it takes for requests to work again. Each result tells you something different. A slow webpage doesn't necessarily affect large sync jobs, and a fast download doesn't guarantee uninterrupted calls on the move.
| Candidate | Speed Test | Resource Use and Battery |
|---|---|---|
| Basic SS | Use a deployment without extra transport as your baseline | Watch CPU use during sustained encryption |
| VMess with an Outer Transport | Test cold requests and requests over a reused connection | Watch the overhead of the outer connection and concurrent sessions |
| Trojan / VLESS | Test the actual combination of security layer and transport | Compare handshake overhead under frequent short connections |
| Hysteria2 / TUIC | Compare high latency, packet loss, and network switching | Watch send rate, retransmissions, and idle keepalives |
Keep the device, network, destination, proxy mode, and test time as consistent as possible, then test each candidate in turn. If you can, compare nodes on the same route; otherwise, record the results as “the difference between these two node setups.” If every candidate slows down at the same time, suspect the shared network or destination first. Millisecond results aren't comparable if the probe targets change, one request hits a cache, and another is waiting on the destination. When testing webpages, track failures and long-tail delays too—not just the best result.
Resource Use Depends on the Actual Workload
CPU use comes from encryption and decryption, encapsulation, congestion handling, and the app's own work. Memory is also used by routing rules, connection state, and buffers. Under light traffic, the ruleset or UI refreshes may matter more than protocol differences. Under heavy traffic, the core can keep the device busy and generate heat that leads to throttling. Check the client, core process, and downloading app separately, and record both idle and comparable-load results. If things only lag with many concurrent connections, reduce the concurrency or download speed for comparison before deciding whether to switch nodes.
On Mobile, Check Background Activity and Radio Wakeups
A phone's battery use isn't just about the CPU. Weak signals, background probes, frequent reconnects, and keepalives can all keep the wireless connection active for longer. A node that performs well in a short download doesn't necessarily use less power while idle. First, run an idle test with the screen off under similar network and signal conditions, then compare it with your usual tasks. For both tests, note background probe frequency, the system's battery stats, and how often the network changes. The system may attribute some network use to other apps, so the client's share alone doesn't tell the whole story.
If the battery drains mostly while the screen is locked, check whether the proxy group is probing every candidate too often, subscriptions or rules are refreshing frequently, or the system is suspending background services and triggering repeated reconnects. Reduce unnecessary automatic probes and repeat the test. If the device heats up only under heavy traffic, focus on sustained throughput and CPU use instead of blaming one protocol for the temperature. The same node can use very different amounts of power on Wi-Fi, strong cellular service, and a weak signal.
When a speed test is fast but everyday use is slow, work backwards: reproduce the slow action in the app first, then check the logs to confirm which node it actually used. Only then probe the same route. If the app went direct, switching proxy nodes won't help. If routing and rule matching are correct, narrow down whether the delay comes from DNS resolution, a slow initial connection, or pauses after transfer has started. For more help, see How to Troubleshoot Slow Speeds by Layer and the node speed test guide.
6. Original Clash, Clash Meta, and the mihomo Core
Project History Explains the Names; the Active Core Determines What Works
The original Clash established the YAML configuration structure many users know, organizing nodes, proxy groups, and matching rules separately. Clash Meta grew out of the Clash ecosystem, expanded protocol and settings support, and later continued under the name mihomo. Older guides and client interfaces may still call the related core Meta. When you see these names, first check whether they refer to the graphical client, the program actually running, or an output option for a subscription. The same word can mean different things in each place. And a client being discontinued doesn't mean its core family has stopped developing.
The basic configuration structure used by common original Clash builds usually has equivalents in mihomo, but support for that structure doesn't mean every old file will work unchanged. Different original Clash distributions and the Meta family have varied in their support for protocols, rule extensions, and traffic routing. An older file might rely on a particular ruleset format or on the client to set ports and routing options. Conversely, a modern configuration using Hysteria2, TUIC, or certain VLESS combinations shouldn't be expected to work on the original core just because the file has the same extension.
Migrate the Configuration First, Then Local Traffic-Routing Settings
Save your old configuration and proxy group selections before migrating. After installing the new client, confirm which core is actually running in settings or the startup log. Move things over in stages: first check that the configuration and nodes load, then verify that the rules and proxy group names match, and finally restore settings for ports, system proxy, or TUN routing. If the old client is still running, it may be holding the old port or leaving the system proxy pointed at its entry point. Get one client working on its own, then test the browser and other apps. Don't mistake a port conflict for protocol incompatibility.
The example below is a minimal ruleset for checking a core configuration. It listens only on the local loopback address for a mixed proxy port. Matching destinations use the built-in direct policy; all other requests use the reject policy. It includes no remote nodes and can't test the capabilities of any proxy node. Use it for an isolated test, not as a replacement for a working configuration. If the local port is already in use, choose a free one in a separate test environment and update the test app's proxy port to match. See Port Settings for an explanation of mixed ports.
mixed-port: 7890
allow-lan: false
bind-address: "127.0.0.1"
mode: rule
rules:
- DOMAIN,example.com,DIRECT
- MATCH,REJECT
When an app uses the local proxy to access the example domain, the request should match the allow rule. Other hosts not listed should match the reject rule. A real webpage may redirect or load resources from other hosts, so testing a single target request is enough. This separates YAML parsing and rule matching from node protocols, server certificates, and network performance. If a graphical client overrides listener settings, use the final loaded configuration as your reference. If a configuration change has no effect, check the active configuration and runtime log first; don't make the same change in multiple imported copies.
Check Which Settings the Client Manages for You
Some clients override subscription settings with ports, routing, or DNS options from the UI; others store custom changes in a separate configuration layer. Don't assume those settings will migrate with the subscription. Once the basic connection works, restore settings one at a time and note where each change lives. If rules revert after a subscription refresh, check whether the override layer is active. If your old interface is no longer maintained, see the Clash for Windows migration guide. For differences between fields in original Clash, Meta, and mihomo, see the core comparison.
7. Subscription Formats and Configuration Compatibility
A Subscription URL Isn't a File Format
A subscription URL is a way to retrieve configuration, and the same provider may return different content to different clients. A complete Clash-style configuration usually includes nodes, proxy groups, and rules. A file intended as a node provider may contain only a list of nodes, while a share link or a text file containing multiple links usually carries per-node details only. Some services encode a list of links into a string; that's just a way to represent the data and doesn't create proxy groups or rules. Before importing, check whether the source provides a complete configuration or a node list to be referenced by an existing one.
Similar-looking options in a client aren't interchangeable either. Add a complete configuration from the configuration page. A single share link works only with a client that explicitly supports importing nodes that way. A node provider is referenced by a configuration; it can't simply replace the configuration itself. If you put a node list into an import option that expects a complete configuration, you may get a parsing error or end up with no proxy group to select. Go back to the source and choose an output format for your current core, then check which import option to use. There's no need to change the file extension or wrap the content in a similar-looking structure by hand.
Troubleshoot in Three Layers: Fetching, Parsing, and Connecting
At the fetching layer, check whether the subscription actually downloaded. A login page, service notice, or error page may load successfully but still not be usable by the core. If the client says it can't read the subscription, check the update result, content-type message, and whether the URL has expired. Don't post the full URL in a forum or screenshot: subscription links may contain access credentials, and sharing one can give others permission to update your configuration. When asking for help, share only the error type, client name, and affected protocol—remove credentials and user identifiers.
At the parsing layer, the issue may be more than YAML indentation. The text can be valid while still containing a proxy type, field, or transport combination the current core doesn't support. A common sign is that some nodes disappear after you change subscription formats, or a proxy group suddenly becomes empty. First check whether the referenced nodes or providers loaded, then verify that the groups used by the rules exist. Fix the first clear parsing error and reload before changing multiple fields in response to a long list of follow-on errors.
At the connection layer, go back to the original configuration and check whether the imported node kept all its parameters. A conversion tool may recognize a basic address and port but drop security options, a specific transport, or proxy group associations. If the new subscription comes from converted text and the old client used the original subscription, compare it with a native format provided by the source. If conversion is necessary, use a processing environment you trust; don't submit a private subscription URL to a service with unclear data-retention practices. Test a few nodes after import, then check which rules and proxy groups they depend on.
Avoid Overwriting Verified Local Changes During Updates
During testing, keep the old configuration and add a separate one for comparison. Note commonly used group names, protocols, and node sources, but don't share diagnostic files together with the original file if it contains credentials. Once you've confirmed that the new subscription refreshes manually, enable automatic updates at a reasonable interval. Put custom rules in the client's override mechanism rather than directly editing a cached file that will be downloaded again. If settings change after an update, work out whether the source changed node or group names, or the client restored its default selection—these require fixes in different places.
8. Choose Nodes for the Way You Use Them
Desktop Browsing and Sync: Start with a Configuration You Can Verify
For browsing, research, and occasional sync, start with nodes that already connect reliably on your current network. Basic SS can serve as a baseline; if you already have a complete Trojan, VLESS, or VMess configuration, include it in the comparison. If cold-start speeds are similar, make the one that reconnects less often and survives configuration updates your default. Test sign-in, uploads, and downloads separately; they may take different request paths. Keep the proxy mode consistent during testing, or some tasks may go direct and make two nodes appear identical.
Long-Distance Routes, Weak Networks, and Real-Time Apps: Choose for the Task
If your main problem is fluctuating throughput over a long-distance route and outer UDP is reliable, add Hysteria2 and TUIC to the comparison. Use a regular sync task to check for repeated stalls instead of focusing on peak download speed. For calls and interactive apps, pay close attention to continuity and latency variation; for games and voice apps, also confirm that their datagrams actually use the intended route. For these tasks, fewer interruptions may matter more than higher throughput, even if average speed stays the same.
If you often switch from Wi-Fi to cellular while out, test the first request after the handoff separately. Confirm that the app reconnects through the right rule, then note how long recovery takes and whether failures are reproducible. If one node works on one network but not another, keep two verified options rather than forcing one to cover every situation. If the system automatically suspends the background tunnel, first check the app's background permissions and routing state. Switching protocols alone may leave you with the same interruption every time.
Low-Power and Always-On Devices: Include Background Behavior in Your Choice
For an always-on device with little interactive traffic, reducing unnecessary probes is usually more practical than chasing protocol overhead on paper. Choose a complete, maintainable configuration that runs reliably under your typical workload, and set reasonable intervals for updates and probes. If the core runs on a router, also check whether heavy traffic saturates the CPU and slows down other devices. A setup that works for one device isn't necessarily suitable for a household sharing the connection. For more on deployment location and traffic routing, see the OpenWrt and Side-Route Deployment Overview.
How to Investigate Two Common Issues
Why Does the Same Node Work on My Phone but Time Out on My Computer?
Connect both devices to the same network first, then make sure the computer is using the same node—not another entry in a proxy group with the same name. Compare the active core, outer transport, security settings, and system time. If the computer only has the system proxy enabled, some apps may bypass it. Test with an app that explicitly supports that proxy entry to rule out routing coverage. If the error occurs while loading the configuration, investigate its format and fields before troubleshooting the network.
Automatic Testing Picked a Slower Node. Should I Change Protocols?
First check whether the automatic group's probe target resembles the task you're testing and whether the displayed result is an old one from before the switch. Then lock in two candidates and alternate between them using the same app for several rounds. If the real-world difference is consistent, assign that task to a suitable manual group first, then decide whether the probe settings need adjustment. If the issue is rule matching, fix it under Proxy Modes and Rules rather than changing the node's protocol fields.
Finish with a short note: what the default node is for, which networks you've tested it on, which node to switch to if it fails, and who provides configuration updates. When you move to a new device, retest your regular tasks instead of comparing every protocol from scratch. If you come across an unfamiliar field, check the glossary. If a new configuration really does require a different core, check the available clients for your operating system on the downloads page. A few clear, repeatable findings are more useful than a latency ranking that changes with the network.