mirror of
https://github.com/fatedier/frp.git
synced 2026-05-15 08:05:49 -06:00
[GH-ISSUE #491] 关于kcp协议的问题 #373
Labels
No labels
In Progress
WIP
WaitingForInfo
bug
doc
duplicate
easy
enhancement
future
help wanted
invalid
lifecycle/stale
need-issue-template
need-usage-help
no plan
proposal
pull-request
question
todo
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: github-starred/frp#373
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @hijk1234 on GitHub (Oct 22, 2017).
Original GitHub issue: https://github.com/fatedier/frp/issues/491
在服务端kcp_bind_port = 7000开启的情况下,客户端protocol = kcp或者tcp,选择kcp或者选择tcp两者之间区别是什么呢?
[tcp_36791]
type = tcp
local_ip = 127.0.0.1
local_port = 36791
use_encryption = true
use_compression = true
remote_port = 36791
比如说只需要转发tcp服务的情况下,protocol后面选哪个更好呢?
@fatedier commented on GitHub (Oct 22, 2017):
网络环境不好的情况下,比如服务器在国外,丢包比较严重,可以选 kcp,kcp 基于 udp 协议,所以如果 tcp 被防火墙禁了,udp 可以用的话也可以选这个。
kcp 协议在丢包时会采取更激进的方式去重复发包,所以流量会增加一些。网络稳定的时候不需要用。