Skip to content

Latest commit

 

History

History
181 lines (174 loc) · 3.85 KB

NetemReadMe.md

File metadata and controls

181 lines (174 loc) · 3.85 KB

Examples of supported Network Emulation JSON configuration:

Bandwidth


 "NetworkEmulation": {
      "Duration": 15,
      "EmulationType": "Bandwidth",
      "UpstreamSpeed" : 56,
      "DownstreamSpeed" : 33.6,
      "RunOrder": 0,
      "TargetEndpoints": {
         "Endpoints": [
           {
             "Port": 443,
             "Hostname": "www.bing.com",
             "Protocol": "ALL"
           },
           {
             "Port": 80,
             "Hostname": "www.msn.com",
             "Protocol": "ALL"
           },
           {
             "Port": 443,
             "Hostname": "www.google.com",
             "Protocol": "ALL"
           }
         ]
      }
  }

Corruption


 "NetworkEmulation": {
      "Duration": 15,
      "EmulationType": "Corruption",
      "PacketPercentage" : 0.10,
      "RunOrder": 0,
      "TargetEndpoints": {
         "Endpoints": [
           {
             "Port": 443,
             "Hostname": "www.bing.com",
             "Protocol": "ALL"
           },
           {
             "Port": 80,
             "Hostname": "www.msn.com",
             "Protocol": "ALL"
           },
           {
             "Port": 443,
             "Hostname": "www.google.com",
             "Protocol": "ALL"
           }
         ]
      }
   }

Latency


 "NetworkEmulation": {
      "Duration": 15,
      "EmulationType": "Latency",
      "LatencyDelay" : 1000,
      "RunOrder": 0,
      "TargetEndpoints": {
         "Endpoints": [
           {
             "Port": 443,
             "Hostname": "www.bing.com",
             "Protocol": "ALL"
           },
           {
             "Port": 80,
             "Hostname": "www.msn.com",
             "Protocol": "ALL"
           },
           {
             "Port": 443,
             "Hostname": "www.google.com",
             "Protocol": "ALL"
           }
         ]
      }
   }

Loss - Random


 "NetworkEmulation": {
      "Duration": 15,
      "EmulationType": "Loss",
      "LossType": "Random",
      "LossRate" : 0.10,
      "RunOrder": 0,
      "TargetEndpoints": {
         "Endpoints": [
           {
             "Port": 443,
             "Hostname": "www.bing.com",
             "Protocol": "ALL"
           },
           {
             "Port": 80,
             "Hostname": "www.msn.com",
             "Protocol": "ALL"
           },
           {
             "Port": 443,
             "Hostname": "www.google.com",
             "Protocol": "ALL"
           }
         ]
      }
   }

Loss - Burst


 "NetworkEmulation": {
      "Duration": 15,
      "EmulationType": "Loss",
      "LossType": "Burst",
      "BurstRate": 0.25,
      "LossRate" : 0.10,
      "RunOrder": 0,
      "TargetEndpoints": {
         "Endpoints": [
           {
             "Port": 443,
             "Hostname": "www.bing.com",
             "Protocol": "ALL"
           },
           {
             "Port": 80,
             "Hostname": "www.msn.com",
             "Protocol": "ALL"
           },
           {
             "Port": 443,
             "Hostname": "www.google.com",
             "Protocol": "ALL"
           }
         ]
      }
   }

Reorder


 "NetworkEmulation": {
      "Duration": 15,
      "EmulationType": "Reorder",
      "CorrelationPercentage" : 0.20,
      "PacketPercentage" : 0.10,
      "RunOrder": 0,
      "TargetEndpoints": {
         "Endpoints": [
           {
             "Port": 443,
             "Hostname": "www.bing.com",
             "Protocol": "ALL"
           },
           {
             "Port": 80,
             "Hostname": "www.msn.com",
             "Protocol": "ALL"
           },
           {
             "Port": 443,
             "Hostname": "www.google.com",
             "Protocol": "ALL"
           }
         ]
      }
   }