Algorithm 3. INTEREST packet processing.
| 1: Whenever the INTEREST packet arrived |
| 2: Lookup into CS table |
| 3: if (CS hit) then |
| 4: search the DATA |
| 5: return to the intended interface |
| 6: else if (PIT hit) then |
| 7: adds the incoming interface (from which requests have arrived) in PIT |
| 8: wait for DATA packet |
| // do not forward the packet |
| 9: else if (FIB hit) then |
| 10: create PIT entry for requested INTEREST packet |
| 11: forward packet according to Flow rule |
| 12: else |
| 13: send OF_Packet_IN message to controller |
| 14: install flow rule into FIB by the controller through OF_FLOW_MOD |
| 15: forwards the packet to the next station according to FIB |
| 16: end if |