Skip to content

oyyd/kcp-node

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

51 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

kcp-node

Build Status Coverage Status

Features / Main Dependencies

  • Performance -> More native Modules (the frequency of gc is the critial factor for node)

Environment

node 6+

Install

Usage

Protocol

KCP

+------+-----+-----+-----+----+----+-----+-----+
| CONV | CMD | FRG | WND | TS | SN | UNA | LEN |
+------+-----+-----+-----+----+----+-----+-----+
|  4   |  1  |  1  |  2  | 4  | 4  |  4  |  4  |
+------+-----+-----+-----+----+----+-----+-----+

KCP-GO Session Specification

+-----------------+---------------+---------------+-----+
| NONCE(optional) | CRC(optional) | FEC(optional) | KCP |
+-----------------+---------------+---------------+-----+
|     16          |      4        |       8       |     |
+-----------------+---------------+---------------+-----+

Performance and Benchmark

sudo sysctl net.inet.udp.recvspace=4194304

About Multiplexing

  • Data that comes later have to wait previous data to be transmited.
  • New data don't have to probe appropriate window size again.

Unsigned Timestamp Manipulation

getCurrent

Relatives

LICENSE

MIT

Releases

No releases published

Packages

No packages published