Windows Network Corruption
Windows Network Corruption corrupts network packets on Windows VMs for the target hosts using Clumsy. It checks the performance of the application running on the Windows VMs when network packets are corrupted during transmission.
When Clumsy is downloaded, the path is exported and is used while executing the experiment.
Use cases
Windows network corruption:
- Determines the resilience of an application when a network corruption scenario is simulated on a Windows virtual machine.
- Simulates the situation of network corruption on the application, which degrades their performance.
- Helps verify the application's ability to handle network failures and its failover mechanisms.
Prerequisites
- Ensure that the prerequisites are fulfilled before executing the experiment.
- Verify that Clumsy is installed on the Windows VM.
Mandatory tunables
Tunable | Description | Notes |
---|---|---|
NETWORK_PACKET_CORRUPTION_PERCENTAGE | The percentage of packets corrupted during transmission. | For example, 100. For more information, go to network packet corruption. |
DESTINATION_HOSTS | DNS or FQDN names of services whose access is affected. You can specify multiple inputs as comma-separated values. | DESTINATION_HOSTS and DESTINATION_IPS are mutually exclusive, which means you can specify one of the values at a given time. For example, "abc.com,github.com". For more information, go to destination hosts. |
DESTINATION_IPS | IP addresses of the target destination services. You can specify multiple inputs as comma-separated values. | DESTINATION_HOSTS and DESTINATION_IPS are mutually exclusive, which means you can specify one of the values at a given time. For more information, go to destination IPs. |
Optional tunables
Tunable | Description | Notes |
---|---|---|
DURATION | Duration that you specify, through which chaos is injected into the target resource (in seconds). | Default: 60s. For more information, go to duration of the chaos. |
RAMP_TIME | Period to wait before and after injecting chaos (in seconds). | For example, 30s. For more information, go to ramp time. |
Network packet corruption
The NETWORK_PACKET_CORRUPTION_PERCENTAGE
environment variable specifies the percentage of packets corrupted during transmission.
Use the following example to specify network packet corruption:
apiVersion: litmuschaos.io/v1alpha1
kind: MachineChaosExperiment
metadata:
name: windows-network-corruption
spec:
engineState: "active"
chaosServiceAccount: litmus-admin
experiments:
infraType: windows
steps:
- - name: windows-network-corruption
tasks:
- definition:
chaos:
env:
- name: NETWORK_PACKET_CORRUPTION_PERCENTAGE
value: "100"
Destination hosts
The DESTINATION_HOSTS
environment variable specifies the destination hosts to induce latency on the target Windows VM.
Use the following example to specify destination hosts:
apiVersion: litmuschaos.io/v1alpha1
kind: MachineChaosExperiment
metadata:
name: windows-network-corruption
spec:
engineState: "active"
chaosServiceAccount: litmus-admin
experiments:
infraType: windows
steps:
- - name: windows-network-corruption
tasks:
- definition:
chaos:
env:
- name: DESTINATION_HOSTS
value: "aws.amazon.com,github.com"
Destination IPs
The DESTINATION_IPS
environment variable specifies the IP addresses of target destination services. You can specify multiple inputs as comma-separated values. DESTINATION_IPS
and DESTINATION_HOSTS
environment variables are mutually exclusive.
Use the following example to specify destination IPS:
apiVersion: litmuschaos.io/v1alpha1
kind: MachineChaosExperiment
metadata:
name: windows-network-corruption
spec:
engineState: "active"
chaosServiceAccount: litmus-admin
experiments:
infraType: windows
steps:
- - name: windows-network-corruption
tasks:
- definition:
chaos:
env:
- name: DESTINATION_IPS
value: '0.8.0.8,192.168.5.6'