CN106487606A - A kind of dispatching method for network tester and system - Google Patents

A kind of dispatching method for network tester and system Download PDF

Info

Publication number
CN106487606A
CN106487606A CN201510542061.5A CN201510542061A CN106487606A CN 106487606 A CN106487606 A CN 106487606A CN 201510542061 A CN201510542061 A CN 201510542061A CN 106487606 A CN106487606 A CN 106487606A
Authority
CN
China
Prior art keywords
contract
project
time interval
prefixed time
giving out
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.)
Pending
Application number
CN201510542061.5A
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.)
Alibaba Group Holding Ltd
Original Assignee
Alibaba Group Holding 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 Alibaba Group Holding Ltd filed Critical Alibaba Group Holding Ltd
Priority to CN201510542061.5A priority Critical patent/CN106487606A/en
Publication of CN106487606A publication Critical patent/CN106487606A/en
Pending legal-status Critical Current

Links

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The embodiment of the present application discloses a kind of dispatching method for network tester, including:First receiving in the first Preset Time setting is given out a contract for a project quantity;Described first quantity of giving out a contract for a project is divided according to the second prefixed time interval, obtains in every one second prefixed time interval second and give out a contract for a project quantity;In the second prefixed time interval, if there is packet to be sent, then send the second packet giving out a contract for a project quantity;Wherein, described second prefixed time interval is less than described first Preset Time.Disclosed herein as well is the scheduling system embodiment for network tester.Using embodiments herein, it is possible to achieve network tester is steadily given out a contract for a project.

Description

A kind of dispatching method for network tester and system
Technical field
The application is related to Internet technical field, particularly to a kind of dispatching method for network tester and System.
Background technology
Network tester (hereinafter referred to as tester) is the maker of flow and device of giving out a contract for a project in network.Tester The test of the network performance to network equipment server can be completed.
Tester includes the core of giving out a contract for a project for sending packet (hereinafter referred to as giving out a contract for a project).Dispatcher in tester Make for controlling the carrying out given out a contract for a project.
In prior art, the scheduling mechanism of tester generally there are following several:The first, machine of with all strength giving out a contract for a project System, when system is given out a contract for a project, core all one's effort of giving out a contract for a project is given out a contract for a project, and with regard to idle waiting after distributing, sends out when arriving next second again Bag;Such as 10000pps, in 1 second, possible several milliseconds just distribute 10000 bags, then idle Deng until the arrival of next second;Such mechanism of giving out a contract for a project, gives out a contract for a project not gentle for tester.Second Kind, give out a contract for a project and dispatch the mechanism of combination, when system is given out a contract for a project, one every bag has just relatively currently sent Give out a contract for a project number, if be less than needing the sum of giving out a contract for a project sending to continue to give out a contract for a project, stopping if to sum of giving out a contract for a project Bag;Such mechanism of giving out a contract for a project, needs grade tester to distribute bag and just can judge whether to need to dispatch, cause tune The delay of degree is it is not easy to control packet sending speed, and then it is not gentle to lead to give out a contract for a project.
In sum, existing network tester there is a problem of giving out a contract for a project not gentle.
Content of the invention
The purpose of the embodiment of the present application is to provide a kind of dispatching method for network tester and device, in order to Solve the problems, such as to give out a contract for a project present in prior art not gentle.
For solving above-mentioned technical problem, a kind of scheduling for network tester that the application one embodiment provides Method, including:
First receiving in the first Preset Time setting is given out a contract for a project quantity;
Described first quantity of giving out a contract for a project is divided according to the second prefixed time interval, obtains every one second Preset Time In interval second is given out a contract for a project quantity;
In the second prefixed time interval, if there is packet to be sent, then send second and give out a contract for a project quantity Packet;
Wherein, described second prefixed time interval is less than described first Preset Time.
A kind of dispatching method for network tester that the application one embodiment provides, including:
First receiving in the first Preset Time setting is given out a contract for a project quantity;
Described first quantity of giving out a contract for a project is divided according to the second prefixed time interval, obtains every one second Preset Time In interval second is given out a contract for a project quantity;
In described every one second prefixed time interval second is given out a contract for a project quantity according to check figure division of giving out a contract for a project, obtains Each core the in every one second prefixed time interval the 3rd of giving out a contract for a project is given out a contract for a project quantity;
In the second prefixed time interval, if each core of giving out a contract for a project has a packet to be sent, send the Three packets giving out a contract for a project quantity;
Wherein, described second prefixed time interval is less than described first Preset Time.
A kind of scheduling system for network tester that the application one embodiment provides, including:
First receiving unit, gives out a contract for a project quantity for receiving in the first Preset Time setting first;
First division unit, for dividing the described first quantity of giving out a contract for a project according to the second prefixed time interval;
First signal generating unit, gives out a contract for a project quantity for obtaining in every one second prefixed time interval second;
First transmitting element, in the second prefixed time interval, if there is packet to be sent, Then send the second packet giving out a contract for a project quantity;
Wherein, described second prefixed time interval is less than described first Preset Time.
A kind of scheduling system for network tester that the application one embodiment provides, including:
Second receiving unit, gives out a contract for a project quantity for receiving in the first Preset Time setting first;
Second division unit, for dividing the described first quantity of giving out a contract for a project according to the second prefixed time interval;
Second signal generating unit, gives out a contract for a project quantity for obtaining in every one second prefixed time interval second;
3rd division unit, for by second in described every one second prefixed time interval give out a contract for a project quantity according to Check figure of giving out a contract for a project divides;
3rd signal generating unit, for obtaining each core the 3rd in every one second prefixed time interval of giving out a contract for a project Bag quantity;
Second transmitting element, in the second prefixed time interval, if each core of giving out a contract for a project exist to be sent Packet, then send the 3rd packet giving out a contract for a project quantity;
Wherein, described second prefixed time interval is less than described first Preset Time.
The technical scheme being provided from above the embodiment of the present application, one kind that the embodiment of the present application provides is used for The dispatching method of network tester and system, by giving out a contract for a project quantity first in the first Preset Time receiving Divide according to the second prefixed time interval, obtain in every one second prefixed time interval second and give out a contract for a project quantity, And then so that tester is all being given out a contract for a project in the first Preset Time, may finally ensure what tester was given out a contract for a project Stationarity, solves jiggly problem of giving out a contract for a project in prior art.
Brief description
In order to be illustrated more clearly that the embodiment of the present application or technical scheme of the prior art, below will be to enforcement Example or description of the prior art in required use accompanying drawing be briefly described it should be apparent that, below describe In accompanying drawing be only the application described in some embodiments, for those of ordinary skill in the art, Without having to pay creative labor, other accompanying drawings can also be obtained according to these accompanying drawings.
The flow chart of the dispatching method for network tester for providing in the application one embodiment for the Fig. 1;
Fig. 2 is the flow chart of the concrete steps of S110 in Fig. 1;
The flow chart of the dispatching method for network tester for providing in the application one embodiment for the Fig. 3;
Fig. 4 is the flow chart of the concrete steps of S220 in Fig. 3;
The module of the scheduling system for network tester for providing in the application one embodiment for the Fig. 5 is illustrated Figure;
The module of the scheduling system for network tester for providing in the application one embodiment for the Fig. 6 is illustrated Figure.
Specific embodiment
In order that those skilled in the art more fully understand the technical scheme in the application, below in conjunction with this Accompanying drawing in application embodiment, is clearly and completely described to the technical scheme in the embodiment of the present application, Obviously, described embodiment is only some embodiments of the present application, rather than whole embodiments.Base Embodiment in the application, those of ordinary skill in the art are obtained under the premise of not making creative work The every other embodiment obtaining, all should belong to the scope of the application protection.
The flow chart of the dispatching method for network tester for providing in the application one embodiment for the Fig. 1, bag Include:
S100:First receiving in the first Preset Time setting is given out a contract for a project quantity.
Specifically, tester can be given out a contract for a project quantity with first in the first Preset Time of receiving user's input.
Described first Preset Time can include 1 second etc..
S110:Described first quantity of giving out a contract for a project is divided according to the second prefixed time interval, obtains every one second pre- The quantity if second in time interval is given out a contract for a project.
Described second prefixed time interval is less than described first Preset Time.
Described second Preset Time can include 1 millisecond etc..
Specifically, described in S110 step, the described first quantity of giving out a contract for a project is drawn according to the second prefixed time interval Point, can include:
Described first quantity of giving out a contract for a project not exclusively is evenly dividing according to the second prefixed time interval.
Specifically, as shown in Fig. 2 S110 step specifically may include steps of:
Set k as the first Preset Time divided by the second Preset Time.
S111:Described first is given out a contract for a project quantity except k, obtains business factor and remainder mod.
S112:Arranging the first ordinal number i is 0.
S113:Judge whether described i is less than described k;If it is not, execution S114;If so, execute S115.
S115:Judge whether described i is less than described mod;If so, execute S116;If it is not, execution S117.
S116:I-th second quantity of giving out a contract for a project are entered as described factor and add 1, and described i is added 1.
S117:I-th second quantity of giving out a contract for a project are entered as described factor, and described i is added 1.
S118:Repeat S113, until executing S114.
S114:Obtain in every one second prefixed time interval second to give out a contract for a project quantity.
In the present embodiment, the second order giving out a contract for a project quantity in every one second prefixed time interval obtaining is filled out Enter in the first array, the data type of described first array can include 64 integer types.
Illustrate, such as first in 1 second of one network tester reception gives out a contract for a project quantity for 19998, So 1 second can be divided into 1000 groups according to the second prefixed time interval for 1 millisecond.
First, initialize first array tokens_arraya having 1000 elements;
Calculate 19998 and remove 1000, obtaining business factor is 19, and remainder mod is 998;
Arranging the first ordinal number i is 0;
Judge whether i is less than 1000;If so, then judge whether i is less than 998;
Because 0 is less than 1000 and 0 and is less than or equal to 998, then tokens_array [0]=20, and by i Plus 1.Repeat to judge whether i is less than 1000.When i=998, because i is equal to mod, so Tokens_array [998]=19;During i=999, because i is more than mod, so tokens_array [999]=19; In i=1000, because i is equal to k, so obtaining the first array tokens_array,
As shown in the table:
First array 20 20 20 20 20 20 20 20 20 20 20 20 19 19
First ordinal number 0 1 2 3 4 5 6 7 8 9 996 997 998 999
The first row:Each element value in first array, that is, second in every one second prefixed time interval give out a contract for a project number Amount.
Second row:Each element is worth corresponding first ordinal number.
Certainly, in other embodiments, described described first is given out a contract for a project quantity according to the second prefixed time interval Divide, can also include:
Described first quantity of giving out a contract for a project is evenly dividing according to the second prefixed time interval.
Set k as the first Preset Time divided by the second Preset Time, then the first uniform amount of giving out a contract for a project can be divided For k group.
Illustrate, such as first in 1 second of one network tester reception gives out a contract for a project quantity for 1000, So 200 groups can be divided within 1 second according to the second prefixed time interval for 5 milliseconds, every group second give out a contract for a project Quantity is then 5.
S120:In the second prefixed time interval, if there is packet to be sent, then send second The packet of bag quantity.
Set the first value of giving out a contract for a project to give out a contract for a project quantity as described second.
Specifically, in the second prefixed time interval, if there is packet to be sent;Then send one by one Described packet to be sent, and each packet send after by described first give out a contract for a project value subtract 1 after update, Give out a contract for a project after value is updated to 0 up to described first and stop sending packet.
It is noted that the described first value of giving out a contract for a project can be regarded as token value here, only have token Just can give out a contract for a project, and token value is correspondingly subtracted 1 by one every bag;When token value is 0, illustrate this Give out a contract for a project in two prefixed time interval end, then stop giving out a contract for a project.
Continue to use the example in S110, in 2ms, the described first value of giving out a contract for a project is such as the second prefixed time interval 20, tester passes through to execute S120, because 20 are more than 0, so sending a packet will be described First value of giving out a contract for a project subtracts 1;Repeat to judge that whether described first give out a contract for a project value equal to 0 ....;Until described first When bag value is for 0, stop sending packet.By the present embodiment, tester can be preset receive first In time first quantity of giving out a contract for a project divides according to the second prefixed time interval, obtains between every one second Preset Time Every in second give out a contract for a project quantity;And then so that tester is all being given out a contract for a project in the first Preset Time, finally Can ensure that the stationarity that tester is given out a contract for a project, solve jiggly problem of giving out a contract for a project in prior art.
In the embodiment of the present application, before described S100, can also include:
The parameter of receiving user's input;
Correspondingly, described S100, including:
Receive giving out a contract for a project quantity according to the first of described parameter adjustment in the first Preset Time setting.
For example, first originally presetting in 1 second gives out a contract for a project quantity for 1000, has sent out 200 when 0.2 second Individual, there remains 800 not do not send out in the case of, the original first quantity of giving out a contract for a project is revised as 2000 by user; Send out 200 due in original 0.2 second, only in follow-up 0.8 second, first has given out a contract for a project quantity Dynamically it is adjusted to 1800.
So, what user can adjust in described first Preset Time at any time first gives out a contract for a project quantity, and tester can Given out a contract for a project quantity be again calculated in new every one second prefixed time interval the with adjusting described first Two give out a contract for a project quantity can be it is ensured that the motility given out a contract for a project of tester.
The present processes and system are applied to the tester of multicore architecture, and that is, tester has multiple CPU core The heart.The application passes through with a core cpu dedicated for the scheduling feature realizing scheduling thread, other Core cpu as give out a contract for a project core for realize give out a contract for a project the function of giving out a contract for a project of thread.However, under multicore architecture, by Give out a contract for a project in there are multiple cores of giving out a contract for a project and simultaneously participating in.If their number of giving out a contract for a project inharmonious, may result in and give out a contract for a project The unbalanced core of giving out a contract for a project for example having of inter-core load is given out a contract for a project a lot, and the core of giving out a contract for a project having even is not given out a contract for a project, and then reduces Systematic function.
The flow chart of the dispatching method for network tester for providing in the application one embodiment for the Fig. 3, bag Include:
S200:First receiving in the first Preset Time setting is given out a contract for a project quantity.
This step is identical with the S100 in above-described embodiment, and here is omitted.
S210:Described first quantity of giving out a contract for a project is divided according to the second prefixed time interval, obtains every one second pre- The quantity if second in time interval is given out a contract for a project.
This step is identical with the S110 in above-described embodiment, and here is omitted.
S220:In described every one second prefixed time interval second quantity of giving out a contract for a project is drawn according to check figure of giving out a contract for a project Point, obtain each core the in every one second prefixed time interval the 3rd of giving out a contract for a project and give out a contract for a project quantity.
Specifically, described in S220 step, second in described every one second prefixed time interval is given out a contract for a project quantity According to giving out a contract for a project, check figure divides, and can include:
Will be not exclusively equal according to check figure of giving out a contract for a project for the quantity of giving out a contract for a project of second in described every one second prefixed time interval Even division.Specifically, as shown in figure 4, specifically including following steps:
Give out a contract for a project check figure as n described in setting.
S221:Arranging the second ordinal number j is 0.
S222:Judge whether described j is less than described k;If so, then execute S223;If it is not, then executing S224.
S223:J-th second quantity of giving out a contract for a project are removed n, obtains business factor and remainder mod.
S225:Arranging the first ordinal number i is 0.
S226:Judge whether described i is less than described n;If so, then execute S227a;If it is not, then executing S227b.
S227a:Judge whether described i is less than described mod.If so, then execute S228a;If it is not, then holding Row S228b.
S228a:I-th the 3rd quantity of giving out a contract for a project are entered as described factor and add 1, and described i is added 1.
S228b:I-th the 3rd quantity of giving out a contract for a project are entered as described factor, and described i is added 1.
S229:Repeat S226, until executing S227b.
S227b:J plus 1, repeats S222, until executing S224.
S224:Obtain each core the in every one second prefixed time interval the 3rd of giving out a contract for a project to give out a contract for a project quantity.
In the present embodiment, each core the in every one second prefixed time interval the 3rd of giving out a contract for a project obtaining is given out a contract for a project Quantity order is inserted in the second array, and the data type of described second array can include 64 integer types.
Continue to use the example in S110 it is assumed that described network tester contains 8 cores of giving out a contract for a project, i.e. n=8.
First, the second array lcore_token_array of one 8 row 1000 row of initialization;
Arranging the second ordinal number j is 0;
Judge whether j is less than 1000;Because 0 is less than 1000, so calculating the first array tokens_array In the 0th element value remove 8, obtaining business factor is 2, and remainder mod is 4;
Arranging the first ordinal number i is 0;
Judge whether i is less than n;If then judging whether i is less than 4;
Because 0 is less than 8 and 0 less than 4, so lcore_token_array [0] [0] adds 1 (i.e. 3) equal to business, And i plus 1.Repeat to judge whether i is less than n.When i=4, because i is equal to mod, so Lcore_token_array [4] [0] is equal to business (i.e. 2);In i=5, it is similar to when i=6, i=7.In i=8, Because i is equal to n, so j plus 1, repeat to judge whether j is less than 1000.
When j=1000, because j is equal to k, so obtaining the second array lcore_token_array.
It is as shown in the table,
The first row:Each element value in first array, that is, second in every one second prefixed time interval give out a contract for a project number Amount;
Three to ten row:Each element value in second array, that is, each core of giving out a contract for a project is between every one second Preset Time Every in the 3rd give out a contract for a project quantity.
Certainly, in other embodiments, described second in described every one second prefixed time interval is given out a contract for a project Quantity divides according to check figure of giving out a contract for a project, and can also include:
In described every one second prefixed time interval second quantity of giving out a contract for a project is evenly dividing according to check figure of giving out a contract for a project.
Along using S111 step in an embodiment, such as to check figure of giving out a contract for a project for 5, then can be described every In one second prefixed time interval second quantity (5) of giving out a contract for a project uniformly is drawn according to check figure of giving out a contract for a project (5) Point, that is, each core of giving out a contract for a project is 1.
S230:In the second prefixed time interval, if there is packet to be sent in each core of giving out a contract for a project, Send the 3rd packet giving out a contract for a project quantity.
Set the second value of giving out a contract for a project to give out a contract for a project quantity as the described 3rd.
Specifically, in the second prefixed time interval, if there is packet to be sent;Send institute one by one State packet to be sent, and each packet send after by described second give out a contract for a project value subtract 1 after update, Give out a contract for a project after value is updated to 0 up to described second and stop sending packet.
It is noted that the described second value of giving out a contract for a project can be regarded as token value here, only have token Just can give out a contract for a project, and token value is correspondingly subtracted 1 by one every bag;When token value is 0, illustrate this Give out a contract for a project in two prefixed time interval end, then stop giving out a contract for a project.
Continue to use the example in S220, such as the second prefixed time interval in 2ms, the of described core 1 of giving out a contract for a project Three give out a contract for a project quantity for 3, and tester passes through to execute S230, because 3 are more than 0, so sending a data Described second value of giving out a contract for a project simultaneously is subtracted 1 by bag;Repeat to judge that whether described second give out a contract for a project value equal to 0 ....;Until Described second give out a contract for a project value be 0 when, stop send packet.
The present embodiment is compared an embodiment difference and is, by S220 step, can be by described Two quantity of giving out a contract for a project distribute to each core of giving out a contract for a project.So, each core of giving out a contract for a project only need to send the 3rd oneself being assigned to Giving out a contract for a project quantity, difference is given out a contract for a project and will not be influenced each other between core, thus ensure that inter-core load equilibrium of giving out a contract for a project, carrying The high performance of system.
In the embodiment of the present application, before described S200, can also include:
The parameter of receiving user's input;
Correspondingly, described S200, including:
Receive giving out a contract for a project quantity according to the first of described parameter adjustment in the first Preset Time setting.
For example, first originally presetting in 1 second gives out a contract for a project quantity for 1000, has sent out 200 when 0.2 second Individual, there remains 800 not do not send out in the case of, the original first quantity of giving out a contract for a project is revised as 2000 by user; Send out 200 due in original 0.2 second, only in follow-up 0.8 second, first has given out a contract for a project quantity Dynamically it is adjusted to 1800.
So, what user can adjust in described first Preset Time at any time first gives out a contract for a project quantity, and tester can Given out a contract for a project quantity being again calculated in new every one second prefixed time interval with dynamic adjustment described first Second give out a contract for a project quantity can be it is ensured that the motility given out a contract for a project of tester.
The module of the scheduling system for network tester for providing in the application one embodiment for the Fig. 5 is illustrated Figure, including:
First receiving unit 300, gives out a contract for a project quantity for receiving in the first Preset Time setting first.
First division unit 310, for dividing the described first quantity of giving out a contract for a project according to the second prefixed time interval.
First signal generating unit 320, gives out a contract for a project quantity for obtaining in every one second prefixed time interval second.
First transmitting element 330, in the second prefixed time interval, if there is data to be sent Bag, then send the second packet giving out a contract for a project quantity.
Wherein, described second prefixed time interval is less than described first Preset Time.
Preferably, before described first receiving unit 300, can also include:
First receiving subelement, for the parameter of receiving user's input;
Correspondingly, described first receiving unit 300, is additionally operable to receive the root in the first Preset Time setting Give out a contract for a project quantity according to the first of described parameter adjustment.
Preferably, described first division unit, including:
First division subelement, for uniformly drawing the described first quantity of giving out a contract for a project according to the second prefixed time interval Point;
Or, the second division subelement, for giving out a contract for a project quantity according to the second prefixed time interval by described first Not exclusively it is evenly dividing.
Preferably, described first transmitting element, specifically includes:
First transmission subelement, in the second prefixed time interval, if there is packet to be sent, Then set the first value of giving out a contract for a project to give out a contract for a project quantity as second, send described packet to be sent one by one.
First renewal subelement, for each packet send after by described first give out a contract for a project value subtract 1 after more Newly, give out a contract for a project after value is updated to 0 up to described first and stop sending packet.
The module of the dispatching device for network tester for providing in the application one embodiment for the Fig. 6 is illustrated Figure, including:
Second receiving unit 400, gives out a contract for a project quantity for receiving in the first Preset Time setting first.
Second division unit 410, for dividing the described first quantity of giving out a contract for a project according to the second prefixed time interval.
Second signal generating unit 420, gives out a contract for a project quantity for obtaining in every one second prefixed time interval second.
3rd division unit 430, for giving out a contract for a project quantity second in described every one second prefixed time interval According to giving out a contract for a project, check figure divides.
3rd signal generating unit 440, for obtaining each core in every one second prefixed time interval of giving out a contract for a project Three give out a contract for a project quantity.
Second transmitting element 450, in the second prefixed time interval, if each core of giving out a contract for a project exists treated The packet sending, then send the 3rd packet giving out a contract for a project quantity.
Wherein, described second prefixed time interval is less than described first Preset Time.
Preferably, before described second receiving unit 400, can also include:
Second receiving subelement, for the parameter of receiving user's input;
Correspondingly, described second receiving unit 400, is additionally operable to receive the root in the first Preset Time setting Give out a contract for a project quantity according to the first of described parameter adjustment.
Preferably, described second division unit, including:
3rd division subelement, for uniformly drawing the described first quantity of giving out a contract for a project according to the second prefixed time interval Point;
Or, the 4th division subelement, for giving out a contract for a project quantity according to the second prefixed time interval by described first Not exclusively it is evenly dividing.
Preferably, described 3rd division unit, including:
5th division subelement, for by second in described every one second prefixed time interval give out a contract for a project quantity by Bag check figure approved for distribution is evenly dividing;
Or, the 6th division subelement, for giving out a contract for a project second in described every one second prefixed time interval Quantity is not exclusively evenly dividing according to check figure of giving out a contract for a project.
Preferably, described second transmitting element, specifically includes:
Second transmission subelement, in the second prefixed time interval, if each core of giving out a contract for a project exist pending The packet sending, then set the second value of giving out a contract for a project and give out a contract for a project quantity as the 3rd, send described data to be sent one by one Bag.
Second renewal subelement, for each packet send after by described second give out a contract for a project value subtract 1 after more Newly, give out a contract for a project after value is updated to 0 up to described second and stop sending packet.
In the nineties in 20th century, for the improvement of a technology, can clearly to distinguish be changing on hardware The improvement entered on (for example, the improvement to circuit structures such as diode, transistor, switches) or software is (right Improvement in method flow).However, with the development of technology, the improvement of current a lot of method flows is Through directly improving of hardware circuit can be considered as.Designer nearly all passes through improved method flow It is programmed in hardware circuit, to obtain corresponding hardware circuit.Therefore, it cannot be said that a method flow Improvement cannot be realized with hardware entities module.For example, PLD (Programmable Logic Device, PLD) (for example field programmable gate array (Field Programmable Gate Array, FPGA it is exactly)) such a integrated circuit, its logic function to be determined to device programming by user.By setting Meter personnel voluntarily program a digital display circuit " integrated " on a piece of PLD, without the chip system of asking Make manufacturer to design and to make special IC chip.And, nowadays, replacement manually makes integrated Circuit chip, this programming also uses " logic compiler (logic compiler) " software instead to realize mostly, When it is write with program development, software compiler used is similar, and the source code before will compiling also obtains Write with specific programming language, this is referred to as hardware description language (Hardware Description Language, HDL), and HDL is also not only a kind of, but have many kinds, such as ABEL (Advanced Boolean Expression Language)、AHDL(Altera Hardware Description Language)、 Confluence、CUPL(Cornell University Programming Language)、HDCal、JHDL (Java Hardware Description Language)、Lava、Lola、MyHDL、PALASM、RHDL (Ruby Hardware Description Language) etc., that commonly use most at present is VHDL (Very-High-Speed Integrated Circuit Hardware Description Language) with Verilog.Those skilled in the art also should understand it is only necessary to by method flow with above-mentioned several hardware descriptions Language is slightly made programming in logic and is programmed in integrated circuit to realize this logical method stream it is possible to be readily available The hardware circuit of journey.
Controller can be implemented in any suitable manner, and for example, controller can take such as microprocessor Or processor and storage can be by computer readable program code (the such as software of this (micro-) computing device Or firmware) computer-readable medium, gate, switch, special IC (Application Specific Integrated Circuit, ASIC), the form of programmable logic controller (PLC) and embedded microcontroller, controller Example include but is not limited to following microcontroller:ARC 625D、Atmel AT91SAM、Microchip PIC18F26K20 and Silicone Labs C8051F320, Memory Controller is also implemented as depositing A part for the control logic of reservoir.It is also known in the art that except with pure computer-readable program Code means are realized beyond controller, completely can make to control by method and step is carried out programming in logic Device is with the shape of gate, switch, special IC, programmable logic controller (PLC) and embedded microcontroller etc. Formula is realizing identical function.Therefore this controller is considered a kind of hardware component, and wraps in it The structure that the device for realizing various functions including can also be considered as in hardware component.Or it is even, permissible The device being used for realizing various functions is considered as not only being the software module of implementation method but also can be hardware Structure in part.
System, device, module or unit that above-described embodiment illustrates, specifically can be by computer chip or reality Body is realized, or to be realized by the product with certain function.
For convenience of description, it is divided into various units to be respectively described with function when describing apparatus above.Certainly, The function of each unit can be realized in same or multiple softwares and/or hardware when implementing the application.
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 be using complete hardware embodiment, complete software embodiment or knot Close the form of the embodiment of software and hardware aspect.And, the present invention can adopt and wherein wrap one or more Computer-usable storage medium containing computer usable program code (including but not limited to disk memory, CD-ROM, optical memory etc.) the upper computer program implemented form.
The present invention is to produce with reference to method according to embodiments of the present invention, equipment (system) and computer program The flow chart of product and/or block diagram are describing.It should be understood that can by computer program instructions flowchart and / or block diagram in each flow process and/or the flow process in square frame and flow chart and/or block diagram and/ Or the combination of square frame.These computer program instructions can be provided to general purpose computer, special-purpose computer, embed The processor of formula datatron or other programmable data processing device is to produce a machine so that passing through to calculate The instruction of the computing device of machine or other programmable data processing device produces for realizing in flow chart one The device of the function of specifying in individual flow process or multiple flow process and/or one square frame of block diagram or multiple square frame.
These computer program instructions may be alternatively stored in and computer or other programmable datas can be guided to process and set So that being stored in this computer-readable memory in the standby computer-readable memory working in a specific way Instruction produce and include the manufacture of command device, the realization of this command device is in one flow process or multiple of flow chart The function of specifying in flow process 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 series of operation steps is executed on computer or other programmable devices to produce computer implemented place Reason, thus the instruction of execution is provided for realizing in flow chart one on computer or other programmable devices 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.
In a typical configuration, computing device includes one or more processors (CPU), input/defeated Outgoing interface, network interface and internal memory.
Internal memory potentially includes the volatile memory in computer-readable medium, random access memory (RAM) and/or the form such as Nonvolatile memory, such as read only memory (ROM) or flash memory (flash RAM). Internal memory is the example of computer-readable medium.
Computer-readable medium include permanent and non-permanent, removable and non-removable media can by appoint What method or technique is realizing information Store.Information can be computer-readable instruction, data structure, program Module or other data.The example of the storage medium of computer includes, but are not limited to phase transition internal memory (PRAM), static RAM (SRAM), dynamic random access memory (DRAM), its The random access memory (RAM) of his type, read only memory (ROM), electrically erasable are read-only Memorizer (EEPROM), fast flash memory bank or other memory techniques, read-only optical disc read only memory (CD-ROM), digital versatile disc (DVD) or other optical storage, magnetic cassette tape, tape magnetic Disk storage or other magnetic storage apparatus or any other non-transmission medium, can be used for storage can be calculated The information that equipment accesses.Define according to herein, computer-readable medium does not include temporary computer-readable matchmaker Body (transitory media), the such as data signal of modulation and carrier wave.
Also, it should be noted term " inclusion ", "comprising" or its any other variant are intended to non-row The comprising, so that include a series of process of key elements, method, commodity or equipment not only including of his property Those key elements, but also include other key elements of being not expressly set out, or also include for this process, Method, commodity or the intrinsic key element of equipment.In the absence of more restrictions, " included by sentence One ... " key element that limits is being it is not excluded that including the process of described key element, method, commodity or setting Also there is other identical element in standby.
It will be understood by those skilled in the art that embodiments herein can be provided as method, system or computer journey Sequence product.Therefore, the application can using complete hardware embodiment, complete software embodiment or combine software and The form of the embodiment of hardware aspect.And, the application can adopt and wherein include calculating one or more Machine usable program code computer-usable storage medium (including but not limited to disk memory, CD-ROM, Optical memory etc.) the upper computer program implemented form.
The application can be described in the general context of computer executable instructions, example As program module.Usually, program module includes executing particular task or realizes particular abstract data type Routine, program, object, assembly, data structure etc..Can also be put into practice this in a distributed computing environment Application, in these distributed computing environment, by the remote processing devices connected by communication network Lai Execution task.In a distributed computing environment, program module may be located at local including storage device In remote computer storage medium.
Each embodiment in this specification is all described by the way of going forward one by one, phase homophase between each embodiment As partly mutually referring to, what each embodiment stressed be different from other embodiment it Place.For system embodiment, because it is substantially similar to embodiment of the method, so description Fairly simple, in place of correlation, the part referring to embodiment of the method illustrates.
The foregoing is only embodiments herein, be not limited to the application.For this area skill For art personnel, the application can have various modifications and variations.All institutes within spirit herein and principle Any modification, equivalent substitution and improvement made etc., within the scope of should be included in claims hereof.

Claims (19)

1. a kind of dispatching method for network tester is it is characterised in that include:
First receiving in the first Preset Time setting is given out a contract for a project quantity;
Described first quantity of giving out a contract for a project is divided according to the second prefixed time interval, obtains every one second Preset Time In interval second is given out a contract for a project quantity;
In the second prefixed time interval, if there is packet to be sent, then send second and give out a contract for a project quantity Packet;
Wherein, described second prefixed time interval is less than described first Preset Time.
2. the number of the method for claim 1 quantity it is characterised in that described transmission second is given out a contract for a project According to bag, including:
Set the first value of giving out a contract for a project to give out a contract for a project quantity as second;
Send described packet to be sent one by one, and after each packet sends, described first gives out a contract for a project Value updates after subtracting 1, gives out a contract for a project after value is updated to 0 up to described first and stops sending packet.
3. the method for claim 1 it is characterised in that described by described first give out a contract for a project quantity by Divide according to the second prefixed time interval, including:
Described first quantity of giving out a contract for a project is evenly dividing according to the second prefixed time interval;
Or, the described first quantity of giving out a contract for a project not exclusively is evenly dividing according to the second prefixed time interval.
4. a kind of dispatching method for network tester is it is characterised in that include:
First receiving in the first Preset Time setting is given out a contract for a project quantity;
Described first quantity of giving out a contract for a project is divided according to the second prefixed time interval, obtains every one second Preset Time In interval second is given out a contract for a project quantity;
In described every one second prefixed time interval second is given out a contract for a project quantity according to check figure division of giving out a contract for a project, obtains Each core the in every one second prefixed time interval the 3rd of giving out a contract for a project is given out a contract for a project quantity;
In the second prefixed time interval, if each core of giving out a contract for a project has a packet to be sent, send the Three packets giving out a contract for a project quantity;
Wherein, described second prefixed time interval is less than described first Preset Time.
5. the number of method as claimed in claim 4 quantity it is characterised in that described transmission the 3rd is given out a contract for a project According to bag, including:
Set the second value of giving out a contract for a project to give out a contract for a project quantity as the 3rd;
Send described packet to be sent one by one, and after each packet sends, described second gives out a contract for a project Value updates after subtracting 1, gives out a contract for a project after value is updated to 0 up to described second and stops sending packet.
6. method as claimed in claim 4 it is characterised in that described by described first give out a contract for a project quantity by Divide according to the second prefixed time interval, including:
Described first quantity of giving out a contract for a project is evenly dividing according to the second prefixed time interval;
Or, the described first quantity of giving out a contract for a project not exclusively is evenly dividing according to the second prefixed time interval.
7. method as claimed in claim 4 it is characterised in that described by described every one second default when Between be spaced in second give out a contract for a project quantity according to give out a contract for a project check figure divide, including:
In described every one second prefixed time interval second quantity of giving out a contract for a project is evenly dividing according to check figure of giving out a contract for a project;
Or, will be not complete according to check figure of giving out a contract for a project for the quantity of giving out a contract for a project of second in described every one second prefixed time interval Entirely it is evenly dividing.
8. the method as described in claim 1 or 4 is it is characterised in that receive, described, first setting In Preset Time first is given out a contract for a project before quantity, also includes:
The parameter of receiving user's input;
Correspondingly, described receive in the first Preset Time setting first give out a contract for a project quantity, including:
Receive giving out a contract for a project quantity according to the first of described parameter adjustment in the first Preset Time setting.
9. the method as described in claim 3 or 6 it is characterised in that described first give out a contract for a project quantity according to Second prefixed time interval is not exclusively evenly dividing, including:
Set k as the first Preset Time divided by the second Preset Time;
Described first is given out a contract for a project quantity except k, obtains business factor and remainder mod, and the first ordinal number i is set For 0;
If described i is less than described k, judge whether described i is less than described mod;
If so, i-th second quantity of giving out a contract for a project are entered as factor and add 1, and described i is added 1;
If it is not, i-th second quantity of giving out a contract for a project are entered as factor, and described i is added 1.
10. method as claimed in claim 7 it is characterised in that described by described every one second default when Between be spaced in the second quantity of giving out a contract for a project not exclusively be evenly dividing according to check figure of giving out a contract for a project, including:
Set n as check figure of giving out a contract for a project;
Described second is given out a contract for a project quantity except n, obtains business factor and remainder mod, and the first ordinal number i is set For 0;
If described i is less than described n, judge whether described i is less than described mod;
If so, i-th the 3rd quantity of giving out a contract for a project are entered as factor and add 1, and described i is added 1;
If it is not, i-th the 3rd quantity of giving out a contract for a project are entered as factor, and described i is added 1.
A kind of 11. scheduling systems for network tester are it is characterised in that include:
First receiving unit, gives out a contract for a project quantity for receiving in the first Preset Time setting first;
First division unit, for dividing the described first quantity of giving out a contract for a project according to the second prefixed time interval;
First signal generating unit, gives out a contract for a project quantity for obtaining in every one second prefixed time interval second;
First transmitting element, in the second prefixed time interval, if there is packet to be sent, Then send the second packet giving out a contract for a project quantity;
Wherein, described second prefixed time interval is less than described first Preset Time.
12. systems as claimed in claim 11 it is characterised in that described first transmitting element, specifically Including:
First transmission subelement, in the second prefixed time interval, if there is packet to be sent, Then set the first value of giving out a contract for a project to give out a contract for a project quantity as second, send described packet to be sent one by one;
First renewal subelement, for each packet send after by described first give out a contract for a project value subtract 1 after more Newly, give out a contract for a project after value is updated to 0 up to described first and stop sending packet.
13. systems as claimed in claim 11 it is characterised in that described first division unit, including:
First division subelement, for uniformly drawing the described first quantity of giving out a contract for a project according to the second prefixed time interval Point;
Or, the second division subelement, for giving out a contract for a project quantity according to the second prefixed time interval by described first Not exclusively it is evenly dividing.
14. systems as claimed in claim 11 it is characterised in that before described first receiving unit, Also include:
First receiving subelement, for the parameter of receiving user's input;
Correspondingly, described first receiving unit, be additionally operable to receive set the first Preset Time according to institute State the first of parameter adjustment to give out a contract for a project quantity.
A kind of 15. scheduling systems for network tester are it is characterised in that include:
Second receiving unit, gives out a contract for a project quantity for receiving in the first Preset Time setting first;
Second division unit, for dividing the described first quantity of giving out a contract for a project according to the second prefixed time interval;
Second signal generating unit, gives out a contract for a project quantity for obtaining in every one second prefixed time interval second;
3rd division unit, for by second in described every one second prefixed time interval give out a contract for a project quantity according to Check figure of giving out a contract for a project divides;
3rd signal generating unit, for obtaining each core the 3rd in every one second prefixed time interval of giving out a contract for a project Bag quantity;
Second transmitting element, in the second prefixed time interval, if each core of giving out a contract for a project exist to be sent Packet, then send the 3rd packet giving out a contract for a project quantity;
Wherein, described second prefixed time interval is less than described first Preset Time.
16. systems as claimed in claim 15 it is characterised in that described second transmitting element, specifically Including:
Second transmission subelement, in the second prefixed time interval, if each core of giving out a contract for a project exist pending The packet sending, then set the second value of giving out a contract for a project and give out a contract for a project quantity as the 3rd, send described data to be sent one by one Bag;
Second renewal subelement, for each packet send after by described second give out a contract for a project value subtract 1 after more Newly, give out a contract for a project after value is updated to 0 up to described second and stop sending packet.
17. systems as claimed in claim 15 it is characterised in that described second division unit, including:
3rd division subelement, for uniformly drawing the described first quantity of giving out a contract for a project according to the second prefixed time interval Point;
Or, the 4th division subelement, for giving out a contract for a project quantity according to the second prefixed time interval by described first Not exclusively it is evenly dividing.
18. systems as claimed in claim 15 it is characterised in that described 3rd division unit, including:
5th division subelement, for by second in described every one second prefixed time interval give out a contract for a project quantity by Bag check figure approved for distribution is evenly dividing;
Or, the 6th division subelement, for giving out a contract for a project second in described every one second prefixed time interval Quantity is not exclusively evenly dividing according to check figure of giving out a contract for a project.
19. systems as claimed in claim 15 it is characterised in that before described second receiving unit, Also include:
Second receiving subelement, for the parameter of receiving user's input;
Correspondingly, described second receiving unit, be additionally operable to receive set the first Preset Time according to institute State the first of parameter adjustment to give out a contract for a project quantity.
CN201510542061.5A 2015-08-28 2015-08-28 A kind of dispatching method for network tester and system Pending CN106487606A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510542061.5A CN106487606A (en) 2015-08-28 2015-08-28 A kind of dispatching method for network tester and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510542061.5A CN106487606A (en) 2015-08-28 2015-08-28 A kind of dispatching method for network tester and system

Publications (1)

Publication Number Publication Date
CN106487606A true CN106487606A (en) 2017-03-08

Family

ID=58235050

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510542061.5A Pending CN106487606A (en) 2015-08-28 2015-08-28 A kind of dispatching method for network tester and system

Country Status (1)

Country Link
CN (1) CN106487606A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109167736A (en) * 2018-07-24 2019-01-08 北京新宇航星科技有限公司 The data packet of high evenness is given out a contract for a project method and device

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1835447A (en) * 2005-03-16 2006-09-20 华为技术有限公司 Realizing method of data stream constraint control
JP4078294B2 (en) * 2003-12-05 2008-04-23 富士通株式会社 Token phase control method and token phase control system
CN101256515A (en) * 2008-03-11 2008-09-03 浙江大学 Implementation method of multi-core processor operating system load balancing
CN102104502A (en) * 2009-12-18 2011-06-22 研祥智能科技股份有限公司 Ethernet equipment performance test platform based on Linux system
CN102377632A (en) * 2010-08-06 2012-03-14 北京乾唐视联网络科技有限公司 Method and system compatible with Ethernet

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4078294B2 (en) * 2003-12-05 2008-04-23 富士通株式会社 Token phase control method and token phase control system
CN1835447A (en) * 2005-03-16 2006-09-20 华为技术有限公司 Realizing method of data stream constraint control
CN101256515A (en) * 2008-03-11 2008-09-03 浙江大学 Implementation method of multi-core processor operating system load balancing
CN102104502A (en) * 2009-12-18 2011-06-22 研祥智能科技股份有限公司 Ethernet equipment performance test platform based on Linux system
CN102377632A (en) * 2010-08-06 2012-03-14 北京乾唐视联网络科技有限公司 Method and system compatible with Ethernet

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
费嘉: "浅析QoS中的令牌桶算法", 《邮电设计技术》 *

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109167736A (en) * 2018-07-24 2019-01-08 北京新宇航星科技有限公司 The data packet of high evenness is given out a contract for a project method and device
CN109167736B (en) * 2018-07-24 2022-05-17 北京新宇航星科技有限公司 High-uniformity data packet sending method and device

Similar Documents

Publication Publication Date Title
US20220124005A1 (en) Systems and methods for reactive intent-driven end-to-end orchestration
KR101775227B1 (en) Techniques for routing service chain flow packets between virtual machines
US9417903B2 (en) Storage management for a cluster of integrated computing systems comprising integrated resource infrastructure using storage resource agents and synchronized inter-system storage priority map
JP6716149B2 (en) Blockchain-based data processing method and apparatus
KR102338827B1 (en) Method and apparatus for a preemptive scheduling scheme in a real time operating system
CN108958796A (en) service request processing method and device, service request processing system
CN110414731A (en) Method, apparatus, computer readable storage medium and the electronic equipment of Order splitting
CN108305158A (en) A kind of method, apparatus and equipment of trained air control model and air control
CN110096528A (en) The method, apparatus and system of formation sequence in a kind of distributed system
CN104541247A (en) System and method for tuning a cloud computing system
CN108694089B (en) Parallel computing architecture using non-greedy scheduling algorithm
CN109561133A (en) Method for processing business, device, equipment and computer readable storage medium
CN104520814A (en) System and method for configuring cloud computing systems
KR20150080594A (en) Traffic and/or workload processing
CN108829469A (en) A kind of application program page methods of exhibiting and device
CN106899666A (en) A kind of data processing method and device for service identification
CN108282518A (en) A kind of customer terminal webpage generation method and device
CN109739627A (en) Dispatching method, electronic equipment and the medium of task
CN110599148A (en) Cluster data processing method and device, computer cluster and readable storage medium
Verreydt et al. Leveraging Kubernetes for adaptive and cost-efficient resource management
CN103003769B (en) Clock circuit, electronic equipment and the method for clock signal is provided
EP3516515A1 (en) Scheduling of tasks in a multiprocessor device
CN106487606A (en) A kind of dispatching method for network tester and system
CN113810306B (en) Bandwidth allocation method, device, storage medium and processor
CN110349076A (en) The processing method and processing device of data

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20170308