Activate Ping Network Module
- emulations.activate_ping_network.activate_network(d1, d2, broker)
Activate network interfaces between containernet devices.
This function activates network interfaces for three docker containers: d1, d2, and broker.
Parameters:
d1 (mininet.node.Host): The first docker container.
d2 (mininet.node.Host): The second docker container.
broker (mininet.node.Host): The broker docker container.
Returns: None
- emulations.activate_ping_network.check_drop_rate(net)
Check the network reachability by pinging all hosts.
This function checks the network reachability by pinging all hosts in the network and calculates the percentage of dropped packets. If the drop rate is not zero, it terminates the process.
Parameters: - net (mininet.net.Mininet): The Mininet network object.
Returns: None
This module provides functions to activate network interfaces and check network reachability through ping tests between Mininet Docker containers.