Coder Social home page Coder Social logo

Comments (18)

xtaci avatar xtaci commented on July 17, 2024

what exactly does Connection migration means?

from kcp-go.

heri16 avatar heri16 commented on July 17, 2024

See https://github.com/devsisters/goquic/blob/master/README.md or https://mosh.org. Means tunnel is kept open even while switching between 3G or WiFi, or connecting over different uplinks.

from kcp-go.

heri16 avatar heri16 commented on July 17, 2024

Zerotier does this very well. UDP Packets can come in over any interface or route but are first validated. Only if successfully validated, will the new udp connection/source be registered as an active path. Tested kcptun with --conn 2 and Kcptun breaks the inside TCP connection when the WAN on client side does failover.

from kcp-go.

xtaci avatar xtaci commented on July 17, 2024

yes, i mean , connection migration is another layer above connection

so, it's not to be implemented in this layer, It should be designed as an overlay network library.

from kcp-go.

heri16 avatar heri16 commented on July 17, 2024

Tested kcptun with --conn 2 and Kcptun breaks all tunneled TCP connections when the WAN on client-side does failover to another uplink. Should this issue be under kcptun repo?

from kcp-go.

xtaci avatar xtaci commented on July 17, 2024

this library acts exactly(almost) like a TCPConn, behaves like a TCPConn.

ovpn(or other IP over IP tech) can act as an overlay network above this connection, i think it's the correct way.

from kcp-go.

heri16 avatar heri16 commented on July 17, 2024

Behaves like a TCP connection sounds just like QUIC protocol specification by google. Just that kcp does not do connection migration which is one less feature. Which makes it unsuitable for mobile.

from kcp-go.

heri16 avatar heri16 commented on July 17, 2024

Would the QUIC Google Chrome developers say: oh, just use another overlay network like ovpn to access your website.

from kcp-go.

heri16 avatar heri16 commented on July 17, 2024

Are there other considerations that I am not aware of as to why this feature request is being refused? Yes, KCP should be a reliable transport over UDP, but it does not mean that connection migration is out of scope cause the inside stream should not need to care that the uplink or udp source/dst has changed many times since the stream opened.

from kcp-go.

xtaci avatar xtaci commented on July 17, 2024

connection migration needs careful design of authentication & authorization, it's so complicated, and like session hijacking, and QUIC hasn't larged deployed in mobile devices(i think), from my experience, application-level auto-reconnection is enough for most non-realtime applications.

from kcp-go.

xtaci avatar xtaci commented on July 17, 2024

the intention of kcp.conv is connection migration

from kcp-go.

xtaci avatar xtaci commented on July 17, 2024

but, it's so easy for session hijacking, actually , I haven't found a way for secure connection migration, it's definitely a hard problem.

from kcp-go.

heri16 avatar heri16 commented on July 17, 2024

Thanks for the explanation. Is integrity and authenticity validated on every kcp udp packet in the current implementation? https://en.m.wikipedia.org/wiki/Authenticated_encryption

from kcp-go.

AudriusButkevicius avatar AudriusButkevicius commented on July 17, 2024

It would be nice if this was an option. If you are using tls on top of kcp, the only thing you can do by hijacking is DoS. Linux/Android also supports mTCP (multipath tcp) that does the same thing, which could perhaps be an inspiration on how to make hijacking hard.

from kcp-go.

xtaci avatar xtaci commented on July 17, 2024

We can add AEAD for every outgoing udp packet, but it's far from the entire story.
The hard part is how to prove it's security.

from kcp-go.

AudriusButkevicius avatar AudriusButkevicius commented on July 17, 2024

That doesn't really help as the key exchange still happens in plain text as far as I understand.

from kcp-go.

xtaci avatar xtaci commented on July 17, 2024

most key exchange use DH algorithm, that's not a problem for establishing temporary encrypted session without authorization.
when switching client uplink, how can you tell from a Captured Replay Attack Packet from a Real Uplink change?

from kcp-go.

xtaci avatar xtaci commented on July 17, 2024

I think we need to figure out the whole picture of how QUIC handles connection migration first.

from kcp-go.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.