How to emulate network packet loss#

Parrot Sphinx exposes iplink components to control firmware network Quality of Service (QoS) at runtime.

For each network interface of a firmware, Parrot Sphinx creates an iplink component with the same name as the interface that exposes runtime parameters to control both ingress and egress traffic. Component parameters can be manipulated in the Web dashboard. See Interact with the simulation for more information on how to interact with components. For the complete list of iplink parameters, see IPLink.

To block all traffic to/from an interface, just set a 100% packet loss for both ingress and egress traffic for this interface.

In most cases, a drone has two available network interfaces:
  • eth0: the drone Wi-Fi access point interface

  • eth1: the drone virtual ethernet interface accessible at from the host

To get the actual name of your drone virtual ethernet interface, execute the following fdc command:

$ fdc get_property instances <instance_name> virt_iface

Similarly, for the drone Wi-Fi access point interface:

$ fdc get_property instances <instance_name> stolen_interface | awk -F : '{print $2}'