Data message distribution method and equipment based on Internet of things

文档序号:291272 发布日期:2021-11-23 浏览:2次 中文

阅读说明:本技术 一种基于物联网的数据报文分发方法及设备 (Data message distribution method and equipment based on Internet of things ) 是由 曹士明 于 2021-07-04 设计创作,主要内容包括:本发明涉及数据报文分发技术领域,具体涉及一种基于物联网的数据报文分发方法及设备;包括以下步骤:S1、向目标设备发起数据连接请求信息,S2、目标设备获取请求信息,验证请求信息并建立连接路径,选择最佳分发路径;本发明通过向目标设备发起数据连接请求信息,对数据初始位置的ID进行验证,提高了数据报文分发的安全性,在建立分发路径时,采用优先路线,能够提高数据报文分发的速度,在逐级分发时,能够对上一级分发节点进行验证,避免在分发过程中,出现非分发数据的入侵,进而提高了数据报文在分发节点分发时的安全性,同时,能够根据路径堵塞情况,及时的调整分发路径,能够进一步提高数据报文分发的速度。(The invention relates to the technical field of data message distribution, in particular to a data message distribution method and equipment based on the Internet of things; the method comprises the following steps: s1, sending data connection request information to the target equipment, S2, the target equipment obtaining the request information, verifying the request information, establishing a connection path, and selecting an optimal distribution path; the invention can improve the distribution safety of the data message by initiating the data connection request information to the target equipment and verifying the ID of the initial position of the data, adopts the priority route when establishing the distribution path, can improve the distribution speed of the data message, can verify the upper-level distribution node when distributing step by step, avoids the invasion of non-distribution data in the distribution process, further improves the distribution safety of the data message at the distribution node, and can timely adjust the distribution path according to the path blocking condition, and can further improve the distribution speed of the data message.)

1. A data message distribution method based on the Internet of things is characterized by comprising the following steps:

s1, initiating data connection request information to the target equipment;

s2, the target device acquires the request information, verifies the request information, establishes a connection path and selects an optimal distribution path;

s3, cutting the data according to the fixed length, compressing the data into a data packet, and distributing the data to the target equipment;

and S4, the target device receives the data packet and decompresses and acquires the distribution data.

2. The Internet of things-based data message distribution method according to claim 1, wherein the request information comprises an ID of a data initial position, a data size and a data identification code.

3. The internet-of-things based data message distribution method according to claim 1, wherein in the step S2, the verification request message indicates that the target device matches the data initial location ID with the stored location ID, and if the data initial location ID exists in the stored location ID, the verification is passed, otherwise, the verification is not passed.

4. The internet of things based data message distribution method according to claim 1, wherein in the step S2, the connection path is established, and the optimal distribution path is selected, comprising the following steps:

s201, establishing all distribution paths between the initial data position and target equipment, and carrying out length statistics on each distribution path;

s202, selecting a distribution path with the shortest length as a priority path;

s203, counting the distribution nodes in the priority path, and selecting a distribution mode;

s204, when the data messages are distributed according to the step-by-step distribution nodes, the ID of the upper-level distribution node is verified by the lower-level distribution node, and the data messages are distributed step by step.

5. The internet-of-things-based data message distribution method according to claim 4, wherein in the step S203, selecting the distribution mode means that when the number of distribution nodes is less than one, the data message is directly distributed to the target device, otherwise, the data message is gradually distributed to the target device.

6. The internet-of-things-based data message distribution method according to claim 4, wherein in step S204, the verification of the ID of the previous distribution node by the next distribution node means that the next distribution node verifies whether the ID of the previous distribution node exists when receiving the data message of the previous distribution node, and if so, continues to distribute the message to the next distribution node, otherwise, does not distribute the data message to the next distribution node.

7. The internet-of-things-based data message distribution method according to claim 4, wherein in the step S204, when the data message is distributed step by step, if the congestion threshold of the next-level distribution node is greater than the set threshold, all paths from the distribution node to the target device are counted, the distribution path with the shortest length from which the congestion distribution node is removed is selected as the standby path, and the data message is distributed according to the standby path.

8. The internet-of-things based data message distribution method according to claim 1, wherein in the step S3, the minimum value of the channel window in the distribution path is the splitting length.

9. A data message distribution device based on the Internet of things is characterized by comprising:

a connection request unit (1), wherein the connection request unit (1) is used for initiating data connection request information to a target device;

the connection response unit (2), the connection response unit (2) is used for establishing a distribution path between the data message and the target device, and the request connection unit (1) is electrically connected with the connection response unit (2);

the data message distribution device comprises a distribution path unit (3), wherein the distribution path unit (3) is used for selecting a distribution path in a data message distribution process, and the connection response unit (2) is electrically connected with the distribution path unit (3);

the message processing unit (4), the said message processing unit (4) is used for cutting and compressing the data message;

the storage unit (5) is used for storing the position ID of the data message and the ID of the distribution node.

10. A computer readable storage medium having stored thereon data message distribution program instructions executable by one or more processors to implement a method of internet of things based data message distribution as claimed in any one of claims 1 to 8.

Technical Field

The invention relates to the technical field of data message distribution, in particular to a data message distribution method and equipment based on the Internet of things.

Background

The internet of things is an important component of a new generation of information technology, and is characterized in that any object is connected with a network through information sensing equipment according to an agreed protocol, and the object performs information exchange and communication through an information transmission medium so as to realize functions of intelligent identification, positioning, tracking, supervision and the like. The internet of things is an extension of the internet, and comprises the internet and all resources on the internet, and is compatible with all applications of the internet, but all elements (all devices, resources, communication and the like) in the internet of things are personalized and privatized. The Internet of things is widely applied to network fusion through communication perception technologies such as intelligent perception, identification technology and pervasive computing.

Chinese patent application No. CN201210461104.3 discloses a method and device for distributing data messages of internet of things, and in the specification, it is described that "the method includes: judging the type of a data message, wherein the type of the data message comprises a general data message and an industrial data message; when the type of the data message is a general data message, the data message is sent to a general server, when the type of the data message is an industry data message, the data message is sent to a corresponding industry application server, a plurality of internet of things data channels can be uniformly managed by using fewer internet of things gateways, the number of the internet of things gateways is reduced, and meanwhile, one internet of things gateway can provide data channels for a plurality of different industry applications.

In summary, the development of an internet-of-things-based data message distribution method and device is still a key problem to be solved urgently in the technical field of data message distribution.

Disclosure of Invention

The invention aims to provide a data message distribution method and equipment based on the Internet of things, and the data message distribution method and equipment aim to provide data message distribution equipment based on the Internet of things.

In order to achieve the purpose, the invention provides the following technical scheme:

a data message distribution method based on the Internet of things comprises the following steps:

and S1, initiating data connection request information to the target equipment.

S2, the target device obtains the request information, verifies the request information, establishes a connection path and selects the best distribution path.

And S3, cutting the data according to the fixed length, compressing the data into a data packet, and distributing the data to the target device.

And S4, the target device receives the data packet and decompresses and acquires the distribution data.

The invention is further configured to: the request information includes an ID of an initial position of the data, a data size, and a data identification code.

The invention is further configured to: in step S2, the verification request information indicates that the target device matches the data initial location ID with the stored location ID, and if the data initial location ID exists in the stored location ID, the verification is passed, otherwise, the verification is not passed.

The invention is further configured to: in step S2, the establishing a connection path and selecting an optimal distribution path include the following steps:

s201, establishing all distribution paths between the initial data positions and the target devices, and carrying out length statistics on all the distribution paths.

S202, selecting the distribution path with the shortest length as a priority path.

S203, counting the distribution nodes in the priority path and selecting a distribution mode.

S204, when the data messages are distributed according to the step-by-step distribution nodes, the ID of the upper-level distribution node is verified by the lower-level distribution node, and the data messages are distributed step by step.

The invention is further configured to: in step S203, selecting a distribution mode means that when the number of distribution nodes is less than one, the data packet is directly distributed to the target device, otherwise, the packet is gradually distributed to the target device.

The invention is further configured to: in step S204, the verification of the ID of the previous distribution node by the next distribution node means that the next distribution node verifies whether the ID of the previous distribution node exists when receiving the data packet of the previous distribution node, and if so, the next distribution node continues to distribute the packet to the next distribution node, otherwise, the next distribution node does not distribute the data packet.

The invention is further configured to: in step S204, when the data packet is distributed step by step, if the congestion threshold of the next-level distribution node is greater than the set threshold, all paths from the distribution node to the target device are counted, the distribution path with the shortest length from which the congestion distribution node is removed is selected as the backup path, and the data packet is distributed according to the backup path.

The invention is further configured to: in step S3, the minimum value of the channel window in the distribution path is the cut length.

The invention also provides data message distribution equipment based on the Internet of things, which comprises the following components:

a request connection unit, configured to initiate data connection request information to a target device.

And the connection response unit is used for establishing a distribution path between the data message and the target equipment, and the request connection unit is electrically connected with the connection response unit.

And the distribution path unit is used for selecting a distribution path in the data message distribution process, and the connection response unit is electrically connected with the distribution path unit.

And the message processing unit is used for cutting and compressing the data message.

And the storage unit is used for storing the position ID of the data message and the ID of the distribution node.

In addition, to achieve the above object, the present invention also provides a computer readable storage medium having stored thereon data message distribution program instructions executable by one or more processors to implement the internet of things based data message distribution method as described above.

Advantageous effects

Compared with the known public technology, the technical scheme provided by the invention has the following beneficial effects:

(1) the invention verifies the ID of the initial position of the data by initiating the data connection request information to the target equipment, improves the safety of data message distribution, and can improve the speed of data message distribution by adopting the priority route when establishing the distribution route.

(2) The invention adopts different distribution modes, further improves the distribution speed, reduces the distribution nodes in the distribution process, can verify the upper-level distribution nodes during the step-by-step distribution, avoids the invasion of non-distribution data during the distribution process, further improves the safety of the data message during the distribution of the distribution nodes, and can timely adjust the distribution path according to the path blockage condition, thereby further improving the distribution speed of the data message.

Drawings

Fig. 1 is a flow chart of a data message distribution method based on the internet of things;

fig. 2 is a system diagram of a data packet distribution device based on the internet of things.

The reference numbers in the figures illustrate:

1. a request connection unit; 2. a connection response unit; 3. a distribution path unit; 4. a message processing unit; 5. and a memory unit.

Detailed Description

In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below. It is to be understood that the embodiments described are only a few embodiments of the present invention, and not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.

The present invention will be further described with reference to the following examples.

Example 1

Referring to fig. 1, a data message distribution method based on the internet of things includes the following steps:

step one, data connection request information is sent to target equipment.

The request information includes an ID of the initial position of the data, the size of the data, and the data identification code.

In this embodiment, by sending the data connection request information to the target device, the ID of the data initial position can confirm the initial position of the data packet and verify whether the data packet is sent by the registered smart device, where the smart device may be a server or any device, and provides a storage reserved space for data distribution according to the size of data, and the data packet source is confirmed by the data identification code, thereby improving the security of data distribution.

And step two, the target equipment acquires the request information, verifies the request information, establishes a connection path and selects an optimal distribution path.

The verification request information refers to that the target device matches the data initial position ID with the stored position ID, if the data initial position ID exists in the stored position ID, the verification is passed, otherwise, the verification is not passed.

Establishing a connection path and selecting an optimal distribution path, comprising the following steps:

201) and establishing all distribution paths between the initial data position and the target equipment, and carrying out length statistics on each distribution path.

202) And selecting the distribution path with the shortest length as a priority path.

203) And counting the distribution nodes in the priority path and selecting a distribution mode.

204) And when the data messages are distributed according to the step-by-step distribution nodes, the ID of the upper-level distribution node is verified by the lower-level distribution node, and the data messages are distributed step by step.

The selection of the distribution mode refers to that when the number of the distribution nodes is less than one, the data message is directly distributed to the target equipment, otherwise, the message is distributed to the target equipment step by step.

The verification of the ID of the upper-level distribution node by the lower-level distribution node means that when the lower-level distribution node receives the data message of the upper-level distribution node, whether the ID of the upper-level distribution node exists is verified, if so, the message is continuously distributed to the lower-level distribution node, and otherwise, the data message is not distributed to the lower-level distribution node.

When the data message is distributed step by step, if the blocking threshold value of the next-stage distribution node is larger than the set threshold value, all paths from the distribution node to the target equipment are counted, the distribution path with the shortest length and with the blocking distribution node removed is selected as a standby path, and the data message is distributed according to the standby path.

In this embodiment, through the verification request, it can be determined that the sending device of the data packet is a registered device, so as to avoid illegal intrusion and improve the security of data distribution, when a distribution path is established, a priority route is adopted, so as to improve the speed of data packet distribution, and different distribution modes are adopted, so that the distribution speed is further improved, distribution nodes in the distribution process are reduced, when the distribution path is established stage by stage, the upper-stage distribution node can be verified, so as to avoid intrusion of non-distribution data in the distribution process, so as to improve the security of the data packet when the distribution nodes distribute, and meanwhile, the distribution path can be timely adjusted according to the path blockage condition, so as to improve the speed of data packet distribution.

And thirdly, cutting the data according to the fixed length, compressing the data into a data packet, and distributing the data to the target equipment.

And the minimum value of the channel window in the distribution path is the slitting length.

In this embodiment, by splitting and compressing the data packet, the data packet can meet the requirement of a channel window in a distribution path, avoid causing channel blockage, and ensure that the data packet can be stably distributed in time.

And step four, the target device receives the data packet and decompresses the data packet to obtain the distribution data.

In this embodiment, a data packet is received and decompressed to obtain a data packet.

Example 2

On the basis of embodiment 1, please refer to fig. 2, the present invention further provides a data packet distribution device based on the internet of things, including:

and the request connection unit 1 is used for initiating data connection request information to the target device by the request connection unit 1.

And the connection response unit 2, the connection response unit 2 is configured to establish a distribution path between the data packet and the target device, and request the connection unit 1 to be electrically connected to the connection response unit 2.

And the distribution path unit 3, the distribution path unit 3 is used for selecting a distribution path in the data message distribution process, and the connection response unit 2 is electrically connected with the distribution path unit 3.

And the message processing unit 4, the message processing unit 4 is used for cutting and compressing the data message.

And the storage unit 5 is used for storing the position ID of the data message and the ID of the distribution node in the storage unit 5.

In this embodiment, a request connection unit 1 initiates data connection request information, a target device receives the request information and verifies the identity of a data message sending device, a connection response unit 2 establishes a distribution path between a data message and the target device, and a distribution path unit 3 selects a preferred path, during data distribution, a standby distribution path can be adjusted as a distribution path, so that an excellent path is provided, the distribution speed and the security of the data message are improved, and a set message processing unit 4 can cut and compress the data message to be distributed, so that the data packet can be matched with a channel window, and channel blockage is avoided.

In addition, to achieve the above object, the present invention also provides a computer readable storage medium, on which data message distribution program instructions are stored, the data message distribution program instructions being executable by one or more processors to implement the data message distribution method based on the internet of things as above.

Portions of the present invention may be implemented in hardware, software, firmware, or a combination thereof, and in the above-described embodiments, the various steps or methods may be implemented in software or firmware stored in a memory and executed by a suitable instruction execution system, for example, if implemented in hardware, and in another embodiment, any one or a combination of the following techniques, as is known in the art: a discrete logic circuit having a logic gate circuit for implementing a logic function on a data signal, an application specific integrated circuit having an appropriate combinational logic gate circuit, a Programmable Gate Array (PGA), a Field Programmable Gate Array (FPGA), or the like.

The above examples are only intended to illustrate the technical solution of the present invention, but not to limit it; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; such modifications and substitutions do not depart from the spirit and scope of the corresponding technical solutions.

9页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:一种可信平台完整性证明的方法

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!

技术分类