Skip to main content

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

StrategyDescription
NoneNo timing processing
UniformDistributionUniform distribution jitter, random delay within a fixed range
NormalDistributionNormal 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
Important

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

SettingDescription
Enable PaddingToggle
Min PaddingMinimum padding bytes
Max PaddingMaximum padding bytes

CV (Coefficient of Variation) Monitoring

CV measures the regularity of packet intervals. Lower CV means more regular intervals, easier to detect.

Settings

SettingDescription
Enable CV MonitoringEnable real-time CV calculation
Alert ThresholdTrigger warning below this value (recommended 0.08)
Window SizeNumber of historical packets for CV calculation

Dynamic CV Threshold Adjustment

Automatically switches detection strictness based on runtime:

SettingDescription
Enable Dynamic AdjustmentToggle
Strict Mode TimeMinutes before switching to strict mode
Strict CV ThresholdMonitoring threshold in strict mode
Relaxed CV ThresholdMonitoring threshold in normal mode

Micro-Difference Perturbation

Slightly modifies bytes at specified positions to increase variation between packets.

Settings

SettingDescription
Enable Micro-DifferenceToggle
Max PerturbationMaximum byte change per position (recommended 1-3)
Perturbations Per PacketMaximum bytes to perturb per packet
Position WhitelistOnly perturb at these positions (to avoid breaking critical fields)
warning

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

SettingDescription
Enable AdaptiveToggle
CV Target LowerMinimum target coefficient of variation
CV Target UpperMaximum target coefficient of variation
Adjustment StepStrength change per adjustment
Jitter Strength LowerMinimum jitter strength value
Jitter Strength UpperMaximum 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:

MetricDescription
Current CVReal-time coefficient of variation
CV Alert CountCumulative below-threshold count
Total PacketsProcessed packet count
Average DelayMean interval between packets
Average PaddingMean padding bytes per packet
Adaptive AdjustmentsCumulative 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