主权项 |
1. A method comprising:
engaging, by a device, in a Datagram Transport Layer Security (DTLS) handshake message exchange with a second device according to the DTLS protocol; determining, at the first device, that an application datagram is to be transmitted according to a User Datagram Protocol (UDP) that limits a size of a datagram based on a Maximum Transmission Unit (MTU), wherein the first device determines that a size of the application datagram is larger than the MTU; fragmenting, at the first device, the application datagram into application data fragments, if the application datagram size is determined to be larger than the MTU; fragmenting, at the first device, the DTLS handshake message such that a size of a first DTLS protocol record is smaller than the MTU, and providing a fragment offset and length for each first DTLS protocol record created from the fragmented DTLS handshake message so that the second device can reassemble the DTLS handshake message; securing, at the first device, the application datagram with the DTLS protocol; encapsulating, by the first device, the application data fragments in DTLS handshake messages, wherein an encapsulated application data fragment is transmitted from the first device to the second device in the first DTLS protocol record; and transmitting, by the first device to the second device, another application datagram secured with the DTLS protocol in a subsequent DTLS protocol record. |