Update README.md
xtaci authored 7 years ago
GitHub committed 7 years ago
30 | 30 | ``` |
31 | 31 | The above commands will establish port forwarding for 8388/tcp as: |
32 | 32 | |
33 | Application -> KCP Client(8388/tcp) -> KCP Server(4000/udp) -> Server(8388/tcp) | |
33 | > Application -> **KCP Client(8388/tcp) -> KCP Server(4000/udp)** -> Target Server(8388/tcp) | |
34 | ||
35 | Tunnels the original connection: | |
36 | ||
37 | > Application -> Target Server(8388/tcp) | |
34 | 38 | |
35 | 39 | ### Install from source |
36 | 40 | |
51 | 55 | |
52 | 56 | > **Q: I have a high speed network link, how to reach the maximum bandwidth?** |
53 | 57 | |
54 | > **A:** Increase `-rcvwnd` on KCP Client and `-sndwnd` on KCP Server **simultaneously & gradually**, the mininum one decides the maximum transfer rate of the link, as `wnd * mtu / rtt`; Then try downloading something and to see if it meets your requirements. | |
58 | > **A:** Increase `-rcvwnd` on KCP Client and `-sndwnd` on KCP Server **simultaneously & gradually**, the mininum one decides the maximum transfer rate of the link, as `wnd * mtu / rtt`; Then try downloading something and to see if it meets your requirements. | |
59 | (mtu is adjustable by `-mtu`) | |
55 | 60 | |
56 | 61 | #### Improving Latency |
57 | 62 | |
153 | 158 | |
154 | 159 | ![reed-solomon](rs.png) |
155 | 160 | |
156 | Setting parameters of RS-Code with ```-datashard m -parityshard n``` on both KCP Client & KCP Server. | |
161 | Setting parameters of RS-Code with ```-datashard m -parityshard n``` on **BOTH** KCP Client & KCP Server. | |
157 | 162 | |
158 | 163 | #### DSCP |
159 | 164 | |
211 | 216 | |
212 | 217 | Compression may save bandwidth for **PLAINTEXT** data, such as HTTP data. |
213 | 218 | |
214 | Compression is enabled by default, you can disable it by setting ```-nocomp``` on both KCP Client & KCP Server. | |
219 | Compression is enabled by default, you can disable it by setting ```-nocomp``` on **BOTH** KCP Client & KCP Server. | |
215 | 220 | |
216 | 221 | #### SNMP |
217 | 222 |