CN105072191B - A kind of method and server in determining destinations traffic channel - Google Patents

A kind of method and server in determining destinations traffic channel Download PDF

Info

Publication number
CN105072191B
CN105072191B CN201510524428.0A CN201510524428A CN105072191B CN 105072191 B CN105072191 B CN 105072191B CN 201510524428 A CN201510524428 A CN 201510524428A CN 105072191 B CN105072191 B CN 105072191B
Authority
CN
China
Prior art keywords
communication port
server
task
type
channel
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
CN201510524428.0A
Other languages
Chinese (zh)
Other versions
CN105072191A (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.)
Lazhasi Network Technology Shanghai Co Ltd
Original Assignee
Lazhasi Network Technology Shanghai 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 Lazhasi Network Technology Shanghai Co Ltd filed Critical Lazhasi Network Technology Shanghai Co Ltd
Priority to CN201510524428.0A priority Critical patent/CN105072191B/en
Publication of CN105072191A publication Critical patent/CN105072191A/en
Application granted granted Critical
Publication of CN105072191B publication Critical patent/CN105072191B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/60Scheduling or organising the servicing of application requests, e.g. requests for application data transmissions using the analysis and optimisation of the required network resources
    • H04L67/63Routing a service request depending on the request content or context

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)
  • Telephonic Communication Services (AREA)

Abstract

The embodiment of the invention discloses a kind of methods and server in determining destinations traffic channel.Server obtains the first kind communication port to match with pending task from N number of communication port;In the case where at least one first kind communication port is available communication channel, server determines destinations traffic channel according to the target score of first kind communication port;Wherein, the target score of communication port is that server is obtained according at least to the historic task implementing result of communication port.In the embodiment of the present invention, since the target score of communication port is to execute task result according to the history in each channel to obtain, to be effectively utilized feedback information, so that the calculation basis more science of the target score in each channel is comprehensive, and, during using communication port, server selects suitable communication port as destinations traffic channel according to target score so that the utilization of communication port is more reasonable effective.

Description

A kind of method and server in determining destinations traffic channel
Technical field
The present invention relates to field of communication technology more particularly to a kind of methods and server in determining destinations traffic channel.
Background technology
With the increase of communication service quantity, more and more business are realized by various communication ports.Currently, communication The type in channel includes mainly short message channel, voice channel and Email Channel etc., and service provider can select to pass through short message Channel sends short message to user, can also select to send voice messaging to user by voice channel, or selection passes through mail Channel sends mail to user.The generation of a large amount of various communication ports can provide facility to the user and efficiently service, with this Meanwhile for service provider, communication port how to be selected also to become a problem.
Currently, service provider when selecting communication port supplier, is often based upon the side such as price, brand of communication port The foundation factors in face, to select a communication port supplier that can be met the requirements to a certain extent as final cooperation Supplier.Using the above method, on the one hand, it can make service provider during using communication port, it can not be further Other communication ports are reasonably selected, to optimize cost.On the other hand, service provider in general, can use cooperation Communication port that supplier provides executes corresponding task.However, when a communication port is used only in service provider When executing corresponding task, if the communication port breaks down, the normal operation of operation system can be seriously affected.
To sum up, it is logical can not further to reasonably select other communications in the communication port used by existing service provider Road, and due to the use of communication port it is excessively single so that service provider can not avoid well communication port occur therefore Harmful effect caused by barrier.
Invention content
The embodiment of the present invention provides a kind of method and server in determining destinations traffic channel, to solve existing service Provider can not further reasonably select other communication ports in the communication port used, and due to the use of communication it is logical Road is excessively single so that service provider can not avoid the dysgenic technology caused by communication port failure well Problem.
A kind of method in determining destinations traffic channel provided in an embodiment of the present invention, including:
Server obtains pending mission bit stream;The pending mission bit stream includes the class of the pending task Type;
The server is according to the type of N number of communication port of connection and the type of the pending task, from the N The first kind communication port to match with the pending task is obtained in a communication port;N is the integer more than or equal to 1;
In the case where at least one first kind communication port is available communication channel, the server is according to institute The target score for stating first kind communication port is determined described pending for executing from the first kind communication port The destinations traffic channel of task;Wherein, the target score of communication port is the server according at least to the communication port Historic task implementing result obtains.
Preferably, the target score of the communication port obtains in the following manner:
The server determines the initial value of the communication port according to the competitiveness indicator of the communication port;
The server obtains the historic task implementing result of the communication port;
The server divides according to the historic task implementing result of the communication port and the initial of the communication port Value, obtains the target score of the communication port.
Preferably, after the server obtains the target score of the communication port, further include:
The server determines that the target score of communication port is more than first threshold, then setting the communication port to can Use communication port;
The server is according to the type of N number of communication port of connection and the type of the pending task, from the N The first kind communication port to match with the pending task is obtained in a communication port, including:
The server according to the type of N number of available communication channel of connection and the type of the pending task, from The first kind communication port to match with the pending task is obtained in N number of available communication channel.
Preferably, after the server obtains the target score of the communication port, further include:
The server determines that the target score of communication port is less than or equal to first threshold, then the communication port is arranged For unavailable communication port;
The server receives control instruction, will be set as trying by the unavailable communication port according to the control instruction Use communication port;
The server obtains the task action result of the communication port on probation, in the task of the communication port on probation In the case that implementing result meets setting condition, the communication port on probation is changed to available communication channel.
Preferably, further including:
In the case where the first kind communication port is unavailable communication port, the server waits holding to described The type of row task is converted, and newer pending task is obtained;
The server is obtained according to the type of N number of communication port and the type of the newer pending task To the Second Type communication port to match with the newer pending task;
The server is according to the target score of the Second Type communication port, from the Second Type communication port Determine the destinations traffic channel for executing the newer pending task.
Preferably, the first kind communication port is the communication port for executing short message service, the Second Type Communication port is the communication port for executing speech business;Alternatively,
The first kind communication port is the communication port for executing speech business, the Second Type communication port For the communication port for executing short message service.
Preferably, target score of the server according to the first kind communication port, logical from the first kind After determining the destinations traffic channel for executing pending task in letter channel, further include:
The server obtains the implementing result that the destinations traffic channel executes the pending task;
The server obtains task of failure is executed in the pending task according to the implementing result;
The server is determined according to the target score of the first kind communication port in addition to the destinations traffic channel Go out the communication port for executing the executing failure of the task.
A kind of server provided in an embodiment of the present invention, including:
Acquisition module, for obtaining pending mission bit stream;The pending mission bit stream includes described pending The type of business;
First processing module is used for the type of the type and the pending task according to N number of communication port of connection, The first kind communication port to match with the pending task is obtained from N number of communication port;N is more than or equal to 1 Integer;
Second processing module, for the case where at least one first kind communication port is available communication channel Under, according to the target score of the first kind communication port, determined from the first kind communication port for executing The destinations traffic channel of the pending task;Wherein, the target score of communication port is the server according at least to described What the historic task implementing result of communication port obtained.
Preferably, further including determining target score module;
The determining target score module is used for:
The initial value of the communication port is determined according to the competitiveness indicator of the communication port;
Obtain the historic task implementing result of the communication port;
According to the historic task implementing result of the communication port and the initial value of the communication port, institute is obtained State the target score of communication port.
Preferably, the determining target score module is additionally operable to:
It determines that the target score of communication port is more than first threshold, then sets the communication port to available communication and lead to Road;
The first processing module is specifically used for:
The server according to the type of N number of available communication channel of connection and the type of the pending task, from The first kind communication port to match with the pending task is obtained in N number of available communication channel.
Preferably, the determining target score module is additionally operable to:
It determines that the target score of communication port is less than or equal to first threshold, then the communication port is set as unavailable logical Believe channel;
Control instruction is received, the unavailable communication port will be set to communication on probation according to the control instruction and led to Road;
The task action result for obtaining the communication port on probation, it is full in the task action result of the communication port on probation In the case of sufficient setting condition, the communication port on probation is changed to available communication channel.
Preferably, the Second processing module is additionally operable to:
In the case where the first kind communication port is unavailable communication port, to the class of the pending task Type is converted, and newer pending task is obtained;
According to the type of N number of communication port and the type of the newer pending task, obtain with it is described more The Second Type communication port that new pending task matches;
According to the target score of the Second Type communication port, determine to be used for from the Second Type communication port Execute the destinations traffic channel of the newer pending task.
Preferably, the first kind communication port is the communication port for executing short message service, the Second Type Communication port is the communication port for executing speech business;Alternatively,
The first kind communication port is the communication port for executing speech business, the Second Type communication port For the communication port for executing short message service.
Preferably, the Second processing module is additionally operable to:
Obtain the implementing result that the destinations traffic channel executes the pending task;
According to the implementing result, task of failure is executed in the pending task is obtained;
According to the target score of the first kind communication port in addition to the destinations traffic channel, determine for executing The communication port of the executing failure of the task.
In the above embodiment of the present invention, server obtains pending mission bit stream, and according to N number of communication port of connection Type and the pending task type, obtain matching with the pending task from N number of communication port First kind communication port;N is the integer more than or equal to 1;It is available logical at least one first kind communication port In the case of believing channel, the server leads to according to the target score of the first kind communication port from the first kind The destinations traffic channel for executing the pending task is determined in letter channel;Wherein, the target score of communication port is The server is obtained according at least to the historic task implementing result of the communication port.In the embodiment of the present invention, due to logical The target score in letter channel is to execute task result according to the history in each channel to obtain, to be effectively utilized feedback letter Breath so that the calculation basis of the target score in each channel more science is comprehensive, in addition, server is first according to communication port The type of type and pending task filters out the first kind communication port to match with pending task, after reducing The continuous range of choice that destinations traffic channel is determined according to the target score of communication port, reduces the processing load of server;And And during using communication port, server selects suitable communication port as destinations traffic according to target score Channel so that the utilization of communication port is more reasonable effective.
Description of the drawings
To describe the technical solutions in the embodiments of the present invention more clearly, make required in being described below to embodiment Attached drawing is briefly introduced, it should be apparent that, drawings in the following description are only some embodiments of the invention, for this For the those of ordinary skill in field, without having to pay creative labor, it can also be obtained according to these attached drawings His attached drawing.
Fig. 1 is a kind of method schematic diagram in determining destinations traffic channel provided in an embodiment of the present invention;
Fig. 2 is a kind of structural schematic diagram of server provided in an embodiment of the present invention.
Specific implementation mode
To make the objectives, technical solutions, and advantages of the present invention clearer, below in conjunction with attached drawing to the present invention make into It is described in detail to one step, it is clear that described embodiments are only a part of the embodiments of the present invention, rather than whole implementation Example.Based on the embodiments of the present invention, obtained by those of ordinary skill in the art without making creative efforts All other embodiment, shall fall within the protection scope of the present invention.
Fig. 1 is the method schematic diagram in determining destinations traffic channel provided in an embodiment of the present invention, and this method includes:
Step 101, server obtains pending mission bit stream;The pending mission bit stream includes described pending The type of business;
Step 102, the server is according to the type of N number of communication port of connection and the class of the pending task Type obtains the first kind communication port to match with the pending task from N number of communication port;N be more than etc. In 1 integer
Step 103, in the case where at least one first kind communication port is available communication channel, the service Device is determined from the first kind communication port for executing according to the target score of the first kind communication port State the destinations traffic channel of pending task;Wherein, the target score of communication port is the server according at least to described logical What the historic task implementing result in letter channel obtained.
Terminal in the embodiment of the present invention can be for mobile phone terminal, PC (personal computer, personal computer) eventually The terminals such as end, tablet terminal.Communication port in the embodiment of the present invention include short message channel, voice channel, Email Channel and Other communication ports.Server in the embodiment of the present invention can be the service platform system of service provider.
In the embodiment of the present invention, the target score of communication port be used for for server selection target communication port provide according to According to, the target score of communication port is bigger, then server be selected as destinations traffic channel probability it is bigger, conversely, service The probability that device is selected as destinations traffic channel is smaller.For example, server is logical for a certain pending task choosing destinations traffic When road, alternative communication port includes communication port m and communication port n, wherein the target score of communication port m is 7, communication The target score of channel n is 3, then it is 70% that server, which selects communication port m as the probability in destinations traffic channel, selection communication Channel n is 30% as the probability in destinations traffic channel.
In a step 102, the communication port that server is connected can be that two or more communication ports are supplied Quotient provide multiple communication ports so that server using communication port execution task during, can be in difference The communication port that is provided of communication port supplier in the range of select.It should be noted that avoid use cost The number of excessively high and other factors needed to be considered, communication port supplier also should be not excessive, can be by people in the art Member is rule of thumb and business demand is rationally arranged.Similarly, the number of communication port also can be by those skilled in the art Rule of thumb and business demand is rationally arranged.
In the embodiment of the present invention, server is connected with multiple communication ports, so that multiple communication ports can be mutual Mutually back up, effectively prevent due to a certain communication port breaks down and the problem of cause business that can not execute.
In the embodiment of the present invention, what the target score of the communication port can obtain in the following manner:Server root The initial value of the communication port is determined according to the competitiveness indicator of the communication port, and the history for obtaining the communication port is appointed It is engaged in implementing result, and then according to the historic task implementing result of the communication port and the initial value of the communication port, Obtain the target score of the communication port.
In the embodiment of the present invention, the competitiveness indicator of communication port may include the price competitiveness of communication port, service water Equality index can also include the indexs such as the brand factors of communication port, alternatively, can also be according to by those skilled in the art's reality Border situation chooses competitiveness indicator appropriate, and the embodiment of the present invention is without limitation.
Specifically, when the competitiveness indicator of communication port may include the price competitiveness, service level, brand of communication port Because of the period of the day from 11 p.m. to 1 a.m, server can determine the initial value of communication port by following formula:
Score=(1-xscore1+yscore2) * score3 ... formula (1)
Wherein, score is the initial value of the communication port;Score1 is the price competitiveness of the communication port, Value range is [0,1];Score2 is the service level of the communication port, and value range is [0,1];Score3 is described logical Believe that the brand factors in channel, value range are [1,10];X, y is weighted value, 0≤x≤1,0≤y≤1, and x+y=1, x, y's Specific value can be configured according to actual conditions.
In the embodiment of the present invention, the service level and brand factors of communication port can be by those skilled in the art rule of thumb Or it is configured after investigation actual conditions.
The price competitiveness of the communication port can be determined by following formula:
Score1=(price1-price)/price ... formula (2)
Wherein, price1 is the price of the communication port of communication port supplier setting, and price sets for service provider The expected price set.
For example, weighted value x=0.3, y=0.7 is respectively set, the price that communication port a is calculated by formula (2) is competing It is 0.2 to strive power, and the value of the service level of communication port a is 0.8, and the value of the brand factors of communication port a is 9, according to public affairs The initial value that communication port a can be calculated in formula (1) is 13.5.
In the embodiment of the present invention, for any one communication port, an initial value can be obtained through the above way, Under normal circumstances, in the case where the indexs such as price competitiveness, service level, brand factors remain unchanged, at the beginning of communication port Beginning score value is also changeless.
Before step 101, server establishes a connection with N number of communication port, and obtains the first of each communication port Beginning score value, before the statistical information for being not yet collected into each communication port execution task, server is first according to each communication The initial value in channel selects the communication port for executing task, in order to collect the statistical information of each communication port simultaneously Storage.At this point, the initial value of communication port is used to provide foundation for server selection target communication port, at the beginning of communication port Beginning score value is bigger, then server be selected as the communication port for executing pending task probability it is bigger, conversely, service The probability that device is selected as the communication port for executing pending task is smaller.
It, can be logical according to the communication after server is collected and stores the statistical information that suitable history executes task result The statistical information in road and the initial value of communication port, obtain the target score of communication port.Specifically, server according to The statistical information of communication port is adjusted the initial value of communication port, and the score value after adjusting is target score.
As described above, for determining that the foundation of the target score of communication port includes in the embodiment of the present invention:Communication port Initial value, communication port history execute task result statistical information.Wherein, communication port history executes task result Statistical information includes but not limited to the time that communication port executes the success rate of task and communication port execution required by task is wanted.It is logical Believe that the initial value in channel and the statistical information that communication port executes task may be used a variety of storage formats and stored, such as Database form, the embodiment of the present invention are without limitation.
For using database form storage above- mentioned information, initial point of communication port is stored in information database Value, communication port execute the success rate of task, communication port executes the time and communication port execution task that required by task is wanted Expected time.As shown in table 1.
Table 1:The content of tables of data in information database
Table 1 is only a kind of example of the information of information data library storage in practical applications as needed can be in table 1 On the basis of carry out additions and deletions.
In the embodiment of the present invention, after a certain communication port has executed a task, the obtained communication can will be counted The success rate and communication port of the execution task in channel execute the information updates such as the time that required by task is wanted to information database In, in order to subsequently use.
In the embodiment of the present invention, server obtains initial value and the communication of communication port by access information database After channel executes the statistical information of task, the target score of communication port can be obtained according to following formula:
ScoreA=score+pscore3-qscore4 ... formula (3)
Wherein, scoreA is the target score of the communication port;Score3 be the communication port execute task at Power, value range are [0,1];Score4 is the time that communication port execution required by task is wanted to subtract the communication port The expected time obtained difference of execution task executes the ratio of the expected time of task, value range with the communication port For [0,1];P, q is weighted value, 0≤p≤1,0≤q≤1, and the specific value of p+q=1, p, q can be carried out according to actual conditions Setting.
By above-mentioned formula (3), the success rate of task is executed using communication port and communication port executes required by task The statistical informations such as the time wanted are adjusted the initial value of communication port, obtain the target score of communication port.Communication is logical The success rate that road executes task is higher, and target score is bigger;The time that communication port execution required by task is wanted is longer, target score It is smaller.
In the embodiment of the present invention, server can obtain each communication port history according to the setting period and execute task knot The statistical information of fruit, and then the target score of each communication port is periodically calculated, to constantly update each communication port Target score, so that the target score of communication port can more accurately reflect the current actual conditions of communication port.
In the embodiment of the present invention, in the target score for determining communication port, the content of foundation includes the first of communication port Beginning score value and communication port history execute the statistical information of task result, it can be seen that the calculation basis of target score is more complete Face, thus to determine that target score provides technical basis from multi-angle, and then ensure that the accuracy of the target score.
In the embodiment of the present invention, after server obtains the target score of communication port, further include:Server determines communication The target score in channel is more than first threshold, then sets the communication port to available communication channel;
Correspondingly, server can exclude unavailable communication port according to the state for the communication port determined, according only to even The type of the type of the N number of available communication channel connect and the pending task is obtained from N number of available communication channel The first kind communication port to match with the pending task.Using aforesaid way, by the available of communication port and not Primary screening can be carried out with situation, reduce the matching range during type matching, the processing that can reduce processor is negative Load.
In the embodiment of the present invention, after server obtains the target score of communication port, further include:Server determines communication The target score in channel is less than or equal to first threshold, then sets the communication port to unavailable communication port;Server connects Control instruction is received, the unavailable communication port will be set to communication port on probation according to the control instruction;Described in acquisition The task action result of communication port on probation, the case where the task action result of the communication port on probation meets setting condition Under, the communication port on probation is changed to available communication channel.
In the embodiment of the present invention, for any one communication port, it is assumed that be communication port b, may be unavailable communication Channel, it is also possible to be available communication channel.When communication port b is unavailable communication port, there is no be determined communication port b For the possibility in the destinations traffic channel for executing pending task;When communication port b is available communication channel, communication is logical Road b there is a possibility that be confirmed as the destinations traffic channel for executing pending task.In communication port b by unavailable logical It is communication port on probation the embodiment of the invention also includes communication port b during letter channel is changed to available communication channel, In, communication port on probation refers to assigning a new initial value for communication port b, which is more than first threshold And the initial value determined originally less than communication port b.That is, when communication port b is communication port on probation, communication is logical There is also the possibilities for being confirmed as the destinations traffic channel for executing pending task by road b, but the possibility is significantly lower than Possibility when it is available communication channel.
Specifically, server is according to the target score for the communication port determined, the state of more new communications channel:If clothes Business device determines that the target score of communication port b is less than or equal to first threshold, then illustrates current in poor shape of communication port b, no Suitable for executing task, at this time communication port b can be set to unavailable communication port, and send out alarm information, to prompt work People communication channel b break down so that staff can according to alarm information to communication port b carry out check and it is whole It repaiies.Staff can send out control instruction after completing to the inspection and trimming of communication port b to server, for notifying clothes Business device communication port b has restored.Server is set as communication port on probation after receiving control instruction, by communication port b.
In the embodiment of the present invention, server sets communication port b to communication port on probation, so that communication port b With the possibility for being selected as destinations traffic channel, tested with the ability of the execution task to communication port, and energy Reduce leads to the risk for executing mission failure because communication port b not yet restores completely.
Server obtains the execution task that communication port b executes task within the trial period after the time by setting Success rate, execute the statistical informations such as time of required by task, if server has determined communication port b according to the statistical information Reach or extremely executed in normal state close to it ability of task, is then changed to communication port b by communication port on probation Available communication channel.
In the embodiment of the present invention, server determines the state of communication port according to target score, in the target of communication port When score value is relatively low, communication close channel, and send out warning information, so as to effectively avoiding communication port supplier from conceaing or Slow report failure causes the loss of business, and staff in time overhauls the communication port to go wrong. On the other hand, after communication port overhauls, communication port is first set as communication port on probation by server, with to communication port The ability of execution task tested, and after meeting setting condition, communication port is reverted into available communication channel, reduced The risk for causing to execute mission failure is caused because maintenance is unqualified.
In step 103, server is according to the target score of first kind communication port, from first kind communication port It determines the destinations traffic channel for executing pending task, to realize intelligent selection channel, is not necessarily to manual intervention.
The type of pending task includes business, the business of sound-type or the mail that pending task is short message type The business etc. of type.Server is first according to the type of N number of communication port and the type of pending task, from described N number of logical Letter obtains the first kind communication port to match with the pending task in channel.For example, if pending task is short message The business of type, then server is according to the type of each communication port, the short message channel that selection matches with pending task, work For first kind communication port.
Whether can be available logical to each first kind communication port after server determines first kind communication port Letter channel judged, and in the case where at least one first kind communication port is available communication channel, according to described the The target score of one type communication port determines the mesh for executing pending task from the first kind communication port Mark communication port.
In the embodiment of the present invention, server is first according to the type of communication port and the type of pending task, screening Go out the first kind communication port to match with pending task, it is true subsequently according to the target score of communication port to reduce Set the goal the range of choice of communication port, reduces the processing load of server;Moreover, server selects to use according to target score In the destinations traffic channel for executing pending task, intelligent selection communication port is realized, is not necessarily to manual intervention.
If the server determine that each first kind communication port is unavailable communication port, then to described pending The type of business is converted, and obtains newer pending task, and according to the type of N number of communication port and the update Pending task type, obtain the Second Type communication port to match with the newer pending task, Jin Ergen According to the target score of the Second Type communication port, determined from the Second Type communication port for execute it is described more The destinations traffic channel of new pending task.
In the embodiment of the present invention, first kind communication port is the communication port for executing short message service, Second Type Communication port is the communication port for executing speech business;Alternatively, first kind communication port is for executing speech business Communication port, Second Type communication port is communication port for executing short message service.
Assuming that current pending task is speech business, type and current pending task of the server according to each channel Type, obtain match with the speech business two voice channels, respectively voice channel 1 and voice channel 2.If language Sound channel 1 and voice channel 2 are available communication channel, then server is according to the target of voice channel 1 and voice channel 2 point Value determines in voice channel 1 or voice channel 2 as the destinations traffic channel of the execution speech business;If voice channel 1 is Available communication channel, and voice channel 2 is unavailable communication port, then at this point, server can directly determine that voice channel 1 is to hold The destinations traffic channel of the row speech business;If voice channel 1 and voice channel 2 are unavailable communication port, service Current speech business can be converted to short message service by device, and according to the type in each channel, be obtained and transformed short message industry The short message channel that business matches, and then according to the target score of each short message channel, determine for executing transformed short message industry The destinations traffic channel of business.
Similarly, in the embodiment of the present invention, in the case where short message channel is unavailable communication port, server also may be used Speech business is converted to short message service, and then pending task is executed by voice channel.
Using the above method, it is unavailable communication port that the embodiment of the present invention, which realizes the communication port in a certain type, Situation completes pending task using another type of communication port, not only by converting the type of pending task Realize intelligent selection communication port, be not necessarily to the effect of manual intervention, and further reduced because communication port is unavailable or Break down and caused by lose.
In the embodiment of the present invention, server is according to the target score of the first kind communication port, from the first kind After determining the destinations traffic channel for executing pending task in type communication port, further include:Described in server obtains Destinations traffic channel executes the implementing result of the pending task, and according to the implementing result, obtains described pending The task of failure is executed in business, then, server is according to the first kind communication port in addition to the destinations traffic channel Target score determines the communication port for executing the executing failure of the task.
Specifically, in the process for executing pending task by destination channel, server monitors pending task in real time Executive condition obtains the executing failure of the task, and according to except target if finding to have partial task to execute failure in implementation procedure The target score of first kind communication port except communication port reselects communication port to execute the execution failure Task.By the above-mentioned means, the embodiment of the present invention realizes, multiple communication ports are spare each other, and server passes through monitor task Executive condition, and reselect communication port and carry out the task that execution part executes failure, execution task is improved on the whole Success rate.
In the above embodiment of the present invention, server obtains pending mission bit stream, and according to N number of communication port of connection Type and the pending task type, obtain matching with the pending task from N number of communication port First kind communication port;N is the integer more than or equal to 1;It is available logical at least one first kind communication port In the case of believing channel, the server leads to according to the target score of the first kind communication port from the first kind The destinations traffic channel for executing the pending task is determined in letter channel;Wherein, the target score of communication port is The server is obtained according at least to the historic task implementing result of the communication port.In the embodiment of the present invention, due to logical The target score in letter channel is to execute task result according to the history in each channel to obtain, to be effectively utilized feedback letter Breath so that the calculation basis of the target score in each channel more science is comprehensive, in addition, server is first according to communication port The type of type and pending task filters out the first kind communication port to match with pending task, after reducing The continuous range of choice that destinations traffic channel is determined according to the target score of communication port, reduces the processing load of server;And And during using communication port, server selects suitable communication port as destinations traffic according to target score Channel so that the utilization of communication port is more reasonable effective.
For above method flow, the embodiment of the present invention also provides a kind of device of the identification invalid light path of infrared touch panel, The particular content of the device is referred to above method implementation, and details are not described herein.
Fig. 2 is a kind of structural schematic diagram of server provided in an embodiment of the present invention, which includes:
Acquisition module 201, for obtaining pending mission bit stream;The pending mission bit stream includes described pending The type of task;
First processing module 202 is used for the class of the type and the pending task according to N number of communication port of connection Type obtains the first kind communication port to match with the pending task from N number of communication port;N be more than etc. In 1 integer;
Second processing module 203, in the feelings that at least one first kind communication port is available communication channel Under condition, according to the target score of the first kind communication port, determined from the first kind communication port for holding The destinations traffic channel of the row pending task;Wherein, the target score of communication port is the server according at least to institute State what the historic task implementing result of communication port obtained.
Preferably, further including determining target score module 204;
The determining target score module 204 is used for:
The initial value of the communication port is determined according to the competitiveness indicator of the communication port;
Obtain the historic task implementing result of the communication port;
According to the historic task implementing result of the communication port and the initial value of the communication port, institute is obtained State the target score of communication port.
Preferably, the determining target score module 204 is additionally operable to:
It determines that the target score of communication port is more than first threshold, then sets the communication port to available communication and lead to Road;
The first processing module 202 is specifically used for:
The server according to the type of N number of available communication channel of connection and the type of the pending task, from The first kind communication port to match with the pending task is obtained in N number of available communication channel.
Preferably, the determining target score module 204 is additionally operable to:
It determines that the target score of communication port is less than or equal to first threshold, then the communication port is set as unavailable logical Believe channel;
Control instruction is received, the unavailable communication port will be set to communication on probation according to the control instruction and led to Road;
The task action result for obtaining the communication port on probation, it is full in the task action result of the communication port on probation In the case of sufficient setting condition, the communication port on probation is changed to available communication channel.
Preferably, the Second processing module 203 is additionally operable to:
In the case where the first kind communication port is unavailable communication port, to the class of the pending task Type is converted, and newer pending task is obtained;
According to the type of N number of communication port and the type of the newer pending task, obtain with it is described more The Second Type communication port that new pending task matches;
According to the target score of the Second Type communication port, determine to be used for from the Second Type communication port Execute the destinations traffic channel of the newer pending task.
Preferably, the first kind communication port is the communication port for executing short message service, the Second Type Communication port is the communication port for executing speech business;Alternatively,
The first kind communication port is the communication port for executing speech business, the Second Type communication port For the communication port for executing short message service.
Preferably, the Second processing module 203 is additionally operable to:
Obtain the implementing result that the destinations traffic channel executes the pending task;
According to the implementing result, task of failure is executed in the pending task is obtained;
According to the target score of the first kind communication port in addition to the destinations traffic channel, determine for executing The communication port of the executing failure of the task.
It can be seen from the above:
In the above embodiment of the present invention, server obtains pending mission bit stream, and according to N number of communication port of connection Type and the pending task type, obtain matching with the pending task from N number of communication port First kind communication port;N is the integer more than or equal to 1;It is available logical at least one first kind communication port In the case of believing channel, the server leads to according to the target score of the first kind communication port from the first kind The destinations traffic channel for executing the pending task is determined in letter channel;Wherein, the target score of communication port is The server is obtained according at least to the historic task implementing result of the communication port.In the embodiment of the present invention, due to logical The target score in letter channel is to execute task result according to the history in each channel to obtain, to be effectively utilized feedback letter Breath so that the calculation basis of the target score in each channel more science is comprehensive, in addition, server is first according to communication port The type of type and pending task filters out the first kind communication port to match with pending task, after reducing The continuous range of choice that destinations traffic channel is determined according to the target score of communication port, reduces the processing load of server;And And during using communication port, server selects suitable communication port as destinations traffic according to target score Channel so that the utilization of communication port is more reasonable effective.
It should be understood by those skilled in the art that, the embodiment of the present invention can be provided as method or computer program product. Therefore, complete hardware embodiment, complete software embodiment or embodiment combining software and hardware aspects can be used in the present invention Form.It is deposited moreover, the present invention can be used to can be used in the computer that one or more wherein includes computer usable program code The shape for the computer program product implemented on storage media (including but not limited to magnetic disk storage, CD-ROM, optical memory etc.) Formula.
The present invention be with reference to according to the method for the embodiment of the present invention, the flow of equipment (system) and computer program product Figure and/or block diagram describe.It should be understood that can be realized by computer program instructions every first-class in flowchart and/or the block diagram The combination of flow and/or box in journey and/or box and flowchart and/or the block diagram.These computer programs can be provided Instruct the processor of all-purpose computer, special purpose computer, Embedded Processor or other programmable data processing devices to produce A raw machine so that the instruction executed by computer or the processor of other programmable data processing devices is generated for real The device for the function of being specified in present one flow of flow chart or one box of multiple flows and/or block diagram or multiple boxes.
These computer program instructions, which may also be stored in, can guide computer or other programmable data processing devices with spy Determine in the computer-readable memory that mode works so that instruction generation stored in the computer readable memory includes referring to Enable the manufacture of device, the command device realize in one flow of flow chart or multiple flows and/or one box of block diagram or The function of being specified in multiple boxes.
These computer program instructions also can be loaded onto a computer or other programmable data processing device so that count Series of operation steps are executed on calculation machine or other programmable devices to generate computer implemented processing, in computer or The instruction executed on other programmable devices is provided for realizing in one flow of flow chart or multiple flows and/or block diagram one The step of function of being specified in a box or multiple boxes.
Although preferred embodiments of the present invention have been described, it is created once a person skilled in the art knows basic Property concept, then additional changes and modifications may be made to these embodiments.So it includes excellent that the following claims are intended to be interpreted as It selects embodiment and falls into all change and modification of the scope of the invention.
Obviously, various changes and modifications can be made to the invention without departing from essence of the invention by those skilled in the art God and range.In this way, if these modifications and changes of the present invention belongs to the range of the claims in the present invention and its equivalent technologies Within, then the present invention is also intended to include these modifications and variations.

Claims (12)

1. a kind of method in determining destinations traffic channel, which is characterized in that including:
Server obtains pending mission bit stream;The pending mission bit stream includes the type of the pending task;
The server is according to the type of N number of communication port of connection and the type of the pending task, from described N number of logical Letter obtains the first kind communication port to match with the pending task in channel;N is the integer more than or equal to 1;
In the case where at least one first kind communication port is available communication channel, the server is according to described the The target score of one type communication port is determined from the first kind communication port for executing the pending task Destinations traffic channel;Wherein, the target score of communication port is history of the server according at least to the communication port What task action result obtained;
In the case where the first kind communication port is unavailable communication port, the server is to described pending The type of business is converted, and newer pending task is obtained;
The server according to the type of N number of communication port and the type of the newer pending task, obtain with The Second Type communication port that the newer pending task matches;
The server is determined according to the target score of the Second Type communication port from the Second Type communication port Go out the destinations traffic channel for executing the newer pending task.
2. the method as described in claim 1, which is characterized in that the target score of the communication port is to obtain in the following manner It arrives:
The server determines the initial value of the communication port according to the competitiveness indicator of the communication port;
The server obtains the historic task implementing result of the communication port;
The server according to the historic task implementing result of the communication port and the initial value of the communication port, Obtain the target score of the communication port.
3. method as claimed in claim 2, which is characterized in that the server obtain the communication port target score it Afterwards, further include:
The server determines that the target score of communication port is more than first threshold, then the communication port is set as available logical Believe channel;
The server is according to the type of N number of communication port of connection and the type of the pending task, from described N number of logical Letter obtains the first kind communication port to match with the pending task in channel, including:
The server is according to the type of N number of available communication channel of connection and the type of the pending task, from the N The first kind communication port to match with the pending task is obtained in a available communication channel.
4. method as claimed in claim 2, which is characterized in that the server obtain the communication port target score it Afterwards, further include:
The server determines that the target score of communication port is less than or equal to first threshold, then sets not the communication port to Available communication channel;
The server receives control instruction, the unavailable communication port will be set as on probation logical according to the control instruction Believe channel;
The server obtains the task action result of the communication port on probation, in the task execution of the communication port on probation As a result in the case of meeting setting condition, the communication port on probation is changed to available communication channel.
5. the method as described in claim 1, which is characterized in that the first kind communication port is for executing short message service Communication port, the Second Type communication port is communication port for executing speech business;Alternatively,
The first kind communication port is the communication port for executing speech business, and the Second Type communication port is to use In the communication port for executing short message service.
6. the method as described in claim 1, which is characterized in that the server is according to the mesh of the first kind communication port Score value is marked, after determining the destinations traffic channel for executing pending task in the first kind communication port, also Including:
The server obtains the implementing result that the destinations traffic channel executes the pending task;
The server obtains task of failure is executed in the pending task according to the implementing result;
The server is determined to use according to the target score of the first kind communication port in addition to the destinations traffic channel In the communication port for executing the executing failure of the task.
7. a kind of server, which is characterized in that including:
Acquisition module, for obtaining pending mission bit stream;The pending mission bit stream includes the pending task Type;
First processing module is used for the type of the type and the pending task according to N number of communication port of connection, from institute State the first kind communication port for obtaining matching in N number of communication port with the pending task;N is whole more than or equal to 1 Number;
Second processing module is used in the case where at least one first kind communication port is available communication channel, root According to the target score of the first kind communication port, determined from the first kind communication port for executing described wait for The destinations traffic channel of execution task;Wherein, the target score of communication port is that the server is logical according at least to the communication What the historic task implementing result in road obtained;
The Second processing module is additionally operable to:
In the case where the first kind communication port is unavailable communication port, to the type of the pending task into Row conversion, obtains newer pending task;
According to the type of N number of communication port and the type of the newer pending task, obtain with it is described newer The Second Type communication port that pending task matches;
According to the target score of the Second Type communication port, determined from the Second Type communication port for executing The destinations traffic channel of the newer pending task.
8. server as claimed in claim 7, which is characterized in that further include determining target score module;
The determining target score module is used for:
The initial value of the communication port is determined according to the competitiveness indicator of the communication port;
Obtain the historic task implementing result of the communication port;
According to the historic task implementing result of the communication port and the initial value of the communication port, obtain described logical Believe the target score in channel.
9. server as claimed in claim 8, which is characterized in that the determining target score module is additionally operable to:
It determines that the target score of communication port is more than first threshold, then sets the communication port to available communication channel;
The first processing module is specifically used for:
The server is according to the type of N number of available communication channel of connection and the type of the pending task, from the N The first kind communication port to match with the pending task is obtained in a available communication channel.
10. server as claimed in claim 8, which is characterized in that the determining target score module is additionally operable to:
Determine that the target score of communication port is less than or equal to first threshold, then it is logical to set the communication port to unavailable communication Road;
Control instruction is received, the unavailable communication port will be set to communication port on probation according to the control instruction;
The task action result for obtaining the communication port on probation is set in the task action result satisfaction of the communication port on probation In the case of setting condition, the communication port on probation is changed to available communication channel.
11. server as claimed in claim 7, which is characterized in that the first kind communication port is for executing short message The communication port of business, the Second Type communication port are the communication port for executing speech business;Alternatively,
The first kind communication port is the communication port for executing speech business, and the Second Type communication port is to use In the communication port for executing short message service.
12. server as claimed in claim 7, which is characterized in that the Second processing module is additionally operable to:
Obtain the implementing result that the destinations traffic channel executes the pending task;
According to the implementing result, task of failure is executed in the pending task is obtained;
According to the target score of the first kind communication port in addition to the destinations traffic channel, determine described for executing Execute the communication port of the task of failure.
CN201510524428.0A 2015-08-24 2015-08-24 A kind of method and server in determining destinations traffic channel Active CN105072191B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510524428.0A CN105072191B (en) 2015-08-24 2015-08-24 A kind of method and server in determining destinations traffic channel

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510524428.0A CN105072191B (en) 2015-08-24 2015-08-24 A kind of method and server in determining destinations traffic channel

Publications (2)

Publication Number Publication Date
CN105072191A CN105072191A (en) 2015-11-18
CN105072191B true CN105072191B (en) 2018-09-04

Family

ID=54501470

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510524428.0A Active CN105072191B (en) 2015-08-24 2015-08-24 A kind of method and server in determining destinations traffic channel

Country Status (1)

Country Link
CN (1) CN105072191B (en)

Families Citing this family (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107347182A (en) * 2016-05-04 2017-11-14 北京京东尚科信息技术有限公司 Short message distribution method and system
CN106255081A (en) * 2016-10-11 2016-12-21 福建方维信息科技有限公司 A kind of note transmission method and system
CN107371146A (en) * 2017-06-05 2017-11-21 深圳市金立通信设备有限公司 A kind of method and terminal for selecting short message channel
CN107566997A (en) * 2017-07-05 2018-01-09 宇龙计算机通信科技(深圳)有限公司 Short message transmission method, device, user terminal and computer-readable recording medium
CN107454170A (en) * 2017-08-07 2017-12-08 安徽优易思信息技术有限责任公司 A kind of information transferring method and device of pending task
CN107786949A (en) * 2017-09-28 2018-03-09 上海帜讯信息技术股份有限公司 Method, apparatus, server and the storage medium of information channel switching
CN110366008B (en) * 2018-03-26 2021-10-08 阿里巴巴(中国)有限公司 Multimedia resource request identification method, device and storage medium
CN109152061B (en) * 2018-09-28 2023-05-02 彩讯科技股份有限公司 Channel allocation method, device, server and storage medium
CN109168135A (en) * 2018-11-09 2019-01-08 上海银赛计算机科技有限公司 Selection method, device, SMS platform and the storage medium of short message sendaisle
CN109561403A (en) * 2018-12-12 2019-04-02 网宿科技股份有限公司 A kind of short message dispatching method, equipment and storage medium
CN109729005B (en) * 2019-01-02 2021-07-06 腾讯科技(深圳)有限公司 Message processing method and device, computer equipment and storage medium
CN110336742B (en) * 2019-06-20 2021-08-27 网联清算有限公司 Information sending method and device, computer equipment and storage medium
CN113282341B (en) * 2020-02-20 2023-12-22 浙江宇视科技有限公司 Service control method, device, equipment and medium
CN111182482A (en) * 2020-03-17 2020-05-19 深圳市朱墨科技有限公司 Short message distribution method, device, storage medium and short message platform

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP2437564A4 (en) * 2009-06-19 2012-04-04 Huawei Tech Co Ltd Method and communication device for service bearer mapping
CN102970662A (en) * 2012-11-28 2013-03-13 内蒙古华腾科技发展有限公司 Short and multimedia message sending method based on middleware platform
CN103856963A (en) * 2014-03-05 2014-06-11 浪潮通信信息***有限公司 Method for establishing intelligence communication channels
CN104333727A (en) * 2013-07-22 2015-02-04 腾讯科技(深圳)有限公司 Audio-video transmission channel regulation method, device and system

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104301287B (en) * 2013-07-16 2020-03-31 中兴通讯股份有限公司 Many-to-many session implementation method, network node, server and system

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP2437564A4 (en) * 2009-06-19 2012-04-04 Huawei Tech Co Ltd Method and communication device for service bearer mapping
CN102970662A (en) * 2012-11-28 2013-03-13 内蒙古华腾科技发展有限公司 Short and multimedia message sending method based on middleware platform
CN104333727A (en) * 2013-07-22 2015-02-04 腾讯科技(深圳)有限公司 Audio-video transmission channel regulation method, device and system
CN103856963A (en) * 2014-03-05 2014-06-11 浪潮通信信息***有限公司 Method for establishing intelligence communication channels

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
基于目标特性的智能通道选择检测算法研究;方红等;《计算机仿真》;20130515;225-229 *

Also Published As

Publication number Publication date
CN105072191A (en) 2015-11-18

Similar Documents

Publication Publication Date Title
CN105072191B (en) A kind of method and server in determining destinations traffic channel
CN105677404B (en) A kind of configuration update method and device based on Zookeeper
CN104468220B (en) Power telecom network early warning control platform
CN108733508A (en) Method and system for controlling data backup
CN104242316B (en) Analytical method and the system of low-frequency and low-voltage cutting load total amount
CN109669835A (en) MySQL database monitoring method, device, equipment and readable storage medium storing program for executing
CN103457763B (en) Multi-channel information distribution method based on strategy and system and automatization's operation platform
CN113472659B (en) Method and device for determining forwarding path and SDN controller
CN105023117A (en) Electrified detection standardized operation management system based on mobile and cloud computing technologies
CN105719221A (en) Path cooperation programming method and device aiming at multitask
CN110430590A (en) Network is sliced matching process and device
CN109255517A (en) Generation method, device, server and the readable storage medium storing program for executing of air control strategy
CN114764535A (en) Power data processing method, device and equipment for simulation and storage medium
CN107733681B (en) A kind of scheduling scheme configuration method and device
CN111917597B (en) Broadband service monitoring method and equipment
CN104616197B (en) A kind of dispatching method and device of separable inquiry transaction data
CN106506190A (en) A kind of communication network runtime and operation method
CN110418379A (en) Diversion processing method and device for mobile device
CN105512895A (en) Power transaction management method based on multi-factor combination modeling and power transaction management system thereof
CN114327392A (en) Data processing method and device and electronic equipment
CN106843101A (en) Data analysis processing method and device
CN104079627B (en) Send the method and apparatus for showing information
CN104469302A (en) Video monitoring optimization method and device
CN115589391B (en) Instant messaging processing method, device and equipment based on block chain and storage medium
CN109981325A (en) A kind of setting method of alarm threshold, calculates equipment and medium at device

Legal Events

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