CN115914082A - Data transmission method, system, node device, forwarding device and storage medium - Google Patents

Data transmission method, system, node device, forwarding device and storage medium Download PDF

Info

Publication number
CN115914082A
CN115914082A CN202111154053.5A CN202111154053A CN115914082A CN 115914082 A CN115914082 A CN 115914082A CN 202111154053 A CN202111154053 A CN 202111154053A CN 115914082 A CN115914082 A CN 115914082A
Authority
CN
China
Prior art keywords
data
transmitted
network
forwarding
node
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202111154053.5A
Other languages
Chinese (zh)
Inventor
苏国涛
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Lumi United Technology Co Ltd
Original Assignee
Lumi United Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Lumi United Technology Co Ltd filed Critical Lumi United Technology Co Ltd
Priority to CN202111154053.5A priority Critical patent/CN115914082A/en
Publication of CN115914082A publication Critical patent/CN115914082A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The embodiment of the application provides a data transmission method, which is applied to node equipment and comprises the following steps: judging whether the network state of the mobile terminal meets the requirement of data for replacing spring parts or not; if the current network state meets the data generation condition, broadcasting the data to be transmitted which needs to be uploaded so that forwarding equipment in at least one slave network or an adjacent network can carry out generation uploading on the data to be transmitted; the data to be transmitted carries additional information, wherein the additional information at least comprises a physical address of the device. Therefore, when the node equipment cannot perform data interaction with the father node equipment in the network, the external transmission of the specific data of the node equipment can be realized without the need of the node equipment to access the network again, so that the specific data can be stably transmitted to the destination in real time. In addition, the node equipment does not need to execute a network connection process, so that the data transmission efficiency is improved.

Description

Data transmission method, system, node device, forwarding device and storage medium
Technical Field
The present application relates to the field of network technologies, and in particular, to a data transmission method, system, node device, forwarding device, and computer-readable storage medium.
Background
Referring to fig. 1, a network topology represented by a conventional internet of things protocol technology network (Thread network) is shown. Several roles exist in Thread networks, and these roles respectively perform different function tasks, for example, a forwarding device (Leader) is used to manage network information; a route (Router) is used for forwarding data; the node device (End device) is used for collecting data, then sending the data to a parent device (such as Router 1) of the node device, and then forwarding the data to the Leader by the Router1, or the End device receives the data from the Router and then correspondingly executes a corresponding task. However, as shown in fig. 2, the Thread network has a disadvantage that when the position of the parent device Router1 of the End device therein is changed or an irresistible factor such as a failure occurs, the Router1 does not help the End device to forward data any more, and at this time, the End device performs a process of re-accessing the network, for example, by selecting to establish a connection with Router2 to get back to the network again. However, the End device may not join the original network due to network signals or other factors, and data sent by the End device may be lost or delayed to reach the destination.
Disclosure of Invention
In order to solve the existing technical problems, the application provides a data transmission method, a system, a node device, a forwarding device and a computer readable storage medium, which can realize external transmission of self specific data without the need of re-networking the node device.
In order to achieve the above purpose, the technical solution of the embodiment of the present application is implemented as follows:
in a first aspect, an embodiment of the present application provides a data transmission method, which is applied to a node device, and the method includes:
judging whether the network state of the mobile terminal meets the requirement of data for replacing spring parts or not;
if the current network state meets the data generation condition, broadcasting the data to be transmitted which needs to be uploaded so as to enable forwarding equipment in at least one slave network or an adjacent network to carry out generation uploading on the data to be transmitted, wherein the data to be transmitted carries additional information, and the additional information at least comprises the physical address of the equipment.
In a second aspect, an embodiment of the present application provides a data transmission method, which is applied to a forwarding device, where the method includes:
receiving data to be transmitted broadcasted by node equipment in at least one slave network or an adjacent network;
analyzing the additional information carried by the data to be transmitted;
and if the additional information meets the preset generation component, the data to be transmitted is uploaded in a generation mode.
In a third aspect, an embodiment of the present application provides a node device, including: the judging module is used for judging whether the network state of the judging module meets the requirement of a data substitute spring; the first sending module is used for broadcasting the data to be transmitted which needs to be uploaded if the current network state meets the data transmission condition so as to enable forwarding equipment in at least one slave network or an adjacent network to upload the data to be transmitted; the data to be transmitted carries additional information, and the additional information at least comprises a physical address of the device.
In a fourth aspect, an embodiment of the present application provides a forwarding device, including: the receiving module is used for receiving data to be transmitted broadcasted by node equipment in at least one slave network or an adjacent network; the analysis module is used for analyzing the additional information carried by the data to be transmitted; and the second sending module is used for uploading the data to be transmitted instead if the additional information meets the requirement of a preset generation spring. In a fifth aspect, an embodiment of the present application provides a data transmission system, including: the node equipment broadcasts data to be transmitted which need to be uploaded; the forwarding equipment receives data to be transmitted broadcasted by node equipment in at least one slave network or an adjacent network; analyzing the additional information carried by the data to be transmitted; and if the additional information meets the preset generation component, carrying out generation uploading on the data to be transmitted.
In a sixth aspect, an embodiment of the present application provides a node device, including a first processor, a first memory, and a first computer program stored on the first memory and executable by the first processor, where the first computer program, when executed by the first processor, implements the data transmission method according to any embodiment of the present application applied to the node device.
In a seventh aspect, an embodiment of the present application provides a forwarding device, including a second processor, a second memory, and a second computer program stored on the second memory and executable by the second processor, where the second computer program, when executed by the second processor, implements the data transmission method according to any embodiment of the present application applied to the forwarding device.
In an eighth aspect, the present application provides a computer-readable storage medium, where a first computer program is stored, and the first computer program, when executed by a first processor, implements a data transmission method as described in the present application applied to any embodiment of a node device.
In a ninth aspect, the present application provides a computer-readable storage medium, on which a second computer program is stored, and the second computer program, when executed by a second processor, implements the data transmission method according to any embodiment of the present application applied to a forwarding device.
The data transmission method, system, node device, forwarding device and computer-readable storage medium provided in the embodiments of the present application determine whether a network state of the forwarding device satisfies a data substitute; if the current network state meets the data generation component; broadcasting to-be-transmitted data needing to be uploaded so that forwarding equipment in at least one slave network or an adjacent network can upload the to-be-transmitted data on a generation basis; the data to be transmitted carries additional information, and the additional information at least comprises a physical address of the device. . Therefore, when the node equipment cannot perform data interaction with the father node equipment in the network, the external transmission of the data to be transmitted can be realized without the need of the node equipment to access the network again, so that the data to be transmitted can be stably transmitted to the destination in real time. In addition, the node equipment does not need to execute a network connection process, so that the efficiency of data transmission is improved.
Drawings
Fig. 1 is a network topology diagram of a conventional Thread network;
fig. 2 is another network topology diagram of a conventional Thread network;
fig. 3 is a schematic application environment diagram of a data transmission system according to an embodiment of the present application;
fig. 4 is a schematic structural diagram of a data transmission system according to an embodiment of the present application;
fig. 5 is a flowchart of a data transmission method applied to a node device in an alternative example of the present application;
fig. 6 is a flowchart of a data transmission method applied to a forwarding device in an alternative example of the present application;
fig. 7 is a detailed flowchart of a data transmission method applied to a data transmission system in another alternative example of the present application;
FIG. 8 is a schematic diagram of a node device in an alternative example of the present application;
FIG. 9 is a schematic diagram of a forwarding device according to an alternative example of the present application;
FIG. 10 is a schematic diagram of a node device according to yet another alternative example of the present application
Fig. 11 is a schematic structural diagram of a forwarding device in yet another alternative example of the present application.
Detailed Description
The technical solution of the present application is further described in detail with reference to the drawings and specific embodiments of the specification.
In order to make the objectives, technical solutions and advantages of the present application clearer, the present application will be described in further detail with reference to the attached drawings, the described embodiments should not be considered as limiting the present application, and all other embodiments obtained by a person of ordinary skill in the art without creative efforts shall fall within the protection scope of the present application.
In the following description, reference is made to the expression "some embodiments" which describe a subset of all possible embodiments, it being noted that "some embodiments" may be the same subset or different subsets of all possible embodiments, and may be combined with each other without conflict.
In the following description, references to the terms "first, second, and third" are only used to distinguish between similar items and do not denote a particular order, but rather the terms "first, second, and third" are used to indicate that a particular order or sequence of items may be interchanged where appropriate to enable embodiments of the application described herein to be practiced otherwise than as specifically illustrated or described herein.
Referring to fig. 3 and fig. 4, for example, fig. 3 is a schematic diagram of an application environment applicable to the data transmission system of the embodiment of the present application, and fig. 4 is a schematic diagram of a structure applicable to the data transmission system of the embodiment of the present application. The data transmission method provided by the embodiment of the present application may be applied to a data transmission system as shown in fig. 4, where the network with a structure suitable for the diagram may be a zigbee network or other networks such as Thread.
The data transmission system in the figure includes a node device 11, a parent node device 12, a forwarding and forwarding device 13, and a target network management node 14.
The node device 11 may be any device having a communication function, such as a Personal Computer (PC), a mobile phone, a tablet Computer, and a wearable electronic device, and is intended to emphasize a network node structure and an individual.
The parent node device 12 is a direct contact of the node device 11 in the network, and may be a full function device (FFD device), a forwarding device (coordinator), a routing device (Router device), or the like, or may be a general node device 11.
The parent node device 12 is not necessary, that is, a certain node device 11 may not have a corresponding parent node device 12 in the network; second, parent node device 12 may translate with forwarding devices 13, i.e., a forwarding device 13 may be directly a parent node of node device 11.
The forwarding device 13 may be a device with a data forwarding function, such as a router, and certainly, a device such as a coordinator and a gateway may also serve as the forwarding device 13.
The target network management node 14 is a destination of the data transmitted by the node apparatus 11. The embodiments of the present application do not limit this. Illustratively, in fig. 3, the node device 11 is an End device, the parent node device 12 is a Router1, the forwarding device 13 is a Router2, a Router3, a Router4, or a Router5, and the target network management node 14 is a Leader, and of course, the Leader may also serve as the forwarding device 13.
Referring to fig. 5, a data transmission method provided for an embodiment of the present application may be applied to the node device shown in fig. 4, where the data transmission method includes but is not limited to S101, and is specifically described as follows:
s101, judging whether the network state of the user self meets the requirement of data generation.
Here, the network state may refer to network quality. The condition that the data can be broadcasted by the current device may be satisfied by the data transmission-compliant member, and the condition may be that the network quality cannot satisfy normal transmission of the data signal, for example, the bandwidth of the network channel is insufficient or the load is too large, the hardware of the network device fails, the data transmission rate is lower than a set threshold, and the decoding rate of the network device after receiving the data packet is too small; but also in the case of node device offline, etc., and is not limited herein. The determining whether the network state of the node device satisfies the data generation condition may be determining whether the network state of the node device satisfies the data generation condition.
S102, if the current network state meets the data generation condition, broadcasting the data to be transmitted which needs to be uploaded so that forwarding equipment in at least one slave network or an adjacent network can carry out generation uploading on the data to be transmitted; the data to be transmitted carries additional information, wherein the additional information at least comprises a physical address of the device.
In one embodiment, the broadcast is preferably in a "one-to-all" communication mode, i.e., global broadcast; for example, if 27 channels are provided, broadcasting is performed in the 27 channels, so that all electronic devices with receiving functions in the slave network or the neighboring network can receive data carrying specified identification information sent by the node device. The forwarding device may be a gateway device or a coordinator device, etc. The slave network is a network where the node device is located, and the adjacent network is another network close to the network where the node device is located. The additional information at least includes the physical address of the node device itself, and the physical address may be a mac address, a short address, or a 64-bit unique extension address of the node device. Before sending the data to be transmitted, the node equipment detects that the current network state meets data generation conditions, and if the current network state meets the data generation conditions, the node equipment broadcasts the data to be transmitted, which needs to be uploaded.
According to the data transmission method, when the node equipment cannot perform data interaction with the father node equipment in the network, external transmission of specific data of the node equipment can be achieved without the node equipment accessing the network again, and the specific data can be transmitted to a destination in real time.
In some embodiments, the broadcast is in the form of a global broadcast.
In some embodiments, the data transmission condition is that the device itself is in an offline state or the data uploading rate is less than a preset value.
Here, the offline state is an offline state of the node apparatus. The preset value may be a threshold value stored in the node device manually in advance or through an upper network indication. The data transmission condition that the device is in an off-line state or the data uploading rate is less than a preset value may be: the node device judges whether the node device is in an off-line state or not at present or whether the data uploading rate of the node device and a father node device is smaller than a preset value or not. For example, when the node device transmits data to the parent node device, the node device counts the data transmission amount in unit time, and if the data transmission rate is determined to be zero, the node device determines that the node device is in the off-line state; if the data transmission rate is smaller than the preset value, determining that the data transmission rate of the father node equipment is smaller than the preset value; and then determining that the network state of the node equipment meets the data transmission condition. In addition, after the node device determines that the node device is in an offline state or the data transmission rate with the parent node device is smaller than a preset value, the duration of the offline state or the data transmission rate with the data transmission rate smaller than the preset value is recorded, and if the duration reaches a preset time threshold value, for example, 3S, it is determined that the data transmission path with the parent node device does not meet preset conditions.
The node device in the embodiment of the application is used as a basis for judging whether a data transmission path between the node device and a parent node device meets a preset condition according to whether the node device is in an offline state or not at present or according to whether the data transmission rate between the node device and the parent node device is smaller than a preset value or not. Therefore, the problem of time delay of the node equipment during data transmission can be solved, and the data to be transmitted can be broadcasted in time under the condition that the network condition does not meet the preset condition.
In some embodiments, before the broadcasting of the data to be transmitted carrying the specified identification information, the method further comprises: and encrypting the data to be transmitted by adopting an installation code.
Here, install code is a data encryption method. And encrypting the data to be transmitted by adopting the installation code, namely encrypting the data to be transmitted by adopting the install code by the node equipment.
The node equipment in the embodiment encrypts the data to be transmitted by adopting the installation code, so that the node equipment and other equipment in the network cannot be threatened even if the data to be transmitted is received by illegal equipment, and the safety of the data to be transmitted in the transmission process is enhanced.
In some embodiments, after the step of broadcasting the data to be transmitted, the method further includes: monitoring the feedback message of the forwarding device, and if the feedback message of the forwarding device indicates that the data to be transmitted needs to be retransmitted, broadcasting the data to be transmitted again.
Here, the feedback message refers to a response based on the additional information carried by the broadcast of the node device. The feedback message may include status information indicating whether the report of the data to be transmitted is successful, such as an ACK acknowledgement message or a NACK negative acknowledgement. And if the feedback information indicates that the data to be transmitted is not reported successfully and needs to be retransmitted, the node equipment broadcasts the data to be transmitted with additional information again.
In the embodiment of the application, the node equipment broadcasts the data to be transmitted with additional information again according to the received feedback information returned by the forwarding equipment and according to the state information which is contained in the feedback information and used for indicating that the data to be transmitted needs to be retransmitted; therefore, the problem of data loss of the node equipment can be solved, and the effectiveness of broadcasting the data to be transmitted is improved.
In some embodiments, before the step of broadcasting the data to be transmitted that needs to be uploaded, the method further includes: and suspending the network re-accessing action of the slave network until the broadcasting of the data to be transmitted is finished.
Here, the suspending the re-network entry behavior to the slave network may refer to suspending the re-network entry behavior to the previous network by the node device, so as to avoid radio frequency interference caused by performing re-network entry and broadcast simultaneously.
In the embodiment of the application, the node equipment suspends the network re-accessing behavior to the slave network until the broadcasting of the data to be transmitted is finished, so that the node equipment can also send the data to be transmitted without executing network connection, the problem of data delayed transmission is solved, and the efficiency of data transmission is improved.
In some embodiments, the additional information further includes a preset first identifier, where the first identifier is used to instruct the forwarding device to unconditionally upload the data to be transmitted.
Here, the first identifier may be preset field information for characterizing that the additional information is unconditionally uploaded by the receiving device.
Illustratively, the first identification information is "aqara," and is embedded in a packet header of the data to be transmitted, the forwarding device obtains an aqara field from the decoded packet header, and directly performs generation uploading on the data to be transmitted, regardless of whether a white list of the forwarding device includes a physical address carried by the data to be transmitted.
In the embodiment of the application, the additional information is further limited, so that the identification degree of the data to be transmitted is improved, and the data to be transmitted is further ensured to be uploaded to a destination in time.
Referring to fig. 6, an embodiment of the present application further provides a data transmission method applied to a forwarding device, where the method includes:
s201, receiving data to be transmitted, which is broadcasted by node devices in at least one slave network or an adjacent network.
With continued reference to fig. 3, the forwarding device may be one of Router2-5 or Leader. The receiving of the to-be-transmitted data broadcast by the node device in the at least one slave network or the adjacent network may refer to the forwarding device receiving the to-be-transmitted data broadcast by the node device in the at least one slave network or the adjacent network.
S202, analyzing the additional information carried by the data to be transmitted.
Here, the forwarding device parses the additional information carried by the data to be transmitted. Wherein the additional information comprises at least a physical address of the device itself.
S203, if the additional information meets the preset generation component, the data to be transmitted is uploaded in a generation mode.
Here, the generation member may refer to a criterion for judging whether data can be generated. The additional information satisfying the preset generation condition may mean that the physical address of the node device included in the additional information satisfies the preset generation condition. For example, referring to fig. 3, route2 receives data to be transmitted, which carries additional information of a node device, determines whether the node device is in a preset white list according to the additional information of the node device, and if the node device is in the preset white list, determines that the received data to be transmitted is transfer data meeting a preset transfer rule, and transfers the data to be transmitted to a Leader. Otherwise, route2 discards the received transmission data.
The white list may be distributed by an upper layer, which may be, for example, a leader, a cloud, or a core network. In an embodiment, a user configures a white list of Route2 through an APP, and after the APP reports the white list to a cloud, the cloud issues the white list to the corresponding Route2.
According to the data transmission method, the forwarding device determines whether the data to be transmitted is forwarded or not according to the additional information carried by the received data to be transmitted, so that the problem that the data to be transmitted cannot be transmitted to a destination when the node device does not meet the preset network condition can be solved, and the data to be transmitted of the node device can be smoothly transmitted to the destination.
In some embodiments, before the step of receiving data to be transmitted broadcast by node devices in at least one slave network or adjacent network, the method further includes: and receiving a configuration list issued by a superior network, and storing the physical address of the node equipment bound with the node equipment in the configuration list to form a white list.
Here, the upper network may be a target management node or a cloud server. The configuration list refers to a node equipment list that the data to be transmitted can be received by a target management node or a cloud server. The white list refers to a list of node devices whose data to be transmitted have a forwarding device sending qualification. The receiving a configuration list issued by a superior network, and storing the physical address of the node device bound to the configuration list to form a white list may refer to: the forwarding device receives a configuration list issued by a target management node or a cloud server, and binds and stores the physical address of the node device bound with the forwarding device in the configuration list to form a white list. For example, after receiving data to be transmitted, which is sent by node equipment and carries additional information, route2 compares an MAC address in the additional information with white list data to determine whether the node equipment is in a white list, and if the additional information indicates that the node equipment is a preset binding storage device, determines that the data to be transmitted is data that conforms to a preset generation rule.
In the embodiment of the application, the forwarding device receives a configuration list issued by a superior network, and stores the physical address of the node device bound with the forwarding device in the configuration list to form a white list. Therefore, the forwarding equipment can identify the data to be transmitted sent by the node equipment meeting the transmission generation condition, so as to ensure that the data to be transmitted is forwarded to the destination in time.
In some embodiments, the additional information comprises at least a physical address of the node device. In the embodiment of the application, the additional information is further limited, so that the identification degree of the data to be transmitted is improved, and the data to be transmitted is further ensured to be uploaded to a destination in time.
In some embodiments, the satisfaction of the generation condition is that the physical address of the node device is included in a preset white list, and/or that the device itself is an optimal forwarding device chosen according to a preset election rule.
Here, the preset election rule is a rule for determining a forwarding device most suitable for transmitting data to be transmitted among the plurality of forwarding devices. The optimal forwarding device that the device itself elects according to the preset election rule may be the optimal forwarding device that the forwarding device elects according to the preset election rule. For example, the forwarding device receives an optimal forwarding device that is decided by a third party (upper layer) according to a preset election rule, or an optimal forwarding device that is decided by the forwarding device itself from among the plurality of forwarding devices according to a preset election rule.
In the embodiment of the application, by determining that the physical address of the node device is contained in the preset white list and/or determining that the forwarding device is the optimal forwarding device chosen according to the preset election rule, the stability and timeliness of transmitting the data to be transmitted to the destination are effectively ensured.
In some embodiments, the preset election rules include a first rule that: reporting the self network transmission information to an upper layer so that the upper layer compares the information with the transmission information of other forwarding devices to obtain an optimal forwarding device; and monitoring the optimal forwarding equipment decided by the upper layer.
Here, the upper layer may refer to a target network management node or a cloud server. The reporting of the network transmission information to the upper layer so that the upper layer compares the information with transmission information of other forwarding devices to obtain an optimal forwarding device may refer to: the forwarding device reports the network transmission information to a target network management node or a cloud server, so that the target network management node or the cloud server compares the network transmission information with transmission information of other forwarding devices, and an optimal forwarding device is obtained. Therefore, the stability and timeliness of transmitting the data to be transmitted to the destination are effectively guaranteed.
In some embodiments, the preset election rule includes a second rule that: broadcasting the network transmission information of the self, and monitoring the network transmission information broadcast by other forwarding equipment at the same time; judging whether the network transmission capability of the forwarding equipment is superior to that of other forwarding equipment or not according to the network transmission information broadcasted by other forwarding equipment; if yes, continuously broadcasting; if not, stopping broadcasting; and until a forwarding device for broadcasting the network transmission information of the forwarding device is remained, wherein the forwarding device is the optimal forwarding device.
Here, the network transmission information of the forwarding device is broadcasted, and the network transmission information broadcasted by other forwarding devices at the same time is monitored; judging whether the self network transmission capability is superior to the other forwarding devices according to the network transmission information broadcasted by the other forwarding devices; if yes, continuously broadcasting; if not, stopping broadcasting; until there remains a forwarding device that broadcasts network transmission information of itself, the forwarding device, which is an optimal forwarding device, may specifically be: the method comprises the steps that first signal quality information between a forwarding device broadcast and a destination is obtained, second signal quality information between the forwarding device broadcast and the destination broadcast by other forwarding devices in a network is obtained, if the second signal quality information broadcast by other devices is better than the first signal quality information broadcast by the forwarding device, the device stops broadcasting the first signal quality information and considers that the device is not the optimal transmission device and does not transmit data to be transmitted (give a self-silence instruction), the process is also executed on other forwarding devices, and finally, only one forwarding device with the optimal signal quality information continuously broadcasts the signal quality information of the device, and at the moment, the device finds that no other comparable forwarding devices exist, the device is considered as the optimal forwarding device and processes the data to be forwarded.
The signal quality information refers to comprehensive evaluation information of each influencing factor when the network transmits data, and comprises data transmission rate, stability in the data transmission process, decoding rate after data reception and the like. For example, please continue referring to fig. 3, route2 determines first signal quality information between itself and Leader or an upper layer, and obtains second signal quality information between Route1 and Leader or the upper layer, second signal quality information between Route3 and Leader or the upper layer, second signal quality information between Route4 and Leader or the upper layer, and second signal quality information between Route5 and Leader or the upper layer, and determines whether the first signal quality information is better than the second signal quality information according to a comparison between the first signal quality information and a plurality of second signal quality information,
in the embodiment of the application, the forwarding equipment broadcasts the network transmission information of the forwarding equipment and monitors the network transmission information broadcast by other forwarding equipment at the same time; and judging whether the network transmission capability of the forwarding equipment is superior to that of the other forwarding equipment according to the network transmission information broadcasted by the other forwarding equipment so as to determine whether the forwarding equipment can transmit data for generation. Therefore, the forwarding equipment can identify the data to be transmitted sent by the node equipment, so as to ensure that the data to be transmitted is forwarded to the target network management node in time.
In order to enable a more systematic understanding of the data transmission method provided in the embodiment of the present application, the following description is made by using a specific example, please refer to fig. 7, which specifically includes:
s301, the node equipment judges whether the network state of the node equipment meets the requirement of a data generation component or not; if yes, go to step S302; if not, ending.
S302, encrypting the data to be transmitted with the appointed identification information by adopting an installation code, and broadcasting the encrypted data to be transmitted; the specified identification information at least comprises the physical address of the node equipment;
s303, the forwarding equipment acquires a node equipment configuration list sent by an upper layer, and stores the node equipment physical address bound with the forwarding equipment in the configuration list to form a white list;
s304, the forwarding equipment receives data to be transmitted of the additional information broadcast by the node equipment, and judges whether the data to be transmitted meets a transmission generation condition or not according to the additional information and the white list information; if yes, go to step S304; and if not, discarding the data to be transmitted.
S305, the forwarding equipment uploads the data to be transmitted to the ground generation;
s306, the node equipment monitors the feedback message of the forwarding equipment and determines whether the data to be transmitted needs to be broadcasted again according to the feedback message; if yes, executing S301; if not, ending.
The data transmission method in the embodiment of the application specifically introduces a process that node equipment broadcasts data to be transmitted to a destination through forwarding equipment. The embodiment of the application solves the problems of data loss and sending delay of the node equipment, reduces the dependence of the node equipment on a network, and achieves the aim that the to-be-transmitted data of the node equipment is transmitted to a destination in time. In addition, the node equipment does not need to execute a network connection process, so that the stability of the whole network system is improved.
In another aspect of the present embodiment, please refer to fig. 8, which further provides a node device, including: the judging module 401 is configured to judge whether a network state of the self-body satisfies a data generation component; a first sending module 402, configured to broadcast, if the current network state meets a data transmission condition, data to be transmitted that needs to be uploaded, so that forwarding devices in at least one slave network or an adjacent network upload the data to be transmitted instead; the data to be transmitted carries additional information, wherein the additional information at least comprises a physical address of the device.
The node device further includes: and an encryption module 403, configured to encrypt the data to be transmitted by using the installation code.
The first sending module 402 is further configured to monitor a feedback message of the forwarding device, and if the feedback message of the forwarding device indicates that the data to be transmitted needs to be retransmitted, broadcast the data to be transmitted again. The node device further includes: the suspension module 404 is further configured to suspend a network re-entry behavior to the slave network until the broadcasting of the data to be transmitted is ended.
In another aspect of the embodiments of the present application, please refer to fig. 9, which further provides a forwarding device, including: a second receiving module 501, configured to receive data to be transmitted, which is broadcast by node devices in at least one slave network or an adjacent network; an analyzing module 502, configured to analyze additional information carried by the data to be transmitted; a second sending module 503, configured to upload the data to be transmitted instead if the additional information meets a preset generation component. The forwarding device further includes: the second receiving module 501 is configured to receive a configuration list issued by a superior network, and store the physical address of the node device bound to the second receiving module in the configuration list to form a white list. .
It should be noted that: in the process of implementing data transmission, the node device and the forwarding device provided in the foregoing embodiment are only illustrated by dividing the foregoing program modules, and in practical applications, the processing allocation may be completed by different program modules according to needs, that is, the internal structures of the node device and the forwarding device may be divided into different program modules, so as to complete all or part of the method steps described above. In addition, the node device and the forwarding device provided in the above embodiments belong to the same concept as the data transmission method embodiment, and specific implementation processes thereof are described in the method embodiment and are not described herein again.
In another aspect of the embodiment of the present application, please refer to fig. 10, which further provides a node device, including a first processor 601, a first memory 602, and a first computer program stored in the first memory 602 and executable by the first processor 601, where the first computer program is executed by the first processor 601 to implement the data transmission method applied to the node device according to any embodiment of the present application, and can achieve the same technical effect, and details are not repeated herein to avoid repetition.
In another aspect of the embodiment of the present application, please refer to fig. 11, which further provides a forwarding device, including a second processor 701, a second memory 702, and a second computer program stored in the second memory 702 and executable by the second processor 701, where the second computer program, when executed by the second processor 701, implements the data transmission method applied to the forwarding device provided in any embodiment of the present application, and can achieve the same technical effect, and details are not repeated herein to avoid repetition.
The embodiments of the present application further provide a computer-readable storage medium, where a first computer program is stored, and when the first computer program is executed by a first processor, the first computer program implements the processes of the above-mentioned embodiment of the data transmission method applied to the node device, and can achieve the same technical effects, and in order to avoid repetition, details are not repeated here.
The embodiment of the present application further provides a computer-readable storage medium, where a second computer program is stored on the computer-readable storage medium, and when executed by a second processor, the second computer program implements the processes of the data transmission method embodiment applied to the forwarding device, and can achieve the same technical effects, and in order to avoid repetition, details are not repeated here.
The computer-readable storage medium may be a Read-only memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk.
The above description is only for the specific embodiments of the present application, but the scope of the present application is not limited thereto, and any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present application, and shall be covered by the scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.

Claims (20)

1. A data transmission method is applied to node equipment, and is characterized in that the method comprises the following steps:
judging whether the network state of the mobile terminal meets the requirement of data generation of spring elements or not;
if the current network state meets the data generation condition, broadcasting the data to be transmitted which needs to be uploaded so that forwarding equipment in at least one slave network or an adjacent network can carry out generation uploading on the data to be transmitted;
the data to be transmitted carries additional information, and the additional information at least comprises a physical address of the device.
2. The data transmission method according to claim 1, wherein the broadcast is a global broadcast.
3. The data transmission method according to claim 1, wherein the data generation condition is:
the equipment is in an off-line state or the data uploading speed is less than a preset value.
4. The data transmission method of claim 1, wherein before broadcasting the data to be transmitted with the specified identification information, the method further comprises:
and encrypting the data to be transmitted by adopting the installation code.
5. The data transmission method according to claim 1, wherein after the step of broadcasting the data to be transmitted that needs to be uploaded, the method further comprises:
and monitoring the feedback message of the forwarding equipment, and if the feedback message of the forwarding equipment indicates that the data to be transmitted needs to be retransmitted, broadcasting the data to be transmitted again.
6. The data transmission method according to claim 1, wherein the step of broadcasting the data to be transmitted that needs to be uploaded further comprises:
and suspending the network re-accessing action of the slave network until the broadcasting of the data to be transmitted is finished.
7. The data transmission method according to claim 1, wherein the additional information further includes a preset first identifier, and the first identifier is used to instruct the forwarding device to unconditionally upload the data to be transmitted.
8. A data transmission method is applied to forwarding equipment, and is characterized in that the method comprises the following steps:
receiving data to be transmitted broadcasted by node equipment in at least one slave network or adjacent network;
analyzing the additional information carried by the data to be transmitted;
and if the additional information meets the preset generation component, the data to be transmitted is uploaded in a generation mode.
9. The data transmission method according to claim 8, wherein the step of receiving the data to be transmitted broadcasted by the node devices in at least one slave network or adjacent network further comprises:
and receiving a configuration list issued by a superior network, and storing the physical address of the node equipment bound with the configuration list to form a white list.
10. The data transmission method according to claim 8, wherein the additional information includes at least a physical address of the node apparatus.
11. The data transmission method according to claim 10, wherein the satisfying of the trigger condition is that the physical address of the node device is included in a preset white list, and/or that the device itself is an optimal forwarding device decided according to a preset election rule.
12. The data transmission method according to claim 11, wherein the preset election rule includes a first rule that:
reporting the self network transmission information to an upper layer so that the upper layer compares the information with the transmission information of other forwarding devices to obtain an optimal forwarding device;
and monitoring the optimal forwarding equipment decided by the upper layer.
13. The data transmission method according to claim 11, wherein the predetermined election rule includes a second rule that:
broadcasting the network transmission information of the user and monitoring the network transmission information broadcast by other forwarding equipment at the same time;
judging whether the self network transmission capability is superior to the other forwarding devices according to the network transmission information broadcasted by the other forwarding devices;
if yes, continuously broadcasting;
if not, stopping broadcasting;
and until a forwarding device for broadcasting the network transmission information of the forwarding device is remained, wherein the forwarding device is the optimal forwarding device.
14. A node apparatus, comprising:
the judging module is used for judging whether the network state of the judging module meets the requirement of data generation of spring elements or not;
the first sending module is used for broadcasting the data to be transmitted which needs to be uploaded if the current network state meets the data transmission condition so as to enable forwarding equipment in at least one slave network or an adjacent network to upload the data to be transmitted; the data to be transmitted carries additional information, and the additional information at least comprises a physical address of the device.
15. A forwarding device, comprising:
the receiving module is used for receiving data to be transmitted broadcasted by node equipment in at least one slave network or an adjacent network;
the analysis module is used for analyzing the additional information carried by the data to be transmitted;
and the second sending module is used for uploading the data to be transmitted instead if the additional information meets the requirement of a preset generation spring.
16. A data transmission system, comprising: a node device, and a forwarding device,
the node equipment broadcasts the data to be transmitted which needs to be uploaded;
the forwarding equipment receives data to be transmitted broadcasted by node equipment in at least one slave network or an adjacent network; analyzing the additional information carried by the data to be transmitted; and if the additional information meets the preset generation component, the data to be transmitted is uploaded in a generation mode.
17. A node device comprising a first processor, a first memory and a first computer program stored on the first memory and executable by the first processor, the first computer program, when executed by the first processor, implementing a data transmission method as claimed in any one of claims 1 to 7.
18. A forwarding device comprising a second processor, a second memory, and a second computer program stored on the second memory and executable by the second processor, the second computer program, when executed by the second processor, implementing the data transmission method of any one of claims 8 to 13.
19. A computer-readable storage medium, characterized in that the computer-readable storage medium has stored thereon a first computer program which, when being executed by a first processor, carries out the data transmission method according to any one of claims 1 to 7.
20. A computer-readable storage medium, characterized in that the computer-readable storage medium has stored thereon a second computer program which, when being executed by a second processor, carries out the data transmission method according to any one of claims 8 to 13.
CN202111154053.5A 2021-09-29 2021-09-29 Data transmission method, system, node device, forwarding device and storage medium Pending CN115914082A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111154053.5A CN115914082A (en) 2021-09-29 2021-09-29 Data transmission method, system, node device, forwarding device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111154053.5A CN115914082A (en) 2021-09-29 2021-09-29 Data transmission method, system, node device, forwarding device and storage medium

Publications (1)

Publication Number Publication Date
CN115914082A true CN115914082A (en) 2023-04-04

Family

ID=86474979

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111154053.5A Pending CN115914082A (en) 2021-09-29 2021-09-29 Data transmission method, system, node device, forwarding device and storage medium

Country Status (1)

Country Link
CN (1) CN115914082A (en)

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102904610A (en) * 2012-08-29 2013-01-30 华为技术有限公司 Node recovering method and equipment for power line communication
CN106101240A (en) * 2016-06-23 2016-11-09 北京智能管家科技有限公司 A kind of data communication continued access method and device
CN108828979A (en) * 2018-09-17 2018-11-16 广州市特沃能源管理有限公司 Intelligent home control system and method based on Thread agreement
US20190014043A1 (en) * 2017-07-10 2019-01-10 Google Inc. Automatic Rerouting in Thread Networks
WO2019033220A1 (en) * 2017-08-18 2019-02-21 Reflex Photonics Inc. Methods and systems for reconfigurable network topologies
CN109981468A (en) * 2019-03-29 2019-07-05 中国人民银行清算总中心 Link state maintaining method and device
CN110475273A (en) * 2019-08-01 2019-11-19 北京搜狗科技发展有限公司 Mesh network-building method and device for Mesh networking
CN112203261A (en) * 2020-10-12 2021-01-08 北京绿星小绿人科技有限公司 Charging pile management method and device, electronic equipment and readable storage medium
CN112437459A (en) * 2020-11-17 2021-03-02 杭州萤石软件有限公司 Management method and device of wireless grid network
CN112770284A (en) * 2020-12-25 2021-05-07 深圳市豪恩安全科技有限公司 Bluetooth Mesh network node state monitoring device, method and system

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102904610A (en) * 2012-08-29 2013-01-30 华为技术有限公司 Node recovering method and equipment for power line communication
CN106101240A (en) * 2016-06-23 2016-11-09 北京智能管家科技有限公司 A kind of data communication continued access method and device
US20190014043A1 (en) * 2017-07-10 2019-01-10 Google Inc. Automatic Rerouting in Thread Networks
WO2019033220A1 (en) * 2017-08-18 2019-02-21 Reflex Photonics Inc. Methods and systems for reconfigurable network topologies
CN108828979A (en) * 2018-09-17 2018-11-16 广州市特沃能源管理有限公司 Intelligent home control system and method based on Thread agreement
CN109981468A (en) * 2019-03-29 2019-07-05 中国人民银行清算总中心 Link state maintaining method and device
CN110475273A (en) * 2019-08-01 2019-11-19 北京搜狗科技发展有限公司 Mesh network-building method and device for Mesh networking
CN112203261A (en) * 2020-10-12 2021-01-08 北京绿星小绿人科技有限公司 Charging pile management method and device, electronic equipment and readable storage medium
CN112437459A (en) * 2020-11-17 2021-03-02 杭州萤石软件有限公司 Management method and device of wireless grid network
CN112770284A (en) * 2020-12-25 2021-05-07 深圳市豪恩安全科技有限公司 Bluetooth Mesh network node state monitoring device, method and system

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
BIN SHEN: ""Internet of Building Equipment System Based on Thread Network and Methods for Managing End Devices"", 《2018 IEEE 4TH INTERNATIONAL CONFERENCE ON COMPUTER AND COMMUNICATIONS (ICCC)》, 1 August 2019 (2019-08-01) *
SKIP ASHTON;: "了解线程协议的七大关键要素 低功率网状联网能够可靠地提供无缝连接", 今日电子, no. 08, 15 August 2016 (2016-08-15) *
黄祥才;张志伟;彭意兵;何顶新;: "一种基于Thread的IPv6智能家居解决方案", 单片机与嵌入式***应用, no. 09, 1 September 2018 (2018-09-01) *

Similar Documents

Publication Publication Date Title
JP7048745B2 (en) Communication methods and related products
KR102667781B1 (en) Data transmission methods and devices, traffic conversion methods and devices
JP5001283B2 (en) Providing movement indications to resource requesters
US9225615B2 (en) Method for managing network and for providing service QoS
US9438496B2 (en) Monitoring link quality between network devices
US9231738B2 (en) Communication method for relay node and next node of the relay node for network coding
CN100579034C (en) Method for reporting equipment information, system and device for obtaining equipment information
US20140095864A1 (en) Reduced authentication times in constrained computer networks
Behdad et al. A new relay policy in RF energy harvesting for IoT networks—A cooperative network approach
EP3637703B1 (en) Message transmission methods and proxy servers
CN103036729A (en) System and method for opening network capability, and relevant network element
KR20180047172A (en) Method and Apparatus for Controlling Congestion in Communication Systems with Services
Ippisch et al. Infrastructure mode based opportunistic networks on android devices
KR101612475B1 (en) Apparatus and Method for establishing partnership of P2P service based on gossip
JP2006222659A (en) Radio communication device, system and method
CN105656978A (en) Resource sharing method and device
CN105847275A (en) Data transmission channel creating method, system and server
KR102665547B1 (en) Network resource scheduling method and device
CN102469079B (en) Method, system and device for transmitting live streams
CN115914082A (en) Data transmission method, system, node device, forwarding device and storage medium
JP2019521540A (en) Data transmission method, apparatus and system
US9635586B2 (en) Method and apparatus for using call admission control for client balancing
EP3484099A1 (en) Service interruption reporting
Zhou et al. Multipath tcp for user cooperation in wireless networks
CN109495918B (en) Data transmission method and device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination