| Algorithm 2 Processing Data Packet | |
| OnData (data) | |
| 1 |
// Check whether the probe-response is empty. if data.probe-response != 0 then |
| 2 | // Check the probe in FIB if FIB (data.probe) == 0 then |
| 3 | Create a FIB entry for data.probe |
| 4 | else Update the entries in FIB by data.probe-response |
| 5 | end if |
| 6 | end if |
| 7 | if PIT (data) != 0 then |
| 8 | if CS (data) == 0 then |
| 9 | Cache data |
| 10 | end if |
| 11 | if FIB (data) == 0 then |
| 12 | Create a FIB entry for data |
| 13 | else Update the entries in FIB by data |
| 14 | end if |
| 15 | Forward data, remove the entry named data in PIT and break |
| 16 | else drop data |
| 17 | end if |