# 协议 / 端口

{% hint style="success" %}
建议所有用户使用 Smart 订阅/托管
{% endhint %}

## 协议兼容性

{% hint style="info" %}
某些路由固件（如: Merlin）可能无法导入和使用仅支持 Shadowsocks 协议的节点
{% endhint %}

<table data-full-width="true"><thead><tr><th>-</th><th data-type="checkbox">Shadowsocks2022</th><th data-type="checkbox">Trojan</th><th data-type="checkbox">Vmess</th></tr></thead><tbody><tr><td>Edge</td><td>true</td><td>true</td><td>true</td></tr><tr><td>5G</td><td>true</td><td>true</td><td>true</td></tr><tr><td>GIA</td><td>true</td><td>true</td><td>true</td></tr><tr><td>OCTO</td><td>true</td><td>true</td><td>true</td></tr><tr><td>IEPL (Air)</td><td>true</td><td>true</td><td>false</td></tr><tr><td>IEPL (Std)</td><td>true</td><td>true</td><td>true</td></tr><tr><td>IEPL (Pro)</td><td>true</td><td>true</td><td>true</td></tr><tr><td>IEPL (Ultra/Plus)</td><td>false</td><td>false</td><td>false</td></tr><tr><td>IEPL (Max/AC/BGP)</td><td>true</td><td>true</td><td>true</td></tr><tr><td>HA</td><td>true</td><td>true</td><td>true</td></tr><tr><td>IX</td><td>true</td><td>true</td><td>true</td></tr></tbody></table>

## 端口

<table data-full-width="true"><thead><tr><th>-</th><th data-type="checkbox">公共端口</th><th data-type="checkbox">个人端口</th></tr></thead><tbody><tr><td>Shadowsocks 2022</td><td>true</td><td>false</td></tr><tr><td>Trojan</td><td>true</td><td>false</td></tr><tr><td>Vmess</td><td>true</td><td>false</td></tr></tbody></table>

{% hint style="warning" %}
虽然 Shadowsocks2022 是在原始 Shadowsocks 协议的基础上进行的改进，但由于其在加密方式、协议结构和安全特性等方面进行了重大修改，导致两者在兼容性和实现上存在显著差异

Shadowsocks2022 和 Shadowsocks 应被视为两个独立的协议
{% endhint %}

***

## &#x20;Shadowsocks 2022

* 采用现代化的 AEAD（Authenticated Encryption with Associated Data）加密方法
* 引入了完整的重放保护机制
* 解决了旧版本中的安全漏洞，确保通信内容的完整性和保密性
* 采用了更高效的加密方法，在提供强大安全性的同时，也提高了加解密效率
* 对 UDP 转发进行了全面改进，引入了独立的会话 ID 和数据包 ID，确保了通信的完整性和安全性

## Trojan

* 利用传输层安全协议（TLS）对流量进行加密，使其在网络中表现为普通的 HTTPS 流量，从而有效规避深度包检测（DPI）和网络审查
* 设计简洁高效
* 支持 UDP over TCP（UoT），提升了在某些应用场景下的性能和稳定性


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.dler.io/black-hole/basic/gu-ding-duan-kou-duan-kou-fu-yong.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
