Traffic Shaping
Traffic shaping simulates real player network behavior characteristics to evade statistical analysis by anti-cheat systems. This feature is designed based on public research on Tencent's ACE anti-cheat system.
Basic Configuration
Enable Traffic Shaping
Toggle this feature on the "Traffic Shaping" page. When enabled, all packets through the heartbeat simulation proxy are processed with traffic shaping.
Timing Strategy
| Strategy | Description |
|---|---|
| None | No timing processing |
| UniformDistribution | Uniform distribution jitter, random delay within a fixed range |
| NormalDistribution | Normal distribution jitter, delays centered around the mean (recommended) |
Timing Jitter Configuration
Base Interval
Base interval between packet transmissions, default 45 ms.
Jitter Strength
Standard deviation coefficient controlling timing randomness:
- Recommended: 0.15 - 0.20
- Real Players: CV ≈ 0.10 - 0.25
- ACE Detection Threshold: CV < 0.08 triggers alert
Setting jitter strength too low results in overly regular packet intervals, making detection easy. Set at least 0.15.
Packet Size Padding
Description
Randomly adds padding bytes to packets, changing the size distribution to better resemble real player traffic.
Settings
| Setting | Description |
|---|---|
| Enable Padding | Toggle |
| Min Padding | Minimum padding bytes |
| Max Padding | Maximum padding bytes |
CV (Coefficient of Variation) Monitoring
CV measures the regularity of packet intervals. Lower CV means more regular intervals, easier to detect.
Settings
| Setting | Description |
|---|---|
| Enable CV Monitoring | Enable real-time CV calculation |
| Alert Threshold | Trigger warning below this value (recommended 0.08) |
| Window Size | Number of historical packets for CV calculation |
Dynamic CV Threshold Adjustment
Automatically switches detection strictness based on runtime:
| Setting | Description |
|---|---|
| Enable Dynamic Adjustment | Toggle |
| Strict Mode Time | Minutes before switching to strict mode |
| Strict CV Threshold | Monitoring threshold in strict mode |
| Relaxed CV Threshold | Monitoring threshold in normal mode |
Micro-Difference Perturbation
Slightly modifies bytes at specified positions to increase variation between packets.
Settings
| Setting | Description |
|---|---|
| Enable Micro-Difference | Toggle |
| Max Perturbation | Maximum byte change per position (recommended 1-3) |
| Perturbations Per Packet | Maximum bytes to perturb per packet |
| Position Whitelist | Only perturb at these positions (to avoid breaking critical fields) |
Choose perturbation positions carefully to avoid modifying critical protocol fields that could break connections.
Adaptive CV Adjustment
Dynamically adjusts jitter strength based on real-time CV values to keep CV within the target range.
Settings
| Setting | Description |
|---|---|
| Enable Adaptive | Toggle |
| CV Target Lower | Minimum target coefficient of variation |
| CV Target Upper | Maximum target coefficient of variation |
| Adjustment Step | Strength change per adjustment |
| Jitter Strength Lower | Minimum jitter strength value |
| Jitter Strength Upper | Maximum jitter strength value |
| Adjustment Interval (packets) | Packets between evaluations |
| Cooldown Time (ms) | Cooldown wait time after adjustment (1000-30000 ms) |
Real-time Statistics
Displayed during operation:
| Metric | Description |
|---|---|
| Current CV | Real-time coefficient of variation |
| CV Alert Count | Cumulative below-threshold count |
| Total Packets | Processed packet count |
| Average Delay | Mean interval between packets |
| Average Padding | Mean padding bytes per packet |
| Adaptive Adjustments | Cumulative adjustment count |
Configuration Management
- Apply: Take effect in memory immediately, not saved to database
- Save: Apply and persist to database
- Reset Defaults: Restore all traffic shaping settings to system defaults