CN106254266A - A kind of message processing method and the network equipment - Google Patents
A kind of message processing method and the network equipment Download PDFInfo
- Publication number
- CN106254266A CN106254266A CN201610681329.8A CN201610681329A CN106254266A CN 106254266 A CN106254266 A CN 106254266A CN 201610681329 A CN201610681329 A CN 201610681329A CN 106254266 A CN106254266 A CN 106254266A
- Authority
- CN
- China
- Prior art keywords
- clear text
- message
- current time
- dropped packets
- time unit
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L47/00—Traffic control in data switching networks
- H04L47/10—Flow control; Congestion control
- H04L47/32—Flow control; Congestion control by discarding or delaying data units, e.g. packets or frames
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
The embodiment of the present invention provides a kind of message processing method and the network equipment, relate to communication technical field, solve in prior art due to data Layer set on to send threshold value be fixing, the problem that the resource of caused key-course can not make full use of or the treating capacity of key-course causes the most greatly message dropping.The method includes: data Layer is according to the number of dropped packets of the clear text in a upper time quantum of the type of message acquisition current time unit of clear text, and sends the number of dropped packets of clear text to key-course;Data Layer receives key-course and send threshold value according on the clear text in the current time unit sending number to determine on the clear text in the number of dropped packets of clear text and a upper time quantum;Data Layer determines the object message number sent in current time unit according to sending threshold value on the clear text in current time unit.The present invention is applied to the process of message.
Description
Technical field
The present invention relates to communication technical field, particularly relate to a kind of message processing method and the network equipment.
Background technology
At present, the physical entity that the network equipment and parts are attached in network.Wherein, this network equipment has certain
Message processing capability, it is generally the case that when the network equipment carries out Message processing, it is necessary first to by the message number by the network equipment
According to delivering to key-course on layer, then the message above sent is processed by key-course in the network equipment again.
In prior art, the process of message is to send threshold value to limit data Layer on fixing to send on key-course by setting
Message amount, then a number of message sent on data Layer is processed by key-course.But, at complex environment
Under, this setting fixing on send the way of threshold value the most irrational, such as, when sending passage on undue suppression data Layer
Make to deliver newspaper civilian very few time (on send threshold value less), the disposal ability of key-course can be wasted so that the resource of key-course can not
Make full use of, thus the processing speed of regular traffic will be affected.When literary composition of delivering newspaper when sending passage to make on relieving data Layer is too much
(send on i.e. threshold value bigger), the key-course of the network equipment can face larger process pressure, lasting packet loss, Er Qieyou not only occurs
In substantial amounts of message up sending so that the resource of key-course can not meet the demand of Message processing, thus cause the business cannot be normal
Carry out.
Summary of the invention
Embodiments of the invention provide a kind of message processing method and the network equipment, solve in prior art due to data Layer
It is fixing for sending threshold value on setting, and the resource of caused key-course can not make full use of or the treating capacity of key-course causes the most greatly
The problem of message dropping.
For reaching above-mentioned purpose, embodiments of the invention adopt the following technical scheme that
First aspect, it is provided that a kind of message processing method, is applied to the data Layer of the network equipment, and described method includes:
Described data Layer obtains in a upper time quantum of current time unit according to the type of message of clear text
The number of dropped packets of clear text, and the number of dropped packets of described clear text is sent to key-course;
Described data Layer receives key-course according in the number of dropped packets of described clear text and a described upper time quantum
Clear text on send clear text in the current time unit that number determines on send threshold value;
Described data Layer determines current time list according to sending threshold value on the clear text in described current time unit
The object message number sent in unit.
Further, key-course is located according to treating in the number of dropped packets of described clear text and a described upper time quantum
Send on reason message number determine clear text in current time unit on send threshold value to specifically include:
Number will be sent on clear text in the number of dropped packets of described clear text and a described upper time quantum
Bring into and send threshold calculations formula, obtain the clear text in current time unit on send threshold value;
Wherein, the threshold calculations formula is sent to be on described:
U (t+1)=U (t)+kp*e (t)+kd* (e (t)-e (t-1))+ki* (e (t)+e (t-1)), described U (t) is described
Sending number, described e (t) on clear text in a upper time quantum is clear text in a described upper time quantum
Number of dropped packets, described e (t-1) be a described upper time quantum previous time quantum in the number of dropped packets of clear text, described
Kp is proportional controller operator coefficient, and described kd is derivative controller operator coefficient, and described ki is integral controller operator coefficient.
Further, described data Layer obtained a upper time of current time unit according to the type of message of clear text
The number of dropped packets of the clear text in unit specifically includes:
Obtain the type of message of clear text;
Type of message according to described clear text read a upper time of described current time unit in data base
The number of dropped packets of the clear text in unit.
Further, the described type of message according to described clear text reads described current time list in data base
The number of dropped packets of the clear text in a upper time quantum of unit specifically includes:
Type of message according to described clear text obtains upper the one of current time unit in message packet loss numerical statement
The number of dropped packets of the clear text in time quantum, described message packet loss numerical statement is different types of message and each time list
Mapping relations table between unit and message number of dropped packets.
Optionally, described method also includes:
The number of dropped packets of different types of message in obtaining each time quantum, forms message packet loss numerical statement, and by described
Message packet loss numerical statement stores to data base;
Further, described data Layer according to send on the clear text in described current time unit threshold value determine work as
The object message number sent in front time quantum specifically includes:
When described clear text number is less than when sending threshold value on described, then in current time unit on the object message sent
Number is described clear text number;
When described clear text number is more than when sending threshold value on described, then in current time unit on the object message sent
Number is the clear text number sending threshold value corresponding on described, abandons exceeding the clear text sending threshold value on described.
Second aspect, it is provided that a kind of network equipment, including data Layer, described data Layer includes:
Acquisition module, obtains in a upper time quantum of current time unit for the type of message according to clear text
The number of dropped packets of clear text, and the number of dropped packets of described clear text is sent to key-course;
Receiver module, for receiving key-course according to the number of dropped packets of described clear text and a described upper time quantum
In clear text on send clear text in the current time unit that number determines on send threshold value;
Determine module, for sending threshold value to determine current time according on the clear text in described current time unit
The object message number sent in unit.
Further, described acquisition module obtains upper the one of current time unit at the type of message according to clear text
The number of dropped packets of the clear text in time quantum specifically for:
Obtain the type of message of clear text;
Type of message according to described clear text read a upper time of described current time unit in data base
The number of dropped packets of the clear text in unit.
Further, described acquisition module read in data base according to the type of message of described clear text described
The number of dropped packets of the clear text in a upper time quantum of current time unit specifically for:
Type of message according to described clear text obtains upper the one of current time unit in message packet loss numerical statement
The number of dropped packets of the clear text in time quantum, described message packet loss numerical statement is different types of message and each time list
Mapping relations table between unit and message number of dropped packets.
Optionally, described data Layer also includes:
Form module, the number of dropped packets of different types of message in obtaining each time quantum, form message number of dropped packets
Mesh table, and described message packet loss numerical statement is stored to data base.
Further, described determine module specifically for:
When described clear text number is less than when sending threshold value on described, then in current time unit on the object message sent
Number is described clear text number;
When described clear text number is more than when sending threshold value on described, then in current time unit on the object message sent
Number is the clear text number sending threshold value corresponding on described, abandons exceeding the clear text sending threshold value on described.
The third aspect, it is provided that a kind of network equipment, including key-course, described key-course includes:
Receiver module, the clear text in the upper time quantum receiving the current time unit that data Layer obtains
Number of dropped packets;
Processing module, be used in the number of dropped packets according to described clear text and a described upper time quantum is pending
Send on message number determine clear text in current time unit on send threshold value;
Sending module, for sending threshold value to send to data Layer on the clear text in described current time unit.
Further, described processing module specifically for:
Number will be sent on clear text in the number of dropped packets of described clear text and a described upper time quantum
Bring into and send threshold calculations formula, obtain the clear text in current time unit on send threshold value;
Wherein, the threshold calculations formula is sent to be on described:
U (t+1)=U (t)+kp*e (t)+kd* (e (t)-e (t-1))+ki* (e (t)+e (t-1)), described U (t) is described
Sending number, described e (t) on clear text in a upper time quantum is clear text in a described upper time quantum
Number of dropped packets, described e (t-1) be a described upper time quantum previous time quantum in the number of dropped packets of clear text, described
Kp is proportional controller operator coefficient, and described kd is derivative controller operator coefficient, and described ki is integral controller operator coefficient.
Send threshold value to limit data Layer on fixing to deliver newspaper on key-course literary composition by setting compared in prior art
Number, can cause the resource of key-course not make full use of or the treating capacity of key-course causes the most greatly message dropping, in this programme
Sending threshold value on is not a fixing value, but pending according in a upper time quantum of current time unit of key-course
Send number to determine on clear text in the number of dropped packets of message and a upper time quantum, fully take into account key-course
Ability to cope with the exigency determine the clear text number that can send above on data Layer, so can avoid the occurrence of key-course money
Source waste or the excessive problem causing message dropping for the treatment of capacity of key-course.Additionally, due to corresponding to different types of message
The message number sent in number of dropped packets and a upper time quantum is different so that send on corresponding to different types of message
Threshold value is also different, and therefore this programme can be set on different sending threshold value, Jin Erben according to different type of messages
Scheme can adapt to the application scenarios of all kinds of message up sending, thus reaches to make full use of the purpose of key-course resource, can ensure
Business is carried out and equipment stable operation in order.
Accompanying drawing explanation
In order to be illustrated more clearly that the technical scheme of the embodiment of the present invention, below will be in embodiment or description of the prior art
The required accompanying drawing used is briefly described, it should be apparent that, the accompanying drawing in describing below is only some realities of the present invention
Execute example, for those of ordinary skill in the art, on the premise of not paying creative work, it is also possible to according to these accompanying drawings
Obtain other accompanying drawing.
The method flow diagram of a kind of message processing method that Fig. 1 provides for the embodiment of the present invention;
The accounting message number of dropped packets that Fig. 2 provides based on a kind of message processing method shown in Fig. 1 for the embodiment of the present invention
Flow chart;
Fig. 3 is flow chart based on the adaptive control algorithm in a kind of message processing method shown in Fig. 1;
The structural representation of a kind of network equipment that Fig. 4 provides for the embodiment of the present invention;
The structural representation of the another kind of network equipment that Fig. 5 provides for the embodiment of the present invention.
Detailed description of the invention
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clear, complete
Describe, it is clear that described embodiment is only a part of embodiment of the present invention rather than whole embodiments wholely.Based on
Embodiment in the present invention, it is every other that those of ordinary skill in the art are obtained under not making creative work premise
Embodiment, broadly falls into the scope of protection of the invention.
The executive agent of the message processing method provided in the embodiment of the present invention can be message process device, it is also possible to be
For performing the network equipment of above-mentioned message processing method.Exemplary, this network equipment includes but not limited to: computer (nothing
Opinion its be PC or server), hub, switch, bridge, router, gateway, printer and modem, light
The fine equipment such as transceiver, optical cable.
What the message processing method that the present invention provides was applied carries out the network equipment employing distributed system of data communication
Framework, this distributed system architecture includes a master control borad being positioned at the superiors and one or more layers business board.Wherein,
Every layer service plate can include one or more business board.And this master control borad and business board all include two aspects, it is respectively
Data Layer and key-course.Wherein, data Layer can comprise multiple functional module, such as interface unit, network processing unit (English:
Network Processor, is called for short: NP), integrated circuit (English: Application Specific Integrated
Circuit, is called for short: ASIC) and central processing unit (English: Central Processing Unit, be called for short: CPU) etc..With
Reason, key-course can also include several functions module, such as monitoring unit, administrative unit and CPU etc.).Wherein, data Layer is used
In message is forwarded and on send process, and key-course is used for carrying out Business Processing.
The terms "and/or", a kind of incidence relation describing affiliated partner, can there are three kinds of passes in expression
System, such as, A and/or B, can represent: individualism A, there is A and B, individualism B these three situation simultaneously.It addition, herein
Middle character "/", typicallys represent the forward-backward correlation relation to liking a kind of "or".
The embodiment of the present invention provides a kind of message processing method, as it is shown in figure 1, described method includes:
101, in data Layer obtains a upper time quantum of current time unit according to the type of message of clear text
The number of dropped packets of clear text, and the number of dropped packets of clear text is sent to key-course.
Type of message in the embodiment of the present invention includes but not limited to: protocol type message and/or type of service message.
Exemplary, in step 101, data Layer obtains the upper of current time unit according to the type of message of clear text
The number of dropped packets of the clear text in one time quantum specifically includes herein below:
101a, the type of message of acquisition clear text.
101b, type of message according to clear text read a upper time quantum of current time unit in data base
The number of dropped packets of interior clear text.
Exemplary, based on the content in above-mentioned steps 101, read in data base according to the type of message of clear text
The number of dropped packets taking the clear text in a upper time quantum of current time unit specifically includes:
A1, type of message according to clear text obtain upper a period of time of current time unit in message packet loss numerical statement
Between the number of dropped packets of clear text in unit.
Exemplary, above-mentioned message packet loss numerical statement is that different types of message is lost with each time quantum and message
Mapping relations table between bag number.
Exemplary, content based on above-mentioned A1, the method also includes:
B1, obtain each time quantum in the number of dropped packets of different types of message, form message packet loss numerical statement, and will report
Literary composition packet loss numerical statement stores to data base.
The process that data Layer in the embodiment of the present invention obtains number of dropped packets below is illustrated.Exemplary, on
The number of dropped packets stated is to be timed by the intervalometer of the data Layer in the network equipment to obtain.Concrete, in the set time
In section, when intervalometer starts timing, and data Layer proceeds by statistics number of dropped packets, when timing arrives, and data Layer terminates statistics
Number of dropped packets.
With reference to packet loss statistical flowsheet figure as shown in Figure 2, data Layer receives literary composition of delivering newspaper, and then delivers newspaper on receiving
Literary composition judges, when the number of literary composition of above delivering newspaper exceedes setting value (maximum can on the protocol massages number that send), and data Layer packet loss,
And add up number of dropped packets;Otherwise, data Layer by deliver newspaper literary composition send to key-course.
Exemplary, carry out adding up different types of report in each time quantum by the above-mentioned process obtaining packet loss
Literary composition number of dropped packets, thus obtain message packet loss numerical statement, and this message packet loss numerical statement is stored to data base, in case follow-up side
Just the number of dropped packets of a certain message in reading required time unit.
102, data Layer receives pending according in the number of dropped packets of clear text and a upper time quantum of key-course
Send on message the clear text in the current time unit that number determines on send threshold value.
Exemplary, above-mentioned on to send threshold value be above can to deliver to the report of key-course for limiting data Layer in the network equipment
One concrete numerical value of literary composition number.
Exemplary, current according in the number of dropped packets of current message and a upper time quantum of key-course in step 102
Send on message number determine current message in current time unit on send threshold value to specifically include herein below:
102a, number will be sent to bring on the clear text in the number of dropped packets of clear text and a upper time quantum
On send threshold calculations formula, obtain the clear text in current time unit on send threshold value.
Wherein, the threshold calculations formula is sent to be on above-mentioned:
U (t+1)=U (t)+kp*e (t)+kd* (e (t)-e (t-1))+ki* (e (t)+e (t-1)) (formula 1)
U (t) in above-mentioned formula be the clear text in a upper time quantum on send number, the e in above-mentioned formula
T () is the number of dropped packets of clear text in a upper time quantum, in e (t-1) is the previous time quantum of a upper time quantum
The number of dropped packets of clear text, kp is proportional controller operator coefficient, and kd is derivative controller operator coefficient, and ki is integration control
Device operator coefficient.
Exemplary, above-mentioned on to send threshold calculations formula be that the adaptive control algorithm that key-course is taked obtains, should
Adaptive control algorithm is the degenerative control method of increment of a kind of adjustable parameters, can set according to traffic performance, network
The dynamic setup parameter of the load of machinery systems of standby actual treatment ability and key-course.As it is shown on figure 3, describe oneself of key-course
The concrete principle of suitable solution algorithm, in this adaptive algorithm, number of dropped packets e (t) controls as important parameter, passing ratio
Proportional controller, derivative controller and the integral controller that operator, differential Control operators and integration control operator obtain,
And a upper time quantum allow the U (t) reported determine on send threshold value, according on send threshold value to determine data Layer is currently needed for
On message number U (t+1) that send, concrete process is referred to the process shown in Fig. 3.
Fix it should be noted that above-mentioned proportional controller, derivative controller and integral controller can be one
Constant or controller computing, such as an integration etc..Different output manufacturers, different device type (such as business
Router (English: Service Router, be called for short: SR), Broadband Remote Access Server (English: Broadband Remote
Access Server, is called for short: BRAS), core router (English: Core Router, be called for short: CR) and switch (English:
Switch, is called for short: SW) etc.) different controllers can be set, it is also possible to configure (such as monokaryon CPU, multinuclear according to equipment
The resource such as CPU and internal memory) difference arranges different controllers.Concrete, proportional controller is losing according to a upper time quantum
Bag number, is multiplied by what coefficient k p was adjusted;Derivative controller was that the number of dropped packets according to a upper time quantum is single with the upper time
The difference of the number of dropped packets of the previous time quantum of unit, is multiplied by what coefficient k d was adjusted;Integral controller is according to upper a period of time
Between the number of dropped packets sum of previous time quantum of number of dropped packets and a upper time quantum of unit, be multiplied by coefficient k i and be adjusted
's.And three above-mentioned coefficient k p, the numerical value of kd and ki are set according to actual needs, do not limit
Fixed.
103, in data Layer is according to sending threshold value to determine current time unit on the clear text in current time unit
On the object message number that send.
Exemplary, above-mentioned steps 103 specifically includes herein below:
103a, when clear text number less than on send threshold value time, then in current time unit on the object message number that send
Mesh is clear text number.
103b, when clear text number more than on send threshold value time, then in current time unit on the object message number that send
Mesh clear text number corresponding to threshold value send on being, will exceed and send the clear text of threshold value to abandon.
Send threshold value to limit data Layer on fixing to deliver newspaper on key-course literary composition by setting compared in prior art
Number, can cause the resource of key-course not make full use of or the treating capacity of key-course causes the most greatly message dropping, in this programme
Sending threshold value on is not a fixing value, but pending according in a upper time quantum of current time unit of key-course
Send number to determine on clear text in the number of dropped packets of message and a upper time quantum, fully take into account key-course
Ability to cope with the exigency determine the clear text number that can send above on data Layer, so can avoid the occurrence of key-course money
Source waste or the excessive problem causing message dropping for the treatment of capacity of key-course.Additionally, due to corresponding to different types of message
The message number sent in number of dropped packets and a upper time quantum is different so that send on corresponding to different types of message
Threshold value is also different, and therefore this programme can be set on different sending threshold value, Jin Erben according to different type of messages
Scheme can adapt to the application scenarios of all kinds of message up sending, thus reaches to make full use of the purpose of key-course resource, can ensure
Business is carried out and equipment stable operation in order.
Below the embodiment of the present invention is provided by the associated description in the embodiment of the message processing method corresponding based on Fig. 1
A kind of network equipment be introduced.The explanation of technical term relevant to above-described embodiment in following example, concept etc. can
With reference to the above embodiments, to repeat no more here.
The embodiment of the present invention provides a kind of network equipment, and including data Layer, as shown in Figure 4, the data Layer 2 of the network equipment wraps
Include: acquisition module 21, receiver module 22 and determine module 23, wherein:
Acquisition module 21, obtains a upper time quantum of current time unit for the type of message according to clear text
The number of dropped packets of interior clear text, and the number of dropped packets of clear text is sent to key-course.
Receiver module 22, for receiving key-course according to treating in the number of dropped packets of clear text and a upper time quantum
Process message on send clear text in the current time unit that number determines on send threshold value.
Determine module 23, for according to sending threshold value to determine current time list on the clear text in current time unit
The object message number sent in unit.
Exemplary, acquisition module 21 obtains upper a period of time of current time unit at the type of message according to clear text
Between clear text in unit number of dropped packets specifically for:
Obtain the type of message of clear text.
Type of message according to clear text reads in a upper time quantum of current time unit in data base
The number of dropped packets of clear text.
Further, acquisition module 21 according to the type of message of clear text read in data base described current time
Between unit a upper time quantum in clear text number of dropped packets specifically for:
Type of message according to clear text obtained a upper time of current time unit in message packet loss numerical statement
The number of dropped packets of the clear text in unit, message packet loss numerical statement is different types of message and each time quantum and report
Mapping relations table between literary composition number of dropped packets.
Optionally, as shown in Figure 4, the data Layer 2 of the above-mentioned network equipment also includes: form module 24, wherein:
Form module 24, the number of dropped packets of different types of message in obtaining each time quantum, form message packet loss
Numerical statement, and message packet loss numerical statement is stored to data base.
Exemplary, determine module 23 specifically for:
When clear text number is less than when sending threshold value on described, then in current time unit on the object message number that send
For clear text number.
When clear text number more than on send threshold value time, then in current time unit on the object message number that send be upper
Send the clear text number that threshold value is corresponding, will exceed and send the clear text of threshold value to abandon.
Compared in prior art by set fixed threshold limit data Layer deliver newspaper on key-course literary composition number,
The resource that can cause key-course can not make full use of or the treating capacity of key-course causes the most greatly message dropping, in this programme on give
Threshold value is not a fixing value, but key-course is according to the clear text in a upper time quantum of current time unit
Send number to determine on clear text in number of dropped packets and a upper time quantum, fully take into account the reality of key-course
Ability to bear determines the clear text number that can send above on data Layer, so can avoid the occurrence of the key-course wasting of resources
Or the excessive problem causing message dropping for the treatment of capacity of key-course.Additionally, due to the number of dropped packets corresponding to different types of message
And the message number sent in a upper time quantum is different so that send threshold value also on corresponding to different types of message
Being different, therefore this programme can be set on different sending threshold value, and then this programme energy according to different type of messages
Enough adapt to the application scenarios of all kinds of message up sending, thus reach to make full use of the purpose of key-course resource, can ensure that business has
Sequence is carried out and equipment stable operation.
The network equipment presented hereinbefore is to carry out based on the associated description in the embodiment of the message processing method shown in Fig. 1
, mainly it is described from the data Layer of the network equipment;Below by embodiment based on the message processing method shown in Fig. 1, main
To be introduced from the key-course of the network equipment.
The embodiment of the present invention provides a kind of network equipment, including key-course, as it is shown in figure 5, the key-course 3 of the network equipment wraps
Include: receiver module 31, processing module 32 and sending module 33, wherein:
Receiver module 31, the pending report in the upper time quantum receiving the current time unit that data Layer obtains
The number of dropped packets of literary composition.
Processing module 32, the clear text in the number of dropped packets according to clear text and a upper time quantum
On send number determine clear text in current time unit on send threshold value.
Sending module 33, for sending threshold value to send to data Layer on the clear text in current time unit.
Exemplary, processing module 32 specifically for:
Send sending number to bring on the clear text in the number of dropped packets of clear text and a upper time quantum
Threshold calculations formula, obtain the clear text in current time unit on send threshold value.
Wherein, the threshold calculations formula is sent to be on above-mentioned:
U (t+1)=U (t)+kp*e (t)+kd* (e (t)-e (t-1))+ki* (e (t)+e (t-1)), U (t) was the upper time
Sending number on clear text in unit, e (t) is the number of dropped packets of clear text in a upper time quantum, and e (t-1) is
The number of dropped packets of clear text in the previous time quantum of a upper time quantum, kp is proportional controller operator coefficient, and kd is
Derivative controller operator coefficient, ki is integral controller operator coefficient.
Send threshold value to limit data Layer on fixing to deliver newspaper on key-course literary composition by setting compared in prior art
Number, can cause the resource of key-course not make full use of or the treating capacity of key-course causes the most greatly message dropping, in this programme
Sending threshold value on is not a fixing value, but pending according in a upper time quantum of current time unit of key-course
Send number to determine on clear text in the number of dropped packets of message and a upper time quantum, fully take into account key-course
Ability to cope with the exigency determine the clear text number that can send above on data Layer, so can avoid the occurrence of key-course money
Source waste or the excessive problem causing message dropping for the treatment of capacity of key-course.Additionally, due to corresponding to different types of message
The message number sent in number of dropped packets and a upper time quantum is different so that send on corresponding to different types of message
Threshold value is also different, and therefore this programme can be set on different sending threshold value, Jin Erben according to different type of messages
Scheme can adapt to the application scenarios of all kinds of message up sending, thus reaches to make full use of the purpose of key-course resource, can ensure
Business is carried out and equipment stable operation in order.
In several embodiments provided herein, it should be understood that the disclosed network equipment and Message processing side
Method, can realize by another way.Such as, the data Layer in the network equipment described above and the embodiment of key-course
Be only schematically, such as, the division of described module, be only a kind of logic function and divide, actual can have when realizing another
Outer dividing mode, the most multiple modules or assembly can in conjunction with or be desirably integrated into another system, or some features can
To ignore, or do not perform.Another point, shown or discussed coupling each other or direct-coupling or communication connection can be
By INDIRECT COUPLING or the communication connection of some interfaces, base station or module, can be electrical, machinery or other form.
The described module illustrated as separating component can be or may not be physically separate, shows as module
The parts shown can be or may not be physical location, i.e. may be located at a place, or can also be distributed to multiple
On NE.Some or all of unit therein can be selected according to the actual needs to realize the mesh of the present embodiment scheme
's.
It addition, each functional module in each embodiment of the present invention can be integrated in a processing unit, it is also possible to
It is that the independent physics of modules includes, it is also possible to two or more modules are integrated in a unit.Above-mentioned integrated list
Unit both can realize to use the form of hardware, it would however also be possible to employ hardware adds the form of SFU software functional unit and realizes.
The above-mentioned integrated unit realized with the form of SFU software functional unit, can be stored in an embodied on computer readable and deposit
In storage media.Above-mentioned SFU software functional unit is stored in a storage medium, including some instructions with so that a computer
Equipment (can be personal computer, server, or the network equipment etc.) performs the portion of method described in each embodiment of the present invention
Step by step.And aforesaid storage medium includes: (Read-Only Memory is called for short for USB flash disk, portable hard drive, read only memory
ROM), random access memory (Random Access Memory is called for short RAM), magnetic disc or CD etc. are various can store
The medium of program code.
Last it is noted that above example is only in order to illustrate technical scheme, it is not intended to limit;Although
With reference to previous embodiment, the present invention is described in detail, it will be understood by those within the art that: it still may be used
So that the technical scheme described in foregoing embodiments to be modified, or wherein portion of techniques feature is carried out equivalent;
And these amendment or replace, do not make appropriate technical solution essence depart from various embodiments of the present invention technical scheme spirit and
Scope.
Claims (13)
1. a message processing method, it is characterised in that be applied to the data Layer of the network equipment, described method includes:
Described data Layer obtains treating in a upper time quantum of current time unit according to the type of message of clear text and locates
The number of dropped packets of reason message, and the number of dropped packets of described clear text is sent to key-course;
Described data Layer receives key-course according to treating in the number of dropped packets of described clear text and a described upper time quantum
Process message on send clear text in the current time unit that number determines on send threshold value;
In described data Layer is according to sending threshold value to determine current time unit on the clear text in described current time unit
On the object message number that send.
Method the most according to claim 1, it is characterised in that key-course according to the number of dropped packets of described clear text and
Send on clear text in a described upper time quantum number determine clear text in current time unit on give
Threshold value specifically includes:
Number will be sent to bring on clear text in the number of dropped packets of described clear text and a described upper time quantum
On send threshold calculations formula, obtain the clear text in current time unit on send threshold value;
Wherein, the threshold calculations formula is sent to be on described:
U (t+1)=U (t)+kp*e (t)+kd* (e (t)-e (t-1))+ki* (e (t)+e (t-1)), described U (t) is described upper one
Sending number, described e (t) on clear text in time quantum is the packet loss of clear text in a described upper time quantum
Number, described e (t-1) be a described upper time quantum previous time quantum in the number of dropped packets of clear text, described kp is
Proportional controller operator coefficient, described kd is derivative controller operator coefficient, and described ki is integral controller operator coefficient.
Method the most according to claim 1, it is characterised in that described data Layer obtains according to the type of message of clear text
The number of dropped packets taking the clear text in a upper time quantum of current time unit specifically includes:
Obtain the type of message of clear text;
Type of message according to described clear text reads a upper time quantum of described current time unit in data base
The number of dropped packets of interior clear text.
Method the most according to claim 3, it is characterised in that the described type of message according to described clear text is counting
Specifically include according to the number of dropped packets of the clear text in the upper time quantum reading described current time unit in storehouse:
Type of message according to described clear text obtained a upper time of current time unit in message packet loss numerical statement
The number of dropped packets of the clear text in unit, described message packet loss numerical statement be different types of message and each time quantum with
And the mapping relations table between message number of dropped packets.
Method the most according to claim 4, it is characterised in that described method also includes:
The number of dropped packets of different types of message in obtaining each time quantum, forms message packet loss numerical statement, and by described message
Packet loss numerical statement stores to data base.
Method the most according to claim 1, it is characterised in that described data Layer is according to treating in described current time unit
Process message on send threshold value to determine the object message number sent in current time unit specifically includes:
When described clear text number is less than when sending threshold value on described, then in current time unit on the object message number that send
For described clear text number;
When described clear text number is more than when sending threshold value on described, then in current time unit on the object message number that send
For clear text number corresponding to threshold value sending on described, abandon exceeding the clear text sending threshold value on described.
7. a network equipment, including data Layer, it is characterised in that described data Layer includes:
Acquisition module, obtains treating in a upper time quantum of current time unit for the type of message according to clear text
Process the number of dropped packets of message, and the number of dropped packets of described clear text is sent to key-course;
Receiver module, for receiving key-course according in the number of dropped packets of described clear text and a described upper time quantum
Send on clear text the clear text in the current time unit that number determines on send threshold value;
Determine module, for sending threshold value to determine current time unit according on the clear text in described current time unit
The object message number sent on Nei.
The network equipment the most according to claim 7, it is characterised in that described acquisition module is at the report according to clear text
Literary composition type obtain current time unit a upper time quantum in clear text number of dropped packets specifically for:
Obtain the type of message of clear text;
Type of message according to described clear text reads a upper time quantum of described current time unit in data base
The number of dropped packets of interior clear text.
The network equipment the most according to claim 8, it is characterised in that described acquisition module is according to described clear text
Type of message in data base, read the number of dropped packets of the clear text in the upper time quantum of described current time unit
Specifically for:
Type of message according to described clear text obtained a upper time of current time unit in message packet loss numerical statement
The number of dropped packets of the clear text in unit, described message packet loss numerical statement be different types of message and each time quantum with
And the mapping relations table between message number of dropped packets.
The network equipment the most according to claim 9, it is characterised in that described data Layer also includes:
Form module, the number of dropped packets of different types of message in obtaining each time quantum, form message packet loss numerical statement,
And described message packet loss numerical statement is stored to data base.
11. network equipments according to claim 7, it is characterised in that described determine module specifically for:
When described clear text number is less than when sending threshold value on described, then in current time unit on the object message number that send
For described clear text number;
When described clear text number is more than when sending threshold value on described, then in current time unit on the object message number that send
For clear text number corresponding to threshold value sending on described, abandon exceeding the clear text sending threshold value on described.
12. 1 kinds of network equipments, including key-course, it is characterised in that described key-course includes:
Receiver module, losing of the clear text in the upper time quantum receiving the current time unit that data Layer obtains
Bag number;
Processing module, the clear text in the number of dropped packets according to described clear text and a described upper time quantum
Send on number determine clear text in current time unit on send threshold value;
Sending module, for sending threshold value to send to data Layer on the clear text in described current time unit.
13. network equipments according to claim 12, it is characterised in that described processing module specifically for:
Number will be sent to bring on clear text in the number of dropped packets of described clear text and a described upper time quantum
On send threshold calculations formula, obtain the clear text in current time unit on send threshold value;
Wherein, the threshold calculations formula is sent to be on described:
U (t+1)=U (t)+kp*e (t)+kd* (e (t)-e (t-1))+ki* (e (t)+e (t-1)), described U (t) is described upper one
Sending number, described e (t) on clear text in time quantum is the packet loss of clear text in a described upper time quantum
Number, described e (t-1) be a described upper time quantum previous time quantum in the number of dropped packets of clear text, described kp is
Proportional controller operator coefficient, described kd is derivative controller operator coefficient, and described ki is integral controller operator coefficient.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610681329.8A CN106254266B (en) | 2016-08-17 | 2016-08-17 | Message processing method and network equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610681329.8A CN106254266B (en) | 2016-08-17 | 2016-08-17 | Message processing method and network equipment |
Publications (2)
Publication Number | Publication Date |
---|---|
CN106254266A true CN106254266A (en) | 2016-12-21 |
CN106254266B CN106254266B (en) | 2020-02-04 |
Family
ID=57592233
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610681329.8A Active CN106254266B (en) | 2016-08-17 | 2016-08-17 | Message processing method and network equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106254266B (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109561029A (en) * | 2017-09-26 | 2019-04-02 | 中兴通讯股份有限公司 | A kind of message up sending control method and device |
CN113691536A (en) * | 2021-08-25 | 2021-11-23 | 北京天融信网络安全技术有限公司 | Message processing method and device, electronic equipment and readable storage medium |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2004021628A2 (en) * | 2002-08-29 | 2004-03-11 | Broadcom Corporation | System and method for network interfacing |
CN1859209A (en) * | 2006-04-04 | 2006-11-08 | 华为技术有限公司 | Safety protecting method for digital user line cut-in multiplexing device |
CN1996939A (en) * | 2006-12-29 | 2007-07-11 | 华为技术有限公司 | Method for message access control, forwarding engine and communication device |
CN101060531A (en) * | 2007-05-17 | 2007-10-24 | 华为技术有限公司 | A method and device for avoiding the attack of network equipment |
CN101355585A (en) * | 2008-09-02 | 2009-01-28 | 中兴通讯股份有限公司 | System and method for protecting information of distributed architecture data communication equipment |
CN101478408A (en) * | 2008-12-30 | 2009-07-08 | 华为技术有限公司 | Method, apparatus and system for implementing uploading rate dynamic linkage |
CN101699817A (en) * | 2009-11-04 | 2010-04-28 | 杭州华三通信技术有限公司 | Method and device for controlling messages transmitted to CPU |
-
2016
- 2016-08-17 CN CN201610681329.8A patent/CN106254266B/en active Active
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2004021628A2 (en) * | 2002-08-29 | 2004-03-11 | Broadcom Corporation | System and method for network interfacing |
CN1859209A (en) * | 2006-04-04 | 2006-11-08 | 华为技术有限公司 | Safety protecting method for digital user line cut-in multiplexing device |
CN1996939A (en) * | 2006-12-29 | 2007-07-11 | 华为技术有限公司 | Method for message access control, forwarding engine and communication device |
CN101060531A (en) * | 2007-05-17 | 2007-10-24 | 华为技术有限公司 | A method and device for avoiding the attack of network equipment |
CN101355585A (en) * | 2008-09-02 | 2009-01-28 | 中兴通讯股份有限公司 | System and method for protecting information of distributed architecture data communication equipment |
CN101478408A (en) * | 2008-12-30 | 2009-07-08 | 华为技术有限公司 | Method, apparatus and system for implementing uploading rate dynamic linkage |
CN101699817A (en) * | 2009-11-04 | 2010-04-28 | 杭州华三通信技术有限公司 | Method and device for controlling messages transmitted to CPU |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109561029A (en) * | 2017-09-26 | 2019-04-02 | 中兴通讯股份有限公司 | A kind of message up sending control method and device |
CN113691536A (en) * | 2021-08-25 | 2021-11-23 | 北京天融信网络安全技术有限公司 | Message processing method and device, electronic equipment and readable storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN106254266B (en) | 2020-02-04 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
EP3116177A1 (en) | Service implementation method for nfv system, and communications unit | |
CN110830391A (en) | Resource allocation method and device and cluster system | |
CN102594675B (en) | Traffic control system and method | |
CN102004673A (en) | Processing method and system of multi-core processor load balancing | |
CN104113492A (en) | Router based user access bandwidth adjusting method, device and system | |
CN107404443A (en) | Queue cache resources control method and device, server and storage medium | |
CN106453669A (en) | Load balancing method and server | |
CN103297282A (en) | Network delay measuring device and method | |
CN104967528A (en) | Bandwidth adjusting method and system based on SDN controller | |
CN106921578A (en) | The generation method and device of a kind of forwarding-table item | |
CN104410581A (en) | Configuration information design and information extraction of AFDX (Avionics Full Duplex Switched Ethernet) network | |
CN108932182B (en) | Message bus performance test method and system | |
CN106357542A (en) | Method for providing multicast service and software defined network controller | |
CN112787952B (en) | Service flow adjusting method and device | |
CN115086250A (en) | Network target range distributed traffic generation system and method | |
CN110855424B (en) | Method and device for synthesizing asymmetric flow xDR in DPI field | |
CN106254266A (en) | A kind of message processing method and the network equipment | |
CN104160735A (en) | Packet processing method, forwarder, packet processing device and packet processing system | |
CN103188120A (en) | Detection method for packet loss of multicast business and device thereof | |
CN105871753A (en) | Router bandwidth management method and device, and router | |
CN101594642B (en) | Resource allocation method and resource allocation device used for communication network element device | |
CN111431921B (en) | Configuration synchronization method | |
CN101848453B (en) | Method and device for dynamically adjusting data transmission | |
CN103856496A (en) | Information publishing method, information publishing equipment and information publishing system | |
CN110113269B (en) | Flow control method based on middleware and related device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |