p*m
2 楼
I found these 3 links helpful in understanding this better
https://www.bestvpn.com/guides/openvpn-tcp-vs-udp-difference-choose/
https://stackoverflow.com/questions/5485756/can-udp-retransmit-lost-data
https://stackoverflow.com/questions/107668/what-do-you-use-when-you-need-
reliable-udp
Basically, UDP is faster, and can sometimes be much faster, especially over
long distances. TCP will sent packets and then stop and wait for an
acknowledgment. Over long distances that wait time can increase. UDP does
not wait, it keeps sending packets.
You might think this would be too unreliable since files you transfer likely
won't open unless you get all the packets that carry their contents.
However, in most cases it is possible to implement a degree of reliability
on top of UDP. basically, the receiver can notice that a packet is missing
and then it can repeat the request for that packet. But there won't be the
wait time since the sender is not waiting for an acknowledgment. It keeps
sending at full speed and then from time to time it might get a request for
the same packet again. But receiving a second request does not make it wait
and be idol. But with TCP it will wait and be idol while it waits for an
acknowledgment.
There are some cases where TCP is still better. Especially when you want the
packets to arrive in the right order. There are some VPN servers that use
TCP, but for things like torrenting or streaming, speed is more important
and a lost packet can be requested again.
https://www.bestvpn.com/guides/openvpn-tcp-vs-udp-difference-choose/
https://stackoverflow.com/questions/5485756/can-udp-retransmit-lost-data
https://stackoverflow.com/questions/107668/what-do-you-use-when-you-need-
reliable-udp
Basically, UDP is faster, and can sometimes be much faster, especially over
long distances. TCP will sent packets and then stop and wait for an
acknowledgment. Over long distances that wait time can increase. UDP does
not wait, it keeps sending packets.
You might think this would be too unreliable since files you transfer likely
won't open unless you get all the packets that carry their contents.
However, in most cases it is possible to implement a degree of reliability
on top of UDP. basically, the receiver can notice that a packet is missing
and then it can repeat the request for that packet. But there won't be the
wait time since the sender is not waiting for an acknowledgment. It keeps
sending at full speed and then from time to time it might get a request for
the same packet again. But receiving a second request does not make it wait
and be idol. But with TCP it will wait and be idol while it waits for an
acknowledgment.
There are some cases where TCP is still better. Especially when you want the
packets to arrive in the right order. There are some VPN servers that use
TCP, but for things like torrenting or streaming, speed is more important
and a lost packet can be requested again.
p*m
3 楼
根本不需要vpn
gmail工作的很好 所以都可以 mitbbs也没问题
gmail工作的很好 所以都可以 mitbbs也没问题
相关阅读
想网络唤醒计算机,但目标计算机只有睡眠时才能唤醒,关机了就毫无反应笔记本真是白菜价了:做硬件真是不赚钱了 (转载)~~求推荐简单易用的穿墙神油~~问问如何升级Dell Inspiron 530Any portable external harddrive deal?$499 Dell XPS 8500 Desktop (Core i7 3770, 8GB, 1TB, GT 640)这个显卡怎么样?硬盘dealStaples Kingston V200 SSD 128G $79.99求教,i5 3570K 要配什么散热器?HTPC 要配什么大小的主板?【HOT】 Seagate 3T 99.99看了SSD的价格就想跳楼神扇212plus新蛋$15AR2TB Seagate USB 3.0 External HD $80求i5或i7的dealSamsung MZ-7PC128B/WW 830 128GB 2.5" SATA III SSD $80cheap and yet reliable external dvd burner?友情提示,3T硬盘deal,速度what to buy