**3. Experimental results**

The function pinging is called, once the program detects the selection of two devices (indifferent of the types: host-host, host-router, router-host or router-router). d1 represents the first selected device and d2 the latter, the order being of upmost importance because the

Proceedings of the International Conference on Interdisciplinary Studies (ICIS 2016) - Interdisciplinarity and Creativity

In the algorithm, two global variables current\_ping and end\_ping are initialized with the devices d1 and d2, respectively. They represent the device in which the ping transmission

Furthermore, verification is in need to check if the sender is online; this is done in order to avoid having an offline device that is sending pings. If the result is positive, current\_ping

This functionality, as observed, has a distinct time counter, separated than that of the simula‐ tion time counter, in order to further simulate reality; in real life, there is not any dependence correlation between the two temporal measurements (the ping datagrams are different than the RIP datagrams). Didactically, the analysis of some well-defined situations, in which, for

The timer\_ping chronometer is set to 500 ms and after the timer\_ping.Start();

At the beginning of this event management function, because of the complexity of the calculations, the timer is stopped and it will be restarted for the next step, after a new part of

The general form of a route is H-R-R-R-...-R-H, H-R-R-R-R-...-R, -R-R-R-...-R-H or R-R-R-...-R,

**Step 1.** If current\_ping is offline, then **STOP** – the device must have encountered a failure

Step 2. If current\_ping is a host, then the existence of a connection between the current host and a router is checked. If the answer is negative, then the host must be isolated **STOP**. If the found connection is deactivated **STOP**. Otherwise, the found connection with its router is highlighted. If this router is in fact end\_ping, the destination must have been thus reached,

The meaning of this step is that in order to discover another device, a host must first contact

Step 3. In this moment of the algorithm, current\_ping must be a router, but there still is a need to discover the nature of end\_ping (host or router). If end\_ping is a host, a local variable ender\_ping is initialized with its directly connected router. If there is no such thing, then the final receiver is an isolated host **STOP**. If end\_ping is a router, then ender\_ping will be

has currently arrived and respectively the final destination of the ping transmission.

transmission is unidirectional.

in the Knowledge Society

68

command the 'tick' function

the route is highlighted.

is highlighted and the timer\_ping counter is started.

example, the update timers are frozen, is thus possible.

will be periodically activated (every 500 ms).

(i.e. went offline) during the tracing process.

otherwise timer\_ping is restarted.

initialized with end\_ping as a value.

directly its connected router.

timer\_ping\_Tick(object sender, EventArgs e):void

where H means host and R means router. Thus, the following algorithm is:
