CN106411545A - Service attribute counting method and device - Google Patents

Service attribute counting method and device Download PDF

Info

Publication number
CN106411545A
CN106411545A CN201510449744.6A CN201510449744A CN106411545A CN 106411545 A CN106411545 A CN 106411545A CN 201510449744 A CN201510449744 A CN 201510449744A CN 106411545 A CN106411545 A CN 106411545A
Authority
CN
China
Prior art keywords
module
enumerator
attribute
counting
counter
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Withdrawn
Application number
CN201510449744.6A
Other languages
Chinese (zh)
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.)
Shenzhen ZTE Microelectronics Technology Co Ltd
Original Assignee
Shenzhen ZTE Microelectronics Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen ZTE Microelectronics Technology Co Ltd filed Critical Shenzhen ZTE Microelectronics Technology Co Ltd
Priority to CN201510449744.6A priority Critical patent/CN106411545A/en
Priority to PCT/CN2016/080974 priority patent/WO2017016259A1/en
Publication of CN106411545A publication Critical patent/CN106411545A/en
Withdrawn legal-status Critical Current

Links

Classifications

    • 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/50Network service management, e.g. ensuring proper service fulfilment according to agreements
    • 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/14Network analysis or design
    • H04L41/142Network analysis or design using statistical or mathematical methods

Abstract

A service attribute counting device disclosed by the embodiment of the present invention comprises a configuration module and at least one counting turnover module, and the counting turnover module comprises a key value generation module, an index module and a counter updating module. The key value generation module is used to receive a service request signal, optimize the to-be-optimized attribute fields in the service attributes carried by the service request signal to obtain the optimized attribute fields, generate the corresponding key values at least according to the preset configuration information, the general attribute fields in the service attributes and the optimized attribute fields, and send to the index module; the index module is used to receive the corresponding key values, and determine the one-to-one correspondence counter index addresses according to the corresponding key values and send to the counter updating module; and the counter updating module is used to count and update a counter meter according to the counter index addresses. The embodiment of the present invention also discloses a service attribute counting method.

Description

A kind of method of counting of service attribute and device
Technical field
The present invention relates to the communications field, more particularly, to a kind of method of counting of service attribute and device.
Background technology
Traffic handing capacity with communication equipment is constantly strengthened, business statistics counting index be continuously increased and with The change of application scenarios and change, this is accomplished by statistical counting technology and can flexibly adapt to different applications Scene.
At present, existing statistical counting technology is both for known statistical demand and carries out statistical counting and resource Distribution.Adopt different counting assemblys for different message attribute, there is not compatible plurality of application scenes Counting assembly, such as, carry out classified statistic counting for the different message attribute under a certain business, or When person counts after identical/similar message attribute is optimized again, can not by same counting assembly Lai Realize.
So, the message attribute counting assembly that there is prior art can not be adapted flexibly to multiple applied field Scape.
Content of the invention
In view of this, embodiment of the present invention expectation provides a kind of method of counting of service attribute and device, with full The demand of sufficient plurality of application scenes, improves motility.
For reaching above-mentioned purpose, the technical scheme is that and be achieved in that:
In a first aspect, the embodiment of the present invention provides a kind of service attribute counting assembly, including:Configuration module with And at least one counts flowing water module;Wherein, described counting flowing water module includes:Key assignments generation module, rope Draw module and enumerator update module;Described key assignments generation module, for receiving service request signal;Right In the service attribute carrying in described service request signal, attribute field to be optimized is optimized, and obtains and optimizes Attribute field afterwards;According at least to common property field in default configuration information, described service attribute and Attribute field after described optimization, generates corresponding key assignments, and sends to described index module;Described index Module, for receiving described corresponding key assignments;According to described corresponding key assignments, determine one-to-one counting Device index address, and send to described enumerator update module;Described enumerator update module, for basis Described counter index address, carries out counting operation refresh counter table, wherein, described enumerator table List item is the value of the enumerator corresponding to described service attribute.
In such scheme, described key assignments generation module, including:Mapping table module and logical operation module; Wherein, described mapping table module, for storing the described default mapping table that described configuration module issues, and presses Described attribute field to be optimized is mapped according to default mapping table, is obtained corresponding mapping value;Will Described mapping value is defined as the attribute field after described optimization;Described logical operation module, for according to described Configuration information, generates the corresponding key assignments of attribute field after described common property field and described optimization, and Send to described index module.
In such scheme, described service request signal can also add in business procession for user Counting requests, carry Custom Attributes in described Counting requests;Described logical operation module, is additionally operable to root According to the attribute field after described default configuration information, described common property field, described optimization and described Custom Attributes, generates described corresponding key assignments.
In such scheme, described index module, including:Offset table module and index computing module;Its In, described offset table module, the offset address for memory counter and enumerator skew enable signal; Described index computing module, by default bias table read with described corresponding key assignments correspondingly based on Number device offset address and enumerator skew enable signal;According to the counting carrying in described service request signal Device base address, described enumerator offset address and the skew of described enumerator enable signal, determine described counting Device index address.
In such scheme, described index computing module, specifically for according to the meter from described configuration module Enumerator in number device more newly control information enables signal, determines whether itself residing counting flowing water module makes Energy;When itself residing counting flowing water module enables, according to described corresponding key assignments, described default inclined Read corresponding described enumerator offset address in shifting table and the skew of described enumerator enables signal.
In such scheme, described index computing module, it is additionally operable to according to the counting from described configuration module Enumerator in device more newly control information enables signal and the skew of described enumerator enables signal, it is determined whether more Newly described enumerator table;Described enumerator update module, for updating institute when described index computing module determines When stating enumerator table, according to described counter index address, carry out counting operation refresh counter table.
In such scheme, described service attribute counting assembly, also include:Scheduler module, for receiving extremely A few service request signal, and according to preset schedule rule, at least one service request signal described is adjusted Spend that at least one counts in flowing water module to described in parallel.
In such scheme, described service attribute counting assembly, also include:Counter overflow processing module, For before counter overflow, the value reading enumerator described in described enumerator table of order, and send To direct memory access dma module.
Second aspect, the embodiment of the present invention provides a kind of method of counting of service attribute, including:To receiving Service request signal in the service attribute that carries attribute field to be optimized be optimized, obtain after optimizing Attribute field;According at least to common property field and institute in default configuration information, described service attribute State the attribute field after optimization, generate corresponding key assignments;According to described corresponding key assignments, determine and correspond Counter index address;According to described counter index address, carry out counting operation refresh counter table, Wherein, the list item of described enumerator table is the value of the enumerator corresponding to described service attribute.
In such scheme, described will be excellent to treating in the service attribute carrying in the service request signal receiving The attribute field changed is optimized, and obtains the attribute field after optimizing, including:By described attribute to be optimized Field is mapped according to default mapping table, obtains corresponding mapping value;Described mapping value is defined as institute State the attribute field after optimization.
In such scheme, described service request signal can also add in business procession for user Counting requests, carry Custom Attributes in described Counting requests;Described according at least to default configuration information, Attribute field after common property field and described optimization in described message attribute, generates corresponding key assignments, Including:According to the attribute field after described default configuration information, described common property field, described optimization And described Custom Attributes, generate described corresponding key assignments.
In such scheme, described according to described corresponding key assignments, determine one-to-one counter index ground Location, including:Enumerator offset address one-to-one with described corresponding key assignments is read in default bias table And enumerator skew enables signal;According to the enumerator base address carrying in described service request signal, institute State enumerator offset address and the skew of described enumerator enables signal, determine described counter index address.
In such scheme, described according to described counter index address, carry out counting operation more New count Device table, including:When inclined according to the enumerator enable signal in enumerator more newly control information and described enumerator When moving the enable signal determination described enumerator table of renewal, according to described counter index address, carry out counting behaviour Make and refresh counter table.
In such scheme, methods described also includes:Before counter overflow, the described meter of reading of order The value of enumerator described in number device table.
Embodiments provide a kind of method of counting of service attribute and device, by believing service request The service attribute carrying in number is neatly classified, and generates corresponding key assignments for each class service attribute, It is then determined that going out counter index address corresponding with above-mentioned key assignments, next, according to this counter index ground Location, is counted, and refresh counter table.It can be seen that, the counting of service attribute provided in an embodiment of the present invention Method can adapt to the count requirement of different application scene, counts the same of motility greatly improving service attribute When it is achieved that storage resource share reduce resource occupation.
Brief description
Fig. 1 is the structural representation of the service attribute device in the embodiment of the present invention;
Fig. 2 is the method for counting schematic flow sheet of the service attribute in the embodiment of the present invention;
Fig. 3 is the corresponding relation schematic diagram of the attribute field in the embodiment of the present invention and key assignments;
Fig. 4 is the structural representation of the key assignments generation module in the embodiment of the present invention;
Fig. 5 is the structural representation of the index module in the embodiment of the present invention.
Specific embodiment
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 clearly Chu, it is fully described by.
The embodiment of the present invention provides a kind of service attribute counting assembly, as shown in figure 1, this device includes:Join Put module 1 and at least one counts flowing water module 2;Wherein, count flowing water module 2 to include:Key assignments is given birth to Become module 21, index module 22 and enumerator update module 23;
In conjunction with the embodiment of the present invention, above-mentioned key assignments generation module 21, for receiving service request signal;To industry In the service attribute carrying in business request signal, attribute field to be optimized is optimized, and obtains the genus after optimizing Property field;According at least to the genus after common property field in default configuration information, service attribute and optimization Property field, generate corresponding key assignments, and send to index module 22;
Above-mentioned index module 22, for receiving corresponding key assignments;According to corresponding key assignments, determine and correspond Counter index address, and send to enumerator update module 23;
Above-mentioned enumerator update module 23, for according to counter index address, carrying out counting operation and updating Enumerator table, wherein, the list item of enumerator table is the value of the enumerator corresponding to service attribute.
It should be noted that configuration module 1 is cpu i/f operation module, institute is completed by cpu port There is the configuration of static register, complete the configuration to all list items and reading by way of indirect read-write simultaneously.
With reference to above-mentioned service attribute counting assembly, to a kind of service attribute provided in an embodiment of the present invention Method of counting illustrates.
Shown in Figure 2, the method includes:
S201:Attribute field to be optimized in the service attribute carrying in the service request signal receiving is entered Row optimizes, and obtains the attribute field after optimizing;
Specifically, the service attribute carrying in the service request signal that service attribute technique device receives can Following several to have:CNG, is in the message priority of switching phase;IFP_CNG, is in last route The message priority in stage;Priority, the entrance priority of message;VLAN Formate, VLAN format; Outer Dot1p, inner label;Inner Dot1p, external label;Port, port;TOS, COS; Packet Resolution, Message processing result;SVP Type, towards customer service or network-oriented;Drop, loses Abandon instruction;IP Packet, if IP message.It is, of course, also possible to there be other attributes, the present invention does not do specifically Limit.
So, due in some application scenarios, only adhering to separately property word in the middle part of the attribute field similar to these Duan Jinhang statistics cannot meet statistical demand, but does not need subdivision to each attribute independent to be counted, It is possible to similar attribute field is done by merging according to application scenarios demand optimize, to save enumerator money Source.Such as, the message of same message attribute is divided into a class, or message color identical message is divided into One class etc..So, by the optimization to attribute field, attribute field can be converted to relatively by discrete state Continuous state, and then improve the utilization rate of offset table.
So, user can be configured to the principle of optimality by configuration module, then, when key assignments generates mould Block receives service request signal later it is possible to look into the service attribute carrying in service request signal See, see and wherein whether there is the attribute field needing to optimize, in this way, then these fields are optimized, obtain Attribute field after must optimizing, such as, configuration module issues the default principle of optimality to key assignments generation module, This rule is embodied in the form of mapping table, and attribute field to be optimized can be mapped according to this mapping table, Obtain corresponding mapping value, now it is possible to this mapping value is confirmed as the attribute field after optimizing.
As an example it is assumed that the message of same message color is divided into a class, then, there is red packet, Huang Bag, green bag and colourless Bao Gongsi class message, then, user just can be regular by configuration module configuration optimization, The 2bit data characterizing message color is enable to be placed on a high position for key assignments.
Certainly, after key assignments generation module receives service request signal, it is also possible that some business please Ask and all mapped according to mapping table, now, user is thought to the field not needing to be optimized, mapping The corresponding list item of table is former field.In actual applications, the attribute field in service attribute is carried out excellent The mode changed can also have alternate manner, and the present invention is not specifically limited.
In another embodiment, before S201, said method also includes:Receive at least one service request Signal, and according to preset schedule rule, at least one service request signal is dispatched to parallel at least one Count in flowing water module.That is, being parallel because at least one counts flowing water module, then, be Raising counting efficiency, before being counted, can according to default scheduling rule, such as priority algorithm, Polling algorithm is scheduling at least one service request signal, makes service request signal according to the counting carrying Device base address enters in corresponding counting flowing water module, to be counted.
S202:After common property field in default configuration information, service attribute and optimization Attribute field, generates corresponding key assignments;
Specifically, after key assignments generation module is optimized to the attribute field needing to optimize, with regard to direct basis Configuration information, is to generate corresponding key to the attribute field after optimizing and the common property field that need not optimize Value.
As an example it is assumed that needing to generate 8bit key assignments, then it is necessary to configuration module provides Fig. 3 such as to show Configuration information, in this configuration information specify key assignments in who whether enable (in the case of enable, this position Put 1;In the case of not enabling, this position 0) and in the case of enabling each attribute field institute in key assignments The particular location at place.
Such as, service attribute is 64bit, as attr [63:0], the key assignments ultimately generating is key [7:0], join Confidence number is key_cfg [55:0], then every signal value of key is:If key_cfg [48] is (in Fig. 3 SELECTOR_0_EN) value is 0, then the value of key [0] is 0;Otherwise key [0] value is attr [5:0] (Fig. 3 In the specified position of SELECTOR_FOR_BIT_0 value);If key_cfg [49] is (in Fig. 3 SELECTOR_1_EN) value is 0, then the value of key [1] is 0;Otherwise key [1] value is attr [11:6] (figure The specified position of SELECTOR_FOR_BIT_1 value in 3).By that analogy, no longer repeat one by one herein.
In another embodiment, the service request signal in above-mentioned S201 can also be for user in Business Processing mistake The Counting requests adding in journey, carry Custom Attributes in this Counting requests, such as, the debug that user increases Tally function, this tally function shares memory space with traffic meter, and only under debug state Use, can't usage count device table space.
So, the attribute word after S202 can be according to default configuration information, common property field, optimization Section and Custom Attributes, generate corresponding key assignments.Now, this service attribute counting assembly just can be distinguished Generate corresponding key assignments for the attribute field after common attribute field, optimization and Custom Attributes.
S203:According to corresponding key assignments, determine one-to-one counter index address;
Specifically, be stored with index module a default bias table, and the list item of this table is the skew of enumerator Address and enumerator skew enable signal, it is, of course, also possible to include check information.When index module receives It is possible to read and key assignments one-to-one enumerator offset address in default bias table after above-mentioned key assignments And enumerator skew enable signal, then, according to the enumerator base address carrying in service request signal, Enumerator offset address and enumerator skew enable signal, determines counting device index address.
In specific implementation process, after index module receives above-mentioned key assignments, can also be first according to configuration Enumerator in the enumerator that module issues more newly control information enables signal, judges itself residing counting stream Whether water module enables, and if so, then executes S203, if it is not, then terminating to count.
Further, index module can also enable signal according to the enumerator in enumerator more newly control information And the enumerator skew in default bias table enables signal, it is determined whether count table to be updated, and by result It is sent to count update module.
S204:According to counter index address, carry out counting operation refresh counter table, wherein, count The list item of device table is the value of the enumerator corresponding to service attribute.
Specifically, the counter index address that count update module sends according to index module, it is right to find The value of the enumerator answered, then, carries out counting operation, simultaneously in refresh counter table this enumerator value.
It should be noted that when only index module determination will update count table, executing S204, if indices modulo Block determines not to be needed to update count table, then terminate to count.
In actual applications, if the bit wide of enumerator is less, easily overflow, be necessary in counter overflow The value of enumerator is moved out of enumerator table before.So, service attribute counting assembly also include enumerator overflow Go out processing module, the method moved using order, that is, before counter overflow, the read-out counter of order The value of table Counter, delivers to direct memory access (DMA, Direct Memory Access) module, with Deliver to CPU process.
In specific implementation process, count update module can include:Arbitration modules and counter counts digital-to-analogue Block, wherein, the counter index address that arbitration modules are used for receiving from index module please with count table renewal Ask, then, using certain dispatching principle, such as priority algorithm, above-mentioned request is dispatched to counter counts Digital-to-analogue block is so that rolling counters forward module completes counting operation, and the value after calculating is updated to enumerator table. In above process, counter technique module needs to ensure that the value participating in counting is last look.
Further, arbitration modules are additionally operable to receive the read-write requests from CPU and scan request, similarly, Using certain dispatching principle, such as priority algorithm, dispatched according to above-mentioned request, read from enumerator table Or write corresponding list item.
Said method is illustrated with instantiation below.
Assume that service attribute counting assembly could support up 6 enumerators and counts simultaneously, then there are 6 parallel places The counting flowing water module of reason.Now need respectively to the priority of message, the result of message, IP message and All message request of input port are counted, then scheduler module is according to the enumerator carrying in service request Counting requests are dispatched in corresponding enumerator flowing water module base address information, first counting flowing water module Certain priority (Priority, CNG and IFP_CNG) for message is counted;Article 2 counts The result that flowing water module is directed to message is counted;Article 3 counts flowing water module and carries out for IP message Statistics;Article 4 counts flowing water module and is counted for all of message request of input port;5th and Article six, count flowing water module idle, now, user's configurable counter more newly control information is by this two flowing water The corresponding enumerator of module enables signal and is set off.
Article first, the priority attribute counting flowing water module Counter includes Priority (4bit), CNG (2bit) and IFP_CNG (2bit), this 8bit totally 256 kinds of situations in theory, but this enumerator only counts The state that Priority and CNG is 01 and IFP_CNG is 11, then can will be all of by CPU Disarmed state is mapped as 0, and the 8bit attribute after mapping leaves in default mapping table, that is, the genus after optimizing Property field;Article 2 count flowing water module Counter result attribute include Packet Resolution (6bit), SVP Type (1bit) and Drop (1bit) field, wherein Packet Resolution is discontinuously to have cavity, By CPU, all of disarmed state can be mapped as 0, the 8bit attribute after mapping leaves default mapping in Attribute field in table, that is, after optimizing;In Article 3 counting flowing water module, IP message attribute need not be excellent for 1bit Change, be fed directly to rear class;Article 4 counts the enumerator that flowing water module is User Defined attribute and need not optimize, It is fed directly to rear class;Assume that all attributes after optimizing are a (40bit), wherein a [7:0] it is priority Attribute, a [15:8] it is Message processing result attribute, a [30] is IP attribute, a [39] is user-defined port Attribute, remaining field is other type attribute;Article first and second, the configuration information counting flowing water module can refer to Determine 8bit key assignments all to enable, the key-value pair not enabled should be set as 0, the value extracted in the use a of enable, Article third and fourth, count flowing water module and only need to enable lowest order, high 7 is 0.Front 4 counting flowing water moulds The enumerator of block more newly control information Counter enables signal and is configured to 1, enablement count, and remaining counts stream Water module is configured to 0, closes and counts.According to key assignments, obtaining enumerator skew after indexing default bias table makes Can be with enumerator offset address, the invalid key assignments Counter after being optimized by mapping table is enabled signal and all sets It is set to 0, effective key assignments has respective offset address, these offset address can be the same or different.Again Obtain counter index address according to being added with enumerator base address after enumerator offset address.Finally, according to Counter index address, is counted, and updates count table.
So far, just complete the process that service attribute is counted.
From the foregoing, embodiments providing a kind of method of counting of service attribute and device, pass through The service attribute carrying in service request signal is neatly classified, is generated for each class service attribute Corresponding key assignments, it is then determined that going out counter index address corresponding with above-mentioned key assignments, next, according to this Counter index address, is counted, and refresh counter table.It can be seen that, industry provided in an embodiment of the present invention The method of counting of business attribute can adapt to the count requirement of different application scene, is greatly improving service attribute meter It is achieved that storage resource is shared reduces resource occupation while number motility.
Based on same inventive concept, the embodiment of the present invention also provides a kind of service attribute counting assembly, and above-mentioned Service attribute counting assembly in one or more embodiment is consistent.
Shown in Figure 1, this device includes:Configuration module 1 and at least one counting flowing water module 2; Wherein, count flowing water module 2 to include:Key assignments generation module 21, index module 22 and enumerator update Module 23;Wherein, above-mentioned key assignments generation module 21, for receiving service request signal;Service request is believed In the service attribute carrying in number, attribute field to be optimized is optimized, and obtains the attribute field after optimizing; According at least to the attribute field after common property field in default configuration information, service attribute and optimization, Generate corresponding key assignments, and send to index module 22;Above-mentioned index module 22, for receiving corresponding key Value;According to corresponding key assignments, determine one-to-one counter index address, and send to enumerator renewal Module 23;Above-mentioned enumerator update module 23, for according to counter index address, carrying out counting operation simultaneously Refresh counter table, wherein, the list item of enumerator table is the value of the enumerator corresponding to service attribute.
In such scheme, shown in Figure 4, key assignments generation module 21, including:Mapping table module 211 And logical operation module 212;Wherein, mapping table module 211, for storage configuration module 1 issue pre- If mapping table, and mapped according to default mapping table by by attribute field to be optimized, obtained corresponding Mapping value;Mapping value is defined as the attribute field after optimizing;Logical operation module 212, joins for basis Confidence ceases, the corresponding key assignments of attribute field after generating common property field and optimizing, and sends to index Computing module 22.
In such scheme, the counting that service request signal can also add in business procession for user Request, carries Custom Attributes in Counting requests;Logical operation module 212, is additionally operable to according to default Configuration information, common property field, optimize after attribute field and Custom Attributes, generate corresponding key Value.
In such scheme, shown in Figure 5, index module 22, including:Offset table module 221 and Index computing module 222;Wherein, offset table module 221, by memory counter offset address and based on Number device skew enables signal;Index computing module 222, for reading and corresponding key in default bias table It is worth one-to-one enumerator offset address and enumerator skew enables signal;According in service request signal The enumerator base address, enumerator offset address and the enumerator skew that carry enable signal, determines counting device Index address.
In such scheme, index computing module 222, specifically for according to the counting from configuration module 1 Enumerator in device more newly control information enables signal, determines whether itself residing counting flowing water module 2 makes Energy;When itself residing counting flowing water module 2 enables, according to corresponding key assignments, in default bias table Read corresponding enumerator offset address and enumerator skew enables signal.
In such scheme, index computing module 222, be additionally operable to according to the enumerator from configuration module 1 Enumerator in more newly control information enables signal and enumerator skew enables signal, it is determined whether more New count Device table;
Correspondingly, enumerator update module 23, for when index module 22 determine refresh counter table when, According to counter index address, carry out counting operation refresh counter table.
In such scheme, service attribute counting assembly, also include:Scheduler module, for receiving at least one Individual service request signal, and according to preset schedule rule, at least one service request signal is dispatched to parallel At least one count flowing water module 2 in.
In such scheme, service attribute counting assembly, also include:Counter overflow processing module, is used for Before counter overflow, the value of the read-out counter table Counter of order, and send and deposit to direct internal memory Take dma module.
Those skilled in the art are it should be appreciated that embodiments of the invention can be provided as method, system or meter Calculation machine program product.Therefore, the present invention can using hardware embodiment, software implementation or combine software and The form of the embodiment of hardware aspect.And, the present invention can adopt and wherein include calculating one or more Computer-usable storage medium (including but not limited to disk memory and the optical storage of machine usable program code Device etc.) the upper computer program implemented form.
The present invention is with reference to method according to embodiments of the present invention, equipment (system) and computer program Flow chart and/or block diagram describing.It should be understood that can be by computer program instructions flowchart and/or side Each flow process in block diagram and/or the knot of the flow process in square frame and flow chart and/or block diagram and/or square frame Close.Can provide these computer program instructions to general purpose computer, special-purpose computer, Embedded Processor or The processor of other programmable data processing device is to produce a machine so that can by computer or other The instruction of the computing device of programming data processing equipment produces for realizing in one flow process or multiple of flow chart The device of the function of specifying in flow process and/or one square frame of block diagram or multiple square frame.
These computer program instructions may be alternatively stored in and can guide computer or other programmable data processing device So that being stored in this computer-readable memory in the computer-readable memory working in a specific way Instruction produces the manufacture including command device, and this command device is realized in one flow process of flow chart or multiple stream The function of specifying in journey and/or one square frame of block diagram or multiple square frame.
These computer program instructions also can be loaded in computer or other programmable data processing device, makes Obtain and execute series of operation steps to produce computer implemented place on computer or other programmable device Reason, thus the instruction of execution is provided for realizing in flow chart one on computer or other programmable device The step of the function of specifying in flow process or multiple flow process and/or one square frame of block diagram or multiple square frame.
The above, only presently preferred embodiments of the present invention, it is not intended to limit the protection model of the present invention Enclose.

Claims (14)

1. a kind of service attribute counting assembly is it is characterised in that include:Configuration module and at least one meter Number flowing water module;Wherein, described counting flowing water module includes:Key assignments generation module, index module and meter Number device update module;
Described key assignments generation module, for receiving service request signal;Carry in described service request signal Service attribute in attribute field to be optimized be optimized, obtain optimize after attribute field;According at least to Attribute field after common property field and described optimization in default configuration information, described service attribute, Generate corresponding key assignments, and send to described index module;
Described index module, for receiving described corresponding key assignments;According to described corresponding key assignments, determine one One corresponding counter index address, and send to described enumerator update module;
Described enumerator update module, for according to described counter index address, carrying out counting operation more Refresh counter table, wherein, the list item of described enumerator table is the value of the enumerator corresponding to described service attribute.
2. device according to claim 1 is it is characterised in that described key assignments generation module, including: Mapping table module and logical operation module;Wherein,
Described mapping table module, for storing the described default mapping table that described configuration module issues, and by general Described attribute field to be optimized is mapped according to default mapping table, obtains corresponding mapping value;By institute State the attribute field after mapping value is defined as described optimization;
Described logical operation module, for according to described configuration information, generate described common property field and The corresponding key assignments of attribute field after described optimization, and send to described index module.
3. device according to claim 1 is it is characterised in that described service request signal can also be The Counting requests that user adds in business procession, carry Custom Attributes in described Counting requests;
Described logical operation module, be additionally operable to according to described default configuration information, described common property field, Attribute field after described optimization and described Custom Attributes, generate described corresponding key assignments.
4. device according to claim 1 is it is characterised in that described index module, including:Skew Table module and index computing module;Wherein,
Described offset table module, the offset address for memory counter and enumerator skew enable signal;
Described index computing module, is corresponded with described corresponding key assignments for reading in default bias table Enumerator offset address and enumerator skew enable signal;According to carry in described service request signal Enumerator base address, described enumerator offset address and the skew of described enumerator enable signal, determine described Counter index address.
5. device according to claim 4, it is characterised in that described index computing module, is specifically used In signal is enabled according to the enumerator in the enumerator more newly control information of described configuration module, determine certainly Whether the counting flowing water module residing for body enables;When itself residing counting flowing water module enables, according to institute State corresponding key assignments, described default bias table reads corresponding described enumerator offset address and described Enumerator skew enables signal.
6. device according to claim 4, it is characterised in that described index computing module, is additionally operable to Signal and described counting are enabled according to the enumerator in the more newly control information of the enumerator from described configuration module Device skew enables signal, it is determined whether update described enumerator table;
Described enumerator update module, for when described index computing module determine update described enumerator table when, According to described counter index address, carry out counting operation refresh counter table.
7. device according to claim 1, it is characterised in that described service attribute counting assembly, is gone back Including:Scheduler module, for receiving at least one service request signal, and according to preset schedule rule, will At least one service request signal described is dispatched in parallel at least one counting flowing water module described.
8. device according to claim 1, it is characterised in that described service attribute counting assembly, is gone back Including:Counter overflow processing module, for before counter overflow, the described enumerator of reading of order The value of enumerator described in table, and send to direct memory access dma module.
9. a kind of method of counting of service attribute is it is characterised in that include:
Attribute field to be optimized in the service attribute carrying in the service request signal receiving is carried out excellent Change, obtain the attribute field after optimizing;
After common property field in default configuration information, described service attribute and described optimization Attribute field, generate corresponding key assignments;
According to described corresponding key assignments, determine one-to-one counter index address;
According to described counter index address, carry out counting operation refresh counter table, wherein, described meter The list item of number device table is the value of the enumerator corresponding to described service attribute.
10. method according to claim 9 is it is characterised in that described will ask to the business receiving The attribute field asking to be optimized in the service attribute carrying in signal is optimized, and obtains the attribute word after optimizing Section, including:
Described attribute field to be optimized is mapped according to default mapping table, is obtained corresponding mapping value;
Described mapping value is defined as the attribute field after described optimization.
11. methods according to claim 9 are it is characterised in that described service request signal is acceptable The Counting requests adding in business procession for user, carry Custom Attributes in described Counting requests;
Described according at least to common property field in default configuration information, described message attribute and described excellent Attribute field after change, generates corresponding key assignments, including:
According to the attribute field after described default configuration information, described common property field, described optimization with And described Custom Attributes, generate described corresponding key assignments.
12. methods according to claim 9 it is characterised in that described according to described corresponding key assignments, Determine one-to-one counter index address, including:
Enumerator offset address one-to-one with described corresponding key assignments and meter is read in default bias table Number device skew enables signal;
According to the enumerator base address carrying in described service request signal, described enumerator offset address and Described enumerator skew enables signal, determines described counter index address.
13. methods according to claim 12 it is characterised in that described according to described counter index Address, carries out counting operation refresh counter table, including:
When according to the enumerator enable signal in enumerator more newly control information and described enumerator skew enable letter Number determine update described enumerator table when, according to described counter index address, carry out counting operation and update Enumerator table.
14. methods according to claim 9 are it is characterised in that methods described also includes:
Before counter overflow, the value reading enumerator described in described enumerator table of order.
CN201510449744.6A 2015-07-28 2015-07-28 Service attribute counting method and device Withdrawn CN106411545A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201510449744.6A CN106411545A (en) 2015-07-28 2015-07-28 Service attribute counting method and device
PCT/CN2016/080974 WO2017016259A1 (en) 2015-07-28 2016-05-04 Counting method and apparatus for service attribute, and computer storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510449744.6A CN106411545A (en) 2015-07-28 2015-07-28 Service attribute counting method and device

Publications (1)

Publication Number Publication Date
CN106411545A true CN106411545A (en) 2017-02-15

Family

ID=57884056

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510449744.6A Withdrawn CN106411545A (en) 2015-07-28 2015-07-28 Service attribute counting method and device

Country Status (2)

Country Link
CN (1) CN106411545A (en)
WO (1) WO2017016259A1 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109947762A (en) * 2017-08-16 2019-06-28 深圳市中兴微电子技术有限公司 A kind of Hash table management method and device, computer readable storage medium
CN112968784A (en) * 2021-01-29 2021-06-15 新华三信息安全技术有限公司 Flow charging method and device

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111045874B (en) * 2019-10-31 2023-05-12 北京航天自动控制研究所 Universal method for modeling solving flow step data interpretation by test initiation control software
CN111917824B (en) * 2020-06-19 2023-05-26 深圳奇迹智慧网络有限公司 Internet of things equipment configuration method and device, computer equipment and storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060106755A1 (en) * 2004-11-12 2006-05-18 Sap Aktiengesellschaft, A Germany Corporation Tracking usage of data elements in electronic business communications
CN102298551A (en) * 2010-06-23 2011-12-28 中兴通讯股份有限公司 Variable-rule method and system for counting real-time performance based on events
CN104636395A (en) * 2013-11-15 2015-05-20 北京信威通信技术股份有限公司 Count processing method and device

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102752122B (en) * 2011-04-19 2015-10-28 中兴通讯股份有限公司 The acquisition device of multidimensional statistics performance data and method in network management
CN104579722A (en) * 2013-10-11 2015-04-29 中兴通讯股份有限公司 Flow statistics capability negotiation method and apparatus

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060106755A1 (en) * 2004-11-12 2006-05-18 Sap Aktiengesellschaft, A Germany Corporation Tracking usage of data elements in electronic business communications
CN102298551A (en) * 2010-06-23 2011-12-28 中兴通讯股份有限公司 Variable-rule method and system for counting real-time performance based on events
CN104636395A (en) * 2013-11-15 2015-05-20 北京信威通信技术股份有限公司 Count processing method and device

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109947762A (en) * 2017-08-16 2019-06-28 深圳市中兴微电子技术有限公司 A kind of Hash table management method and device, computer readable storage medium
CN112968784A (en) * 2021-01-29 2021-06-15 新华三信息安全技术有限公司 Flow charging method and device

Also Published As

Publication number Publication date
WO2017016259A1 (en) 2017-02-02

Similar Documents

Publication Publication Date Title
US11249969B2 (en) Data storage method and apparatus, and storage medium
CN107145537B (en) Table data importing method and system
CN106411545A (en) Service attribute counting method and device
CN105183561B (en) A kind of resource allocation methods and system
CN107241281B (en) Data processing method and device
WO2020119029A1 (en) Distributed task scheduling method and system, and storage medium
CN109710406A (en) Data distribution and its model training method, device and computing cluster
CN104125168A (en) A scheduling method and system for shared resources
CN102665284B (en) Uplink service transmission scheduling method and terminal
CN106202092A (en) The method and system that data process
CN108512782A (en) Accesses control list is grouped method of adjustment, the network equipment and system
CN105656807A (en) Network chip multi-channel data transmission method and transmission device
CN104182356A (en) Memory management method and device and terminal device
CN104615490A (en) Method and device for data conversion
CN108648092A (en) Loss ratio computational methods, device, equipment and computer readable storage medium
EP4057142A1 (en) Job scheduling method and job scheduling apparatus
CN107391508A (en) Data load method and system
CN107391541A (en) A kind of real time data merging method and device
US20230252025A1 (en) Data Processing System, Blockchain-Based Data Processing Method, and Device
CN103338246A (en) Method and system for selecting virtual machine in allocation process of infrastructure construction cloud resource
CN105511956A (en) Method and system for task scheduling based on share scheduling information
CN106934015A (en) Address date treating method and apparatus
CN107729577A (en) A kind of data search method based on multidimensional Hash table, terminal device and storage medium
CN106708838A (en) Flow data query method and apparatus
CN104933010A (en) Duplicated data deleting method and apparatus

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
WW01 Invention patent application withdrawn after publication
WW01 Invention patent application withdrawn after publication

Application publication date: 20170215