CN106209665A - A kind of realize the method for load sharing, interface message processor (IMP), service processor and system - Google Patents
A kind of realize the method for load sharing, interface message processor (IMP), service processor and system Download PDFInfo
- Publication number
- CN106209665A CN106209665A CN201510217814.5A CN201510217814A CN106209665A CN 106209665 A CN106209665 A CN 106209665A CN 201510217814 A CN201510217814 A CN 201510217814A CN 106209665 A CN106209665 A CN 106209665A
- Authority
- CN
- China
- Prior art keywords
- value
- service processor
- ability value
- message
- processor
- 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.)
- Withdrawn
Links
Landscapes
- Debugging And Monitoring (AREA)
Abstract
The invention discloses and a kind of realize the method for load sharing, interface message processor (IMP), service processor and system, including: interface message processor (IMP) receives the processing ability value that each service processor calculates according to fixed time interval;According to the processing ability value of all service processors received, interface message processor (IMP) conversates the load sharing of business.The inventive method is by calculating the processing ability value of service processor, with processing ability value for the load sharing according to the business that conversates, it is ensured that the load balancing of service processor in system.
Description
Technical field
The present invention relates to converged communication technology, a kind of realize the method for load sharing, interface message processor (IMP), industry
Business datatron and system.
Background technology
Along with the fast development of mobile Internet, provide a user with various application service by the Internet
(OTT) the big step of business is marched forward, and intense impact the traditional voice of telecommunications and short message service.The whole world
Mobile communication system association (GSMA) disclosed converged communication (RCS) plan in 2009, obtained
The response of many European operators.2010, by Hispanic Spanish Telephone Company (Telefonica),
Waduven of Britain, France Orange (the mobile operator of France), Olivetti and Deutsche Telecom exist
The interior big telecommunications giant in Europe five, determines to combine the own instantaneous communication system of release, and named " Joyn ",
Formally declare a war to OTT application with this.
By converged communication ability gateway, the function of converged communication is open, can reduce mobile terminal and
The requirement of developer, can develop abundant application with exploitation person's intrinsic advantage simultaneously.Along with movement
Internet service and the development of converged communication, require increasingly the disposal ability of converged communication ability gateway
Height, single node can not meet requirement, it is therefore desirable to distributed, multinode could meet.For dividing
Cloth, multinode, wherein have an important problem be how effective by load sharing to each industry
On business datatron, thus allow each service processor can give full play to the disposal ability of oneself, complete sea
The process of amount business.
Owing to the hardware configuration of each service processor may be different with the application of operating system and installation, operation
System resource is taken and can there are differences by the application program of system and installation, and converged communication is the most of the same trade or business simultaneously
Business is different to the resource occupation of service processor, it is thus necessary to determine that how traffic assignments to be given suitably
Service processor, carries out load sharing.At present, short messaging gateway have employed patent " a kind of multimode be short disappears
The load share method of breath system ", combine service processor with the feature string (such as source Mobile Station International ISDN Number) in message
Disposal ability, realizes dividing equally of business according to HASH algorithm.Due to the operational difference of converged communication,
Short message is relatively independent, and converged communication has a messaging service in session, such as 1 to 1 chat,
The message of the dialogue-based business such as group chat, the message of session service needs to be assigned to same service processor,
For needing to set up session with core net, owing to the message count of session service message is different, and session transmissions
There is also bigger processing capability requirements difference;Therefore, if carrying out distribution of services according to feature string, can
Cause service processor load uneven.
Summary of the invention
In order to solve above-mentioned technical problem, the present invention provides a kind of method and system realizing load sharing,
According to business, processing capability requirements and Business Processing and disposal ability can be carried out load sharing.
In order to reach the object of the invention, the invention provides a kind of method realizing load sharing, including:
Interface message processor (IMP) receives the processing ability value that each service processor calculates according to fixed time interval;
According to the processing ability value of all service processors received, interface message processor (IMP) conversates the load of business
Share.
Further, fixed time interval is determined by service processor balance parameters set in advance.
Further, processing ability value is by session ability value and/or message capability value and/or centre
Reason device CPU ability value and/or memory power value and/or disk ability value calculate after carrying out adding up and obtain.
Further, when the processing ability value obtaining described service processor comprises described session ability value
Time, also include before the method: obtain described session ability value:
Using the Number of Available/Faulty Ports of described service processor as the maximum number of sessions of service processor, reading obtains
Obtain the current sessions number of described service processor, maximum number of sessions is deducted current sessions number and obtains available meeting
Words number, is multiplied by session weighted value set in advance by available sessions number divided by maximum number of sessions, it is thus achieved that described
Session ability value;
When the processing ability value obtaining described service processor comprises described message capability value, the method
The most also include: obtain described message capability value: determine that it is corresponding according to the configuration of described service processor
Maximum overstocked message count, overstocks message count according to reading the current of acquisition, maximum is overstock message count and deducts
The current message count that overstocks obtains and can process message count, can process message count and overstock message count divided by maximum and take advantage of
With message weight value set in advance, it is thus achieved that described message capability value;
When the processing ability value obtaining described service processor comprises described CPU ability value, the method
The most also include: obtain described CPU ability value:
The CPU maximum occupancy of predetermined described service processor, reads the current CPU obtained and accounts for
By rate, CPU maximum occupancy is deducted current CPU usage, it is thus achieved that CPU availability, by CPU
Availability is multiplied by CPU weighted value set in advance divided by CPU maximum occupancy, it is thus achieved that described CPU energy
Force value;
When the processing ability value obtaining described service processor comprises described memory power value, the method
The most also include: obtain described memory power value:
The internal memory maximum occupancy of predetermined described service processor, reads current memory occupancy, will
Described internal memory maximum occupancy deducts described current memory occupancy and obtains internal memory availability, can be used by internal memory
Rate is multiplied by internal memory weighted value set in advance divided by internal memory maximum occupancy, it is thus achieved that described memory power value;
When the processing ability value obtaining described service processor comprises described disk ability value, the method
The most also include: obtain described disk ability value:
The maximum disk occupancy of predetermined described service processor, reads when front disk occupancy, will
Described maximum disk occupancy deducts described when front disk occupancy acquisition disk availability, can be used by disk
Rate is multiplied by disk weighted value set in advance divided by maximum disk occupancy, it is thus achieved that described disk ability value.
Further, when calculate described service processor processing ability value in session ability value and/
Or message capability value and/or central processor CPU ability value and/or memory power value and/or disk
When ability value exists one or more values less than or equal to 0, the method also includes: industry described in assignment
The processing ability value of business datatron is 0.
Further, the method also includes: described interface message processor (IMP) obtains all service processor duties,
When service processor delays machine, the delay processing ability value of described service processor of machine of assignment is 0.
Further, according to the processing ability value of each described service processor, the load of the business that conversates
Share and specifically including:
The numerical values recited ratio of the processing ability value according to each service processor, uniformly shares interface message processor (IMP) and receives
The business arrived.
Further, according to the numerical values recited ratio of the processing ability value of each service processor, uniformly share
The business that interface message processor (IMP) receives specifically includes:
Capacitation that the processing ability value of each service processor is added up cumulative and;
In the feature string of the message of negated session service, latter four of promoter's number add in feature string arbitrary
Latter four of recipient's number obtain character numerical value;
The ability that the character numerical value obtained obtains is added up and delivery, it is thus achieved that load sharing reference value;
By the processing ability value of all described service processors according to ascending arrangement after, from Business Processing
The processing ability value minima of machine starts, and calculates the 1st the process energy to i-th service processor respectively
Force value cumulative and, it is thus achieved that the corresponding load sharing of each service processor determines value;
When occurring that described load sharing determines value more than described load sharing reference value, determine that this load divides
Load determines that the i-th service processor of value correspondence is the service processor that business is shared;
Wherein, I is the processing ability value being less than service processor more than 1 service processor more than 0
Numerical value.
Further, also include before the method: described interface message processor (IMP) receives load from ability gateway server
Share to the message of the session service of service processor.
On the other hand, the application also provides for a kind of interface message processor (IMP) realizing load sharing, including: receive unit
200 and load sharing unit 201;Wherein,
Receive unit 200, for receiving the processing ability value that each service processor calculates according to fixed time interval;
Load sharing unit 201, for the processing ability value according to all service processors received, enters
The load sharing of guild's call business.
Further, interface message processor (IMP) also includes assignment unit 202, is used for obtaining the work of all service processors
State, when service processor delays machine, the delay processing ability value of described service processor of machine of assignment is 0.
Further, load sharing unit 201 specifically for,
The numerical values recited ratio of the processing ability value according to each service processor, uniformly shares interface message processor (IMP) and receives
The business arrived.
Further, interface message processor (IMP) also includes receiving business unit 203, for connecing from ability gateway server
Receive load sharing to the message of the session service of service processor.
Another further aspect, the application also provides for a kind of service processor realizing load sharing, at least includes meter
Count declaration form unit 300 in, report interface message processor (IMP) for calculating the processing ability value of self according to fixed time interval.
Further, calculate report unit 300 specifically for, according to fixed time interval by session ability value,
And/or message capability value and/or CPU ability value and/or memory power value and/or disk ability value
Calculate after carrying out adding up and obtain processing ability value.
Further, this service processor also includes acquisition capability value cell 301, is used for
When the processing ability value obtaining described service processor comprises described session ability value, obtain institute
State session ability value: using the Number of Available/Faulty Ports of described service processor as the max-session of service processor
Number, reads the current sessions number obtaining described service processor, maximum number of sessions deducts current sessions number
Obtain available sessions number, available sessions number be multiplied by session weighted value set in advance divided by maximum number of sessions,
Obtain described session ability value;
When the processing ability value obtaining described service processor comprises described message capability value, obtain institute
State message capability value: determine its corresponding maximum overstocked message count, root according to the configuration of described service processor
Current according to reading acquisition overstocks message count, maximum overstocks message count and deducts current overstocked message count acquisition
Message count can be processed, can process message count divided by maximum overstock message count be multiplied by message set in advance power
Weight values, it is thus achieved that described message capability value;
When the processing ability value obtaining described service processor comprises described CPU ability value, obtain institute
State CPU ability value: the CPU maximum occupancy of predetermined described service processor, reading obtains
Current CPU usage, deducts current CPU usage by CPU maximum occupancy, it is thus achieved that CPU can
By rate, CPU availability is multiplied by CPU weighted value set in advance divided by CPU maximum occupancy, obtains
Obtain described CPU ability value;
When the processing ability value obtaining described service processor comprises described memory power value, obtain institute
State memory power value: predefine the internal memory maximum occupancy of described service processor, read current memory
Occupancy, deducts described internal memory maximum occupancy described current memory occupancy and obtains internal memory availability,
Internal memory availability is multiplied by internal memory weighted value set in advance divided by internal memory maximum occupancy, it is thus achieved that in described
Deposit ability value;
When the processing ability value obtaining service processor comprises described disk ability value, obtain described magnetic
Dish ability value: the maximum disk occupancy of predetermined described service processor, reads when front disk takies
Rate, deducts described when front disk occupancy acquisition disk availability, by magnetic by described maximum disk occupancy
Dish availability is multiplied by disk weighted value set in advance divided by maximum disk occupancy, it is thus achieved that described disk energy
Force value.
Further, calculate and report unit 300 to be additionally operable to, when the process energy calculating described service processor
Session ability value, message capability value, CPU ability value, memory power value or disk ability in force value
When value exists one or more values less than or equal to 0, the processing ability value of assignment service processor is
0。
Another aspect, the application also provides for a kind of system realizing load sharing, including: if interface message processor (IMP) and
Dry service processor;Wherein,
Service processor reports unit 300 including at least calculating, for calculating self according to fixed time interval
Processing ability value reports interface message processor (IMP);
Interface message processor (IMP) includes at least load sharing unit 201, for the disposal ability according to each service processor
Value, the load sharing of the business that conversates.
Compared with prior art, technical scheme includes: interface message processor (IMP) receive each service processor according to
The processing ability value that fixed time interval calculates;According to the processing ability value of all service processors received, connect
Mouthful machine conversates the load sharing of business.The inventive method is by calculating the disposal ability of service processor
Value, with processing ability value for the load sharing according to the business that conversates, it is ensured that Business Processing in system
The load balancing of machine.
Accompanying drawing explanation
Accompanying drawing described herein is used for providing a further understanding of the present invention, constitutes of the application
Point, the schematic description and description of the present invention is used for explaining the present invention, is not intended that the present invention's
Improper restriction.In the accompanying drawings:
Fig. 1 is the flow chart that the present invention realizes the method for load sharing;
Fig. 2 is the structured flowchart that the present invention realizes the interface message processor (IMP) of load sharing;
Fig. 3 is the structured flowchart that the present invention realizes the service processor of load sharing;
Fig. 4 is the structure journey figure that the present invention realizes the system of load sharing.
Detailed description of the invention
For making the object, technical solutions and advantages of the present invention clearer, below in conjunction with accompanying drawing
Embodiments of the invention are described in detail.It should be noted that in the case of not conflicting, this Shen
Embodiment in please and the feature in embodiment can mutual combination in any.
Fig. 1 is the flow chart that the present invention realizes the method for load sharing, as it is shown in figure 1, include:
Step 100, interface message processor (IMP) receive the processing ability value that each service processor calculates according to fixed time interval.
In this step, service processor calculates the fixed time interval of processing ability value by business set in advance
Reason machine balance parameters determines;Here it is possible to the system loading taking service processor interior joint determines equilibrium ginseng
Number;Such as, the system loading of the busiest node in service processor is read higher than the system loading of the notst busy node
When certain percentage, set and adjust the percentage ratio reporting interval, the busiest node according to a certain percentage
System loading than the notst busy node system loading higher than set balance parameters 30% time, fixed time interval subtracts
Few 10 percentage ratios.
It should be noted that system loading can check acquisition by existing order, such as, at Linux
In system, the system loading of each node can be checked with w or uptime or procinfo or top order.
In this step, the processing ability value of service processor by session ability value and/or message capability value,
And/or CPU ability value and/or memory power value and/or disk ability value carry out cumulative after calculate and obtain.
Preferably, when the processing ability value obtaining service processor comprises session ability value, the present invention
Also include before method: acquisition session ability value:
Using the Number of Available/Faulty Ports of service processor as the maximum number of sessions of service processor, read and obtain industry
The current sessions number of business datatron, deducts maximum number of sessions current sessions number and obtains available sessions number, will
Available sessions number is multiplied by session weighted value set in advance divided by maximum number of sessions, it is thus achieved that session ability value.
When the processing ability value obtaining service processor comprises message capability value, before the inventive method
Also include: acquisition message capability value:
Its corresponding maximum overstocked message count is determined, according to working as that reading obtains according to service processor configuration
Before overstock message count, maximum is overstock message count and deducts the current message count that overstocks and obtain and can process message count,
Message count can be processed overstock message count divided by maximum and be multiplied by message weight value set in advance, it is thus achieved that message
Ability value.
When the processing ability value obtaining service processor comprises CPU ability value, before the inventive method
Also include: acquisition CPU ability value:
The CPU maximum occupancy of predetermined service processor, reads the current CPU usage obtained,
CPU maximum occupancy is deducted current CPU usage, it is thus achieved that CPU availability, CPU can be used
Rate is multiplied by CPU weighted value set in advance divided by CPU maximum occupancy, it is thus achieved that CPU ability value.
When the processing ability value obtaining service processor comprises memory power value, before the inventive method
Also include: acquisition memory power value:
The internal memory maximum occupancy of predetermined service processor, reads current memory occupancy, by internal memory
Maximum occupancy deducts current memory occupancy and obtains internal memory availability, by internal memory availability divided by internal memory
Big occupancy is multiplied by internal memory weighted value set in advance, it is thus achieved that memory power value.
When the processing ability value obtaining service processor comprises disk ability value, before the inventive method
Also include: acquisition disk ability value:
The maximum disk occupancy of predetermined service processor, reads when front disk occupancy, by maximum
Disk occupancy deducts when front disk occupancy obtains disk availability, by disk availability divided by maximum magnetic flux
Dish occupancy is multiplied by disk weighted value set in advance, it is thus achieved that disk ability value.
It should be noted that weigh by setting session weighted value and/or message weight value and/or CPU
Weight values and/or internal memory weighted value and/or the numerical values recited of disk weighted value, it is possible to achieve to business institute
Needing disposal ability size to show, if during such as Business Processing, the CPU of service processor can use
Major consideration when rate is traffic load, then CPU weighted value should set than other weighted value numerical value
Greatly, specific size can be set according to the experience of those skilled in the art.
The processing ability value of service processor except by session ability value and/or message capability value and/or
CPU ability value and/or memory power value and/or disk ability value calculate outside obtaining, it is also possible to introduce
Relevant parameter carries out technology, such as, introduces the core video memory of service processor and carries out the place of service processor
Reason ability value calculates, if less on traffic load sharing impact, then could be by would arranging less weight
Value calculates.
When the session ability value in the processing ability value calculating service processor, message capability value, CPU energy
When there is one or more values less than or equal to 0 in force value, memory power value or disk ability value,
The inventive method also includes: the processing ability value of assignment service processor is 0;
The inventive method also includes: interface message processor (IMP) obtains service processor duty, when service processor is delayed
During machine, the delay processing ability value of service processor of machine of assignment is 0.
Step 101, according to the processing ability value of all service processors received, interface message processor (IMP) conversates
The load sharing of business.
This step specifically includes: according to the numerical values recited ratio of the processing ability value of each service processor, all
Even share the business that interface message processor (IMP) receives.
Preferably, the capacitation that the processing ability value of each service processor added up cumulative and;
In the feature string of the message of negated session service, latter four of promoter's number add in feature string arbitrary
Latter four of recipient's number obtain character numerical value;
The ability that the character numerical value obtained obtains is added up and delivery, it is thus achieved that load sharing reference value;
By the processing ability value of service processor according to ascending arrangement after,
From the beginning of the processing ability value minima of service processor, calculate the 1st respectively and arrive at i-th business
The processing ability value of reason machine cumulative and, it is thus achieved that the corresponding load sharing of each service processor determines value;
When occurring that load sharing determines value more than load sharing reference value, determine that this load sharing determines value
Corresponding i-th service processor is the service processor that business is shared.
I is the processing ability value being less than service processor more than 1 service processor the numerical value more than 0.
Also include before the inventive method: interface message processor (IMP) receives load sharing to business from ability gateway server
The message of the session service of datatron.
Fig. 2 is the structured flowchart that the present invention realizes the interface message processor (IMP) of load sharing, including: receive unit 200
And load sharing unit 201;Wherein,
Receive unit 200, for receiving the processing ability value that each service processor calculates according to fixed time interval;
Load sharing unit 201, for the processing ability value according to all service processors received, enters
The load sharing of guild's call business.
Load sharing unit 201 specifically for,
The numerical values recited ratio of the processing ability value according to each service processor, uniformly shares interface message processor (IMP) and receives
The business arrived.
Interface message processor (IMP) of the present invention also includes assignment unit 202, is used for obtaining all service processor duties,
When service processor delays machine, the delay processing ability value of service processor of machine of assignment is 0.
Interface message processor (IMP) also includes receiving business unit 203, for receiving load sharing from ability gateway server
Message to the session service of service processor.
Fig. 3 is the structured flowchart that the present invention realizes the service processor of load sharing, as it is shown on figure 3, extremely
Include that calculating reports unit 300 less, report for calculating the processing ability value of self according to fixed time interval
Interface message processor (IMP).
Calculating report unit 300 specifically for, according to fixed time interval by session ability value and/or message energy
Force value and/or CPU ability value and/or memory power value and/or disk ability value carry out cumulative after count
Calculate and obtain processing ability value.
Service processor of the present invention also includes acquisition capability value cell 301, is used for
When the processing ability value obtaining service processor comprises session ability value, acquisition session ability value:
Using the Number of Available/Faulty Ports of service processor as the maximum number of sessions of service processor, read at acquisition business
The current sessions number of reason machine, deducts maximum number of sessions current sessions number and obtains available sessions number, will be available
Session number is multiplied by session weighted value set in advance divided by maximum number of sessions, it is thus achieved that session ability value;
When the processing ability value obtaining service processor comprises message capability value, acquisition message capability value:
Determine its corresponding maximum overstocked message count according to service processor configuration, work as foreset according to what reading obtained
Pressure message count, overstocks maximum message count and deducts the current message count that overstocks and obtain and can process message count, can
Process message count overstocks message count divided by maximum and is multiplied by message weight value set in advance, it is thus achieved that message capability
Value;
When the processing ability value obtaining service processor comprises CPU ability value, obtain CPU ability
Value: the CPU maximum occupancy of predetermined service processor, reads the current CPU usage obtained,
CPU maximum occupancy is deducted current CPU usage, it is thus achieved that CPU availability, CPU can be used
Rate is multiplied by CPU weighted value set in advance divided by CPU maximum occupancy, it is thus achieved that CPU ability value;
When the processing ability value obtaining service processor comprises memory power value, acquisition memory power value:
The internal memory maximum occupancy of predetermined service processor, reads current memory occupancy, and internal memory is maximum
Occupancy deducts current memory occupancy and obtains internal memory availability, internal memory availability is accounted for divided by internal memory maximum
It is multiplied by internal memory weighted value set in advance, it is thus achieved that memory power value by rate;
When the processing ability value obtaining service processor comprises disk ability value, acquisition disk ability value:
The maximum disk occupancy of predetermined service processor, reads when front disk occupancy, by maximum disk
Occupancy deducts when front disk occupancy obtains disk availability, disk availability is accounted for divided by maximum disk
It is multiplied by disk weighted value set in advance, it is thus achieved that disk ability value by rate.
Calculating reports unit 300 to be additionally operable to, the session energy in the processing ability value calculating service processor
Force value, message capability value, CPU ability value, memory power value or disk ability value exist one or one
When individual values above is less than or equal to 0, the processing ability value of assignment service processor is 0.
Fig. 4 is the structure journey figure that the present invention realizes the system of load sharing, as shown in Figure 4, including: connect
Mouth machine and some service processors;Wherein,
Service processor reports unit 300 including at least calculating, for calculating self according to fixed time interval
Processing ability value reports interface message processor (IMP);
Interface message processor (IMP) includes at least load sharing unit 201, for the disposal ability according to each service processor
Value, the load sharing of the business that conversates.
Carry out understanding that detailed description, embodiment are only used for the inventive method below by way of specific embodiment
The statement present invention, is not limited to the protection domain of the inventive method.
Embodiment 1
Illustrating as a example by the message of the business that this enforcement goes downwards to terminal by application, the present embodiment sets industry
The processing ability value maximum of business datatron is 1000, carries out weighted value according to the maximum of processing ability value
Setting.
Ability gateway server receives the message of applied business, and the message of business is sent to interface message processor (IMP);
Interface message processor (IMP) carries out the processing ability value of service processor according to fixed time interval and reports and determine the load of business
Share.
Carrying out the service processor that business shares and the message of business is sent to core net, core net is by message
Mail to purpose terminal.Wherein, the processing ability value of service processor and the load sharing of business are by following
Mode realizes.
The processing ability value that service processor calculates self according to fixed time interval reports interface message processor (IMP);Wherein,
Fixed time interval is set by node balance parameters set in advance and adjusts, and such as, reads Business Processing
When in machine, the system loading of the busiest node is higher than certain percentage than the system loading of the notst busy node, setting is pressed
Adjust the percentage ratio reporting interval according to certain proportion, the system loading of the busiest node is than the notst busy node
When system loading is higher than 30%, fixed time interval reduces by 10 percentage ratios, and fixed time interval was with 1 second to 60 second
For preferred value.
It should be noted that system loading can check acquisition by existing order, such as, at Linux
In system, the system loading of each node can be checked with w or uptime or procinfo or top order.
In this step, the processing ability value of service processor by session ability value and/or message capability value,
And/or CPU ability value and/or memory power value and/or disk ability value calculate and obtain.
Preferably, using the Number of Available/Faulty Ports of service processor as the maximum number of sessions of service processor, read
Take the current sessions number obtaining service processor, maximum number of sessions is deducted current sessions number and obtains available meeting
Words number, is multiplied by session weighted value set in advance by available sessions number divided by maximum number of sessions, it is thus achieved that session
Ability value.
Owing to the port number maximum limit of service processor is made as 65535, need reserved part to system and phase
Closing application to use, the Number of Available/Faulty Ports of service processor is less than 65535, and the session establishment of business needs to use
To the port of service processor, the session number of business can be so limited, in general, and service processor
Number of Available/Faulty Ports can be set as 60000, of course, it is possible to make port according to system and related application
It is adjusted by situation.Due to, the session number of business is mainly affected by port resource, to system CPU,
Internal memory impact is little, and therefore weight can be turned down a bit, such as, 100.
It is assumed that the maximum number of sessions of service processor is 60000, current sessions number 10000, session weight
Value is 100, then obtain session ability value and be: (60000-10000)/60000*100=83
Its corresponding maximum overstocked message count is determined, according to working as that reading obtains according to service processor configuration
Before overstock message count, maximum is overstock message count and deducts the current message count that overstocks and obtain and can process message count,
Message count can be processed overstock message count divided by maximum and be multiplied by message weight value set in advance, it is thus achieved that message
Ability value.
Message capability value is the important reference of service processor traffic load sharing of the present invention, therefore,
Need to set bigger weighted value, if, setup message weighted value is 300.
Assuming that the maximum message count that overstocks is 1000, setup message weighted value is 300, currently overstocks message count
Be 100, then message capability value is: (1000-100)/1000*300=270.Here, if currently overstock
Message count has exceeded the maximum message count that overstocks and service processor has been described the most at full capacity, now, and message capability value
It is 0.
The CPU maximum occupancy of predetermined service processor, reads the current CPU usage obtained,
CPU maximum occupancy is deducted current CPU usage, it is thus achieved that CPU availability, CPU can be used
Rate is multiplied by CPU weighted value set in advance divided by CPU maximum occupancy, it is thus achieved that CPU ability value.
CPU ability value is the important reference of service processor traffic load sharing of the present invention, therefore,
Need to set bigger weighted value, as, set CPU weighted value as 300.
The CPU maximum occupancy of predetermined service processor is 80%, and CPU weighted value is 300,
Current CPU usage is 60%, then CPU ability value is: (80-60)/80*300=75.
The internal memory maximum occupancy of predetermined service processor, reads current memory occupancy, by internal memory
Maximum occupancy deducts current memory occupancy and obtains internal memory availability, by internal memory availability divided by internal memory
Big occupancy is multiplied by internal memory weighted value set in advance, it is thus achieved that memory power value.
Memory power value is a reference frame of service processor traffic load sharing of the present invention, sets power
Great in being in medium low level, if, set memory weighted value is 200.
The internal memory maximum occupancy of predetermined service processor is 80%, and internal memory weighted value is 200, when
Front memory usage is 60%, then memory power value is (80-60)/80*200=50.
The maximum disk occupancy of predetermined service processor, reads when front disk occupancy, by maximum
Disk occupancy deducts when front disk occupancy obtains disk availability, by disk availability divided by maximum magnetic flux
Dish occupancy is multiplied by disk weighted value set in advance, it is thus achieved that disk ability value.
It is lower slightly that disk calculates its importance to the processing ability value of service processor, therefore can set disk
Weighted value is 100.
The maximum disk occupancy of predetermined service processor is 80%, and disk weighted value is 100, when
Front disk occupancy is 40%, then disk ability value is (80-40)/80*100=50.
Interface message processor (IMP) is according to the processing ability value of each service processor, and the load sharing of the business that conversates is concrete
Cumulative including: capacitation that the processing ability value of each service processor is added up and;
In the feature string of the message of negated session service, latter four of promoter's number add in feature string arbitrary
Latter four of recipient's number obtain character numerical value;
The ability that the character numerical value obtained obtains is added up and delivery, it is thus achieved that load sharing reference value;
By the processing ability value of service processor according to ascending arrangement after,
From the beginning of the processing ability value minima of service processor, calculate the 1st respectively and arrive at i-th business
The processing ability value of reason machine cumulative and, it is thus achieved that the corresponding load sharing of each service processor determines value;
When occurring that load sharing determines value more than load sharing reference value, determine that this load sharing determines value
Corresponding i-th service processor is the service processor that business is shared.
I is the processing ability value being less than service processor more than 1 service processor the numerical value more than 0.
Assume to calculate the processing ability value of service processor of service processor be respectively 500,700,811,
0;
The capacitation that the processing ability value of each service processor added up adds up and is 500+700+811+0=
2011。
In the feature string of the message of negated session service, latter four of promoter's number add in feature string arbitrary
Latter four of recipient's number obtain character numerical value;
Assuming the feature string of the message of the non-session business that interface message processor (IMP) receives, promoter's number is
13612345678, the number of any recipient is 13956782234, then obtain character numerical value and be
5678+2234=7912.
The ability that the character numerical value obtained obtains is added up and delivery, it is thus achieved that load sharing reference value;
By acquisition character numerical value capacitation is cumulative and delivery must be: 7912 obtain with 2011 deliverys
1879。
From the beginning of the processing ability value minima of service processor, calculate the 1st respectively and arrive at i-th business
The processing ability value of reason machine cumulative and, it is thus achieved that the corresponding load sharing of each service processor determines value;
The i.e. processing ability value of the 1st service processor, the industry to the 1st to the 2nd service processor
The cumulative summation of processing ability value of business datatron, the Business Processing to the 1st to the 3rd service processor
The cumulative summation of the processing ability value of machine;The value obtained is 500,1200,2011,
When occurring that load sharing determines value more than load sharing reference value, determine that this load sharing determines value
Corresponding i-th service processor is the service processor that business is shared.
I.e. 2011 more than 1879 time, determine this load sharing determine value correspondence the 3rd service processor
The service processor shared for business.That is, traffic load sharing is given the 3rd service processor by interface message processor (IMP).
By present implementation, if the message of business in the user A a plurality of non-session of initiation, will not fix
It is assigned to certain service processor, but according to setting the processing ability value of the service processor that interval reports
It is adjusted, thus reaches the load sharing of service processor.By obtaining the process energy of service processor
Force value, it is to avoid fixing to distribute the load caused in proportion uneven.
The present embodiment also includes: if delaying occurs in service processor during machine, then the service processor of machine of delaying
Datatron ability value is assigned 0, and the datatron ability value according to updating reselects at the business of distribution
Reason machine.Therefore, interface message processor (IMP) also can well carry out load adjustment, improves the even running of system.
Although the embodiment that disclosed herein is as above, but described content only readily appreciates the present invention
And the embodiment used, it is not limited to the present invention.Technology people in any art of the present invention
Member, on the premise of without departing from the spirit and scope that disclosed herein, can be in the form implemented and thin
Any amendment and change is carried out on joint, but the scope of patent protection of the present invention, still must be with appended right
Claim is defined in the range of standard.
Claims (18)
1. the method realizing load sharing, it is characterised in that including:
Interface message processor (IMP) receives the processing ability value that each service processor calculates according to fixed time interval;
According to the processing ability value of all service processors received, interface message processor (IMP) conversates the load of business
Share.
Method the most according to claim 1, it is characterised in that described fixed time interval is by presetting
Service processor balance parameters determine.
Method the most according to claim 1, it is characterised in that described processing ability value is by session energy
Force value and/or message capability value and/or central processor CPU ability value and/or memory power value,
And/or disk ability value carry out cumulative after calculate and obtain.
Method the most according to claim 3, it is characterised in that when obtaining described service processor
When processing ability value comprises described session ability value, also include before the method: obtain described session energy
Force value:
Using the Number of Available/Faulty Ports of described service processor as the maximum number of sessions of service processor, reading obtains
Obtain the current sessions number of described service processor, maximum number of sessions is deducted current sessions number and obtains available meeting
Words number, is multiplied by session weighted value set in advance by available sessions number divided by maximum number of sessions, it is thus achieved that described
Session ability value;
When the processing ability value obtaining described service processor comprises described message capability value, the method
The most also include: obtain described message capability value: determine that it is corresponding according to the configuration of described service processor
Maximum overstocked message count, overstocks message count according to reading the current of acquisition, maximum is overstock message count and deducts
The current message count that overstocks obtains and can process message count, can process message count and overstock message count divided by maximum and take advantage of
With message weight value set in advance, it is thus achieved that described message capability value;
When the processing ability value obtaining described service processor comprises described CPU ability value, the method
The most also include: obtain described CPU ability value:
The CPU maximum occupancy of predetermined described service processor, reads the current CPU obtained and accounts for
By rate, CPU maximum occupancy is deducted current CPU usage, it is thus achieved that CPU availability, by CPU
Availability is multiplied by CPU weighted value set in advance divided by CPU maximum occupancy, it is thus achieved that described CPU energy
Force value;
When the processing ability value obtaining described service processor comprises described memory power value, the method
The most also include: obtain described memory power value:
The internal memory maximum occupancy of predetermined described service processor, reads current memory occupancy, will
Described internal memory maximum occupancy deducts described current memory occupancy and obtains internal memory availability, can be used by internal memory
Rate is multiplied by internal memory weighted value set in advance divided by internal memory maximum occupancy, it is thus achieved that described memory power value;
When the processing ability value obtaining described service processor comprises described disk ability value, the method
The most also include: obtain described disk ability value:
The maximum disk occupancy of predetermined described service processor, reads when front disk occupancy, will
Described maximum disk occupancy deducts described when front disk occupancy acquisition disk availability, can be used by disk
Rate is multiplied by disk weighted value set in advance divided by maximum disk occupancy, it is thus achieved that described disk ability value.
Method the most according to claim 1, it is characterised in that when calculating described service processor
Session ability value in processing ability value and/or message capability value and/or central processor CPU ability
There is one or more values less than or equal to 0 in value and/or memory power value and/or disk ability value
Time, the method also includes: the processing ability value of service processor described in assignment is 0.
Method the most according to claim 1, it is characterised in that the method also includes: described interface
Machine obtains all service processor duties, and when service processor delays machine, assignment is delayed the described industry of machine
The processing ability value of business datatron is 0.
Method the most according to claim 1, it is characterised in that described according to each described Business Processing
The processing ability value of machine, the load sharing of the business that conversates specifically includes:
The numerical values recited ratio of the processing ability value according to each service processor, uniformly shares interface message processor (IMP) and receives
The business arrived.
Method the most according to claim 7, it is characterised in that described according to each service processor
The numerical values recited ratio of processing ability value, uniformly shares the business that interface message processor (IMP) receives and specifically includes:
Capacitation that the processing ability value of each service processor is added up cumulative and;
In the feature string of the message of negated session service, latter four of promoter's number add in feature string arbitrary
Latter four of recipient's number obtain character numerical value;
The ability that the character numerical value obtained obtains is added up and delivery, it is thus achieved that load sharing reference value;
By the processing ability value of all described service processors according to ascending arrangement after, from Business Processing
The processing ability value minima of machine starts, and calculates the 1st the process energy to i-th service processor respectively
Force value cumulative and, it is thus achieved that the corresponding load sharing of each service processor determines value;
When occurring that described load sharing determines value more than described load sharing reference value, determine that this load divides
Load determines that the i-th service processor of value correspondence is the service processor that business is shared;
Wherein, I is the processing ability value being less than service processor more than 1 service processor more than 0
Numerical value.
Method the most according to claim 1, it is characterised in that also include before the method: described
Interface message processor (IMP) receives load sharing to the message of the session service of service processor from ability gateway server.
10. the interface message processor (IMP) realizing load sharing, it is characterised in that including: receive unit (200)
And load sharing unit (201);Wherein,
Receive unit (200), for receiving the disposal ability that each service processor calculates according to fixed time interval
Value;
Load sharing unit (201), for the processing ability value according to all service processors received,
The load sharing of the business that conversates.
11. interface message processor (IMP)s according to claim 10, it is characterised in that described interface message processor (IMP) also includes composing
Value cell (202), is used for obtaining all service processor duties, when service processor delays machine,
The delay processing ability value of described service processor of machine of assignment is 0.
12. interface message processor (IMP)s according to claim 10, it is characterised in that described load sharing unit
(201) specifically for,
The numerical values recited ratio of the processing ability value according to each service processor, uniformly shares interface message processor (IMP) and receives
The business arrived.
13. interface message processor (IMP)s according to claim 10, it is characterised in that described interface message processor (IMP) also includes connecing
Receive business unit (203), for receiving load sharing to the meeting of service processor from ability gateway server
The message of call business.
14. 1 kinds of service processors realizing load sharing, it is characterised in that at least include that calculating reports
Unit (300), reports interface message processor (IMP) for calculating the processing ability value of self according to fixed time interval.
15. systems according to claim 14, it is characterised in that described calculating reports unit (300)
Specifically for, according to fixed time interval by session ability value and/or message capability value and/or CPU ability
Value and/or memory power value and/or disk ability value calculate after carrying out adding up and obtain processing ability value.
16. service processors according to claim 14, it is characterised in that this service processor is also
Including acquisition capability value cell (301), it is used for
When the processing ability value obtaining described service processor comprises described session ability value, obtain institute
State session ability value: using the Number of Available/Faulty Ports of described service processor as the max-session of service processor
Number, reads the current sessions number obtaining described service processor, maximum number of sessions deducts current sessions number
Obtain available sessions number, available sessions number be multiplied by session weighted value set in advance divided by maximum number of sessions,
Obtain described session ability value;
When the processing ability value obtaining described service processor comprises described message capability value, obtain institute
State message capability value: determine its corresponding maximum overstocked message count, root according to the configuration of described service processor
Current according to reading acquisition overstocks message count, maximum overstocks message count and deducts current overstocked message count acquisition
Message count can be processed, can process message count divided by maximum overstock message count be multiplied by message set in advance power
Weight values, it is thus achieved that described message capability value;
When the processing ability value obtaining described service processor comprises described CPU ability value, obtain institute
State CPU ability value: the CPU maximum occupancy of predetermined described service processor, reading obtains
Current CPU usage, deducts current CPU usage by CPU maximum occupancy, it is thus achieved that CPU can
By rate, CPU availability is multiplied by CPU weighted value set in advance divided by CPU maximum occupancy, obtains
Obtain described CPU ability value;
When the processing ability value obtaining described service processor comprises described memory power value, obtain institute
State memory power value: predefine the internal memory maximum occupancy of described service processor, read current memory
Occupancy, deducts described internal memory maximum occupancy described current memory occupancy and obtains internal memory availability,
Internal memory availability is multiplied by internal memory weighted value set in advance divided by internal memory maximum occupancy, it is thus achieved that in described
Deposit ability value;
When the processing ability value obtaining service processor comprises described disk ability value, obtain described magnetic
Dish ability value: the maximum disk occupancy of predetermined described service processor, reads when front disk takies
Rate, deducts described when front disk occupancy acquisition disk availability, by magnetic by described maximum disk occupancy
Dish availability is multiplied by disk weighted value set in advance divided by maximum disk occupancy, it is thus achieved that described disk energy
Force value.
17. service processors according to claim 14, it is characterised in that declaration form in described calculating
Unit (300) is additionally operable to, and when the session ability value in the processing ability value calculating described service processor, disappears
There is one or more values in breath ability value, CPU ability value, memory power value or disk ability value
During less than or equal to 0, the processing ability value of assignment service processor is 0.
18. 1 kinds of systems realizing load sharing, it is characterised in that including: interface message processor (IMP) and some business
Datatron;Wherein,
Service processor reports unit (300) including at least calculating, for calculating self according to fixed time interval
Processing ability value report interface message processor (IMP);
Interface message processor (IMP) includes at least load sharing unit (201), for the process energy according to each service processor
Force value, the load sharing of the business that conversates.
Priority Applications (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510217814.5A CN106209665A (en) | 2015-04-30 | 2015-04-30 | A kind of realize the method for load sharing, interface message processor (IMP), service processor and system |
PCT/CN2015/084831 WO2016173133A1 (en) | 2015-04-30 | 2015-07-22 | Load sharing implementation method, interface machine, service processor and system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510217814.5A CN106209665A (en) | 2015-04-30 | 2015-04-30 | A kind of realize the method for load sharing, interface message processor (IMP), service processor and system |
Publications (1)
Publication Number | Publication Date |
---|---|
CN106209665A true CN106209665A (en) | 2016-12-07 |
Family
ID=57198907
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510217814.5A Withdrawn CN106209665A (en) | 2015-04-30 | 2015-04-30 | A kind of realize the method for load sharing, interface message processor (IMP), service processor and system |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN106209665A (en) |
WO (1) | WO2016173133A1 (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107196869A (en) * | 2017-07-14 | 2017-09-22 | 北京知道创宇信息技术有限公司 | The adaptive load balancing method, apparatus and system of Intrusion Detection based on host actual loading |
CN107547429A (en) * | 2017-07-28 | 2018-01-05 | 新华三信息安全技术有限公司 | One kind load determines method, apparatus and electronic equipment |
CN110691140A (en) * | 2019-10-18 | 2020-01-14 | 国家计算机网络与信息安全管理中心 | Elastic data issuing method in communication network |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101753444A (en) * | 2009-12-31 | 2010-06-23 | 卓望数码技术(深圳)有限公司 | Method and device for load balancing |
CN102084705A (en) * | 2008-11-17 | 2011-06-01 | 思达伦特网络有限责任公司 | Dynamic load balancing in a communication network |
US20120231824A1 (en) * | 2011-03-10 | 2012-09-13 | Miroslav Budic | Load balancing in a cellular telecommunication network |
CN103188345A (en) * | 2013-03-01 | 2013-07-03 | 北京邮电大学 | Distributive dynamic load management system and distributive dynamic load management method |
CN103401939A (en) * | 2013-08-08 | 2013-11-20 | 中国航天科工集团第三研究院第八三五七研究所 | Load balancing method adopting mixing scheduling strategy |
Family Cites Families (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101631008B (en) * | 2008-07-15 | 2013-02-13 | 电信科学技术研究院 | Method and device for informing load state |
US9485142B2 (en) * | 2012-03-30 | 2016-11-01 | Nec (China) Co., Ltd. | Method and apparatus for dynamic DL-UL reconfiguration in TDD system |
-
2015
- 2015-04-30 CN CN201510217814.5A patent/CN106209665A/en not_active Withdrawn
- 2015-07-22 WO PCT/CN2015/084831 patent/WO2016173133A1/en active Application Filing
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102084705A (en) * | 2008-11-17 | 2011-06-01 | 思达伦特网络有限责任公司 | Dynamic load balancing in a communication network |
CN101753444A (en) * | 2009-12-31 | 2010-06-23 | 卓望数码技术(深圳)有限公司 | Method and device for load balancing |
US20120231824A1 (en) * | 2011-03-10 | 2012-09-13 | Miroslav Budic | Load balancing in a cellular telecommunication network |
CN103188345A (en) * | 2013-03-01 | 2013-07-03 | 北京邮电大学 | Distributive dynamic load management system and distributive dynamic load management method |
CN103401939A (en) * | 2013-08-08 | 2013-11-20 | 中国航天科工集团第三研究院第八三五七研究所 | Load balancing method adopting mixing scheduling strategy |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107196869A (en) * | 2017-07-14 | 2017-09-22 | 北京知道创宇信息技术有限公司 | The adaptive load balancing method, apparatus and system of Intrusion Detection based on host actual loading |
CN107196869B (en) * | 2017-07-14 | 2019-11-15 | 北京知道创宇信息技术股份有限公司 | The adaptive load balancing method, apparatus and system of Intrusion Detection based on host actual loading |
CN107547429A (en) * | 2017-07-28 | 2018-01-05 | 新华三信息安全技术有限公司 | One kind load determines method, apparatus and electronic equipment |
CN110691140A (en) * | 2019-10-18 | 2020-01-14 | 国家计算机网络与信息安全管理中心 | Elastic data issuing method in communication network |
CN110691140B (en) * | 2019-10-18 | 2022-02-15 | 国家计算机网络与信息安全管理中心 | Elastic data issuing method in communication network |
Also Published As
Publication number | Publication date |
---|---|
WO2016173133A1 (en) | 2016-11-03 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
EP2801171B1 (en) | Methods, systems, and computer readable media for utilizing quota usage policy control in a diameter-based communication network | |
Gitman et al. | Economic analysis of integrated voice and data networks: A case study | |
WO2020177497A1 (en) | Method and system for performing charging processing on network slice client, and related device | |
CN107124453A (en) | Platform Interworking GateWay stacks the SiteServer LBS and video call method of deployment | |
CN106209665A (en) | A kind of realize the method for load sharing, interface message processor (IMP), service processor and system | |
CN108011899A (en) | A kind of session establishment optimization method, device and system | |
CN1992763B (en) | Method for realizing prepayment of digital trunking system | |
CN103957518A (en) | D2D communication method in cellular network | |
CN110297698A (en) | A kind of multipriority dynamic current limiting method, apparatus, server and storage medium | |
US8744051B2 (en) | Translation of fees for value added services in a communication network | |
WO2016165337A1 (en) | Method and device for realizing billing | |
EP3306965A1 (en) | Charging method, communication platform, and communication system | |
CN103475595A (en) | System and method for overload control of Parlay X gateway | |
CN106332282A (en) | Method for realizing group call in hierarchical networking | |
CN107426109B (en) | Traffic scheduling method, VNF module and traffic scheduling server | |
CN107872594B (en) | Charging method, charging device and charging system | |
CN104899097A (en) | Thread allocation quantity calculating method and apparatus | |
CN1665315A (en) | Method for controlling overload of intelligent network based on service control point in multi-service environment | |
CN101873536B (en) | Group sending message processing method, service distribution platform and related equipment | |
Lin et al. | Credit allocation for UMTS prepaid service | |
CN103781119B (en) | MGW selection method and device | |
CN109903023B (en) | Resource allocation method and system | |
CN103401806B (en) | Message processing method and device | |
CN101001298B (en) | Method for group prepayment of digital trunking system | |
CN112243101A (en) | Video group calling method and storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
WW01 | Invention patent application withdrawn after publication | ||
WW01 | Invention patent application withdrawn after publication |
Application publication date: 20161207 |