CN105703968A - Routing capacity testing method, testing device and testing system - Google Patents

Routing capacity testing method, testing device and testing system Download PDF

Info

Publication number
CN105703968A
CN105703968A CN201410709117.7A CN201410709117A CN105703968A CN 105703968 A CN105703968 A CN 105703968A CN 201410709117 A CN201410709117 A CN 201410709117A CN 105703968 A CN105703968 A CN 105703968A
Authority
CN
China
Prior art keywords
entry number
under test
equipment under
maximum
occupation value
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201410709117.7A
Other languages
Chinese (zh)
Other versions
CN105703968B (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

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The embodiment provides a routing capacity testing method, a testing device and a testing system, relating to the field of network communication. The invention provides a mode of testing a routing capacity, and the routing capacity testing can be rapidly and effectively carried out. The method comprises the steps of determining an estimated largest mesh number combined with a first occupancy value and a second occupancy value which correspondingly indicate memory conditions after tested equipment successfully learns the routing entries of a first mesh number and a second mesh number, and determining the routing capacity of the tested equipment as the largest mesh number when the condition that the tested equipment successfully learns the largest mesh number is determined and a condition that the corresponding largest occupancy value satisfies a condition is judged. The embodiment of the invention is used for realizing the testing of an equipment routing capacity.

Description

A kind of routing capacity method of testing, test device and test system
Technical field
The present invention relates to network communication field, particularly relate to a kind of routing capacity method of testing, test device and test system。
Background technology
In a communication network, routing table (RoutingTable) is an electrical form being stored in routing device or Net-connected computer (file) or class data base, which stores the path (and the route metric value etc. in path) pointing to particular network address, routing device depends on the packet forwarding that routing table carries out in network。
Along with developing rapidly of Internet technology and going from strength to strength of userbase, diversified network traffics are also able to swift and violent growth。Owing to routing device needs each packet for process to find a best transmission path, and these data are effectively transmitted to purpose website, thus routing table is as the key that store various transmission paths related data, its amount of capacity becomes the major criterion weighing a routing device transfer capability, user needs the routing capacity of equipment is measured before building network, in order to select the most suitable routing device of performance。
At present, when the routing capacity of equipment under test is tested, generally adopting the mode of manual testing, by the route table items that manual operation tester is equipment under test configuration some, and then whether checking equipment under test can learning success。But, use this mode when test, owing to routing capacity is unknown, needing constantly to repeat above-mentioned configuration, proof procedure, the route table items number repeatedly adjusting configuration is tested to realize, and expends a large amount of manpower and materials, the time cycle causing test required is long, and testing efficiency is low。
Summary of the invention
Embodiments of the invention provide a kind of routing capacity method of testing, test device and test system, in order to solve because manually repeatedly testing the routing capacity test required time cycle caused long, that testing efficiency is low problem。
For reaching above-mentioned purpose, embodiments of the invention adopt the following technical scheme that
First aspect, it is provided that a kind of routing capacity method of testing, is applied to a kind of test device, and one end of described test device is connected with tester, and the other end is connected with equipment under test, there is communication connection between described tester and described equipment under test, including:
Described test device indicates described tester to send, to described equipment under test, the route table items that number is first entry number, after determining described equipment under test learning success, obtains correspondence and indicates the first occupation value of described equipment under test current memory situation;
Indicate described tester to send, to described equipment under test, the route table items that number is second entry number, after determining described equipment under test learning success, obtain correspondence and indicate the second occupation value of described equipment under test current memory situation;
According to described first entry number, described second entry number, described first occupation value and described second occupation value, obtain the first meansigma methods of every route table items committed memory situation of instruction, and combine default internal memory higher limit, it is determined that the maximum entry number estimated;
Indicate described tester to send, to described equipment under test, the route table items that number is described maximum entry number, after described equipment under test learning success is determined in judgement, obtain correspondence and indicate the maximum occupation value of described equipment under test current memory situation;
After judgement determines that the difference of described maximum occupation value and described default internal memory higher limit meets preset difference value scope, described maximum entry number is set as the routing capacity of described equipment under test。
Second aspect, it is provided that a kind of routing capacity test device, one end of described test device is connected with tester, and the other end is connected with equipment under test, there is communication connection between described tester and described equipment under test, including:
First preparatory unit, for indicating described tester to send, to described equipment under test, the route table items that number is first entry number, after determining described equipment under test learning success, obtains correspondence and indicates the first occupation value of described equipment under test current memory situation;
Second preparatory unit, for indicating described tester to send, to described equipment under test, the route table items that number is second entry number, after determining described equipment under test learning success, obtains correspondence and indicates the second occupation value of described equipment under test current memory situation;
Determine unit, for according to described first entry number, described second entry number, described first occupation value and described second occupation value, obtain the first meansigma methods of every route table items committed memory situation of instruction, and combine default internal memory higher limit, it is determined that the maximum entry number estimated;
Acquiring unit, for indicating described tester to send, to described equipment under test, the route table items that number is described maximum entry number, after described equipment under test learning success is determined in judgement, obtains correspondence and indicates the maximum occupation value of described equipment under test current memory situation;
Setup unit, after determining that when judgement the difference of described maximum occupation value and described default internal memory higher limit meets preset difference value scope, is set as the routing capacity of described equipment under test by described maximum entry number。
The third aspect, it is provided that 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 described test device is connected with described tester, and the other end is connected with described equipment under test, there is communication connection between described tester and described equipment under test。
Visible, the embodiment of the present invention provides a kind of routing capacity method of testing, test device and test system, by after equipment under test successfully learns the first entry number route table items with second entry number, the first occupation value in conjunction with corresponding instruction internal memory situation determines, with the second occupation value, the maximum entry number estimated, and determining that equipment under test successfully learns this maximum entry number, and judging when corresponding maximum occupation value satisfies condition, it is determined that the routing capacity of equipment under test is this maximum entry number。So, by according to twice success learning outcome, directly determining the maximum entry number estimated, it is to avoid prior art manually repeatedly performs configuration, verifies the operation carrying out testing。Therefore, the present invention is relative to prior art, it is possible to efficiently perform the test of routing capacity, the problem solving routing capacity test required time cycle length, improves testing efficiency。
Accompanying drawing explanation
In order to be illustrated more clearly that the embodiment of the present invention or technical scheme of the prior art, the accompanying drawing used required in embodiment or description of the prior art will be briefly described below, apparently, accompanying drawing in the following describes is only some embodiments of the present invention, for those of ordinary skill in the art, under the premise not paying creative work, it is also possible to obtain other accompanying drawing according to these accompanying drawings。
The structural representation of a kind of routing capacity test system that Fig. 1 provides for the embodiment of the present invention;
The schematic flow sheet one of a kind of routing capacity method of testing that Fig. 2 provides for the embodiment of the present invention;
The schematic flow sheet two of a kind of routing capacity method of testing that Fig. 3 provides for the embodiment of the present invention;
The structural representation one of a kind of routing capacity test device that Fig. 4 provides for the embodiment of the present invention;
The structural representation two of a kind of routing capacity test device that Fig. 5 provides for the embodiment of the present invention。
Detailed description of the invention
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is clearly and completely described, it is clear that described embodiment is only a part of embodiment of the present invention, rather than whole embodiments。Based on the embodiment in the present invention, the every other embodiment that those of ordinary skill in the art obtain under not making creative work premise, broadly fall into the scope of protection of the invention。
The structural representation of a kind of routing capacity test system that Fig. 1 provides for the embodiment of the present invention, for implementing a kind of routing capacity method of testing that the embodiment of the present invention provides。Referring to Fig. 1, this test system is formed by controlling equipment 001, tester 002 and equipment under test 003。
Wherein, control equipment 001 can be controlled PC (PersonalComputer, personal computer), communication connection is there is respectively with tester 002, equipment under test 003, for by sending route table items and data traffic with the communication connection of tester 002 control tester 002, by reading the routing capacity on equipment under test 003, EMS memory occupation situation with the communication connection of equipment under test 003 or issuing protocol service configuration to equipment under test 003;Tester 002 can be special router volume test equipment or the network equipment with identical function, also exist with equipment under test 003 and send and receive two-way communication connection, for carrying out the transmitting-receiving of the foundation of protocol service, the transmission of route table items and data traffic;Equipment under test 003 can be router。
Embodiments of the invention provide a kind of routing capacity method of testing, and the method can apply to the control equipment in test system shown in Fig. 1, as in figure 2 it is shown, the method includes:
S101, test device instruction tester send, to equipment under test, the route table items that number is first entry number, after determining equipment under test learning success, obtain the first occupation value of correspondence instruction equipment under test current memory situation。
S102, instruction tester send, to equipment under test, the route table items that number is second entry number, after determining equipment under test learning success, obtain the second occupation value of correspondence instruction equipment under test current memory situation。
S103, according to first entry number, second entry number, the first occupation value and the second occupation value, obtain the first meansigma methods of every route table items committed memory situation of instruction, and combine and preset internal memory higher limit, it is determined that the maximum entry number estimated。
Under a kind of implementation, it is possible to specifically include:
Obtaining increment occupation value and increment entry number, this increment occupation value is the difference of the second occupation value and the first occupation value, and this increment entry number is the difference of second entry number and first entry number;
According to increment occupation value and increment entry number, obtaining the first meansigma methods, this first meansigma methods is the business of increment occupation value and increment entry number;
According to the first meansigma methods and default internal memory higher limit, obtaining maximum entry number, this maximum entry number is the business presetting internal memory higher limit with the first meansigma methods。
S104, instruction tester send, to equipment under test, the route table items that number is maximum entry number, after equipment under test learning success is determined in judgement, obtain the maximum occupation value of correspondence instruction equipment under test current memory situation。
Under a kind of implementation, it is possible to when judging to determine that equipment under test learn after unsuccessfully, obtain first and reset entry number, this first reset half that entry number is maximum entry number and first entry number difference and first entry number and;
Maximum entry number is updated to first and resets entry number, rejudge whether equipment under test can learn the route table items of the maximum entry number after being renewal to number。
Further, under another kind of implementation, above-mentioned maximum entry number is updated to first reset entry number before, it is also possible to including: default entry higher limit is updated to maximum entry number。
S105, after judging to determine that the difference of maximum occupation value and default internal memory higher limit meets preset difference value scope, maximum entry number is set as the routing capacity of equipment under test。
Under a kind of implementation, after judgement determines that the difference of maximum occupation value and default internal memory higher limit is unsatisfactory for preset difference value scope, obtain the second meansigma methods of every route table items committed memory situation of instruction, this the second meansigma methods is the business of residual quantity occupation value and residual quantity entry number, this residual quantity occupation value is the difference of maximum occupation value and the first occupation value, and this residual quantity entry number is the difference of maximum entry number and first entry number;
According to the second meansigma methods and default internal memory higher limit, obtaining second and reset entry number, second to reset entry number be the business presetting internal memory higher limit with the second meansigma methods for this;
Judge that whether second reset entry number more than or equal to default entry higher limit, if so, then maximum entry number is set as the routing capacity of equipment under test;Or, if it is not, then maximum entry number is updated to second to reset entry number, rejudge whether equipment under test can learn the route table items of the maximum entry number after being renewal to number。
The embodiment of the present invention provides a kind of routing capacity method of testing, by after equipment under test successfully learns the first entry number route table items with second entry number, the first occupation value in conjunction with corresponding instruction internal memory situation determines, with the second occupation value, the maximum entry number estimated, and determining that equipment under test successfully learns this maximum entry number, and judging when corresponding maximum occupation value satisfies condition, it is determined that the routing capacity of equipment under test is this maximum entry number。So, by according to twice success learning outcome, directly determining the maximum entry number estimated, it is to avoid repeatedly perform configuration, verify the operation carrying out testing。Can efficiently perform the test of routing capacity, the problem solving routing capacity test required time cycle length, improve testing efficiency。
In order to enable those skilled in the art to be more clearly understood that the technical scheme that the embodiment of the present invention provides, below based on testing system shown in Fig. 1, pass through specific embodiment, the another kind of routing capacity method of testing that the embodiment of the present invention is provided is described in detail, as it is shown on figure 3, the method includes:
S201, the communication connection set up between tester and equipment under test。
Concrete, control equipment issues protocol service configuration to equipment under test, and controls operation Routing Protocol between tester and equipment under test, sets up the communication connection between tester and equipment under test, in order to use this communication connection to carry out the transmission of packet。
Wherein, Routing Protocol is router guidance IP (InternetProtocol, Internet protocol) regulation made an appointment in transmission process and standard, for the routing information providing packet to send, in order to realize the process of the packet transmission in a network to another network。
Exemplary, control equipment is by issuing protocol service configuration to equipment under test, so that equipment under test obtains the path communicated with tester, and then set up the communication connection between tester and equipment under test, in order between tester and equipment under test, carry out the transmission of follow-up route table items and data traffic。
S202, control equipment under test study number are the route table items of first entry number, obtain the first occupation value。
Concrete, control equipment controls tester and sends, to equipment under test, the route table items that number is first entry number, in order to equipment under test is to successfully learning the route table items that receives, and obtains the first occupation value of corresponding instruction equipment under test current memory situation。
Wherein, first entry number is a default less routing table entry numerical value, and this routing table entry numerical value is able to ensure that equipment under test can successfully learn, it can be the system default settings according to equipment under test type corresponding selection, can also be user according to commissioning experience externally input set-point (if equipment under test is the router type that normal capacity can reach more than 1000, the first entry number then set can be 100), specifically the setting means to first entry number, does not limit herein。
Being worth mentioning, control equipment also needs to first entry number is verified, in order to determining that equipment under test can successfully learn the route table items that above-mentioned number is first entry number, verification operation specifically may include that
Control equipment sends after number is the route table items of first entry number and the data stream corresponding with this route table items at instruction tester to equipment under test, control tester and receive the data stream that equipment under test sends to tester feedback according to Routing Protocol, if it is determined that tester sends the packet in data stream and the packet completely the same (namely packet loss phenomenon does not occur) received in data stream, then thinking that equipment under test successfully learns the route table items that above-mentioned number is first entry number, this first entry number of setting can use;
Or, if it is determined that tester sends the packet in data stream and the packet inconsistent (namely there occurs packet loss phenomenon) received in data stream, then think the route table items that the equipment under test above-mentioned number of unsuccessful study is first entry number, need the first entry number to setting to be adjusted, and the first entry number after adjusting is verified again。
Exemplary, control equipment is after selected available first entry number Rs1, instruction tester sends, to equipment under test, the route table items that number is first entry number Rs1, and then by the communication connection between equipment under test, obtain the EMS memory occupation situation that equipment under test is current, and current EMS memory occupation value is recorded as the first occupation value Ms1。
S203, control equipment under test study number are the route table items of second entry number, obtain the second occupation value。
Concrete, control equipment is after obtaining the first occupation value, control tester and send, to equipment under test, the route table items that number is second entry number, in order to equipment under test successfully learns the route table items received, and obtains the second occupation value of corresponding instruction equipment under test current memory situation。
Wherein, second entry number is a default less routing table entry numerical value, this routing table entry numerical value is more than first entry number, and it is able to ensure that equipment under test can successfully learn, can be the system default settings according to equipment under test type corresponding selection, it is also possible to for user according to commissioning experience externally input set-point (if the first entry number set is as 100, then the second entry number set can be 200), specifically the setting means to second entry number, does not limit herein。
It is worth mentioning, control equipment also needs to second entry number is verified, to determine that equipment under test can successfully learn the route table items that above-mentioned number is second entry number, verification operation can be identical to the verification operation of first entry number with S202 step operation, repeats no more herein。
Exemplary, control equipment is after selected available second entry number Rs2, instruction tester sends, to equipment under test, the route table items that number is second entry number Rs2, and then by the communication connection between equipment under test, obtain the EMS memory occupation situation that equipment under test is current, and current EMS memory occupation value is recorded as the second occupation value Ms2。
The maximum entry number that S204, acquisition are estimated。
Concrete, control equipment is after obtaining first entry number and the first corresponding occupation value, second entry number and the second corresponding occupation value, the first meansigma methods determining every route table items committed memory situation of instruction is calculated according to above-mentioned parameter, and then combine default internal memory higher limit, it is determined that the maximum entry number estimated。
Wherein, the first meansigma methods is the business of increment occupation value and increment entry number, and this increment occupation value is the difference of the second occupation value and the first occupation value, and this increment entry number is the difference of second entry number and first entry number。Presetting internal memory higher limit is the equipment under test EMS memory occupation upper limit set in advance, it is possible to set for system default, it is also possible to gives for user's externally input, does not limit herein。Maximum entry number is the business of above-mentioned default internal memory higher limit and the first meansigma methods。
Exemplary, control equipment according to first entry number Rs1, the first occupation value Ms1, second entry number Rs2 and the second occupation value Ms2, it is determined that the first meansigma methods RMAs, for:
RMAs=(Ms1-Ms2)/(Rs2-Rs1);
And then combine default internal memory upper limit value M max, it is determined that the maximum entry number Rnum estimated, for:
Rnum=Mmax/RMAs。
S205, control equipment under test study number are the route table items of maximum entry number, and learning outcome is judged。
Concrete, control equipment is after obtaining maximum entry number, control tester and send, to equipment under test, the route table items that number is maximum entry number, so that the route table items received is learnt by equipment under test, and then whether equipment under test can successfully be learnt the route table items that above-mentioned number is first entry number judge。
Exemplary, control equipment is according to the maximum entry number Rnum obtained, it is the route table items of maximum entry number Rnum and the data stream corresponding with this route table items that instruction tester sends number to equipment under test, and then the data stream that the equipment under test that tester is received sends to tester feedback according to Routing Protocol judges:
If it is determined that tester sends the packet in data stream and the packet inconsistent (namely there occurs packet loss phenomenon) received in data stream, then think the route table items that the equipment under test above-mentioned number of unsuccessful study is maximum entry number Rnum, namely the current maximum entry number Rnum set is beyond the routing capacity of equipment under test, then perform S206 step operation, reduce the current maximum entry number Rnum set and reset;
Or, if it is determined that tester sends the packet in data stream and the packet completely the same (namely packet loss phenomenon does not occur) received in data stream, then think that equipment under test successfully learns the route table items that above-mentioned number is maximum entry number Rnum, namely the current maximum entry number Rnum set is without departing from the routing capacity of equipment under test, then perform S207 step operation, whether can carry out maximum entry number Rnum adjusting further judging。
S206, reduce maximum entry number and reset。
Specifically, control equipment, after determining the route table items that the equipment under test above-mentioned number of unsuccessful study is maximum entry number, assert that the current maximum entry number set is unavailable, then the maximum entry number of adjustment reduction obtains first and resets entry number, and resets。
Exemplary, control equipment is after the maximum entry number Rnum determining current setting is unavailable, in conjunction with first entry number Rs1, uses two way classification to determine and resets entry number Rnum2 relative to current less for maximum entry number Rnum one first, for:
Rnum2=(Rnum-Rs1)/2+Rs1。
Further, obtain first reset entry number Rnum2 after, first that maximum entry number Rnum is updated to new acquisition resets entry number Rnum2, even after Rum=Rnum2, re-execute S205 step operation, control the route table items that equipment under test study number is the maximum entry number Rnum after updating, and learning outcome is judged。
Should be noted that, maximum entry number Rnum is updated to before the first of new acquisition resets entry number Rnum2 above-mentioned, in addition it is also necessary to the default entry higher limit Rmax of equipment under test is updated to the maximum entry number Rnum of current setting。Wherein, presetting entry higher limit is the higher limit of capacity in equipment under test set in advance, and original state can set for system default, it is also possible to give for user's externally input, (setting when S206 step operation occurs) can not also be set, do not limit herein。
S207, maximum occupation value is judged。
Concrete, control equipment is after determining that equipment under test successfully learns the route table items that above-mentioned number is maximum entry number, by the communication connection between equipment under test, obtain the EMS memory occupation situation that equipment under test is current, current EMS memory occupation value is recorded as maximum occupation value, and judge according to this maximum occupation value, it is determined whether can carry out maximum entry number is adjusted further。
Exemplary, control equipment, after determining that equipment under test successfully learns the route table items that above-mentioned number is maximum entry number Rnum, obtains the maximum occupation value Mnum of instruction equipment under test current memory situation, and then judges:
If the difference of maximum occupation value Mnum and default internal memory upper limit value M max is less than preset difference value scope Merror, then determine that the difference of this maximum occupation value Mnum and default internal memory upper limit value M max meets service precision demand, without being adjusted again, then perform S209 step operation, this maximum entry number Rnum is set as the routing capacity of equipment under test;
Or, if the difference of maximum occupation value Mnum and default internal memory upper limit value M max is more than or equal to preset difference value scope Merror, then determine that the difference of this maximum occupation value Mnum and default internal memory upper limit value M max is unsatisfactory for service precision demand, also need to carry out adjusting to improve accuracy further, then perform S208 step operation, increase the current maximum entry number Rnum set, and judge。
Wherein, above-mentioned preset difference value scope Merror is default EMS memory occupation error amount, when the EMS memory occupation of equipment under test is in (Mmax-Merror) to (Mmax+Merror) scope, it it is all desired value, and this preset difference value scope Merror can be system default setting value, setting value can also be an externally input, do not limit herein。
S208, increase maximum entry number and judge。
Concrete, control equipment is after determining that the maximum occupation value difference with default internal memory higher limit is unsatisfactory for preset difference value scope, assert that the current maximum entry number set can further adjust, then according to the maximum entry number of current setting, corresponding maximum occupation value, and first entry number, the first corresponding occupation value, obtain the second meansigma methods of every route table items committed memory situation of instruction, and then combine default internal memory higher limit, determine that second resets entry number, and judge that second resets whether entry number can be used。
Wherein, the second meansigma methods is the business of residual quantity occupation value and residual quantity entry number, and this residual quantity occupation value is the difference of maximum occupation value and the first occupation value, and this residual quantity entry number is the difference of maximum entry number and first entry number;Second resets the business that entry number is default internal memory higher limit and the second meansigma methods。
Exemplary, control equipment according to maximum entry number Rnum, maximum occupation value Mnum, first entry number Rs1 and the first occupation value Ms1, it is determined that the second meansigma methods RMAnum, for:
RMAnum=(Mnum-Ms1)/(Rnum-Rs1);
And then combining default internal memory upper limit value M max, it is determined that second estimated resets entry number Rnum3, for:
Rnum3=Mmax/RMAnum。
Further, obtain second reset entry number Rnum3 after, according to default entry higher limit Rmax, this second is reseted entry number Rnum3 is judged:
If this second resets entry number Rnum3 more than or equal to default entry higher limit Rmax, then assert that this second resets entry number Rnum3 beyond the set point of equipment under test, for unavailable, then perform S209 step operation, the maximum entry number Rnum currently set is set as the routing capacity of equipment under test;
Or, if this second resets entry number Rnum3 less than default entry higher limit Rmax, then assert that this second resets the entry number Rnum3 set point without departing from equipment under test, second that maximum entry number Rnum is then updated to new acquisition resets entry number Rnum3, even after Rum=Rnum3, re-execute S205 step operation, control the route table items that equipment under test study number is the maximum entry number Rnum after updating, and learning outcome is judged。
It is worth mentioning, if system presets entry higher limit Rmax for setting, then directly maximum entry number Rnum is updated to the second of new acquisition and resets entry number Rnum3, even after Rum=Rnum3, re-execute S205 step operation, control the route table items that equipment under test study number is the maximum entry number Rnum after updating, and learning outcome is judged。
S209, maximum entry number is set as the routing capacity of equipment under test。
The embodiment of the present invention provides a kind of routing capacity method of testing, by after equipment under test successfully learns the first entry number route table items with second entry number, the first occupation value in conjunction with corresponding instruction internal memory situation determines, with the second occupation value, the maximum entry number estimated, and determining that equipment under test successfully learns this maximum entry number, and judging when corresponding maximum occupation value satisfies condition, it is determined that the routing capacity of equipment under test is this maximum entry number。So, by according to twice success learning outcome, directly determining the maximum entry number estimated, it is to avoid prior art repeatedly performs configuration, verifies the operation carrying out testing。Therefore, the present invention is relative to prior art, it is possible to efficiently perform the test of routing capacity, the problem solving routing capacity test required time cycle length, improves testing efficiency。
The embodiment of the present invention provides a kind of routing capacity test device 01, this device 01 is for implementing a kind of routing capacity method of testing that the embodiment of the present invention provides, can be the control equipment in test system as shown in Figure 1, it can also be a functional module in this equipment, as shown in Figure 4, this device 01 includes:
First preparatory unit 011, for indicating tester to send, to equipment under test, the route table items that number is first entry number, after determining equipment under test learning success, obtains the first occupation value of correspondence instruction equipment under test current memory situation;
Second preparatory unit 012, for indicating tester to send, to equipment under test, the route table items that number is second entry number, after determining equipment under test learning success, obtains the second occupation value of correspondence instruction equipment under test current memory situation;
Determine unit 013, for according to first entry number, second entry number, the first occupation value and the second occupation value, obtaining the first meansigma methods of every route table items committed memory situation of instruction, and combine default internal memory higher limit, it is determined that the maximum entry number estimated;
Acquiring unit 014, for indicating tester to send, to equipment under test, the route table items that number is maximum entry number, after equipment under test learning success is determined in judgement, obtains the maximum occupation value of correspondence instruction equipment under test current memory situation;
Setup unit 015, after determining that when judgement the difference of maximum occupation value and default internal memory higher limit meets preset difference value scope, is set as the routing capacity of equipment under test by maximum entry number。
It should be noted that, in figure, wherein dashed connection line represents to possess annexation between unit, can not also possess direct annexation, such as can not be made directly mutual 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, equipment carry out unifying regulation and control。
Optionally, it is determined that unit 013 can be specifically for:
Obtaining increment occupation value and increment entry number, this increment occupation value is the difference of the second occupation value and the first occupation value, and this increment entry number is the difference of second entry number and first entry number;
According to increment occupation value and increment entry number, obtaining the first meansigma methods, this first meansigma methods is the business of increment occupation value and increment entry number;According to the first meansigma methods and default internal memory higher limit, obtaining maximum entry number, this maximum entry number is the business presetting internal memory higher limit with the first meansigma methods。
Optionally, acquiring unit 014 can also be specifically for:
After instruction tester sends the route table items that number is maximum entry number to equipment under test, when judging to determine that equipment under test learns after unsuccessfully, obtain and first 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, rejudge whether equipment under test can learn the route table items of the maximum entry number after being renewal to number。
Optionally, setup unit 015 can also be specifically for:
After judgement determines that the difference of maximum occupation value and default internal memory higher limit is unsatisfactory for preset difference value scope, obtain the second meansigma methods of every route table items committed memory situation of instruction, this the second meansigma methods is the business of residual quantity occupation value and residual quantity entry number, this residual quantity occupation value is the difference of maximum occupation value and the first occupation value, and this residual quantity entry number is the difference of maximum entry number and first entry number;
According to the second meansigma methods and default internal memory higher limit, obtaining second and reset entry number, second to reset entry number be the business presetting internal memory higher limit with the second meansigma methods for this;
Judge that whether second reset entry number more than or equal to default entry higher limit, if so, then maximum entry number is set as the routing capacity of equipment under test;Or, if it is not, then maximum entry number is updated to second to reset entry number, rejudge whether equipment under test can learn the route table items of the maximum entry number after being renewal to number。
Optionally, as it is shown in figure 5, this device 01 can also include:
Updating block 016, for acquiring unit 014 maximum entry number is updated to first reset entry number before, default entry higher limit is updated to maximum entry number。
The embodiment of the present invention provides a kind of routing capacity test device, by after equipment under test successfully learns the first entry number route table items with second entry number, the first occupation value in conjunction with corresponding instruction internal memory situation determines, with the second occupation value, the maximum entry number estimated, and determining that equipment under test successfully learns this maximum entry number, and judging when corresponding maximum occupation value satisfies condition, it is determined that the routing capacity of equipment under test is this maximum entry number。So, by according to twice success learning outcome, directly determining the maximum entry number estimated, it is to avoid repeatedly perform configuration, verify the operation carrying out testing。Can efficiently perform the test of routing capacity, the problem solving routing capacity test required time cycle length, improve testing efficiency。
In several embodiments provided herein, it should be understood that disclosed system, equipment and method, it is possible to realize by another way。Such as, apparatus embodiments described above is merely schematic, such as, the division of described unit, being only a kind of logic function to divide, actual can have other dividing mode when realizing, for instance multiple unit or assembly can in conjunction with or be desirably integrated into another system, or some features can ignore, or do not perform。
It addition, equipment in each embodiment of the present invention and in system, each functional unit can be integrated in a processing unit, it is also possible to is that the independent physics of unit includes, it is also possible to two or more unit are integrated in a unit。And above-mentioned each unit both can adopt the form of hardware to realize, it would however also be possible to employ hardware adds the form of SFU software functional unit and realizes。
The all or part of step realizing said method embodiment can be completed by the hardware that programmed instruction is relevant, and aforesaid program can be stored in a computer read/write memory medium, and this program upon execution, performs to include the step of said method embodiment;And aforesaid storage medium includes: USB flash disk, portable hard drive, ROM (ReadOnlyMemory, read only memory), RAM (RandomAccessMemory, random access memory), the various media that can store program code such as magnetic disc or CD。
The above; being only the specific embodiment of the present invention, but protection scope of the present invention is not limited thereto, any those familiar with the art is in the technical scope that the invention discloses; change can be readily occurred in or replace, all should be encompassed within protection scope of the present invention。Therefore, protection scope of the present invention should be as the criterion with described scope of the claims。

Claims (11)

1. a routing capacity method of testing, is applied to a kind of test device, and one end of described test device is connected with tester, and the other end is connected with equipment under test, there is communication connection, it is characterised in that including between described tester and described equipment under test:
Described test device indicates described tester to send, to described equipment under test, the route table items that number is first entry number, after determining described equipment under test learning success, obtains correspondence and indicates the first occupation value of described equipment under test current memory situation;
Indicate described tester to send, to described equipment under test, the route table items that number is second entry number, after determining described equipment under test learning success, obtain correspondence and indicate the second occupation value of described equipment under test current memory situation;
According to described first entry number, described second entry number, described first occupation value and described second occupation value, obtain the first meansigma methods of every route table items committed memory situation of instruction, and combine default internal memory higher limit, it is determined that the maximum entry number estimated;
Indicate described tester to send, to described equipment under test, the route table items that number is described maximum entry number, after described equipment under test learning success is determined in judgement, obtain correspondence and indicate the maximum occupation value of described equipment under test current memory situation;
After judgement determines that the difference of described maximum occupation value and described default internal memory higher limit meets preset difference value scope, described maximum entry number is set as the routing capacity of described equipment under test。
2. method according to claim 1, it is characterised in that described determine that the maximum entry number estimated includes:
Obtaining increment occupation value and increment entry number, described increment occupation value is the difference of described second occupation value and described first occupation value, and described increment entry number is the difference of described second entry number and described first entry number;
According to described increment occupation value and described increment entry number, obtaining described first meansigma methods, described first meansigma methods is the business of described increment occupation value and described increment entry number;
According to described first meansigma methods and described default internal memory higher limit, obtaining described maximum entry number, described maximum entry number is the business of described default internal memory higher limit and described first meansigma methods。
3. method according to claim 1 and 2, it is characterised in that after the described tester of described instruction sends the route table items that number is described maximum entry number to described equipment under test, described method also includes:
When judging to determine that described equipment under test learn after unsuccessfully, obtain and first reset entry number, described first reset half that entry number is described maximum entry number and described first entry number difference and described first entry number and;
Described maximum entry number is updated to described first and resets entry number, rejudge whether described equipment under test can learn the route table items of the described maximum entry number after being renewal to number。
4. method according to claim 3, it is characterised in that described method also includes:
After judgement determines that the difference of described maximum occupation value and described default internal memory higher limit is unsatisfactory for preset difference value scope, obtain the second meansigma methods of every route table items committed memory situation of instruction, described second meansigma methods is the business of residual quantity occupation value and residual quantity entry number, described residual quantity occupation value is the difference of described maximum occupation value and described first occupation value, and described residual quantity entry number is the difference of described maximum entry number and described first entry number;
According to described second meansigma methods and described default internal memory higher limit, obtaining second and reset entry number, described second resets the business that entry number is described default internal memory higher limit and described second meansigma methods;
Judge that whether described second reset entry number more than or equal to default entry higher limit, if so, then described maximum entry number is set as the routing capacity of described equipment under test;Or, if it is not, then described maximum entry number is updated to described second to reset entry number, rejudge whether described equipment under test can learn the route table items of the described maximum entry number after being renewal to number。
5. method according to claim 4, it is characterised in that described described maximum entry number is updated to described first reset entry number before, described method also includes:
Described default entry higher limit is updated to described maximum entry number。
6. a routing capacity test device, one end of described test device is connected with tester, and the other end is connected with equipment under test, there is communication connection, it is characterised in that including between described tester and described equipment under test:
First preparatory unit, for indicating described tester to send, to described equipment under test, the route table items that number is first entry number, after determining described equipment under test learning success, obtains correspondence and indicates the first occupation value of described equipment under test current memory situation;
Second preparatory unit, for indicating described tester to send, to described equipment under test, the route table items that number is second entry number, after determining described equipment under test learning success, obtains correspondence and indicates the second occupation value of described equipment under test current memory situation;
Determine unit, for according to described first entry number, described second entry number, described first occupation value and described second occupation value, obtain the first meansigma methods of every route table items committed memory situation of instruction, and combine default internal memory higher limit, it is determined that the maximum entry number estimated;
Acquiring unit, for indicating described tester to send, to described equipment under test, the route table items that number is described maximum entry number, after described equipment under test learning success is determined in judgement, obtains correspondence and indicates the maximum occupation value of described equipment under test current memory situation;
Setup unit, after determining that when judgement the difference of described maximum occupation value and described default internal memory higher limit meets preset difference value scope, is set as the routing capacity of described equipment under test by described maximum entry number。
7. device according to claim 6, it is characterised in that described determine unit for:
Obtaining increment occupation value and increment entry number, described increment occupation value is the difference of described second occupation value and described first occupation value, and described increment entry number is the difference of described second entry number and described first entry number;
According to described increment occupation value and described increment entry number, obtaining described first meansigma methods, described first meansigma methods is the business of described increment occupation value and described increment entry number;
According to described first meansigma methods and described default internal memory higher limit, obtaining described maximum entry number, described maximum entry number is the business of described default internal memory higher limit and described first meansigma methods。
8. the device according to claim 6 or 7, it is characterised in that described acquiring unit is additionally operable to:
After the described tester of described instruction sends the route table items that number is described maximum entry number to described equipment under test, when judging to determine that described equipment under test learns after unsuccessfully, obtain and first reset entry number, described first reset entry number be described maximum entry number with the half of described first entry number difference and described first entry number and;
Described maximum entry number is updated to described first and resets entry number, rejudge whether described equipment under test can learn the route table items of the described maximum entry number after being renewal to number。
9. device according to claim 8, it is characterised in that described setup unit is additionally operable to:
After judgement determines that the difference of described maximum occupation value and described default internal memory higher limit is unsatisfactory for preset difference value scope, obtain the second meansigma methods of every route table items committed memory situation of instruction, described second meansigma methods is the business of residual quantity occupation value and residual quantity entry number, described residual quantity occupation value is the difference of described maximum occupation value and described first occupation value, and described residual quantity entry number is the difference of described maximum entry number and described first entry number;
According to described second meansigma methods and described default internal memory higher limit, obtaining second and reset entry number, described second resets the business that entry number is described default internal memory higher limit and described second meansigma methods;
Judge that whether described second reset entry number more than or equal to default entry higher limit, if so, then described maximum entry number is set as the routing capacity of described equipment under test;Or, if it is not, then described maximum entry number is updated to described second to reset entry number, rejudge whether described equipment under test can learn the route table items of the described maximum entry number after being renewal to number。
10. device according to claim 9, it is characterised in that also include:
Updating block, for described acquiring unit described maximum entry number is updated to described first reset entry number before, described default entry higher limit is updated to described maximum entry number。
11. a routing capacity test system, it is characterised in that including: the test device as described in claim 6 to 10 any one claim, and tester, equipment under test;
One end of described test device is connected with described tester, and the other end is connected with described equipment under test, there is communication connection between described tester and described 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 true CN105703968A (en) 2016-06-22
CN105703968B 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)

Cited By (1)

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

Citations (5)

* 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
US20080313701A1 (en) * 2007-06-14 2008-12-18 Choi Young Han System and method for managing network by value-based estimation
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

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080313701A1 (en) * 2007-06-14 2008-12-18 Choi Young Han System and method for managing network by value-based estimation
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异常流量生成器的设计与实现", 《长沙民政职业技术学院学报》 *

Cited By (2)

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

Also Published As

Publication number Publication date
CN105703968B (en) 2018-10-12

Similar Documents

Publication Publication Date Title
RU2653926C2 (en) Control apparatus, components and mobile service apparatus for hvac system
CN105580313B (en) Method and apparatus for controlling device for smart home service
RU2013129987A (en) COMMUNICATION SYSTEM, CONTROL DEVICE, METHOD AND COMMUNICATION PROGRAM
CN103581161A (en) Zero setting system and method for network device
US10938910B2 (en) Discovering capabilities of entities in an internet of things setting
CN102665297B (en) Communication device and system as well as method of wireless cloud sensor network
US9191887B2 (en) Method for providing relay network, mobile router and network relay system using the same
JP6473651B2 (en) Air conditioning system, smart device used therefor, and data communication method
CN104601493A (en) Bandwidth adjustment method and system and intelligent pipe platform
CN105703968A (en) Routing capacity testing method, testing device and testing system
CN105812413A (en) Communication method and device
CN104754749A (en) Communication control method and central control device
CN107101342B (en) A kind of air conditioning control method, apparatus and system
CN110519258A (en) Equipment accesses account control method, control device and readable storage medium storing program for executing
CN109685775A (en) The dirty stifled recognition methods of strainer, device, smart machine and readable storage medium storing program for executing
CN107800810A (en) A kind of Server remote control method and system
JP2009206863A (en) Layer 2 switch system and layer 2 switch
JP6589516B2 (en) Information processing device
KR20060119298A (en) Air-conditioner control system and its control method
JP2007036698A5 (en)
US20180278433A1 (en) Installation of building automation devices
CN110445784A (en) The display methods and device of operation data, energy resource system
CN102546359B (en) Method for detecting path maximum transmission unit and router for detecting same
CN105376168B (en) A kind of method and apparatus of load balancing
US11726766B2 (en) Method and apparatus for maintaining software of a control unit for an industrial control system

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