Git Product home page Git Product logo

Comments (1)

enobufs avatar enobufs commented on August 20, 2024 2

Thanks @Antonito - it was nice chatting with you earlier.

Since current SCTP does not have congestion control, it tries to send all the pending data pushed by the application. As network bandwidth is finite, I can image lots of packet loss would be happening if you push large data too fast (probably, the CPU is doing large number of retransmissions also).

Even with proper congestion control is implemented, it is still the application's responsibility to control how fast data has to be pushed to the data channel, which is typically done by monitoring a parameter called "bufferAmount" which is, again, not available yet.

https://developer.mozilla.org/en-US/docs/Web/API/RTCDataChannel/bufferedAmount

If you push large data at once, SCTP layer would be busy working on appending and sorting the send buffer (payloadQueue), so I can imagine much CPU time is spent for sorting the data a lot.

Once the congestion control is implemented, we should be able to enable bufferedAmount (and other related threshold) parameter, with which the application can control the amount of data to be pushed to the channel.

I will also looking into more efficient way to manage buffered chunks. (append / sorting arrays may not be super efficient).

Relates to #11

from sctp.

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.