The invention relates to the technical field of
network communication, and provides a real-
time data pushing method for binary format transmission data, and the method comprises the steps: S1, judging whether to start
server pushing or not through a pushing decision engine; s2, when the
server receives sensor data, converting the structured data into HTTP / 2 frames with priority marks through a binary
encoder; s3, scheduling an HTTP / 2 frame transmission sequence through a flow controller according to a current network state, wherein the current network state at least comprises a data volume which can be currently received by the
client; and S4, after receiving the HTTP / 2 frame, the
client sends a preset confirmation frame to confirm receiving according to the HTTP / 2 frame serial number, and if the
server does not receive the preset confirmation frame within the preset
timeout time, the server marks that the HTTP / 2 frame is lost and re-uploads the HTTP / 2 frame marked as lost. Compared with
WebSocket, the method has the advantages that the
protocol overhead is reduced, the transmission efficiency is improved, the average
delay of key data is reduced, and the method is compatible with the existing HTTP / 2
client.