Skip to main content
. 2020 Oct 20;20(20):5914. doi: 10.3390/s20205914
Algorithm 1 F&C (S, N, D)
/*S: source node*/
/*D: Resource node set*/
/*N: node*/
  • 1:

    S initiates a slow flooding of RQ packets

  • 2:

    Ni receives an RQ

  • 3:

    ifNiDthen

  • 4:

    Ni reads delay flooding parameter Δt

  • 5:

    Ni waits Δt seconds

  • 6:

    Ni forwards the RQ packet

  • 7:

    else ifNiDthen

  • 8:

    if Ni is reached after Ni’s repeal-flooding boundary then

  • 9:

      Ni replies to S (unicast) using the reverse route

  • 10:

    else if Ni is located before Ni’s repeal-flooding boundary then

  • 11:

      Ni initiates a chase flooding of RP packets

  • 12:

    end if

  • 13:

    end if

  • 14:

    Ni receives an RP packet

  • 15:

    ifNi has previously received an RP then

  • 16:

    Ni does not forward the RP packet

  • 17:

    end if

  • 18:

    ifNi has already received and forwarded the RQ packet then

  • 19:

    Ni forwards the RP packet

  • 20:

    else ifNi has the RQ packet in its buffer then

  • 21:

    Ni does not forward the RQ and RP packets

  • 22:

    end if