Windows Network Duplication
Windows network duplication duplicates network packets on Windows VM for the target hosts or IP addresses using Clumsy. It checks the performance of the services running on the Windows VMs.
When Clumsy is downloaded, the path is exported which is used while executing the experiment.
Use cases
Windows network duplication:
- Determines the resilience of an application when a network duplication scenario is simulated on a Windows virtual machine.
- Simulates the situation of network duplication 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_DUPLICATION_PERCENTAGE | The percentage of data packets duplicated during transmission. | For example, 100. For more information, go to network packet duplication. |
DESTINATION_HOSTS | DNS or FQDN names of services whose access is affected. You can specify multiple inputs as comma-separated values. | For example, "abc.com,github.com". It is mutually exclusive with DESTINATION_IPS variable. 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. | It is mutually exclusive with DESTINATION_HOSTS variable. For example, '0.8.0.8,192.168.5.6'. 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 duplication
The NETWORK_PACKET_DUPLICATION_PERCENTAGE
environment variable specifies the percentage of data packets duplicated during transmission.
Use the following example to specify network packet duplication:
apiVersion: litmuschaos.io/v1alpha1
kind: MachineChaosExperiment
metadata:
name: windows-network-duplication
spec:
engineState: "active"
chaosServiceAccount: litmus-admin
experiments:
infraType: windows
steps:
- - name: windows-network-duplication
tasks:
- definition:
chaos:
env:
- name: NETWORK_PACKET_DUPLICATION_PERCENTAGE
value: "100"
Destination hosts
The DESTINATION_HOSTS
environment variable specifies the destination hosts to induce network duplication on the target Windows VM. You can provide multiple values using comma-separated list.
DESTINATION_HOSTS
and DESTINATION_IPS
environment variables are mutually exclusive.
Use the following example to specify destination hosts:
apiVersion: litmuschaos.io/v1alpha1
kind: MachineChaosExperiment
metadata:
name: windows-network-duplication
spec:
engineState: "active"
chaosServiceAccount: litmus-admin
experiments:
infraType: windows
steps:
- - name: windows-network-duplication
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-duplication
spec:
engineState: "active"
chaosServiceAccount: litmus-admin
experiments:
infraType: windows
steps:
- - name: windows-network-duplication
tasks:
- definition:
chaos:
env:
- name: DESTINATION_IPS
value: '0.8.0.8,192.168.5.6'