CN111585798A - Network resource parameter configuration method, device and computer readable storage medium - Google Patents

Network resource parameter configuration method, device and computer readable storage medium Download PDF

Info

Publication number
CN111585798A
CN111585798A CN202010349982.0A CN202010349982A CN111585798A CN 111585798 A CN111585798 A CN 111585798A CN 202010349982 A CN202010349982 A CN 202010349982A CN 111585798 A CN111585798 A CN 111585798A
Authority
CN
China
Prior art keywords
network resource
network
resource parameter
parameters
resources
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202010349982.0A
Other languages
Chinese (zh)
Other versions
CN111585798B (en
Inventor
周晓军
朱江涛
朱杰
杨鑫
赵世楠
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN202010349982.0A priority Critical patent/CN111585798B/en
Publication of CN111585798A publication Critical patent/CN111585798A/en
Application granted granted Critical
Publication of CN111585798B publication Critical patent/CN111585798B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0803Configuration setting
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/70Admission control; Resource allocation
    • H04L47/83Admission control; Resource allocation based on usage prediction
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/70Admission control; Resource allocation

Landscapes

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

Abstract

The embodiment of the invention discloses a method and a device for configuring network resource parameters and a computer readable storage medium; after receiving a network resource parameter configuration request, acquiring the number of devices to be adapted and network resources of a network resource pool according to the network resource parameter configuration request, wherein the network resources of the network resource pool are the total amount of the network resources used by the devices to be adapted in a statistical period, and selecting a target network resource parameter for each device to be adapted in a network resource parameter set according to the number of the devices to be adapted and the network resources of the network resource pool to obtain a network resource parameter combination, so that the network resources except the network resource parameter combination in the network resource pool do not exceed a preset network resource threshold value, and configuring the network resource parameters for the devices to be adapted based on the network resource parameter combination; the scheme can greatly improve the flexibility and the configuration efficiency of the network resource parameter configuration.

Description

Network resource parameter configuration method, device and computer readable storage medium
Technical Field
The present invention relates to the field of communications technologies, and in particular, to a method and an apparatus for configuring network resource parameters, and a computer-readable storage medium.
Background
In recent years, with the continuous development and popularization of mobile network communication technologies such as 4G, 5G and the like, particularly the development of 5G technologies, the development of industrial internet is greatly promoted by the high speed, high stability and mobility of the mobile network communication technologies; besides a small part of plants with fixed access conditions, cellular connection networks are commonly used in various industrial fields, such as asset tracking of industrial manufacturing equipment, monitoring of equipment in the energy industry, vehicle positioning and tracking in the logistics industry, and the like. In order to meet the requirements of different enterprises in the market, various network resource parameters of internet of things network charges are correspondingly proposed by each large operator, each network resource parameter comprises different amounts of network resources and prices, so that a plurality of choices are provided for the enterprises, and usually, when the enterprises adapt the network resource parameters for the internet of things equipment, the enterprises can adapt a fixed network resource parameter to meet the requirements of network connection.
In the research and practice process of the prior art, the inventor of the present invention finds that the total amount of network resources generated by the internet of things devices and the internet of things devices using the network resources in each network resource statistics period of an enterprise are not necessarily the same, and the network resource parameters need to be adapted according to the actual number of the internet of things devices and the total amount of the network resources, and the flexibility and the configuration efficiency of the network resource parameter configuration are greatly reduced if the enterprise selects a fixed network resource parameter for configuration.
Disclosure of Invention
Embodiments of the present invention provide a method and an apparatus for configuring network resource parameters, and a computer-readable storage medium, which can improve flexibility and configuration efficiency of network resource parameter configuration.
A network resource parameter configuration method comprises the following steps:
receiving a network resource parameter configuration request, wherein the network resource parameter configuration request carries a network resource statistical period and a network resource parameter set, and the network resource parameter set comprises a plurality of network resource parameters;
acquiring the number of the devices to be adapted and network resources of a network resource pool according to the network resource parameter configuration request, wherein the network resources of the network resource pool are the total amount of the network resources required by the devices to be adapted in a statistical period;
selecting a target network resource parameter for each device to be adapted in the network resource parameter set according to the number of the devices to be adapted and network resources of a network resource pool to obtain a network resource parameter combination, so that the network resources except the network resource parameter combination in the network resource pool do not exceed a preset network resource threshold;
and configuring network resource parameters for the equipment to be adapted based on the network resource parameter combination.
Correspondingly, an embodiment of the present invention provides a network resource parameter configuration apparatus, including:
a receiving unit, configured to receive a network resource parameter configuration request, where the network resource parameter configuration request carries a network resource statistics period and a network resource parameter set, and the network resource parameter set includes multiple network resource parameters;
an obtaining unit, configured to obtain, according to the network resource parameter configuration request, the number of devices to be adapted and network resources of a network resource pool, where the network resources of the network resource pool are a total amount of network resources required by the devices to be adapted in a statistical period;
a selecting unit, configured to select a target network resource parameter for each device to be adapted in the network resource parameter set according to the number of the devices to be adapted and network resources of a network resource pool, so as to obtain a network resource parameter combination, so that network resources in the network resource pool except the network resource parameter combination do not exceed a preset network resource threshold;
and the configuration unit is used for configuring the network resource parameters for the equipment to be adapted based on the network resource parameter combination.
Optionally, in some embodiments, the selecting unit may be specifically configured to screen out, according to the number of the devices to be adapted and the network resources of the network resource pool, basic network resource parameters of the devices to be adapted from the network resource parameter set, so as to obtain an initial network resource parameter combination; calculating network resources in the network resource pool except the initial network resource parameter combination to obtain residual network resources; when the residual network resources exceed a preset network resource threshold value, determining a target network resource parameter and a target replacement number N for replacing a basic network resource parameter in the network resource parameter set, so that the residual network resources do not exceed the preset network resource threshold value; and replacing the N basic network resource parameters with the target network resource parameters in the initial network resource parameter combination to obtain a network resource parameter combination.
Optionally, in some embodiments, the selecting unit may be specifically configured to replace the basic network resource parameter with another network resource parameter in the network resource parameter set according to the number of the to-be-adapted devices and the network resource of the network resource pool, so that the remaining network resource does not exceed a preset network resource threshold, calculate a replacement number to be replaced, and determine the remaining network resource after replacement corresponding to the replacement number to obtain a replacement number set and a remaining network resource set after replacement, where the remaining network resource after replacement is a network resource in the network resource pool except the basic network resource parameter and the other network resource parameter; querying the replaced residual network resources equal to the preset network resource threshold value in the replaced residual network resource set; and according to the query result, screening target network resource parameters for replacing the basic network resource parameters from the network resource parameter set, and screening a target replacement number N corresponding to the target network resource parameters from the replacement number set.
Optionally, in some embodiments, the selecting unit may be specifically configured to sort the network resource parameters according to the number of network resources in the network resource parameters in the network resource parameter set; traversing the sorted network resource parameter set according to the number of the devices to be adapted and the network resources of the network resource pool, so as to replace the basic network resource parameters with other network resource parameters in the network resource parameter set, so that the remaining network resources do not exceed a preset network resource threshold value, calculating the replacement number to be replaced, determining the remaining network resources after replacement corresponding to the replacement number, and obtaining a replacement number set and a remaining network resource set after replacement.
Optionally, in some embodiments, the selecting unit may be specifically configured to screen a candidate network resource parameter with the largest number of network resources from the sorted network resource parameter set, and mark the candidate network resource parameter in the network resource parameter set; replacing the basic network resource parameter with the candidate network resource parameter to ensure that the residual network resource does not exceed a preset network resource threshold value, and calculating the number of candidate replacements needing to be replaced; replacing basic network resource parameters corresponding to the candidate replacement quantity with the candidate network resource parameters according to the quantity of the equipment to be adapted and the network resources of the network resource pool, and calculating the residual network resources after the replacement of the network resource pool; when the replaced residual network resources are smaller than the preset network resource threshold value, returning to execute the candidate network resource parameters with the largest number of network resources screened from the unmarked network resource parameters in the sorted network resource parameter set until the replaced residual network resources are equal to the preset network resource threshold value or the network resource parameters in the sorted network resource parameter set are all marked, and obtaining a replaced number set and a replaced residual network resource set; the screening, according to the query result, a target network resource parameter for replacing the basic network resource parameter from the network resource parameter set, and screening a target replacement number N corresponding to the target network resource parameter from the replacement number set, include: and when the residual network resources after replacement are equal to the preset network resource threshold value, taking the candidate network resource parameters as target network resource parameters for replacing the basic network resource parameters, and taking the candidate replacement number as a target replacement number N corresponding to the target network resource parameters.
Optionally, in some embodiments, the selecting unit may be specifically configured to calculate a network resource difference between the candidate network resource parameter and a basic network resource parameter; calculating the ratio of the difference value of the residual network resources and the network resources, when the ratio has a decimal part, removing the decimal part of the ratio to get an integer of the ratio, and taking the integer of the ratio as the candidate replacement quantity; when the ratio does not have a fractional part, the ratio is taken as the candidate replacement number.
Optionally, in some embodiments, the selecting unit may be specifically configured to obtain the number of network resources in a parameter of the basic network resource parameter and the candidate network resource parameter; determining the basic number of the devices to be adapted for selecting basic network resource parameters according to the candidate replacement number and the number of the devices to be adapted; calculating the total amount of the network resources in the parameters of the basic network resource parameters and the candidate network resource parameters based on the candidate replacement number, the basic number and the number of the network resources in the parameters; and calculating the network resource difference between the network resources in the network resource pool and the total amount of the network resources in the parameters to obtain the residual network resources after replacement.
Optionally, in some embodiments, the selecting unit may be specifically configured to, when the post-replacement remaining network resources equal to the preset network resource threshold exist in the post-replacement remaining network resource set, take the candidate network resource parameter corresponding to the post-replacement remaining network resources equal to the preset network resource threshold as a target network resource parameter, and screen out, in the replacement number set, a target replacement number N corresponding to the target network resource parameter; when the replaced residual network resources equal to the preset network resource threshold value do not exist in the replaced residual network resource set, screening the maximum replaced residual network resources from the replaced residual network resource set, taking the candidate network resource parameters corresponding to the maximum replaced residual network resources as target network resource parameters, and screening the target replacement number N corresponding to the target network resource parameters from the replacement number set.
Optionally, in some embodiments, the configuration unit may be specifically configured to store the network resource parameter combination to a block chain.
In addition, an embodiment of the present invention further provides an electronic device, which includes a processor and a memory, where the memory stores an application program, and the processor is configured to run the application program in the memory to implement the network resource parameter configuration method provided in the embodiment of the present invention.
In addition, an embodiment of the present invention further provides a computer-readable storage medium, where the computer-readable storage medium stores a plurality of instructions, and the instructions are suitable for being loaded by a processor to perform any of the steps in the method for configuring network resource parameters provided in the embodiment of the present invention.
After receiving the network resource parameter configuration request, the embodiment of the invention carries the statistical period of the network resource and the network resource parameter set, the network resource parameter set comprises a plurality of network resource parameters, acquiring the number of the devices to be adapted and the network resources of the network resource pool according to the network resource parameter configuration request, the network resources of the network resource pool are the total amount of network resources required by the devices to be adapted in the counting period, and according to the number of the devices to be adapted and the network resources of the network resource pool, selecting target network resource parameters for each device to be adapted in the network resource parameter set to obtain a network resource parameter combination, enabling network resources except the network resource parameter combination in the network resource pool not to exceed a preset network resource threshold value, and configuring network resource parameters for the equipment to be adapted based on the network resource parameter combination; according to the scheme, the appropriate target network resource parameter can be selected for each device to be adapted in the network resource parameter set according to the number of the devices to be adapted in the network resource counting period and the network resources of the network resource pool, so that the flexibility and the configuration efficiency of the network resource parameter configuration can be greatly improved.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed to be used in the description of the embodiments will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1 is a schematic view of a scenario of a network resource parameter configuration method according to an embodiment of the present invention;
fig. 2 is a flowchart illustrating a method for configuring network resource parameters according to an embodiment of the present invention;
FIG. 3 is a flowchart illustrating the calculation of the replacement quantity and the network resources left after replacement according to an embodiment of the present invention;
fig. 4 is another flowchart illustrating a method for configuring network resource parameters according to an embodiment of the present invention;
fig. 5 is a schematic structural diagram of a network resource parameter configuration apparatus according to an embodiment of the present invention;
fig. 6 is a schematic structural diagram of a selecting unit of a network resource parameter configuration apparatus according to an embodiment of the present invention;
fig. 7 is a schematic structural diagram of an electronic device according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The embodiment of the invention provides a network resource parameter configuration method, a network resource parameter configuration device and a computer readable storage medium. The network resource parameter configuration apparatus may be integrated in an electronic device, and the electronic device may be a server or a terminal.
The server may be an independent physical server, a server cluster or a distributed system formed by a plurality of physical servers, or a cloud server providing basic cloud computing services such as cloud service, a cloud database, cloud computing, a cloud function, cloud storage, Network service, cloud communication, middleware service, domain name service, security service, Network acceleration service (CDN), big data and an artificial intelligence platform. The terminal may be, but is not limited to, a smart phone, a tablet computer, a laptop computer, a desktop computer, a smart speaker, a smart watch, and the like. The terminal and the server may be directly or indirectly connected through wired or wireless communication, and the application is not limited herein.
For example, referring to fig. 1, taking the case that the network resource parameter configuration device is integrated in the electronic device as an example, after the electronic device receives the network resource parameter configuration request, the network resource parameter configuration request carries a statistics period of the network resource and a network resource parameter set, the network resource parameter set includes a plurality of network resource parameters, the number of the devices to be adapted and the network resources of the network resource pool are obtained according to the network resource parameter configuration request, the network resources of the network resource pool are the total number of the network resources obtained by the devices to be adapted in the statistics period, a target network resource parameter is selected for each device to be adapted in the network resource parameter set according to the number of the devices to be adapted and the network resources of the network resource pool, and a network resource parameter combination is obtained, so that the network resources except the network resource parameter combination in the network resource pool do not exceed a preset network resource threshold, and configuring network resource parameters for the equipment to be adapted based on the network resource parameter combination.
The network resource parameter may be understood as a parameter including a certain amount of network resources provided by a network operator, for example, a traffic package, a so-called traffic package, or a network tariff package including a certain amount of traffic provided by a network operator, and the network tariff package may further include a certain amount of call time or a certain amount of network services such as short messages. For example, a flow package may be divided into a plurality of grades according to the number of flows, and the price of each grade package is different. The flow quantity contained in the flow package can generally meet the network flow requirement of an enterprise, and each to-be-adapted internet of things device can select one flow package as the network cost standard of the device. It should be further noted that the flows in the flow packages may be shared, for example, the flow package of the device a to be adapted includes 100M flows, the flow package of the device B to be adapted includes 50M flows, and the device a to be adapted only uses 50M flows in a charging period, so that 50M flows still remain in the flow package of the device a to be adapted, and if the device B to be adapted uses 60M flows in a charging period, the other 10M flows outside the package of the device B to be adapted may share the remaining 50M flows in the device a to be adapted, so that neither the device a to be adapted nor the device B to be adapted may have a used flow exceeding the flow in the package.
The network resource is understood to be a capacity of content in the network and also understood to be traffic, and the traffic is actually a digital record, and records a number of bytes consumed by a network service used by the internet or an internet of things device, and the units of the bytes can be B, KB, MB and GB. Generally, when equipment connected with the internet of things or the internet of things performs network charge settlement, the flow is usually calculated, if the quantity of the flow used by one equipment is less than the quantity of the flow contained in the flow package, the equipment is directly charged according to the standard of the package, if the flow used by one equipment exceeds the quantity of the flow contained in the flow package, the cost is required to be added beyond the standard of the flow package charge, and the unit price of the flow exceeding the standard is expensive. When the number of devices connected to the internet of things or the internet in an enterprise is large, it is necessary to consider adapting each device, so that network resources (traffic) used by each device are within network resource parameters, that is, within a traffic package, and waste of traffic due to large residual traffic in the package is avoided.
The following are detailed below. It should be noted that the following description of the embodiments is not intended to limit the preferred order of the embodiments.
In this embodiment, the flow package adapting apparatus will be described from the perspective of a network resource parameter configuration apparatus, and the flow package adapting apparatus may be specifically integrated in an electronic device, where the electronic device may be a server or a terminal; the terminal may include a tablet Computer, a notebook Computer, a Personal Computer (PC), and other devices.
A network resource parameter configuration method comprises the following steps:
receiving a network resource parameter configuration request carrying a network resource statistical period and a network resource parameter set, the network resource parameter set comprises a plurality of network resource parameters, the number of the devices to be adapted and the network resources of the network resource pool are obtained according to the network resource parameter configuration request, the network resources of the network resource pool are the total amount of network resources required by the devices to be adapted in the counting period, and according to the number of the devices to be adapted and the network resources of the network resource pool, selecting target network resource parameters for each device to be adapted in the network resource parameter set to obtain a network resource parameter combination, and the network resources except the network resource parameter combination in the network resource pool do not exceed a preset network resource threshold value, and the network resource parameter is configured for the equipment to be adapted based on the network resource parameter combination.
As shown in fig. 2, the specific process of the network resource parameter configuration method is as follows:
101. a network resource parameter configuration request is received.
The network resource parameter configuration request carries a network resource statistical period and a network resource parameter set, wherein the network resource parameter set comprises a plurality of network resource parameters, and the network resource quantity contained in different network resource parameters is different.
The statistical period of the network resource may also be regarded as a charging period of the network resource, and the charging period may be understood as a period in which network resources required by the device to be adapted to use the network service are settled, for example, taking the network resource as a traffic, a month in which traffic generated by using the network service to be adapted to use the network service is uniformly settled may be regarded as a charging period, and the charging period may be a month, a week, a day, a quarter, a half year, a year, or the like. Thus, the statistical period of the network resources may also be a fixed time period of a month, a week, a quarter, a day, a half year, or a year.
For example, the network resource parameter configuration request may be directly received, for example, after a statistical period is over or within a time period before the statistical period is over, the user adds the statistical period and a network resource parameter set of the network resource that the statistical period may use for settlement to the network resource parameter configuration request through the terminal, and then directly sends the network resource parameter configuration request to the network resource parameter configuration device. If the memory of the network resource parameter set that can be used in the current statistics period is large, the statistics period information and the network resource parameter set carried in the network resource parameter configuration request can also be indirectly received, for example, the terminal corresponding to the user stores the statistics period information and the network resource parameter set in a third-party database to obtain a storage address, then, the storage address is added to the network resource parameter configuration request and sent to the network resource parameter configuration device, after the network resource parameter configuration device receives the network resource parameter configuration request, extracting a storage address from the network resource parameter configuration request, extracting the statistical period information and the network resource parameter set in a third-party database according to the storage address, after the statistical period information and the network resource parameter set are successfully extracted, prompt information can be sent to a terminal corresponding to the user to prompt the user to successfully acquire the statistical period information and the network resource parameter set.
102. And acquiring the number of the devices to be adapted and the network resources of the network resource pool according to the network resource parameter configuration request.
The network resources of the network resource pool are the total amount of the network resources needed by the device to be adapted in the statistical period.
The number of devices to be adapted may be the number of devices that need network resources for using the network service in a statistical period, and the number of devices may include the number of devices that need network resources for using the network service one or more times in the statistical period.
For example, the number of devices to be adapted is obtained according to the received network resource parameter configuration request, and the total amount of network resources used by the devices to be adapted in the statistical period is calculated according to the obtained number of the devices to be adapted. If the time for calculating the network resources of the network resource pool is outside the statistical period, the network resources required by the devices to be adapted in the statistical period can be directly accumulated, for example, taking the statistical period as one month as an example, if the time for receiving the network resource parameter configuration request is outside the period of one month, for example, the statistical period is 1 month and 1 day to 1 month and 31 days, and the time for receiving the network resource parameter configuration request is 2 months and 1 day or later, the network resources required by the devices to be adapted in 1 month and 1 day to 1 month and 31 days only need to be accumulated to obtain the network resources of the network resource pool. If the time for calculating the network resources of the network resource pool is within the statistical period, the network resources required by the device to be adapted for the remaining time within the statistical period need to be estimated, and finally the network resources of the network resource pool are obtained, for example, the network resources required by the day of 31 days need to be estimated by taking the statistical period from 1 month and 1 day to 1 month and 31 days as an example, and the time for receiving the network resource parameter configuration request is 1 month and 31 days as an example, the average network resources required by each day can be obtained by dividing the total amount of the flow network resources from 1 month and 1 day to 1 month and 30 days as a general estimation method, and finally the estimated network resources of the network resource pool can be obtained by adding the total amount of the network resources from 1 month and 1 day to 1 month and 30 days.
103. According to the number of the devices to be adapted and the network resources of the network resource pool, selecting a target network resource parameter for each device to be adapted in the network resource parameter set to obtain a network resource parameter combination, so that the network resources except the network resource parameter combination in the network resource pool do not exceed a preset network resource threshold.
The network resource parameter combination may be a set of network resource parameters selected by each device to be adapted, for example, if the network resource parameter selected by the device to be adapted a is a network resource parameter a, the network resource parameter selected by the device to be adapted B is also a network resource parameter a, and the network resource parameter selected by the device to be adapted C is a network resource parameter B, the network resource parameter combination may be the network resource parameter a, and the network resource parameter B.
For example, according to the number of devices to be adapted and network resources of a network resource pool, basic network resource parameters of the devices to be adapted are screened out from a network resource parameter set to obtain an initial network resource parameter combination, network resources except the initial network resource parameter combination in the network resource pool are calculated to obtain remaining network resources, when the remaining network resources exceed a preset network resource threshold, a target network resource parameter and a target replacement number N for replacing the basic network resource parameters are determined in the network resource parameter set, so that the remaining network resources do not exceed the preset network resource threshold, and the N basic network resource parameters are replaced by the target network resource parameters in the initial network resource parameter combination to obtain a network resource parameter combination. Specifically, the following may be mentioned:
s1, screening out basic network resource parameters of the equipment to be adapted from the network resource parameter set according to the quantity to be adapted and the network resources of the network resource pool, and obtaining an initial network resource parameter combination.
The basic network resource parameter may be a network resource parameter with the fewest network resources in a network resource parameter set that meets basic requirements of the device to be adapted, for example, if the device to be adapted needs a short message service, the network resource parameter with the fewest network resources is selected from the network resource parameter set, and the network resource parameter with the fewest network resources is selected as the basic network resource parameter in the packages. For another example, some network resource parameters may be selected only after a certain number of devices to be adapted need to be satisfied, and then, according to the number of devices to be adapted in the current statistical period, selectable network resource parameters are determined, and a network resource parameter with the fewest network resources is selected from the network resource parameters as a basic network resource parameter. And selecting the network resource parameter with the minimum network resource from the network resource parameters meeting the requirements as the basic network resource parameter according to the network resources of the network resource pool in the current statistical period and the network resources used by the single device to be adapted.
For example, according to the number of devices to be adapted and network resources of the network resource pool, the number of current devices to be adapted and network resource parameters selectable by the network resources of the network resource pool are screened out from the network resource parameter set, and a network resource parameter with the fewest network resources is selected from the network resource parameters as a basic network resource parameter of the devices to be adapted, so as to obtain an initial network resource parameter combination, for example, if the number of the devices to be adapted is M, and all the alternative network resource parameters of the M devices to be adapted are basic network resource parameters, the initial network resource parameter combination may be M basic network resource parameters.
And S2, calculating the network resources except the initial network resource parameter combination in the network resource pool to obtain the residual network resources.
The remaining traffic may be understood as a network resource in the network resource pool except the network resource included in the selected initial network resource parameter combination, for example, if the network resource in the network resource pool is D, the number of devices to be adapted is C, the network resource included in the basic network resource parameter is W1, and the remaining network resource E may be D-W1 × C.
For example, the number of network resources included in the basic network resource parameter in the initial network resource parameter combination is obtained, then, according to the number of the devices to be adapted, the total amount of network resources in the basic network resource parameter of the devices to be adapted can be obtained, and the remaining network resources can be obtained by calculating the difference between the network resources in the network resource pool and the total amount of network resources in the basic network resource parameter.
And S3, when the residual network resources exceed the preset network resource threshold, determining a target network resource parameter and a target replacement number N for replacing the basic network resource parameter in the network resource parameter set, so that the residual network resources do not exceed the preset network resource threshold.
For example, a preset network resource threshold may be set, for example, the preset network resource threshold may be 0, and when the remaining network resources are greater than 0, it indicates that when the device to be adapted selects the initial network resource parameter combination, the network resources exceed the network resources included in the network resource parameters, and therefore, the remaining network resources must be smaller than 0 by replacing the basic network resource parameters in the initial network resource parameter combination, so that it can be ensured that the network resource parameters adapted by the device to be adapted meet the network resource requirements of the device to be adapted in a statistical period. If the residual network resources are less than or equal to 0, the initial network resource parameter combination which is adapted before can meet the network resource requirement of the device to be adapted in the statistical period, and the basic network resource parameters in the initial network resource parameter combination do not need to be replaced.
When the residual network resources exceed the preset network resource threshold, respectively replacing the basic network resource parameters with other network resource parameters in the network resource parameter set according to the number of the devices to be adapted and the network resources in the network resource pool, so that the residual network resources do not exceed the preset network resource threshold, calculating the replacement number to be replaced, determining the replaced residual network resources corresponding to the replacement number, obtaining a replacement number set and a replaced residual network resource set, wherein the replaced residual network resources are the network resources in the network resource pool except the basic network resource parameters and the other network resource parameters, inquiring the replaced residual network resources equal to the preset network resource threshold in the replaced residual network resource set, and screening out target network resource parameters for replacing the basic network resource parameters from the network resource parameter set according to the inquiry result, and screening out the target replacement number N corresponding to the target network resource parameter from the replacement number set. Specifically, the following may be mentioned:
(1) respectively replacing the basic network resource parameters with other network resource parameters in the network resource parameter set according to the number of the devices to be adapted and the network resources of the network resource pool, so that the residual network resources do not exceed a preset network resource threshold value, calculating the replacement number to be replaced, determining the replaced residual network resources corresponding to the replacement number, and obtaining a replacement number set and a replaced residual network resource set.
And the rest network resources after replacement are network resources except the basic network resource parameters and other network resource parameters in the network resource pool.
For example, the network resource parameters may be sorted according to the number of network resources of the network resource parameters in the network resource parameter set, for example, the network resource parameters may be sorted from small to large according to the number of devices to be adapted and the network resources of the network resource pool, the sorted network resource parameters are traversed in reverse order, the traversing process is mainly to replace the basic network resource parameter with other network resource parameters in the network resource parameter set so that the remaining network resources do not exceed a preset network resource threshold, calculate the replacement number required by the replacement process, determine the remaining network resources after replacement corresponding to the replacement number, finally obtain the replacement number set and the remaining network resource set after replacement, and the processes of calculating the replacement number and determining the remaining network resources after replacement may be as shown in fig. 3, the method comprises the following specific steps:
c1, screening out the candidate network resource parameter with the most network resource quantity from the sorted network resource parameter set, and marking the candidate network resource parameter from the network resource parameter set.
Wherein the candidate network resource parameter may be a network resource parameter of the candidate alternative base network resource parameter.
For example, the network resource parameter set is selected in reverse order after sorting, and the last network resource parameter is the candidate network resource parameter with the largest number of network resources. Then, the candidate network resource parameters are directly marked in the network resource parameter set, and the marking mode may be various, for example, the candidate network resource parameters may be directly marked as used, and the traversal order may also be marked as 1 in the candidate network resource parameters.
And C2, replacing the basic network resource parameter with the candidate network resource parameter to ensure that the residual network resource does not exceed the preset network resource threshold value, and calculating the number of the candidate replacements needing to be replaced.
The candidate replacement number may be a number that needs to be replaced when the network resource parameter of the network resource pool includes a number of remaining network resources other than the network resources that does not exceed a preset network resource threshold after the basic network resource parameter is replaced with the candidate network resource parameter.
For example, the network resource difference between the candidate network resource parameter and the base network resource parameter is calculated, for example, if the network resource included in the base network resource parameter is W1 and the network resource included in the candidate network resource parameter is W2, the network resource difference is (W2-W2), and then the ratio of the remaining network resource to the network resource difference is calculated. When the calculated ratio of the remaining network resources to the network resource difference has a decimal part, the decimal part of the ratio is removed, the ratio is rounded, and the rounded ratio is used as the candidate replacement number, for example, when the network resource is used as the flow, the remaining flow is 100M, and the flow difference is 30M, the ratio of the remaining flow to the flow difference is calculated to be 3.333, the decimal part of the ratio is removed, and when the ratio is rounded, the rounded ratio can be 3, and the candidate replacement number is correspondingly 3. When the ratio of the remaining network resources to the difference between the network resources does not have a fractional part, the ratio is directly used as the candidate replacement number, for example, taking the network resources as the traffic, if the traffic difference is 25M, the calculated ratio is 4, in this case, the fractional part of the ratio does not need to be removed, and the ratio can be directly used as the candidate replacement number.
It should be noted that, for the ratio having the fractional part, the fractional part of the ratio is removed and rounded, so that the remaining network resource does not exceed the preset network resource threshold, because the fractional part is not removed according to the ratio for direct replacement, the remaining network resource is equal to the preset network resource threshold, usually, the preset network resource threshold may be 0, but because the fractional part exists, direct replacement cannot be performed in the actual replacement process, therefore, if the ratio has the fractional part, after the fractional part is removed, replacement is performed to ensure that the remaining network resource is smaller than the preset network resource threshold. And if the fraction part does not exist in the ratio, replacing according to the ratio, and enabling the residual network resources to be equal to the preset network resource threshold value. In both cases, it can be ensured that the remaining network resources do not exceed a preset network resource threshold.
And C3, replacing the basic network resource parameters corresponding to the candidate replacement number with the candidate network resource parameters according to the number of the devices to be adapted and the network resources of the network resource pool, and calculating the residual network resources after the replacement of the network resource pool.
For example, the number of network resources in the parameter of the basic network resource parameter and the candidate network resource parameter may be obtained, and the basic number of the device to be adapted for selecting the basic network resource parameter is determined according to the number of candidate replacements and the number of devices to be adapted, for example, if the number of candidate replacements is 4 and the number of devices to be adapted is 10, the basic number of the device to be adapted for selecting the basic network resource parameter is 6. Based on the candidate replacement number, the base number, and the number of network resources in the parameter, the total amount of network resources in the parameter of the base network resource parameter and the candidate network resource parameter is calculated, for example, taking the network resource as a flow, the candidate replacement number is 4, the base number is 6, the flow in the parameter of the base network resource is 50M, the flow in the parameter of the candidate network resource is 200M as an example, the total amount of flow in the parameter of the base network resource parameter is 6 × 50 — 300, and the total flow in the parameter of the candidate network resource is 4 × 200 — 800, at this time, the total flow in the parameter of the base network resource and the parameter of the candidate network resource may be 1100M. And calculating a network resource difference value between the network resources in the network resource pool and the total amount of the network resources in the parameters to obtain a difference value of the remaining network resources after replacement, for example, taking the network resources as flow and the remaining flow as 1000M as an example, the remaining flow after replacement is-100M.
And C4, when the residual network resources after replacement are less than the preset network resource threshold value, returning to execute the step of screening the candidate network resource parameters with the most network resources from the unmarked network resource parameters in the sorted network resource parameter set until the residual network resources after replacement are equal to the preset network resource threshold value or the network resource parameters in the sorted network resource parameter set are all marked, and obtaining a replacement number set and a residual network resource set after replacement.
For example, the preset network resource threshold may be 0, when the number of the remaining network resources after replacement is less than 0, the step of returning to perform the screening of the candidate network resource parameter with the largest network resource from the unmarked network resource parameters in the sorted network resource parameter set until the remaining network resources after replacement are equal to 0 or all the network resource parameters in the sorted network resource parameter set are marked, for example, when the number of the remaining network resources after replacement is less than 0, the step of returning to the screening of the candidate network resource parameter with the largest network resource from the unmarked network resource parameters in the sorted network resource parameter set, the step of continuing to calculate the replacement number and the remaining network resources after replacement until the remaining network resources after replacement are equal to 0 or all the network resource parameters except the basic network resource parameters in the sorted network resource parameter set are marked, a set of replacement quantity and a set of network resources left after replacement can be obtained, and each network resource parameter corresponds to one of the replacement quantity and the network resources left after replacement.
And C5, when the residual network resources after replacement are equal to the preset network resource threshold value, taking the candidate network resource parameter as a target network resource parameter for replacing the basic network resource parameter, and taking the candidate replacement number as a target replacement number N corresponding to the target network resource parameter.
For example, when the remaining network resources after replacement are directly equal to the preset network resource threshold, for example, if the preset network resource threshold is 0, it indicates that the remaining network resources after replacement are directly 0, and indicates that the network resources in the network resource parameters just meet the network resources required by the device to be adapted after the basic network resource parameters are replaced according to the replacement number, the candidate network resource parameters may be directly used as the target network resource parameters, and the candidate replacement number is directly used as the target replacement number N corresponding to the target network resource parameters.
(2) And inquiring the replaced residual network resources equal to the preset network resource threshold value in the replaced residual network resource set.
For example, taking the preset network resource threshold value as 0 as an example, whether the post-replacement remaining network resource with the network resource number of 0 exists in the post-replacement remaining network resource set is queried. And determining target network resource parameters needing to be replaced and the target replacement number N through the query result.
(3) And screening target network resource parameters for replacing the basic network resource parameters from the network resource parameter set according to the query result, and screening a target replacement number N corresponding to the target network resource parameters from the replacement number set.
For example, when the post-replacement remaining network resources equal to the preset network resource threshold exist in the post-replacement remaining network resource set, for example, taking the preset network resource threshold as 0, and the post-replacement remaining network resources are 0, it is described that after the basic network resource parameter is replaced according to the replacement number, so that the network resources in the network resource parameter just meet the network resources required by the device to be adapted, the candidate network resource parameter can be directly used as the target network resource parameter, and the candidate replacement number is directly used as the target replacement number N corresponding to the target network resource parameter. When the replaced residual network resources equal to the preset network resource threshold do not exist in the replaced residual network resource set, or the preset network resource threshold is 0, it indicates that the replaced residual network resources are less than 0, and indicates that the total amount of the network resources contained in the replaced candidate network resource parameter and the basic network resource parameter exceeds the network resources of the network resource pool, so in this case, only the replaced residual network resources with the least network resources exceeding the network resource pool need to be screened out from the replaced residual network resource set, and since the replaced residual network resources in the replaced residual network resource set are all less than 0, only the largest replaced residual network resources need to be screened out from the replaced residual network resource set, and the candidate network resource parameter corresponding to the largest replaced residual network resources is taken as the target network resource parameter, and screening out the target replacement number N corresponding to the target network resource parameter from the replacement number set.
And S4, replacing the N basic network resource parameters with target network resource parameters in the initial network resource parameter combination to obtain a network resource parameter combination.
For example, N basic network resource parameters in the initial network resource parameter combination are replaced with target network resource parameters to obtain a network resource parameter combination, for example, taking the example that the initial network resource parameter combination includes M basic network resource parameters, N basic network resource parameters are screened out from the M basic network resource parameters, the N basic network resource parameters are replaced, and the N basic network resource parameters are replaced with the target network resource parameters, so that N target network resource parameters and (M-N) basic network resource parameters exist in the network resource parameter combination.
104. And configuring network resource parameters for the equipment to be adapted based on the network resource parameter combination.
For example, according to the number of network resource parameters of each type in the network resource parameter combination, the network resource parameters corresponding to the configuration of the device to be adapted corresponding to the number of the screened network resource parameters are configured, for example, the network resource parameter combination includes 50 a network resource parameters and 20B network resource parameters, 50 devices to be adapted are screened out from 70 devices to be adapted, the 50 devices to be adapted are configured with the a network resource parameters, and the remaining 20 devices to be adapted are configured with the B network resource parameters.
The network resources contained in the network resource parameters have sharing property, so that the corresponding number of the devices to be adapted can be randomly selected from the devices to be adapted, and the specific requirements of each device to be adapted do not need to be considered independently. Taking network resources as flow and network resource parameters as flow packages as an example, in the configuration process, the post-replacement residual flow preferentially selected in the process of selecting the target flow packages is the same as a preset flow threshold, that is, the target flow packages with the post-replacement residual flow of 0 are replaced, if the target flow packages with the post-replacement residual flow of 0 do not exist, the target flow packages with the minimum flow exceeding the flow pool need to be selected for replacement, so that the flexibility and the adaptation efficiency of flow package adaptation are greatly increased, the flow contained in the packages can be guaranteed to be slightly larger than the flow used by the equipment to be adapted under the condition, the out-package flow can be guaranteed to the maximum extent, the waste of the flow can be effectively avoided, and the economy of flow charge settlement of the equipment to be adapted is improved.
Optionally, after the device to be adapted is configured with the network resource parameters, the network resource parameter combination may be used as configuration information and stored by using a block chain, so that the network resource parameter combination is conveniently and directly called in other statistical periods when the total amount of the network resources in the network resource pool is the same as the number of the devices to be adapted. The blockchain is a novel application mode of computer technologies such as distributed data storage, point-to-point transmission, a consensus mechanism and an encryption algorithm. A block chain (Blockchain), which is essentially a decentralized database, is a series of data blocks associated by using a cryptographic method, and each data block contains information of a batch of network transactions, so as to verify the validity (anti-counterfeiting) of the information and generate a next block. The blockchain may include a blockchain underlying platform, a platform product services layer, and an application services layer.
The block chain underlying platform can comprise processing modules such as user management, basic service, intelligent contract and operation monitoring. The user management module is responsible for identity information management of all blockchain participants, and comprises public and private key generation maintenance (account management), key management, user real identity and blockchain address corresponding relation maintenance (authority management) and the like, and under the authorization condition, the user management module supervises and audits the transaction condition of certain real identities and provides rule configuration (wind control audit) of risk control; the basic service module is deployed on all block chain node equipment and used for verifying the validity of the service request, recording the service request to storage after consensus on the valid request is completed, for a new service request, the basic service firstly performs interface adaptation analysis and authentication processing (interface adaptation), then encrypts service information (consensus management) through a consensus algorithm, transmits the service information to a shared account (network communication) completely and consistently after encryption, and performs recording and storage; the intelligent contract module is responsible for registering and issuing contracts, triggering the contracts and executing the contracts, developers can define contract logics through a certain programming language, issue the contract logics to a block chain (contract registration), call keys or other event triggering and executing according to the logics of contract clauses, complete the contract logics and simultaneously provide the function of upgrading and canceling the contracts; the operation monitoring module is mainly responsible for deployment, configuration modification, contract setting, cloud adaptation in the product release process and visual output of real-time states in product operation, such as: alarm, monitoring network conditions, monitoring node equipment health status, and the like.
The platform product service layer provides basic capability and an implementation framework of typical application, and developers can complete block chain implementation of business logic based on the basic capability and the characteristics of the superposed business. The application service layer provides the application service based on the block chain scheme for the business participants to use.
As can be seen from the above, after receiving the network resource parameter configuration request, the network resource parameter configuration request carries the statistics period of the network resource and the network resource parameter set, where the network resource parameter set includes a plurality of network resource parameters, acquiring the number of the devices to be adapted and the network resources of the network resource pool according to the network resource parameter configuration request, the network resources of the network resource pool are the total amount of network resources required by the devices to be adapted in the counting period, and according to the number of the devices to be adapted and the network resources of the network resource pool, selecting target network resource parameters for each device to be adapted in the network resource parameter set to obtain a network resource parameter combination, enabling network resources except the network resource parameter combination in the network resource pool not to exceed a preset network resource threshold value, and configuring network resource parameters for the equipment to be adapted based on the network resource parameter combination; according to the scheme, the appropriate target network resource parameter can be selected for each device to be adapted in the network resource parameter set according to the number of the devices to be adapted in the statistical period and the network resources of the network resource pool, so that the flexibility and the configuration efficiency of the network resource parameter configuration can be greatly improved.
The method described in the above examples is further illustrated in detail below by way of example.
In this embodiment, the network resource parameter configuration apparatus is specifically integrated in an electronic device, the electronic device is a server, a preset traffic threshold is 0, a network resource is traffic, and a network resource parameter is a traffic package.
The server may be an independent physical server, a server cluster or a distributed system formed by a plurality of physical servers, or a cloud server providing basic cloud computing services such as cloud service, a cloud database, cloud computing, a cloud function, cloud storage, network service, cloud communication, middleware service, domain name service, security service, CDN, big data and artificial intelligence platform.
As shown in fig. 4, a method for configuring network resource parameters includes the following specific processes:
201. the server receives a traffic package configuration request.
For example, after a statistical period is over or within a time period before the end of the statistical period, the user adds the statistical period and a traffic package set of which the statistical period can be used to settle traffic to the traffic package configuration request through the terminal, and then directly sends the traffic package configuration request to the server. If the memory of the flow package set which can be used in the current statistical period is large, the terminal corresponding to the user stores the statistical period information and the flow package set in a third-party database to obtain a storage address, then the storage address is added to the flow package configuration request and sent to the server, after the server receives the flow package configuration request, the storage address is extracted from the flow package configuration request, the statistical period information and the flow package set are extracted from the third-party database according to the storage address, and after the statistical period information and the flow package set are extracted successfully, prompt information can be sent to the terminal corresponding to the user to prompt the user to obtain the statistical period information and the flow package set successfully.
202. And the server acquires the number of the devices to be adapted and the flow of the flow pool according to the flow package configuration request.
For example, the server obtains the number of devices to be adapted according to the received flow package configuration request, and calculates the total flow used by the devices to be adapted in the statistical period according to the obtained number of the devices to be adapted. According to the relationship between the time for calculating the flow of the flow pool and the statistical period, different methods can be used to calculate the total flow, for example, when the time for calculating the flow of the flow pool is outside the statistical period, for example, the statistical period is 1 month and 1 day to 1 month and 31 days, and the time for receiving the flow package configuration request is 2 months and 1 day or later, the flow of the flow pool can be obtained by only accumulating the flows used by the devices to be adapted within 1 month and 1 day to 1 month and 31 days. When the time for calculating the flow rate of the flow rate pool is within the statistical period, for example, the statistical period is 1 month and 1 day to 1 month and 31 days, and the time for receiving the flow rate package configuration request is 1 month and 31 days, the flow rate used in the day of 31 days needs to be estimated, and the estimation method may be to divide the total flow rate of 1 month and 30 days by the number of days to obtain the average flow rate generated each day, and finally add the total flow rate of 1 month and 1 day to 1 month and 30 days to obtain the estimated flow rate of the flow rate pool.
203. And the server screens out the basic flow packages of the equipment to be adapted from the flow package set according to the quantity to be adapted and the flow of the flow pool to obtain an initial flow package combination.
For example, the server may screen, according to the number of devices to be adapted and the flow of the flow pool, a flow package with the selectable number of current devices to be adapted and the flow of the flow pool from the flow package set, and select a flow package with the minimum flow number from the flow packages as a basic flow package of the devices to be adapted, so as to obtain an initial flow package combination.
204. And the server calculates the flow except the initial flow package combination in the flow pool to obtain the residual flow.
For example, the server obtains the flow quantity contained in the basic flow package in the initial flow package combination, then, according to the quantity of the devices to be adapted, the total flow in the basic flow package of the devices to be adapted can be obtained, and the difference between the flow of the flow pool and the total flow in the basic flow package is calculated, so that the remaining flow can be obtained.
205. When the residual flow is greater than 0, the server determines a target flow package and a target replacement number N for replacing the base flow package in the flow package set so that the residual flow does not exceed 0.
For example, when the remaining flow is greater than 0, it means that when the device to be adapted selects the initial flow package combination, the flow will exceed the flow in the package flow, and therefore, the server must make the remaining flow smaller than 0 by replacing the basic flow package in the initial flow package combination, so as to ensure that the flow package adapted by the device to be adapted meets the flow use requirement of the device to be adapted in a statistical period. And if the residual flow is less than or equal to 0, the previously adapted initial flow package combination can meet the flow requirement of the device to be adapted in the statistical period, and the basic flow package in the initial flow package combination is not required to be replaced.
When the residual flow is greater than 0, respectively replacing the basic flow package with other flow packages in the flow package set according to the number of the devices to be adapted and the flow of the flow pool, so that the residual flow does not exceed 0, calculating the replacement number to be replaced, determining the post-replacement residual flow corresponding to the replacement number, obtaining a replacement number set and a post-replacement residual flow set, wherein the post-replacement residual flow is the flow except the basic flow package and the other flow packages in the flow pool, querying the post-replacement residual flow with the flow number of 0 in the post-replacement residual flow set, screening a target flow package for replacing the basic flow package in the flow package set according to a query result, and screening a target replacement number N corresponding to the target flow package in the replacement number set. Specifically, the following may be mentioned:
(1) the server respectively replaces the basic flow package with other flow packages in the flow package set according to the number of the devices to be adapted and the flow of the flow pool, so that the residual flow does not exceed 0, calculates the replacement number to be replaced, determines the post-replacement residual flow corresponding to the replacement number, and obtains a replacement number set and a post-replacement residual flow set.
For example, the server may sort the traffic packages in the traffic package set from small to large according to the traffic number of the traffic packages in the traffic package set, perform reverse traversal on the sorted traffic packages, for example, select the reverse order in the sorted traffic package set, the last traffic package is a candidate traffic package with the largest traffic number, mark a candidate traffic package in the traffic package set, calculate a traffic difference between the candidate traffic package and the base traffic package, then calculate a ratio of the remaining traffic to the traffic difference, if there is a fractional part in the ratio, remove the fractional part of the ratio, so as to round the ratio, take the rounded ratio as a candidate replacement number, and if there is no fractional part in the ratio, directly take the ratio as the candidate replacement number. Then, obtaining the flow quantity in packages in the basic flow packages and the candidate flow packages, determining the basic quantity of devices to be adapted for selecting the basic flow packages according to the candidate replacement quantity and the quantity of the devices to be adapted, when the residual flow after replacement is less than 0, returning to the unmarked flow packages in the flow package set after the replacement to screen out the candidate packages with the largest flow, continuously calculating the replacement quantity and the residual flow after the replacement until the residual flow after the replacement is equal to 0 or the flows except the basic flow packages in the flow package set after the replacement are all marked, and obtaining a replacement quantity set and a residual flow set after the replacement, wherein each flow package corresponds to one of the replacement quantity and the residual flow after the replacement. When the residual flow after replacement is directly equal to 0, it is described that after the basic flow package is replaced according to the replacement quantity, when the flow in the package just meets the usage flow of the device to be adapted, the candidate flow package can be directly used as the target flow package, and the candidate replacement quantity is directly used as the target replacement quantity N corresponding to the target flow package.
(2) And the server inquires the replaced residual traffic with the traffic quantity of 0 in the replaced residual traffic set.
For example, the server queries whether there is a post-replacement remaining traffic of which the traffic number is 0 in the post-replacement remaining traffic set. And determining the target flow packages needing to be replaced and the target replacement number N through the query result.
(3) And the server screens out target flow packages for replacing the basic flow packages from the flow package set according to the query result, and screens out a target replacement number N corresponding to the target flow packages from the replacement number set.
For example, when the remaining flow after replacement is 0, it is described that after the basic flow package is replaced according to the replacement number, the server may directly use the candidate flow package as the target flow package and directly use the candidate replacement number as the target replacement number N corresponding to the target flow package when the flow in the package just meets the usage flow of the device to be adapted. When the post-replacement residual flow with the flow quantity of 0 does not exist in the post-replacement residual flow set, it is indicated that the post-replacement residual flow is less than 0, and it is indicated that the total flow quantity contained in the post-replacement candidate flow package and the basic flow package is the flow quantity exceeding the flow pool, therefore, in this case, only the post-replacement residual flow with the least flow quantity exceeding the flow pool needs to be screened out from the post-replacement residual flow set, and since the post-replacement residual flow in the post-replacement residual flow set is less than 0, only the largest post-replacement residual flow needs to be screened out from the post-replacement residual flow set, the candidate flow package corresponding to the largest post-replacement residual flow is taken as the target flow package, and the target replacement quantity N corresponding to the target flow package is screened out from the replacement quantity set.
206. And the server replaces the N basic flow packages with the target flow packages in the initial flow package combination to obtain the flow package combination.
For example, taking an example that an initial traffic package combination includes M basic traffic packages, the server screens out N basic traffic packages from the M basic traffic packages, replaces the N basic traffic packages with target traffic packages, and makes N target traffic packages and (M-N) basic traffic packages exist in the traffic package combination.
207. Server configures flow package for equipment to be adapted based on flow package combination
For example, taking an example that a traffic package combination includes 50 a traffic packages and 20B traffic packages, the server screens 50 devices to be adapted from 70 devices to be adapted, configures an a traffic package for the 50 devices to be adapted, and configures a B traffic package for the remaining 20 devices to be adapted.
The traffic in the traffic package is shared, so that the corresponding number of devices to be adapted can be randomly selected from the devices to be adapted without considering the specific requirements of each device to be adapted individually.
In the configuration process, the post-replacement residual flow preferentially selected in the process of selecting the target flow package is the same as the preset flow threshold, that is, the target flow package with the post-replacement residual flow of 0 is replaced, if the target flow package with the post-replacement residual flow of 0 does not exist, the target flow package with the minimum flow exceeding the flow pool needs to be selected for replacement, so that the flexibility and the adaptation efficiency of flow package adaptation are greatly increased, the flow contained in the package can be guaranteed to be slightly larger than the flow used by the device to be adapted, the out-package flow can be guaranteed to the greatest extent, the waste of the flow can be effectively avoided, and the economy of flow charge settlement of the device to be adapted is improved.
Optionally, after the flow package information is configured on the device to be adapted, the server may further store the flow package combination as the configuration information by using a block chain, so that the flow package combination is conveniently and directly called in other statistical periods under the condition that the total amount of the flow pool is the same as the number of the devices to be adapted. The blockchain is a novel application mode of computer technologies such as distributed data storage, point-to-point transmission, a consensus mechanism and an encryption algorithm. A block chain (Blockchain), which is essentially a decentralized database, is a series of data blocks associated by using a cryptographic method, and each data block contains information of a batch of network transactions, so as to verify the validity (anti-counterfeiting) of the information and generate a next block. The blockchain may include a blockchain underlying platform, a platform product services layer, and an application services layer.
As can be seen from the above, in this embodiment, after receiving a flow package adaptation request, a server in the embodiment carries a statistical period and a flow package set, where the flow package set includes multiple flow packages, obtains the number of devices to be adapted and the flow of a flow pool according to the flow package adaptation request, where the flow of the flow pool is a total flow amount required by the devices to be adapted in the statistical period, and selects a target flow package for each device to be adapted in the flow package set according to the number of devices to be adapted and the flow of the flow pool, so as to obtain a flow package combination, where flows in the flow pool except for the flow package combination do not exceed a preset flow threshold, and configures the flow package for the devices to be adapted based on the flow package combination; according to the scheme, the appropriate target network resource parameter can be selected for each device to be adapted in the network resource parameter set according to the number of the devices to be adapted in the statistical period and the network resources of the network resource pool, so that the flexibility and the configuration efficiency of the network resource parameter configuration can be greatly improved.
In order to better implement the above method, an embodiment of the present invention further provides a network resource parameter configuration apparatus, where the traffic package adapting apparatus may be integrated in an electronic device, such as a server or a terminal, and the terminal may include a tablet computer, a notebook computer, and/or a personal computer.
For example, as shown in fig. 5, the traffic package adapting apparatus may include a receiving unit 301, an obtaining unit 302, a selecting unit 303, and a configuring unit 304 as follows:
(1) a receiving unit 301;
a receiving unit 301, configured to receive a network resource parameter configuration request.
For example, the receiving unit 301 may be specifically configured to directly receive or indirectly receive a network resource parameter configuration request carrying a statistics period and a network resource parameter set, where the network resource parameter configuration request is sent by a terminal corresponding to a user.
(2) An acquisition unit 302;
an obtaining unit 302, configured to obtain, according to the network resource parameter configuration request, the number of devices to be adapted and network resources of the network resource pool.
For example, the obtaining unit 302 may be specifically configured to obtain the number of devices to be adapted according to the received network resource parameter configuration request, and calculate the total amount of network resources required by the devices to be adapted in the statistical period according to the obtained number of devices to be adapted.
(3) A selection unit 303;
a selecting unit 303, configured to select a target network resource parameter for each device to be adapted in the network resource parameter set according to the number of the devices to be adapted and the network resource of the network resource pool, so as to obtain a network resource parameter combination, so that the network resources in the network resource pool except the network resource parameter combination do not exceed a preset network resource threshold.
The selecting unit 303 may further include a screening subunit 3031, a calculating subunit 3032, a determining subunit 3033, and a replacing subunit 3034, as shown in fig. 6, specifically as follows:
a screening subunit 3031, configured to screen out, according to the number to be adapted and the network resources in the network resource pool, basic network resource parameters of the device to be adapted from the network resource parameter set, so as to obtain an initial network resource parameter combination;
a calculating subunit 3032, configured to calculate network resources in the network resource pool except for the initial network resource parameter combination, to obtain remaining network resources;
a determining subunit 3033, configured to determine, when the remaining network resources exceed the preset network resource threshold, a target network resource parameter and a target replacement number N for replacing the basic network resource parameter in the network resource parameter set, so that the remaining network resources do not exceed the preset network resource threshold;
a replacing subunit 3034, configured to replace, in the initial network resource parameter combination, the N basic network resource parameters with the target network resource parameters, so as to obtain a network resource parameter combination.
For example, the screening subunit 3031 screens basic network resource parameters of the device to be adapted from the network resource parameter set according to the number to be adapted and the network resources of the network resource pool to obtain an initial network resource parameter combination, the calculating subunit 3032 calculates network resources in the network resource parameters except for the initial network resource parameter combination to obtain remaining network resources, the determining subunit 3033 determines a target network resource parameter and a target replacement number N for replacing the basic network resource parameter from the network resource parameter set when the remaining network resources exceed a preset network resource threshold value, so that the remaining network resources do not exceed the preset network resource threshold value, and the replacing subunit 3034 replaces the N basic network resource parameters with the target network resource parameters in the initial network resource parameter combination to obtain a network resource parameter combination.
(4) A configuration unit 304;
a configuring unit 304, configured to configure network resource parameters for the device to be adapted based on the network resource parameter combination.
For example, the configuration unit 304 may be specifically configured to screen out network resource parameters corresponding to the to-be-adapted device configuration corresponding to the number of the network resource parameters according to the number of each type of network resource parameters in the network resource parameter combination.
In a specific implementation, the above units may be implemented as independent entities, or may be combined arbitrarily to be implemented as the same or several entities, and the specific implementation of the above units may refer to the foregoing method embodiments, which are not described herein again.
As can be seen from the above, in the embodiment, after the receiving unit 301 receives the network resource parameter configuration request, the network resource parameter configuration request carries a network resource statistics period and a network resource parameter set, the network resource parameter set comprises a plurality of network resource parameters, the obtaining unit 302 obtains the number of the devices to be adapted and the network resources of the network resource pool according to the network resource parameter configuration request, the network resources of the network resource pool are the total amount of network resources required by the devices to be adapted in the statistical period, the selecting unit 303 determines, according to the number of the devices to be adapted and the network resources of the network resource pool, selecting target network resource parameters for each device to be adapted in the network resource parameter set to obtain a network resource parameter combination, the network resources in the network resource pool except the network resource parameter combination do not exceed the preset network resource threshold, and the configuration unit 304 configures the network resource parameters for the device to be adapted based on the network resource parameter combination; according to the scheme, the appropriate target network resource parameter can be selected for each device to be adapted in the network resource parameter set according to the number of the devices to be adapted in the statistical period and the network resources of the network resource pool, so that the flexibility and the configuration efficiency of the network resource parameter configuration can be greatly improved.
An embodiment of the present invention further provides an electronic device, as shown in fig. 7, which shows a schematic structural diagram of the electronic device according to the embodiment of the present invention, specifically:
the electronic device may include components such as a processor 401 of one or more processing cores, memory 402 of one or more computer-readable storage media, a power supply 403, and an input unit 404. Those skilled in the art will appreciate that the electronic device configuration shown in fig. 7 does not constitute a limitation of the electronic device and may include more or fewer components than shown, or some components may be combined, or a different arrangement of components. Wherein:
the processor 401 is a control center of the electronic device, connects various parts of the whole electronic device by various interfaces and lines, performs various functions of the electronic device and processes data by running or executing software programs and/or modules stored in the memory 402 and calling data stored in the memory 402, thereby performing overall monitoring of the electronic device. Optionally, processor 401 may include one or more processing cores; preferably, the processor 401 may integrate an application processor, which mainly handles operating systems, user interfaces, application programs, etc., and a modem processor, which mainly handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 401.
The memory 402 may be used to store software programs and modules, and the processor 401 executes various functional applications and data processing by operating the software programs and modules stored in the memory 402. The memory 402 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application program required by at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data created according to use of the electronic device, and the like. Further, the memory 402 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device. Accordingly, the memory 402 may also include a memory controller to provide the processor 401 access to the memory 402.
The electronic device further comprises a power supply 403 for supplying power to the various components, and preferably, the power supply 403 is logically connected to the processor 401 through a power management system, so that functions of managing charging, discharging, and power consumption are realized through the power management system. The power supply 403 may also include any component of one or more dc or ac power sources, recharging systems, power failure detection circuitry, power converters or inverters, power status indicators, and the like.
The electronic device may further include an input unit 404, and the input unit 404 may be used to receive input numeric or character information and generate keyboard, mouse, joystick, optical or trackball signal inputs related to user settings and function control.
Although not shown, the electronic device may further include a display unit and the like, which are not described in detail herein. Specifically, in this embodiment, the processor 401 in the electronic device loads the executable file corresponding to the process of one or more application programs into the memory 402 according to the following instructions, and the processor 401 runs the application program stored in the memory 402, thereby implementing various functions as follows:
receiving a network resource parameter configuration request, wherein the network resource parameter configuration request carries a network resource counting period and a network resource parameter set, the network resource parameter set comprises a plurality of network resource parameters, acquiring the number of devices to be adapted and network resources of a network resource pool according to the network resource parameter configuration request, wherein the network resources of the network resource pool are the total amount of the network resources required by the devices to be adapted in the counting period, selecting a target network resource parameter for each device to be adapted in the network resource parameter set according to the number of the devices to be adapted and the network resources of the network resource pool, obtaining a network resource parameter combination, enabling the network resources except the network resource parameter combination in the network resource pool not to exceed a preset network resource threshold value, and configuring the network resource parameters for the devices to be adapted based on the network resource parameter combination.
For example, the electronic device directly receives or indirectly receives a network resource parameter configuration request carrying a statistical period and a network resource parameter set, which is sent by a terminal corresponding to a user, acquires the number of devices to be adapted according to the received network resource parameter configuration request, and calculates the total amount of network resources required by the devices to be adapted in the statistical period according to the acquired number of the devices to be adapted. Screening basic network resource parameters of equipment to be adapted from a network resource parameter set according to the quantity to be adapted and network resources of a network resource pool to obtain an initial network resource parameter combination, calculating network resources except the initial network resource parameter combination in the network resource pool to obtain residual network resources, when the residual network resources exceed a preset network resource threshold value, respectively replacing the basic network resource parameters with other network resource parameters in the network resource parameter set according to the quantity of the equipment to be adapted and the network resources of the network resource pool so that the residual network resources do not exceed the preset network resource threshold value, calculating the replacement quantity to be replaced, determining the residual network resources after replacement corresponding to the replacement quantity to obtain a replacement quantity set and a residual network resource set after replacement, wherein the residual network resources after replacement are the network resources except the basic network resource parameters and the other network resource parameters in the network resource pool, and inquiring the replaced residual network resources equal to the preset network resource threshold value in the replaced residual network resource set, screening target network resource parameters for replacing the basic network resource parameters in the network resource parameter set according to the inquiry result, and screening target replacement number N corresponding to the target network resource parameters in the replacement number set. And replacing the N basic network resource parameters with target network resource parameters in the initial network resource parameter combination to obtain a network resource parameter combination, and screening out the network resource parameters corresponding to the equipment to be adapted and configured and corresponding to the quantity of the network resource parameters according to the quantity of the network resource parameters of each type in the network resource parameter combination.
The above operations can be implemented in the foregoing embodiments, and are not described in detail herein.
As can be seen from the above, in the embodiment of the present invention, when receiving a network resource parameter configuration request, the network resource parameter configuration request carries a statistical period of network resources and a network resource parameter set, where the network resource parameter set includes a plurality of network resource parameters, acquiring the number of the devices to be adapted and the network resources of the network resource pool according to the network resource parameter configuration request, the network resources of the network resource pool are the total amount of network resources required by the devices to be adapted in the counting period, and according to the number of the devices to be adapted and the network resources of the network resource pool, selecting target network resource parameters for each device to be adapted in the network resource parameter set to obtain a network resource parameter combination, enabling network resources except the network resource parameter combination in the network resource pool not to exceed a preset network resource threshold value, and configuring network resource parameters for the equipment to be adapted based on the network resource parameter combination; according to the scheme, the appropriate target network resource parameter can be selected for each device to be adapted in the network resource parameter set according to the number of the devices to be adapted in the network resource counting period and the network resources of the network resource pool, so that the flexibility and the configuration efficiency of the network resource parameter configuration can be greatly improved.
It will be understood by those skilled in the art that all or part of the steps of the methods of the above embodiments may be performed by instructions or by associated hardware controlled by the instructions, which may be stored in a computer readable storage medium and loaded and executed by a processor.
To this end, the embodiment of the present invention provides a computer-readable storage medium, in which a plurality of instructions are stored, where the instructions can be loaded by a processor to execute the steps in any one of the network resource parameter configuration methods provided by the embodiments of the present invention. For example, the instructions may perform the steps of:
receiving a network resource parameter configuration request, wherein the network resource parameter configuration request carries a network resource counting period and a network resource parameter set, the network resource parameter set comprises a plurality of network resource parameters, acquiring the number of devices to be adapted and network resources of a network resource pool according to the network resource parameter configuration request, wherein the network resources of the network resource pool are the total amount of the network resources required by the devices to be adapted in the counting period, selecting a target network resource parameter for each device to be adapted in the network resource parameter set according to the number of the devices to be adapted and the network resources of the network resource pool, obtaining a network resource parameter combination, enabling the network resources except the network resource parameter combination in the network resource pool not to exceed a preset network resource threshold value, and configuring the network resource parameters for the devices to be adapted based on the network resource parameter combination.
For example, the electronic device directly receives or indirectly receives a network resource parameter configuration request carrying a statistical period and a network resource parameter set, which is sent by a terminal corresponding to a user, acquires the number of devices to be adapted according to the received network resource parameter configuration request, and calculates the total amount of network resources required by the devices to be adapted in the statistical period according to the acquired number of the devices to be adapted. Screening basic network resource parameters of equipment to be adapted from a network resource parameter set according to the quantity to be adapted and network resources of a network resource pool to obtain an initial network resource parameter combination, calculating network resources except the initial network resource parameter combination in the network resource pool to obtain residual network resources, when the residual network resources exceed a preset network resource threshold value, respectively replacing the basic network resource parameters with other network resource parameters in the network resource parameter set according to the quantity of the equipment to be adapted and the network resources of the network resource pool so that the residual network resources do not exceed the preset network resource threshold value, calculating the replacement quantity to be replaced, determining the residual network resources after replacement corresponding to the replacement quantity to obtain a replacement quantity set and a residual network resource set after replacement, wherein the residual network resources after replacement are the network resources except the basic network resource parameters and the other network resource parameters in the network resource pool, and inquiring the replaced residual network resources equal to the preset network resource threshold value in the replaced residual network resource set, screening target network resource parameters for replacing the basic network resource parameters in the network resource parameter set according to the inquiry result, and screening target replacement number N corresponding to the target network resource parameters in the replacement number set. And replacing the N basic network resource parameters with target network resource parameters in the initial network resource parameter combination to obtain a network resource parameter combination, and screening out the network resource parameters corresponding to the equipment to be adapted and configured and corresponding to the quantity of the network resource parameters according to the quantity of the network resource parameters of each type in the network resource parameter combination.
The above operations can be implemented in the foregoing embodiments, and are not described in detail herein.
Wherein the computer-readable storage medium may include: read Only Memory (ROM), Random Access Memory (RAM), magnetic or optical disks, and the like.
Since the instructions stored in the computer-readable storage medium can execute the steps in any network resource parameter configuration method provided in the embodiments of the present invention, beneficial effects that can be achieved by any network resource parameter configuration method provided in the embodiments of the present invention can be achieved, for details, see the foregoing embodiments, and are not described herein again.
The method, the apparatus and the computer-readable storage medium for configuring network resource parameters provided by the embodiments of the present invention are described in detail above, and a specific example is applied in the present disclosure to explain the principle and the implementation of the present invention, and the description of the above embodiments is only used to help understanding the method and the core idea of the present invention; meanwhile, for those skilled in the art, according to the idea of the present invention, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present invention.

Claims (11)

1. A method for configuring network resource parameters is characterized by comprising the following steps:
receiving a network resource parameter configuration request, wherein the network resource parameter configuration request carries a network resource statistical period and a network resource parameter set, and the network resource parameter set comprises a plurality of network resource parameters;
acquiring the number of the devices to be adapted and network resources of a network resource pool according to the network resource parameter configuration request, wherein the network resources of the network resource pool are the total amount of the network resources required by the devices to be adapted in a statistical period;
selecting a target network resource parameter for each device to be adapted in the network resource parameter set according to the number of the devices to be adapted and network resources of a network resource pool to obtain a network resource parameter combination, so that the network resources except the network resource parameter combination in the network resource pool do not exceed a preset network resource threshold;
and configuring network resource parameters for the equipment to be adapted based on the network resource parameter combination.
2. The method according to claim 1, wherein the selecting a target network resource parameter for each device to be adapted in the network resource parameter set according to the number of the devices to be adapted and the network resource of the network resource pool to obtain a network resource parameter combination, so that the network resources in the network resource pool except the network resource parameter combination do not exceed a preset network resource threshold, comprises:
screening basic network resource parameters of the equipment to be adapted from the network resource parameter set according to the number of the equipment to be adapted and network resources of a network resource pool to obtain an initial network resource parameter combination;
calculating network resources in the network resource pool except the initial network resource parameter combination to obtain residual network resources;
when the residual network resources exceed a preset network resource threshold value, determining a target network resource parameter and a target replacement number N for replacing a basic network resource parameter in the network resource parameter set, so that the residual network resources do not exceed the preset network resource threshold value;
and replacing the N basic network resource parameters with the target network resource parameters in the initial network resource parameter combination to obtain a network resource parameter combination.
3. The method according to claim 2, wherein the determining a target network resource parameter and a target replacement number N for replacing a base network resource parameter in the network resource parameter set so that the remaining network resources do not exceed the preset network resource threshold value comprises:
respectively replacing the basic network resource parameters with other network resource parameters in the network resource parameter set according to the number of the devices to be adapted and the network resources of the network resource pool, so that the remaining network resources do not exceed a preset network resource threshold value, calculating the replacement number to be replaced, determining the replaced remaining network resources corresponding to the replacement number, and obtaining a replacement number set and a replaced remaining network resource set, wherein the replaced remaining network resources are network resources except the basic network resource parameters and the other network resource parameters in the network resource pool;
querying the replaced residual network resources equal to the preset network resource threshold value in the replaced residual network resource set;
and according to the query result, screening target network resource parameters for replacing the basic network resource parameters from the network resource parameter set, and screening a target replacement number N corresponding to the target network resource parameters from the replacement number set.
4. The method according to claim 3, wherein the step of replacing the basic network resource parameter with another network resource parameter in the network resource parameter set according to the number of the devices to be adapted and the network resource of the network resource pool, respectively, so that the remaining network resource does not exceed a preset network resource threshold, the step of calculating a replacement number to be replaced, and determining the remaining network resource after replacement corresponding to the replacement number to obtain a replacement number set and a remaining network resource after replacement comprises:
sequencing the network resource parameters according to the number of the network resources in the network resource parameters in the network resource parameter set;
traversing the sorted network resource parameter set according to the number of the devices to be adapted and the network resources of the network resource pool, so as to replace the basic network resource parameters with other network resource parameters in the network resource parameter set, so that the remaining network resources do not exceed a preset network resource threshold value, calculating the replacement number to be replaced, determining the remaining network resources after replacement corresponding to the replacement number, and obtaining a replacement number set and a remaining network resource set after replacement.
5. The method according to claim 4, wherein the traversing the ordered network resource parameter set according to the number of the devices to be adapted and the network resources of the network resource pool to replace the basic network resource parameter with other network resource parameters in the network resource parameter set, so that the remaining network resources do not exceed a preset network resource threshold, calculating a replacement number to be replaced, and determining the remaining network resources after replacement corresponding to the replacement number to obtain a replacement number set and a remaining network resource after replacement set, comprises:
screening candidate network resource parameters with the largest number of network resources from the sorted network resource parameter set, and marking the candidate network resource parameters from the network resource parameter set;
replacing the basic network resource parameter with the candidate network resource parameter to ensure that the residual network resource does not exceed a preset network resource threshold value, and calculating the number of candidate replacements needing to be replaced;
replacing basic network resource parameters corresponding to the candidate replacement quantity with the candidate network resource parameters according to the quantity of the equipment to be adapted and the network resources of the network resource pool, and calculating the residual network resources after the replacement of the network resource pool;
when the replaced residual network resources are smaller than the preset network resource threshold value, returning to execute the candidate network resource parameters with the largest number of network resources screened from the unmarked network resource parameters in the sorted network resource parameter set until the replaced residual network resources are equal to the preset network resource threshold value or the network resource parameters in the sorted network resource parameter set are all marked, and obtaining a replaced number set and a replaced residual network resource set;
the screening, according to the query result, a target network resource parameter for replacing the basic network resource parameter from the network resource parameter set, and screening a target replacement number N corresponding to the target network resource parameter from the replacement number set, include: and when the residual network resources after replacement are equal to the preset network resource threshold value, taking the candidate network resource parameters as target network resource parameters for replacing the basic network resource parameters, and taking the candidate replacement number as a target replacement number N corresponding to the target network resource parameters.
6. The method according to claim 5, wherein the replacing the basic network resource parameter with the candidate network resource parameter so that the remaining network resource does not exceed a preset network resource threshold value, and calculating the number of candidate replacements to be replaced comprises:
calculating a network resource difference value between the candidate network resource parameter and a basic network resource parameter;
calculating a ratio of the remaining network resources to a network resource difference,
when the ratio has a decimal part, removing the decimal part of the ratio to round the ratio, and taking the rounded ratio as the candidate replacement quantity;
when the ratio does not have a fractional part, the ratio is taken as the candidate replacement number.
7. The method according to claim 5, wherein the step of replacing the basic network resource parameter corresponding to the candidate replacement number with the candidate network resource parameter according to the number of the devices to be adapted and the network resource of the network resource pool, and calculating the remaining network resource after replacement of the network resource pool comprises:
acquiring the quantity of network resources in the parameters in the basic network resource parameters and the candidate network resource parameters;
determining the basic number of the devices to be adapted for selecting basic network resource parameters according to the candidate replacement number and the number of the devices to be adapted;
calculating the total amount of the network resources in the parameters of the basic network resource parameters and the candidate network resource parameters based on the candidate replacement number, the basic number and the number of the network resources in the parameters;
and calculating the network resource difference between the network resources in the network resource pool and the total amount of the network resources in the parameters to obtain the residual network resources after replacement.
8. The method according to claim 3, wherein the screening, according to the query result, a target network resource parameter for replacing the basic network resource parameter from the network resource parameter set, and a target replacement number N corresponding to the target network resource parameter from the replacement number set, includes:
when the replaced residual network resources equal to the preset network resource threshold value exist in the replaced residual network resource set, taking the candidate network resource parameters corresponding to the replaced residual network resources equal to the preset network resource threshold value as target network resource parameters, and screening out a target replacement number N corresponding to the target network resource parameters from the replacement number set;
when the replaced residual network resources equal to the preset network resource threshold value do not exist in the replaced residual network resource set, screening the maximum replaced residual network resources from the replaced residual network resource set, taking the candidate network resource parameters corresponding to the maximum replaced residual network resources as target network resource parameters, and screening the target replacement number N corresponding to the target network resource parameters from the replacement number set.
9. The method of claim 1, further comprising:
and storing the network resource parameter combination to a block chain.
10. A network resource parameter configuration apparatus, comprising:
a receiving unit, configured to receive a network resource parameter configuration request, where the network resource parameter configuration request carries a network resource statistics period and a network resource parameter set, and the network resource parameter set includes multiple network resource parameters;
an obtaining unit, configured to obtain, according to the network resource parameter configuration request, the number of devices to be adapted and network resources of a network resource pool, where the network resources of the network resource pool are a total amount of network resources required by the devices to be adapted in a statistical period;
a selecting unit, configured to select a target network resource parameter for each device to be adapted in the network resource parameter set according to the number of the devices to be adapted and network resources of a network resource pool, so as to obtain a network resource parameter combination, so that network resources in the network resource pool except the network resource parameter combination do not exceed a preset network resource threshold;
and the configuration unit is used for configuring the network resource parameters for the equipment to be adapted based on the network resource parameter combination.
11. A computer readable storage medium, characterized in that, the computer readable storage medium stores a plurality of instructions, which are suitable for being loaded by a processor to execute the steps of the network resource parameter configuration method according to any one of claims 1 to 9.
CN202010349982.0A 2020-04-28 2020-04-28 Network resource parameter configuration method, device and computer readable storage medium Active CN111585798B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010349982.0A CN111585798B (en) 2020-04-28 2020-04-28 Network resource parameter configuration method, device and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010349982.0A CN111585798B (en) 2020-04-28 2020-04-28 Network resource parameter configuration method, device and computer readable storage medium

Publications (2)

Publication Number Publication Date
CN111585798A true CN111585798A (en) 2020-08-25
CN111585798B CN111585798B (en) 2024-03-15

Family

ID=72113176

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010349982.0A Active CN111585798B (en) 2020-04-28 2020-04-28 Network resource parameter configuration method, device and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN111585798B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112615745A (en) * 2020-12-21 2021-04-06 广西东信易联科技有限公司 Method and system for accessing Internet of things card platform to upstream through parameter configuration
CN113596134A (en) * 2021-07-23 2021-11-02 中国联合网络通信集团有限公司 Block chain-based network quality evaluation method, node and block chain
CN115794591A (en) * 2023-02-06 2023-03-14 南方电网数字电网研究院有限公司 Scheduling method of power grid IT (information technology) resources

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110231551A1 (en) * 2010-03-17 2011-09-22 Microsoft Corporation Network resource management with prediction
CN104038941A (en) * 2013-03-06 2014-09-10 中国联合网络通信集团有限公司 Network capacity expansion method and network capacity expansion device
CN106921584A (en) * 2017-03-31 2017-07-04 武汉绿色网络信息服务有限责任公司 A kind of distributed network flow control method
CN108259333A (en) * 2016-12-29 2018-07-06 华为技术有限公司 A kind of BUM flow control methods, relevant apparatus and system
CN108307393A (en) * 2017-08-21 2018-07-20 腾讯科技(深圳)有限公司 Network flow resource sharing method, device, system and storage medium
CN110224944A (en) * 2018-08-01 2019-09-10 武汉绿色网络信息服务有限责任公司 A kind of distributed network flow control method and device

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110231551A1 (en) * 2010-03-17 2011-09-22 Microsoft Corporation Network resource management with prediction
CN104038941A (en) * 2013-03-06 2014-09-10 中国联合网络通信集团有限公司 Network capacity expansion method and network capacity expansion device
CN108259333A (en) * 2016-12-29 2018-07-06 华为技术有限公司 A kind of BUM flow control methods, relevant apparatus and system
CN106921584A (en) * 2017-03-31 2017-07-04 武汉绿色网络信息服务有限责任公司 A kind of distributed network flow control method
CN108307393A (en) * 2017-08-21 2018-07-20 腾讯科技(深圳)有限公司 Network flow resource sharing method, device, system and storage medium
CN110224944A (en) * 2018-08-01 2019-09-10 武汉绿色网络信息服务有限责任公司 A kind of distributed network flow control method and device

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
梁琪炜: "基于运行态势的网络资源优化配置和动态调整技术", 电子科技大学, pages 39 - 46 *

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112615745A (en) * 2020-12-21 2021-04-06 广西东信易联科技有限公司 Method and system for accessing Internet of things card platform to upstream through parameter configuration
CN113596134A (en) * 2021-07-23 2021-11-02 中国联合网络通信集团有限公司 Block chain-based network quality evaluation method, node and block chain
CN113596134B (en) * 2021-07-23 2022-09-02 中国联合网络通信集团有限公司 Block chain-based network quality evaluation method, node and block chain
CN115794591A (en) * 2023-02-06 2023-03-14 南方电网数字电网研究院有限公司 Scheduling method of power grid IT (information technology) resources

Also Published As

Publication number Publication date
CN111585798B (en) 2024-03-15

Similar Documents

Publication Publication Date Title
CN111585798B (en) Network resource parameter configuration method, device and computer readable storage medium
CN108090225B (en) Database instance running method, device and system and computer readable storage medium
CN102404126B (en) Charging method of cloud computing during application process
CN109150607A (en) Classification management-control method and device for block chain network
CN103946831A (en) System, method and program product for cost-aware selection of templates for provisioning shared resources
CN107995006A (en) Real-time Billing System based on message trigger under a kind of cloud environment
CN103106585A (en) Real-time duplication eliminating method and device of product information
CN110852870A (en) Virtual resource transfer method, device, equipment and readable storage medium
CN104679595A (en) Application-oriented dynamic resource allocation method for IaaS (Infrastructure As A Service) layer
CN112700131B (en) AB test method and device based on artificial intelligence, computer equipment and medium
CN105431815A (en) Input-output prioritization for database workload
WO2023287819A1 (en) Reducing the environmental impact of distributed computing
CN108765142A (en) Electronic device, multi-tiling chain integral traffic control method and computer readable storage medium
CN110519317B (en) Data transmission method and equipment
CN110807542A (en) Method, apparatus and computer readable storage medium for intelligently orchestrating system business capabilities
CN111178722B (en) Machine learning system, method and medium suitable for sales lead rating and distribution
US20230342699A1 (en) Systems and methods for modeling and analysis of infrastructure services provided by cloud services provider systems
CN103514412B (en) Build the method and Cloud Server of access control based roles system
CN108416662A (en) A kind of data verification method and device
CN114844791B (en) Cloud service automatic management and distribution method and system based on big data and storage medium
US8363801B2 (en) Charging of circuit-switched voice, SMS, MMS and/or GPRS packet switched data
CN114219629A (en) Fund collection method, device, equipment and medium
CN110677494B (en) Access response method and device
CN110322155A (en) A kind of office resource allocation method, device, equipment and readable storage medium storing program for executing
CN114449466B (en) User charging intelligent monitoring method and device, electronic equipment and storage medium

Legal Events

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