A method and apparatus for transmitting service data, a terminal device, and a storage medium

By selecting target 5G and 4G network card identifiers and using a combination of 5G and 4G network cards to transmit data packets, the problem of unstable data transmission caused by unstable signal was solved, and stable data transmission was achieved even in poor signal conditions.

CN113055946BActive Publication Date: 2025-11-21VISIONVERA INFORMATION TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202110171864.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-02-08
Publication Date
2025-11-21
Estimated Expiration
2041-02-08

AI Technical Summary

Technical Problem

In existing technologies, when transmitting data through 4G or 5G networks, the signal is unstable, resulting in unstable data transmission, especially in areas with signal attenuation or no signal, which cannot meet the data transmission requirements.

Method used

By determining the data upload bandwidth, the stable transmission bandwidth of the 5G network card and the 4G network card, selecting the target network card identifier, and using the 5G and 4G network cards to transmit data packets simultaneously, stable transmission is ensured even in poor signal conditions.

Benefits of technology

In situations with poor signal strength, the combination of 5G and 4G network cards ensures stable data transmission, improving the reliability and integrity of data transmission.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113055946B_ABST
    Figure CN113055946B_ABST
Patent Text Reader

Abstract

The embodiment of the application provides a service data transmission method and device, terminal equipment and a storage medium, the method comprises the following steps: determining the data upload bandwidth required for sending a service data packet; determining the target 5G network card identifier and the target 4G network card identifier required for transmitting the service data packet according to the data upload bandwidth, the stable transmission bandwidth of the 5G network card and the stable transmission bandwidth of the 4G network card, wherein the stable transmission bandwidth of the 5G network card and the stable transmission bandwidth of the 4G network card are transmission bandwidths obtained under the condition that the packet loss rate is less than a first preset value; and sending the service data packet to a server device through the 5G network card corresponding to the target 5G network card identifier and the 4G network card corresponding to the target 4G network card identifier, so that in the case of poor signal, the data is transmitted through the 5G network card and the 4G network card at the same time, and the requirement of stable data transmission is met.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of communication technology, and in particular to a method, apparatus, terminal equipment, and storage medium for transmitting business data. Background Technology

[0002] In existing technologies, data is collected by a device equipped with a camera. The data can be sent to a dual-mode device via a 4G or 5G network, and then sent to a switch. The switch then distributes the data. In this process, only one communication link can be selected for data transmission. If the signal is poor, it is difficult to meet the requirements for stable data transmission.

[0003] If 4G network is used alone, there will be varying degrees of signal attenuation in different geographical areas, which will affect data transmission, such as causing packet loss or delays. If 5G network is used alone, there will be poor or no signal in some geographical areas because there are no 5G signal base stations, making data transmission impossible. Summary of the Invention

[0004] In view of the above problems, embodiments of the present invention are proposed to provide a method, apparatus, terminal device and storage medium for transmitting business data that overcomes or at least partially solves the above problems.

[0005] In a first aspect, embodiments of the present invention provide a method for transmitting service data, the method comprising:

[0006] Determine the data upload bandwidth required to send business data packets;

[0007] Based on the data upload bandwidth, the stable transmission bandwidth of the 5G network card, and the stable transmission bandwidth of the 4G network card, the target 5G network card identifier and the target 4G network card identifier required for transmitting the service data packet are determined. The stable transmission bandwidth of the 5G network card and the stable transmission bandwidth of the 4G network card are the transmission bandwidths obtained when the packet loss rate is less than a first preset value.

[0008] The service data packet is sent to the server device through the 5G network card corresponding to the target 5G network card identifier and the 4G network card corresponding to the target 4G network card identifier.

[0009] Optionally, before determining the data upload bandwidth required to send the service data packet, the method further includes:

[0010] Test data packets are sent to the server device via 5G and 4G network cards respectively, so that the server device can determine the transmission bandwidth and packet loss rate based on the timestamp and sequence number of the received test data packets. If the packet loss rate is less than the first preset value, the transmission bandwidth corresponding to the packet loss rate is determined as the stable transmission bandwidth. The test data packets include network card identifier, timestamp, number of sub-test packets and sequence number of sub-test packets.

[0011] Receive the stable transmission bandwidth returned by the server device.

[0012] Optionally, the server device determines the transmission bandwidth and packet loss rate based on the timestamp and sequence number of the received test data packets, including:

[0013] The server device determines the transmission bandwidth for transmitting the test data packet based on the size of the test data packet and the time consumed, wherein the time consumed is determined based on the sending timestamp and the receiving timestamp.

[0014] The server-side device determines the number of lost sub-test packets based on the sequence number of the sub-test packets;

[0015] The server-side device calculates the packet loss rate based on the number of lost sub-test packets and the number of sub-test packets.

[0016] Optionally, when a target 5G network card identifier is determined, if the stable transmission bandwidth of the 5G network card is less than the data upload bandwidth, then a first bandwidth difference is compared with the stable transmission bandwidth of m 4G network cards, wherein the first bandwidth difference is the absolute value of the difference between the stable transmission bandwidth of the 5G network card and the data upload bandwidth, and m is a natural number greater than 0.

[0017] Based on the comparison results, one or more of the target 4G network card identifiers required for transmitting the service data packets are determined, so that the 5G network card of the target 5G network card identifier and the 4G network card of the target 4G network card identifier meet the bandwidth requirements for transmitting the service data packets.

[0018] Optionally, determining one or more of the target 4G network interface card (NIC) identifiers required for transmitting the service data packet based on the comparison result includes:

[0019] Among the stable transmission bandwidths of m 4G network cards, the stable transmission bandwidth of the 4G network card with the largest value is determined as the first stable transmission bandwidth.

[0020] If the first stable transmission bandwidth is greater than or equal to the first bandwidth difference, then at least the identifier of the 4G network card with the first stable transmission bandwidth is determined as the identifier of the target 4G network card.

[0021] If the first stable transmission bandwidth is less than the first bandwidth difference, then multiple target 4G network card identifiers are determined among the m 4G network cards, so that the 5G network card of the target 5G network card identifier and the multiple target 4G network card identifiers meet the bandwidth requirements for transmitting the service data packets.

[0022] Optionally, the step of determining the identifier of the 4G network card with the maximum value as the target 4G network card identifier if the first stable transmission bandwidth is greater than or equal to the first bandwidth difference includes:

[0023] The first percentage is determined based on the first stable transmission bandwidth and the first bandwidth difference;

[0024] If the first percentage is greater than or equal to the first preset value, then the 4G network card identifier corresponding to the first stable transmission bandwidth is determined as the target 4G network card identifier.

[0025] If the first percentage is less than the first preset value, then among the remaining m-1 4G network cards' stable transmission bandwidth, the stable transmission bandwidth of the 4G network card with the largest value is determined as the second stable transmission bandwidth.

[0026] The second percentage is determined based on the second stable transmission bandwidth and the second bandwidth difference;

[0027] If the second percentage is greater than or equal to the second preset value, then the 4G network card identifier corresponding to the second stable transmission bandwidth will also be determined as the target 4G network card identifier.

[0028] If the second percentage is less than the second preset value, then among the remaining m-2 4G network cards' stable transmission bandwidth, the stable transmission bandwidth of the 4G network card with the largest value is determined as the third stable transmission bandwidth, and so on, and one or more target 4G network card identifiers are determined. The second bandwidth difference is based on the absolute value of the difference between the first bandwidth difference and the second stable transmission bandwidth.

[0029] Optionally, the step of determining multiple target 4G network card identifiers among m 4G network cards if the first stable transmission bandwidth is less than the first bandwidth difference includes:

[0030] The 4G network card identifier corresponding to the first stable transmission bandwidth is determined as the target 4G network card identifier, and the stable transmission bandwidth of the 4G network card with the largest value among the remaining m-1 4G network cards is determined as the second stable transmission bandwidth.

[0031] If the second stable transmission bandwidth is greater than or equal to the second bandwidth difference, then the 4G network card identifier corresponding to the second stable transmission bandwidth will also be determined as the target 4G network card identifier.

[0032] If the second stable transmission bandwidth is less than the second bandwidth difference, then among the remaining m-2 4G network cards' stable transmission bandwidths, the stable transmission bandwidth of the 4G network card with the largest value is determined as the third stable transmission bandwidth, and so on, to determine one or more target 4G network card identifiers. The second bandwidth difference is the absolute value of the difference between the first bandwidth difference and the second stable transmission bandwidth.

[0033] Optionally, sending the service data packet to the server device via the 5G network card corresponding to the target 5G network card identifier and the 4G network card corresponding to the target 4G network card identifier includes:

[0034] The data packet splitting ratio is determined based on the ratio of the stable transmission bandwidth corresponding to the target 5G network card identifier to the stable transmission bandwidth of the target 4G network card identifier.

[0035] According to the data packet splitting ratio, the service data packet is split to obtain a first sub-service data packet corresponding to the target 5G network card identifier and a second sub-service data packet corresponding to the target 4G network card identifier;

[0036] The first sub-service data packet is sent to the server device through the 5G network card corresponding to the target 5G network card identifier;

[0037] The second sub-service data packet is sent to the server device through the 4G network card corresponding to the target 4G network card identifier.

[0038] Optionally, sending the first sub-service data packet to the server device via the 5G network card corresponding to the target 5G network card identifier includes:

[0039] The first sub-service data packet is encapsulated according to the network interface data protocol and sent to the server device through the 5G network card corresponding to the target 5G network card identifier. The network interface data protocol is obtained by parsing the service data packet, and the network interface data protocol type includes at least one of HTTP, TCP or UDP.

[0040] Correspondingly,

[0041] The step of sending the second sub-service data packet to the server device through the 4G network card corresponding to the target 4G network card identifier includes:

[0042] The second sub-service data packet is encapsulated according to the network interface data protocol and sent to the server device through the 4G network card corresponding to the target 4G network card identifier. The network interface data protocol is obtained by parsing the service data packet, and the network interface data protocol type includes at least one of HTTP, TCP or UDP.

[0043] Secondly, embodiments of the present invention provide a service data transmission apparatus, the apparatus comprising:

[0044] The acquisition module is used to determine the data upload bandwidth required to send business data packets;

[0045] The determination module is used to determine the target 5G network card identifier and the target 4G network card identifier required for transmitting the service data packet based on the data upload bandwidth, the stable transmission bandwidth of the 5G network card and the stable transmission bandwidth of the 4G network card. The stable transmission bandwidth of the 5G network card and the stable transmission bandwidth of the 4G network card are the transmission bandwidths obtained when the packet loss rate is less than a first preset value.

[0046] The sending module is used to send the service data packet to the server device through the 5G network card corresponding to the target 5G network card identifier and the 4G network card corresponding to the target 4G network card identifier.

[0047] Optionally, the device further includes a first computing module, the first computing module being used for:

[0048] Test data packets are sent to the server device via 5G and 4G network cards respectively, so that the server device can determine the transmission bandwidth and packet loss rate based on the timestamp and sequence number of the received test data packets. If the packet loss rate is less than the first preset value, the transmission bandwidth corresponding to the packet loss rate is determined as the stable transmission bandwidth. The test data packets include network card identifier, timestamp, number of sub-test packets and sequence number of sub-test packets.

[0049] Receive the stable transmission bandwidth returned by the server device.

[0050] Optionally, the server device includes a second computing module, the second computing module being used for:

[0051] Based on the size of the test data packet and the time consumed, the transmission bandwidth for transmitting the test data packet is determined, wherein the time consumed is determined based on the sending timestamp and the receiving timestamp;

[0052] The number of missing sub-test packages is determined based on their sequence numbers.

[0053] The packet loss rate is calculated based on the number of lost sub-test packets and the number of sub-test packets.

[0054] Optionally, the determining module is configured to:

[0055] If a target 5G network card identifier is determined, and the stable transmission bandwidth of the 5G network card is less than the data upload bandwidth, then a first bandwidth difference is compared with the stable transmission bandwidth of m 4G network cards, wherein the first bandwidth difference is the absolute value of the difference between the stable transmission bandwidth of the 5G network card and the data upload bandwidth, and m is a natural number greater than 0.

[0056] Based on the comparison results, one or more of the target 4G network card identifiers required for transmitting the service data packets are determined, so that the 5G network card of the target 5G network card identifier and the 4G network card of the target 4G network card identifier meet the bandwidth requirements for transmitting the service data packets.

[0057] Optionally, the determining module is used to:

[0058] Among the stable transmission bandwidths of the m 4G network cards, the stable transmission bandwidth of the 4G network card with the largest value is determined as the first stable transmission bandwidth.

[0059] If the first stable transmission bandwidth is greater than or equal to the first bandwidth difference, then at least the identifier of the 4G network card with the first stable transmission bandwidth is determined as the identifier of the target 4G network card.

[0060] If the first stable transmission bandwidth is less than the first bandwidth difference, then multiple target 4G network card identifiers are determined among the m 4G network cards, so that the 5G network card of the target 5G network card identifier and the multiple target 4G network card identifiers meet the bandwidth requirements for transmitting the service data packets.

[0061] Optionally, the determining module is used to:

[0062] The first percentage is determined based on the first stable transmission bandwidth and the first bandwidth difference;

[0063] If the first percentage is greater than or equal to the first preset value, then the 4G network card identifier corresponding to the first stable transmission bandwidth is determined as the target 4G network card identifier.

[0064] If the first percentage is less than the first preset value, then among the remaining m-1 4G network cards' stable transmission bandwidth, the stable transmission bandwidth of the 4G network card with the largest value is determined as the second stable transmission bandwidth.

[0065] The second percentage is determined based on the second stable transmission bandwidth and the second bandwidth difference;

[0066] If the second percentage is greater than or equal to the second preset value, then the 4G network card identifier corresponding to the second stable transmission bandwidth will also be determined as the target 4G network card identifier.

[0067] If the second percentage is less than the second preset value, then among the remaining m-2 4G network cards' stable transmission bandwidth, the stable transmission bandwidth of the 4G network card with the largest value is determined as the third stable transmission bandwidth, and so on, and one or more target 4G network card identifiers are determined. The second bandwidth difference is based on the absolute value of the difference between the first bandwidth difference and the second stable transmission bandwidth.

[0068] Optionally, the determining module is used to:

[0069] The 4G network card identifier corresponding to the first stable transmission bandwidth is determined as the target 4G network card identifier, and the stable transmission bandwidth of the 4G network card with the largest value among the remaining m-1 4G network cards is determined as the second stable transmission bandwidth.

[0070] If the second stable transmission bandwidth is greater than or equal to the second bandwidth difference, then the 4G network card identifier corresponding to the second stable transmission bandwidth will also be determined as the target 4G network card identifier.

[0071] If the second stable transmission bandwidth is less than the second bandwidth difference, then among the remaining m-2 4G network cards' stable transmission bandwidths, the stable transmission bandwidth of the 4G network card with the largest value is determined as the third stable transmission bandwidth, and so on, to determine one or more target 4G network card identifiers. The second bandwidth difference is the absolute value of the difference between the first bandwidth difference and the second stable transmission bandwidth.

[0072] Optionally, the sending module is used to:

[0073] The data packet splitting ratio is determined based on the ratio of the stable transmission bandwidth corresponding to the target 5G network card identifier to the stable transmission bandwidth of the target 4G network card identifier.

[0074] According to the data packet splitting ratio, the service data packet is split to obtain a first sub-service data packet corresponding to the target 5G network card identifier and a second sub-service data packet corresponding to the target 4G network card identifier;

[0075] The first sub-service data packet is sent to the server device through the 5G network card corresponding to the target 5G network card identifier;

[0076] The second sub-service data packet is sent to the server device through the 4G network card corresponding to the target 4G network card identifier.

[0077] Optionally, the sending module is used to:

[0078] The first sub-service data packet is encapsulated according to the network interface data protocol and sent to the server device through the 5G network card corresponding to the target 5G network card identifier. The network interface data protocol is obtained by parsing the service data packet, and the network interface data protocol type includes at least one of HTTP, TCP or UDP.

[0079] Correspondingly,

[0080] The step of sending the second sub-service data packet to the server device through the 4G network card corresponding to the target 4G network card identifier includes:

[0081] The second sub-service data packet is encapsulated according to the network interface data protocol and sent to the server device through the 4G network card corresponding to the target 4G network card identifier. The network interface data protocol is obtained by parsing the service data packet, and the network interface data protocol type includes at least one of HTTP, TCP or UDP.

[0082] Thirdly, embodiments of the present invention provide a terminal device, including: at least one processor and a memory;

[0083] The memory stores a computer program; the at least one processor executes the computer program stored in the memory to implement the method for transmitting business data provided in the first aspect.

[0084] Fourthly, embodiments of the present invention provide a computer-readable storage medium storing a computer program, which, when executed, implements the business data transmission method provided in the first aspect.

[0085] The embodiments of the present invention have the following advantages:

[0086] The service data transmission method, apparatus, terminal device, and storage medium provided in this invention determine the data upload bandwidth required to send service data packets; based on the data upload bandwidth, the stable transmission bandwidth of the 5G network card, and the stable transmission bandwidth of the 4G network card, determine the target 5G network card identifier and the target 4G network card identifier required for transmitting the service data packets, wherein the stable transmission bandwidth of the 5G network card and the stable transmission bandwidth of the 4G network card are the transmission bandwidths obtained when the packet loss rate is less than a first preset value; and send the service data packets to the server device through the 5G network card corresponding to the target 5G network card identifier and the 4G network card corresponding to the target 4G network card identifier. In this way, even in the case of poor signal, data is transmitted simultaneously through the 5G network card and the 4G network card, meeting the requirements for stable data transmission. Attached Figure Description

[0087] Figure 1 This is a flowchart illustrating the steps of an embodiment of a business data transmission method according to the present invention;

[0088] Figure 2 This is a flowchart illustrating the steps of another embodiment of the business data transmission method of the present invention;

[0089] Figure 3 This is a flowchart illustrating the steps of another embodiment of the business data transmission method of the present invention;

[0090] Figure 4 This is a flowchart illustrating the steps of another embodiment of the business data transmission method of the present invention;

[0091] Figure 5 This is a structural block diagram of an embodiment of a business data transmission system according to the present invention;

[0092] Figure 6 This is a flowchart illustrating the steps of another embodiment of the business data transmission method of the present invention;

[0093] Figure 7 This is a structural block diagram of an embodiment of a business data transmission device according to the present invention;

[0094] Figure 8 This is a schematic diagram of the structure of a terminal device according to the present invention. Detailed Implementation

[0095] To make the above-mentioned objects, features and advantages of the present invention more apparent and understandable, the present invention will be further described in detail below with reference to the accompanying drawings and specific embodiments.

[0096] The video network is a significant milestone in network development. It is a real-time network that enables real-time transmission of high-definition video, pushing many internet applications towards high-definition video and enabling high-definition face-to-face interaction.

[0097] The video network adopts real-time high-definition video switching technology, which can integrate dozens of services such as high-definition video conferencing, video surveillance, intelligent monitoring and analysis, emergency command, digital broadcasting, time-delayed television, online teaching, live broadcasting, VOD, TV mail, personalized recording (PVR), intranet (self-operated) channels, intelligent video broadcast control, information release, etc., into a single system platform, enabling high-definition video playback through televisions or computers.

[0098] Based on the aforementioned characteristics of the visual network, one of the core concepts of this invention is to determine the data upload bandwidth required to send service data packets; based on the data upload bandwidth, the stable transmission bandwidth of the 5G network card, and the stable transmission bandwidth of the 4G network card, the target 5G network card identifier and the target 4G network card identifier required for transmitting service data packets are determined, wherein the stable transmission bandwidth of the 5G network card and the stable transmission bandwidth of the 4G network card are the transmission bandwidths obtained when the packet loss rate is less than a first preset value; the service data packets are sent to the server device through the 5G network card corresponding to the target 5G network card identifier and the 4G network card corresponding to the target 4G network card identifier. In this way, even when the signal is poor, data is transmitted simultaneously through the 5G network card and the 4G network card, meeting the requirement of stable data transmission.

[0099] One embodiment of the present invention provides a method for transmitting service data, used to simultaneously transmit data via 4G network cards and 5G network cards. The execution entity in this embodiment is a service data transmission device, which is installed on a multi-card aggregation device.

[0100] Reference Figure 1 The diagram illustrates a flowchart of an embodiment of a service data transmission method according to the present invention. The method may specifically include the following steps:

[0101] S101. Determine the data upload bandwidth required to send the service data packet;

[0102] Specifically, this embodiment of the invention is applied to a business data transmission system, which includes a sending device, a multi-SIM aggregation device, and a server device. The server device is connected to a switch. The sending device sends business data packets to the multi-SIM aggregation device, which then sends the business data packets to the switch, where the switch distributes the business data packets. The sending device and the multi-SIM aggregation device can be integrated or separate. If they are separate, they are connected via a network cable. The sending device can be a device equipped with a camera, such as a camera or a computer equipped with a camera. The multi-SIM aggregation device includes multiple card slots, which can accommodate 4G or 5G network cards. The server device is a dual-mode device, capable of communicating with both video networks and the internet.

[0103] As an optional implementation, the sending device and the multi-card aggregation device are separate. The sending device sends the service data packet to the multi-card aggregation device, and the multi-card aggregation device obtains the data upload bandwidth required to receive the service data packet, which is the real-time data upload bandwidth.

[0104] As another alternative implementation, the sending device and the multi-card aggregation device are integrated devices that determine the service data packets to be sent and obtain the data upload bandwidth required to send the service data packets.

[0105] S102. Based on the data upload bandwidth, the stable transmission bandwidth of the 5G network card and the stable transmission bandwidth of the 4G network card, determine the target 5G network card identifier and the target 4G network card identifier required for transmitting service data packets. The stable transmission bandwidth of the 5G network card and the stable transmission bandwidth of the 4G network card are the transmission bandwidths obtained when the packet loss rate is less than the first preset value.

[0106] Specifically, regardless of the combination form, multi-card aggregation devices or all-in-one devices obtain the stable transmission bandwidth of each network card in advance by sending test data packets to the server device, and when using the stable transmission bandwidth to transmit data packets, the packet loss rate is guaranteed to be less than the first preset value, which can guarantee the integrity of the transmitted data.

[0107] Multi-SIM aggregation devices or all-in-one devices compare the data upload bandwidth with the stable transmission bandwidth of each network card to determine the network card required to send the service data packet. Since the main advantage of 5G networks is their significantly higher data transmission rate than previous cellular networks, reaching up to 10 Gbit / s, faster than current wired internet and 100 times faster than 4G LTE cellular networks, and lower network latency (faster response time), less than 1 millisecond (compared to 30-70 milliseconds for 4G), the target 5G network card is prioritized. If the 5G network card does not meet the requirements, the target 4G network card is selected from among the available 4G network cards.

[0108] In this embodiment of the invention, the number of 5G network cards and the number of 4G network cards are not specifically limited.

[0109] S103. Send the service data packet to the server device through the 5G network card corresponding to the target 5G network card identifier and the 4G network card corresponding to the target 4G network card identifier.

[0110] Specifically, multi-card aggregation devices or all-in-one devices transmit service data packets using designated 5G and 4G network cards, thus overcoming the shortcomings of existing technologies where data is unstable if only one network link is used for transmission.

[0111] The service data transmission method provided in this embodiment of the invention determines the data upload bandwidth required to send service data packets; based on the data upload bandwidth, the stable transmission bandwidth of the 5G network card, and the stable transmission bandwidth of the 4G network card, it determines the target 5G network card identifier and the target 4G network card identifier required for transmitting the service data packets. The stable transmission bandwidth of the 5G network card and the stable transmission bandwidth of the 4G network card are obtained when the packet loss rate is less than a first preset value; the service data packets are sent to the server device through the 5G network card corresponding to the target 5G network card identifier and the 4G network card corresponding to the target 4G network card identifier. Thus, even in situations with poor signal strength, data is transmitted simultaneously through both the 5G and 4G network cards, meeting the requirements for stable data transmission.

[0112] Another embodiment of the present invention further supplements the description of the service data transmission method provided in the above embodiments.

[0113] In the following embodiments, a structure in which the transmitting device and the multi-card aggregation device are separate is specifically described.

[0114] like Figure 2 The diagram illustrates a flowchart of another embodiment of the service data transmission method of the present invention, which includes:

[0115] S201, the multi-card aggregation device sends test data packets to the server device through the 5G network card and the 4G network card respectively. The test data packets include the network card identifier, timestamp, number of sub-test packets and sequence number of sub-test packets.

[0116] Specifically, this embodiment of the invention is applied to a business data transmission system, which includes a sending device, a multi-SIM aggregation device, and a server device. The server device is connected to a switch, which distributes business data packets. The sending device and the multi-SIM aggregation device are connected via a network cable. The sending device includes a device equipped with a camera, such as a camera or a computer equipped with a camera. The multi-SIM aggregation device includes multiple card slots, which can accommodate 4G or 5G network cards. The server device is a dual-mode device, capable of communicating with both video networks and the Internet.

[0117] In this embodiment of the invention, the number of card slots in the multi-card aggregation device is not specifically limited. Suitable 5G and 4G network cards can be installed as needed. The 4G network cards can preferably include network cards from various operators, such as China Mobile, China Unicom, and China Telecom. If the signal of one operator's network card is poor, it will not affect the transmission efficiency of other network cards. The number of 5G network cards can be set as needed, and the operators are not specifically limited.

[0118] Specifically, as an optional approach, in the idle state of the service, the multi-card aggregation device can send test data packets to the server device in advance through each network card, so that the server device can determine the transmission bandwidth and packet loss rate based on the timestamp and sequence number of the received test data packets. If the packet loss rate is less than a first preset value, the transmission bandwidth corresponding to the packet loss rate is determined as the stable transmission bandwidth, in preparation for the subsequent transmission of service data.

[0119] As an alternative approach, stable transmission bandwidth can be acquired before real-time service transmission. Specifically, before executing service transmission of service data packets, the multi-card aggregation device sends test data packets to the server device through each network card. The test data packets include the identifiers of each network card and timestamps. Each test data packet also includes multiple sub-test packets, and the number and sequence number of the sub-test packets are loaded into the test data packets before being sent to the server device.

[0120] S202. The server device determines the transmission bandwidth and packet loss rate based on the timestamp and sequence number of the received test data packets. If the packet loss rate is less than the first preset value, the transmission bandwidth corresponding to the packet loss rate is determined as the stable transmission bandwidth.

[0121] Specifically, step S202 includes:

[0122] Step A1: The server device determines the transmission bandwidth for transmitting the test data packet based on the size of the test data packet and the time consumed. The time consumed is determined based on the sending timestamp and the receiving timestamp.

[0123] Specifically, the server device obtains the sending timestamp and receiving timestamp of the test data packet sent by the multi-card aggregation device, and calculates the time consumed in receiving the test data packet, that is, the time interval obtained by subtracting the receiving timestamp from the sending timestamp. The server device then divides the size of the test data packet by the time consumed, i.e., the time interval, to obtain the number of test data packets received per unit time, which is the transmission bandwidth for transmitting the test data packet.

[0124] Step A2: The server-side device determines the number of lost sub-test packets based on the sequence number of the sub-test packets;

[0125] For example, the server device receives sub-test packets with sequence numbers "1, 2, 3, 5, 7, 8, 9, 10", but loses sub-test packets with sequence numbers "4, 6", meaning the number of lost sub-test packets is 2.

[0126] Step A3: The server-side device calculates the packet loss rate based on the number of lost sub-test packets and the total number of sub-test packets.

[0127] Specifically, the server device receives the total number of sub-test packets in the test data packet, and calculates the packet loss rate based on the number of lost sub-test packets and the total number of sub-test packets.

[0128] Step A4: When the packet loss rate is less than the first preset value, the transmission bandwidth corresponding to the packet loss rate is determined as the stable transmission bandwidth;

[0129] Specifically, the server device judges the calculated packet loss rate. If the packet loss rate is greater than a certain value, the transmission speed of the network card needs to be reduced, that is, the number of bytes of each data packet sent is reduced, until the packet loss rate is less than the first preset value. In this case, the network transmission bandwidth at this time is determined as the stable transmission bandwidth.

[0130] For example, if the packet loss rate is found to be greater than 20%, the transmission speed of this card is reduced until the packet loss rate is less than 10%, and the network transmission bandwidth at this time is recorded as the stable transmission bandwidth of this card.

[0131] S203. Obtain the data upload bandwidth required to receive service data packets;

[0132] Because step S203 and Figure 1 Step S101 in the illustrated embodiment is the same. Figure 1 Step S101 has already been described in detail, so step S203 will not be described again here.

[0133] S204. When a target 5G network card identifier is determined, if the stable transmission bandwidth of the 5G network card is less than the data upload bandwidth, the first bandwidth difference is compared with the stable transmission bandwidth of m 4G network cards, where the first bandwidth difference is the absolute value of the difference between the stable transmission bandwidth and the data upload bandwidth of the 5G network card, and m is a natural number greater than 0.

[0134] Specifically, in embodiments of the present invention, multiple 5G network cards and multiple 4G network cards may be included. Since the data transmission capability of 5G network cards is stronger, usually only one target 5G network card is selected.

[0135] The multi-SIM aggregation device judges the stable transmission bandwidth and data upload bandwidth of the 5G network card. If the stable transmission bandwidth of the 5G network card is less than the data upload bandwidth, it means that using only one 5G network card cannot meet the data transmission requirements. Several target 4G network cards need to be selected from the 4G network cards. Then, the absolute value of the difference between the stable transmission bandwidth and the data upload bandwidth of the 5G network card is calculated, which is the first bandwidth difference. The first bandwidth difference is compared with m 4G network cards. Based on the first bandwidth difference and the stable transmission bandwidth of m 4G network cards, several 4G network cards are determined. For example, one 4G network card or multiple 4G network cards can be determined. Specifically, multiple 4G network cards refer to two or more 4G network cards.

[0136] S205. Based on the comparison results, determine one or more target 4G network card identifiers required for transmitting service data packets, so that the 5G network card with the target 5G network card identifier and the 4G network card with the target 4G network card identifier meet the bandwidth requirements for transmitting service data packets.

[0137] Specifically, the multi-card aggregation device judges the first bandwidth difference and the stable transmission bandwidth of the 4G network card. If the maximum stable transmission bandwidth of one of the 4G network cards is greater than or equal to the first bandwidth difference, then the 4G network card is identified as the target 4G card. In this case, only one target 5G network card and one target 4G network card are needed to meet the bandwidth requirements for transmitting service data packets.

[0138] If the maximum stable transmission bandwidth of a 4G network card is less than the first bandwidth difference, then one 5G network card and one 4G network card cannot meet the bandwidth requirements for transmitting service data packets. In this case, several more target 4G network cards need to be selected from the remaining 4G network cards. This process continues until one target 5G network card and multiple target 4G network cards can meet the bandwidth requirements for transmitting service data packets.

[0139] S206. Send the service data packet to the server device through the 5G network card corresponding to the target 5G network card identifier and the 4G network card corresponding to the target 4G network card identifier.

[0140] Specifically, after identifying one 5G network card and several 4G network cards, the multi-SIM aggregation device splits the service data packets and sends the split data packets to the server device through the 5G network card and several 4G network cards. This includes:

[0141] Step A1: Determine the data packet splitting ratio based on the ratio of the stable transmission bandwidth corresponding to the target 5G network card identifier to the stable transmission bandwidth of the target 4G network card identifier.

[0142] Step A2: According to the data packet splitting ratio, split the service data packet to obtain the first sub-service data packet corresponding to the target 5G network card identifier and the second sub-service data packet corresponding to the target 4G network card identifier;

[0143] Step A3: Send the first sub-service data packet to the server device through the 5G network card corresponding to the target 5G network card identifier;

[0144] Specifically, the multi-card aggregation device encapsulates the first sub-service data packet according to the network interface data protocol and sends it to the server device through the 5G network card corresponding to the target 5G network card identifier. The network interface data protocol is obtained by parsing the service data packet, and the network interface data protocol type includes at least one of HTTP, TCP or UDP.

[0145] Step A4: Send the second sub-service data packet to the server device through the 4G network card corresponding to the target 4G network card identifier.

[0146] Specifically, the multi-SIM aggregation device encapsulates the second sub-service data packet according to the network interface data protocol and sends it to the server device through the 4G network card corresponding to the target 4G network card identifier. The network interface data protocol is obtained by parsing the service data packet, and the network interface data protocol type includes at least one of HTTP, TCP or UDP.

[0147] For example, if the stable transmission bandwidth corresponding to the target 5G network card identifier is 10M, and the stable transmission bandwidth of the target 4G network card identifier is 20M, 30M and 40M, then the service data packet is split in a ratio of 1:2:3:4 to obtain the split sub-service data packet 1, sub-service data packet 2, sub-service data packet 3 and sub-service data packet 4.

[0148] Then, sub-service data packet 1 is sent to the server device via the 5G network card, sub-service data packet 2 is sent to the server device via the 20M 4G network card, sub-service data packet 3 is sent to the server device via the 30M 4G network card, and sub-service data packet 4 is sent to the server device via the 40M 4G network card.

[0149] Based on the above embodiments, the scenarios in which the embodiments of the present invention can be applied include a scenario with one 5G network card and one 4G network card, and a scenario with one 5G network card and multiple 4G network cards, wherein multiple refers to two or more. The specific descriptions of each scenario are as follows.

[0150] Figure 3 This is a flowchart illustrating the steps of another embodiment of the service data transmission method of the present invention, as follows: Figure 3 As shown, the method for transmitting this service data includes:

[0151] S301. Obtain the data upload bandwidth required to receive service data packets;

[0152] S302. When a target 5G network card identifier is determined, if the stable transmission bandwidth of the 5G network card is less than the data upload bandwidth, the first bandwidth difference is compared with the stable transmission bandwidth of m 4G network cards, where the first bandwidth difference is the absolute value of the difference between the stable transmission bandwidth and the data upload bandwidth of the 5G network card, and m is a natural number greater than 0.

[0153] Because steps S301 to S302 and Figure 2 Steps S203 to S204 in the illustrated embodiment are the same. Figure 2 Steps S203 to S204 have already been described in detail, so steps S301 to S302 will not be described again here.

[0154] S303. Among the stable transmission bandwidths of m 4G network cards, the stable transmission bandwidth of the 4G network card with the largest value is determined as the first stable transmission bandwidth.

[0155] Specifically, after determining a 5G network card, the multi-card aggregation device needs to select several 4G network cards to meet the network bandwidth requirements for transmitting service data packets. In this way, the multi-card aggregation device first selects the maximum stable transmission bandwidth from the stable transmission bandwidth of m 4G network cards as the first stable transmission bandwidth.

[0156] S304. If the first stable transmission bandwidth is greater than or equal to the first bandwidth difference, then at least the identifier of the 4G network card with the first stable transmission bandwidth shall be determined as the target 4G network card identifier.

[0157] Specifically, as an optional implementation, the multi-card aggregation device compares the first stable transmission bandwidth with the first bandwidth difference. If the first stable transmission bandwidth is greater than the first bandwidth difference, it means that the 4G network card corresponding to the first stable transmission bandwidth can meet the network bandwidth requirements. The 4G network card corresponding to the 4G network card identifier of the first stable transmission bandwidth is identified as the target 4G network card. In this way, one 5G network card and one 4G network card can meet the network bandwidth requirements for transmitting service data packets.

[0158] As another optional implementation, multiple target 4G network card identifiers are determined among m 4G network cards so that the 5G network card with the target 5G network card identifier and the multiple target 4G network card identifiers meet the bandwidth requirements for transmitting service data packets.

[0159] Specifically, the multi-card aggregation device compares the first stable transmission bandwidth with the first bandwidth difference. Although the first stable transmission bandwidth is greater than the first bandwidth difference, the bandwidth redundancy is very small. If there is any fluctuation in the network bandwidth, it will affect data transmission. Therefore, it is necessary to select multiple 4G network cards from m 4G network cards. In this way, one 5G network card and multiple 4G network cards can meet the network bandwidth requirements for transmitting service data packets.

[0160] S305. If the first stable transmission bandwidth is less than the first bandwidth difference, then multiple target 4G network card identifiers are determined among the m 4G network cards, so that the 5G network card with the target 5G network card identifier and the multiple target 4G network card identifiers meet the bandwidth requirements for transmitting service data packets.

[0161] Specifically, step S305 includes:

[0162] Step A1: Determine the 4G network card identifier corresponding to the first stable transmission bandwidth as the target 4G network card identifier, and determine the stable transmission bandwidth of the 4G network card with the maximum value among the remaining m-1 4G network cards as the second stable transmission bandwidth.

[0163] The multi-card aggregation device compares the first stable transmission bandwidth with the first bandwidth difference. However, if the first stable transmission bandwidth is less than the first bandwidth difference, then one 4G network card cannot meet the bandwidth requirements. Therefore, the largest stable transmission bandwidth, i.e., the second stable transmission bandwidth, needs to be selected from the remaining 4G network cards.

[0164] Step A2: If the second stable transmission bandwidth is greater than or equal to the second bandwidth difference, then the 4G network card identifier corresponding to the second stable transmission bandwidth is also determined as the target 4G network card identifier.

[0165] Step A3: If the second stable transmission bandwidth is less than the second bandwidth difference, then among the remaining m-2 4G network cards' stable transmission bandwidths, the stable transmission bandwidth of the 4G network card with the largest value is determined as the third stable transmission bandwidth, and so on, to determine one or more target 4G network card identifiers. The second bandwidth difference is the absolute value of the difference between the first bandwidth difference and the second stable transmission bandwidth.

[0166] Specifically, the multi-card aggregation device obtains a second bandwidth difference based on the difference between the first stable transmission bandwidth and the first bandwidth difference. Then, it compares the second stable transmission bandwidth with the second bandwidth difference. If the second stable transmission bandwidth is greater than or equal to the second bandwidth difference, then one 5G network card and two 4G network cards are needed to meet the bandwidth requirements. If the second stable transmission bandwidth is less than or equal to the second bandwidth difference, then the remaining 4G network cards need to be selected in the same way as described above until one 5G network card and multiple 4G network cards can meet the bandwidth requirements for transmitting service data packets.

[0167] S306. Send the service data packet to the server device through the 5G network card corresponding to the target 5G network card identifier and the 4G network card corresponding to the target 4G network card identifier.

[0168] Figure 4 This is a flowchart illustrating the steps of another embodiment of the service data transmission method of the present invention, as follows: Figure 4 As shown, the method for transmitting this service data includes:

[0169] S401. Obtain the data upload bandwidth required to receive service data packets;

[0170] S402. When a target 5G network card identifier is determined, if the stable transmission bandwidth of the 5G network card is less than the data upload bandwidth, the first bandwidth difference is compared with the stable transmission bandwidth of m 4G network cards, where the first bandwidth difference is the absolute value of the difference between the stable transmission bandwidth and the data upload bandwidth of the 5G network card, and m is a natural number greater than 0.

[0171] S403. Among the stable transmission bandwidths of m 4G network cards, the stable transmission bandwidth of the 4G network card with the largest value is determined as the first stable transmission bandwidth.

[0172] Because steps S401 to S403 and Figure 3 Steps S301 to S303 in the illustrated embodiment are the same. Figure 3 Steps S301 to S303 have already been described in detail, so steps S301 to S302 will not be described again here.

[0173] S404. If the first stable transmission bandwidth is greater than or equal to the first bandwidth difference, then the first percentage is determined based on the first stable transmission bandwidth and the first bandwidth difference.

[0174] Specifically, each 5G or 4G network card has a certain redundancy during data transmission to ensure secure data transmission even during fluctuations. The multi-card aggregation device determines a first percentage as the ratio of the difference between the first bandwidth difference and the first stable transmission bandwidth to the first stable transmission bandwidth. The multi-card aggregation device can compare this first percentage with a first preset value, and based on the comparison result, can identify one or more target 4G network cards.

[0175] S405. If the first percentage is greater than or equal to the first preset value, then among the remaining m-1 4G network cards' stable transmission bandwidth, the stable transmission bandwidth of the 4G network card with the largest value is determined as the second stable transmission bandwidth.

[0176] S406. Determine the second percentage based on the second stable transmission bandwidth and the difference between the second bandwidth;

[0177] S407. If the second percentage is greater than or equal to the second preset value, then the 4G network card identifier corresponding to the second stable transmission bandwidth is also determined as the target 4G network card identifier.

[0178] S408. If the second percentage is less than the second preset value, then among the remaining m-2 4G network cards' stable transmission bandwidth, the stable transmission bandwidth of the 4G network card with the largest value is determined as the third stable transmission bandwidth, and the above operation is repeated in sequence to determine one or more target 4G network card identifiers, wherein the second bandwidth difference is based on the absolute value of the difference between the first bandwidth difference and the second stable transmission bandwidth.

[0179] Specifically, if the second stable transmission bandwidth is not met after the multi-card aggregation device determines it, the multi-card aggregation device needs to select a third stable transmission bandwidth from the remaining m-2 4G network cards and make the determination according to the above steps until the bandwidth requirement is met.

[0180] If the first percentage is less than the first preset value, it means that the first 4G network card already determined cannot meet the requirements. The multi-card aggregation server needs to determine a second 4G network card from the remaining m-1 4G network cards. The specific steps S408 include:

[0181] Step B1: If the first percentage is less than the first preset value, among the remaining m-1 4G network cards' stable transmission bandwidth, the stable transmission bandwidth of the 4G network card with the largest value is determined as the second stable transmission bandwidth.

[0182] Step B2: Based on the second stable transmission bandwidth and the second bandwidth difference, determine one or more 4G network card identifiers among m-1 4G network cards, so that the 5G network card with the target 5G network card identifier and the 4G network cards with multiple target 4G network card identifiers meet the bandwidth requirements for transmitting service data packets. The second bandwidth difference is the absolute value of the difference between the first bandwidth difference and the second stable transmission bandwidth.

[0183] Specifically, among the remaining m-1 4G network cards, the largest stable transmission bandwidth is reselected. The difference between this largest stable transmission bandwidth and the first bandwidth is then judged. The specific judgment steps are as described in the above steps. If the condition is met, the 4G network card corresponding to the largest stable transmission bandwidth is determined as the target 4G network card. If the condition is not met, among the remaining m-2 4G network cards, the largest stable transmission bandwidth is reselected again, and the judgment is performed on the largest stable transmission bandwidth again. This judgment is repeated each time until the selected 5G network card and 4G network card meet the network bandwidth for transmitting service data packets.

[0184] For example, m=3, select the largest stable transmission bandwidth from the three 4G network cards and compare it with the first bandwidth difference;

[0185] 1) If the first stable transmission bandwidth selected from the three cards is greater than the first bandwidth difference, calculate the first percentage, i.e., first percentage = (first stable transmission bandwidth - first bandwidth difference) / first stable transmission bandwidth; judge the first percentage. If the first percentage is greater than the first preset value, such as 50%, then use the first 4G network card and the 5G network card for mixed transmission.

[0186] 2) If the first stable transmission bandwidth is greater than the first bandwidth difference, and the first percentage is less than the first preset value such as 50%, then select the largest stable transmission bandwidth from the other two cards, i.e. the second stable transmission bandwidth, and continue to judge the two stable transmission bandwidths.

[0187] 3) Determine the second stable transmission bandwidth from the remaining two 4G network cards, and calculate the second percentage, i.e., the second percentage = (second stable transmission bandwidth - first bandwidth difference) / second stable transmission bandwidth. If the second percentage is greater than the second preset value, such as 50%, then use the first 4G network card, the second 4G network card and the 5G network card for aggregated transmission.

[0188] The first preset value and the second preset value can be set as needed, and are not specifically limited in this embodiment of the invention.

[0189] 4) If the second stable transmission bandwidth is greater than the first bandwidth difference and the second percentage is less than 50%, then the stable transmission bandwidth of the third 4G card is used as the third stable transmission bandwidth. If the third stable transmission bandwidth is greater than the second bandwidth difference and (third stable transmission bandwidth - second bandwidth difference) / third stable transmission bandwidth is greater than 50%, then three 4G network cards and one 5G network card are used for transmission. The third bandwidth difference is the absolute value of the difference between the second bandwidth difference and the third stable transmission bandwidth.

[0190] 5) If it is less than 50%, then three 4G network cards and one 5G network card will still be used for transmission, but a message indicating insufficient bandwidth will be displayed.

[0191] S409. Send the service data packet to the server device through the 5G network card corresponding to the target 5G network card identifier and the 4G network card corresponding to the target 4G network card identifier.

[0192] Figure 5 This is a structural block diagram of an embodiment of a service data transmission system according to the present invention, as shown below. Figure 5 As shown, the data transmission system includes a transmitting device, a multi-SIM card aggregation device, and a server device. The transmitting device and the multi-SIM card aggregation device can be located inside an integrated machine or they can be separate. If they are separate, the transmitting device and the multi-SIM card aggregation device are connected by a network cable. The multi-SIM card aggregation device includes 5G card slots and 4G card slots, and the number of each type of card slot is not limited.

[0193] Figure 6 This is a flowchart illustrating the steps of another embodiment of the service data transmission method of the present invention, as follows: Figure 6 As shown, in this embodiment of the invention, one 5G network card and three 4G network cards are used. The 5G network card is not limited to any particular operator, and the three 4G network cards are from China Mobile, China Unicom, and China Telecom respectively. The method for transmitting this service data includes:

[0194] 1. Start the multi-card aggregation device and send test data packets to the server device (dual-mode machine) through the four network cards respectively. Each test data packet includes the identifier of the network card.

[0195] 2. The server-side device calculates the transmission bandwidth and packet loss rate based on the timestamp and sequence number of the test data packets received within a preset time.

[0196] Bandwidth: The number of bytes of test data packets received per unit of time;

[0197] Packet loss rate: Based on the sequence number of the received test data packets, the number of lost sequence numbers is counted, and then the packet loss rate is calculated based on the number of lost sequence numbers and the total number of data packets.

[0198] 3. The server-side equipment assesses the packet loss rate;

[0199] If the packet loss rate is found to be greater than 20% (preset value), the transmission speed of this card will be reduced, that is, the number of bytes in a single test data packet will be reduced, until the packet loss rate is less than 10%. The bandwidth required for the test data packets sent at this time will be recorded as the stable transmission bandwidth of this card.

[0200] Record the stable transmission bandwidth of each of the four network cards;

[0201] 4. During the transmission of business data packets, the sending device sends the data packets to the multi-card aggregation device. The multi-card aggregation device captures the network interface data through WinPcap and parses the data header of the business data packet to determine the network interface data protocol type. The multi-card aggregation device supports three protocols: HTTP, TCP, and UDP.

[0202] 5. The multi-card aggregation device calculates the amount of data transmission required to transmit data packets, which is the data upload bandwidth.

[0203] 6. The multi-card aggregation device compares the data upload bandwidth with the stable transmission bandwidth of the 5G network card;

[0204] 1) If the stable transmission bandwidth of the 5G network card is greater than the data upload bandwidth * (1 + 50%), then the 5G card can be used alone for transmission;

[0205] 2) If the stable transmission bandwidth of the 5G network card is subtracted from the data upload bandwidth to obtain the first bandwidth difference, and the first bandwidth difference is less than 0, then the first bandwidth difference is compared with the stable transmission bandwidth of the other three 4G network cards.

[0206] 3) Select the largest stable transmission bandwidth from the three 4G network cards and compare it with the first bandwidth difference. If the first stable transmission bandwidth selected from the three network cards is larger than the first bandwidth difference, and (first stable transmission bandwidth - first bandwidth difference) / first stable transmission bandwidth is greater than 50%, then use the first 4G network card and the 5G network card for mixed transmission.

[0207] 3) If the first stable transmission bandwidth is greater than the first bandwidth difference, and (first stable transmission bandwidth - first bandwidth difference) / first stable transmission bandwidth is less than 50%, then select the largest stable transmission bandwidth from the other two network cards and continue to judge these two stable transmission bandwidths.

[0208] 4) From the remaining two 4G network cards, find the second stable transmission bandwidth. If the second stable transmission bandwidth is greater than the second bandwidth difference, and (second stable transmission bandwidth - first bandwidth difference) / second stable transmission bandwidth is greater than 50%, then use the first 4G network card, the second 4G network card, and the 5G network card for aggregated transmission.

[0209] 5) If the second stable transmission bandwidth is greater than the first bandwidth difference, and (second stable transmission bandwidth - third bandwidth difference) / second stable transmission bandwidth is less than 50%, then the third 4G network card is judged; if the third stable transmission bandwidth is greater than the third bandwidth difference, and (third stable transmission bandwidth - third bandwidth difference) / third stable transmission bandwidth is greater than 50%, then 3 4G network cards and 5G network cards are used for transmission.

[0210] If the bandwidth is less than 50%, three 4G and 5G network cards will still be used for transmission, but a message indicating insufficient bandwidth will be displayed.

[0211] 7. If multiple cards are used for aggregated transmission, the data will be divided according to the bandwidth ratio of each card, as in this example, with each card transmitting the corresponding proportion of data.

[0212] It should be noted that, for the sake of simplicity, the method embodiments are all described as a series of actions. However, those skilled in the art should understand that the embodiments of the present invention are not limited to the described order of actions, because according to the embodiments of the present invention, some steps can be performed in other orders or simultaneously. Furthermore, those skilled in the art should also understand that the embodiments described in the specification are preferred embodiments, and the actions involved are not necessarily essential to the embodiments of the present invention.

[0213] The service data transmission method provided in this embodiment of the invention determines the data upload bandwidth required to send service data packets; based on the data upload bandwidth, the stable transmission bandwidth of the 5G network card, and the stable transmission bandwidth of the 4G network card, it determines the target 5G network card identifier and the target 4G network card identifier required for transmitting the service data packets. The stable transmission bandwidth of the 5G network card and the stable transmission bandwidth of the 4G network card are obtained when the packet loss rate is less than a first preset value; the service data packets are sent to the server device through the 5G network card corresponding to the target 5G network card identifier and the 4G network card corresponding to the target 4G network card identifier. Thus, even in situations with poor signal strength, data is transmitted simultaneously through both the 5G and 4G network cards, meeting the requirements for stable data transmission.

[0214] Another embodiment of the present invention provides a service data transmission apparatus for performing the service data transmission method provided in the above embodiments.

[0215] Reference Figure 7 The diagram illustrates a structural block diagram of an embodiment of a service data transmission device according to the present invention. The device may specifically include the following modules: an acquisition module 701, a determination module 702, and a sending module 703, wherein:

[0216] The acquisition module 701 is used to acquire the data upload bandwidth required to receive the service data packet, wherein the service data packet is sent by the sending device;

[0217] The determining module 702 is used to determine the target 5G network card identifier and the target 4G network card identifier required for transmitting service data packets based on the data upload bandwidth, the stable transmission bandwidth of the 5G network card and the stable transmission bandwidth of the 4G network card. The stable transmission bandwidth of the 5G network card and the stable transmission bandwidth of the 4G network card are the transmission bandwidths obtained when the packet loss rate is less than a first preset value.

[0218] The sending module 703 is used to send service data packets to the server device through the 5G network card corresponding to the target 5G network card identifier and the 4G network card corresponding to the target 4G network card identifier.

[0219] The service data transmission device provided in this embodiment of the invention determines the data upload bandwidth required to send service data packets; based on the data upload bandwidth, the stable transmission bandwidth of the 5G network card, and the stable transmission bandwidth of the 4G network card, it determines the target 5G network card identifier and the target 4G network card identifier required for transmitting the service data packets. The stable transmission bandwidth of the 5G network card and the stable transmission bandwidth of the 4G network card are obtained when the packet loss rate is less than a first preset value; the service data packets are sent to the server device through the 5G network card corresponding to the target 5G network card identifier and the 4G network card corresponding to the target 4G network card identifier. Thus, even in situations with poor signal strength, data is transmitted simultaneously through both the 5G and 4G network cards, meeting the requirements for stable data transmission.

[0220] Another embodiment of the present invention further provides a description of the business data transmission device provided in the above embodiments.

[0221] Optionally, the device further includes a first computing module, the first computing module being used for:

[0222] Test data packets are sent to the server device via 5G and 4G network cards respectively, so that the server device can determine the transmission bandwidth and packet loss rate based on the timestamp and sequence number of the received test data packets. If the packet loss rate is less than a first preset value, the transmission bandwidth corresponding to the packet loss rate is determined as the stable transmission bandwidth. The test data packets include network card identifier, timestamp, number of sub-test packets and sequence number of sub-test packets.

[0223] Receive stable transmission bandwidth returned by the server device.

[0224] Optionally, the device further includes a first computing module, the first computing module being used for:

[0225] Test data packets are sent to the server device via 5G and 4G network cards respectively, so that the server device can determine the transmission bandwidth and packet loss rate based on the timestamp and sequence number of the received test data packets. If the packet loss rate is less than a first preset value, the transmission bandwidth corresponding to the packet loss rate is determined as the stable transmission bandwidth. The test data packets include network card identifier, timestamp, number of sub-test packets and sequence number of sub-test packets.

[0226] Receive stable transmission bandwidth returned by the server device.

[0227] Optionally, the server device includes a second computing module, which is used for:

[0228] The transmission bandwidth for transmitting the test data packet is determined based on the size of the test data packet and the time consumed, wherein the time consumed is determined based on the sending timestamp and the receiving timestamp.

[0229] Determine the number of missing sub-test packages based on their sequence numbers;

[0230] The packet loss rate is calculated based on the number of lost sub-test packets and the total number of sub-test packets.

[0231] Optionally, a module is defined for:

[0232] Given a target 5G network card identifier, if the stable transmission bandwidth of the 5G network card is less than the data upload bandwidth, the first bandwidth difference is compared with the stable transmission bandwidth of m 4G network cards. The first bandwidth difference is the absolute value of the difference between the stable transmission bandwidth and the data upload bandwidth of the 5G network card, and m is a natural number greater than 0.

[0233] Based on the comparison results, one or more target 4G network card identifiers are determined for transmitting service data packets, so that the 5G network card with the target 5G network card identifier and the 4G network card with the target 4G network card identifier meet the bandwidth requirements for transmitting service data packets.

[0234] Optionally, the determination module is used for:

[0235] Among the stable transmission bandwidths of m 4G network cards, the stable transmission bandwidth of the 4G network card with the largest value is determined as the first stable transmission bandwidth.

[0236] If the first stable transmission bandwidth is greater than or equal to the first bandwidth difference, then at least the identifier of the 4G network card with the first stable transmission bandwidth is determined as the target 4G network card identifier.

[0237] If the first stable transmission bandwidth is less than the first bandwidth difference, then multiple target 4G network card identifiers are determined among the m 4G network cards, so that the 5G network card with the target 5G network card identifier and the multiple target 4G network card identifiers meet the bandwidth requirements for transmitting service data packets.

[0238] Optionally, the determination module is used for:

[0239] The first percentage is determined based on the first stable transmission bandwidth and the first bandwidth difference;

[0240] If the first percentage is greater than or equal to the first preset value, then the 4G network card identifier corresponding to the first stable transmission bandwidth is determined as the target 4G network card identifier.

[0241] If the first percentage is less than the first preset value, then among the remaining m-1 4G network cards' stable transmission bandwidth, the stable transmission bandwidth of the 4G network card with the largest value is determined as the second stable transmission bandwidth.

[0242] The second percentage is determined based on the difference between the second stable transmission bandwidth and the second bandwidth;

[0243] If the second percentage is greater than or equal to the second preset value, then the 4G network card identifier corresponding to the second stable transmission bandwidth will also be determined as the target 4G network card identifier.

[0244] If the second percentage is less than the second preset value, then among the remaining m-2 4G network cards' stable transmission bandwidth, the stable transmission bandwidth of the 4G network card with the largest value is determined as the third stable transmission bandwidth, and so on, and one or more target 4G network card identifiers are determined. The second bandwidth difference is based on the absolute value of the difference between the first bandwidth difference and the second stable transmission bandwidth.

[0245] Optionally, the determination module is used for:

[0246] The 4G network card identifier corresponding to the first stable transmission bandwidth is determined as the target 4G network card identifier, and the stable transmission bandwidth of the 4G network card with the largest value among the remaining m-1 4G network cards is determined as the second stable transmission bandwidth.

[0247] If the second stable transmission bandwidth is greater than or equal to the second bandwidth difference, then the 4G network card identifier corresponding to the second stable transmission bandwidth will also be determined as the target 4G network card identifier.

[0248] If the second stable transmission bandwidth is less than the second bandwidth difference, then among the remaining m-2 4G network cards' stable transmission bandwidths, the stable transmission bandwidth of the 4G network card with the largest value is determined as the third stable transmission bandwidth, and so on, to determine one or more target 4G network card identifiers. The second bandwidth difference is the absolute value of the difference between the first bandwidth difference and the second stable transmission bandwidth.

[0249] Optionally, the sending module is used for:

[0250] The packet splitting ratio is determined based on the ratio of the stable transmission bandwidth corresponding to the target 5G network card identifier to the stable transmission bandwidth of the target 4G network card identifier.

[0251] Based on the data packet splitting ratio, the service data packet is split to obtain the first sub-service data packet corresponding to the target 5G network card identifier and the second sub-service data packet corresponding to the target 4G network card identifier.

[0252] The first sub-service data packet is sent to the server device through the 5G network card corresponding to the target 5G network card identifier;

[0253] The second sub-service data packet is sent to the server device through the 4G network card corresponding to the target 4G network card identifier.

[0254] Optionally, the sending module is used for:

[0255] The first sub-service data packet is encapsulated according to the network interface data protocol and sent to the server device through the 5G network card corresponding to the target 5G network card identifier. The network interface data protocol is obtained by parsing the service data packet, and the network interface data protocol type includes at least one of HTTP, TCP or UDP.

[0256] Correspondingly,

[0257] The second sub-service data packet is sent to the server device via the 4G network card corresponding to the target 4G network card identifier, including:

[0258] The second sub-service data packet is encapsulated according to the network interface data protocol and sent to the server device through the 4G network card corresponding to the target 4G network card identifier. The network interface data protocol is obtained by parsing the service data packet, and the network interface data protocol type includes at least one of HTTP, TCP or UDP.

[0259] It should be noted that each of the implementable methods in this embodiment can be implemented individually or in any combination without conflict. This application does not limit this.

[0260] As the device embodiment is basically similar to the method embodiment, the description is relatively simple, and relevant parts can be found in the description of the method embodiment.

[0261] The service data transmission device provided in this embodiment of the invention determines the data upload bandwidth required to send service data packets; based on the data upload bandwidth, the stable transmission bandwidth of the 5G network card, and the stable transmission bandwidth of the 4G network card, it determines the target 5G network card identifier and the target 4G network card identifier required for transmitting the service data packets. The stable transmission bandwidth of the 5G network card and the stable transmission bandwidth of the 4G network card are obtained when the packet loss rate is less than a first preset value; the service data packets are sent to the server device through the 5G network card corresponding to the target 5G network card identifier and the 4G network card corresponding to the target 4G network card identifier. Thus, even in situations with poor signal strength, data is transmitted simultaneously through both the 5G and 4G network cards, meeting the requirements for stable data transmission.

[0262] In another embodiment of the present invention, a terminal device is provided for executing the service data transmission method provided in the above embodiments.

[0263] Figure 8 This is a schematic diagram of the structure of a terminal device according to the present invention, such as... Figure 8 As shown, the terminal device includes: at least one processor 801 and a memory 802;

[0264] The memory stores a computer program; at least one processor executes the computer program stored in the memory to implement the business data transmission method provided in the above embodiments.

[0265] The terminal device provided in this embodiment determines the data upload bandwidth required to send service data packets. Based on the data upload bandwidth, the stable transmission bandwidth of the 5G network card, and the stable transmission bandwidth of the 4G network card, it determines the target 5G network card identifier and the target 4G network card identifier required to transmit the service data packets. The stable transmission bandwidth of the 5G network card and the stable transmission bandwidth of the 4G network card are the transmission bandwidths obtained when the packet loss rate is less than a first preset value. The service data packets are sent to the server device through the 5G network card corresponding to the target 5G network card identifier and the 4G network card corresponding to the target 4G network card identifier. In this way, even when the signal is poor, data is transmitted simultaneously through the 5G network card and the 4G network card, meeting the requirements for stable data transmission.

[0266] Another embodiment of this application provides a computer-readable storage medium storing a computer program, which, when executed, implements the business data transmission method provided in any of the above embodiments.

[0267] According to the computer-readable storage medium of this embodiment, the data upload bandwidth required for sending service data packets is determined; based on the data upload bandwidth, the stable transmission bandwidth of the 5G network card, and the stable transmission bandwidth of the 4G network card, the target 5G network card identifier and the target 4G network card identifier required for transmitting service data packets are determined, wherein the stable transmission bandwidth of the 5G network card and the stable transmission bandwidth of the 4G network card are the transmission bandwidths obtained when the packet loss rate is less than a first preset value; the service data packets are sent to the server device through the 5G network card corresponding to the target 5G network card identifier and the 4G network card corresponding to the target 4G network card identifier. In this way, even when the signal is poor, data is transmitted simultaneously through the 5G network card and the 4G network card, thus meeting the requirements for stable data transmission.

[0268] The various embodiments in this specification are described in a progressive manner, with each embodiment focusing on the differences from other embodiments. The same or similar parts between the various embodiments can be referred to each other.

[0269] Those skilled in the art will understand that embodiments of the present invention can be provided as methods, apparatus, or computer program products. Therefore, embodiments of the present invention can take the form of entirely hardware embodiments, entirely software embodiments, or embodiments combining software and hardware aspects. Furthermore, embodiments of the present invention can take the form of computer program products implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.

[0270] Embodiments of the present invention are described with reference to flowchart illustrations and / or block diagrams of methods, electronic devices (systems), and computer program products according to embodiments of the invention. It will be understood that each block of the flowchart illustrations and / or block diagrams, and combinations of blocks in the flowchart illustrations and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, special-purpose computer, embedded processor, or other programmable data processing electronic device to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing electronic device, generate instructions for implementing the flowchart illustrations. Figure 1 One or more processes and / or boxes Figure 1 A device that provides the functions specified in one or more boxes.

[0271] These computer program instructions may also be stored in a computer-readable storage medium that can direct a computer or other programmable data processing electronic device to operate in a particular manner, such that the instructions stored in the computer-readable storage medium produce an article of manufacture including instruction means, which are implemented in a process Figure 1 One or more processes and / or boxes Figure 1 The function specified in one or more boxes.

[0272] These computer program instructions can also be loaded onto a computer or other programmable data processing electronic device to cause a series of operational steps to be performed on the computer or other programmable electronic device to produce a computer-implemented process, thereby providing instructions that execute on the computer or other programmable electronic device for implementing the process. Figure 1 One or more processes and / or boxes Figure 1 The steps of the function specified in one or more boxes.

[0273] Although preferred embodiments of the present invention have been described, those skilled in the art, upon learning the basic inventive concept, can make other changes and modifications to these embodiments. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments as well as all changes and modifications falling within the scope of the embodiments of the present invention.

[0274] Finally, it should be noted that in this document, relational terms such as "first" and "second" are used only to distinguish one entity or operation from another, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Furthermore, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or electronic device that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or electronic device. Without further limitations, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or electronic device that includes the element.

[0275] The present invention has provided a detailed description of a method and apparatus for transmitting business data. Specific examples have been used to illustrate the principles and implementation methods of the present invention. The description of the above embodiments is only for the purpose of helping to understand the method and core ideas of the present invention. At the same time, those skilled in the art will know that there will be changes in the specific implementation methods and application scope based on the ideas of the present invention. Therefore, the content of this specification should not be construed as a limitation of the present invention.

Claims

1. A method for transmitting business data, characterized in that, The method includes: Determine the data upload bandwidth required to send business data packets; Based on the data upload bandwidth, the stable transmission bandwidth of the 5G network card, and the stable transmission bandwidth of the 4G network card, the target 5G network card identifier and the target 4G network card identifier required for transmitting the service data packet are determined. The stable transmission bandwidth of the 5G network card and the stable transmission bandwidth of the 4G network card are the transmission bandwidths obtained when the packet loss rate is less than a first preset value. The service data packet is sent to the server device through the 5G network card corresponding to the target 5G network card identifier and the 4G network card corresponding to the target 4G network card identifier. The step of determining the target 5G network card identifier and target 4G network card identifier required for transmitting the service data packet based on the data upload bandwidth, the stable transmission bandwidth of the 5G network card, and the stable transmission bandwidth of the 4G network card includes: If a target 5G network card identifier is determined, and the stable transmission bandwidth of the 5G network card is less than the data upload bandwidth, then a first bandwidth difference is compared with the stable transmission bandwidth of m 4G network cards, wherein the first bandwidth difference is the absolute value of the difference between the stable transmission bandwidth of the 5G network card and the data upload bandwidth, and m is a natural number greater than 0. Based on the comparison results, one or more of the target 4G network card identifiers required for transmitting the service data packets are determined, so that the 5G network card of the target 5G network card identifier and the 4G network card of the target 4G network card identifier meet the bandwidth requirements for transmitting the service data packets.

2. The method according to claim 1, characterized in that, Before determining the data upload bandwidth required to send the service data packet, the method further includes: Test data packets are sent to the server device via 5G and 4G network cards respectively, so that the server device can determine the transmission bandwidth and packet loss rate based on the timestamp and sequence number of the received test data packets. If the packet loss rate is less than the first preset value, the transmission bandwidth corresponding to the packet loss rate is determined as the stable transmission bandwidth. The test data packets include network card identifier, timestamp, number of sub-test packets and sequence number of sub-test packets. Receive the stable transmission bandwidth returned by the server device.

3. The method according to claim 2, characterized in that, The server device determines the transmission bandwidth and packet loss rate based on the timestamp and sequence number of the received test data packets, including: The server device determines the transmission bandwidth for transmitting the test data packet based on the size of the test data packet and the time consumed, wherein the time consumed is determined based on the sending timestamp and the receiving timestamp. The server-side device determines the number of lost sub-test packets based on the sequence number of the sub-test packets; The server-side device calculates the packet loss rate based on the number of lost sub-test packets and the number of sub-test packets.

4. The method according to claim 1, characterized in that, The step of determining one or more target 4G network card identifiers required for transmitting the service data packet based on the comparison result includes: Among the stable transmission bandwidths of m 4G network cards, the stable transmission bandwidth of the 4G network card with the largest value is determined as the first stable transmission bandwidth. If the first stable transmission bandwidth is greater than or equal to the first bandwidth difference, then at least the identifier of the 4G network card with the first stable transmission bandwidth is determined as the identifier of the target 4G network card. If the first stable transmission bandwidth is less than the first bandwidth difference, then multiple target 4G network card identifiers are determined among the m 4G network cards, so that the 5G network card of the target 5G network card identifier and the multiple target 4G network card identifiers meet the bandwidth requirements for transmitting the service data packets.

5. The method according to claim 4, characterized in that, If the first stable transmission bandwidth is greater than or equal to the first bandwidth difference, then at least the identifier of the 4G network card with the maximum value is determined as the target 4G network card identifier, including: The first percentage is determined based on the first stable transmission bandwidth and the first bandwidth difference; If the first percentage is greater than or equal to the first preset value, then the 4G network card identifier corresponding to the first stable transmission bandwidth is determined as the target 4G network card identifier. If the first percentage is less than the first preset value, then among the remaining m-1 4G network cards' stable transmission bandwidth, the stable transmission bandwidth of the 4G network card with the largest value is determined as the second stable transmission bandwidth. The second percentage is determined based on the difference between the second stable transmission bandwidth and the second bandwidth; If the second percentage is greater than or equal to the second preset value, then the 4G network card identifier corresponding to the second stable transmission bandwidth will also be determined as the target 4G network card identifier. If the second percentage is less than the second preset value, then among the remaining m-2 4G network cards' stable transmission bandwidth, the stable transmission bandwidth of the 4G network card with the largest value is determined as the third stable transmission bandwidth, and so on, and one or more target 4G network card identifiers are determined. The second bandwidth difference is based on the absolute value of the difference between the first bandwidth difference and the second stable transmission bandwidth.

6. The method according to claim 4, characterized in that, If the first stable transmission bandwidth is less than the first bandwidth difference, then determining multiple target 4G network card identifiers among the m 4G network cards includes: The 4G network card identifier corresponding to the first stable transmission bandwidth is determined as the target 4G network card identifier, and the stable transmission bandwidth of the 4G network card with the largest value among the remaining m-1 4G network cards is determined as the second stable transmission bandwidth. If the second stable transmission bandwidth is greater than or equal to the second bandwidth difference, then the 4G network card identifier corresponding to the second stable transmission bandwidth will also be determined as the target 4G network card identifier. If the second stable transmission bandwidth is less than the second bandwidth difference, then among the remaining m-2 4G network cards' stable transmission bandwidths, the stable transmission bandwidth of the 4G network card with the largest value is determined as the third stable transmission bandwidth, and so on, to determine one or more target 4G network card identifiers. The second bandwidth difference is the absolute value of the difference between the first bandwidth difference and the second stable transmission bandwidth.

7. The method according to claim 1, characterized in that, The step of sending the service data packet to the server device via the 5G network card corresponding to the target 5G network card identifier and the 4G network card corresponding to the target 4G network card identifier includes: The data packet splitting ratio is determined based on the ratio of the stable transmission bandwidth corresponding to the target 5G network card identifier to the stable transmission bandwidth of the target 4G network card identifier. According to the data packet splitting ratio, the service data packet is split to obtain a first sub-service data packet corresponding to the target 5G network card identifier and a second sub-service data packet corresponding to the target 4G network card identifier; The first sub-service data packet is sent to the server device through the 5G network card corresponding to the target 5G network card identifier; The second sub-service data packet is sent to the server device through the 4G network card corresponding to the target 4G network card identifier.

8. The method according to claim 7, characterized in that, The step of sending the first sub-service data packet to the server device through the 5G network card corresponding to the target 5G network card identifier includes: The first sub-service data packet is encapsulated according to the network interface data protocol and sent to the server device through the 5G network card corresponding to the target 5G network card identifier. The network interface data protocol is obtained by parsing the service data packet, and the network interface data protocol type includes at least one of HTTP, TCP or UDP. Correspondingly, The step of sending the second sub-service data packet to the server device through the 4G network card corresponding to the target 4G network card identifier includes: The second sub-service data packet is encapsulated according to the network interface data protocol and sent to the server device through the 4G network card corresponding to the target 4G network card identifier. The network interface data protocol is obtained by parsing the service data packet, and the network interface data protocol type includes at least one of HTTP, TCP or UDP.

9. A business data transmission device, characterized in that, The device includes: The acquisition module is used to determine the data upload bandwidth required to send business data packets; The determination module is used to determine the target 5G network card identifier and the target 4G network card identifier required for transmitting the service data packet based on the data upload bandwidth, the stable transmission bandwidth of the 5G network card and the stable transmission bandwidth of the 4G network card. The stable transmission bandwidth of the 5G network card and the stable transmission bandwidth of the 4G network card are the transmission bandwidths obtained when the packet loss rate is less than a first preset value. The sending module is used to send the service data packet to the server device through the 5G network card corresponding to the target 5G network card identifier and the 4G network card corresponding to the target 4G network card identifier; The determining module is used to, when determining a target 5G network card identifier, if the stable transmission bandwidth of the 5G network card is less than the data upload bandwidth, compare a first bandwidth difference with the stable transmission bandwidth of m 4G network cards, wherein the first bandwidth difference is the absolute value of the difference between the stable transmission bandwidth of the 5G network card and the data upload bandwidth, and m is a natural number greater than 0. Based on the comparison results, one or more of the target 4G network card identifiers required for transmitting the service data packets are determined, so that the 5G network card of the target 5G network card identifier and the 4G network card of the target 4G network card identifier meet the bandwidth requirements for transmitting the service data packets.

10. A terminal device, characterized in that, include: At least one processor and memory; The memory stores computer programs; The at least one processor executes the computer program stored in the memory to implement the method for transmitting business data according to any one of claims 1-8.

11. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a computer program that, when executed, implements the method for transmitting business data as described in any one of claims 1-8.

Citation Information

Patent Citations

  • Heterogeneous network data parallel transmission system and method

    CN105722152A

  • Multilink bandwidth allocation method and device for a mobile network based on signal strength

    US20170127408A1