Scenario | Recommended Mode | Reason | Typical Customer |
Games (FPS/MOBA) | Multi-Send and Selective Receive (Dual-Send) | Small packet traffic, pursuing extremely low latency | Mobile MOBA Games |
Real-time audio and video communication | Real-time mode (RTC) | Audio and video streams have high requirements for continuity. | Audio Call Video Conference |
Live streaming | Aggregation mode | High bandwidth requirement, aggregating multiple channels | Gaming Outdoor Live Streaming |
Policy | Problem to Solve | Post-Trigger Action |
Network performance continues to degrade, requiring acceleration to be enabled. | After the client is called back, the decision is made by the customer. | |
Network performance deteriorates abruptly, requiring immediate acceleration. | After the client is called back, the decision is made by the customer. | |
The acceleration link performs worse than the direct connection. | The SDK automatically falls back to a direct connection. | |
Network recovers, and acceleration is no longer necessary. | After the client is called back, the decision is made by the customer. |
Parameter | Meaning | Gaming Scenarios | Real-time audio and video communication | Streaming Scenarios |
Time window | Observation time window | 8s | 8s | Enable at all times (no configuration required). |
Latency threshold | Triggers when average latency exceeds this threshold. | 60ms | 80ms | - |
Jitter threshold | Triggers when latency jitter exceeds this threshold. | 15ms | 20ms | - |
Packet loss threshold | Triggers when packet loss rate exceeds this threshold. | 5% | 5% | - |
Parameter | Meaning | Gaming Scenarios | Real-time audio and video communication | Streaming Scenarios | |
Time window | Detection window duration | | 2s | 2s | Enable at all times (recommended) |
Latency threshold | Triggers when latency exceeds this threshold. | | 80ms | 100ms | - |
Compare | Probe Initiation | Fast Startup |
Window / Metric | 8s / latency + jitter + packet loss | 2s / latency only |
Trigger Threshold | Lower (sensitive) | Higher (to prevent false triggers) |
Positioning | Detect a continuously deteriorating trend. | Detect sudden performance degradation events. |
Condition | Judgment Rule | Plain Meaning |
Condition 1: Complete Disconnection | Triggered when consecutive packet loss on the acceleration link reaches the [consecutive packet loss count] threshold, and the primary link is not simultaneously disconnected. | The acceleration link is down, but the direct connection is still up. Fallback should be performed immediately. |
Condition 2: Extremely High Latency | Triggered when the latency of [consecutive high-latency packet count] consecutive packets on the acceleration link is ≥ [single-packet latency upper limit] ms. | The link is not down, but the latency is already too high to be acceptable. |
Condition 3: Persistently Worse Than Direct Connection | Triggered when, within the [evaluation window], the average acceleration latency is greater than the primary link latency multiplied by [latency ratio threshold]%, and the average acceleration latency is greater than [minimum latency threshold] ms. | Long-term observation shows that using the acceleration link is worse than using the direct connection, and the latency is indeed not low. |
Condition | Parameter | Game (Multi-Send Selective-Receive) | TRTC |
Condition 1 | Consecutive packet loss quantity | 4 packets | 4 packets |
Condition 2 | Consecutive high-latency packet quantity | 4 packets | Disabled |
| Maximum single-packet latency | 400ms | - |
Condition 3 | Evaluation window duration | 60 seconds | 60 seconds |
| Latency ratio threshold | 110% | 110% |
| Minimum latency threshold | 66ms | 66ms |
Streaming/aggregation mode | Enable only Condition 1 (number of consecutive packet losses = 4), and disable Condition 2 and Condition 3. | | |
Condition | Judgment Rule | Plain Meaning |
Condition 1: Only One Network Interface Remaining. | If only one network interface is available, it is recommended to disable the feature after [waiting duration] seconds have passed. | Multipath transmission requires at least two network interfaces. Acceleration is meaningless when only one remains. |
Condition 2: No Network Available | If no network interface is available, it is recommended to disable the feature immediately. | Acceleration should be turned off when there is no network. |
Condition 3: Long-Term Poor Performance | Triggered when, within the [quality evaluation window], the acceleration latency is greater than the primary link latency multiplied by [latency ratio threshold]%, and the jitter is greater than the primary link jitter multiplied by [jitter ratio threshold]%. | Long-term acceleration performance is worse than that of the direct connection. Turning it off saves costs. |
Condition 4: All Secondary Links Down | Triggered when all secondary links experience packet loss within [measurement window] seconds. | All secondary network interfaces experience access timeout, making acceleration meaningless. |
Condition | Parameter | Game (Multi-Send Selective-Receive) | TRTC |
Condition 1 | Wait duration | 10 seconds | 10 seconds |
Condition 2 | (Immediate trigger) | - | - |
Condition 3 | Quality evaluation window | 300 seconds | 300 seconds |
Latency ratio / Jitter ratio | 100% / 80% | 100% / 80% | |
Condition 4 | Measurement window | Disabled | 10 seconds |
API | Description |
setRTT | Set latency threshold |
setLoss | Set packet loss rate threshold |
setJitter | Set jitter threshold |
setTime | Set sliding window measurement time |
public MeasureConfig setRTT(int RTT)
Parameter | Type | Description |
RTT | int | Latency threshold (ms) |
public MeasureConfig setLoss(int loss)
Parameter | Type | Description |
loss | int | Packet loss percentage threshold (0-100) |
public MeasureConfig setJitter(int jitter)
Parameter | Type | Description |
jitter | int | Network jitter threshold (ms) |
public MeasureConfig setTime(int time)
Parameter | Type | Description |
time | int | Measurement duration, unit: ms |
Required | Description |
time | Sliding window measurement time, unit: ms |
rtt | Latency threshold, unit: ms |
loss | Packet loss percentage threshold (0-100) |
jitter | Jitter threshold, unit: ms |
API | Description |
setQuickTime | Set quick start window time |
setQuickRtt | Set quick start latency threshold |
public MeasureConfig setQuickRtt(int quickRtt)
Parameter | Type | Description |
quickRtt | int | Fast startup latency threshold, unit: ms |
public MeasureConfig setQuickTime(int quickTime)
Parameter | Type | Description |
quickTime | int | Fast startup window time, unit: ms |
Required | Description |
quickTime | Fast startup window time, unit: ms |
quickRtt | Fast startup latency threshold, unit: ms |
API | Description |
PacketLossEscape | Triggered when the acceleration link is disconnected for [packetLossCount] consecutive times. |
MaxRttEscape | Triggered when the ping value of the acceleration link is greater than or equal to [rttThreshold] ms for [maxRttCount] consecutive times. |
RttExceptionEscape | Triggered when the average ping value of the acceleration link over [detectWindowTime] ms is greater than that of the primary link by [rttDiffThreshold]%, and the average latency of the acceleration link is greater than [accBenchmarkRtt] ms. |
StopAccRemind | It is recommended to disable acceleration (which triggers onStopMpAcc) when the average latency of the acceleration link within [detectWindowTime] ms is greater than that of the primary link by [rttDiffThreshold]%, and the jitter is greater than that of the primary link by [jitterDiffThreshold]%. |
setAdditionalOptions | Set custom options for fallback-to-origin escape. |
public MeasureConfig setAdditionalOptions(AdditionalOptions additionalOptions)
Required | Description |
packetLossEscape | Triggered when the acceleration link is disconnected for [packetLossCount] consecutive times. |
maxRttEscape | Triggered when the ping value of the acceleration link is greater than or equal to [rttThreshold] ms for [maxRttCount] consecutive times. |
rttExceptionEscape | Triggered when the average ping value of the acceleration link over [detectWindowTime] ms is greater than that of the primary link by [rttDiffThreshold]%, and the average latency of the acceleration link is greater than [accBenchmarkRtt] ms. |
stopAccRemind | It is recommended to disable acceleration (which triggers onStopMpAcc) when the average latency of the acceleration link within [detectWindowTime] ms is greater than that of the primary link by [rttDiffRate]%, and the jitter is greater than that of the primary link by [jitterRate]%. |
additionalOptions | Set custom options for fallback-to-origin escape. |
API | Description |
StopAccRemind | It is recommended to disable acceleration (which triggers onStopMpAcc) when the average latency of the acceleration link within [detectWindowTime] ms is greater than that of the primary link by [rttDiffThreshold]%, and the jitter is greater than that of the primary link by [jitterDiffThreshold]%. |
setDisableSlaveLossDetect | Disable packet loss detection on the secondary link. |
public MeasureConfig setDisableSlaveLossDetect(boolean disableSlaveLossDetect)
Parameter | Type | Description |
disableSlaveLossDetect | boolean | true: Disabled false: Not disabled |
Required | Description |
stopAccRemind | It is recommended to disable acceleration (which triggers onStopMpAcc) when the average latency of the acceleration link within [detectWindowTime] ms is greater than that of the primary link by [rttDiffRate]%, and the jitter is greater than that of the primary link by [jitterRate]%. |
disableSlaveLossDetect | Disable packet loss detection on the secondary link. true: Disabled false: Not disabled |
Was this page helpful?
You can also Contact sales or Submit a Ticket for help.
Help us improve! Rate your documentation experience in 5 mins.
Feedback