Protocol Guide · Choosing the Right Setup

Clash Protocols and Core Reference

Choosing a protocol starts with confirming what the server offers, what the client can parse, and what your network can support—not comparing speed. If you already have a subscription and are setting up your first connection, follow the import and verification steps in Getting Started. For protocol comparisons, configuration migrations, or compatibility issues, use the sections on this page.

Six Proxy Protocols Core Compatibility Subscription Formats

Protocol Layers and Shadowsocks

Separate the Local Entry Point, Proxy Protocol, and Transport

A request in a Clash client involves at least three decisions. First, an app hands traffic to the core through the system proxy, a local port, or a virtual network interface. The core then selects an outbound based on its mode and rules. Finally, the outbound protocol determines how to communicate with the remote server. The system proxy and TUN belong to the first stage, rule mode to the second, and Shadowsocks to the third. Enabling TUN does not turn Shadowsocks into another protocol, and switching to Global mode does not change the node handshake. Keep these stages separate when choosing a setup so you do not try to fix a local issue by switching protocols.

The local entry point does not determine what the remote server uses. A browser can connect through a local HTTP proxy while the core uses a QUIC-based protocol to reach the server. Conversely, handing UDP traffic to the core does not mean the selected outbound can handle it. When a guide says “UDP support,” check which stage it means: whether the local listener accepts UDP, whether the outbound can forward the destination’s UDP traffic, or whether the client-to-server connection itself uses UDP as its transport. These are not equivalent.

Shadowsocks Design Trade-offs

Shadowsocks is often abbreviated as SS. It is designed for encrypted proxy forwarding, typically without a separate outer TLS session. A node usually provides a server address, port, encryption method, and key material. With fewer configuration fields, it is easier to compare the client and server settings one by one—but the encryption method is not a speed control. Both ends must support the same method and agree on key format, relay behavior, and any optional extensions. Seeing a method in the client’s dropdown only means the client recognizes it; it does not mean the remote server accepts it.

Modern configurations commonly use traditional AEAD methods or Shadowsocks 2022 methods. Both provide authenticated encryption, but they do not use interchangeable packet formats. Traditional methods often derive keys from a password; 2022 methods specify exact encoding and length requirements for pre-shared keys, which vary by encryption method. When importing a node, preserve the full method name and key format provided by the service. Do not replace a year-based method with a similar-looking legacy name or treat an encoded string in a share link as a password you can rewrite freely.

Lightweight Does Not Always Mean Faster

A simpler design can mean one fewer layer of external session state to maintain, making it a useful baseline on a stable network. But the time a large download takes also depends on network congestion, server-side limits, processing capacity at both ends of the proxy, and the destination site. Whether encryption becomes a bottleneck depends in part on hardware acceleration available on the processor. Rather than relying on algorithm rankings measured on someone else’s device, check whether a task saturates a CPU core on your own device and whether the results are repeatable with another node.

For troubleshooting, start with a short connection to a known-reachable destination, then test the traffic your app actually needs. If web pages load but a voice call has no audio, check whether the app sends UDP to the local core, whether the outbound can forward it, and whether a rule routes the call elsewhere. If both web pages and apps fail, check remote address resolution, port reachability, the method, and the key in that order. Narrowing down the failure before editing the configuration helps avoid treating unrelated symptoms as one problem.

VMess and Trojan: Authentication and TLS Compared

VMess: From User Identity to Transport

VMess comes from the V2Ray ecosystem and separates the proxy request format from its transport. Configurations typically use a UUID to identify the user, while allowing nodes to connect to the server over different transports. The same address and UUID can correspond to different entry points; a server listening for raw TCP does not necessarily accept WebSocket on the same port. A node may appear to be the same VMess connection, but it works only when the server’s listener behind the port matches the transport selected in the client.

Modern VMess configurations commonly use AEAD request-header authentication, typically with alterId: 0. A nonzero alterId in older configurations is a legacy approach and should not be treated as a general fix for connection problems. When migrating an old subscription, ask the provider which format the node currently uses. If the client no longer includes the relevant legacy implementation, adding an old field will not restore compatibility. VMess authentication also depends on time. If handshakes fail after a device wakes from sleep or its clock falls out of sync, check system time synchronization first. Changing the displayed time zone will not correct a clock drift.

Check the outer transport separately. For WebSocket connections, the path and HTTP host name must match the remote entry point’s forwarding rules. If TLS is also enabled, certificate validation must pass as well. Even when the address and port are reachable, a wrong path may return a regular web page or reject the upgrade request. Fix the transport issue first, until the request reaches the proxy service, then check the UUID. An error-free interface does not guarantee that every option from the share link was preserved.

Trojan: Establish TLS Before Sending Proxy Requests

The classic Trojan setup establishes a TLS connection first, then sends an authenticated proxy request through it. Troubleshoot it as two separate checks: whether the connection passes normal certificate validation, and whether the proxy service accepts the password. If the logs report a certificate name mismatch, compare the connection address with the TLS server name provided by the service. When connecting directly to an IP address, the certificate may have been issued for a domain; the IP is not automatically a valid identity for that certificate. For an expired certificate, determine whether the device clock is wrong or the server certificate actually needs renewal.

A completed TLS handshake means an encrypted session was established with the endpoint identified by the certificate. It does not mean Trojan accepted the password. A load balancer or proxy in front may accept the connection without forwarding subsequent requests to the correct proxy instance. If one client works and another fails, first compare the server names they actually send, the transport in use, the source of trusted certificates, and whether they resolve to the same endpoint. Then check whether an importer truncated the password. Treating certificate verification bypass as a routine fix removes server identity checks and can hide root causes such as an incorrect address.

How to Compare the Two

If an existing entry point works, keep the protocol and settings provided by the server. When comparing alternatives, track raw TCP, TLS over TCP, and WebSocket through a relay as separate configurations; changing any one of these can affect the initial handshake, connection reuse, and server load. Reused connections and freshly established short-lived connections should not be measured in the same set. Otherwise, differences caused by a reverse proxy or connection caching may be incorrectly attributed to VMess or Trojan itself.

VLESS: Separate User Identity, Transport, and Security Settings

Why Fewer Fields Do Not Make Compatibility Simple

VLESS follows the V2Ray ecosystem’s approach of separating the proxy format from the outer transport and is commonly used in the Xray ecosystem. Its base request format is relatively simple and identifies users with a UUID. In common share links, encryption=none means encryption is not enabled at this layer; it does not mean the outer connection is necessarily unencrypted. A node using TLS still gets encryption and server identity verification from the outer layer. Conversely, without an appropriate security layer or other safeguards, a user ID cannot replace transport encryption. Check the full combination rather than judging by the protocol name alone.

When migrating a VLESS node, record the server address and port, transport, security settings, user ID, and any optional flow control separately. Different interfaces may label the server name “SNI” and the transport “network” or “transport protocol.” These terms may look similar, but they are not interchangeable. The address identifies the endpoint to connect to; the TLS server name is used to establish the corresponding secure session. If the transport runs over HTTP, it may also have a separate HTTP host name and path. These values may match or differ, depending on how the server is deployed.

Check Transport and Optional Settings as a Set

Raw TCP, WebSocket, and gRPC are different connection methods. A TCP entry does not need a WebSocket path. When WebSocket connects through a front-end service, a wrong path may send the request to a different site. gRPC uses its own service name; do not copy a WebSocket path into that field. A single incorrect field can make a node appear in the list while latency checks fail. Confirm what the remote server accepts, then verify the imported values. This is more reliable than trying dropdown options one by one.

Some nodes also use specific security implementations, such as REALITY, or include a flow option. A client that recognizes type: vless does not necessarily implement that security feature or support every combination of flow control and transport. An importer may preserve the basic fields but ignore parameters it cannot map. The node name can still appear even though the connection method has changed. In that case, check the client’s bundled core documentation for the full combination, or request a configuration the client can read directly. Do not delete unfamiliar options just to get the import to work and then blame the network when the connection fails.

Use the Failure Point to Decide What to Check Next

First check whether the address resolves and whether the result is expected; then check whether a connection can be made to the listening port. If TLS is in use, verify the system clock, server name, certificate chain, and trust source. Only after these checks pass should you compare transport options, user identity, and flow control. If a node works on one device but not another, confirm that both devices are using the same configuration—not merely showing the same node name—and that client overrides have not changed their connection settings.

If one device is running an older core, switching clients may not be the easiest fix. If the service also offers a compatible outbound such as SS or Trojan, use one that the device can parse correctly to keep it connected. If you must use this VLESS node, compare clients on the platform downloads page and check core and transport support. When switching, test one node first: verify the initial connection, sustained traffic, and recovery after sleep before moving your existing routing rules. This helps distinguish protocol compatibility issues from problems introduced during migration.

Hysteria2 and TUIC: QUIC-Based Outbounds

First, Check Whether UDP Can Reach the Server

Hysteria2 and TUIC can both use QUIC over UDP for client-to-server connections. QUIC streams can deliver data independently, so packet loss on one stream does not necessarily make other streams on the same connection wait for its missing data. This differs from putting multiple tasks into a single ordered TCP byte stream. However, streams still share the connection’s congestion and available bandwidth, so packet loss can reduce overall throughput. QUIC retransmission and encryption also require processing; UDP does not mean unreliable delivery, no congestion control, or guaranteed higher speed.

Before deciding whether these protocols are suitable, confirm that the current network allows access to the server’s UDP port. Being able to open an HTTP/3 website does not prove that a different address and UDP port are reachable. Office networks, hotel Wi-Fi, and mobile connections may use different UDP idle-timeout policies. If a connection works initially but hangs when reused after sitting idle, test idle recovery separately instead of measuring only continuous downloads. Whether a session survives a network change also depends on both implementations and the network path; the protocol name does not guarantee it.

Hysteria2: Consider Bandwidth Estimates and Packet Loss

Hysteria2 is designed for high-latency or lossy paths. It carries proxied TCP sessions over QUIC streams and can also use datagrams to forward proxied UDP traffic. Common node settings include authentication details and TLS options; some configurations also specify upload and download bandwidth. These settings affect congestion control—they do not increase your local access speed. Before entering them, check the units, direction, and server-side limits. Entering the advertised broadband speed without adjustment may make bursts and queueing more noticeable.

Do not treat the older Hysteria protocol and Hysteria2 as the same node type with different names. If the provider specifies Hysteria2, the outbound implementation must support that protocol generation. A setup that works well on broadband may perform poorly on shared Wi-Fi during peak hours. Keep the provider’s settings and test the same files at fixed times first, then check web response times during sustained uploads. The goal is not a single peak-speed result, but confirming that higher throughput does not come at the cost of noticeably worse responsiveness.

TUIC: Consider Protocol Version and Datagram Semantics

TUIC also organizes multiple proxy tasks within a single QUIC session. When migrating, first check which protocol versions the implementation supports, then verify the authentication fields. Common newer configurations use a UUID and password; an older-generation token is not a drop-in replacement. Some implementations offer different UDP relay modes, affecting whether proxied datagrams travel as QUIC datagrams or over reliable streams. Datagrams are not retransmitted after packet loss; reliable streams can recover lost data, but retransmission and queueing may make it arrive too late. Choose based on how much delay and loss the app can tolerate, not just the option name.

If both protocols have working nodes on the same network, compare three situations separately: the first request after connecting, small pages opened during sustained traffic, and recovery after sitting idle. For calls or games, test with the actual app to measure jitter and interruptions instead of relying on a web probe’s round-trip time. If both protocols fail on the same network while a TCP-based backup works, check for a shared UDP path or port restriction first. If only one fails, compare that implementation’s authentication, certificates, and protocol version.

Connection Speed, Resource Use, and Mobile Battery Life

Define “Fast”: First Response, Completion Time, or Reliability

The latency shown by a client usually comes from a probe and depends on its destination, whether the connection is reused, and current network conditions. It cannot predict large-file throughput or the time an application server spends in a queue. For everyday browsing, the first request and repeated short requests are more noticeable. Downloads depend on sustained transfer speeds; real-time apps are more sensitive to jitter and disconnects. Compressing every experience into one millisecond value can make a node suited to one task look like the best choice for everything. Automatic selection groups also work from their own probe conditions and cannot see the destinations your apps actually connect to.

Keep the device, connection type, destination, routing mode, and app version consistent during tests. Do not compare one protocol’s direct connection with another protocol’s proxied connection. Test cold starts and warm connections separately, rotate candidates in an alternating order, and record failures. If two nodes use different regions, providers, or routes, the results compare two complete entry points—not the protocols themselves. Even when one provider offers both protocols, check whether they share an exit and rate limits. Different exits are a factor to account for, not noise to discard.

MetricWhat to RecordCommon Pitfall
Initial ConnectionFirst response, number of timeoutsDo not use a reused connection as a cold-start result
Sustained TransferCompletion time for the same file, speed variationSeparate local bandwidth from server-side limits
Idle RecoveryRecovery delay, number of reconnectionsDistinguish idle timeouts from network changes
Device ResourcesCPU and memory at idle and under loadDo not treat the UI and core as a single process

Interpret CPU and memory in the context of the task

SS can be a relatively simple baseline. Configurations with outer TLS require an additional handshake and state at each layer. QUIC implementations typically handle more timing, encryption, and packet processing in user space, which can increase CPU use by the core under high throughput. Here, “core” means the proxy engine, not the operating system kernel. Hardware acceleration, network interfaces, and implementation optimizations vary by platform, so these design differences do not translate directly into fixed resource usage. A brief CPU spike is not necessarily more power-hungry than a task that runs longer at a lower, sustained load.

When comparing memory use, look beyond connection state to rule data, domain data, session buffers, and the graphical interface process. After many connections are opened and closed, the system may leave allocated memory available for the process to reuse; a single screenshot is not enough to diagnose a leak. Record the idle baseline, run the same number of concurrent connections for a fixed period, then observe memory after the load ends. If the same protocol uses much more memory in one client than another, compare rule sets and UI processes before comparing core implementations.

Mobile Battery Use: Separate Background and Foreground Activity

Phone battery drain is not just caused by encryption. Frequent health checks, keepalives, background app requests, and reconnects on a weak signal can all wake the radio. Screen use, system updates, and app sync are also confounding factors. First, run a fixed foreground task on the same Wi-Fi network with similar signal strength and screen brightness. Then run a separate locked-screen idle test. Do not compare battery readings from mobile data in the morning with Wi-Fi in the evening to choose a protocol. The system battery page is useful for spotting trends; confirm small differences with repeated tests.

If battery drain is concentrated during idle time, check for overly frequent node tests, subscription updates, or unnecessary background modes first. Change one setting at a time and make sure the connection still recovers after the screen locks. Reducing background requests may help more than switching protocols, but if lower request frequency causes repeated session failures, balance it against idle-timeout behavior. For more on how probe results affect node selection, see Four Factors for Choosing a Proxy Node.

Original Clash, Clash.Meta, and mihomo

The Client Interface Does Not Tell You Which Core Is Running

Original Clash established a configuration structure commonly used across the ecosystem: proxy definitions, policy groups, and rules matched in order. Clash.Meta extended this foundation with capabilities such as outbounds, DNS, and network access, and later continued as mihomo. They share some field names and conventions, but they are not interchangeable binaries. A node appearing in the GUI does not prove that the engine accepted all its fields. When choosing a client, first identify which core it actually starts, then check whether that core supports the required protocol and combination of settings.

A client’s name is useful for finding the installer, not for confirming compatibility. Clash for Windows, which is no longer maintained, can help identify where a migration starts, but its name does not tell you whether it can read newer configurations. To get a client, start with the client downloads page. On platforms that offer Clash Plus, check that client first; compare other options against the list for each platform. Confirm support in the client’s About page, core information, or startup logs. If both the UI and core versions are available, record them separately. A client’s release notes do not necessarily describe the version of the core it bundles.

Matching Configuration Field Names Do Not Guarantee Matching Behavior

proxies, proxy-groups, and rules in an older configuration can be a starting point for migration, but specific proxy types, rule types, or optional settings may not be supported by the target core. Even if the configuration parses in a newer core, its behavior may not be identical. For example, the domain used for rule matching may come from the app, DNS mapping, or traffic inspection. If these stages are configured differently, a request that used to match a domain-based group may fall through to a default rule. Verify important apps one by one instead of relying on a global “Connected” status.

The interface may also override the configuration. A subscription is the source file; the client often generates a merged effective configuration for the core. Overrides can change ports, proxy modes, or DNS settings. A manual policy-group selection may also be stored locally rather than in the subscription. Before migrating, back up the source subscription, custom rules, and overrides separately. Afterward, check the effective configuration and connection records. Do not assume that the node currently selected in the interface was hard-coded in the subscription.

Isolate Configuration Loading with a Minimal Setup

If you have a standalone mihomo binary and its command is on your PATH, save the small file below as config.yaml in your working directory and run a configuration test. This example listens only on a local mixed-proxy port and uses a DIRECT rule. It contains no remote nodes, subscription links, or external rule sets. It checks whether basic fields are recognized; it does not prove that a full subscription works. A graphical client may not expose the same command, so check its configuration load results and startup logs instead.

mixed-port: 7890
allow-lan: false
mode: rule
rules:
  - MATCH,DIRECT
mihomo -t -f ./config.yaml

A configuration test does not check ports or external connections in practice. If the full setup fails at startup, first check whether another client is already using the local port. Then add one known-good proxy, a policy group, and the rules you need, one layer at a time. This helps distinguish a loading error from a connection error. If the failure begins after adding a rule set, investigate its URL or format rather than blaming the proxy node that worked earlier. To keep familiar workflows from an older client, see How to Migrate from a Discontinued Client.

Subscription Formats, Imports, and Rule Compatibility

Check What the URL Returns Before Asking Whether It Can Be Pasted

A subscription URL is a way to retrieve content, not a content format. It might return a complete Clash YAML configuration, text containing several share links, or a Base64-encoded list of text entries. Seeing content in a browser proves only that a response was received; it does not prove that the target client can use it. Some services return different formats depending on the request. An expired link, account status change, or incorrectly copied URL may also return a login page or error message. If parsing fails, check the subscription type and status in the service dashboard, then confirm what format the client expects.

A full configuration can contain nodes, policy groups, rules, and other core settings. A share link usually describes one outbound; importing a list of links does not automatically restore the original routing rules. A proxy collection is often used as input for proxy-providers, which a policy group in the main configuration can reference. It is not the same as a standalone, ready-to-run configuration. Do not judge the format by the file extension alone. Some servers return YAML without a file extension, while a URL ending in a configuration filename may actually return an error page.

Content TypeTypical UseWhat Else to Check
Complete Clash YAMLImport as the main configurationCore fields, references, and local overrides
List of Share LinksExtract one or more proxy definitionsSupported protocols and parameter mapping in the importer
Proxy CollectionReferenced by a proxy provider in the main configurationCollection format, policy-group references, and update status

Once Nodes Appear, Check That Their References Still Work

An expanded node list does not mean the rules are working. Rules reference outbound or policy-group names, and groups may reference other groups or a proxy provider. Renaming or deleting a node, or changing subscription sources, can break these references. Start with a request, check the matching rule and policy on the connections page, then identify the outbound selected by that policy. If rule order changes, a broader rule may match first and prevent a more specific rule from running. Reproduce the issue with a clearly defined test destination before changing the relevant rule order or references.

Another common issue is that several nodes still show their old names even though an update changed their actual settings. Compare the actual outbound type, transport, and address in the local configuration details; do not treat the display name as an identity. If the same node behaves differently in two clients, first check whether the importer ignored any fields, then check for local overrides or changed rules. Keep the previous working configuration if an update fails. It helps distinguish changes returned by the service from local changes, and lets you restore only the part that broke.

Treat Subscription URLs Like Credentials

A subscription URL may grant direct access to your account. When asking for help, share the content type, node protocol, stage where the error occurs, and redacted logs. Do not post the full URL, password, request headers, or screenshots showing query parameters. If you need another format, first check whether the provider offers a subscription for your target client. A third-party converter may need to read the source URL or node details, so consider whether it really needs access to that information. If a URL has been exposed, revoke or replace it on the service first rather than just deleting the chat history.

For a first-time setup, follow Getting Started to import a configuration, choose a policy group, and verify the connection. Before regular updates, identify which rules belong to the subscription and which should stay in local overrides to avoid repeating manual fixes after each refresh. If you are unsure about a field, check the glossary to see whether it belongs to a node, policy group, or rule, then decide whether to change the source configuration, a client override, or a setting in the service dashboard.

Choosing a Setup and Troubleshooting by Use Case

Desktop Browsing and Work: Keep a Reliable Baseline

For desktop browsing, documents, and messaging, start with a standard TCP outbound provided by the service and fully supported by your client. Choose a stable entry point from SS or an existing Trojan, VMess, or VLESS node. For a first test, send a request through the system proxy and check the matching rule and outbound on the connections page. If an app bypasses the system proxy, first check whether it follows system settings. Switch to TUN only if the issue is with the local traffic entry point, not the proxy node. After enabling TUN, check for effects on the local network, name resolution, and other connections.

If you already have a stable TCP baseline and often handle long-distance downloads or parallel tasks, compare Hysteria2 or TUIC where the UDP path is available. Use entry points from the same region and provider where possible, and record completion times for real workloads. If large downloads get faster but video calls or short requests become less reliable, route different apps separately instead of forcing all traffic through one protocol. Keeping the existing working outbound makes it easier to distinguish a network problem from a client issue when UDP ports are unreachable or the remote server is under maintenance.

Phones, Routers, and Shared Networks: Choose for the Device

If your phone frequently switches between Wi-Fi and cellular networks, compare idle recovery, reconnects after network changes, and background battery use first. A node with a higher peak transfer rate may still fail to resume calls or notifications promptly after the screen has been locked. Start with less frequent health checks, then record performance on your usual routes and access points. If only one client can parse the service’s format correctly, compatibility matters more than benchmark results. Find mobile clients through the Android or iOS downloads page.

Routers have different requirements. They may maintain connections and rules for multiple devices over long periods, so prioritize sustained throughput, available memory, and reliability—not short-lived peak speed as measured on a phone. Check the hardware architecture, available memory, and gateway responsibilities before deciding whether to run the core on the router. Leave resources for routing, name resolution, and other services. During testing, confirm a rollback path so a configuration change does not disconnect every device. For prerequisites, see An Overview of mihomo on Routers and Bypass Gateways.

Frequently Asked Questions: Find the Right Layer to Check

A repeatable troubleshooting sequence is: confirm the configuration loads, check that app traffic reaches the core, see which outbound the rules select, then verify the remote connection, certificate, or authentication. After each fix, test the same destination again and keep a record of the changes. If an issue involves subscriptions, policy groups, and protocols, make those changes in three separate steps. Changing everything at once may solve the problem, but it makes it difficult to know which change to keep next time.

When deciding whether to migrate, keep at least one measurable benefit you can test again, such as faster recovery on mobile networks or more consistent completion times for the same file over several runs. If a change only improves probe results but increases battery use, breaks routing, or makes a backup client unable to read the subscription, there is no need to make it the default. When setting up another device, record the essential details: the provider’s original configuration format, supported transports, a client that has been tested successfully, and a fallback outbound. A node name alone is not enough for someone else to reproduce the same result.

Why Can a Node Pass the Latency Test but Apps Still Fail to Connect?

First check whether the app’s request appears on the connections page. If it does not, troubleshoot the local traffic entry point. If it does, check whether the matching rule and outbound are the same as those used by the latency test. If only a specific feature fails, check the destination port and UDP forwarding.

Can I Change a Node’s Type to a Different Protocol in the Client?

No. Changing a label does not convert a protocol. Both ends need compatible implementations and settings. To switch protocols, select another node configuration already provided by the server, or configure the corresponding entry point on a server you administer.