Per Kjellander | a0d1a51 | 2024-05-29 10:33:21 | [diff] [blame] | 1 | syntax = "proto2"; |
| 2 | |
| 3 | option optimize_for = LITE_RUNTIME; |
| 4 | package webrtc.network_behaviour; |
| 5 | |
| 6 | message NetworkConfigScheduleItem { |
| 7 | // Time since the first sent packet when this item should be applied. |
| 8 | // This should typically be 0 for the first item in the schedule. |
| 9 | optional int64 time_since_first_sent_packet_ms = 1; |
| 10 | |
| 11 | // Network parameters, See webrtc::BuiltInNetworkBehaviorConfig. |
| 12 | optional int64 queue_length_packets = 2; |
| 13 | optional int64 queue_delay_ms = 3; |
| 14 | optional int64 link_capacity_kbps = 4; |
| 15 | optional int64 loss_percent = 5; |
| 16 | optional int64 delay_standard_deviation_ms = 6; |
| 17 | optional bool allow_reordering = 7; |
| 18 | optional int64 avg_burst_loss_length = 8; |
| 19 | optional int64 packet_overhead = 9; |
| 20 | } |
| 21 | |
| 22 | // Schedule describing network parameters in a simulated network. |
| 23 | message NetworkConfigSchedule { |
| 24 | optional int64 repeat_schedule_after_last_ms = 1; |
| 25 | // Items should be sorted by time_since_first_sent_packet_ms. |
| 26 | repeated NetworkConfigScheduleItem item = 2; |
| 27 | } |