| Fuzzy_Dl_jq_handle_function ( Join_query_packet |
| jq_packet) |
|
{
|
| Get hop_count and num_fg from jq_packet fields; |
| If jq_packet was lost then exit; |
| Get parameters (loss, bandwidth, speed, power) |
| from jq_packet fields; |
| Fuzzify parameters; |
| Compute probability of Join Query forwarding |
| based on fuzzification results; |
| Replace parameters of this node to jq_packet fields; |
| Forward jq_packet based on the computed |
| probability; |
| If jq_packet was forwarded then cash jq_packet; |
|
}
|