CN113364682B - Data transmission method and device, storage medium and electronic device - Google Patents
Data transmission method and device, storage medium and electronic device Download PDFInfo
- Publication number
- CN113364682B CN113364682B CN202110605205.2A CN202110605205A CN113364682B CN 113364682 B CN113364682 B CN 113364682B CN 202110605205 A CN202110605205 A CN 202110605205A CN 113364682 B CN113364682 B CN 113364682B
- Authority
- CN
- China
- Prior art keywords
- target
- transmission
- link
- data
- determining
- 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
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L45/00—Routing or path finding of packets in data switching networks
- H04L45/30—Routing of multiclass traffic
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L47/00—Traffic control in data switching networks
- H04L47/10—Flow control; Congestion control
- H04L47/24—Traffic characterised by specific attributes, e.g. priority or QoS
- H04L47/2425—Traffic characterised by specific attributes, e.g. priority or QoS for supporting services specification, e.g. SLA
- H04L47/2433—Allocation of priorities to traffic types
-
- Y—GENERAL 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
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02D—CLIMATE 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/00—Reducing energy consumption in communication networks
- Y02D30/70—Reducing energy consumption in communication networks in wireless communication networks
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Mobile Radio Communication Systems (AREA)
Abstract
The embodiment of the invention provides a data transmission method, a data transmission device, a storage medium and an electronic device, wherein the method comprises the following steps: determining a target priority of a target scene; determining target link information corresponding to the target priority based on a corresponding relation between the pre-configured priority and the link information; determining a target transmission link meeting the target link information from a plurality of target transmission links; and transmitting the target data by using the target transmission link. By the method and the device, the problem of low scene monitoring precision is solved, and the effect of improving the scene monitoring precision is achieved.
Description
Technical Field
The embodiment of the invention relates to the field of communication, in particular to a data transmission method, a data transmission device, a storage medium and an electronic device.
Background
Currently, security devices have been widely used in various fields as important public safety facilities.
However, in the current scene process of the security device, when the bandwidth of data transmission is insufficient during the event detection reporting process, the problem that the event data cannot be reported in time after the event is triggered easily occurs, thereby affecting the event monitoring precision.
Disclosure of Invention
The embodiment of the invention provides a data transmission method, a data transmission device, a storage medium and an electronic device, which are used for at least solving the problem of low data monitoring precision in the related technology.
According to an embodiment of the present invention, there is provided a data transmission method including:
determining a target priority of a target scene;
determining target link information corresponding to the target priority based on a corresponding relation between the pre-configured priority and the link information;
determining a target transmission link meeting the target link information from a plurality of target transmission links;
and transmitting target data by using the target transmission link, wherein the target data is data collected in a target scene.
In an optional embodiment, before determining target link information corresponding to the target priority based on a pre-configured correspondence between priorities and link information, the method further includes:
in case it is determined that the first mode is enabled, a plurality of said transmission links are established.
In an optional embodiment, determining a target transmission link satisfying the target link information from the plurality of transmission links includes:
determining a first transmission link satisfying the target link information as the target transmission link in the case of determining that the first transmission link exists among the plurality of transmission links;
and under the condition that a first transmission link meeting the target link information does not exist in the plurality of transmission links, determining at least two second transmission links included in the plurality of transmission links as the target transmission links, wherein the sum of the link information of the at least two second transmission links meets the target link information.
In an optional embodiment, in a case that it is determined that there is a first transmission link satisfying the target link information among the plurality of transmission links, determining the first transmission link as the target transmission link includes:
determining a type of a plurality of the first transmission links in a case where the number of the first transmission links is determined to be plural;
and selecting the target transmission link from a plurality of first transmission links according to a pre-configured transmission link selection sequence.
In one exemplary embodiment, in a case where at least two second transmission links included in the plurality of transmission links are determined as the destination transmission link, transmitting destination data using the destination transmission link includes:
determining a data transmission weight ratio of at least two second transmission links;
segmenting the target data according to the data transmission weight ratio to determine target subdata required to be transmitted by each second transmission link;
and transmitting the target subdata by utilizing at least two second transmission links.
In an optional embodiment, after determining a target transmission link satisfying the target link information from a plurality of transmission links, the method further includes:
and sending the identification information of the target transmission link to second equipment to indicate the second equipment to transmit data by using the target transmission link.
According to another embodiment of the present invention, there is provided a data transmission apparatus including:
the priority determining module is used for determining the target priority of the target scene;
the information determining module is used for determining target link information corresponding to the target priority based on the corresponding relation between the preset priority and the link information;
the link determining module is used for determining a target transmission link meeting the target link information from a plurality of transmission links;
and the data transmission module is used for transmitting target data by using the target transmission link, wherein the target data is acquired in the target scene.
In an optional embodiment, the apparatus further comprises:
and the link establishing module is used for establishing a plurality of transmission links under the condition of determining the starting of the first mode before determining the target link information corresponding to the target priority based on the corresponding relation between the preset priority and the link information.
According to a further embodiment of the present invention, there is also provided a computer-readable storage medium having a computer program stored thereon, wherein the computer program is arranged to perform the steps of any of the above method embodiments when executed.
According to yet another embodiment of the present invention, there is also provided an electronic device, comprising a memory in which a computer program is stored and a processor configured to run the computer program to perform the steps of any of the method embodiments described above.
According to the invention, the judgment is carried out according to the priority of the scene before the data transmission is carried out, so that the link which can determine the bandwidth to meet the data requirement can be determined according to the priority, and the condition that the data transmission is not timely caused by insufficient bandwidth is avoided, therefore, the problem of low scene monitoring precision caused by untimely data transmission can be solved, and the effect of improving the scene monitoring precision is achieved.
Drawings
Fig. 1 is a block diagram of a hardware configuration of a mobile terminal of a data transmission method according to an embodiment of the present invention;
FIG. 2 is a flow chart of a method of data transmission according to an embodiment of the present invention;
fig. 3 is a block diagram of a data transmission apparatus according to an embodiment of the present invention;
FIG. 4 is a flow diagram according to a specific embodiment of the present invention;
FIG. 5 is a first block diagram of an embodiment of the present invention;
fig. 6 is a second structural diagram according to an embodiment of the invention.
Detailed Description
Hereinafter, embodiments of the present invention will be described in detail with reference to the accompanying drawings in conjunction with the embodiments.
It should be noted that the terms "first," "second," and the like in the description and claims of the present invention and in the drawings described above are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order.
The method embodiments provided in the embodiments of the present application may be executed in a mobile terminal, a computer terminal, or a similar computing device. Taking an example of the operation on a mobile terminal, fig. 1 is a hardware structure block diagram of the mobile terminal of a data transmission method according to an embodiment of the present invention. As shown in fig. 1, the mobile terminal may include one or more processors 102 (only one is shown in fig. 1) (the processor 102 may include, but is not limited to, a processing device such as a microprocessor MCU or a programmable logic device FPGA, etc.) and a memory 104 for storing data, wherein the mobile terminal may further include a transmission device 106 for communication functions and an input-output device 108. It will be understood by those skilled in the art that the structure shown in fig. 1 is only an illustration, and does not limit the structure of the mobile terminal. For example, the mobile terminal may also include more or fewer components than shown in FIG. 1, or have a different configuration than shown in FIG. 1.
The memory 104 can be used for storing computer programs, for example, software programs and modules of application software, such as a computer program corresponding to a data transmission method in the embodiment of the present invention, and the processor 102 executes various functional applications and data processing by running the computer programs stored in the memory 104, so as to implement the above-mentioned method. The memory 104 may include high-speed random access memory, and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, the memory 104 may further include memory located remotely from the processor 102, which may be connected to the mobile terminal over a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The transmission device 106 is used to receive or transmit data via a network. Specific examples of the network described above may include a wireless network provided by a communication provider of the mobile terminal. In one example, the transmission device 106 includes a Network adapter (NIC), which can be connected to other Network devices through a base station so as to communicate with the internet. In one example, the transmission device 106 may be a Radio Frequency (RF) module, which is used for communicating with the internet in a wireless manner.
In this embodiment, a data transmission method is provided, and fig. 2 is a flowchart according to an embodiment of the present invention, as shown in fig. 2, the flowchart includes the following steps:
step S202, determining the target priority of a target scene;
in the present embodiment, the determination of the target priority of the target scene is to classify the target scene, so that different operations can be performed according to the difference in priority.
The target scenes comprise (but are not limited to) road monitoring, indoor monitoring and the like, and the target priorities comprise high priority and low priority or high priority, medium priority and low priority and the like; the target scene may be (but is not limited to) acquired by an image pickup device.
For example, a concerned dynamic event may be identified as a high-priority event, and other events may be identified as low-priority events, where when the concerned dynamic event dependent scene is a road monitoring scene, the high-priority event is characterized as a scene event such as a red light running, a yellow line pressing, or a pedestrian refusing to be worried; when the concerned dynamic event is a household indoor monitoring scene, the high-priority event is characterized as a scene event such as a fire, intrusion of a stranger, falling of a baby and the like; or, the events occurring in a specific time period may be identified as high-priority events, and the events in other time periods may be identified as low-priority events, where, when the concerned dynamic event dependent scene is a traffic detection scene, the event information in the early peak time period and the late peak time period is identified as high-priority events, and the event information in other time periods is identified as low-priority events; when the concerned dynamic event scene is an indoor scene, the event information of the time periods of breakfast, supper and evening is marked as high-priority time, and the event information of other time periods is marked as low-priority events.
Step S204, determining target link information corresponding to the target priority based on the corresponding relation between the preset priority and the link information;
in this embodiment, the determination of the target link information is to determine a link for transmitting the target data, so as to avoid data transmission being untimely in the case of insufficient link bandwidth.
The link information includes (but is not limited to) link bandwidth, IP address, uplink and downlink data transmission rate, data transmission time, etc.
Step S206, determining a target transmission link meeting the target link information from the multiple item label transmission links;
in the embodiment, the target transmission link includes (but is not limited to) a wifi network and a cellular network, wherein in the case that the front-end device for data transmission accesses the wifi network and the cellular network simultaneously, one of the wifi network and the cellular network is generally used for service communication; the wifi network and the cellular network can be used for data transmission, specifically, the front-end device can perform corresponding transmission by aggregating bandwidths correspondingly connected with the wifi network and the cellular network respectively, so that the improvement of transmission rate is facilitated, transmission blocking is reduced, and the timeliness of event information reporting is improved.
It should be noted that, the front-end device identifies and determines the event information, and if the event information is characterized as a low-priority event, the front-end device may set one of the two links as a main link and the other link as a standby link, and then notify the server through the two links which link is the main link and which link is the standby link, and then the server sends downlink data to the front-end device through the link notified by the front-end device, and the front-end device sends uplink data through the link. Namely, the front-end device can inform the server to send downlink data by using a link corresponding to the wifi network and send uplink data by itself through the wifi network, or inform the server to send downlink data by using a link corresponding to the cellular network and send uplink data by itself through the cellular network, and link selection is performed in a self-selection mode. In the scheme, the link where the wifi network is located is preferentially used as the main transmission link, the cellular network is used as the standby link, the problems of energy consumption and expense caused by the use of the cellular network are reduced, and the user experience is improved.
Correspondingly, the bit rate of the video data to be transmitted can also be acquired under the condition that the acquired event information is characterized as a high-priority event, then the network bandwidths of the wifi network and the cellular network are respectively estimated by applying a common bandwidth estimation algorithm, and then a transmission link is determined according to the relationship between the bandwidths and the data with transmission. For example, if the network bandwidth of the wifi network meets a set threshold (the threshold is a bandwidth pre-estimated value commonly used by the device), the link corresponding to the cellular network may be used as a standby link; and when the bandwidth of the wifi does not meet the set threshold value, comparing the bandwidth data of the wifi with the bandwidth data of the cellular network, and if the bandwidth of the cellular network is greater than the bandwidth of the wifi, using the link corresponding to the wifi network as a standby link.
And step S208, transmitting target data by using the target transmission link, wherein the target data is acquired in a target scene.
In this embodiment, the target data may be (but is not limited to) any one or more types of data such as video image data, audio data, infrared monitoring data, RFID data, and the like, and correspondingly, the acquisition of the target data may be acquired by one or more types of devices among a visible light camera device, an infrared camera device, and an RFID sensing device.
Through the steps, the priority of the target scene is judged before data transmission is carried out, and the transmission link is continuously selected and processed according to the priority, so that the problem of untimely data transmission caused by insufficient bandwidth is avoided, the problem of low scene monitoring precision is solved, and the data monitoring precision is improved.
In an optional embodiment, before determining target link information corresponding to the target priority based on a pre-configured correspondence between the priority and the link information, the method further includes:
step S200, under the condition that the first mode is determined to be started, a plurality of transmission links are established.
In this embodiment, the establishment of the transmission link is performed after the first mode is determined to be activated, so that unnecessary resource consumption can be reduced.
The first mode may be (but is not limited to) a mode in which an application used by the front-end device for event detection is executed, and may also be another mode.
In an optional embodiment, determining a target transmission link satisfying the target link information from the plurality of transmission links includes:
step S2062, in a case where it is determined that the first transmission link satisfying the target link information exists in the plurality of transmission links, determining the first transmission link as the target transmission link;
step S2064, in a case that it is determined that there is no first transmission link satisfying the target link information among the plurality of transmission links, determining at least two second transmission links included in the plurality of transmission links as target transmission links, where a sum of link information of the at least two second transmission links satisfies the target link information.
In this embodiment, when the bandwidth of the corresponding transmission link meets the data transmission requirement in the target scenario, the corresponding transmission link is used as the target transmission link, and when the bandwidth of the corresponding transmission link does not meet the data transmission requirement, multiple transmission links may be aggregated, so that multiple links of different types transmit data together, and normal transmission of the data is ensured.
For example, the front-end device aggregates bandwidths of the wifi network and the cellular network, which are respectively connected correspondingly, so that the wifi network and the cellular network can be used simultaneously, and corresponding data transmission is realized.
In an optional embodiment, in a case that it is determined that there is a first transmission link satisfying the target link information among the plurality of transmission links, determining the first transmission link as the target transmission link includes:
step S20622 of determining types of the plurality of first transmission links in a case where the number of the first transmission links is determined to be plural;
step S20624, selecting a target transmission link from the plurality of first transmission links according to the pre-configured transmission link selection sequence.
In this embodiment, under the condition that both the wifi network and the cellular network meet the bandwidth requirement, the wifi network and the cellular network are arranged according to the data transmission rate to realize the fast transmission of data.
For example, the front-end device may set one of the two links as a main link and the other link as a standby link, then notify the server through the two links which link is the main link and which link is the standby link, and then the server sends downlink data to the front-end device on the link notified by the front-end device, and the front-end device sends uplink data through the link. Namely, the front-end device can inform the server to send downlink data by using a link corresponding to the wifi network and send uplink data by itself through the wifi network, or inform the server to send downlink data by using a link corresponding to the cellular network and send uplink data by itself through the cellular network, and link selection is performed in a self-selection mode.
In an optional embodiment, in a case where at least two second transmission links included in the plurality of transmission links are determined as the destination transmission links, transmitting the destination data using the destination transmission links includes:
step S20642 of determining a data transmission weight ratio of the at least two second transmission links;
step S20644, according to the data transmission weight ratio, segmenting the target data to determine the target subdata required to be transmitted by each second transmission link;
step S20646, the target sub-data is transmitted by using at least two second transmission links.
In this embodiment, data is segmented, so that a plurality of transmission links can rapidly transmit data according to their own bandwidths.
For example, if the current event video rate to be transmitted is 4mbps, the wifi link estimation bandwidth is 2Mb/s, and the cellular data link is 3Mb/s, 40% of the data amount of the current video data to be transmitted can be transmitted by using the wifi link, and 60% of the data amount can be transmitted by using the cellular data link.
In an optional embodiment, after determining a target transmission link satisfying the target link information from the plurality of transmission links, the method further includes:
step S2068, sending the identification information of the destination transmission link to the second device, so as to instruct the second device to transmit data by using the destination transmission link.
In this embodiment, the sending of the identification information to the second device is to inform the second device to transmit data by using the corresponding destination transmission link, so as to improve the data transmission rate.
For example, the front-end device sends the identification information to the server to notify the server to send downlink data using a link corresponding to the wifi network and send uplink data through the wifi network, or notify the server to send downlink data using a link corresponding to the cellular network and send uplink data through the cellular network.
Through the above description of the embodiments, those skilled in the art can clearly understand that the method according to the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but the former is a better implementation mode in many cases. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which is stored in a storage medium (e.g., ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal device (e.g., a mobile phone, a computer, a server, or a network device) to execute the method according to the embodiments of the present invention.
In this embodiment, a data transmission device is further provided, and the data transmission device is used to implement the foregoing embodiments and preferred embodiments, which have already been described and are not described again. As used below, the term "module" may be a combination of software and/or hardware that implements a predetermined function. Although the means described in the embodiments below are preferably implemented in software, an implementation in hardware or a combination of software and hardware is also possible and contemplated.
Fig. 3 is a block diagram of a data transmission apparatus according to an embodiment of the present invention, as shown in fig. 3, the apparatus including:
a priority determination module 32, configured to determine a target priority of the target scene;
an information determining module 34, configured to determine, based on a pre-configured correspondence between priorities and link information, target link information corresponding to target priorities;
a link determining module 36, configured to determine a target transmission link that satisfies the target link information from the multiple transmission links;
and a data transmission module 38, configured to transmit target data using the target transmission link, where the target data is data collected in a target scene.
In an optional embodiment, the apparatus further comprises:
and a link establishing module 30, configured to establish a plurality of transmission links when the first mode is determined to be started before determining target link information corresponding to the target priority based on a pre-configured correspondence between the priority and the link information.
In an alternative embodiment, the link determination module 36 includes:
a first link unit 362 for determining a first transmission link as a target transmission link in a case where it is determined that there is a first transmission link satisfying the target link information among the plurality of transmission links;
a second link unit 364, configured to determine at least two second transmission links included in the plurality of transmission links as target transmission links if it is determined that there is no first transmission link satisfying the target link information among the plurality of transmission links, where a sum of link information of the at least two second transmission links satisfies the target link information.
In an alternative embodiment, the first link unit 362 includes:
a first type subunit 3622, configured to, in a case where the number of the first transmission links is determined to be multiple, determine types of the multiple first transmission links;
a first link subunit 3624, configured to select a target transmission link from the plurality of first transmission links according to a preconfigured transmission link selection order.
In an alternative embodiment, the second link unit 364 includes:
a weight determining subunit 3642 configured to determine a data transmission weight ratio of at least two second transmission links included in the plurality of transmission links in a case where the at least two second transmission links are determined as the target transmission link;
the data splitting subunit 3644 is configured to split the target data according to the data transmission weight ratio to determine target sub-data that needs to be transmitted by each second transmission link;
and a self-data transmission subunit 3646, configured to transmit the target sub-data using at least two second transmission links.
In an optional embodiment, the apparatus further comprises:
the identification sending module 368 is configured to, after determining a target transmission link that meets the target transmission link information from the plurality of transmission links, send the identification information of the target transmission link to the second device to instruct the second device to transmit data using the target transmission link.
It should be noted that the above modules may be implemented by software or hardware, and for the latter, the following may be implemented, but not limited to: the modules are all positioned in the same processor; alternatively, the modules are respectively located in different processors in any combination.
The present invention will be described with reference to specific examples.
As shown in fig. 4, the front-end device in the security system of the present application is responsible for event detection and information acquisition.
Step S401, when the application program of event detection is executed, the front-end equipment establishes at least two communication connections (not limited to two) with a central server for providing service for the detection program;
step S402, after the event information is collected by the front-end equipment, analyzing the scene information of the event;
step S403, according to the characterization information of the obtained event, the communication connection property is analyzed and the bandwidth of the communication link is calculated;
step S404, dynamically selecting corresponding transmission connection to achieve the purpose of data dynamic transmission.
As shown in fig. 5, the front-end communication scheme for multipath transmission includes:
the front-end equipment of the scheme is a universal camera capable of carrying out network communication and can collect concerned event information. When the application program for event detection is executed, the front-end equipment establishes at least two communication connections (not limited to two) with a central server for providing service for the detection program.
When the scene information acquired by the front-end equipment is characterized as low-priority event information, each established connection property is acquired, if the scene is supported by wifi, wifi link transmission is preferentially used, and the flow loss is reduced.
And when the event information acquired by the front-end equipment is characterized as high-grade event information, detecting the attribute of each connection, respectively calculating the bandwidth information of each connection, and performing data transmission by taking the optimal connection.
And in a supported scenario, the communication connection includes at least the following: and the communication connection corresponding to the cellular network and the communication connection corresponding to the wireless fidelity wifi network.
The event is determined as follows:
the first mode is as follows: dynamic events of interest are identified as high priority events and other events are identified as low priority events.
When the concerned dynamic event dependent scene is a road monitoring scene, the high-priority event is characterized by scene events such as red light running, yellow line pressing, pedestrian refusal and the like.
When the concerned dynamic event is a household indoor monitoring scene, the high-priority event is characterized as a scene event such as a fire, intrusion of a stranger, falling of a baby and the like.
The second mode is as follows: events occurring within a particular time period are identified as high priority events, and events for other time periods are low priority events.
When the concerned dynamic incident dependence scene is a traffic detection scene, the incident information of the early peak time period and the late peak time period is marked as a high priority incident, and the incident information of other time periods is marked as a low priority incident.
When the concerned dynamic event scene is an indoor scene, the event information of the time periods of breakfast, supper and evening is marked as high-priority time, and the event information of other time periods is marked as low-priority events.
For the establishment and selection of the communication link, the following is used:
as shown in fig. 6, when the application program for event detection is executed while the front-end device is in server communication, at least two communication connections (not limited to two) are established with the central server for serving the detection program.
The front-end equipment can be accessed to a wifi network and a cellular network.
In the case that the front-end device has access to the wifi network and the cellular network, generally, one of the wifi network and the cellular network is used for service communication. When the front-end equipment is accessed to the wifi network and the cellular network, the wifi network and the cellular network can be used for data transmission at the same time. Specifically, the front-end device can perform corresponding transmission through aggregating bandwidths correspondingly connected with the wifi network and the cellular network, which is beneficial to improving the transmission rate, reducing transmission congestion and improving the timeliness of event information reporting.
For the selection of the communication link, the following method is adopted:
the method comprises the following steps: when the application program for event detection is executed, the front-end equipment establishes at least two communication connections (not limited to two) with a central server for providing service for the detection program.
The first mode is as follows: after obtaining the event information, the front-end device identifies and judges the event information, if the event information is characterized as a low-priority event, the front-end device can set one of the two links as a main link and the other link as a standby link, then notify the server through the two links which link is the main link and which link is the standby link, then the server sends downlink data to the front-end device through the link notified by the front-end device, and the front-end device sends uplink data through the link. Namely, the front-end device can inform the server to send downlink data by using a link corresponding to the wifi network and send uplink data by itself through the wifi network, or inform the server to send downlink data by using a link corresponding to the cellular network and send uplink data by itself through the cellular network, and link selection is performed in a self-selection mode. In the scheme, the link where the wifi network is located is preferentially used as the main transmission link, and the cellular network is used as the standby link, so that the problems of energy consumption and expense caused by using the cellular network are reduced, and the user experience is improved.
The second mode is as follows: and if the acquired event information represents a high-priority event, acquiring the code rate of the video data to be transmitted. Respectively evaluating the network bandwidths of the wifi network and the cellular network by using a common bandwidth evaluation algorithm, and if the network bandwidth of the wifi network meets a set threshold (the threshold is a bandwidth pre-evaluation value commonly used by equipment), using a link corresponding to the cellular network as a standby link; and when the bandwidth of the wifi does not meet the set threshold value, comparing the bandwidth data of the wifi with the bandwidth data of the cellular network, and if the bandwidth of the cellular network is greater than the bandwidth of the wifi, using the link corresponding to the wifi network as a standby link.
The important points are: and acquiring the main transmission link and the standby link in a bandwidth evaluation mode. However, the video code rate corresponding to the high-priority event is high, higher bandwidth is needed for data transmission, proportion calculation can be performed according to certain weight, the video data to be transmitted are divided according to proportion, data transmission is performed simultaneously by using the main link and the auxiliary link, the server receives data information of the two links, and the received data are integrated and restored according to the timestamp, so that the purpose of timely and effectively transmitting the event data is achieved.
For example, if the video rate of the current event to be transmitted is 4mbps, the wifi link estimation bandwidth is 2Mb/s, and the cellular data link is 3Mb/s, 40% of the data amount of the current video data to be transmitted can be transmitted by using the wifi link, and 60% of the data amount can be transmitted by using the cellular data link.
Embodiments of the present invention also provide a computer-readable storage medium having a computer program stored thereon, wherein the computer program is arranged to perform the steps of any of the above-mentioned method embodiments when executed.
In an exemplary embodiment, the computer-readable storage medium may include, but is not limited to: various media capable of storing computer programs, such as a usb disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a removable hard disk, a magnetic disk, or an optical disk.
Embodiments of the present invention also provide an electronic device comprising a memory having a computer program stored therein and a processor arranged to run the computer program to perform the steps of any of the above method embodiments.
In an exemplary embodiment, the electronic apparatus may further include a transmission device and an input/output device, wherein the transmission device is connected to the processor, and the input/output device is connected to the processor.
For specific examples in this embodiment, reference may be made to the examples described in the above embodiments and exemplary embodiments, and details of this embodiment are not repeated herein.
It will be apparent to those skilled in the art that the modules or steps of the present invention described above may be implemented in a general purpose computing device, they may be centralized in a single computing device or distributed across a network of multiple computing devices, and they may be implemented in program code that is executable by a computing device, such that they may be stored in a memory device and executed by a computing device, and in some cases, the steps shown or described may be executed in an order different from that shown or described herein, or they may be separately fabricated into individual integrated circuit modules, or multiple modules or steps therein may be fabricated into a single integrated circuit module. Thus, the present invention is not limited to any specific combination of hardware and software.
The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention, and various modifications and changes may be made by those skilled in the art. Any modification, equivalent replacement, or improvement made within the principle of the present invention should be included in the protection scope of the present invention.
Claims (9)
1. A method of data transmission, comprising:
determining a target priority of a target scene;
determining target link information corresponding to the target priority based on a corresponding relation between the pre-configured priority and the link information;
determining a target transmission link meeting the target link information from a plurality of target transmission links;
transmitting target data by using the target transmission link, wherein the target data is data collected in a target scene;
wherein determining a target transmission link satisfying the target link information from the plurality of transmission links comprises:
under the condition that a first transmission link meeting the target link information does not exist in the plurality of transmission links, determining at least two second transmission links included in the plurality of transmission links as the target transmission links, wherein the sum of the link information of the at least two second transmission links meets the target link information;
wherein, in a case where at least two second transmission links included in the plurality of transmission links are determined as the destination transmission links, transmitting destination data using the destination transmission links includes:
determining a data transmission weight ratio of at least two second transmission links;
segmenting the target data according to the data transmission weight ratio to determine target subdata required to be transmitted by each second transmission link;
and transmitting the target subdata by utilizing at least two second transmission links.
2. The method of claim 1, wherein before determining target link information corresponding to the target priority based on a pre-configured correspondence between priorities and link information, the method further comprises:
in case it is determined that the first mode is enabled, a plurality of said transmission links are established.
3. The method of claim 1, wherein determining a destination link from the plurality of links that satisfies the destination link information further comprises:
determining a first transmission link satisfying the target link information as the target transmission link in a case where it is determined that there is the first transmission link among the plurality of transmission links.
4. The method of claim 3, wherein determining the first transmission link as the target transmission link if it is determined that a first transmission link satisfying the target link information exists among the plurality of transmission links comprises:
determining a type of a plurality of the first transmission links in a case where the number of the first transmission links is determined to be plural;
and selecting the target transmission link from the plurality of first transmission links according to a pre-configured transmission link selection sequence.
5. The method of claim 1, wherein after determining a target transmission link from the plurality of transmission links that satisfies the target link information, the method further comprises:
and sending the identification information of the target transmission link to second equipment to instruct the second equipment to transmit data by using the target transmission link.
6. A data transmission apparatus, comprising:
the priority determining module is used for determining the target priority of the target scene;
the information determining module is used for determining target link information corresponding to the target priority based on the corresponding relation between the preset priority and the link information;
the link determining module is used for determining a target transmission link meeting the target link information from a plurality of transmission links;
the data transmission module is used for transmitting target data by using the target transmission link, wherein the target data is acquired under the target scene;
wherein the link determining module comprises: the second link unit is used for determining at least two second transmission links in the plurality of transmission links as target transmission links under the condition that the first transmission links meeting the target link information do not exist in the plurality of transmission links, wherein the sum of the link information of the at least two second transmission links meets the target link information;
wherein the second link unit includes: a weight determining subunit, configured to determine a data transmission weight ratio of at least two second transmission links included in the plurality of transmission links, in a case where the at least two second transmission links are determined as the target transmission links; the data segmenting subunit is used for segmenting the target data according to the data transmission weight ratio so as to determine target subdata required to be transmitted by each second transmission link; and the self data transmission subunit is used for transmitting the target sub data by utilizing at least two second transmission links.
7. The apparatus of claim 6, further comprising:
and the link establishing module is used for establishing a plurality of transmission links under the condition of determining the starting of the first mode before determining the target link information corresponding to the target priority based on the corresponding relation between the preset priority and the link information.
8. A computer-readable storage medium, in which a computer program is stored, wherein the computer program is arranged to perform the method of any of claims 1 to 5 when executed.
9. An electronic device comprising a memory and a processor, wherein the memory has a computer program stored therein, and the processor is configured to execute the computer program to perform the method of any of claims 1 to 5.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110605205.2A CN113364682B (en) | 2021-05-31 | 2021-05-31 | Data transmission method and device, storage medium and electronic device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110605205.2A CN113364682B (en) | 2021-05-31 | 2021-05-31 | Data transmission method and device, storage medium and electronic device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN113364682A CN113364682A (en) | 2021-09-07 |
CN113364682B true CN113364682B (en) | 2023-04-07 |
Family
ID=77530601
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202110605205.2A Active CN113364682B (en) | 2021-05-31 | 2021-05-31 | Data transmission method and device, storage medium and electronic device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN113364682B (en) |
Families Citing this family (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113904977A (en) * | 2021-10-13 | 2022-01-07 | 中国电信股份有限公司 | Multilink gateway data transmission method and device, electronic equipment and readable medium |
CN114157558A (en) * | 2021-11-29 | 2022-03-08 | 中国电信股份有限公司 | Industrial gateway implementation method, device, network equipment and storage medium |
CN115134060A (en) * | 2022-06-20 | 2022-09-30 | 京东科技控股股份有限公司 | Data transmission method and device, electronic equipment and computer readable medium |
CN118018625A (en) * | 2022-11-08 | 2024-05-10 | 中兴通讯股份有限公司 | Data transmission processing method and device, storage medium and electronic device |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109495880A (en) * | 2018-11-30 | 2019-03-19 | Oppo广东移动通信有限公司 | Data transmission method and relevant apparatus |
CN111405531A (en) * | 2020-03-26 | 2020-07-10 | 上海有个机器人有限公司 | Method, medium, terminal and device for improving communication quality |
CN112492643A (en) * | 2020-11-12 | 2021-03-12 | 普联技术有限公司 | Multilink-based data forwarding method and device and terminal equipment |
CN112559831A (en) * | 2020-12-24 | 2021-03-26 | 平安普惠企业管理有限公司 | Link monitoring method and device, computer equipment and medium |
Family Cites Families (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
EP1892901A3 (en) * | 2004-10-01 | 2011-07-13 | Panasonic Corporation | Quality-of-service (qos)-aware scheduling for uplink transmission on dedicated channels |
CN103326959B (en) * | 2012-09-14 | 2018-12-21 | 努比亚技术有限公司 | A kind of switching application method, system and the cloud storage system of Multi net voting standard |
CN104158753B (en) * | 2014-06-12 | 2017-10-24 | 南京工程学院 | Dynamic stream scheduling method and system based on software defined network |
CN106452958B (en) * | 2016-09-30 | 2020-04-07 | 中国联合网络通信集团有限公司 | Flow control method, system and centralized controller |
GB2558923B (en) * | 2017-01-20 | 2019-12-25 | Airties Kablosuz Iletism Sanayi Ve Disticaret As | Methods for link and path quality assessment |
CN106789660B (en) * | 2017-03-31 | 2020-08-28 | 中国科学技术大学苏州研究院 | QoS sensible flow management method in software defined network |
CN107483337A (en) * | 2017-07-31 | 2017-12-15 | 郑州云海信息技术有限公司 | Determine the method and its network equipment in path |
CN109618372B (en) * | 2019-01-11 | 2020-09-15 | Oppo广东移动通信有限公司 | Data transmission method and related device |
CN110290178A (en) * | 2019-05-30 | 2019-09-27 | 厦门网宿有限公司 | A kind of dispatching method of data flow, electronic equipment and storage medium |
-
2021
- 2021-05-31 CN CN202110605205.2A patent/CN113364682B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109495880A (en) * | 2018-11-30 | 2019-03-19 | Oppo广东移动通信有限公司 | Data transmission method and relevant apparatus |
CN111405531A (en) * | 2020-03-26 | 2020-07-10 | 上海有个机器人有限公司 | Method, medium, terminal and device for improving communication quality |
CN112492643A (en) * | 2020-11-12 | 2021-03-12 | 普联技术有限公司 | Multilink-based data forwarding method and device and terminal equipment |
CN112559831A (en) * | 2020-12-24 | 2021-03-26 | 平安普惠企业管理有限公司 | Link monitoring method and device, computer equipment and medium |
Also Published As
Publication number | Publication date |
---|---|
CN113364682A (en) | 2021-09-07 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN113364682B (en) | Data transmission method and device, storage medium and electronic device | |
US11646968B2 (en) | Communication method and related device | |
CN110972193A (en) | Slice information processing method and device | |
US9462486B2 (en) | Method and device for classifying wireless data service | |
CN111614563A (en) | User plane path selection method and device | |
CN109996285B (en) | Network congestion control method, device, equipment and medium | |
US11696167B2 (en) | Systems and methods to automate slice admission control | |
US8848534B2 (en) | Dynamic resource allocation within a heterogeneous wireless transport network | |
CN107438254B (en) | Service identification method, device and system based on user behavior | |
CN114095956B (en) | Network optimization method, device and storage medium | |
CN107920366A (en) | The method and device that a kind of business to mobile terminal is shunted | |
Du et al. | Application specific mobile edge computing through network softwarization | |
CN110611831B (en) | Video transmission method and device | |
CN107483234B (en) | Method and device for split backup of access point of Internet of things | |
US12052607B2 (en) | Communication apparatus, communication method, and program | |
US11310677B2 (en) | Method for selecting packet processing function and device therefor | |
CN107306412B (en) | Method, user equipment and base station for realizing reliable transmission of message | |
CN110972199B (en) | Flow congestion monitoring method and device | |
CN114513467A (en) | Network traffic load balancing method and device of data center | |
CN111050356B (en) | Data transmission processing method and device, storage medium and electronic device | |
CN104009937A (en) | Enhanced-transmission-selection configuration information transmission method and device | |
EP3641248B1 (en) | Traffic optimization device, communication system, traffic optimization method, and program | |
CN111093238A (en) | Wireless network control method and device, storage medium and electronic equipment | |
CN104301939B (en) | A kind of control method, device and network side equipment | |
CN112153679B (en) | Network switching 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 | ||
GR01 | Patent grant | ||
GR01 | Patent grant |