6 ms·
> This release adds Kernel Connection Multiplexor (KCM), a facility that provides a message based interface over TCP for accelerating application layer protocol
by wyldfire 11y ago
> This release adds Kernel Connection Multiplexor (KCM), a facility that provides a message based interface over TCP for accelerating application layer protocols. ... a common use case is to implement a framed application layer protocol running over TCP ...
This was discussed on HN a while back. Gee, it's too bad that SCTP hasn't found more popularity. Reliable datagram-based (or stream-based) messaging, with support for binding to multiple endpoints.
In any case, KCM sounds like it's worth exploring.
- signa11 11y ago> In any case, KCM sounds like it's worth exploring. here is the previous (spartan !) discussion: https://news.ycombinator.com/item?id=10310090 https://news.ycombinator.com/item?id=10310090
- IgorPartola 11y agoMy thought exactly. I have always wondered why SCTP was not on the same level as UDP and TCP. It's really too bad, since it would be perfect for lots of higher level protocols, especially ones that don't require streaming (SMTP for example). KCM seems really neat, though of course now we need a library that abstracts it away and has a fallback to regular TCP so that applications don't become Linux-only.
- saurabhjha 11y agoI heard that BSD is really good with network stuff with their kqueue. See for example this comparison http://www.eecs.berkeley.edu/~sangjin/2012/12/21/epoll-vs-kqueue.html http://www.eecs.berkeley.edu/~sangjin/2012/12/21/epoll-vs-kq... In particular, epoll cannot be used with disks. Is it still the case that BSD has an edge over Linux? Is KCM addressing the problem of handling a lot of hanging connections? Please point out if my assumptions are incorrect. I am new to kernel and network programming. Edit: By BSD I mean FreeBSD
- c2279659 11y agoThat's highly doubtful, the last BSD release was 21 years ago.
- pritambaral 11y agoepoll alone cannot be used with disks, but I think aio supports getting/setting eventfds so it can be used with epoll. I don't know it well enough, perhaps someone more knowledgeable than I can chime in.