[go: up one dir, main page]

CN114173382B - A method and device for realizing virtual number provider flow control based on random algorithm - Google Patents

A method and device for realizing virtual number provider flow control based on random algorithm Download PDF

Info

Publication number
CN114173382B
CN114173382B CN202111183770.0A CN202111183770A CN114173382B CN 114173382 B CN114173382 B CN 114173382B CN 202111183770 A CN202111183770 A CN 202111183770A CN 114173382 B CN114173382 B CN 114173382B
Authority
CN
China
Prior art keywords
interval
provider
virtual number
fault
virtual
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202111183770.0A
Other languages
Chinese (zh)
Other versions
CN114173382A (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.)
Guangzhou Chenqi Travel Technology Co Ltd
Original Assignee
Guangzhou Chenqi Travel Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangzhou Chenqi Travel Technology Co Ltd filed Critical Guangzhou Chenqi Travel Technology Co Ltd
Priority to CN202111183770.0A priority Critical patent/CN114173382B/en
Publication of CN114173382A publication Critical patent/CN114173382A/en
Application granted granted Critical
Publication of CN114173382B publication Critical patent/CN114173382B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W28/00Network traffic management; Network resource management
    • H04W28/02Traffic management, e.g. flow control or congestion control
    • H04W28/10Flow control between communication endpoints
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/24Querying
    • G06F16/245Query processing
    • G06F16/2455Query execution
    • G06F16/24553Query execution of query operations
    • G06F16/24554Unary operations; Data partitioning operations

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computational Linguistics (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

本发明公开了一种基于随机算法实现虚拟号供应商流量控制的方法及装置,其中方法包括:获取虚拟号供应商数据;基于虚拟号供应商的载荷能力和虚拟号码池的规模,对各供应商的权重进行设置;设置自然数区间,基于供应商的数量和供应商的权重,将自然数区间划分为若干个长度与供应商载荷能力和虚拟号码池的规模相匹配的关联区间;获取网约车订单数据,进行虚拟号通话主被叫号码绑定请求指令,从自然数区间中通过随机算法随机生成一个自然数;将自然数与关联区间进行区间匹配,选取命中的关联区间所关联的供应商作为目标供应商;从目标供应商获取虚拟号,对司机端和乘客端分别进行虚拟号绑定,以建立司乘之间的虚拟号通话。本发明可提高网约车服务中司乘之间虚拟号通话的使用体验。

The present invention discloses a method and device for realizing virtual number supplier flow control based on random algorithm, wherein the method comprises: obtaining virtual number supplier data; setting weights of each supplier based on the load capacity of the virtual number supplier and the scale of the virtual number pool; setting a natural number interval, and dividing the natural number interval into a number of associated intervals whose lengths match the supplier load capacity and the scale of the virtual number pool based on the number of suppliers and the weight of the suppliers; obtaining online car-hailing order data, performing a virtual number call main and called number binding request instruction, and randomly generating a natural number from the natural number interval through a random algorithm; performing interval matching between the natural number and the associated interval, and selecting the supplier associated with the hit associated interval as the target supplier; obtaining a virtual number from the target supplier, and performing virtual number binding on the driver side and the passenger side respectively, so as to establish a virtual number call between the driver and the passenger. The present invention can improve the user experience of virtual number calls between the driver and the passenger in online car-hailing services.

Description

Method and device for realizing flow control of virtual number provider based on random algorithm
Technical Field
The invention relates to the technical field of flow control of virtual number suppliers, in particular to a method and a device for realizing flow control of virtual number suppliers based on a random algorithm.
Background
The telecommunication provider can provide the communication service of the virtual number while providing the communication service of the real telephone number for the user. The virtual number is a real number resource with the same length of one number section of the provider, and the virtual number is different from the real telephone number in use occasion, so that an additional user identity module (such as a SIM card, a UIM card and the like) of an actual entity is not needed when the virtual number is used. In many scenarios, users have a need to answer calls or receive short messages by using virtual numbers, so as to avoid leakage of own real telephone numbers. For example, the virtual number call is applied to a network taxi service in which both a driver and a passenger are strangers to each other.
In the network taxi service, the risk of real information leakage of the driver and the passenger is reduced in a mode of communicating by binding virtual numbers between the driver and the passenger, and when the driver and the passenger need to communicate, the network taxi platform respectively acquires the virtual numbers supplied by suppliers for the driver and the passenger, and the driver and the passenger are respectively bound and communicate with the virtual numbers so as to further communicate with the service condition of the network taxi order.
However, the inventor finds that in the existing virtual number call method, when a plurality of virtual number suppliers exist, the flow distribution among the virtual numbers is unreasonable, so that overload of part of the suppliers is easy to occur, and the rest of the other suppliers is unfavorable for reasonable distribution of resources, and if an average distribution method is adopted, the virtual number supply capacity among the suppliers is also different, and is unreasonable. Therefore, a method for more reasonably controlling the flow of the virtual number provider is needed for the network vehicle platform.
Disclosure of Invention
In order to overcome the technical defect of unreasonable flow distribution of the virtual number provider, the invention provides a method and a device for realizing flow control of the virtual number provider based on a random algorithm.
In order to solve the problems, the invention is realized according to the following technical scheme:
in a first aspect, the present invention discloses a method for implementing flow control of a virtual number provider based on a random algorithm, comprising the following steps:
obtaining virtual number provider data, wherein the virtual number provider data comprises a provider ID, a provider name, the loading capacity of a provider and the scale of a corresponding virtual number pool of the provider;
Setting weights of the suppliers based on the load capacity of the virtual number suppliers and the scale of the virtual number pool;
Setting a natural number interval, and dividing the natural number interval into a plurality of association intervals with lengths matched with the loading capacity of the suppliers and the scale of the virtual number pool based on the number of the suppliers and the weights of the suppliers;
Acquiring network vehicle order data, carrying out virtual number call calling and called number binding request instructions, and randomly generating a natural number from a natural number interval through a random algorithm;
Performing interval matching on the natural number and the associated interval, and selecting a provider associated with the hit associated interval as a target provider;
virtual numbers are obtained from a target provider, and virtual number binding is carried out on a driver end and a passenger end respectively so as to establish virtual number communication between drivers and passengers.
As a preferred implementation, after the selecting the provider associated with the hit association interval as the target provider, the method further includes:
judging whether the target provider can normally provide service;
If yes, obtaining a virtual number from the target provider;
If not, setting the associated interval corresponding to the target provider as a fault state, and updating the fault interval database.
As a preferred implementation, after the interval matching between the natural number and the associated interval, the method further includes:
judging whether a matched hit interval exists in a fault interval database;
if the service provider does not exist, selecting a provider associated with the hit associated section as a target provider;
if so, the step of generating the natural number and interval match is re-executed.
As a preferred implementation, the method further comprises the step of adjusting the interval length, specifically comprising:
Acquiring relevant data of a fault interval in a fault interval database, acquiring the fault frequency and the fault duration of the fault interval, correspondingly shortening the length of the fault interval based on the fault frequency and the fault duration, and correspondingly increasing other stable association intervals.
As a preferred implementation, the method further comprises a fault interval checking step, specifically comprising:
Sequentially acquiring fault intervals in the fault interval database, sequentially performing virtual number acquisition test on virtual number suppliers corresponding to the fault intervals, and removing association intervals corresponding to the suppliers with recovered virtual number supply service from the fault interval database.
In a second aspect, the present invention discloses a device for implementing flow control of a virtual number provider based on a random algorithm, comprising:
the provider acquisition module is used for acquiring virtual number provider data, wherein the virtual number provider data comprises a provider ID, a provider name, the loading capacity of a provider and the scale of a corresponding virtual number pool of the provider;
The weight setting module is used for setting the weight of each provider based on the load capacity of the virtual number provider and the scale of the virtual number pool;
the interval dividing module is used for setting a natural number interval, and dividing the natural number interval into a plurality of association intervals with the lengths matched with the loading capacity of the suppliers and the scale of the virtual number pool based on the number of the suppliers and the weight of the suppliers;
the random selection module is used for acquiring network vehicle order data, carrying out virtual number call calling and called number binding request instructions, and randomly generating a natural number from a natural number interval through a random algorithm;
The interval matching module is used for performing interval matching on the natural number and the associated interval, and selecting a supplier associated with the hit associated interval as a target supplier;
And the call establishment module is used for acquiring the virtual numbers from the target provider, and respectively binding the virtual numbers on the driver side and the passenger side so as to establish the virtual number call between drivers and passengers.
As a preferred implementation, the interval matching module further performs, when running:
judging whether the target provider can normally provide service;
If yes, obtaining a virtual number from the target provider;
If not, setting the associated interval corresponding to the target provider as a fault state, and updating the fault interval database.
As a preferred implementation, the interval matching module further performs, when running:
judging whether a matched hit interval exists in a fault interval database;
if the service provider does not exist, selecting a provider associated with the hit associated section as a target provider;
if so, the step of generating the natural number and interval match is re-executed.
As a preferred implementation, further comprising:
the interval adjustment module is used for acquiring related data of the fault interval in the fault interval database, acquiring the fault frequency and the fault duration of the fault interval, correspondingly shortening the length of the fault interval based on the fault frequency and the fault duration, and correspondingly increasing other stable associated intervals.
As a preferred implementation, further comprising:
The fault checking module is used for sequentially acquiring fault intervals in the fault interval database, sequentially carrying out virtual number acquisition test on the virtual number suppliers corresponding to the fault intervals, and removing the associated intervals corresponding to the suppliers with the recovered virtual number supply service from the fault interval database.
Compared with the prior art, the invention has the beneficial effects that:
The invention carries out random supplier selection through the natural number generated by the random algorithm, realizes random selection of the virtual number suppliers, carries out corresponding setting on the association interval of the virtual number suppliers based on the load capacity of the virtual number suppliers and the scale of the virtual number pool, increases the probability that the random number falls in the management interval of the virtual number suppliers with strong load capacity and large scale of the virtual number pool, and reasonably distributes the resources of the virtual number suppliers so as to realize flow control on the virtual number suppliers through the random algorithm, thereby avoiding the condition that the suppliers are idle or have excessive load, improving the success rate and efficiency of virtual number acquisition and improving the quality of virtual number conversation.
Drawings
The invention is described in further detail below with reference to the attached drawing figures, wherein:
FIG. 1 is a flow chart of a method of implementing virtual number provider flow control based on a stochastic algorithm of the present invention;
fig. 2 is a schematic diagram of an apparatus for implementing virtual number provider flow control based on a stochastic algorithm of the present invention.
Detailed Description
Preferred embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. While the preferred embodiments of the present disclosure are illustrated in the drawings, it should be understood that the present disclosure may be embodied in various forms and should not be limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the disclosure to those skilled in the art.
The term "comprising" and variations thereof as used herein means open ended, i.e., "including but not limited to. The term "or" means "and/or" unless specifically stated otherwise. The term "based on" means "based at least in part on". The terms "one example embodiment" and "one embodiment" mean "at least one example embodiment. The term "another embodiment" means "at least one additional embodiment". The terms "first," "second," and the like, may refer to different or the same object. Other explicit and implicit definitions are also possible below.
The access device and the server may be connected directly or indirectly by wired or wireless communication. The access device may be a terminal or a server. The access device has a target application running thereon. The target application is an application program capable of initiating a data request to a server, such as a social application, a payment application, a gaming application, and the like. The server may be an application server for providing a service to the target application, or may be a proxy server for distinguishing the application server from the application server corresponding to the target application. The server is used for identifying whether each access device belongs to a malicious device or not, and intercepting data messages from the malicious device. When the server is a proxy server, the proxy server forwards data messages not belonging to the malicious device to the application server. The terminal may be a desktop terminal or a mobile terminal, and the mobile terminal may be a smart phone, a tablet computer, a notebook computer, a desktop computer, a smart speaker, a smart watch, or the like, but is not limited thereto. The server and the server can be independent physical servers, can be a server cluster or a distributed system formed by a plurality of physical servers, and can also be cloud servers for providing cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communication, middleware services, domain name services, security services, CDNs, basic cloud computing services such as big data and artificial intelligent platforms.
Example 1
As shown in fig. 1, in a first aspect, an embodiment of the present invention discloses a method for implementing flow control of a virtual number provider based on a random algorithm, including the following steps:
And S1, obtaining virtual number provider data, wherein the virtual number provider data comprises a provider ID, a provider name, the loading capacity of the provider and the scale of a corresponding virtual number pool of the provider.
And S2, setting the weight of each provider based on the load capacity of the virtual number provider and the scale of the virtual number pool.
Specifically, the server analyzes based on the virtual number provider data to obtain the load capacity of the provider and the scale of the number pool, and generates a virtual number provider list, names of the provider, the corresponding load capacity, the number pool scale and the stability of the virtual number provision, wherein the virtual number provider list is sequentially arranged after the load capacity and the number pool scale of the provider are compared with each other, and the weight distribution setting is performed on each virtual number provider based on the virtual number provider list to obtain the weight corresponding to each virtual number provider.
And step S3, setting a natural number interval, and dividing the natural number interval into a plurality of association intervals with lengths matched with the loading capacity of the suppliers and the scale of the virtual number pool based on the number of the suppliers and the weights of the suppliers.
Specifically, the server presets a natural number section, in this embodiment, the range of the preferred natural number section is 1-10000, the server obtains the number of suppliers from the supplier data, equally divides the natural number section based on the number of suppliers to form the number of sections matched with the supplier ID, associates the number of sections with the virtual number suppliers, makes each virtual number supplier have an associated section, and pertinently adjusts the length of the associated section based on the weight of the virtual number supplier, and simultaneously ensures that the overall length of the natural number section does not change. The adjustment is followed by obtaining an association interval matching the weight size of each vendor.
And S4, acquiring network vehicle order data, carrying out virtual number call calling and called number binding request instructions, and randomly generating a natural number from the natural number interval through a random algorithm.
Specifically, the server obtains the order data of the network about car, obtains the real numbers of the driver and the passenger in the network about car service, and when the driver and the passenger need to make a call in the network about car service, the server makes a virtual number call calling and called number binding request instruction, and the server randomly generates a natural number from a natural number interval through a random algorithm.
And S5, carrying out interval matching on the natural number and the associated interval, and selecting the provider associated with the hit associated interval as the target provider.
Specifically, after a natural number is generated, the natural number is subjected to interval matching with the associated interval of each virtual number provider, and the virtual number provider corresponding to the associated interval matched with the natural number is the target provider. However, in some cases, the target provider may not normally provide the virtual number service, and for this reason, as a preferred implementation, after the interval matching between the natural number and the associated interval, the method further includes:
judging whether a matched hit interval exists in a fault interval database;
if the service provider does not exist, selecting a provider associated with the hit associated section as a target provider;
if so, the step of generating the natural number and interval match is re-executed.
After the provider associated with the hit association interval is selected as the target provider, the method further comprises:
judging whether the target provider can normally provide service;
If yes, obtaining a virtual number from the target provider;
If not, setting the associated interval corresponding to the target provider as a fault state, and updating the fault interval database.
By setting the fault interval database, the fault virtual number provider can be removed in time, so that the reliability of the virtual number service is improved.
And S6, obtaining virtual numbers from the target provider, and respectively binding the virtual numbers on the driver side and the passenger side to establish virtual number calls between drivers and passengers.
The present embodiment preferably further includes:
and S7, acquiring related data of the fault interval in the fault interval database, acquiring the fault frequency and the fault duration of the fault interval, correspondingly shortening the length of the fault interval based on the fault frequency and the fault duration, and correspondingly increasing other stable associated intervals.
And S8, sequentially acquiring fault intervals in the fault interval database, sequentially performing virtual number acquisition test on the virtual number suppliers corresponding to the fault intervals, and removing the associated intervals corresponding to the suppliers with the recovered virtual number supply service from the fault interval database.
By setting step S7 and step S8, the length of the association section of the virtual number provider is not fixed, when the stability of the virtual number provider changes, if a fault occurs and the virtual number service cannot be normally provided, the association section corresponding to the virtual number provider temporarily enters the fault section database, and when the fault is detected, the association section is removed if the fault is recovered, but if the virtual number provider has service faults for a long time or frequently, the stability of the virtual number provider can be considered to be obviously reduced, the server can pertinently shorten the length of the association section of the virtual number provider, the more the stability reduction is, the more the shortening is, if the selection of the natural number section is 1-10000, the association sections of other providers with increased stability are increased while the association section is shortened, and the total length of the natural number section is not changed.
In summary, the random provider selection is performed through the natural number generated by the random algorithm, so that the random virtual number provider is selected, and the corresponding setting is performed on the association interval of the virtual number provider based on the load capacity of the virtual number provider and the scale of the virtual number pool, so that the probability that the random number falls in the management interval of the virtual number provider with strong load capacity and large scale of the virtual number pool is increased.
The invention can realize the automatic dynamic adjustment of the management interval through the setting of the association interval of the virtual number provider, and can timely adjust the interval length after the stability of the virtual number provider changes so as to reduce the use frequency of the virtual number provider, and can reasonably allocate the resources of the virtual number provider, thereby realizing the flow control of the virtual number provider through a random algorithm, avoiding the condition that the provider is idle or has too high load, providing more services for the more stable virtual number provider, improving the success rate and efficiency of virtual number acquisition and improving the quality of virtual number conversation.
Other steps of the method for implementing virtual number provider flow control based on a random algorithm described in this embodiment are referred to in the prior art.
Example 2
As shown in fig. 2, in a second aspect, an embodiment of the present invention discloses a device for implementing flow control of a virtual number provider based on a random algorithm, which includes a provider acquisition module M1, a weight setting module M2, a section dividing module M3, a random selection module M4, a section matching module M5, and a call establishment module M6, specifically:
the provider acquisition module M1 is configured to acquire virtual number provider data, where the virtual number provider data includes a provider ID, a provider name, a loading capacity of a provider, and a size of a corresponding virtual number pool of the provider.
The weight setting module M2 is configured to set weights of the providers based on the load capacity of the virtual number provider and the size of the virtual number pool.
The interval dividing module M3 is configured to set a natural number interval, and divide the natural number interval into a plurality of association intervals with lengths matching the loading capacity of the suppliers and the scale of the virtual number pool based on the number of the suppliers and the weights of the suppliers.
The random selection module M4 is used for acquiring network vehicle order data, carrying out virtual number call calling and called number binding request instructions, and randomly generating a natural number from a natural number interval through a random algorithm.
The interval matching module M5 is configured to perform interval matching on the natural number and the associated interval, and select a provider associated with the hit associated interval as a target provider.
The call establishment module M6 is configured to obtain a virtual number from the target provider, and perform virtual number binding on the driver side and the passenger side respectively, so as to establish a virtual number call between drivers and passengers.
The present embodiment preferably further includes:
The interval adjustment module M7 is configured to obtain related data of a fault interval in the fault interval database, obtain a fault frequency and a fault duration of the fault interval, correspondingly shorten a length of the fault interval based on the fault frequency and the fault duration, and correspondingly increase other stable associated intervals.
The fault checking module M8 is configured to sequentially acquire fault intervals in the fault interval database, sequentially perform a virtual number acquisition test on a virtual number provider corresponding to the fault interval, and remove an associated interval corresponding to the provider of the recovered virtual number service from the fault interval database.
Further preferably, when the interval matching module M5 is running, it further performs:
judging whether a matched hit interval exists in a fault interval database;
if the service provider does not exist, selecting a provider associated with the hit associated section as a target provider;
if so, the step of generating the natural number and interval match is re-executed.
Judging whether the target provider can normally provide service;
If yes, obtaining a virtual number from the target provider;
If not, setting the associated interval corresponding to the target provider as a fault state, and updating the fault interval database.
When the device for realizing the flow control of the virtual number provider based on the random algorithm in the embodiment of the invention is operated, all the steps of the method for realizing the flow control of the virtual number provider based on the random algorithm in the embodiment 1 can be realized, the flow control of the virtual number provider is realized, and the diversion of the virtual number provider is more reasonable through the targeted setting of the interval length and the selection mode of the random algorithm, so that the use experience of virtual number conversation is improved.
Other structures of the apparatus for implementing flow control of virtual number provider based on random algorithm described in this embodiment are referred to the prior art.
Example 3
The invention further discloses electronic equipment, at least one processor and a memory in communication connection with the at least one processor, wherein the memory stores instructions which can be executed by the at least one processor, and when the at least one processor executes the instructions, the method concretely comprises the steps of obtaining virtual number provider data, wherein the virtual number provider data comprises a provider ID, a provider name, the load capacity of the provider and the scale of a corresponding virtual number pool of the provider, setting the weight of each provider based on the load capacity of the virtual number provider and the scale of the virtual number pool, setting a natural number interval, dividing the natural number interval into a plurality of association intervals with lengths matched with the load capacity of the provider and the scale of the virtual number pool based on the number of the provider and the weight of the provider, obtaining network car order data, carrying out virtual number call calling and called number binding request instructions, randomly generating a natural number from the natural number interval through a random algorithm, carrying out association between the natural number interval and a target number of the selected virtual number, and the target number of the selected virtual number being used as a driver, and the target number of the driver being respectively matched with the target number of the driver, and the target number of the driver being respectively established.
Example 4
The invention also discloses a storage medium storing a computer program, which is executed by a processor and specifically comprises the steps of obtaining virtual number provider data, wherein the virtual number provider data comprises a provider ID, a provider name, the load capacity of the provider and the scale of a corresponding virtual number pool of the provider, setting the weight of each provider based on the load capacity of the virtual number provider and the scale of the virtual number pool, setting a natural number section, dividing the natural number section into a plurality of association sections with the lengths matched with the load capacity of the provider and the scale of the virtual number pool based on the number of the providers and the weight of the providers, obtaining network vehicle order data, carrying out virtual number call calling and called number binding request instructions, randomly generating a natural number from the natural number section through a random algorithm, carrying out section matching on the natural number and the association section, selecting the provider associated with the association section as a target provider, obtaining virtual number from the target provider, respectively carrying out virtual number binding on a driver end and a passenger end so as to establish the virtual number between the driver end and the passenger end.
The present disclosure may be methods, apparatus, systems, and/or computer program products. The computer program product may include a computer readable storage medium having computer readable program instructions embodied thereon for performing aspects of the present disclosure.
The computer readable storage medium may be a tangible device that can hold and store instructions for use by an instruction execution device. The computer readable storage medium may be, for example, but not limited to, an electronic storage device, a magnetic storage device, an optical storage device, an electromagnetic storage device, a semiconductor storage device, or any suitable combination of the foregoing. More specific examples (a non-exhaustive list) of the computer-readable storage medium include a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), a Static Random Access Memory (SRAM), a portable compact disc read-only memory (CD-ROM), a Digital Versatile Disc (DVD), a memory stick, a floppy disk, a mechanical encoding device, punch cards or intra-groove protrusion structures such as those having instructions stored thereon, and any suitable combination of the foregoing. Computer-readable storage media, as used herein, are not to be construed as transitory signals per se, such as radio waves or other freely propagating electromagnetic waves, electromagnetic waves propagating through waveguides or other transmission media (e.g., optical pulses through fiber optic cables), or electrical signals transmitted through wires.
The computer readable program instructions described herein may be downloaded from a computer readable storage medium to a respective computing/processing device or to an external computer or external storage device over a network, such as the internet, a local area network, a wide area network, and/or a wireless network. The network may include copper transmission cables, fiber optic transmissions, wireless transmissions, routers, firewalls, switches, gateway computers and/or edge servers. The network interface card or network interface in each computing/processing device receives computer readable program instructions from the network and forwards the computer readable program instructions for storage in a computer readable storage medium in the respective computing/processing device.
The computer program instructions for performing the operations of the present disclosure may be assembly instructions, instruction Set Architecture (ISA) instructions, machine-related instructions, microcode, firmware instructions, state setting data, or source or object code written in any combination of one or more programming languages, including an object oriented programming language such as SMALLTALK, C ++, java, or the like and conventional procedural programming languages, such as the "C" language or similar programming languages. The computer readable program instructions may be executed entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any kind of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or may be connected to an external computer (for example, through the Internet using an Internet service provider). In some embodiments, aspects of the present disclosure are implemented by personalizing electronic circuitry, such as programmable logic circuitry, field Programmable Gate Arrays (FPGAs), or Programmable Logic Arrays (PLAs), with state information of computer readable program instructions, which can execute the computer readable program instructions.
Various aspects of the present disclosure are described herein with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems) and computer program products according to embodiments of the disclosure. It will be understood that each block of the flowchart illustrations and/or block diagrams, and combinations of blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer-readable program instructions.
These computer readable program instructions may be provided to a processing unit of a general purpose computer, special purpose computer, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processing unit of the computer or other programmable data processing apparatus, create means for implementing the functions/acts specified in the flowchart and/or block diagram block or blocks. These computer readable program instructions may also be stored in a computer readable storage medium that can direct a computer, programmable data processing apparatus, and/or other devices to function in a particular manner, such that the computer readable medium having the instructions stored therein includes an article of manufacture including instructions which implement the function/act specified in the flowchart and/or block diagram block or blocks.
The computer readable program instructions may also be loaded onto a computer, other programmable data processing apparatus, or other devices to cause a series of operational steps to be performed on the computer, other programmable apparatus or other devices to produce a computer implemented process such that the instructions which execute on the computer, other programmable apparatus or other devices implement the functions/acts specified in the flowchart and/or block diagram block or blocks.
The flowcharts and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of instructions, which comprises one or more executable instructions for implementing the specified logical function(s). In some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The embodiments of the present disclosure have been described above, the foregoing description is illustrative, not exhaustive, and not limited to the embodiments disclosed. Many modifications and variations will be apparent to those of ordinary skill in the art without departing from the scope and spirit of the various embodiments described. The terminology used herein was chosen in order to best explain the principles of the embodiments, the practical application, or the improvement of technology in the marketplace, or to enable others of ordinary skill in the art to understand the embodiments disclosed herein.

Claims (10)

1. A method for implementing flow control of a virtual number provider based on a random algorithm, comprising the steps of:
obtaining virtual number provider data, wherein the virtual number provider data comprises a provider ID, a provider name, the loading capacity of a provider and the scale of a corresponding virtual number pool of the provider;
Setting weights of the suppliers based on the load capacity of the virtual number suppliers and the scale of the virtual number pool;
Setting a natural number interval, and dividing the natural number interval into a plurality of association intervals with lengths matched with the loading capacity of the suppliers and the scale of the virtual number pool based on the number of the suppliers and the weights of the suppliers;
Acquiring network vehicle order data, carrying out virtual number call calling and called number binding request instructions, and randomly generating a natural number from a natural number interval through a random algorithm;
Performing interval matching on the natural number and the associated interval, and selecting a provider associated with the hit associated interval as a target provider;
virtual numbers are obtained from a target provider, and virtual number binding is carried out on a driver end and a passenger end respectively so as to establish virtual number communication between drivers and passengers.
2. The method for implementing flow control of virtual number provider based on random algorithm according to claim 1, wherein after selecting the provider associated with the hit association interval as the target provider, further comprises:
judging whether the target provider can normally provide service;
If yes, obtaining a virtual number from the target provider;
If not, setting the associated interval corresponding to the target provider as a fault state, and updating the fault interval database.
3. The method for implementing flow control of virtual number provider based on random algorithm according to claim 2, wherein after the interval matching between the natural number and the associated interval, further comprises:
judging whether a matched hit interval exists in a fault interval database;
if the service provider does not exist, selecting a provider associated with the hit associated section as a target provider;
if so, the step of generating the natural number and interval match is re-executed.
4. The method for implementing virtual number provider flow control based on random algorithm according to claim 3, further comprising the step of adjusting interval length, specifically comprising:
Acquiring relevant data of a fault interval in a fault interval database, acquiring the fault frequency and the fault duration of the fault interval, correspondingly shortening the length of the fault interval based on the fault frequency and the fault duration, and correspondingly increasing other stable association intervals.
5. The method for implementing flow control of a virtual number provider based on a random algorithm according to claim 4, further comprising a failure interval checking step, specifically comprising:
Sequentially acquiring fault intervals in the fault interval database, sequentially performing virtual number acquisition test on virtual number suppliers corresponding to the fault intervals, and removing association intervals corresponding to the suppliers with recovered virtual number supply service from the fault interval database.
6. An apparatus for implementing flow control of a virtual number provider based on a random algorithm, comprising:
the provider acquisition module is used for acquiring virtual number provider data, wherein the virtual number provider data comprises a provider ID, a provider name, the loading capacity of a provider and the scale of a corresponding virtual number pool of the provider;
The weight setting module is used for setting the weight of each provider based on the load capacity of the virtual number provider and the scale of the virtual number pool;
the interval dividing module is used for setting a natural number interval, and dividing the natural number interval into a plurality of association intervals with the lengths matched with the loading capacity of the suppliers and the scale of the virtual number pool based on the number of the suppliers and the weight of the suppliers;
the random selection module is used for acquiring network vehicle order data, carrying out virtual number call calling and called number binding request instructions, and randomly generating a natural number from a natural number interval through a random algorithm;
The interval matching module is used for performing interval matching on the natural number and the associated interval, and selecting a supplier associated with the hit associated interval as a target supplier;
And the call establishment module is used for acquiring the virtual numbers from the target provider, and respectively binding the virtual numbers on the driver side and the passenger side so as to establish the virtual number call between drivers and passengers.
7. The apparatus for implementing virtual number provider flow control based on a random algorithm of claim 6, wherein the interval matching module, when running, further performs:
judging whether the target provider can normally provide service;
If yes, obtaining a virtual number from the target provider;
If not, setting the associated interval corresponding to the target provider as a fault state, and updating the fault interval database.
8. The apparatus for implementing virtual number provider flow control based on a random algorithm of claim 7, wherein the interval matching module, when running, further performs:
judging whether a matched hit interval exists in a fault interval database;
if the service provider does not exist, selecting a provider associated with the hit associated section as a target provider;
if so, the step of generating the natural number and interval match is re-executed.
9. The apparatus for implementing virtual number provider flow control based on a random algorithm of claim 8, further comprising:
the interval adjustment module is used for acquiring related data of the fault interval in the fault interval database, acquiring the fault frequency and the fault duration of the fault interval, correspondingly shortening the length of the fault interval based on the fault frequency and the fault duration, and correspondingly increasing other stable associated intervals.
10. The apparatus for implementing virtual number provider flow control based on a random algorithm of claim 9, further comprising:
The fault checking module is used for sequentially acquiring fault intervals in the fault interval database, sequentially carrying out virtual number acquisition test on the virtual number suppliers corresponding to the fault intervals, and removing the associated intervals corresponding to the suppliers with the recovered virtual number supply service from the fault interval database.
CN202111183770.0A 2021-10-11 2021-10-11 A method and device for realizing virtual number provider flow control based on random algorithm Active CN114173382B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111183770.0A CN114173382B (en) 2021-10-11 2021-10-11 A method and device for realizing virtual number provider flow control based on random algorithm

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111183770.0A CN114173382B (en) 2021-10-11 2021-10-11 A method and device for realizing virtual number provider flow control based on random algorithm

Publications (2)

Publication Number Publication Date
CN114173382A CN114173382A (en) 2022-03-11
CN114173382B true CN114173382B (en) 2025-03-25

Family

ID=80476846

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111183770.0A Active CN114173382B (en) 2021-10-11 2021-10-11 A method and device for realizing virtual number provider flow control based on random algorithm

Country Status (1)

Country Link
CN (1) CN114173382B (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108667634A (en) * 2017-03-27 2018-10-16 北京嘀嘀无限科技发展有限公司 Communication means, device and storage medium
CN110913083A (en) * 2019-10-12 2020-03-24 中国平安财产保险股份有限公司 Communication line connection method, communication line connection device, computer equipment and storage medium

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP2509294B1 (en) * 2011-04-08 2013-04-03 Meucci Solutions NV A telecommunication network bypass detection system with reduced counter detection risk
CN104080069A (en) * 2014-07-21 2014-10-01 中国电信股份有限公司 Virtual number based method, system and device for third party business
CN104093136B (en) * 2014-07-21 2017-11-10 中国电信股份有限公司 Obtain method and system, the virtual number service platform of virtual-number
CN105491553A (en) * 2015-12-10 2016-04-13 成都工百利自动化设备有限公司 Virtual SIM/USIM card management method
CN110138979A (en) * 2019-04-03 2019-08-16 安徽云之腾智能科技有限公司 A kind of platform communication system of making a reservation based on random virtual number
CN110198382A (en) * 2019-05-09 2019-09-03 北京善义善美科技有限公司 A kind of call processing system and virtual number binding method

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108667634A (en) * 2017-03-27 2018-10-16 北京嘀嘀无限科技发展有限公司 Communication means, device and storage medium
CN110913083A (en) * 2019-10-12 2020-03-24 中国平安财产保险股份有限公司 Communication line connection method, communication line connection device, computer equipment and storage medium

Also Published As

Publication number Publication date
CN114173382A (en) 2022-03-11

Similar Documents

Publication Publication Date Title
CN113435989A (en) Financial data processing method and device
CN110750780B (en) User role permission fusion method, device and equipment based on multi-service system
CN110764881A (en) Distributed system background retry method and device
CN111209306A (en) Business logic judgment method and device, electronic equipment and storage medium
CN111767558B (en) Data access monitoring method, device and system
CN115658098A (en) Upgrading method and device for distributed business processing system
CN111046371A (en) Method, electronic device and computer-readable medium for generating device identification
CN114173382B (en) A method and device for realizing virtual number provider flow control based on random algorithm
CN113515447B (en) Automatic testing method and device for system
CN111343172A (en) Network access authority dynamic processing method and device
CN114285657B (en) Firewall security policy change verification method and device
CN105871982A (en) Content pushing method, device and system
CN112905491B (en) Software test effectiveness analysis method and device
CN113392011B (en) A link segmentation performance testing method and device
CN114253984A (en) Information updating method and device, electronic equipment and storage medium
CN116861397A (en) Request processing method, device, electronic equipment and computer readable medium
CN107766212A (en) Determine the method and device of the installment state of application program
CN107295179A (en) The method and apparatus that a kind of short message is shown
CN115914219A (en) Task request processing method, device, system, readable storage medium and electronic device
CN114331645B (en) Method and system for improving transport capacity utilization rate of network appointment car
CN113452771B (en) Interface calling method, device and system
CN114219305B (en) Method and system for enhancing stability of network vehicle-closing wind control system
CN116846564B (en) Signature verification method, system, terminal and storage medium supporting multiple algorithms
CN113096298B (en) Network voting method and device
CN111338824B (en) Gray scale release method, 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