Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

gRPC-based data transmission method and device and storage medium

A data transmission method and data packet technology, which are applied in the field of gRPC-based data transmission methods, devices and storage media, can solve the problems of complex external network network environment, data transmission stuck and unstable, etc., to improve data transmission quality, It is not easy to be stolen or tampered with, and the effect of accurate circulation is guaranteed

Active Publication Date: 2022-01-21
BEIJING TOPSEC NETWORK SECURITY TECH +2
View PDF10 Cites 3 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

At present, the probes in the website monitoring system are mostly deployed on the external network, and the network environment of the external network is relatively complex, and there is a certain degree of instability
When the external network probe transmits data to the website monitoring cloud server through gRPC, if the network is unstable such as jitter, it will cause data transmission to freeze, timeout or even packet loss, which will affect the quality of data transmission

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • gRPC-based data transmission method and device and storage medium
  • gRPC-based data transmission method and device and storage medium
  • gRPC-based data transmission method and device and storage medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0063] The embodiment of the present application discloses a data transmission method based on gRPC. refer to figure 1 ,include:

[0064] S100. The client and the server judge whether the information channel is available based on a preset verification rule in the gRPC environment.

[0065] Among them, in the gRPC environment, it means that the client and the server use gRPC technology for data transmission, that is, the client and the server communicate in a remote procedure call system such as gRPC.

[0066] Specifically, in one embodiment, refer to figure 2 , step S100 includes:

[0067] S111. The client sends a preset first data packet to the server, and at the same time updates the client status identifier as ready, and stores the updated client status identifier.

[0068] For ease of understanding, when the client does not send the first data packet, the client status identifier can be a null value, and when the client sends the first data packet or after the client ...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention relates to a gRPC-based data transmission method and device and a storage medium, and belongs to the field of data communication, and the method comprises the steps of judging whether an information channel is available or not based on a preset verification rule in a gRPC environment by a client and a server; when the information channel between the client and the server is unavailable, caching data to be transmitted; when the information channel between the client and the server is available, transmitting the to-be-transmitted data, and judging whether the to-be-transmitted data is successfully transmitted or not; if the to-be-transmitted data transmission fails, carrying out transmission retry; and when the number of times of transmission retry is greater than a preset threshold value of the number of times of retry, caching the to-be-transmitted data. And when the information channel is unavailable, all the data to be transmitted are cached, so that the data to be transmitted can be conveniently transmitted when the information channel is available, the data to be transmitted are not easy to lose, and the data transmission quality is improved.

Description

technical field [0001] In the field of data communication, the present invention particularly relates to a gRPC-based data transmission method, device and storage medium. Background technique [0002] gRPC is a language-neutral, platform-neutral and open source remote procedure call system. At present, the probes in the website monitoring system are mostly deployed on the external network, and the network environment of the external network is relatively complex and has certain instability. When the external network probe transmits data to the website monitoring cloud server through gRPC, if the network is unstable such as jitter, it will cause data transmission to freeze, timeout or even packet loss, which will affect the quality of data transmission. Contents of the invention [0003] In order to help improve data transmission quality, the present invention provides a gRPC-based data transmission method, device and storage medium. [0004] In the first aspect, a gRPC-b...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Applications(China)
IPC IPC(8): H04L43/08H04L43/087H04L43/0829H04L43/0823H04L41/0631
CPCH04L43/08H04L43/087H04L43/0829H04L43/0823H04L41/0631
Inventor 肖延东
Owner BEIJING TOPSEC NETWORK SECURITY TECH
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products