Does HTTP use UDP?

前端 未结 14 1309
夕颜
夕颜 2020-11-29 18:12

This might be a silly question:

  • Does HTTP ever use the User Datagram Protocol?

For example:

If one is

相关标签:
14条回答
  • 2020-11-29 18:57

    The answer: Yes

    Reason: See the OSI model.

    Explaination:

    HTTP is an application layer protocol, which could be encapsulated with a protocol that uses UDP, providing arguably faster reliable communication than TCP. The server daemon and client would obviously need to support this new protocol. Quake 2 protocol proves that UDP can be used over TCP to provide a basis for a structured communication system insuring flow control (e.g. chunk ids).

    0 讨论(0)
  • 2020-11-29 18:58

    Maybe just a bit of trivia, but UPnP will use HTTP formatted messages over UDP for device discovery.

    0 讨论(0)
提交回复
热议问题