One-way communication method, device, user terminal and computer-readable storage medium

A one-way communication and storage technology, applied in the transmission system, electrical components, etc., can solve the problems of affecting transmission speed, increasing development cost, complexity, etc., and achieve the effect of reducing development cost, convenient research and development work, and simple technology

Active Publication Date: 2022-01-11
SHENZHEN FORWARD IND CO LTD
View PDF10 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

Since there is no IP / TCP protocol stack in the application environment, if the TCP protocol stack is directly transplanted, it will be a bit complicated and affect the transmission speed
[0004] In short, if any protocol stack cannot be used and message interaction is required, and the reliability of data transmission is guaranteed, if the existing complex TCP protocol stack is directly transplanted on the basis of the link layer, it will greatly increase the development cost. It brings great inconvenience to the R&D work of R&D personnel in the communication field

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
  • One-way communication method, device, user terminal and computer-readable storage medium
  • One-way communication method, device, user terminal and computer-readable storage medium
  • One-way communication method, device, user terminal and computer-readable storage medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0061] refer to figure 2 , the first embodiment of the present invention provides a one-way communication method, including:

[0062] Step S100, the sender creates a raw socket and constructs an Ethernet frame;

[0063] As mentioned above, it should be understood that the socket is different from TCP using the IP address of the host plus the port number on the host as the endpoint of the TCP connection. The original socket does not contain five kinds of information necessary for network communication: The protocol used for the connection, the IP address of the local host, the protocol port of the local process, the IP address of the remote host, and the protocol port of the remote process. Raw sockets only have the MAC addresses of the communicating parties. In addition, the receiver must also create a raw socket to receive and send Ethernet packets.

[0064] As mentioned above, it should be understood that the Ethernet frame is the format of the Ethernet frame, that is, t...

Embodiment 2

[0074] refer to image 3 , the second embodiment of the present invention provides a one-way communication method, based on the above figure 2 In the first embodiment shown, the step S200 "the sender sends a connection message to the receiver based on the original socket based on the Ethernet frame; wherein, the receiver receives the connection message After the message, return a response message according to the connection message to confirm the received message", it also includes:

[0075] Step S400, the receiver receives the connection message;

[0076] As mentioned above, after the receiver creates the original socket corresponding to the sender and constructs an Ethernet frame for message interaction based on the network card through the network, the sender sends a connection message to the receiver, and then receives The party receives the connection message.

[0077] Step S500, the receiver sets a confirmation sequence number for sending a response message to the se...

Embodiment 3

[0080] refer to Figure 4 , the third embodiment of the present invention provides a one-way communication method, based on the above image 3 In the second embodiment shown, the step S500 "the receiving party sets the confirmation serial number of sending a response message to the sending party according to the message serial number of the connection message, and sends a confirmation message to the sending party Text" includes:

[0081] Step S510, the receiver acquires the message sequence number in the connection message;

[0082] As mentioned above, the receiver obtains the message serial number in the connection message sent by the sender to send a confirmation message to the sender. After receiving the confirmation message, the sender can confirm that the sender has successfully established the connection with the receiver. connect.

[0083] Step S520, the receiver constructs the acknowledgment number of the response message sent to the sender according to the message ...

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 present invention provides a one-way communication method, device, user terminal and computer-readable storage medium, wherein the method includes: the sender creates a raw socket and constructs an Ethernet frame; word, based on the Ethernet frame to send a connection message to the receiver, so that the receiver returns a response message according to the connection message; after receiving the response message, the sender establishes one-way communication protocol, and perform data interaction with the receiver according to the one-way communication protocol. The present invention uses a simple and reliable one-way communication protocol for one-way communication, which fully satisfies data interaction in an operating environment where there is no protocol stack and message interaction is required. The protocol stack technology is simple and greatly reduces development costs. The research and development work of the research and development personnel in the field brings great convenience.

Description

technical field [0001] The present invention relates to the technical field of communication protocols, and more specifically, to a one-way communication method, device, user terminal and computer-readable storage medium. Background technique [0002] Network data transmission is one of the most basic functions of network applications. The TCP protocol and the UDP protocol are the communication protocols of the two applications. And most operating systems have integrated the TCP protocol and the UDP protocol in the kernel. For common applications that work in the user state, it is very simple to call the TCP or UDP interface of the operating system to realize network data transmission. But as far as TCP itself is concerned, it is a communication protocol with a relatively complicated working mechanism. And TCP works above the IP layer, and the IP layer works at the link layer. [0003] In some cases, for example, applications that directly obtain data packets from the ne...

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 Patents(China)
IPC IPC(8): H04L69/16H04L69/06H04L67/01H04L67/141
CPCH04L67/141H04L69/06H04L69/162H04L69/26
Inventor 何雪煜张帆严鹏
Owner SHENZHEN FORWARD IND CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products