CN116095008B - Data transmission method, system, gateway device and storage medium - Google Patents

Data transmission method, system, gateway device and storage medium Download PDF

Info

Publication number
CN116095008B
CN116095008B CN202310365513.1A CN202310365513A CN116095008B CN 116095008 B CN116095008 B CN 116095008B CN 202310365513 A CN202310365513 A CN 202310365513A CN 116095008 B CN116095008 B CN 116095008B
Authority
CN
China
Prior art keywords
data
gateway
equipment
data source
slave gateway
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.)
Active
Application number
CN202310365513.1A
Other languages
Chinese (zh)
Other versions
CN116095008A (en
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.)
Shenzhen Keshitong Electronic Technology Co ltd
Original Assignee
Shenzhen Keshitong Electronic 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 Shenzhen Keshitong Electronic Technology Co ltd filed Critical Shenzhen Keshitong Electronic Technology Co ltd
Priority to CN202310365513.1A priority Critical patent/CN116095008B/en
Publication of CN116095008A publication Critical patent/CN116095008A/en
Application granted granted Critical
Publication of CN116095008B publication Critical patent/CN116095008B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/10Flow control; Congestion control
    • H04L47/12Avoiding congestion; Recovering from congestion
    • H04L47/125Avoiding congestion; Recovering from congestion by balancing the load, e.g. traffic engineering
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/66Arrangements for connecting between networks having differing types of switching systems, e.g. gateways
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/10Flow control; Congestion control
    • H04L47/30Flow control; Congestion control in combination with information about buffer occupancy at either end or at transit nodes
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/10Flow control; Congestion control
    • H04L47/32Flow control; Congestion control by discarding or delaying data units, e.g. packets or frames
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The invention belongs to the technical field of communication, and discloses a data transmission method, a data transmission system, gateway equipment and a storage medium. The method comprises the following steps: the method comprises the steps that a main gateway device obtains data volume information sent by a data source device to determine the number of enabled gateways; when the own residual buffer memory space meets the transmission requirement, determining the residual buffer memory spaces and network delays of a plurality of slave gateway devices; selecting target slave gateway equipment matched with the number of gateways according to the residual cache space and network delay; the control target is connected with the data source equipment from the gateway equipment; transmitting gateway identification information and the number of gateways to the data source equipment so that the data source equipment can divide and transmit data; and receiving and transmitting the data sent by the data source equipment. By the method, gateway selection is performed according to the residual cache space and network delay, data to be transmitted is divided, and the data is transmitted through a plurality of gateway devices, so that the data transmission rate is improved, and on the other hand, the safety of data transmission is improved.

Description

Data transmission method, system, gateway device and storage medium
Technical Field
The present invention relates to the field of communications technologies, and in particular, to a data transmission method, a system, a gateway device, and a storage medium.
Background
At present, data transmission is generally performed between a cloud server and a mobile terminal through a gateway transmission link, and if the gateway transmission link fails or the data transmission rate is low, the communication quality between the cloud server and the mobile terminal is affected. On the other hand, when a large amount of data is transmitted by using the same gateway transmission link, the network broadband is occupied more, and the forwarding performance of the gateway is affected.
The foregoing is provided merely for the purpose of facilitating understanding of the technical solutions of the present invention and is not intended to represent an admission that the foregoing is prior art.
Disclosure of Invention
The invention mainly aims to provide a data transmission method, a system, gateway equipment and a storage medium, and aims to solve the technical problem of low data transmission rate of a gateway transmission link.
In order to achieve the above object, the present invention provides a data transmission method applied to a master gateway device, where the master gateway device is connected to a plurality of slave gateway devices, the data transmission method including:
acquiring data volume information sent by data source equipment, and determining the number of enabled gateways according to the data volume information;
when the own residual buffer memory space meets the transmission requirement, the method communicates with the plurality of slave gateway devices, and determines the residual buffer memory space of the plurality of slave gateway devices and network delay between the plurality of slave gateway devices and the data source device;
Selecting one or more target slave gateway devices matching the number of gateways according to the remaining cache space of the plurality of slave gateway devices and network delays between the plurality of slave gateway devices and the data source device;
the target slave gateway equipment is communicated with the target slave gateway equipment, and the target slave gateway equipment is controlled to establish connection with the data source equipment;
transmitting main gateway identification information, the identification information of the target slave gateway equipment and the gateway quantity to the data source equipment so that the data source equipment segments data to be transmitted according to the gateway quantity, and transmitting the segmented data to the main gateway equipment and the target slave gateway equipment according to the main gateway identification information and the identification information of the target slave gateway equipment;
and receiving and transmitting the data sent by the data source equipment.
Optionally, the selecting one or more target slave gateway devices matching the number of gateways according to the remaining cache space of the plurality of slave gateway devices and network delays between the plurality of slave gateway devices and the data source device includes:
calculating a quality score corresponding to each slave gateway device according to the residual cache space of the plurality of slave gateway devices and network delays between the plurality of slave gateway devices and the data source device;
Ranking the plurality of slave gateway devices from high to low according to the quality score;
one or more target slave gateway devices matching the number of gateways are selected from the ordered list.
Optionally, after the target slave gateway device is in communication with the target slave gateway device and the target slave gateway device is controlled to establish a connection with the data source device, the method further includes:
calculating a quality score corresponding to the main gateway equipment according to the residual cache space of the main gateway equipment and the network delay between the main gateway equipment and the data source equipment;
calculating a segmentation duty ratio according to the quality scores corresponding to the master gateway equipment and the quality scores corresponding to the target slave gateway equipment;
transmitting main gateway identification information, the identification information of the target slave gateway equipment and the dividing duty ratio to the data source equipment so that the data source equipment divides data to be transmitted according to the dividing duty ratio, and transmitting the divided data to the main gateway equipment and the target slave gateway equipment according to the main gateway identification information and the identification information of the target slave gateway equipment;
and receiving and transmitting the data sent by the data source equipment.
Optionally, after the acquiring the data volume information sent by the data source device and determining the number of enabled gateways according to the data volume information, the method further includes:
detecting own residual cache space, and judging whether the own residual cache space is smaller than a preset threshold value;
if not, judging that the residual buffer space of the buffer memory meets the transmission requirement.
Optionally, after detecting the remaining cache space of the self and determining whether the remaining cache space of the self is smaller than a preset threshold, the method further includes:
when the self residual cache space is smaller than the preset threshold value, the method communicates with the plurality of slave gateway devices, and determines the residual cache space of the plurality of slave gateway devices and network delay between the plurality of slave gateway devices and the data source device;
calculating a quality score corresponding to each slave gateway device according to the residual cache space of the plurality of slave gateway devices and network delays between the plurality of slave gateway devices and the data source device;
selecting the slave gateway device with the highest quality score from the plurality of slave gateway devices as a backup gateway device;
and authorizing the backup gateway equipment to enable the backup gateway equipment to execute gateway equipment selection tasks, slave gateway equipment management tasks and data transmission tasks.
Optionally, the receiving and transmitting the data sent by the data source device includes:
receiving data sent by the data source equipment and determining data destination equipment;
and transmitting the data sent by the data source equipment to the data destination equipment so that the data destination equipment can splice the received data from the master gateway equipment and the target slave gateway equipment to obtain target data.
Optionally, the method further comprises:
acquiring a corresponding encryption algorithm from the password system according to the main gateway identification information;
and encrypting the data sent by the data source equipment according to the encryption algorithm, transmitting the encrypted data and the main gateway identification information to the data destination equipment, so that the data destination equipment obtains a corresponding decryption algorithm from the password system according to the main gateway identification information, decrypts the received data according to the decryption algorithm, and splices the decrypted data from the main gateway equipment and the target slave gateway equipment to obtain target data.
In addition, to achieve the above object, the present invention also proposes a data transmission system including: a data source device, a master gateway device, and a plurality of slave gateway devices connected to the master gateway device;
The data source equipment is used for sending data volume information to the main gateway equipment;
the main gateway equipment is used for determining the number of the enabled gateways according to the data volume information; when the own residual buffer memory space meets the transmission requirement, the method communicates with the plurality of slave gateway devices, and determines the residual buffer memory space of the plurality of slave gateway devices and network delay between the plurality of slave gateway devices and the data source device; selecting one or more target slave gateway devices matching the number of gateways according to the remaining cache space of the plurality of slave gateway devices and network delays between the plurality of slave gateway devices and the data source device; the target slave gateway equipment is communicated with the target slave gateway equipment, and the target slave gateway equipment is controlled to establish connection with the data source equipment; sending the main gateway identification information, the identification information of the target slave gateway equipment and the gateway quantity to the data source equipment;
the data source equipment is further used for dividing the data to be transmitted according to the number of the gateways and sending the divided data to the master gateway equipment and the target slave gateway equipment according to the master gateway identification information and the identification information of the target slave gateway equipment;
The main gateway equipment is also used for receiving the data sent by the data source equipment and transmitting the data;
the target slave gateway device is used for receiving the data sent by the data source device and transmitting the data.
In addition, to achieve the above object, the present invention also proposes a gateway apparatus including: a memory, a processor, and a data transmission program stored on the memory and executable on the processor, the data transmission program configured to implement the data transmission method as described above.
In addition, in order to achieve the above object, the present invention also proposes a storage medium having stored thereon a data transmission program which, when executed by a processor, implements the data transmission method as described above.
The method comprises the steps that a main gateway device obtains data volume information sent by a data source device, and determines the number of enabled gateways according to the data volume information; when the own residual buffer memory space meets the transmission requirement, the method communicates with a plurality of slave gateway devices, and determines the residual buffer memory space of the plurality of slave gateway devices and network delay between the plurality of slave gateway devices and data source devices; selecting one or more target slave gateway devices matching the number of gateways according to the remaining cache space of the plurality of slave gateway devices and the network delay between the plurality of slave gateway devices and the data source device; the target slave gateway equipment is communicated with the target slave gateway equipment, and the target slave gateway equipment is controlled to establish connection with the data source equipment; transmitting main gateway identification information, target slave gateway equipment identification information and gateway quantity to data source equipment so that the data source equipment segments data to be transmitted according to the gateway quantity, and transmitting the segmented data to the main gateway equipment and the target slave gateway equipment according to the main gateway identification information and the target slave gateway equipment identification information; and receiving and transmitting the data sent by the data source equipment. By the method, the main gateway equipment performs gateway selection according to the residual cache space and the network delay of the auxiliary gateway equipment, the received data source is divided into the data to be transmitted, and the data to be transmitted is transmitted through the plurality of gateway equipment, so that the capacity expansion of the transmission link is realized, the data transmission rate is improved, and on the other hand, the safety of the data transmission is improved.
Drawings
FIG. 1 is a schematic diagram of a gateway device of a hardware operating environment according to an embodiment of the present invention;
fig. 2 is a flow chart of a first embodiment of the data transmission method of the present invention;
fig. 3 is a flow chart of a second embodiment of the data transmission method of the present invention;
fig. 4 is a flowchart of a third embodiment of a data transmission method according to the present invention;
fig. 5 is a flowchart of a fourth embodiment of a data transmission method according to the present invention;
fig. 6 is a block diagram of a first embodiment of a data transmission system according to the present invention.
The achievement of the objects, functional features and advantages of the present invention will be further described with reference to the accompanying drawings, in conjunction with the embodiments.
Detailed Description
It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the scope of the invention.
Referring to fig. 1, fig. 1 is a schematic structural diagram of a gateway device in a hardware running environment according to an embodiment of the present invention.
As shown in fig. 1, the gateway device may include: a processor 1001, such as a central processing unit (Central Processing Unit, CPU), a communication bus 1002, a user interface 1003, a network interface 1004, a memory 1005. Wherein the communication bus 1002 is used to enable connected communication between these components. The user interface 1003 may include a Display, an input unit such as a Keyboard (Keyboard), and the optional user interface 1003 may further include a standard wired interface, a wireless interface. The network interface 1004 may optionally include a standard wired interface, a Wireless interface (e.g., a Wireless-Fidelity (Wi-Fi) interface). The Memory 1005 may be a high-speed random access Memory (Random Access Memory, RAM) or a stable nonvolatile Memory (NVM), such as a disk Memory. The memory 1005 may also optionally be a storage device separate from the processor 1001 described above.
Those skilled in the art will appreciate that the architecture shown in fig. 1 is not limiting of the gateway device and may include more or fewer components than shown, or may combine certain components, or a different arrangement of components.
As shown in fig. 1, an operating system, a network communication module, a user interface module, and a data transmission program may be included in the memory 1005 as one type of storage medium.
In the gateway device shown in fig. 1, the network interface 1004 is mainly used for data communication with a network server; the user interface 1003 is mainly used for data interaction with a user; the processor 1001 and the memory 1005 in the gateway device of the present invention may be provided in the gateway device, and the gateway device calls the data transmission program stored in the memory 1005 through the processor 1001 and executes the data transmission method provided by the embodiment of the present invention.
An embodiment of the present invention provides a data transmission method, referring to fig. 2, fig. 2 is a schematic flow chart of a first embodiment of the data transmission method of the present invention.
In this embodiment, the data transmission method is applied to a master gateway device, where the master gateway device is connected to a plurality of slave gateway devices, and the data transmission method includes the following steps:
Step S10: and acquiring data volume information sent by the data source equipment, and determining the number of enabled gateways according to the data volume information.
It may be understood that the execution body of the embodiment is a primary gateway device, where the primary gateway device communicates with a data source device, and before sending out data to be transmitted, the data source device detects data amount information of the data to be transmitted, sends the data amount information to the primary gateway device, where the data amount information is used to characterize a data size of the data to be transmitted.
It should be noted that, the size of a transmission data packet supported by a protocol used by the gateway device is preset, the number of enabled gateways is determined according to the data amount information of the data to be transmitted and the size of the transmission data packet supported by the protocol, for example, the data amount information represents that the data size of the data to be transmitted is 32 bits, the size of the transmission data packet supported by the protocol is 16 bits, and the number of enabled gateways is determined to be 2; the data quantity information represents that the data size of the data to be transmitted is 40 bits, the size of a transmission data packet supported by a protocol is 16 bits, and the number of enabled gateways is determined to be 3.
Step S20: and when the residual buffer space of the self-service data transmission system meets the transmission requirement, the self-service data transmission system is communicated with the plurality of slave gateway devices, and the residual buffer space of the plurality of slave gateway devices and the network delay between the plurality of slave gateway devices and the data source device are determined.
It should be understood that, the main gateway device also carries the data transmission task started by other devices, if the remaining buffer space of the main gateway device is insufficient, the data transmission efficiency will be low, so in this embodiment, the main gateway device monitors the remaining buffer space of the main gateway device and determines whether the main gateway device meets the transmission requirement. Specifically, whether the transmission requirement is met is determined by judging whether the residual buffer space of the gateway device is smaller than a preset threshold, wherein the preset threshold is a preset critical value for distinguishing the space size, and optionally, the preset threshold is the size of a transmission data packet supported by a protocol used by the gateway device.
After receiving the instruction of the master gateway, each slave gateway device monitors the remaining cache space, detects the network delay with the data source device, and feeds back the remaining cache space and the network delay with the data source device to the master gateway device.
Step S30: one or more target slave gateway devices matching the number of gateways are selected based on the remaining cache space of the plurality of slave gateway devices and the network delay between the plurality of slave gateway devices and the data source device.
It should be understood that, optionally, the plurality of slave gateway devices are ranked from high to low according to the remaining buffer space, and ranked from low to high according to the network delay with the data source device, to obtain a ranked list, and one or more target slave gateway devices matching the number of gateways are selected from the ranked list. Optionally, the communication quality of each slave gateway device is evaluated according to the remaining buffer space and the network delay between the slave gateway device and the data source device, the slave gateway devices are ranked from high to low according to the evaluation result, and one or more target slave gateway devices matched with the number of the gateways are selected from the ranking result. Note that the number of gateways includes a master gateway device, and when a slave gateway device selects, the selected number=the number of gateways-1.
Step S40: and communicating with the target slave gateway equipment, and controlling the target slave gateway equipment to establish connection with the data source equipment.
It should be noted that the master gateway device communicates with one or more target slave gateway devices, and sends control instructions to the target slave gateway devices, where each target slave gateway device establishes a connection with the data source device in response to the control instructions.
Step S50: and sending the main gateway identification information, the identification information of the target slave gateway equipment and the gateway quantity to the data source equipment so that the data source equipment segments data to be transmitted according to the gateway quantity, and sending the segmented data to the main gateway equipment and the target slave gateway equipment according to the main gateway identification information and the identification information of the target slave gateway equipment.
It should be appreciated that the gateway identification is used to distinguish between different gateways and primary and secondary relationships, facilitating data transmission by the data source device based on the gateway identification. Specifically, the data source device performs average segmentation on the data to be transmitted according to the number n of the gateways, so that the data to be transmitted is divided into n data with equal size, and the n data with equal size are respectively sent to the master gateway device and the target slave gateway device according to the gateway identification. Optionally, the master gateway device and the plurality of slave gateway devices form a local area network, the data source device packages the n divided data according to the gateway identification, and then the n divided data are transmitted into the local area network in a broadcasting mode, and the master gateway device and the target slave gateway device read the data matched with the self identification so as to realize data transmission.
Step S60: and receiving and transmitting the data sent by the data source equipment.
It should be noted that, the master gateway device and the target slave gateway device synchronously receive the data sent by the data source device and transmit the data, thereby improving the data transmission efficiency.
Specifically, the step S60 includes: receiving data sent by the data source equipment and determining data destination equipment; and transmitting the data sent by the data source equipment to the data destination equipment so that the data destination equipment can splice the received data from the master gateway equipment and the target slave gateway equipment to obtain target data.
It should be understood that the master gateway device parses the destination address of the data sent by the data source device, determines the data destination device, transmits the data sent by the data source device to the data destination device, and accordingly, the target slave gateway device also parses the destination address of the data sent by the data source device, determines the data destination device, and transmits the data sent by the data source device to the data destination device, so that the data source device receives the data from the master gateway device and the target slave gateway device. Further, when the data source equipment performs data segmentation, a data packet identifier is added to each segmented data according to the segmentation sequence, and after the data source equipment receives the data from the gateway equipment and the target slave gateway equipment, the data source equipment reads the data packet identifiers of the data, so that the data sequence is determined, and the target data is obtained by splicing according to the data sequence.
To further improve the security of data transmission, the method further comprises: acquiring a corresponding encryption algorithm from the password system according to the main gateway identification information; and encrypting the data sent by the data source equipment according to the encryption algorithm, transmitting the encrypted data and the main gateway identification information to the data destination equipment, so that the data destination equipment obtains a corresponding decryption algorithm from the password system according to the main gateway identification information, decrypts the received data according to the decryption algorithm, and splices the decrypted data from the main gateway equipment and the target slave gateway equipment to obtain target data.
It should be noted that, the master gateway device and the target slave gateway device each perform the following steps: the gateway equipment acquires an encryption algorithm from the password system according to the gateway identification of the gateway equipment, encrypts the data and transmits the encrypted data and the gateway identification to the data destination equipment. The data destination device receives the data from the master gateway device and the target slave gateway device, and the gateway identifications of the master gateway device and the target slave gateway device, queries a corresponding decryption algorithm from the cryptosystem according to the gateway identifications, decrypts the received encrypted data, and splices according to the data sequence to obtain the target data.
In this embodiment, the master gateway device performs gateway selection according to the remaining buffer space and network delay of the slave gateway device, and segments the data to be transmitted from the received data source, and transmits the data through multiple gateway devices, thereby realizing expansion of the transmission link, improving the data transmission rate, and on the other hand, improving the security of data transmission.
Referring to fig. 3, fig. 3 is a flowchart of a second embodiment of the data transmission method according to the present invention.
Based on the above-mentioned first embodiment, the step S30 of the data transmission method of this embodiment includes:
step S301: and calculating the quality score corresponding to each slave gateway device according to the residual cache space of the plurality of slave gateway devices and the network delay between the plurality of slave gateway devices and the data source device.
It will be appreciated that the quality score from the gateway device is calculated according to the following formula:
Figure SMS_1
wherein, the liquid crystal display device comprises a liquid crystal display device,
Figure SMS_2
for the quality score of any gateway device, +.>
Figure SMS_3
For the remaining buffer space of any gateway device, < +.>
Figure SMS_4
For network delay between any gateway device and data source device, m is [1, n ]],/>
Figure SMS_5
For the preset weight value, the importance degrees for representing the residual buffer space and the network delay respectively can be set according to the actual requirement, wherein,
Figure SMS_6
Step S302: and sequencing the plurality of slave gateway devices from high to low according to the quality scores.
Step S303: one or more target slave gateway devices matching the number of gateways are selected from the ordered list.
It should be noted that, according to the ranking of the calculated quality scores from high to low, one or more target slave gateway devices in the front of the ranking list are selected, and the number of gateways includes the master gateway device, and when the slave gateway devices are selected, the number of selected target slave gateway devices=the number of gateways-1.
In this embodiment, the quality score is calculated according to the remaining buffer space and the network delay, and one or more targets with high quality scores are selected to perform data transmission from the gateway device, so that the data transmission rate is improved, the data is divided and then transmitted, and the security of data transmission is improved.
Referring to fig. 4, fig. 4 is a flowchart of a third embodiment of the data transmission method according to the present invention.
Based on the above second embodiment, the data transmission method of this embodiment further includes, after step S40:
step S401: and calculating the quality score corresponding to the main gateway equipment according to the residual cache space of the main gateway equipment and the network delay between the main gateway equipment and the data source equipment.
It should be appreciated that the quality score for the primary gateway device is calculated according to the following formula:
Figure SMS_7
wherein, the liquid crystal display device comprises a liquid crystal display device,
Figure SMS_8
for the preset standard buffer space, < > for>
Figure SMS_9
For a preset standard network delay, +.>
Figure SMS_10
For the preset weight values, which are used to represent the importance levels of the remaining buffer space and the network delay, respectively, the method can be set according to the actual requirements, wherein +.>
Figure SMS_11
Step S402: and calculating the segmentation duty ratio according to the quality scores corresponding to the master gateway equipment and the quality scores corresponding to the target slave gateway equipment.
The split duty ratio is calculated by the following formula:
Figure SMS_12
;
wherein, the liquid crystal display device comprises a liquid crystal display device,
Figure SMS_13
split duty-cycle for any gateway device, +.>
Figure SMS_14
A quality score for the master gateway device or the target slave gateway device.
Step S403: and sending the main gateway identification information, the identification information of the target slave gateway equipment and the segmentation duty ratio to the data source equipment so that the data source equipment segments the data to be transmitted according to the segmentation duty ratio, and sending the segmented data to the main gateway equipment and the target slave gateway equipment according to the main gateway identification information and the identification information of the target slave gateway equipment.
In a specific implementation, the data source equipment divides transmission data according to the calculated division ratio to obtain n pieces of data to be transmitted with different lengths, so that the data sizes transmitted by gateway equipment with different network environments are different, the data processing progress of the gateway equipment is kept consistent as much as possible, the occurrence of data congestion of the gateway equipment with poor network quality is avoided, and the data transmission rate is improved.
Step S404: and receiving and transmitting the data sent by the data source equipment.
It should be noted that, the master gateway device and the target slave gateway device synchronously receive the data sent by the data source device and transmit the data, thereby improving the data transmission efficiency.
In this embodiment, the segmentation duty ratio is calculated according to the quality score, so that the data source device segments data according to the segmentation duty ratio, and transmits the segmented data to the corresponding gateway device for transmission, so that the data transmitted by the gateway devices with different network environments are different in size, the occurrence of data congestion of the gateway device with poor network quality is avoided, the data transmission rate is improved, the data is transmitted after being segmented, and the safety of data transmission is improved.
Referring to fig. 5, fig. 5 is a flowchart of a fourth embodiment of the data transmission method according to the present invention.
Based on the first embodiment, the data transmission method of this embodiment further includes, after step S10:
step S101: detecting the residual cache space of the self-body and judging whether the residual cache space of the self-body is smaller than a preset threshold value.
It should be understood that the preset threshold is a preset critical value for distinguishing the size of the space, and optionally, the preset threshold is a transmission data packet size supported by a protocol used by the gateway device.
Step S102: if not, judging that the residual buffer space of the buffer memory meets the transmission requirement.
It should be noted that, when the remaining buffer space is greater than or equal to the preset threshold, the steps S20-S60 are executed.
Step S103: and when the residual cache space of the self-service data source device is smaller than the preset threshold value, the self-service data source device communicates with the plurality of slave gateway devices, and the residual cache space of the plurality of slave gateway devices and the network delay between the plurality of slave gateway devices and the data source device are determined.
Step S104: and calculating the quality score corresponding to each slave gateway device according to the residual cache space of the plurality of slave gateway devices and the network delay between the plurality of slave gateway devices and the data source device.
It should be appreciated that the quality score from the gateway device is calculated according to the following formula:
Figure SMS_15
wherein, the liquid crystal display device comprises a liquid crystal display device,
Figure SMS_16
for the quality score of any gateway device, +.>
Figure SMS_17
For the remaining buffer space of any gateway device, < +.>
Figure SMS_18
For network delay between any gateway device and data source device, m is [1, n ]],/>
Figure SMS_19
For the preset weight value, the importance degrees for representing the residual buffer space and the network delay respectively can be set according to the actual requirement, wherein,
Figure SMS_20
Step S105: and selecting the slave gateway device with the highest quality score from the plurality of slave gateway devices as the backup gateway device.
Step S106: and authorizing the backup gateway equipment to enable the backup gateway equipment to execute gateway equipment selection tasks, slave gateway equipment management tasks and data transmission tasks.
It should be noted that, when the remaining buffer space of the master gateway device is insufficient, the slave gateway device with the highest quality score is used as a backup gateway device, and the backup gateway device is authorized to perform data transmission by using the backup gateway device as the master gateway device, specifically, the backup gateway device performs a device selection task, a slave gateway device management task and a data transmission task, including: and the method comprises the steps of communicating with other slave gateway equipment, determining the residual cache space of the other slave gateway equipment and network delay between the other slave gateway equipment and the data source equipment, selecting one or more target slave gateway equipment matched with the gateway quantity according to the residual cache space and the network delay, communicating with the target slave gateway equipment, controlling the target slave gateway equipment to establish connection with the data source equipment, sending backup gateway identification information, the identification information of the target slave gateway equipment and the gateway quantity to the data source equipment so as to enable the data source equipment to divide data to be transmitted according to the gateway quantity, sending the divided data to the backup gateway equipment and the target slave gateway equipment according to the backup gateway identification information and the identification information of the target slave gateway equipment, and receiving the data sent by the data source equipment by the backup gateway equipment and transmitting the data.
In the embodiment, when the residual buffer space of the main gateway device is insufficient, the backup gateway device with the highest quality score is switched to execute the gateway device selection task, the slave gateway device management task and the data transmission task, so that the stability of a transmission link is improved, the data congestion caused by the insufficient residual buffer space of the main gateway device is avoided, and the data transmission rate is further improved.
In addition, the embodiment of the invention also provides a storage medium, wherein a data transmission program is stored on the storage medium, and the data transmission program realizes the data transmission method when being executed by a processor.
Because the storage medium adopts all the technical schemes of all the embodiments, the storage medium has at least all the beneficial effects brought by the technical schemes of the embodiments, and the description is omitted here.
Referring to fig. 6, fig. 6 is a block diagram illustrating a first embodiment of a data transmission system according to the present invention.
As shown in fig. 6, a data transmission system according to an embodiment of the present invention includes: a data source device 10, a master gateway device 20, and a plurality of slave gateway devices 30 connected to the master gateway device 20;
the data source device 10 is configured to send data volume information to the primary gateway device 20;
The main gateway device 20 is configured to determine the number of enabled gateways according to the data volume information; when the own residual buffer space meets the transmission requirement, communicating with the plurality of slave gateway devices 30, and determining the residual buffer space of the plurality of slave gateway devices 30 and network delay between the plurality of slave gateway devices 30 and the data source device 10; selecting one or more target slave gateway devices 30 matching the number of gateways based on the remaining cache space of the plurality of slave gateway devices 30 and the network delay between the plurality of slave gateway devices 30 and the data source device 10; communicating with the target slave gateway device 30, controlling the target slave gateway device 30 to establish a connection with the data source device 10; transmitting master gateway identification information, identification information of the target slave gateway device 30, and the number of gateways to the data source device 10;
the data source device 10 is further configured to segment data to be transmitted according to the number of gateways, and send the segmented data to the master gateway device 20 and the target slave gateway device 30 according to the master gateway identification information and the identification information of the target slave gateway device 30;
The primary gateway device 20 is further configured to receive and transmit data sent by the data source device 10;
the target slave gateway device 30 is configured to receive and transmit data sent by the data source device 10.
It should be understood that the foregoing is illustrative only and is not limiting, and that in specific applications, those skilled in the art may set the invention as desired, and the invention is not limited thereto.
In this embodiment, the master gateway device performs gateway selection according to the remaining buffer space and network delay of the slave gateway device, and segments the data to be transmitted from the received data source, and transmits the data through multiple gateway devices, thereby realizing expansion of the transmission link, improving the data transmission rate, and on the other hand, improving the security of data transmission.
In an embodiment, the primary gateway device 20 is further configured to:
calculating a quality score corresponding to each slave gateway device according to the residual cache space of the plurality of slave gateway devices and network delays between the plurality of slave gateway devices and the data source device;
ranking the plurality of slave gateway devices from high to low according to the quality score;
One or more target slave gateway devices matching the number of gateways are selected from the ordered list.
In an embodiment, the primary gateway device 20 is further configured to:
calculating a quality score corresponding to the main gateway equipment according to the residual cache space of the main gateway equipment and the network delay between the main gateway equipment and the data source equipment;
calculating a segmentation duty ratio according to the quality scores corresponding to the master gateway equipment and the quality scores corresponding to the target slave gateway equipment;
transmitting main gateway identification information, the identification information of the target slave gateway equipment and the dividing duty ratio to the data source equipment so that the data source equipment divides data to be transmitted according to the dividing duty ratio, and transmitting the divided data to the main gateway equipment and the target slave gateway equipment according to the main gateway identification information and the identification information of the target slave gateway equipment;
and receiving and transmitting the data sent by the data source equipment.
In an embodiment, the primary gateway device 20 is further configured to:
detecting own residual cache space, and judging whether the own residual cache space is smaller than a preset threshold value;
if not, judging that the residual buffer space of the buffer memory meets the transmission requirement.
In an embodiment, the primary gateway device 20 is further configured to:
when the self residual cache space is smaller than the preset threshold value, the method communicates with the plurality of slave gateway devices, and determines the residual cache space of the plurality of slave gateway devices and network delay between the plurality of slave gateway devices and the data source device;
calculating a quality score corresponding to each slave gateway device according to the residual cache space of the plurality of slave gateway devices and network delays between the plurality of slave gateway devices and the data source device;
selecting the slave gateway device with the highest quality score from the plurality of slave gateway devices as a backup gateway device;
and authorizing the backup gateway equipment to enable the backup gateway equipment to execute gateway equipment selection tasks, slave gateway equipment management tasks and data transmission tasks.
In an embodiment, the primary gateway device 20 is further configured to:
receiving data sent by the data source equipment and determining data destination equipment;
and transmitting the data sent by the data source equipment to the data destination equipment so that the data destination equipment can splice the received data from the master gateway equipment and the target slave gateway equipment to obtain target data.
In an embodiment, the primary gateway device 20 is further configured to:
acquiring a corresponding encryption algorithm from the password system according to the main gateway identification information;
and encrypting the data sent by the data source equipment according to the encryption algorithm, transmitting the encrypted data and the main gateway identification information to the data destination equipment, so that the data destination equipment obtains a corresponding decryption algorithm from the password system according to the main gateway identification information, decrypts the received data according to the decryption algorithm, and splices the decrypted data from the main gateway equipment and the target slave gateway equipment to obtain target data.
It should be noted that the above-described working procedure is merely illustrative, and does not limit the scope of the present invention, and in practical application, a person skilled in the art may select part or all of them according to actual needs to achieve the purpose of the embodiment, which is not limited herein.
In addition, technical details not described in detail in this embodiment may refer to the data transmission method provided in any embodiment of the present invention, and are not described herein.
Furthermore, it should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or system that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or system. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article, or system that comprises the element.
The foregoing embodiment numbers of the present invention are merely for the purpose of description, and do not represent the advantages or disadvantages of the embodiments.
From the above description of the embodiments, it will be clear to those skilled in the art that the above-described embodiment method may be implemented by means of software plus a necessary general hardware platform, but of course may also be implemented by means of hardware, but in many cases the former is a preferred embodiment. Based on such understanding, the technical solution of the present invention may be embodied essentially or in a part contributing to the prior art in the form of a software product stored in a storage medium (e.g. Read Only Memory)/RAM, magnetic disk, optical disk) and including several instructions for causing a terminal device (which may be a mobile phone, a computer, a server, or a network device, etc.) to perform the method according to the embodiments of the present invention.
The foregoing description is only of the preferred embodiments of the present invention, and is not intended to limit the scope of the invention, but rather is intended to cover any equivalents of the structures or equivalent processes disclosed herein or in the alternative, which may be employed directly or indirectly in other related arts.

Claims (10)

1. A data transmission method applied to a master gateway device, the master gateway device being connected to a plurality of slave gateway devices, the data transmission method comprising:
acquiring data volume information sent by data source equipment, and determining the number of enabled gateways according to the data volume information;
when the own residual buffer memory space meets the transmission requirement, the method communicates with the plurality of slave gateway devices, and determines the residual buffer memory space of the plurality of slave gateway devices and network delay between the plurality of slave gateway devices and the data source device;
selecting one or more target slave gateway devices matching the number of gateways according to the remaining cache space of the plurality of slave gateway devices and network delays between the plurality of slave gateway devices and the data source device;
the target slave gateway equipment is communicated with the target slave gateway equipment, and the target slave gateway equipment is controlled to establish connection with the data source equipment;
transmitting main gateway identification information, the identification information of the target slave gateway equipment and the gateway quantity to the data source equipment so that the data source equipment segments data to be transmitted according to the gateway quantity, and transmitting the segmented data to the main gateway equipment and the target slave gateway equipment according to the main gateway identification information and the identification information of the target slave gateway equipment;
And receiving and transmitting the data sent by the data source equipment.
2. The data transmission method of claim 1, wherein the selecting one or more target slave gateway devices matching the number of gateways based on remaining cache space of a plurality of slave gateway devices and network delays between the plurality of slave gateway devices and the data source device comprises:
calculating a quality score corresponding to each slave gateway device according to the residual cache space of the plurality of slave gateway devices and network delays between the plurality of slave gateway devices and the data source device;
ranking the plurality of slave gateway devices from high to low according to the quality score;
one or more target slave gateway devices matching the number of gateways are selected from the ordered list.
3. The data transmission method of claim 2, wherein the communicating with the target slave gateway device controls the target slave gateway device to establish a connection with the data source device, the method further comprising:
calculating a quality score corresponding to the main gateway equipment according to the residual cache space of the main gateway equipment and the network delay between the main gateway equipment and the data source equipment;
Calculating a segmentation duty ratio according to the quality scores corresponding to the master gateway equipment and the quality scores corresponding to the target slave gateway equipment;
transmitting main gateway identification information, the identification information of the target slave gateway equipment and the dividing duty ratio to the data source equipment so that the data source equipment divides data to be transmitted according to the dividing duty ratio, and transmitting the divided data to the main gateway equipment and the target slave gateway equipment according to the main gateway identification information and the identification information of the target slave gateway equipment;
and receiving and transmitting the data sent by the data source equipment.
4. The data transmission method according to claim 1, wherein after the data volume information sent by the data source device is obtained and the number of enabled gateways is determined according to the data volume information, the method further comprises:
detecting own residual cache space, and judging whether the own residual cache space is smaller than a preset threshold value;
if not, judging that the residual buffer space of the buffer memory meets the transmission requirement.
5. The data transmission method according to claim 4, wherein after detecting the remaining buffer space of the device and determining whether the remaining buffer space of the device is smaller than a preset threshold, the method further comprises:
When the self residual cache space is smaller than the preset threshold value, the method communicates with the plurality of slave gateway devices, and determines the residual cache space of the plurality of slave gateway devices and network delay between the plurality of slave gateway devices and the data source device;
calculating a quality score corresponding to each slave gateway device according to the residual cache space of the plurality of slave gateway devices and network delays between the plurality of slave gateway devices and the data source device;
selecting the slave gateway device with the highest quality score from the plurality of slave gateway devices as a backup gateway device;
and authorizing the backup gateway equipment to enable the backup gateway equipment to execute gateway equipment selection tasks, slave gateway equipment management tasks and data transmission tasks.
6. The data transmission method as claimed in claim 1, wherein said receiving and transmitting data transmitted by said data source device comprises:
receiving data sent by the data source equipment and determining data destination equipment;
and transmitting the data sent by the data source equipment to the data destination equipment so that the data destination equipment can splice the received data from the master gateway equipment and the target slave gateway equipment to obtain target data.
7. The data transmission method of claim 6, wherein the method further comprises:
acquiring a corresponding encryption algorithm from the password system according to the main gateway identification information;
and encrypting the data sent by the data source equipment according to the encryption algorithm, transmitting the encrypted data and the main gateway identification information to the data destination equipment, so that the data destination equipment obtains a corresponding decryption algorithm from the password system according to the main gateway identification information, decrypts the received data according to the decryption algorithm, and splices the decrypted data from the main gateway equipment and the target slave gateway equipment to obtain target data.
8. A data transmission system, the data transmission system comprising: a data source device, a master gateway device, and a plurality of slave gateway devices connected to the master gateway device;
the data source equipment is used for sending data volume information to the main gateway equipment;
the main gateway equipment is used for determining the number of the enabled gateways according to the data volume information; when the own residual buffer memory space meets the transmission requirement, the method communicates with the plurality of slave gateway devices, and determines the residual buffer memory space of the plurality of slave gateway devices and network delay between the plurality of slave gateway devices and the data source device; selecting one or more target slave gateway devices matching the number of gateways according to the remaining cache space of the plurality of slave gateway devices and network delays between the plurality of slave gateway devices and the data source device; the target slave gateway equipment is communicated with the target slave gateway equipment, and the target slave gateway equipment is controlled to establish connection with the data source equipment; sending the main gateway identification information, the identification information of the target slave gateway equipment and the gateway quantity to the data source equipment;
The data source equipment is further used for dividing the data to be transmitted according to the number of the gateways and sending the divided data to the master gateway equipment and the target slave gateway equipment according to the master gateway identification information and the identification information of the target slave gateway equipment;
the main gateway equipment is also used for receiving the data sent by the data source equipment and transmitting the data;
the target slave gateway device is used for receiving the data sent by the data source device and transmitting the data.
9. A gateway device, the device comprising: a memory, a processor, and a data transmission program stored on the memory and executable on the processor, the data transmission program configured to implement the data transmission method of any one of claims 1 to 7.
10. A storage medium having stored thereon a data transmission program which, when executed by a processor, implements the data transmission method according to any one of claims 1 to 7.
CN202310365513.1A 2023-04-07 2023-04-07 Data transmission method, system, gateway device and storage medium Active CN116095008B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310365513.1A CN116095008B (en) 2023-04-07 2023-04-07 Data transmission method, system, gateway device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310365513.1A CN116095008B (en) 2023-04-07 2023-04-07 Data transmission method, system, gateway device and storage medium

Publications (2)

Publication Number Publication Date
CN116095008A CN116095008A (en) 2023-05-09
CN116095008B true CN116095008B (en) 2023-06-20

Family

ID=86187261

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310365513.1A Active CN116095008B (en) 2023-04-07 2023-04-07 Data transmission method, system, gateway device and storage medium

Country Status (1)

Country Link
CN (1) CN116095008B (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102571856A (en) * 2010-12-17 2012-07-11 中国移动通信集团公司 Method, device and system for selecting transition node
CN113301142A (en) * 2021-05-21 2021-08-24 广州科技贸易职业学院 Network security monitoring method and system based on Internet of things
CN114938348A (en) * 2021-02-04 2022-08-23 北京金山云网络技术有限公司 Data stream forwarding method and device, electronic equipment and storage medium

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP5072329B2 (en) * 2006-11-22 2012-11-14 キヤノン株式会社 Control device and control method thereof, communication device and control method thereof, wireless communication system, and program

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102571856A (en) * 2010-12-17 2012-07-11 中国移动通信集团公司 Method, device and system for selecting transition node
CN114938348A (en) * 2021-02-04 2022-08-23 北京金山云网络技术有限公司 Data stream forwarding method and device, electronic equipment and storage medium
CN113301142A (en) * 2021-05-21 2021-08-24 广州科技贸易职业学院 Network security monitoring method and system based on Internet of things

Also Published As

Publication number Publication date
CN116095008A (en) 2023-05-09

Similar Documents

Publication Publication Date Title
CN107294729B (en) Communication method and device between different nodes in block chain
US7519184B2 (en) Wireless communication system
JP2019522428A (en) Cyber security management system, method and apparatus
KR101465966B1 (en) Data encryption processing apparatus and method in a cloud environment
US20030235170A1 (en) Method, apparatus, and system for distributed access points for wireless local area network (LAN)
CN110493020A (en) Broadcast message transmission method, device and system based on block chain technology
CN109525592A (en) Data sharing method, device, equipment and computer readable storage medium
CN109995876A (en) Document transmission method, device, system and computer storage medium
US9350606B2 (en) System and method for assigning server to terminal and efficiently delivering messages to the terminal
CN112787975B (en) Method, device and system for determining type of access device
US20180227776A1 (en) Management server, communication system, management server control method, and program
CN111478974A (en) Network connection method and device, electronic equipment and readable storage medium
CN116095008B (en) Data transmission method, system, gateway device and storage medium
CN111787514B (en) Method and device for acquiring equipment control data, storage medium and electronic device
CN101510872A (en) Remote customer dialing authentication service client terminal, server and transmission/acceptance method
EP3190856A2 (en) Communications method, device, and system
US11722894B2 (en) Methods and devices for multi-link device (MLD) address discovery in a wireless network
JP2009267443A (en) Communications equipment and communication method
CN113455032B (en) Communication method, communication device, and computer-readable medium
CN103888939A (en) Outbound/inbound message management method of Beidou RDSS system user machine and user machine
KR20130103161A (en) Method and system for providing push message
CN109120608B (en) Anti-replay safe communication processing method and device
CN101753588A (en) Method and system for controlling integrated service operation
JP4802159B2 (en) Network equipment
CN115941600B (en) Message distribution method, system and computer readable storage medium

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
GR01 Patent grant
GR01 Patent grant