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

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

Active Publication Date: 2018-10-26
SHENZHEN FORWARD IND CO LTD
View PDF10 Cites 2 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 t...

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 and apparatus, user terminal and computer readable storage medium
  • One-way communication method and apparatus, user terminal and computer readable storage medium
  • One-way communication method and apparatus, 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 invention provides a one-way communication method and apparatus, a user terminal and a computer readable storage medium. The method includes the following steps: a sender creates an original socket and constructs an ether frame; the sender sends a connection message to a receiver based on the ether frame according to the original socket, so that the receiver returns a response message according to the connection message; and a one-way communication protocol is established after the sender receives the response message, and data interaction is performed with the receiver according to the one-way communication protocol. The one-way communication method performs one-way communication by utilizing a simple and reliable one-way communication protocol, the data interaction in an operating environment in which message interaction needs to be performed without a protocol stack is completely satisfied the protocol stack is simple in technology, the development cost is greatly reduced, and great convenience is brought for research and development work of research and development personnel in a communication field.

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
IPC IPC(8): H04L29/06H04L29/08
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