CN105703968B - A kind of routing capacity test method, test device and test system - Google Patents

A kind of routing capacity test method, test device and test system Download PDF

Info

Publication number
CN105703968B
CN105703968B CN201410709117.7A CN201410709117A CN105703968B CN 105703968 B CN105703968 B CN 105703968B CN 201410709117 A CN201410709117 A CN 201410709117A CN 105703968 B CN105703968 B CN 105703968B
Authority
CN
China
Prior art keywords
entry number
under test
equipment under
value
maximum
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201410709117.7A
Other languages
Chinese (zh)
Other versions
CN105703968A (en
Inventor
谯良刚
胡明明
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Maipu Communication Technology Co Ltd
Original Assignee
Maipu Communication 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 Maipu Communication Technology Co Ltd filed Critical Maipu Communication Technology Co Ltd
Priority to CN201410709117.7A priority Critical patent/CN105703968B/en
Publication of CN105703968A publication Critical patent/CN105703968A/en
Application granted granted Critical
Publication of CN105703968B publication Critical patent/CN105703968B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

A kind of routing capacity test method of offer of the embodiment of the present invention, test device and test system, are related to network communication field, provide a kind of mode of test routing capacity, can quickly and efficiently carry out the routing capacity test of equipment.Its method is:By after equipment under test successfully learns route table items of the first entry number with Article 2 mesh number, in conjunction with the first occupation value of corresponding instruction memory situation the maximum entry number estimated is determined with the second occupation value, and determining that equipment under test successfully learns the maximum entry number, and when judging that corresponding maximum occupation value meets condition, determine that the routing capacity of equipment under test is the maximum entry number.The embodiment of the present invention is for realizing the test to equipment routing capacity.

Description

A kind of routing capacity test method, test device and test system
Technical field
The present invention relates to a kind of network communication field more particularly to routing capacity test method, test device and test systems System.
Background technology
In a communication network, routing table (Routing Table) is one and is stored in routing device or Net-connected computer In electrical form (file) or class database, which stores path (and the routings in path for being directed toward particular network address Metric etc.), routing device carries out the packet forwarding in network dependent on routing table.
With the rapid development of Internet technology and going from strength to strength for userbase, diversified network flow is also able to fast Surge length.Since routing device needs each data packet to pass through to find a best transmission path, and the data are had It is transmitted to effect purpose website, thus routing table is as the key that store various transmission path related datas, amount of capacity Become the major criterion for weighing a routing device transfer capability, user needs the routing capacity to equipment before building network It is measured, to select the most suitable routing device of performance.
Currently, when the routing capacity to equipment under test is tested, the mode of generally use manual testing, by artificial It is the route table items that equipment under test configures certain amount to operate tester, and then whether verify equipment under test being capable of learning success. However, since routing capacity is unknown, needing constantly to repeat above-mentioned configuration, verification process, repeatedly in test using this mode The route table items number of adjustment configuration is tested to realize, is expended a large amount of manpower and materials, is caused to test the required time cycle Long, testing efficiency is low.
Invention content
The embodiment of the present invention provides a kind of routing capacity test method, test device and test system, to solve because The period is long the time required to routing capacity test caused by manually testing repeatedly, the low problem of testing efficiency.
In order to achieve the above objectives, the embodiment of the present invention adopts the following technical scheme that:
In a first aspect, provide a kind of routing capacity test method, it is applied to a kind of test device, the one of the test device End is connected with tester, and the other end is connected with equipment under test, there is communication connection between the tester and the equipment under test, Including:
The test device indicates that the tester sends the routing table that number is first entry number to the equipment under test , after determining the equipment under test learning success, acquisition is corresponding to indicate that the first of the equipment under test current memory situation accounts for With value;
Indicate that the tester sends the route table items that number is Article 2 mesh number to the equipment under test, described in determination After equipment under test learning success, corresponding the second occupation value for indicating the equipment under test current memory situation is obtained;
According to the first entry number, the Article 2 mesh number, first occupation value and second occupation value, obtain Fetching shows the first average value of every route table items committed memory situation, and combines and preset memory upper limit value, and determination is estimated most Big entry number;
It indicates that the tester sends the route table items that number is the maximum entry number to the equipment under test, works as judgement After determining the equipment under test learning success, the corresponding maximum occupation value for indicating the equipment under test current memory situation is obtained;
After judging to determine that the difference of the maximum occupation value and the default memory upper limit value meets preset difference value range, The maximum entry number is set as to the routing capacity of the equipment under test.
Second aspect provides a kind of routing capacity test device, and one end of the test device is connected with tester, another End is connected with equipment under test, there is communication connection between the tester and the equipment under test, including:
First preparatory unit is used to indicate the tester and sends the road that number is first entry number to the equipment under test By list item, after determining the equipment under test learning success, obtains and corresponding indicate the of the equipment under test current memory situation One occupation value;
Second preparatory unit is used to indicate the tester and sends the road that number is Article 2 mesh number to the equipment under test By list item, after determining the equipment under test learning success, obtains and corresponding indicate the of the equipment under test current memory situation Two occupation value;
Determination unit, for according to the first entry number, the Article 2 mesh number, first occupation value and described Second occupation value obtains the first average value of every route table items committed memory situation of instruction, and combines and preset memory upper limit value, Determine the maximum entry number estimated;
Acquiring unit is used to indicate the tester and sends the road that number is the maximum entry number to the equipment under test By list item, after judging to determine the equipment under test learning success, the corresponding instruction equipment under test current memory situation is obtained Maximum occupation value;
Setup unit, for determining that the maximum occupation value and the difference of the default memory upper limit value meet in advance when judgement If after difference range, the maximum entry number to be set as to the routing capacity of the equipment under test.
The third aspect provides a kind of routing capacity test system, including:Test device as described in relation to the first aspect, and Tester, equipment under test;
One end of the test device is connected with the tester, and the other end is connected with the equipment under test, the test There is communication connection between instrument and the equipment under test.
As it can be seen that a kind of routing capacity test method of offer of the embodiment of the present invention, test device and test system, by quilt Measurement equipment successfully learns first entry number with after the route table items of Article 2 mesh number, and first in conjunction with corresponding instruction memory situation accounts for It determines the maximum entry number estimated with value and the second occupation value, and is determining that equipment under test successfully learns the maximum entry number, and When judging that corresponding maximum occupation value meets condition, determine that the routing capacity of equipment under test is the maximum entry number.In this way, passing through root According to the learning outcome that succeeds twice, directly determines the maximum entry number estimated, avoid the prior art and manually execute configuration repeatedly, test Demonstrate,prove the operation tested.Therefore, the present invention compared with the existing technology, can efficiently execute the test of routing capacity, solve The problem of period length, improves testing efficiency the time required to routing capacity test.
Description of the drawings
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, to embodiment or will show below There is attached drawing needed in technology description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this Some embodiments of invention for those of ordinary skill in the art without creative efforts, can be with Obtain other attached drawings according to these attached drawings.
Fig. 1 is the structural schematic diagram that a kind of routing capacity provided in an embodiment of the present invention tests system;
Fig. 2 is a kind of flow diagram one of routing capacity test method provided in an embodiment of the present invention;
Fig. 3 is a kind of flow diagram two of routing capacity test method provided in an embodiment of the present invention;
Fig. 4 is a kind of structural schematic diagram one of routing capacity test device provided in an embodiment of the present invention;
Fig. 5 is a kind of structural schematic diagram two of routing capacity test device provided in an embodiment of the present invention.
Specific implementation mode
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete Site preparation describes, it is clear that described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.It is based on Embodiment in the present invention, it is obtained by those of ordinary skill in the art without making creative efforts every other Embodiment shall fall within the protection scope of the present invention.
Fig. 1 is the structural schematic diagram that a kind of routing capacity provided in an embodiment of the present invention tests system, for implementing this hair A kind of routing capacity test method that bright embodiment provides.Referring to Fig. 1, the test system is by control device 001, tester 002 And equipment under test 003 forms.
Wherein, control device 001 can be controllable PC (Personal Computer, personal computer), respectively with survey Instrument 002, equipment under test 003 are tried in the presence of communication connection, is sent out for controlling tester 002 by the communication connection with tester 002 Send route table items and data traffic, by with equipment under test 003 communication connection read equipment under test 003 on routing capacity, EMS memory occupation situation issues protocol service configuration to equipment under test 003;Tester 002 can be that dedicated router capacity is surveyed Equipment or the network equipment with the same function are tried, also exists with equipment under test 003 and sends and receives two-way communication connection, be used for Carry out foundation, the transmission of route table items and the transmitting-receiving of data traffic of protocol service;Equipment under test 003 can be router.
The embodiment of the present invention provides a kind of routing capacity test method, and this method can be applied to test system shown in Fig. 1 Control device in system, as shown in Fig. 2, this method includes:
S101, test device indicate that tester sends the route table items that number is first entry number to equipment under test, true After determining equipment under test learning success, the first occupation value of corresponding instruction equipment under test current memory situation is obtained.
S102, instruction tester send the route table items that number is Article 2 mesh number to equipment under test, are determining tested set After standby learning success, the second occupation value of corresponding instruction equipment under test current memory situation is obtained.
S103, according to first entry number, Article 2 mesh number, the first occupation value and the second occupation value, obtain instruction every First average value of route table items committed memory situation, and combine and preset memory upper limit value, determine the maximum entry number estimated.
In an implementation mode, it can specifically include:
Increment occupation value and increment entry number are obtained, which is the difference of the second occupation value and the first occupation value Value, the increment entry number are the difference of Article 2 mesh number and first entry number;
According to increment occupation value and increment entry number, obtain the first average value, first average value be increment occupation value with The quotient of increment entry number;
According to the first average value and default memory upper limit value, maximum entry number is obtained, which is default memory The quotient of upper limit value and the first average value.
S104, instruction tester send the route table items that number is maximum entry number to equipment under test, when judgement determines quilt After measurement equipment learning success, the maximum occupation value of corresponding instruction equipment under test current memory situation is obtained.
In an implementation mode, it can obtain first after judging to determine equipment under test study failure and reset entry number, This first reset entry number be maximum entry number with the half of first entry number difference and first entry number and;
Maximum entry number is updated to first and resets entry number, equipment under test is rejudged and whether can learn and be to number The route table items of updated maximum entry number.
Further, under another realization method, it is above-mentioned by maximum entry number be updated to first reset entry number it Before, can also include:Default entry upper limit value is updated to maximum entry number.
S105, after judging to determine that the difference of maximum occupation value and default memory upper limit value meets preset difference value range, will Maximum entry number is set as the routing capacity of equipment under test.
In an implementation mode, when judgement determines that the difference of maximum occupation value and default memory upper limit value is unsatisfactory for presetting After difference range, the second average value of every route table items committed memory situation of instruction is obtained, which accounts for for residual quantity With the quotient of value and residual quantity entry number, which is the difference of maximum occupation value and the first occupation value, the residual quantity entry number For the difference of maximum entry number and first entry number;
It according to the second average value and default memory upper limit value, obtains second and resets entry number, this second is reseted entry number and be The quotient of default memory upper limit value and the second average value;
Judge that second resets whether entry number is greater than or equal to default entry upper limit value, if so, maximum entry number is set It is set to the routing capacity of equipment under test;Or, if it is not, maximum entry number, which is then updated to second, resets entry number, rejudge by Whether measurement equipment can learn to the route table items that number is updated maximum entry number.
The embodiment of the present invention provides a kind of routing capacity test method, by successfully learning first entry number in equipment under test After the route table items of Article 2 mesh number, estimated in conjunction with the first occupation value and the determination of the second occupation value of corresponding instruction memory situation Maximum entry number, and determining that equipment under test successfully learns the maximum entry number, and judge that corresponding maximum occupation value meets item When part, determine that the routing capacity of equipment under test is the maximum entry number.In this way, by according to the learning outcome that succeeds twice, directly It determines the maximum entry number estimated, avoids and execute configuration repeatedly, the operation that verification is tested.Routing can be efficiently executed to hold The test of amount solves the problems, such as period length the time required to routing capacity test, improves testing efficiency.
In order to enable those skilled in the art to be more clearly understood that technical solution provided in an embodiment of the present invention, below base System is tested shown in Fig. 1, by specific embodiment, to another routing capacity test method provided in an embodiment of the present invention It is described in detail, as shown in figure 3, this method includes:
S201, communication connection between tester and equipment under test is established.
Specifically, control device issues protocol service configuration to equipment under test, and control between tester and equipment under test Routing Protocol is run, the communication connection between tester and equipment under test is established, to use the communication connection to carry out data packet Transmission.
Wherein, Routing Protocol is pre- in router guidance IP (Internet Protocol, Internet protocol) transmission process The regulation and standard first appointed, the routing information for providing data packet transmission, to realize the data in a network Packet is sent to the process of another network.
Illustratively, control device to equipment under test by issuing protocol service configuration, so that equipment under test obtains The path communicated with tester, and then establish the communication connection between tester and equipment under test, so as to tester with it is tested The transmission of follow-up route table items and data traffic is carried out between equipment.
S202, the route table items that control equipment under test study number is first entry number, obtain the first occupation value.
Specifically, control device controls tester sends the route table items that number is first entry number to equipment under test, with Just equipment under test is to successfully learning the route table items received, and obtains the first of corresponding instruction equipment under test current memory situation Occupation value.
Wherein, first entry number is preset one smaller routing table entry numerical value, and the routing table entry numerical value energy Enough ensure that equipment under test can successfully learn, can be default settings of the system according to equipment under test type corresponding selection, Can be that according to commissioning experience external input given value, (such as equipment under test is the road that normal capacity can reach 1000 or more to user By device type, then the first entry number set can be 100), specifically to the setting means of first entry number, not limit herein It is fixed.
It is worth mentioning, control device also needs to verify first entry number, to determine that equipment under test can be at Work(learns the route table items that above-mentioned number is first entry number, and verification operation can specifically include:
Control device instruction tester to equipment under test send number be first entry number route table items and with this After the corresponding data flow of route table items, control tester receives the number that equipment under test is sent according to Routing Protocol to tester feedback According to stream, however, it is determined that data packet in tester transmission data stream with the data packet received in data flow is completely the same (does not occur Packet loss phenomenon), then it is assumed that equipment under test succeeded state in study number be first entry number route table items, setting this first Entry number is available;
Or, however, it is determined that the data packet in tester transmission data stream and the data packet in reception data flow are inconsistent (i.e. Packet loss phenomenon has occurred), then it is assumed that equipment under test learns the route table items that above-mentioned number is first entry number not successfully, needs pair The first entry number of setting is adjusted, and is verified again to the first entry number after adjustment.
Illustratively, after selecting available first entry number Rs1, instruction tester is sent control device to equipment under test Number is the route table items of first entry number Rs1, and then by the communication connection between equipment under test, obtains equipment under test and work as Preceding EMS memory occupation situation, and current EMS memory occupation value is recorded as the first occupation value Ms1.
S203, the route table items that control equipment under test study number is Article 2 mesh number, obtain the second occupation value.
Specifically, control device is after obtaining the first occupation value, it is that control tester sends number to equipment under test The route table items of two entry numbers so that equipment under test successfully learns the route table items received, and obtain to correspond to and indicate tested set Second occupation value of standby current memory situation.
Wherein, Article 2 mesh number is preset one smaller routing table entry numerical value, which is more than First entry number, and can ensure that equipment under test can successfully learn can be system according to equipment under test type corresponding selection Default settings, or user according to commissioning experience external input given value (if the first entry number that sets is 100, The Article 2 mesh number then set can be 200), specifically to the setting means of Article 2 mesh number, not limit herein.
It is worth mentioning, control device also needs to verify Article 2 mesh number, to determine that equipment under test can be at Work(learn above-mentioned number be Article 2 mesh number route table items, verification operation can in S202 step operations to first entry number Verification operation it is identical, details are not described herein again.
Illustratively, after selecting available Article 2 mesh number Rs2, instruction tester is sent control device to equipment under test Number is the route table items of Article 2 mesh number Rs2, and then by the communication connection between equipment under test, obtains equipment under test and work as Preceding EMS memory occupation situation, and current EMS memory occupation value is recorded as the second occupation value Ms2.
The maximum entry number that S204, acquisition are estimated.
Specifically, control device is obtaining first entry number and corresponding first occupation value, Article 2 mesh number and corresponding The second occupation value after, calculated according to above-mentioned parameter and determine the first average of every route table items committed memory situation of instruction Value, and then combine and preset memory upper limit value, determine the maximum entry number estimated.
Wherein, the first average value is the quotient of increment occupation value and increment entry number, which is the second occupation value With the difference of the first occupation value, which is the difference of Article 2 mesh number and first entry number.Default memory upper limit value Can be that system default is set for the preset equipment under test EMS memory occupation upper limit, or user's external input is given, It does not limit herein.Maximum entry number is the quotient of above-mentioned default memory upper limit value and the first average value.
Illustratively, control device is according to first entry number Rs1, the first occupation value Ms1, Article 2 mesh number Rs2 and Two occupation value Ms2 determine the first average value RMAs, are:
RMAs=(Ms1-Ms2)/(Rs2-Rs1);
And then combine and preset memory upper limit value M max, it determines the maximum entry number Rnum estimated, is:
Rnum=Mmax/RMAs.
S205, control equipment under test study number are the route table items of maximum entry number, and judge learning outcome.
Specifically, control device, after obtaining maximum entry number, it is maximum that control tester sends number to equipment under test The route table items of entry number so that equipment under test learns the route table items received, and then whether can to equipment under test Enough successfully learn the route table items that above-mentioned number is first entry number to be judged.
Illustratively, control device indicates that tester sends number to equipment under test according to the maximum entry number Rnum of acquisition Route table items and with the route table items corresponding data flow of the mesh for maximum entry number Rnum, and then tester is received Equipment under test is judged according to the data flow that Routing Protocol is sent to tester feedback:
If it is determined that data packet in tester transmission data stream with the data packet received in data flow is inconsistent (has occurred Packet loss phenomenon), then it is assumed that equipment under test learns the route table items that above-mentioned number is maximum entry number Rnum not successfully, i.e., currently sets Fixed maximum entry number Rnum has had exceeded the routing capacity of equipment under test, then executes S206 step operations, reduces current setting Maximum entry number Rnum and reseted;
Or, however, it is determined that the data packet in tester transmission data stream and the data packet in reception data flow are completely the same (packet loss phenomenon does not occur), then it is assumed that equipment under test has succeeded the routing table for stating that number is maximum entry number Rnum in study , i.e., the maximum entry number Rnum currently set then executes S207 step operations, to most without departing from the routing capacity of equipment under test Whether big entry number Rnum, which can carry out further adjusting, is judged.
S206, reduce maximum entry number and reseted.
Specifically, control device is in the route table items for determining that equipment under test learns above-mentioned number as maximum entry number not successfully Afterwards, assert that the maximum entry number currently set is unavailable, then adjust reduction maximum entry number acquisition first and reset entry number, go forward side by side Row is reseted.
Illustratively, control device is after determining that the maximum entry number Rnum currently set is unavailable, in conjunction with first entry Number Rs1 determines that one first smaller relative to current maximum entry number Rnum resets entry number Rnum2 using dichotomy, is:
Rnum2=(Rnum-Rs1)/2+Rs1.
Further, obtain first reset entry number Rnum2 after, maximum entry number Rnum is updated to newly to obtain First resets entry number Rnum2, even after Rum=Rnum2, re-executing S205 step operations, control equipment under test learns number Mesh is the route table items of updated maximum entry number Rnum, and judges learning outcome.
It should be noted that, it is above-mentioned by maximum entry number Rnum is updated to newly obtain first reset entry number Rnum2 it Before, it is also necessary to the default entry upper limit value Rmax of equipment under test is updated to the maximum entry number Rnum currently set.Wherein, in advance If entry upper limit value is the upper limit value of capacity in preset equipment under test, original state can be that system default is set, It can be that user's external input is given, can not also set and (be set when S206 step operations occur), not limited herein.
S207, maximum occupation value is judged.
Specifically, control device states the route table items that number is maximum entry number determining that equipment under test has succeeded in study Afterwards, by the communication connection between equipment under test, the current EMS memory occupation situation of equipment under test is obtained, current memory is accounted for It is recorded as maximum occupation value with value, and is judged according to the maximum occupation value, it is determined whether can be carried out to maximum entry number Further adjusted.
Illustratively, control device states the road that number is maximum entry number Rnum determining that equipment under test has succeeded in study After list item, the maximum occupation value Mnum of instruction equipment under test current memory situation is obtained, and then judge:
If the difference of maximum occupation value Mnum and default memory upper limit value M max is less than preset difference value range Merror, really The difference of the fixed maximum occupation value Mnum and default memory upper limit value M max meets service precision demand, no longer needs to be adjusted, S209 step operations are then executed, maximum entry number Rnum is set as to the routing capacity of equipment under test;
Alternatively, if the difference of maximum occupation value Mnum and default memory upper limit value M max is greater than or equal to preset difference value range Merror, it is determined that the difference of the maximum occupation value Mnum and default memory upper limit value M max is unsatisfactory for service precision demand, also It need to carry out further adjusting to improve accuracy, then execute S208 step operations, increase the maximum entry number Rnum currently set, And judged.
Wherein, above-mentioned preset difference value range Merror is preset EMS memory occupation error amount, when the memory of equipment under test accounts for All it is desired value when in (Mmax-Merror) to (Mmax+Merror) range, and preset difference value range Merror can Think system default setting value, or external input setting value does not limit herein.
S208, increase maximum entry number and judged.
Specifically, control device is unsatisfactory for preset difference value model in the difference of determining maximum occupation value and default memory upper limit value After enclosing, assert that the maximum entry number that currently sets can be adjusted further, then according to the maximum entry number, right currently set Maximum occupation value and first entry number, corresponding first occupation value answered obtain every route table items committed memory feelings of instruction Second average value of condition, and then combine and preset memory upper limit value, determine that second resets entry number, and judge that second resets entry number Whether can be used.
Wherein, the second average value is the quotient of residual quantity occupation value and residual quantity entry number, which is maximum occupation value With the difference of the first occupation value, which is the difference of maximum entry number and first entry number;Second resets entry number To preset the quotient of memory upper limit value and the second average value.
Illustratively, control device according to maximum entry number Rnum, maximum occupation value Mnum, first entry number Rs1 and First occupation value Ms1 determines the second average value RMAnum, is:
RMAnum=(Mnum-Ms1)/(Rnum-Rs1);
And then combine and preset memory upper limit value M max, it determines that estimate second resets entry number Rnum3, is:
Rnum3=Mmax/RMAnum.
Further, obtain second reset entry number Rnum3 after, according to default entry upper limit value Rmax, to this second Entry number Rnum3 is reseted to be judged:
If this second is reseted entry number Rnum3 and be greater than or equal to default entry upper limit value Rmax, assert that this second is reseted Entry number Rnum3 exceeds the setting range of equipment under test, is unavailable, then executes S209 step operations, will currently set most Big entry number Rnum is set as the routing capacity of equipment under test;
Alternatively, if this second is reseted entry number Rnum3 and be less than default entry upper limit value Rmax, assert that this second resets item Mesh number Rnum3 then second resets item by maximum entry number Rnum is updated to newly obtain without departing from the setting range of equipment under test Mesh number Rnum3, even after Rum=Rnum3, re-executing S205 step operations, control equipment under test study number is after updating Maximum entry number Rnum route table items, and learning outcome is judged.
It is worth mentioning, if presetting entry upper limit value Rmax in system for setting, directly more by maximum entry number Rnum New is that second newly obtained resets entry number Rnum3, even after Rum=Rnum3, re-executes S205 step operations, controls quilt Measurement equipment learns number and is the route table items of updated maximum entry number Rnum, and judges learning outcome.
S209, the routing capacity that maximum entry number is set as to equipment under test.
The embodiment of the present invention provides a kind of routing capacity test method, by successfully learning first entry number in equipment under test After the route table items of Article 2 mesh number, estimated in conjunction with the first occupation value and the determination of the second occupation value of corresponding instruction memory situation Maximum entry number, and determining that equipment under test successfully learns the maximum entry number, and judge that corresponding maximum occupation value meets item When part, determine that the routing capacity of equipment under test is the maximum entry number.In this way, by according to the learning outcome that succeeds twice, directly It determines the maximum entry number estimated, avoids the operation that the prior art executes configuration repeatedly, verification is tested.Therefore, this hair Bright efficiently to execute the test of routing capacity compared with the existing technology, the period is long the time required to solving routing capacity test The problem of, improve testing efficiency.
The embodiment of the present invention provides a kind of routing capacity test device 01, which carries for implementing the embodiment of the present invention A kind of routing capacity test method supplied can be the control device in test system as shown in Figure 1, or in the equipment A function module, as shown in figure 4, the device 01 includes:
First preparatory unit 011 is used to indicate tester and sends the routing table that number is first entry number to equipment under test , after determining equipment under test learning success, obtain the first occupation value of corresponding instruction equipment under test current memory situation;
Second preparatory unit 012 is used to indicate tester and sends the routing table that number is Article 2 mesh number to equipment under test , after determining equipment under test learning success, obtain the second occupation value of corresponding instruction equipment under test current memory situation;
Determination unit 013, for according to first entry number, Article 2 mesh number, the first occupation value and the second occupation value, obtaining Fetching shows the first average value of every route table items committed memory situation, and combines and preset memory upper limit value, and determination is estimated most Big entry number;
Acquiring unit 014 is used to indicate tester and sends the route table items that number is maximum entry number to equipment under test, when Judge after determining equipment under test learning success, obtains the maximum occupation value of corresponding instruction equipment under test current memory situation;
Setup unit 015 judges to determine that the difference satisfaction of maximum occupation value and default memory upper limit value is default poor for working as After being worth range, maximum entry number is set as to the routing capacity of equipment under test.
It should be noted that wherein dashed connection line indicates can have connection relation between unit in figure, can not also have Standby direct connection relation, for example can not directly be interacted between the first preparatory unit 011 and the second preparatory unit 012, First preparatory unit 011 can notify the second preparatory unit 012 after obtaining the first occupation value, can also not notify, by Equipment carries out unified regulation and control.
Optionally, determination unit 013 can be specifically used for:
Increment occupation value and increment entry number are obtained, which is the difference of the second occupation value and the first occupation value Value, the increment entry number are the difference of Article 2 mesh number and first entry number;
According to increment occupation value and increment entry number, obtain the first average value, first average value be increment occupation value with The quotient of increment entry number;According to the first average value and default memory upper limit value, maximum entry number is obtained, which is pre- If the quotient of memory upper limit value and the first average value.
Optionally, acquiring unit 014 can also be specifically used for:
After instruction tester sends the route table items that number is maximum entry number to equipment under test, when judgement determines quilt It after measurement equipment study failure, obtains and first resets entry number, first to reset entry number be maximum entry number and first entry number for this The half of difference and first entry number and;
Maximum entry number is updated to first and resets entry number, equipment under test is rejudged and whether can learn and be to number The route table items of updated maximum entry number.
Optionally, setup unit 015 can also be specifically used for:
After judging to determine that the difference of maximum occupation value and default memory upper limit value is unsatisfactory for preset difference value range, acquisition refers to Show the second average value of every route table items committed memory situation, which is residual quantity occupation value and residual quantity entry number Quotient, the residual quantity occupation value are the difference of maximum occupation value and the first occupation value, which is maximum entry number and first The difference of entry number;
It according to the second average value and default memory upper limit value, obtains second and resets entry number, this second is reseted entry number and be The quotient of default memory upper limit value and the second average value;
Judge that second resets whether entry number is greater than or equal to default entry upper limit value, if so, maximum entry number is set It is set to the routing capacity of equipment under test;Or, if it is not, maximum entry number, which is then updated to second, resets entry number, rejudge by Whether measurement equipment can learn to the route table items that number is updated maximum entry number.
Optionally, as shown in figure 5, the device 01 can also include:
Updating unit 016, for acquiring unit 014 maximum entry number is updated to first reset entry number before, will Default entry upper limit value is updated to maximum entry number.
The embodiment of the present invention provides a kind of routing capacity test device, by successfully learning first entry number in equipment under test After the route table items of Article 2 mesh number, estimated in conjunction with the first occupation value and the determination of the second occupation value of corresponding instruction memory situation Maximum entry number, and determining that equipment under test successfully learns the maximum entry number, and judge that corresponding maximum occupation value meets item When part, determine that the routing capacity of equipment under test is the maximum entry number.In this way, by according to the learning outcome that succeeds twice, directly It determines the maximum entry number estimated, avoids and execute configuration repeatedly, the operation that verification is tested.Routing can be efficiently executed to hold The test of amount solves the problems, such as period length the time required to routing capacity test, improves testing efficiency.
In several embodiments provided herein, it should be understood that disclosed system, device and method can be with It realizes by another way.For example, apparatus embodiments described above are merely indicative, for example, the unit It divides, only a kind of division of logic function, formula that in actual implementation, there may be another division manner, such as multiple units or component It can be combined or can be integrated into another system, or some features can be ignored or not executed.
In addition, in equipment and system in each embodiment of the present invention, each functional unit can be integrated in a processing Can also be that the independent physics of each unit includes in unit, it can also be during two or more units be integrated in one unit. And the form realization of hardware had both may be used in above-mentioned each unit, and the form that hardware add SFU software functional unit can also be used real It is existing.
Realize that all or part of step of above method embodiment can be completed by the relevant hardware of program instruction, it is preceding The program stated can be stored in a computer read/write memory medium, and when being executed, execution includes above method reality to the program The step of applying;And storage medium above-mentioned includes:USB flash disk, mobile hard disk, ROM (Read Only Memory, read-only storage Device), RAM (Random Access Memory, random access memory), magnetic disc or CD etc. are various can store program generation The medium of code.
The above description is merely a specific embodiment, but scope of protection of the present invention is not limited thereto, any Those familiar with the art in the technical scope disclosed by the present invention, can easily think of the change or the replacement, and should all contain Lid is within protection scope of the present invention.Therefore, protection scope of the present invention should be based on the protection scope of the described claims.

Claims (11)

1. a kind of routing capacity test method is applied to a kind of test device, one end of the test device is connected with tester, The other end is connected with equipment under test, there is communication connection between the tester and the equipment under test, which is characterized in that packet It includes:
The test device indicates that the tester sends the route table items that number is first entry number to the equipment under test, After determining the equipment under test learning success, corresponding the first occupation value for indicating the equipment under test current memory situation is obtained;
Indicate that the tester sends the route table items that number is Article 2 mesh number to the equipment under test, it is described tested determining After learning equipment success, corresponding the second occupation value for indicating the equipment under test current memory situation is obtained;
Increment occupation value and increment entry number are obtained, the increment occupation value is second occupation value and first occupation value Difference, the increment entry number be the Article 2 mesh number and the first entry number difference;
According to the increment occupation value and the increment entry number, the first of every route table items committed memory situation of instruction is obtained Average value, and combine and preset memory upper limit value, determine that the maximum entry number estimated, first average value occupy for the increment The quotient of value and the increment entry number;
Indicate that the tester sends the route table items that number is the maximum entry number to the equipment under test, when judgement determines After the equipment under test learning success, the corresponding maximum occupation value for indicating the equipment under test current memory situation is obtained;
After judging to determine that the difference of the maximum occupation value and the default memory upper limit value meets preset difference value range, by institute State the routing capacity that maximum entry number is set as the equipment under test.
2. according to the method described in claim 1, it is characterized in that, the maximum entry number that the determination is estimated includes:
According to first average value and the default memory upper limit value, the maximum entry number, the maximum entry number are obtained For the quotient of the default memory upper limit value and first average value.
3. method according to claim 1 or 2, which is characterized in that set to described be tested in the instruction tester After preparation send the route table items that number is the maximum entry number, the method further includes:
After judging to determine the equipment under test study failure, obtains first and reset entry number, described first, which resets entry number, is The half of maximum entry number and the first entry number difference and the first entry number and;
The maximum entry number is updated to described first and resets entry number, rejudges whether the equipment under test can learn To the route table items that number is the updated maximum entry number.
4. according to the method described in claim 3, it is characterized in that, the method further includes:
After judging to determine that the difference of the maximum occupation value and the default memory upper limit value is unsatisfactory for preset difference value range, obtain Fetching shows that the second average value of every route table items committed memory situation, second average value are residual quantity occupation value and residual quantity item The quotient of mesh number, the residual quantity occupation value are the difference of the maximum occupation value and first occupation value, the residual quantity entry number For the difference of the maximum entry number and the first entry number;
According to second average value and the default memory upper limit value, obtains second and reset entry number, described second resets item Mesh number is the quotient of the default memory upper limit value and second average value;
Judge that described second resets whether entry number is greater than or equal to default entry upper limit value, if so, by the maximum entry Number is set as the routing capacity of the equipment under test;Or, if it is not, the maximum entry number, which is then updated to described second, resets item Mesh number, rejudges whether the equipment under test can learn to the routing table that number is the updated maximum entry number .
5. according to the method described in claim 4, it is characterized in that, the maximum entry number is updated to described first described Before reseting entry number, the method further includes:
The default entry upper limit value is updated to the maximum entry number.
6. a kind of routing capacity test device, one end of the test device are connected with tester, the other end and equipment under test phase Even, there is communication connection between the tester and the equipment under test, which is characterized in that including:
First preparatory unit is used to indicate the tester and sends the routing table that number is first entry number to the equipment under test , after determining the equipment under test learning success, acquisition is corresponding to indicate that the first of the equipment under test current memory situation accounts for With value;
Second preparatory unit is used to indicate the tester and sends the routing table that number is Article 2 mesh number to the equipment under test , after determining the equipment under test learning success, acquisition is corresponding to indicate that the second of the equipment under test current memory situation accounts for With value;
Determination unit, for obtaining increment occupation value and increment entry number, the increment occupation value be second occupation value with The difference of first occupation value, the increment entry number are the difference of the Article 2 mesh number and the first entry number;
The determination unit is additionally operable to, according to the increment occupation value and the increment entry number, obtain every routing table of instruction First average value of item committed memory situation, and combine and preset memory upper limit value, the determining maximum entry number estimated, described first Average value is the quotient of the increment occupation value and the increment entry number;
Acquiring unit is used to indicate the tester and sends the routing table that number is the maximum entry number to the equipment under test , after judging to determine the equipment under test learning success, acquisition is corresponding to indicate the equipment under test current memory situation most Big occupation value;
Setup unit judges to determine that the difference satisfaction of the maximum occupation value and the default memory upper limit value is default poor for working as After being worth range, the maximum entry number is set as to the routing capacity of the equipment under test.
7. device according to claim 6, which is characterized in that the determination unit is used for:
According to first average value and the default memory upper limit value, the maximum entry number, the maximum entry number are obtained For the quotient of the default memory upper limit value and first average value.
8. the device described according to claim 6 or 7, which is characterized in that the acquiring unit is additionally operable to:
After the instruction tester sends the route table items that number is the maximum entry number to the equipment under test, It after judging to determine equipment under test study failure, obtains first and resets entry number, described first to reset entry number be described The half of maximum entry number and the first entry number difference and the first entry number and;
The maximum entry number is updated to described first and resets entry number, rejudges whether the equipment under test can learn To the route table items that number is the updated maximum entry number.
9. device according to claim 8, which is characterized in that the setup unit is additionally operable to:
After judging to determine that the difference of the maximum occupation value and the default memory upper limit value is unsatisfactory for preset difference value range, obtain Fetching shows that the second average value of every route table items committed memory situation, second average value are residual quantity occupation value and residual quantity item The quotient of mesh number, the residual quantity occupation value are the difference of the maximum occupation value and first occupation value, the residual quantity entry number For the difference of the maximum entry number and the first entry number;
According to second average value and the default memory upper limit value, obtains second and reset entry number, described second resets item Mesh number is the quotient of the default memory upper limit value and second average value;
Judge that described second resets whether entry number is greater than or equal to default entry upper limit value, if so, by the maximum entry Number is set as the routing capacity of the equipment under test;Or, if it is not, the maximum entry number, which is then updated to described second, resets item Mesh number, rejudges whether the equipment under test can learn to the routing table that number is the updated maximum entry number .
10. device according to claim 9, which is characterized in that further include:
Updating unit, for the acquiring unit the maximum entry number is updated to described first reset entry number before, The default entry upper limit value is updated to the maximum entry number.
11. a kind of routing capacity tests system, which is characterized in that including:As described in any one of claim 6 to 10 claim Test device and tester, equipment under test;
One end of the test device is connected with the tester, and the other end is connected with the equipment under test, the tester with There is communication connection between the equipment under test.
CN201410709117.7A 2014-11-28 2014-11-28 A kind of routing capacity test method, test device and test system Active CN105703968B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410709117.7A CN105703968B (en) 2014-11-28 2014-11-28 A kind of routing capacity test method, test device and test system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410709117.7A CN105703968B (en) 2014-11-28 2014-11-28 A kind of routing capacity test method, test device and test system

Publications (2)

Publication Number Publication Date
CN105703968A CN105703968A (en) 2016-06-22
CN105703968B true CN105703968B (en) 2018-10-12

Family

ID=56230380

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410709117.7A Active CN105703968B (en) 2014-11-28 2014-11-28 A kind of routing capacity test method, test device and test system

Country Status (1)

Country Link
CN (1) CN105703968B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112350881B (en) * 2019-08-09 2023-04-07 北京京东尚科信息技术有限公司 Method and device for testing performance of switch

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101272291A (en) * 2008-04-29 2008-09-24 北京星网锐捷网络技术有限公司 Network appliance testing method and system
EP2296407A1 (en) * 2009-09-10 2011-03-16 Fujitsu Limited Wireless communication network and adaptive routing communication method thereof
CN102201950A (en) * 2011-06-07 2011-09-28 北京交通大学 Method for testing routing performance of core network of integrated identification network
CN103873311A (en) * 2012-12-11 2014-06-18 中国移动通信集团公司 Method for testing router forwarding information base capacity and system thereof

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100872435B1 (en) * 2007-06-14 2008-12-05 한국전자통신연구원 System and method for managing network by value-based estimation

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101272291A (en) * 2008-04-29 2008-09-24 北京星网锐捷网络技术有限公司 Network appliance testing method and system
EP2296407A1 (en) * 2009-09-10 2011-03-16 Fujitsu Limited Wireless communication network and adaptive routing communication method thereof
CN102201950A (en) * 2011-06-07 2011-09-28 北京交通大学 Method for testing routing performance of core network of integrated identification network
CN103873311A (en) * 2012-12-11 2014-06-18 中国移动通信集团公司 Method for testing router forwarding information base capacity and system thereof

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
BGP异常流量生成器的设计与实现;周旭平;《长沙民政职业技术学院学报》;20060331;全文 *

Also Published As

Publication number Publication date
CN105703968A (en) 2016-06-22

Similar Documents

Publication Publication Date Title
CA2840896C (en) Methods and systems for determining an association between nodes and phases via a smart grid
JP2019501553A (en) Cloud-based system and method for managing test configurations of cable test devices
CN104978258A (en) Software automation test method and system
CN105052077B (en) The method and apparatus of information processing in a kind of M2M
US10948936B2 (en) Test bed platforms for advanced multi-stage automation and control for smart and micro grid
JP6419809B2 (en) Power storage system and characteristic parameter estimation method
CN104360951A (en) Script testing method and device
CN106302448A (en) remote access control method and device
CN109450746A (en) Method of network entry, device, server and the storage medium of power peak regulation system equipment
CN102810076A (en) Storage medium switching control system and method
CN104506457A (en) Bandwidth adjusting method and system and intelligent pipeline platform
CN105703968B (en) A kind of routing capacity test method, test device and test system
CN104106245A (en) Managing network connection for use by plurality of application program processes
CN106875646A (en) Collecting method and equipment
CN105573905A (en) Software compatibility testing method and system
CN110334385B (en) Test method, device and equipment for central controller of comprehensive energy system
Keyson et al. Designing a portable and low cost home energy management toolkit
CN106850347B (en) Longitudinal virtualization test method and device
CN109764483A (en) A kind of air conditioner centralized control method, apparatus and client
WO2017003315A1 (en) Method, apparatus and computer program product for evaluating data storage systems for energy efficiency
Janiga et al. Testing system for smart meters
CN106302046A (en) Control method for remote controller and device
KR102494709B1 (en) System for Testing Function of Distributed Resources and Method using thereof
CN110445784A (en) The display methods and device of operation data, energy resource system
JP7095581B2 (en) Power consumption estimation method, power consumption suppression method, environmental contribution estimation method, and power consumption control device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant