CN104468063B - A kind of processing method and equipment of service message - Google Patents

A kind of processing method and equipment of service message Download PDF

Info

Publication number
CN104468063B
CN104468063B CN201410708794.7A CN201410708794A CN104468063B CN 104468063 B CN104468063 B CN 104468063B CN 201410708794 A CN201410708794 A CN 201410708794A CN 104468063 B CN104468063 B CN 104468063B
Authority
CN
China
Prior art keywords
service
interface board
message
cpu usage
satellite
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
CN201410708794.7A
Other languages
Chinese (zh)
Other versions
CN104468063A (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.)
New H3C Technologies Co Ltd
Original Assignee
New H3C Technologies 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 New H3C Technologies Co Ltd filed Critical New H3C Technologies Co Ltd
Priority to CN201410708794.7A priority Critical patent/CN104468063B/en
Publication of CN104468063A publication Critical patent/CN104468063A/en
Application granted granted Critical
Publication of CN104468063B publication Critical patent/CN104468063B/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
    • H04L1/00Arrangements for detecting or preventing errors in the information received
    • H04L1/22Arrangements for detecting or preventing errors in the information received using redundant apparatus to increase reliability
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0896Bandwidth or capacity management, i.e. automatically increasing or decreasing capacities

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Telephonic Communication Services (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The invention discloses a kind of processing method of service message and equipment, this method comprises: the CPU usage of service interface board statistical service interface board and the CPU usage of satellite interface plate, and the business processing specific gravity of service interface board and the business processing specific gravity of satellite interface plate are determined according to the CPU usage of the CPU usage of service interface board and satellite interface plate;When receiving service message, the corresponding interface board of service message is determined according to the business processing specific gravity of service interface board and the business processing specific gravity of satellite interface plate;When the corresponding interface board of service message is service interface board, service interface board handles service message;Supplemented by the corresponding interface board of service message when adjuvant grafting oralia, service message is sent to satellite interface plate by service interface board, and satellite interface plate handles service message.In the embodiment of the present invention, the cpu resource of service interface board and the cpu resource of satellite interface plate are made full use of, maximum resource utilization is reached.

Description

A kind of processing method and equipment of service message
Technical field
The present invention relates to fields of communication technology, more particularly, to the processing method and equipment of a kind of service message.
Background technique
In distributed apparatus, a service interface board and multiple satellite interface plates are generally included.Handling some comparisons When accounting for the safety service of CPU (Central Processing Unit, central processing unit) utilization rate, carried out by service interface board Processing, has higher hardware requirement to the process performance of service interface board.For example, for being related to the IPSec (IP of complicated algorithm Security, IP safety) business, service interface board when receiving service message, will by service interface board to service message into Row IPSec processing (such as ipsec encryption processing and IPSec decryption processing).When service interface board receives a large number of services message, need IPSec processing is carried out to each service message by service interface board, have higher hardware to the process performance of service interface board It is required that.
For the safety service (such as IPSec business) for accounting for cpu busy percentage is compared, since all service messages are required to industry Business interface board processing, therefore the cpu busy percentage that will lead to service interface board is higher, and service interface board is enabled to become business processing The bottleneck of power, can not processing business message in time, influence business experience.
Summary of the invention
The embodiment of the present invention provides a kind of processing method of service message, and this method is applied to including service interface board and auxiliary On the network equipment of adjuvant grafting oralia, it the described method comprises the following steps:
The central processor CPU utilization rate of the service interface board statistical service interface board and the CPU of satellite interface plate make With rate, and service interface board is determined according to the CPU usage of the CPU usage of the service interface board and the satellite interface plate Business processing specific gravity and satellite interface plate business processing specific gravity;
Business processing specific gravity and institute of the service interface board when receiving service message, according to the service interface board The business processing specific gravity for stating satellite interface plate determines the corresponding interface board of service message;When the corresponding interface board of service message is industry When business interface board, the service interface board handles the service message;When the corresponding interface board of service message is auxiliary When interface board, the service message is sent to the satellite interface plate by the service interface board, by the satellite interface plate pair The service message is handled.
The process of the CPU usage of the CPU usage and satellite interface plate of the service interface board statistical service interface board, Specifically include: the service interface board determines the CPU usage of this service interface board;
The service interface board periodically sends Inter-Process Communication IPC request message to satellite interface plate, and the IPC is asked Seek CPU usage of the message for requesting satellite interface plate to report satellite interface plate;The service interface board receives satellite interface The IPC response message that plate returns, obtains the CPU usage of the satellite interface plate from the IPC response message;And/or institute It states service interface board and receives the IPC control message that satellite interface plate is sent, obtain the auxiliary from IPC control message and connect The CPU usage of oralia;Wherein, the IPC control message is the satellite interface plate in the CPU for detecting this satellite interface plate Utilization rate is greater than the satellite interface plate send when default first CPU usage threshold value or described and is detecting this auxiliary It is sent when the CPU usage of interface board is less than default second CPU usage threshold value, the default first CPU usage door Limit value is greater than the default second CPU usage threshold value.
The service interface board is used according to the CPU usage of the service interface board and the CPU of the satellite interface plate Rate determines the process of the business processing specific gravity of service interface board and the business processing specific gravity of satellite interface plate, specifically includes: working as institute When stating the CPU usage of service interface board greater than default third CPU usage threshold value, the service interface board determines the industry The business processing specific gravity of business interface board is 0;
When the CPU usage of the satellite interface plate is greater than default 4th CPU usage threshold value, the business interface Plate determines that the business processing specific gravity of the satellite interface plate is 0;
When the CPU usage of the service interface board is less than default third CPU usage threshold value, and the satellite interface When the CPU usage of plate is less than default 4th CPU usage threshold value, if the CPU usage of the service interface board is greater than The CPU usage of the satellite interface plate, then it is auxiliary to determine that the business processing specific gravity of service interface board is less than for the service interface board The business processing specific gravity of adjuvant grafting oralia;If the CPU that the CPU usage of the service interface board is less than the satellite interface plate makes With rate, then the service interface board determines that the business processing specific gravity of service interface board is greater than the business processing ratio of satellite interface plate Weight.
The method further includes:
The service interface board is turned when receiving service message using the message characteristic information inquiry of the service message Send out flow table;If not recording the message characteristic information in forwarding flow table, the service interface board is executed according to the business The business processing specific gravity of the business processing specific gravity of interface board and the satellite interface plate determines the corresponding interface board of service message Process, and forward the slot position for recording message characteristic information interface board corresponding with service message in flow table to identify it described Between corresponding relationship;If recording the message characteristic information in forwarding flow table, the service interface board determines service message Corresponding interface board is that the message characteristic information corresponding slot position in the forwarding flow table identifies corresponding interface board.
The service message is sent to the process of the satellite interface plate by the service interface board, is specifically included: described Service interface board adds mark to be processed in service message, and service message is sent to satellite interface by data channel between plate Plate;When carrying mark to be processed in finding service message by satellite interface plate, service message is handled, and is handling Cheng Hou adds processed mark in service message;The service interface board receives satellite interface plate and passes through data channel between plate The service message of return when carrying processed mark in finding service message, determines that service message is processed at and forwarding Service message.
The embodiment of the present invention provides a kind of network equipment, and the network equipment includes service interface board and satellite interface plate, The service interface board specifically includes: statistical module, for count the service interface board central processor CPU utilization rate and The CPU usage of the satellite interface plate;
Determining module, for according to the CPU usage of the service interface board and the CPU usage of the satellite interface plate Determine the business processing specific gravity of service interface board and the business processing specific gravity of satellite interface plate;
Distribution module, for the business processing specific gravity and institute when receiving service message, according to the service interface board The business processing specific gravity for stating satellite interface plate determines the corresponding interface board of service message;
Processing module, for being carried out to the service message when the corresponding interface board of service message is service interface board Processing;Supplemented by the corresponding interface board of service message when adjuvant grafting oralia, the service message is sent to the satellite interface plate, The service message is handled by the satellite interface plate.
The statistical module, specifically for determining the CPU usage of service interface board;Periodically sent out to satellite interface plate Inter-Process Communication IPC request message is sent, the IPC request message is for requesting satellite interface plate that the CPU of satellite interface plate is reported to make With rate;The IPC response message that satellite interface plate returns is received, the satellite interface plate is obtained from the IPC response message CPU usage;And/or receive the IPC that satellite interface plate is sent and control message, it is obtained from IPC control message described auxiliary The CPU usage of adjuvant grafting oralia;The IPC control message is the satellite interface plate in the CPU for detecting this satellite interface plate Utilization rate is greater than the satellite interface plate send when default first CPU usage threshold value or described and is detecting this auxiliary It is sent when the CPU usage of interface board is less than default second CPU usage threshold value, the default first CPU usage door Limit value is greater than the default second CPU usage threshold value.
The determining module is greater than default third CPU usage specifically for the CPU usage when the service interface board When threshold value, determine that the business processing specific gravity of the service interface board is 0;When the CPU usage of the satellite interface plate is greater than When default 4th CPU usage threshold value, determine that the business processing specific gravity of the satellite interface plate is 0;When the business interface The CPU usage of plate is less than default third CPU usage threshold value, and the CPU usage of the satellite interface plate is less than default When the 4th CPU usage threshold value, if the CPU that the CPU usage of the service interface board is greater than the satellite interface plate makes With rate, it is determined that the business processing specific gravity of service interface board is less than the business processing specific gravity of satellite interface plate;If the business The CPU usage of interface board is less than the CPU usage of the satellite interface plate, it is determined that the business processing specific gravity of service interface board Greater than the business processing specific gravity of satellite interface plate.
The distribution module is further used for when receiving service message, utilizes the message characteristic of the service message Information inquiry forwarding flow table;If not recording the message characteristic information in forwarding flow table, pressed by determining module execution The business processing specific gravity of business processing specific gravity and the satellite interface plate according to the service interface board determines that service message is corresponding Interface board process, and business processing specific gravity according to the service interface board and the auxiliary are executed by the distribution module The business processing specific gravity of interface board determines the process of the corresponding interface board of service message, and by the distribution module in the forwarding The corresponding relationship between the slot position mark of message characteristic information interface board corresponding with service message is recorded in flow table;If The message characteristic information is recorded in forwarding flow table, then directly determining the corresponding interface board of the service message is that the message is special Reference breath corresponding slot position in the forwarding flow table identifies corresponding interface board.
The processing module, specifically for during the service message is sent to the satellite interface plate, Mark to be processed is added in service message, and service message is sent to by satellite interface plate by data channel between plate;It is connect by auxiliary When oralia carries mark to be processed in finding service message, service message is handled, and after processing is completed, in business Processed mark is added in message;The service message that satellite interface plate is returned by data channel between plate is received, in discovery business When carrying processed mark in message, determine that service message is processed at and forwarding service message.
Based on the above-mentioned technical proposal, in the embodiment of the present invention, the CPU that service interface board can use service interface board is used The CPU usage of rate and satellite interface plate determines the business processing specific gravity of service interface board and the business processing ratio of satellite interface plate Weight determines that the corresponding interface board of service message is service interface board or satellite interface plate and when receiving service message, from And the cpu resource of service interface board and the cpu resource of satellite interface plate are made full use of, it does not need to be handled by service interface board all Service message avoids the cpu busy percentage of service interface board excessively high, and service interface board is avoided to become the bottleneck of traffic handing capacity, Service interface board or the timely processing business message of satellite interface plate, promotion business experience, promotion business are integrally located Rationality energy is promoted and improves service feature, and reaches maximum resource utilization.
Detailed description of the invention
Fig. 1 is the application scenarios schematic diagram of the embodiment of the present invention;
Fig. 2 is a kind of processing method flow diagram of service message provided in an embodiment of the present invention;
Fig. 3 is a kind of structural schematic diagram of network equipment provided in an embodiment of the present invention.
Specific embodiment
Aiming at the problems existing in the prior art, the embodiment of the present invention provides a kind of processing method of service message, the party Method is applied to the network equipment (such as distributed network equipment) including a service interface board, one or more satellite interface plate On.Service interface board is can to turn the source interface plate of processing business to other interface boards, and receive other interface board business and be Satellite interface plate.Using Fig. 1 as the application scenarios schematic diagram of the embodiment of the present invention, which includes service interface board 1, auxiliary Interface board 2, satellite interface plate 3 and satellite interface plate 4, and service interface board 1 by backboard respectively with satellite interface plate 2, auxiliary Interface board 3 and satellite interface plate 4 are attached.Further, service interface board and each satellite interface plate can be same kind Interface board, be also possible to different types of interface board.
Under above-mentioned application scenarios, as shown in Fig. 2, the processing method of the service message the following steps are included:
Step 201, the CPU usage of the CPU usage of service interface board statistical service interface board and satellite interface plate. As: the CPU usage of 1 statistical service interface board 1 of service interface board, the CPU usage of satellite interface plate 2, satellite interface plate 3 The CPU usage of CPU usage, satellite interface plate 4.
In the embodiment of the present invention, service interface board counts the process of the CPU usage of this service interface board, specifically include but Be not limited to such as under type: service interface board directly determines the CPU usage of this service interface board.For example, being directed to this business interface The CPU usage of plate 1, service interface board 1 can know the CPU usage of this service interface board 1 in real time, specifically know process It no longer repeats in detail herein.
In the embodiment of the present invention, service interface board counts the process of the CPU usage of satellite interface plate, specifically includes but not Be limited to such as under type: mode one, service interface board periodically send IPC (Inter Process to satellite interface plate Communication, Inter-Process Communication) request message;Wherein, the IPC request message is auxiliary for requesting satellite interface plate to report The CPU usage of adjuvant grafting oralia.Satellite interface plate directly determines this satellite interface plate after receiving IPC request message CPU usage, and IPC response message is returned to service interface board;Wherein, this satellite interface plate is carried in the IPC response message CPU usage.Service interface board receives the IPC response message that satellite interface plate returns, and obtains from the IPC response message The CPU usage of satellite interface plate.And/or mode two, satellite interface plate are in the CPU usage for detecting this satellite interface plate Greater than default first CPU usage threshold value, alternatively, satellite interface plate is small in the CPU usage for detecting this satellite interface plate When default second CPU usage threshold value, satellite interface plate sends IPC to service interface board and controls message;Wherein, the IPC The CPU usage of this satellite interface plate is carried in control message.Service interface board receives the IPC that satellite interface plate is sent and controls report Text, and the CPU usage that satellite interface plate is obtained in message is controlled from the IPC.Wherein, the first CPU usage threshold value is preset Default second CPU usage threshold value can be more than or equal to.
For aforesaid way one, service interface board periodically to satellite interface plate send IPC request message when, business Interface board starts supervision timer, and (supervision timer can be configured by user, and user can be according to actual application environment The ageing time of configuration monitoring timer), and the time that IPC request message is sent to satellite interface plate is controlled from supervision timer Interval;At regular intervals, triggering service interface board sends IPC request message to satellite interface plate to supervision timer.Business connects When sending IPC request message, IPC request message can be separately sent to multiple oralia by service interface board by broadcast mode Satellite interface plate.For service interface board when sending IPC request message, service interface board can pass through IBD (Inter Board Data Path, data channel between plate) IPC request message is separately sent to multiple satellite interface plates.
For aforesaid way two, the CPU usage of satellite interface plate real-time detection this satellite interface plate, when satellite interface plate CPU usage when being changed to be greater than default first CPU usage threshold value by being less than default first CPU usage threshold value, Satellite interface plate sends IPC to service interface board and controls message.When the CPU usage of satellite interface plate is by being greater than default second When CPU usage threshold value is changed to be less than default second CPU usage threshold value, satellite interface plate is sent to service interface board IPC controls message.
Step 202, service interface board is according to the CPU usage of service interface board and the CPU usage of satellite interface plate, really Determine the business processing specific gravity of service interface board and the business processing specific gravity of satellite interface plate.
In the embodiment of the present invention, service interface board is in the CPU usage of statistical service interface board and the CPU of satellite interface plate After utilization rate, when the CPU usage of the CPU usage of service interface board and/or satellite interface plate changes, then it can touch Sending service interface board re-executes the business processing specific gravity of determining service interface board and the business processing specific gravity of satellite interface plate The step of, i.e. service interface board needs make according to the current CPU of the current CPU usage of service interface board and satellite interface plate With rate, the current business processing specific gravity of service interface board and the current business processing specific gravity of satellite interface plate are redefined.
In the embodiment of the present invention, service interface board makes according to the CPU usage of service interface board and the CPU of satellite interface plate With rate, determines the business processing specific gravity of service interface board and the business processing specific gravity of satellite interface plate, be specifically including but not limited to Such as under type: when the CPU usage of service interface board is greater than default third CPU usage threshold value, service interface board is determined The business processing specific gravity of service interface board is 0;When the CPU usage of satellite interface plate is greater than default 4th CPU usage thresholding When value, service interface board determines that the business processing specific gravity of satellite interface plate is 0;When the CPU usage of service interface board is less than in advance If third CPU usage threshold value, and when the CPU usage of satellite interface plate is less than default 4th CPU usage threshold value, such as The CPU usage of fruit service interface board is greater than the CPU usage of satellite interface plate, then service interface board determines service interface board Business processing specific gravity is less than the business processing specific gravity of satellite interface plate;It is connect if the CPU usage of service interface board is less than auxiliary The CPU usage of oralia, then service interface board determines that the business processing specific gravity of service interface board is greater than the business of satellite interface plate Handle specific gravity.
When the business processing specific gravity of service interface board is 0, indicate that service interface board is not involved in business processing, i.e. business connects Oralia not processing business message.When the business processing specific gravity of satellite interface plate is 0, indicate that satellite interface plate is not involved at business Reason, i.e. satellite interface plate not processing business message.Further, when the CPU usage of service interface board is less than default 3rd CPU Utilization rate threshold value, and when the CPU usage of satellite interface plate is less than default 4th CPU usage threshold value, then it is based on industry It is engaged in the CPU usage of interface board and the CPU usage of satellite interface plate, when CPU usage is higher, then corresponding business interface The business processing specific gravity of plate or the business processing specific gravity of satellite interface plate are also lower.
Under application scenarios shown in Fig. 1, it is assumed that the CPU usage of service interface board 1 is 50%, satellite interface plate 2 CPU usage is 40%, and the CPU usage of satellite interface plate 3 is 30%, and the CPU usage of satellite interface plate 4 is 20%, base In the CPU usage of service interface board and the CPU usage of each satellite interface plate, since the CPU usage of service interface board 1 is big In the CPU usage of satellite interface plate 2, the CPU usage of satellite interface plate 2 is greater than the CPU usage of satellite interface plate 3, auxiliary The CPU usage of adjuvant grafting oralia 3 is greater than the CPU usage of satellite interface plate 4, therefore, the business processing specific gravity of service interface board 1 Less than the business processing specific gravity of satellite interface plate 2, the business processing specific gravity of satellite interface plate 2 is less than the business of satellite interface plate 3 Specific gravity is handled, the business processing specific gravity of satellite interface plate 3 is less than the business processing specific gravity of satellite interface plate 4.Service interface board 1 is true The business processing specific gravity for determining service interface board 1 is 10%, and the business processing specific gravity of satellite interface plate 2 is 20%, satellite interface plate 3 Business processing specific gravity be 30%, the business processing specific gravity of satellite interface plate 4 is 40%.Wherein, at the business of service interface board Managing the sum of business processing specific gravity of specific gravity and each satellite interface plate is 100%.
In a kind of specific implementation, presets the first CPU usage threshold value and be equal to default second CPU usage thresholding Value, and default first CPU usage threshold value is equal to default 4th CPU usage threshold value.Based on this, in satellite interface plate When CPU usage is greater than default first CPU usage threshold value, service interface board receives the IPC control of satellite interface plate transmission After message processed, it can know that the CPU usage of satellite interface plate is greater than default 4th CPU usage threshold value, service interface board The business processing specific gravity for determining satellite interface plate is 0, i.e. satellite interface plate is not involved in business processing, and satellite interface plate does not handle industry Business message.When the CPU usage of satellite interface plate is less than default second CPU usage threshold value, service interface board is received After the IPC control message that satellite interface plate is sent, it can know that the CPU usage of satellite interface plate is less than default 4th CPU and makes With rate threshold value, service interface board determines that the business processing specific gravity of satellite interface plate is not 0, i.e., satellite interface plate participates at business Reason, satellite interface plate processing business message.
In the embodiment of the present invention, business point can be realized together with service interface board by which satellite interface plate of user configuration Work is carried on a shoulder pole, and which satellite interface plate is not involved in business and shares, and keeps this configuration information by service interface board.Service interface board In the business processing specific gravity of the business processing specific gravity and satellite interface plate that determine service interface board, determine that being not involved in business shares Satellite interface plate business processing specific gravity be 0.
Step 203, service interface board is when receiving service message, according to the business processing specific gravity of service interface board and auxiliary The business processing specific gravity of adjuvant grafting oralia determines the corresponding interface board of service message.Wherein, the corresponding interface board of service message is industry Adjuvant grafting oralia supplemented by business interface board or the corresponding interface board of service message.
For example, the business processing specific gravity when service interface board 1 is 10%, the business processing specific gravity of satellite interface plate 2 is 20%, the business processing specific gravity of satellite interface plate 3 is 30%, when the business processing specific gravity of satellite interface plate 4 is 40%, then: industry Business interface board can determine that the corresponding interface board of service message 1 is service interface board 1, and determine service message 2 and service message 3 Adjuvant grafting oralia 2 supplemented by corresponding interface board, and determine that service message 4, service message 5 and the corresponding interface board of service message 6 are Satellite interface plate 3, and determine that service message 7, service message 8, service message 9 and the corresponding interface board of service message 10 are auxiliary Interface board 4, and determine that the corresponding interface board of service message 11 is service interface board 1, and so on.
In the embodiment of the present invention, service interface board can also safeguard forwarding flow table, and the forwarding flow table is special for recorded message Corresponding relationship between reference breath and the slot position mark of interface board.Based on this, service interface board is when receiving service message, benefit With the message characteristic information inquiry forwarding flow table of service message.If forwarding non-recorded message characteristic information in flow table, business Interface board, which is executed, determines service message according to the business processing specific gravity of service interface board and the business processing specific gravity of satellite interface plate The process of corresponding interface board, and forwarding flow table in recorded message characteristic information interface board corresponding with service message slot position Corresponding relationship between mark.If forwarding recorded message characteristic information in flow table, service interface board determines service message pair The interface board answered is that message characteristic information corresponding slot position in forwarding flow table identifies corresponding interface board.
For example, being believed when service interface board receives the service message for carrying message characteristic information 1 for the first time using message characteristic 1 inquiry forwarding flow table of breath, due to non-recorded message characteristic information 1 in forwarding flow table, service interface board is according to business interface The business processing specific gravity of plate and the business processing specific gravity of satellite interface plate determine that the corresponding interface board of the service message connects for business Oralia 1, and in the corresponding relationship in forwarding flow table between the slot position of recorded message characteristic information 1 and service interface board 1 mark.Industry When business interface board is received again by the service message for carrying message characteristic information 1, forwarding flow table is inquired using message characteristic information 1, Since recorded message characteristic information 1, service interface board have determined the corresponding interface board of the service message in forwarding flow table For message characteristic information 1, corresponding slot position identifies corresponding service interface board 1 in forwarding flow table.
Wherein, message characteristic information is specifically including but not limited to following one or any combination: the source IP of service message Address, source MAC (Media Access Control, medium access control) address, purpose IP address, target MAC (Media Access Control) address, agreement Type.Further, for the service message of IPSec business, it can also indicate whether service message passes through by forwarding flow table Specially treated (such as ipsec encryption processing and IPSec decryption processing), is based on this, forwarding in flow table may include as properties: CPU thresholding mark, width are 1, if this mark is 1, the CPU usage of interface board reaches threshold value.Service message is saturating Processing mark is passed, and width is 1, if this mark is 1, needs that service message is carried out at message transmission to satellite interface plate Reason.Service message encryption and decryption mark, width are 2, if this mark is 0, show not needing the processing of IPSec encryption and decryption, such as This mark of fruit is 1, then shows to carry out ipsec encryption processing, if this mark is 2, shows to carry out IPSec decryption processing.Industry Business message satellite interface board slot position, width are 6, show to carry out business relevant treatment by the satellite interface plate of which slot position; If not opening business aid in treatment function, this index is the slot position where this service interface board.
Step 204, when the corresponding interface board of service message be service interface board when, then service interface board to service message into Row processing;Supplemented by the corresponding interface board of service message when adjuvant grafting oralia, then service message is sent to auxiliary by service interface board Interface board, and service message is handled by satellite interface plate.Wherein, service interface board handle to service message specific Including but not limited to service interface board carries out ipsec encryption processing and IPSec decryption processing to service message;Satellite interface plate pair Service message carries out processing and is specifically including but not limited to satellite interface plate to service message progress ipsec encryption processing and IPSec Decryption processing.
In the embodiment of the present invention, during service message is sent to satellite interface plate by service interface board, business interface Plate adds mark to be processed in service message, and service message is sent to satellite interface plate by data channel between plate.It is auxiliary After the adjuvant grafting oralia service message that data channel is sent between receiving service interface board by plate, if it find that in service message Mark to be processed is carried, then service message is handled, and after processing is completed, processed mark is added in service message Know, and service message is returned to by service interface board by data channel between plate.Service interface board receives satellite interface plate and passes through Between plate data channel return service message, and find service message in carry processed mark when, determine service message Processing is completed, and forwarding service message, i.e. service message are finally sent from service interface board.
Wherein, satellite interface plate can also be when data channel between by plate returns to service message to service interface board Specific message type is arranged in service message.Service interface board is after receiving service message, if it find that service message is set For specific message type, and processed mark is carried in service message, then service interface board continues the forward process of message, i.e., from The physical port of service interface board sends service message.
Based on the above-mentioned technical proposal, in the embodiment of the present invention, the CPU that service interface board can use service interface board is used The CPU usage of rate and satellite interface plate determines the business processing specific gravity of service interface board and the business processing ratio of satellite interface plate Weight, when receiving service message, determine the corresponding interface board of service message be service interface board or satellite interface plate, thus The cpu resource of service interface board and the cpu resource of satellite interface plate are made full use of, the cpu resource of the network equipment is shared, does not need All service messages of service interface board processing, service message can be shared and be handled to satellite interface plate, allow CPU to make as far as possible With the lower interface board processing of rate compared with multi-service, and the higher interface board of CPU usage handles less business, to realize network Device resource utilizes mobilism, and ability when network device processing business can be improved, avoid the cpu busy percentage of service interface board It is excessively high, avoid service interface board become traffic handing capacity bottleneck, enable service interface board or satellite interface plate and When processing business message, promote business experience, promote business disposed of in its entirety performance, promote and improve service feature, and reach most Big resource utilization.
Based on inventive concept same as the above method, the embodiment of the present invention provides a kind of network equipment, and the network is set Standby includes service interface board and satellite interface plate, as shown in figure 3, the service interface board includes: statistical module 11, for counting The CPU usage of the CPU usage of the service interface board and the satellite interface plate;Determining module 12, for according to The CPU usage of the CPU usage of service interface board and the satellite interface plate determines the business processing specific gravity of service interface board With the business processing specific gravity of satellite interface plate;Distribution module 13, for when receiving service message, according to the business interface The business processing specific gravity of the business processing specific gravity of plate and the satellite interface plate determines the corresponding interface board of service message;Handle mould Block 14, for handling the service message when the corresponding interface board of service message is service interface board;When business report Supplemented by the corresponding interface board of text when adjuvant grafting oralia, the service message is sent to the satellite interface plate, is connect by the auxiliary Oralia handles the service message.
The statistical module 11, specifically for determining the CPU usage of service interface board;Periodically to satellite interface plate Send Inter-Process Communication IPC request message, the CPU which is used to that satellite interface plate to be requested to report satellite interface plate Utilization rate;The IPC response message that satellite interface plate returns is received, the satellite interface plate is obtained from the IPC response message CPU usage;And/or receive the IPC that satellite interface plate is sent and control message, it is obtained from IPC control message described The CPU usage of satellite interface plate;The IPC control message is that the satellite interface plate is detecting this satellite interface plate CPU usage be greater than the satellite interface plate sent when default first CPU usage threshold value or described detect it is auxiliary It is sent when the CPU usage of adjuvant grafting oralia is less than default second CPU usage threshold value, default first CPU usage Threshold value is greater than the default second CPU usage threshold value.
The determining module 12 is greater than default 3rd CPU specifically for the CPU usage when the service interface board and uses When rate threshold value, determine that the business processing specific gravity of the service interface board is 0;When the CPU usage of the satellite interface plate is big When default 4th CPU usage threshold value, determine that the business processing specific gravity of the satellite interface plate is 0;When the business connects The CPU usage of oralia is less than default third CPU usage threshold value, and the CPU usage of the satellite interface plate is less than in advance If when the 4th CPU usage threshold value, if the CPU usage of the service interface board is greater than the CPU of the satellite interface plate Utilization rate, it is determined that the business processing specific gravity of service interface board is less than the business processing specific gravity of satellite interface plate;If the industry The CPU usage of business interface board is less than the CPU usage of the satellite interface plate, it is determined that the business processing ratio of service interface board The great business processing specific gravity in satellite interface plate.
The distribution module 13, is further used for when receiving service message, special using the message of the service message Reference breath inquiry forwarding flow table;If not recording the message characteristic information in forwarding flow table, held by the determining module 12 Row determines service message according to the business processing specific gravity of the service interface board and the business processing specific gravity of the satellite interface plate The process of corresponding interface board, and business processing specific gravity and institute by the distribution module 13 execution according to the service interface board The business processing specific gravity for stating satellite interface plate determines the process of the corresponding interface board of service message, and the distribution module 13 is described The corresponding relationship between the slot position mark of message characteristic information interface board corresponding with service message is recorded in forwarding flow table; If recording the message characteristic information in forwarding flow table, directly determining the corresponding interface board of the service message is the report Literary characteristic information corresponding slot position in the forwarding flow table identifies corresponding interface board.
The processing module 14, specifically for during the service message is sent to the satellite interface plate, Mark to be processed is added in service message, and service message is sent to by satellite interface plate by data channel between plate;By assisting When interface board carries mark to be processed in finding service message, service message is handled, and after processing is completed, in industry Processed mark is added in business message;The service message that satellite interface plate is returned by data channel between plate is received, in discovery industry In business message when carrying processed mark, determine that service message is processed at and forwarding service message.
Wherein, the modules of apparatus of the present invention can integrate in one, can also be deployed separately.Above-mentioned module can close And be a module, multiple submodule can also be further split into.
Through the above description of the embodiments, those skilled in the art can be understood that the present invention can be by Software adds the mode of required general hardware platform to realize, naturally it is also possible to which by hardware, but in many cases, the former is more Good embodiment.Based on this understanding, technical solution of the present invention substantially in other words contributes to the prior art Part can be embodied in the form of software products, which is stored in a storage medium, if including Dry instruction is used so that a computer equipment (can be personal computer, server or the network equipment etc.) executes this hair Method described in bright each embodiment.It will be appreciated by those skilled in the art that attached drawing is the schematic diagram of a preferred embodiment, Module or process in attached drawing are not necessarily implemented necessary to the present invention.It will be appreciated by those skilled in the art that in embodiment Device in module can according to embodiment describe be distributed in the device of embodiment, corresponding change position can also be carried out In the one or more devices for being different from the present embodiment.The module of above-described embodiment can be merged into a module, can also be with It is further split into multiple submodule.The serial number of the above embodiments of the invention is only for description, does not represent the advantages or disadvantages of the embodiments.With Upper disclosed several specific embodiments only of the invention, still, the present invention is not limited to this, any those skilled in the art Member can think of variation should all fall into protection scope of the present invention.

Claims (8)

1. a kind of processing method of service message, this method is applied to the network equipment including service interface board and satellite interface plate On, which is characterized in that it the described method comprises the following steps:
The central processor CPU utilization rate of the service interface board statistical service interface board and the CPU usage of satellite interface plate, And the industry of service interface board is determined according to the CPU usage of the CPU usage of the service interface board and the satellite interface plate The business processing specific gravity of business processing specific gravity and satellite interface plate;
The service interface board inquires forwarding flow when receiving service message, using the message characteristic information of the service message Table;If not recording the message characteristic information in the forwarding flow table, according to the business processing ratio of the service interface board Weight determines the corresponding interface board of service message with the business processing specific gravity of the satellite interface plate;When the corresponding interface of service message When plate is service interface board, the service interface board handles the service message;When the corresponding interface board of service message Supplemented by adjuvant grafting oralia when, the service message is sent to the satellite interface plate by the service interface board, by it is described auxiliary connect Oralia handles the service message, and the service interface board receives the service message that the satellite interface plate returns, really The fixed service message is processed at forwarding the service message, and record the message characteristic in the forwarding flow table Corresponding relationship between the slot position mark of information interface board corresponding with service message;If in the forwarding flow table described in record Message characteristic information, then the service interface board determines that the corresponding interface board of service message is the message characteristic information described Corresponding slot position in flow table is forwarded to identify corresponding interface board.
2. the method as described in claim 1, which is characterized in that the CPU of the service interface board statistical service interface board is used The process of the CPU usage of rate and satellite interface plate, specifically includes:
The service interface board determines the CPU usage of this service interface board;
The service interface board periodically sends Inter-Process Communication IPC request message, the IPC request report to satellite interface plate Text is for requesting satellite interface plate to report the CPU usage of satellite interface plate;The service interface board receives satellite interface plate and returns The IPC response message returned, obtains the CPU usage of the satellite interface plate from the IPC response message;And/or the industry Business interface board receives the IPC that satellite interface plate is sent and controls message, obtains the satellite interface plate from IPC control message CPU usage;Wherein, the IPC control message is that the satellite interface plate is used in the CPU for detecting this satellite interface plate Rate is greater than the satellite interface plate send when default first CPU usage threshold value or described and is detecting this satellite interface It is sent when the CPU usage of plate is less than default second CPU usage threshold value, the default first CPU usage threshold value Greater than the default second CPU usage threshold value.
3. the method as described in claim 1, which is characterized in that the service interface board is according to the CPU of the service interface board The CPU usage of utilization rate and the satellite interface plate determines the business processing specific gravity of service interface board and the industry of satellite interface plate The process of business processing specific gravity, specifically includes:
When the CPU usage of the service interface board is greater than default third CPU usage threshold value, the service interface board is true The business processing specific gravity of the fixed service interface board is 0;
When the CPU usage of the satellite interface plate is greater than default 4th CPU usage threshold value, the service interface board is true The business processing specific gravity of the fixed satellite interface plate is 0;
Third CPU usage threshold value is preset when the CPU usage of the service interface board is less than, and the satellite interface plate When CPU usage is less than default 4th CPU usage threshold value, if the CPU usage of the service interface board is greater than described The CPU usage of satellite interface plate, then the service interface board determines that the business processing specific gravity of service interface board is less than auxiliary and connects The business processing specific gravity of oralia;If the CPU that the CPU usage of the service interface board is less than the satellite interface plate is used Rate, then the service interface board determines that the business processing specific gravity of service interface board is greater than the business processing specific gravity of satellite interface plate.
4. the method as described in claim 1, which is characterized in that the service message is sent to described by the service interface board Satellite interface plate is handled the service message by the satellite interface plate, and the service interface board receives the auxiliary The service message that interface board returns determines that the service message is processed at forwarding the service message, comprising:
The service interface board adds mark to be processed in service message, is sent to service message by data channel between plate Satellite interface plate;When carrying mark to be processed in finding service message by satellite interface plate, service message is handled, and After processing is completed, processed mark is added in service message;The service interface board receives satellite interface plate and passes through between plate The service message that data channel returns determines that service message is processed when carrying processed mark in finding service message At, and forwarding service message.
5. a kind of network equipment, the network equipment includes service interface board and satellite interface plate, which is characterized in that the business Interface board specifically includes: statistical module, for counting the central processor CPU utilization rate and the auxiliary of the service interface board The CPU usage of interface board;
Determining module, for being determined according to the CPU usage of the service interface board and the CPU usage of the satellite interface plate The business processing specific gravity of service interface board and the business processing specific gravity of satellite interface plate;
Distribution module, for inquiring forwarding flow using the message characteristic information of the service message when receiving service message Table;If not recording the message characteristic information in the forwarding flow table, according to the determining business of the determining module The business processing specific gravity of the business processing specific gravity of interface board and the satellite interface plate determines the corresponding interface board of service message, and Pair between the slot position mark for recording message characteristic information interface board corresponding with service message in the forwarding flow table It should be related to;If recording the message characteristic information in the forwarding flow table, it is determined that the corresponding interface board of service message is institute It states message characteristic information corresponding slot position in the forwarding flow table and identifies corresponding interface board;
Processing module, for handling the service message when the corresponding interface board of service message is service interface board; Supplemented by the corresponding interface board of service message when adjuvant grafting oralia, the service message is sent to the satellite interface plate, by institute State satellite interface plate to handle the service message, receive the service message that the satellite interface plate returns, determine described in Service message is processed at forwarding the service message.
6. the network equipment as claimed in claim 5, which is characterized in that
The statistical module, specifically for determining the CPU usage of service interface board;Periodically to satellite interface plate send into IPC request message, the CPU usage which is used to that satellite interface plate to be requested to report satellite interface plate are communicated between journey; The IPC response message that satellite interface plate returns is received, the CPU that the satellite interface plate is obtained from the IPC response message makes With rate;And/or receive the IPC that satellite interface plate is sent and control message, the auxiliary, which is obtained, from IPC control message connects The CPU usage of oralia;The IPC control message is that the satellite interface plate is used in the CPU for detecting this satellite interface plate Rate is greater than the satellite interface plate send when default first CPU usage threshold value or described and is detecting this satellite interface It is sent when the CPU usage of plate is less than default second CPU usage threshold value, the default first CPU usage threshold value Greater than the default second CPU usage threshold value.
7. the network equipment as claimed in claim 5, which is characterized in that
The determining module is greater than default third CPU usage thresholding specifically for the CPU usage when the service interface board When value, determine that the business processing specific gravity of the service interface board is 0;It is preset when the CPU usage of the satellite interface plate is greater than When the 4th CPU usage threshold value, determine that the business processing specific gravity of the satellite interface plate is 0;When the service interface board CPU usage is less than default third CPU usage threshold value, and the CPU usage of the satellite interface plate is less than the default 4th When CPU usage threshold value, if the CPU usage of the service interface board is greater than the CPU usage of the satellite interface plate, Then determine that the business processing specific gravity of service interface board is less than the business processing specific gravity of satellite interface plate;If the service interface board CPU usage be less than the satellite interface plate CPU usage, it is determined that the business processing specific gravity of service interface board be greater than it is auxiliary The business processing specific gravity of adjuvant grafting oralia.
8. the network equipment as claimed in claim 5, which is characterized in that
The processing module, specifically for during the service message is sent to the satellite interface plate, in business Mark to be processed is added in message, and service message is sent to by satellite interface plate by data channel between plate;By satellite interface plate When carrying mark to be processed in finding service message, service message is handled, and after processing is completed, in service message The middle processed mark of addition;The service message that satellite interface plate is returned by data channel between plate is received, in discovery service message When the processed mark of middle carrying, determine that service message is processed at and forwarding service message.
CN201410708794.7A 2014-11-28 2014-11-28 A kind of processing method and equipment of service message Active CN104468063B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410708794.7A CN104468063B (en) 2014-11-28 2014-11-28 A kind of processing method and equipment of service message

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410708794.7A CN104468063B (en) 2014-11-28 2014-11-28 A kind of processing method and equipment of service message

Publications (2)

Publication Number Publication Date
CN104468063A CN104468063A (en) 2015-03-25
CN104468063B true CN104468063B (en) 2018-12-25

Family

ID=52913502

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410708794.7A Active CN104468063B (en) 2014-11-28 2014-11-28 A kind of processing method and equipment of service message

Country Status (1)

Country Link
CN (1) CN104468063B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106330785B (en) * 2015-06-17 2020-08-11 深圳市腾讯计算机系统有限公司 Method and device for selecting service node

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102571595A (en) * 2012-02-01 2012-07-11 杭州华三通信技术有限公司 Route forwarding information synchronizing method and device of stack system

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101242255B (en) * 2008-02-15 2011-09-21 中兴通讯股份有限公司 A method and system for realizing N+1 redundant backup and load share
CN101635681B (en) * 2009-08-18 2013-06-05 杭州华三通信技术有限公司 Service processing method and network equipment
CN102332989B (en) * 2011-06-21 2014-12-24 杭州华三通信技术有限公司 Method for sending configuration information and service boards
CN102571587B (en) * 2012-01-13 2014-11-12 大唐移动通信设备有限公司 Method and equipment for forwarding messages

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102571595A (en) * 2012-02-01 2012-07-11 杭州华三通信技术有限公司 Route forwarding information synchronizing method and device of stack system

Also Published As

Publication number Publication date
CN104468063A (en) 2015-03-25

Similar Documents

Publication Publication Date Title
US20180338187A1 (en) Advanced wi-fi performance monitoring
WO2019184433A1 (en) Method and device for monitoring network data
EP3319293A1 (en) Cross-terminal login-free method and device
US9660833B2 (en) Application identification in records of network flows
WO2019237813A1 (en) Method and device for scheduling service resource
US9325596B2 (en) Adaptive signaling for network performance measurement, access, and control
US9237460B2 (en) Traffic control method and device
CN107666473B (en) Attack detection method and controller
US9973454B2 (en) Enhanced video instant messaging processing
US20140325628A1 (en) Login method, apparatus, and system
JP2018508072A (en) Method and apparatus for pushing messages
KR20190029486A (en) Elastic honeynet system and method for managing the same
CN108028828A (en) A kind of distributed denial of service ddos attack detection method and relevant device
Dhanapal et al. The slow HTTP distributed denial of service attack detection in cloud
CN107645540A (en) The load-balancing method of web application systems
CN108023882B (en) Collaborative data leakage prevention method and system
WO2016026436A1 (en) Service provision
CN104065538A (en) Network performance measurement control method, control server and system
US10033612B2 (en) Adaptive signaling for network performance measurement, access, and control
US11558914B2 (en) Device pairing in hot desking environments
CN104468063B (en) A kind of processing method and equipment of service message
RU2014140215A (en) METHOD, DEVICE AND OVERLOAD MANAGEMENT SYSTEM
US10511494B2 (en) Network control method and apparatus
US10506021B2 (en) Method and device for providing communication connection for a plurality of candidate applications in a mobile device
Sooden et al. A dynamic hybrid timeout method to secure flow tables against DDoS attacks in SDN

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
EXSB Decision made by sipo to initiate substantive examination
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information
CB02 Change of applicant information

Address after: 310052 Binjiang District Changhe Road, Zhejiang, China, No. 466, No.

Applicant after: Xinhua three Technology Co., Ltd.

Address before: 310052 Binjiang District Changhe Road, Zhejiang, China, No. 466, No.

Applicant before: Huasan Communication Technology Co., Ltd.

GR01 Patent grant
GR01 Patent grant