Method, device, equipment and medium for sending service data packets

By dividing service data packets into important and non-important sets in multi-card aggregation technology, and building a linear planning model to minimize the charges for non-important data packets, the problem of high communication costs in multi-card aggregation technology is solved, and communication costs are reduced under the premise of ensuring the rate.

CN116708213BActive Publication Date: 2025-09-02INDUSTRIAL AND COMMERCIAL BANK OF CHINA
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202310816038.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-07-04
Publication Date
2025-09-02
Estimated Expiration
2043-07-04

AI Technical Summary

Technical Problem

When sending data packets, the existing multi-card aggregation technology aims to maximize the rate of sending data packets, resulting in higher communication costs.

Method used

By obtaining the tariff balance, communication rate upper limit value and unit traffic charge of each SIM card, the service data packets are divided into important and non-important sets, a linear planning model is built to minimize the tariff sum of the sets of non-important data packets, and the model is solved to determine the traffic value of each SIM card, priority is given to sending important data packets, and data packets are sent using the corresponding traffic.

Benefits of technology

While ensuring the packet transmission rate, the communication cost is effectively reduced.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116708213B_ABST
    Figure CN116708213B_ABST
Patent Text Reader

Abstract

The present application provides a method, device, equipment and medium for sending business data packets. In this method, when a business data packet needs to be sent, the tariff balance, communication rate upper limit, and unit traffic fee of each SIM card are obtained, and then the business data packets are divided into an important data packet set or a non-important data packet set; then the traffic value required to send all business data packets in the important data packet set and the non-important data packet set is calculated, and a linear programming model is constructed. After solving the linear programming model, the traffic value of each SIM card for sending business data packets in the non-important data packet set is obtained, and finally the business data packet is sent according to the determined traffic value. This solution can effectively reduce communication costs by constructing and solving a linear programming model whose objective function is to minimize the sum of the tariffs of all SIM cards sending business data packets in the non-important data packet set.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of financial technology or other related fields, and in particular to a method, device, equipment and medium for sending business data packets. Background Art

[0002] With the development of technology, users are no longer limited to fixed locations for handling business. Through multi-card aggregation technology, business handling, that is, the sending of business data packets, can be achieved in scenarios without wired networks and Wireless Fidelity (WiFi).

[0003] In the prior art, a service terminal usually has multiple Subscriber Identity Module (SIM) cards. By simultaneously accessing the mobile network channels of multiple telecom operators, the total bandwidth available to the service terminal is increased, thereby improving service processing speed.

[0004] However, the current multi-card aggregation technology aims to maximize the rate at which data packets are sent, which results in higher communication costs. Summary of the Invention

[0005] The embodiments of the present application provide a method, apparatus, device and medium for sending service data packets, which are used to solve the problem that the existing multi-card aggregation technology aims to maximize the rate at which data packets are sent, resulting in high communication costs.

[0006] In a first aspect, an embodiment of the present application provides a method for sending a service data packet, comprising:

[0007] Obtain the balance of each subscriber identity module SIM card, as well as the communication rate limit and unit traffic fee of each SIM card;

[0008] For each service data packet that needs to be sent, classify the service data packet into an important data packet set or a non-important data packet set according to the importance identifier of the service data packet;

[0009] Calculating a first flow rate value required to send all service data packets in the important data packet set and a second flow rate value required to send all service data packets in the non-important data packet set;

[0010] A linear programming model is constructed based on a preset sending cycle duration, a preset communication rate lower limit threshold, the first flow value, the second flow value, the tariff balance of each SIM card, the unit flow fee, and the communication rate upper limit, wherein the decision variable of the linear programming model is the third flow value of each SIM card used to send the service data packets in the non-important data packet set, and the objective function of the linear programming model is to minimize the sum of the tariffs of all SIM cards for sending the service data packets in the non-important data packet set;

[0011] Solving the linear programming model to obtain the third traffic value of each SIM card;

[0012] Based on the first traffic value, the service data packets in the important data packet set are sent; based on the third traffic value of each SIM card, the service data packets in the non-important data packet set are sent.

[0013] In a specific embodiment, the objective function of the linear programming model is Where K represents the total number of SIMs, c k represents the unit traffic cost of the kth SIM card, represents the third traffic value of the kth SIM card;

[0014] The constraints of the linear programming model include:

[0015]

[0016] Wherein, D represents the second flow value, T represents the preset sending cycle length, E represents the preset communication rate lower limit threshold, η k represents the upper limit of the communication rate of the kth SIM card, β represents the first traffic value, δ k Indicates the balance of the k-th SIM card.

[0017] In a specific implementation, obtaining the charge balance of each subscriber identity module SIM card includes:

[0018] If the SIM card fee balance is not stored, obtain the fee balance of each SIM card through the operator server;

[0019] If the SIM card fee balance has been stored, the fee balance of each stored SIM card is obtained.

[0020] In a specific implementation, obtaining the charge balance of each subscriber identity module SIM card includes:

[0021] Obtain the balance of each SIM card through the operator's server.

[0022] In a specific embodiment, obtaining the upper limit of the communication rate of each SIM card includes:

[0023] Get the current signal strength value of each SIM card;

[0024] Using the formula k=1,...,K, calculate the upper limit of the communication rate of each SIM card, where K represents the total number of SIM cards, η k Indicates the upper limit of the communication rate of the kth SIM card, Indicates the basic communication rate of the k-th SIM card obtained in advance, Indicates the pre-obtained lower threshold of the signal strength of the k-th SIM card, Indicates the pre-obtained basic signal strength value of the kth SIM card, μ k Indicates the current signal strength value of the kth SIM card.

[0025] In a specific embodiment, obtaining the upper limit of the communication rate of each SIM card includes:

[0026] Perform communication rate detection on each SIM card to obtain the communication rate upper limit value of each SIM card.

[0027] In a specific embodiment, the sending of the service data packets in the important data packet set based on the first traffic value, and the sending of the service data packets in the non-important data packet set based on the third traffic value of each SIM card, includes:

[0028] For each SIM card, use the traffic corresponding to the first traffic value of the SIM card to send the service data packet in the important data packet set data packet;

[0029] For each service data packet in the non-important data packet set, determining a target SIM card to be used for sending the service data packet according to the third traffic value of each SIM card;

[0030] The service data packet is sent using the traffic corresponding to the third traffic value of the target SIM card.

[0031] In a specific embodiment, after sending the service data packets in the important data packet set based on the first traffic value and sending the service data packets in the non-important data packet set based on the third traffic value of each SIM card, the method further includes:

[0032] Using the formula k=1,...,K, calculate and store the updated tariff balance of each SIM card, where K represents the total number of SIM cards. represents the updated fee balance of the kth SIM card, δ k represents the charge balance before the kth SIM card is updated, c k represents the unit traffic cost of the kth SIM card, represents the third traffic value of the kth SIM card, and β represents the first traffic value.

[0033] In a specific embodiment, before obtaining the charge balance of each subscriber identity module SIM card and obtaining the communication rate upper limit and unit flow fee of each SIM card, the method further includes:

[0034] Perform communication detection on each SIM card to obtain the basic communication rate, signal strength lower limit threshold, and basic signal strength value of each SIM card.

[0035] In a second aspect, an embodiment of the present application provides a device for sending a service data packet, including:

[0036] The acquisition module is used to obtain the balance of each user identity module SIM card, as well as the communication rate upper limit and unit flow fee of each SIM card;

[0037] Processing module for:

[0038] For each service data packet that needs to be sent, classify the service data packet into an important data packet set or a non-important data packet set according to the importance identifier of the service data packet;

[0039] Calculating a first flow rate value required to send all service data packets in the important data packet set and a second flow rate value required to send all service data packets in the non-important data packet set;

[0040] A linear programming model is constructed based on a preset sending cycle duration, a preset communication rate lower limit threshold, the first flow value, the second flow value, the tariff balance of each SIM card, the unit flow fee, and the communication rate upper limit, wherein the decision variable of the linear programming model is the third flow value of each SIM card used to send the service data packets in the non-important data packet set, and the objective function of the linear programming model is to minimize the sum of the tariffs of all SIM cards for sending the service data packets in the non-important data packet set;

[0041] Solving the linear programming model to obtain the third traffic value of each SIM card;

[0042] The sending module is configured to send the service data packets in the important data packet set based on the first traffic value, and send the service data packets in the non-important data packet set based on the third traffic value of each SIM card.

[0043] In a third aspect, an embodiment of the present application provides an electronic device, including:

[0044] Processor, memory, communication interface;

[0045] The memory is used to store executable instructions of the processor;

[0046] The processor is configured to execute the service data packet sending method described in any one of the first aspects by executing the executable instructions.

[0047] In a fourth aspect, an embodiment of the present application provides a readable storage medium having a computer program stored thereon, and when the computer program is executed by a processor, the method for sending a service data packet described in any one of the first aspects is implemented.

[0048] In a fifth aspect, an embodiment of the present application provides a computer program product, including a computer program, which, when executed by a processor, is used to implement the service data packet sending method described in any one of the first aspects.

[0049] The service data packet sending method, device, equipment and medium provided in the embodiments of the present application obtain the tariff balance, communication rate upper limit and unit traffic fee of each SIM card when it is necessary to send a service data packet, and then divide the service data packets into an important data packet set or a non-important data packet set; and then calculate the traffic value required to send all service data packets in the important data packet set and the non-important data packet set, and then construct a linear programming model. After solving the linear programming model, the traffic value of each SIM card for sending the service data packets in the non-important data packet set is obtained, and finally the service data packet is sent according to the determined traffic value. This solution can effectively reduce communication costs by constructing and solving a linear programming model whose objective function is to minimize the sum of the tariffs of all SIM cards sending service data packets in the non-important data packet set. BRIEF DESCRIPTION OF THE DRAWINGS

[0050] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, a brief introduction will be given below to the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.

[0051] Figure 1 A flowchart of a first embodiment of a method for sending a service data packet provided by this application;

[0052] Figure 2 A flowchart of a second embodiment of the method for sending a service data packet provided by this application;

[0053] Figure 3 Flow chart of obtaining SIM card fee balance provided for this application;

[0054] Figure 4 A schematic diagram of the structure of an embodiment of a device for sending a service data packet provided by this application;

[0055] Figure 5 This is a schematic diagram of the structure of an electronic device provided in this application. DETAILED DESCRIPTION

[0056] To make the purpose, technical solutions, and advantages of the embodiments of the present application more clear, the technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments made by ordinary technicians in this field based on the inspiration of these embodiments fall within the scope of protection of this application.

[0057] The terms "first", "second", "third", "fourth", etc. (if any) in the specification and claims of the present application and the above-mentioned drawings are used to distinguish similar objects and are not necessarily used to describe a specific order or sequential order. It should be understood that the numbers used in this way are interchangeable where appropriate, so that the embodiments of the present application described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0058] With the advancement of technology, users are no longer limited to fixed locations when conducting business. Multi-SIM aggregation technology allows users to conduct business, and in other words, transmit business data packets, even without wired networks or wireless fidelity (Wi-Fi). Multi-SIM aggregation is a practical application of link aggregation technology. It allows a service terminal to access the Internet simultaneously using multiple Subscriber Identity Module (SIM) cards, thus overcoming the bandwidth limitations of a single SIM card and achieving higher total bandwidth.

[0059] Existing technology typically uses multiple SIM cards in a service terminal. By simultaneously accessing mobile network channels from multiple operators, the terminal's available bandwidth is increased, speeding up service processing. However, current multi-SIM aggregation technology aims to maximize the rate at which data packets are sent, which can lead to higher communication costs.

[0060] In response to the problems existing in the prior art, the inventors discovered during their research on the method for sending service data packets that, while ensuring that the rate at which data packets are sent meets the basic requirements, it is also possible to reduce tariffs, that is, to reduce communication costs. When it is necessary to send service data packets, the tariff balance, communication rate upper limit, and unit traffic fee of each SIM card are obtained, and then the service data packets are divided into an important data packet set or a non-important data packet set; then, after calculating the traffic value required to send all service data packets in the important data packet set and the non-important data packet set, a linear programming model is constructed. The objective function of the linear programming model is to minimize the sum of the tariffs of all SIM cards sending service data packets in the non-important data packet set. After solving the linear programming model, the traffic value of each SIM card for sending service data packets in the non-important data packet set is obtained. Finally, the service data packets are sent according to the determined traffic value, which can effectively reduce communication costs. Based on the above-mentioned inventive concept, the service data packet sending scheme in this application is designed.

[0061] The executor of the service data packet sending method in this application is the service terminal. The service terminal can be a computer, or a smart phone, handheld terminal, or other device that can use multiple SIM cards. This application does not limit it and it can be determined according to actual conditions.

[0062] The following describes the application scenarios of the service data packet sending method provided by this application.

[0063] For example, in this application scenario, staff need to handle services for users outdoors. There is no wired network and WiFi in the outdoor environment. They intelligently use a service terminal to handle services for users. There are multiple SIM cards in the service terminal.

[0064] The service terminal sends a service data packet every preset transmission cycle, with multiple service data packets sent each time. When handling services for users, the service terminal sends service data packets to the service server. When sending service data packets, the service terminal first obtains the balance of each SIM card's tariff, the communication speed limit, and the unit data rate, and then classifies the service data packets into important or non-important data packets.

[0065] After calculating the first traffic value required to send all business data packets in the important data packet set and the second traffic value required to send all business data packets in the non-important data packet set, a linear programming model is constructed. The objective function of the linear programming model is to minimize the sum of the charges for all SIM cards to send business data packets in the non-important data packet set.

[0066] After solving the linear programming model, the third flow value of each SIM card used to send business data packets in the non-important data packet set is obtained. Finally, based on the first flow value, the business data packets in the important data packet set are sent, and based on the third flow value of each SIM card, the business data packets in the non-important data packet set are sent, thereby achieving the goal of reducing communication costs while completing the transmission of business data packets.

[0067] It should be noted that service terminals include, but are not limited to, devices that communicate via a data connection / network and / or via a wireless interface, such as devices for cellular networks, wireless local area networks (WLAN), digital television networks such as DVB-H networks, satellite networks, AM-FM broadcast transmitters; and / or Internet of Things (IoT) devices. Service terminals that are configured to communicate via a wireless interface may be referred to as "wireless communication terminals," "wireless terminals," or "mobile terminals." Examples of mobile terminals include, but are not limited to, satellite or cellular phones; Personal Communications System (PCS) terminals that can combine cellular radiotelephones with data processing, fax, and data communication capabilities; Personal Digital Assistants (PDAs) that can include radiotelephones, pagers, Internet / Intranet access, web browsers, notepads, calendars, and / or Global Positioning System (GPS) receivers; and conventional laptop and / or palmtop receivers or other electronic devices that include radiotelephone transceivers. It may refer to an access terminal, remote terminal, mobile device, user terminal, terminal, wireless communication device, user agent, or user device. The access terminal can be a cellular phone, a cordless phone, a Session Initiation Protocol (SIP) phone, a Wireless Local Loop (WLL) station, a PDA, a handheld device with wireless communication capabilities, a computing device or other processing device connected to a wireless modem, a vehicle-mounted device, a wearable device, a terminal device in a 5G network, a terminal device in a satellite network, or a terminal device in a future evolved PLMN, etc. This solution does not impose any restrictions on this.

[0068] It should be noted that the above scenario is only an example of an application scenario provided by an embodiment of the present application. The embodiment of the present application does not limit the actual form of the various devices included in the scenario, nor does it limit the interaction method between the devices. In the specific application of the solution, it can be set according to actual needs.

[0069] The technical solution of the present application is described in detail below through specific embodiments. It should be noted that the following specific embodiments can be combined with each other, and the same or similar concepts or processes may not be described in detail in some embodiments.

[0070] Figure 1 This is a flow chart of the first embodiment of the method for sending service data packets provided by the present application. The present application embodiment constructs and solves a linear programming model for the service terminal. The objective function of the linear programming model is to minimize the sum of the charges of all SIM cards sending service data packets in the non-important data packet set, so as to obtain the traffic value of each SIM card sending service data packets in the non-important data packet set, and then illustrate the situation of sending service data packets. The method in this embodiment can be implemented by software, hardware, or a combination of software and hardware. Figure 1 As shown, the service data packet sending method specifically includes the following steps:

[0071] S101: Obtain the balance of each SIM card's charges, as well as the upper limit of the communication rate and the unit flow charge of each SIM card.

[0072] When the staff uses the service terminal to handle business, the service terminal will send a service data packet once every preset sending cycle. The number of service data packets sent each time is multiple, and multiple SIM cards are installed in the service terminal.

[0073] In this step, when the service terminal needs to send a service data packet, in order to minimize the communication cost while ensuring the communication rate, the service terminal needs the tariff balance, communication rate upper limit, and unit traffic fee of each SIM card.

[0074] It should be noted that the preset sending period can be 0.1 seconds, 0.2 seconds, or 0.5 seconds, etc. The embodiment of the present application does not limit the preset sending period and can be set according to actual conditions.

[0075] S102: For each service data packet that needs to be sent, classify the service data packet into an important data packet set or a non-important data packet set according to an importance identifier of the service data packet.

[0076] In this step, when the service terminal needs to send a service data packet, it also needs to classify each service data packet to be sent into an important data packet set or a non-important data packet set according to the importance identifier of the service data packet.

[0077] Each service data packet's header includes an importance flag, which indicates whether the data packet is important. Data packets containing data such as service forms are considered important, and their importance flag indicates that the data packet is important, so they are classified as important data packets. Data packets containing data such as loading information are considered unimportant, and their importance flag indicates that the data packet is unimportant, so they are classified as unimportant data packets.

[0078] S103: Calculate a first flow rate value required to send all service data packets in the important data packet set and a second flow rate value required to send all service data packets in the non-important data packet set.

[0079] In this step, after dividing the service data packets, the service terminal calculates a first flow value required to send all service data packets in the important data packet set and a second flow value required to send all service data packets in the non-important data packet set.

[0080] The first flow value is equal to the sum of the occupied capacities of all service data packets in the important data packet set, and the second flow value is equal to the sum of the occupied capacities of all service data packets in the non-important data packet set.

[0081] It should be noted that the execution order of step S101 and step S102-step S103 can be to execute step S101 first and then execute step S102-step S103; it can also be to execute step S102-step S103 and then execute step S101; it can also be that step S101 and step S102-step S103 are executed at the same time. The embodiment of the present application does not limit the execution order of step S101 and step S102-step S103, and can be set according to actual conditions.

[0082] S104: Construct a linear programming model based on the preset sending cycle duration, the preset communication rate lower limit threshold, the first flow value, the second flow value, the fee balance of each SIM card, the unit flow fee, and the communication rate upper limit.

[0083] In this step, after obtaining the service charge balance, unit traffic fee, upper limit of the communication rate, and the first and second traffic values ​​for each SIM card, the service terminal constructs a linear programming model based on the preset transmission cycle duration, the preset lower limit of the communication rate, the first and second traffic values, the service charge balance, unit traffic fee, and upper limit of the communication rate for each SIM card. The decision variable of the linear programming model is the third traffic value used by each SIM card to send service data packets in the non-critical data packet set. The objective function of the linear programming model is to minimize the sum of the service charge for all SIM cards sending service data packets in the non-critical data packet set.

[0084] Specifically, the objective function of the linear programming model is Where K represents the total number of SIMs, c k represents the unit traffic cost of the kth SIM card, represents the third traffic value of the kth SIM card;

[0085] The constraints of the linear programming model include:

[0086]

[0087] Wherein, D represents the second flow value, T represents the preset sending cycle length, E represents the preset communication rate lower limit threshold, η k represents the upper limit of the communication rate of the kth SIM card, β represents the first flow value, δ k Indicates the balance of the k-th SIM card.

[0088] The first constraint condition indicates that the sum of the third traffic values ​​of all SIM cards needs to be greater than or equal to the second traffic value to ensure that all business data packets in the non-important data packet set can be sent. The second constraint condition indicates that the sum of the average communication rates of all SIM cards needs to be greater than or equal to the preset communication rate lower limit threshold to ensure that the communication rate of sending business data packets in the non-important data packet set will not be too low, thereby ensuring the communication speed. The third constraint condition indicates that the third traffic value of each SIM card is less than or equal to the difference between the traffic upper limit value of the SIM card and the first traffic value, ensuring that the traffic value of each SIM card used to send business data packets in the non-important data packet set cannot exceed the difference between the traffic upper limit value of the SIM card within the sending cycle and the first traffic value reserved for all business data packets in the important data packet set. The fourth constraint condition indicates that the current usage fee of each SIM card does not exceed the fee balance of the SIM card.

[0089] It should be noted that the preset communication rate lower limit threshold can be 114Kbps, 500Kbps, or 1000Kbps, etc. The embodiment of the present application does not limit the preset communication rate lower limit threshold, and it can be set according to actual conditions.

[0090] S105: Solve the linear programming model to obtain the third traffic value of each SIM card.

[0091] In this step, after the service terminal constructs a new planning model, it uses the simplex method to solve it to obtain the third traffic value of each SIM card.

[0092] S106: Based on the first traffic value, the service data packets in the important data packet set are sent; based on the third traffic value of each SIM card, the service data packets in the non-important data packet set are sent.

[0093] In this step, after obtaining the third traffic value, the service terminal prioritizes sending the service data packets in the important data packet set based on the first traffic value. That is, for each SIM card, the service terminal uses the traffic corresponding to the first traffic value of the SIM card to send the service data packets in the important data packet set. Furthermore, based on the third traffic value of each SIM card, the service terminal sends the service data packets in the non-important data packet set.

[0094] The service data packet sending method provided in this embodiment obtains the tariff balance, communication rate upper limit, and unit traffic fee of each SIM card when it is necessary to send a service data packet, and then divides the service data packets into an important data packet set or a non-important data packet set; and then calculates the traffic value required to send all service data packets in the important data packet set and the non-important data packet set, and then constructs a linear programming model. After solving the linear programming model, the traffic value of each SIM card for sending the service data packets in the non-important data packet set is obtained, and finally the service data packet is sent according to the determined traffic value. Compared with the prior art that only considers the rate of sending data packets, this solution constructs and solves the linear programming model. Since the objective function of the linear programming model is to minimize the sum of the tariffs of all SIM cards sending service data packets in the non-important data packet set, and the communication rate is considered in the constraints of the linear programming model, it is achieved while ensuring the communication rate. Reduce the communication cost.

[0095] Figure 2 This is a flow chart of the second embodiment of the method for sending a service data packet provided by this application. Based on the above embodiment, this embodiment of the application describes the situation where a service terminal sends a service data packet. Figure 2 As shown, the service data packet sending method specifically includes the following steps:

[0096] S201: For each SIM card, use the traffic corresponding to the first traffic value of the SIM card to send the service data packet in the important data packet set data packet.

[0097] In this step, the service data packets within the important data packet set are prioritized and must be sent using the data traffic of each SIM card. For each SIM card, the service terminal uses the data traffic corresponding to the SIM card's first data traffic value to transmit the service data packets within the important data packet set. To improve the reliability and response rate of the important service data packets, link diversity is used for redundant transmission. This means that the service data packets within the important data packet set are transmitted at different times and on different frequency bands.

[0098] S202: For each service data packet in the non-important data packet set, determine a target SIM card to be used for sending the service data packet according to the third traffic value of each SIM card.

[0099] S203: Send the service data packet using the traffic corresponding to the third traffic value of the target SIM card.

[0100] In the above steps, after the service terminal completes sending the service data packets in the important data packet set, it then determines, for each service data packet in the non-important data packet set, the target SIM card used to send the service data packet based on the third traffic value of each SIM card; the number of target SIM cards can be one or more.

[0101] For example, if a service data packet is 5M in size and one SIM card has a third data rate of 8M, that SIM card can be used as the target SIM card, and its third data rate can be updated to 3M. If a service data packet is 10M in size and the first SIM card has a third data rate of 7M and the second SIM card has a third data rate of 4M, both SIM cards can be used as the target SIM card, and the second SIM card's third data rate can be updated to 1M.

[0102] Then, the service data packet is sent using the traffic corresponding to the third traffic value of the target SIM card.

[0103] The service data packet transmission method provided in this embodiment prioritizes the transmission of service data packets within a critical data packet set and uses the data traffic of each SIM card to transmit the data. This ensures the successful transmission rate of service data packets within the critical data packet set. Furthermore, by using the data traffic corresponding to the third data traffic value of different SIM cards to transmit service data packets within the non-critical data packet set, communication costs can be effectively reduced.

[0104] Based on the above embodiment, the following describes how to obtain the charge balance of each SIM card.

[0105] There are two ways to obtain the balance of each SIM card.

[0106] In a first implementation, illustratively, Figure 3 The flowchart for obtaining the SIM card fee balance provided for this application is as follows: Figure 3 As shown, the process of obtaining the SIM card fee balance specifically includes the following steps:

[0107] S301: Determine whether the service terminal has stored the SIM card fee balance; if the service terminal has stored the SIM card fee balance, execute step S302; if the service terminal has not stored the SIM card fee balance, execute step S303.

[0108] S302: Obtain the charge balance of each SIM card through the operator server.

[0109] S303: Obtain the stored charge balance of each SIM card.

[0110] In the above steps, the service terminal needs to determine whether it has stored the SIM card fee balance. If the SIM card fee balance is not stored, it means that this solution is being implemented for the first time. Then, the service terminal obtains the fee balance of each SIM card through the operator server.

[0111] If the SIM card fee balance has been stored, it means that this solution is not executed for the first time, and then the fee balance of each stored SIM card is obtained.

[0112] In the second implementation, the balance of each SIM card can be obtained directly through the operator server. For each SIM card, a balance query request can be sent to the operator server corresponding to the SIM card, and the operator server will send the queried balance to the service terminal.

[0113] The service data packet sending method provided in this embodiment can save time and thus improve the efficiency of sending service data packets through the first implementation mode. The second implementation mode can improve the accuracy of the obtained tariff balance.

[0114] Based on the above embodiment, the following describes how to obtain the upper limit of the communication rate of each SIM card.

[0115] There are two ways to obtain the upper limit of the communication rate of each SIM card.

[0116] In the first implementation, the service terminal first obtains the current signal strength value of each SIM card;

[0117] Then use the formula Calculate the upper limit of the communication rate of each SIM card, where K represents the total number of SIM cards, and η k Indicates the upper limit of the communication rate of the kth SIM card, Indicates the basic communication rate of the k-th SIM card obtained in advance, Indicates the pre-obtained lower threshold of the signal strength of the k-th SIM card, Indicates the pre-obtained basic signal strength value of the kth SIM card, μ k Indicates the current signal strength value of the kth SIM card.

[0118] In the second implementation, the communication rate of each SIM card can be directly tested to obtain the upper limit of the communication rate of each SIM card.

[0119] The service data packet sending method provided in this embodiment can save time and reduce traffic overhead through the first implementation mode, thereby improving the efficiency of sending service data packets. The second implementation mode can improve the accuracy of the acquired communication rate upper limit value.

[0120] Based on the above embodiment, the following describes a case where the charge balance of each SIM card is obtained through the first implementation manner, and the service terminal updates the charge balance of each SIM card after sending the service data packet.

[0121] If the first implementation method is used to obtain the charge balance of each SIM card, the service terminal needs to update the charge balance of each SIM card after sending the service data packet.

[0122] Using the formula Calculate the updated tariff balance of each SIM card and store it, where K represents the total number of SIM cards. represents the updated fee balance of the kth SIM card, δ k represents the charge balance before the kth SIM card is updated, c k represents the unit traffic cost of the kth SIM card, represents the third traffic value of the kth SIM card, and β represents the first traffic value.

[0123] The service data packet sending method provided in this embodiment updates the tariff balance of each SIM card after the service terminal sends the service data packet, thereby ensuring that the service terminal can determine the third traffic value during the next service data packet sending process, and also improving the efficiency of sending data packets.

[0124] Based on the above embodiment, the following describes a case where the service terminal obtains the basic communication rate, signal strength lower limit threshold, and basic signal strength value of each SIM card before sending a service data packet for the first time, when obtaining the communication rate upper limit value of each SIM card through the first implementation method.

[0125] If the first implementation method is used to obtain the upper limit of the communication rate for each SIM card, the basic communication rate, lower signal strength threshold, and basic signal strength value of each SIM card are required. This requires the service terminal to perform communication detection on each SIM card before sending the first service data packet to obtain the basic communication rate, lower signal strength threshold, and basic signal strength value of each SIM card. This only needs to be obtained once and does not need to be obtained again in subsequent processes.

[0126] It should be noted that the location where the basic communication rate, signal strength lower limit threshold, and basic signal strength value of each SIM card are obtained is the same as the location where the service terminal sends the service data packet.

[0127] The service data packet sending method provided in this embodiment obtains the basic communication rate, signal strength lower limit threshold, and basic signal strength value of each SIM card by the service terminal before sending the service data packet for the first time. This ensures that the service terminal can determine the third traffic value during the next service data packet sending process, improves the efficiency of data packet sending, and reduces traffic overhead.

[0128] The following are device embodiments of the present application, which can be used to implement the method embodiments of the present application. For details not disclosed in the device embodiments of the present application, please refer to the method embodiments of the present application.

[0129] Figure 4 This is a schematic diagram of the structure of an embodiment of the service data packet sending device provided by this application; the device can be integrated into the service terminal in the above method embodiment, or can be implemented by the service terminal in the above method embodiment. Figure 4 As shown, the service data packet sending device 40 includes:

[0130] The acquisition module 41 is used to obtain the balance of each subscriber identity module SIM card, as well as the communication rate upper limit and unit flow fee of each SIM card;

[0131] The processing module 42 is configured to:

[0132] For each service data packet that needs to be sent, classify the service data packet into an important data packet set or a non-important data packet set according to the importance identifier of the service data packet;

[0133] Calculating a first flow rate value required to send all service data packets in the important data packet set and a second flow rate value required to send all service data packets in the non-important data packet set;

[0134] A linear programming model is constructed based on a preset sending cycle duration, a preset communication rate lower limit threshold, the first flow value, the second flow value, the tariff balance of each SIM card, the unit flow fee, and the communication rate upper limit, wherein the decision variable of the linear programming model is the third flow value of each SIM card used to send the service data packets in the non-important data packet set, and the objective function of the linear programming model is to minimize the sum of the tariffs of all SIM cards for sending the service data packets in the non-important data packet set;

[0135] Solving the linear programming model to obtain the third traffic value of each SIM card;

[0136] The sending module 43 is configured to send the service data packets in the important data packet set based on the first traffic value, and send the service data packets in the non-important data packet set based on the third traffic value of each SIM card.

[0137] Furthermore, the objective function of the linear programming model is Where K represents the total number of SIMs, c k represents the unit traffic cost of the kth SIM card, represents the third traffic value of the kth SIM card;

[0138] The constraints of the linear programming model include:

[0139]

[0140] Wherein, D represents the second flow value, T represents the preset sending cycle length, E represents the preset communication rate lower limit threshold, η k represents the upper limit of the communication rate of the kth SIM card, β represents the first traffic value, δ k Indicates the balance of the k-th SIM card.

[0141] Furthermore, the acquisition module 41 is specifically configured to:

[0142] If the SIM card fee balance is not stored, obtain the fee balance of each SIM card through the operator server;

[0143] If the SIM card fee balance has been stored, the fee balance of each stored SIM card is obtained.

[0144] Furthermore, the acquisition module 41 is further configured to:

[0145] Obtain the balance of each SIM card through the operator's server.

[0146] Furthermore, the acquisition module 41 is further configured to:

[0147] Get the current signal strength value of each SIM card;

[0148] Using the formula Calculate the upper limit of the communication rate of each SIM card, where K represents the total number of SIM cards, and η k Indicates the upper limit of the communication rate of the kth SIM card, Indicates the basic communication rate of the k-th SIM card obtained in advance, Indicates the pre-obtained lower threshold of the signal strength of the k-th SIM card, Indicates the pre-obtained basic signal strength value of the kth SIM card, μ k Indicates the current signal strength value of the kth SIM card.

[0149] Furthermore, the acquisition module 41 is further configured to:

[0150] Perform communication rate detection on each SIM card to obtain the communication rate upper limit value of each SIM card.

[0151] Furthermore, the sending module 43 is specifically configured to:

[0152] For each SIM card, use the traffic corresponding to the first traffic value of the SIM card to send the service data packet in the important data packet set data packet;

[0153] For each service data packet in the non-important data packet set, determining a target SIM card to be used for sending the service data packet according to the third traffic value of each SIM card;

[0154] The service data packet is sent using the traffic corresponding to the third traffic value of the target SIM card.

[0155] Further, after sending the service data packets in the important data packet set based on the first traffic value and sending the service data packets in the non-important data packet set based on the third traffic value of each SIM card, the processing module 42 is further used to:

[0156] Using the formula Calculate the updated tariff balance of each SIM card and store it, where K represents the total number of SIM cards. represents the updated fee balance of the kth SIM card, δ k represents the charge balance before the kth SIM card is updated, ck represents the unit traffic cost of the kth SIM card, represents the third traffic value of the kth SIM card, and β represents the first traffic value.

[0157] Furthermore, before obtaining the charge balance of each subscriber identity module SIM card, and obtaining the communication rate upper limit and unit flow fee of each SIM card, the obtaining module 41 is further used to:

[0158] Perform communication detection on each SIM card to obtain the basic communication rate, signal strength lower limit threshold, and basic signal strength value of each SIM card.

[0159] The service data packet sending device provided in this embodiment is used to execute the technical solution in any of the aforementioned method embodiments. Its implementation principle and technical effects are similar and will not be described in detail here.

[0160] Figure 5 This is a schematic diagram of the structure of an electronic device provided by this application. Figure 5 As shown, the electronic device 50 includes:

[0161] Processor 51, memory 52, and communication interface 53;

[0162] The memory 52 is used to store executable instructions of the processor 51;

[0163] The processor 51 is configured to execute the technical solution of the service terminal in any of the aforementioned method embodiments by executing the executable instructions.

[0164] Optionally, the memory 52 can be independent or integrated with the processor 51.

[0165] Optionally, when the memory 52 is a device independent of the processor 51, the electronic device 50 may further include:

[0166] The bus 54 , the memory 52 and the communication interface 53 are connected to the processor 51 via the bus 54 and communicate with each other. The communication interface 53 is used to communicate with other devices.

[0167] Optionally, the communication interface 53 may be implemented using a transceiver. The communication interface is used to enable communication between the database access device and other devices (e.g., a client, a read-write library, and a read-only library). The memory may include random access memory (RAM) and may also include non-volatile memory (non-volatile memory), such as at least one disk storage device.

[0168] Bus 54 may be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus. Buses can be categorized as address buses, data buses, and control buses. For ease of illustration, the figure uses only one thick line, but this does not imply that there is only one bus or only one type of bus.

[0169] The above-mentioned processor can be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it can also be a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, and discrete hardware components.

[0170] The electronic device is used to execute the technical solution of the service terminal in any of the aforementioned method embodiments, and its implementation principle and technical effects are similar and will not be repeated here.

[0171] An embodiment of the present application further provides a readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the technical solution provided by any of the aforementioned method embodiments.

[0172] An embodiment of the present application also provides a computer program product, including a computer program, which, when executed by a processor, is used to implement the technical solution provided by any of the aforementioned method embodiments.

[0173] Those skilled in the art will appreciate that all or part of the steps in the above-described method embodiments can be implemented using hardware associated with program instructions. The aforementioned program can be stored in a computer-readable storage medium. When executed, the program performs the steps of the above-described method embodiments. The aforementioned storage medium includes various media capable of storing program code, such as ROM, RAM, magnetic disks, or optical disks.

[0174] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or replace some or all of the technical features therein with equivalents. However, these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of the present application.

Claims

1. A method for sending a service data packet, characterized in that: include: Obtain the balance of each subscriber identity module SIM card, as well as the communication rate limit and unit traffic fee of each SIM card; For each service data packet that needs to be sent, classify the service data packet into an important data packet set or a non-important data packet set according to the importance identifier of the service data packet; Calculating a first flow rate value required to send all service data packets in the important data packet set and a second flow rate value required to send all service data packets in the non-important data packet set; A linear programming model is constructed based on a preset sending cycle duration, a preset communication rate lower limit threshold, the first flow value, the second flow value, the tariff balance of each SIM card, the unit flow fee, and the communication rate upper limit, wherein the decision variable of the linear programming model is the third flow value of each SIM card used to send the service data packets in the non-important data packet set, and the objective function of the linear programming model is to minimize the sum of the tariffs of all SIM cards for sending the service data packets in the non-important data packet set; Solving the linear programming model to obtain the third traffic value of each SIM card; Based on the first traffic value, the service data packets in the important data packet set are sent; based on the third traffic value of each SIM card, the service data packets in the non-important data packet set are sent.

2. The method according to claim 1, characterized in that The objective function of the linear programming model is Where K represents the total number of SIMs, c k represents the unit traffic cost of the kth SIM card, represents the third traffic value of the kth SIM card; The constraints of the linear programming model include: Wherein, D represents the second flow value, T represents the preset sending cycle length, E represents the preset communication rate lower limit threshold, η k represents the upper limit of the communication rate of the kth SIM card, β represents the first traffic value, δ k Indicates the balance of the k-th SIM card.

3. The method according to claim 1, characterized in that The obtaining of the charge balance of each subscriber identity module SIM card includes: If the SIM card fee balance is not stored, obtain the fee balance of each SIM card through the operator server; If the SIM card fee balance has been stored, the fee balance of each stored SIM card is obtained.

4. The method according to claim 1, wherein The obtaining of the charge balance of each subscriber identity module SIM card includes: Obtain the balance of each SIM card through the operator's server.

5. The method according to claim 1, characterized in that The obtaining of the upper limit of the communication rate of each SIM card includes: Get the current signal strength value of each SIM card; Using the formula Calculate the upper limit of the communication rate of each SIM card, where K represents the total number of SIM cards, and η k Indicates the upper limit of the communication rate of the kth SIM card, Indicates the basic communication rate of the k-th SIM card obtained in advance, Indicates the pre-obtained lower threshold of the signal strength of the k-th SIM card, Indicates the pre-obtained basic signal strength value of the kth SIM card, μ k Indicates the current signal strength value of the kth SIM card.

6. The method according to claim 1, characterized in that The obtaining of the upper limit of the communication rate of each SIM card includes: Perform communication rate detection on each SIM card to obtain the communication rate upper limit value of each SIM card.

7. The method according to claim 1, characterized in that The sending of the service data packets in the important data packet set based on the first traffic value, and the sending of the service data packets in the non-important data packet set based on the third traffic value of each SIM card, comprises: For each SIM card, use the traffic corresponding to the first traffic value of the SIM card to send the service data packet in the important data packet set data packet; For each service data packet in the non-important data packet set, determining a target SIM card to be used for sending the service data packet according to the third traffic value of each SIM card; The service data packet is sent using the traffic corresponding to the third traffic value of the target SIM card.

8. The method according to claim 3, characterized in that After sending the service data packets in the important data packet set based on the first traffic value, and sending the service data packets in the non-important data packet set based on the third traffic value of each SIM card, the method further includes: Using the formula Calculate the updated tariff balance of each SIM card and store it, where K represents the total number of SIM cards. represents the updated fee balance of the kth SIM card, δ k represents the charge balance before the kth SIM card is updated, c k represents the unit traffic cost of the kth SIM card, represents the third traffic value of the kth SIM card, and β represents the first traffic value.

9. The method according to claim 5, characterized in that Before obtaining the charge balance of each subscriber identity module SIM card and obtaining the communication rate upper limit and unit flow fee of each SIM card, the method further includes: Perform communication detection on each SIM card to obtain the basic communication rate, signal strength lower limit threshold, and basic signal strength value of each SIM card.

10. A device for sending a service data packet, characterized in that: include: The acquisition module is used to obtain the balance of each user identity module SIM card, as well as the communication rate upper limit and unit flow fee of each SIM card; Processing module for: For each service data packet that needs to be sent, classify the service data packet into an important data packet set or a non-important data packet set according to the importance identifier of the service data packet; Calculating a first flow rate value required to send all service data packets in the important data packet set and a second flow rate value required to send all service data packets in the non-important data packet set; A linear programming model is constructed based on a preset sending cycle duration, a preset communication rate lower limit threshold, the first flow value, the second flow value, the tariff balance of each SIM card, the unit flow fee, and the communication rate upper limit, wherein the decision variable of the linear programming model is the third flow value of each SIM card used to send the service data packets in the non-important data packet set, and the objective function of the linear programming model is to minimize the sum of the tariffs of all SIM cards for sending the service data packets in the non-important data packet set; Solving the linear programming model to obtain the third traffic value of each SIM card; The sending module is configured to send the service data packets in the important data packet set based on the first traffic value, and send the service data packets in the non-important data packet set based on the third traffic value of each SIM card.

11. An electronic device, characterized in that: include: Processor, memory, communication interface; The memory is used to store executable instructions of the processor; The processor is configured to execute the service data packet sending method according to any one of claims 1 to 9 by executing the executable instructions.

12. A readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the service data packet sending method according to any one of claims 1 to 9 is implemented.

13. A computer program product, characterized in that It includes a computer program, which is used to implement the service data packet sending method according to any one of claims 1 to 9 when executed by a processor.

Citation Information

Patent Citations

  • Method and device for executing data service

    CN104581828A

  • Method and device for switching mobile terminal among multiple SIM cards

    CN105142168A