User Tools

Site Tools


devel:completing_msrp

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

devel:completing_msrp [2013/01/08 11:54]
pd created
devel:completing_msrp [2013/01/12 00:24] (current)
pd
Line 15: Line 15:
  
 ===== SEND chunking ===== ===== SEND chunking =====
-An MSRP relay has the option of splitting large MSRP messages (including those that are already chunked) into smaller chunks.  The reason is that there is no maximum size for an MSRP chunk, so it is entirely possible for a client to attempt to send a large file in a single, very-large, MSRP message.  In this cases it becomes important to pull the message from the receive buffer in small pieces (instead of waiting for a complete message to arrive and over-flowing the receive buffer) and relaying it in smaller chunks.+An MSRP relay has the option of splitting large MSRP messages (including those that are already chunked) into smaller chunks.  The reason is that there is no maximum size for an MSRP chunk, so it is entirely possible for a client to attempt to send a large file in a single, very-large, MSRP message.  In this case it becomes important to pull the message from the receive buffer in small pieces (instead of waiting for a complete message to arrive and over-flowing the receive buffer) and relaying it in smaller chunks.
  
 Also, the flow control for MSRP is based around TCP windowing, so if you want to limit the rate that someone is sending you MSRP messages (for example during the transfer of a large file) you do so by pulling from the TCP buffer at a lower rate.  One way of avoiding overloading an MSRP relay is to have fairly small TCP receive buffers thereby limiting the rate at which clients and relays can send data.  However, if the TCP buffers are small the chances of a client sending a message or chunk that is too large (and needs to be chunked by the relay) increases further. Also, the flow control for MSRP is based around TCP windowing, so if you want to limit the rate that someone is sending you MSRP messages (for example during the transfer of a large file) you do so by pulling from the TCP buffer at a lower rate.  One way of avoiding overloading an MSRP relay is to have fairly small TCP receive buffers thereby limiting the rate at which clients and relays can send data.  However, if the TCP buffers are small the chances of a client sending a message or chunk that is too large (and needs to be chunked by the relay) increases further.
devel/completing_msrp.1357642493.txt.gz ยท Last modified: 2013/01/08 11:54 by pd