On Wed, 2014-05-14 at 04:31 +0800, Steve wrote: > Hi, > > I found TLS connection has very poor performance, I could get 10Mbps > by speedtest.net in DTLS, but in TLS, it's only 1Mbps-0.8Mbps. Hello, Benchmarking tcp over tcp is going to give you the results that you see (see also [0]). To measure the real throughput send udp over the tcp connection using nuttcp or any other similar software. The code that handles TLS and DTLS in ocserv should be identical. [0]. http://sites.inka.de/~W1011/devel/tcp-tcp.html regards, Nikos