Skip to main content
. 2021 Mar 21;21(6):2192. doi: 10.3390/s21062192
Algorithm 1 Nagle’s Algorithm
  • 1:

    procedureTransmit(D)

  • 2:

        if window size >= MSS and |D|>= MSS then

  • 3:

            Send(D)

  • 4:

        else

  • 5:

            if data in flight then

  • 6:

               Queue(D)

  • 7:

            else

  • 8:

               Send(D)