CN106452964A - Network equipment interface cache testing system and method - Google Patents

Network equipment interface cache testing system and method Download PDF

Info

Publication number
CN106452964A
CN106452964A CN201610926611.8A CN201610926611A CN106452964A CN 106452964 A CN106452964 A CN 106452964A CN 201610926611 A CN201610926611 A CN 201610926611A CN 106452964 A CN106452964 A CN 106452964A
Authority
CN
China
Prior art keywords
tested
sending port
port
sending
network
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201610926611.8A
Other languages
Chinese (zh)
Inventor
刘焕臣
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Chengdu Guangda New Network Technology Co Ltd
Original Assignee
Chengdu Guangda New Network 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 Chengdu Guangda New Network Technology Co Ltd filed Critical Chengdu Guangda New Network Technology Co Ltd
Priority to CN201610926611.8A priority Critical patent/CN106452964A/en
Publication of CN106452964A publication Critical patent/CN106452964A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/50Testing arrangements

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Environmental & Geological Engineering (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The invention provides a network equipment interface cache testing system and method. The system comprises tested network equipment, a network tester connected with the tested equipment and a cache computation module. Two transmitting ports of the network tester are selected as the first transmitting port and the second transmitting port respectively, one receiving port is selected as the first receiving port, a certain transmitting port of the tested network equipment is selected as the tested transmitting port, the first transmitting port and the second transmitting port are connected with two different receiving ports of the network tester respectively, and the first receiving port is connected with the tested transmitting port of the network tester. No complex testing program or expensive tester needs to be adopted, only simple packet transmitting and receiving comparison is needed, the interface cache capability of the network equipment can be obtained through computation, and according to the technical scheme, the network equipment interface cache testing system has the universality and can be used for various network equipment cache tests.

Description

A kind of network device interface cache test system and its method of testing
Technical field
The invention belongs to data communication field, more particularly to a kind of network device interface cache test system and its test Method.
Background technology
The progressively development for working with broadcasting and TV " integration of three networks " and the continuous progress of technology, Network covers electricity Depending on each business such as, broadband, interactions, with the increase of the complexity of business, higher requirement there has also been to the ability of the network equipment, The process of such as network traffics burst, as data flow is affected by various factors, may through the flow of network device interface There is the situation of burst, such as gigabit networking interface, averagely by flow probably in 200M, and burst flow can exceed that 1G, this Sample has certain requirement to network device processing burst capability, and how disposal ability of the network apparatus test to the message that happens suddenly There is no a kind of general method of testing.
Content of the invention
For solving the above problems, the invention provides a kind of network device interface cache test system and its method of testing.
The test system includes the network tester, caching computing unit that the tested network equipment is connected with equipment under test.
The tested network equipment has at least two receiving ports and at least one sending port, the network tester With at least two sending ports and at least one receiving port;The two of which sending port of network tester is selected to make respectively For the first sending port, the second sending port, it is the first receiving port to select one of receiving port;Select tested network One in certain sending port of equipment is used as tested sending port;First sending port, the second sending port are respectively Different from the two of network tester receiving port connections, and the tested sending port of the first receiving port and network tester Connection.
The network tester is used for the caching capabilities of the tested sending port to the tested network equipment to be tested;Its In, the first sending port, the second sending port send the flow of fixing background traffic, predefined size, the first receiving terminal respectively Mouth is for receiving the flow of tested sending port transmission, and counts its message number for sending, and is calculated according to statistical result tested The caching capabilities of sending port.
Caching computing module is used for flow, the first reception for sending according to the second sending port based on according to the first sending port The statistical result of port calculates the caching capabilities of tested sending port.
The method of testing of above-mentioned network device interface cache test system comprises the steps:
Step one:One in certain sending port of the tested network equipment is preselected as tested sending port, will be tested Network tester is attached with network tester.
Step 2:First sending port sends fixing background traffic, and uninterrupted is that Y, the second sending port sends in advance The flow of sizing, uninterrupted is Z.
Step 3:Tested sending port is to the first receiving port transmitted traffic of network tester, and uninterrupted is N, institute The interface bandwidth for stating the first receiving port is L.
Step 4:First receiving port counts the message number that tested sending port sends, with the first sending port, second The flow summation that sending port sends is contrasted, and carries out associative operation according to comparing result:If the stream of tested sending port The total flow that amount is received more than the tested network equipment, then be judged as packet loss, and the message for reducing the second sending port sends number N, return to step one;If if the flow of tested sending port is judged equal to the total flow that the tested network equipment is received For congestion, and execution step five.
Step 5:Caching computing unit records the transmission message number N of current second sending port, calculates tested transmitting terminal The caching capabilities of mouth, calculation process comprises the steps:
Step 5.1:Flow K during tested transmitting terminal congestion, K=Y+Z is calculated, unit is bps.
Step 5.2:Calculate the number J that message is sent in the second sending port unit interval, unit is number.
Step 5.3:Maximum under calculated flow rate K effectively congestion time Time, Time=N/J, unit is s.
Step 5.4:When calculating tested transmitting terminal congestion more than the first receiving port bandwidth uninterrupted C, C=K-L, single Position is bps.
Step 5.5:The caching capabilities H of the first sending port is calculated, computing formula is:H=(K-L)*Time}/8, Unit bytes, or H=(K-L)* Time, unit bits.
Preferably, also include step 6:Execution step one is to step 5 repeatedly, until traveling through all of the tested network equipment The sending port of species.
Further, in step 5.2, the unit of J=Z/ (8*X*1000), J and Z is bps, and the unit interval is 1ms.
Compared with prior art, the invention has the beneficial effects as follows:
The present invention need not be using complicated test program or the test instrunment of costliness, it is only necessary to simply give out a contract for a project and packet receiving pair Than by calculating the interface caching capabilities that can draw the network equipment, the technical scheme has versatility, can be used for nets at different levels The test of network equipment caching.And, one of them for only choosing a kind of transmitting and receiving terminal mouth in testing every time is tested, and is become Alias species only needs to when being tested change the port being connected with the first receiving port, very convenient.
Description of the drawings
Fig. 1 is the connection diagram of the tested network equipment and network tester in system of the present invention.
Specific embodiment
The network device interface cache test system that the present invention is provided includes what the tested network equipment was connected with equipment under test Network tester, caching computing module.Network tester can adopt product of the prior art, belong to prior art.Network Equipment can be hub, switch, bridge, router, gateway, EPON, GPON, EOC etc..
The network tester has at least two sending ports and at least one receiving port;Select network tester Two of which sending port selects one of receiving port for the respectively as the first sending port, the second sending port One receiving port;One in certain sending port of the tested network equipment is selected as tested sending port.As shown in figure 1, The receiving port connection different from the two of network tester respectively of first sending port, the second sending port, and first Receiving port is connected with the tested sending port of network tester.
The tested network equipment has at least two receiving ports and at least one sending port.In general, network Equipment can all have several sending port, and the caching capabilities of every kind of sending port should be consistent, so the application is in every kind of transmission Only choose one in port to be tested.
The network tester is used for the caching capabilities of the tested sending port to the tested network equipment to be tested.Its In, the first sending port, the second sending port send the background traffic of lasting fixed-bandwidth, the stream of the predefined size of burst respectively Amount, the first receiving port is used for receiving the flow of tested sending port transmission, and counts its message number for sending, according to statistics As a result the caching capabilities of tested sending port are calculated.
It is to be appreciated that as the test of caching capabilities must be aptitude test when congestion occurs in the first receiving port port, Therefore, the size for arranging background traffic should be close to the bandwidth of the first receiving port, and the flow of the second sending port is just not required to Too big, both flows add up the bandwidth being just easier more than the first receiving port, are relatively easy to congestion occur.
Caching computing module is used for flow, the first reception for sending according to the second sending port based on according to the first sending port The statistical result of port calculates the caching capabilities of tested sending port.Caching computing module can be operate in soft on computer Part module.
Understand for convenience, below the method for testing of above-mentioned network device interface cache test system is illustrated, bag Include following steps:
Step one:One in certain sending port of the tested network equipment is preselected as tested sending port.
Step 2:First sending port sends fixing background traffic, and uninterrupted is that Y, the second sending port sends in advance The flow of sizing, uninterrupted is Z.
Step 3:Tested sending port is to the first receiving port transmitted traffic of network tester, and uninterrupted is N, institute The interface bandwidth for stating the first receiving port is L.
Step 4:First receiving port counts the message number that tested sending port sends, with the first sending port, second The flow summation that sending port sends is contrasted, and carries out associative operation according to comparing result:If the stream of tested sending port The total flow that amount is received more than the tested network equipment, then be judged as packet loss, and the message for reducing the second sending port sends number N, return to step one;If if the flow of tested sending port is judged equal to the total flow that the tested network equipment is received For congestion, and execution step five.
Step 5:The transmission message number N of current second sending port is recorded, calculates the caching energy of tested sending port Power, calculation process comprises the steps:
Step 5.1:Flow K during tested transmitting terminal congestion, K=Y+Z is calculated, unit is bps.
Step 5.2:Calculate the number J that message is sent in the second sending port unit interval, unit is number.
Step 5.3:Maximum under calculated flow rate K effectively congestion time Time, Time=N/J, unit is s.
Step 5.4:When calculating tested transmitting terminal congestion more than the first receiving port bandwidth uninterrupted C, C=K-L, single Position is bps.
Step 5.5:The caching capabilities H of the first sending port is calculated, computing formula is:H=(K-L)*Time}/8, Unit bytes, or H=(K-L)* Time, unit bits.
Preferably, also include step 6:Execution step one is to step 5 repeatedly, until traveling through all of the tested network equipment The sending port of species.
With concrete numerical value citing, computational methods are illustrated below.
It is background traffic of 1358 bytes, the uninterrupted for 200M Bytes that first sending port sends solid byte-sized, Flow is Y bps;The size of the second sending port transmitted traffic is 1358 bytes, and transmission rate is 1Gbps, sends message number For 10000, transmission rate is represented with Z, unit bps;It is N number of that single sends message number.
The a width of L of the band of the first receiving port, unit be(L is usually 10M/100M/1000Mbps).During interface congestion The flow of interface is transmitted traffic summation, the i.e. 1.2Gbps of the first sending port of tester and the second sending port, and second sends If the number that ms sends message is J=1Gbps/ (8*1358*1000) in the unit interval of port, maximum effectively congestion time is T, interface largest buffered ability for bits number is(1.2 Gbps -L)* Time, largest buffered ability bytes be(1.2Gbps -L)*Time}/8.
Can obtain the caching capabilities of outgoing interface by the present invention, the main message time of the caching capabilities of interface, bits, Tri- kinds of modes of Bytes, different byte, in the case of different flows, the network equipment can adopt different cache way.

Claims (4)

1. a kind of network device interface cache test system, it is characterised in that be connected with equipment under test including the tested network equipment Network tester, caching computing module;
The tested network equipment has at least two receiving ports and at least one sending port, and the network tester has At least two sending ports and at least one receiving port;The two of which sending port of network tester is selected respectively as the One sending port, the second sending port, it is the first receiving port to select one of receiving port;Select the tested network equipment One in certain sending port is used as tested sending port;First sending port, the second sending port respectively with network Two different receiving ports of tester connect, and the first receiving port is connected with the tested sending port of network tester;
The network tester is used for the caching capabilities of the tested sending port to the tested network equipment to be tested;Wherein, One sending port, the second sending port send the background traffic of lasting fixed-bandwidth, the flow of the predefined size of burst respectively, First receiving port is used for receiving the flow of tested sending port transmission, and counts its message number for sending;
Caching computing module is used for according to the flow of the second sending port transmission, the first receiving port based on according to the first sending port Statistical result calculate the caching capabilities of tested sending port.
2. the method for work of network device interface cache test system as claimed in claim 1, it is characterised in that including as follows Step:
Step one:One in certain sending port of the tested network equipment is preselected as tested sending port, will be tested Network tester is attached with network tester;
Step 2:First sending port sends fixing background traffic, and uninterrupted is that the transmission of Y, the second sending port is predetermined big Little flow, uninterrupted is Z;
Step 3:Tested sending port is to the first receiving port transmitted traffic of network tester, and uninterrupted is N, described the The interface bandwidth of one receiving port is L;
Step 4:First receiving port counts the message number that tested sending port sends, the first sending port, the second transmitting terminal The flow summation that mouth sends is contrasted, and carries out associative operation according to comparing result:If the flow of tested sending port is more than The total flow that the tested network equipment is received, then be judged as packet loss, and the message for reducing the second sending port sends number N, returns Step one;If if the flow of tested sending port is judged as congestion equal to the total flow that the tested network equipment is received, And execution step five;
Step 5:Caching computing module and the transmission message number N for recording current second sending port, calculate tested sending port Caching capabilities, calculation process comprises the steps:
Step 5.1:Flow K during tested transmitting terminal congestion, K=Y+Z is calculated, unit is bps;
Step 5.2:Calculate the number J that message is sent in the second sending port unit interval, unit is number;
Step 5.3:Maximum under calculated flow rate K effectively congestion time Time, Time=N/J, unit is s;
Step 5.4:When calculating tested transmitting terminal congestion more than the first receiving port bandwidth uninterrupted C, C=K-L, unit is bps;
Step 5.5:The caching capabilities H of the first sending port is calculated, computing formula is:H=(K-L)* Time }/8, unit Bytes, or H=(K-L)* Time, unit bits.
3. the method for testing of network device interface cache test system as claimed in claim 2, it is characterised in that also include step Rapid six:Execution step one is to step 5, the sending port of all kinds until traveling through the tested network equipment repeatedly.
4. the method for testing of network device interface cache test system as claimed in claim 2, it is characterised in that step 5.2 In, J=Z/ (8*X*1000), the wherein unit interval is with 1ms as measurement unit.
CN201610926611.8A 2016-10-31 2016-10-31 Network equipment interface cache testing system and method Pending CN106452964A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610926611.8A CN106452964A (en) 2016-10-31 2016-10-31 Network equipment interface cache testing system and method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610926611.8A CN106452964A (en) 2016-10-31 2016-10-31 Network equipment interface cache testing system and method

Publications (1)

Publication Number Publication Date
CN106452964A true CN106452964A (en) 2017-02-22

Family

ID=58176901

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610926611.8A Pending CN106452964A (en) 2016-10-31 2016-10-31 Network equipment interface cache testing system and method

Country Status (1)

Country Link
CN (1) CN106452964A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109962824A (en) * 2017-12-26 2019-07-02 新汉股份有限公司 High-speed network appliance and its self test method
CN111541583A (en) * 2020-04-20 2020-08-14 杭州迪普信息技术有限公司 System, method and device for testing fragment message cache
CN115297070A (en) * 2022-07-15 2022-11-04 中国航空无线电电子研究所 Multi-metadata-excited ARINC664 switch cache overflow test method

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1917452A (en) * 2005-08-19 2007-02-21 上海亿人通信终端有限公司 Method for testing forwarding performance of Ethernet exchange, and method for configuring network
CN101094111A (en) * 2007-07-18 2007-12-26 中兴通讯股份有限公司 Method and device for carrying out testing whole set of network device
CN103139012A (en) * 2012-12-03 2013-06-05 深圳市共进电子股份有限公司 Ethernet port test method and network devices
CN105323122A (en) * 2015-12-04 2016-02-10 北京博维亚讯技术有限公司 Device for testing throughput capacity of network equipment based on switchboard and test method

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1917452A (en) * 2005-08-19 2007-02-21 上海亿人通信终端有限公司 Method for testing forwarding performance of Ethernet exchange, and method for configuring network
CN101094111A (en) * 2007-07-18 2007-12-26 中兴通讯股份有限公司 Method and device for carrying out testing whole set of network device
CN103139012A (en) * 2012-12-03 2013-06-05 深圳市共进电子股份有限公司 Ethernet port test method and network devices
CN105323122A (en) * 2015-12-04 2016-02-10 北京博维亚讯技术有限公司 Device for testing throughput capacity of network equipment based on switchboard and test method

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109962824A (en) * 2017-12-26 2019-07-02 新汉股份有限公司 High-speed network appliance and its self test method
CN111541583A (en) * 2020-04-20 2020-08-14 杭州迪普信息技术有限公司 System, method and device for testing fragment message cache
CN115297070A (en) * 2022-07-15 2022-11-04 中国航空无线电电子研究所 Multi-metadata-excited ARINC664 switch cache overflow test method
CN115297070B (en) * 2022-07-15 2024-02-27 中国航空无线电电子研究所 Multi-metadata-excited ARINC664 switch cache overflow test method

Similar Documents

Publication Publication Date Title
EP3304853B1 (en) Detection of malware and malicious applications
KR100402979B1 (en) Improving system preformance in a data network through queue management based on ingress rate monitoring
Yin et al. A dynamic rate control mechanism for source coded traffic in a fast packet network
CN102868576B (en) Method for measuring downlink packet loss rate of access link of broadband network user
CN105245399B (en) The measure of bottleneck link in a kind of end to end network communication path
EP2332289B1 (en) Method, arrangement and system for monitoring a data path in a communication network
CN102223263A (en) Method and device for monitoring packet loss rate based on an FPGA (Field Programmable Gate Array)
WO2012147909A1 (en) Network device, communication system, method for detecting abnormal traffic, and program
CN105634865A (en) Method and system for obtaining bandwidth
CN106452964A (en) Network equipment interface cache testing system and method
US11962505B1 (en) Distributed dynamic load balancing in network systems
CN105099938A (en) Determining method and device of congestion window in network
CN107689919A (en) The dynamic adjustment weight fuzzy routing method of SDN
Hong et al. Dynamic threshold for DDoS mitigation in SDN environment
US20030067878A1 (en) Method and system for traffic management in packet networks using random early marking
CN107222403A (en) A kind of data transmission method, system and electronic equipment
CN106658644A (en) Communication network routing method and device
CN106656665A (en) Local area network speed testing method and device
CN106230654B (en) Method for rapidly realizing maximum throughput rate of RFC2544 under background flow
CN106302016A (en) The method and system of low discharge quick obtaining network physical bandwidth
Kfoury et al. Dynamic Router's Buffer Sizing using Passive Measurements and P4 Programmable Switches
Carlsson et al. Delay performance in IP routers
JP2008079138A (en) Communication monitoring system, flow collection apparatus, analysis manager apparatus, and program
RU2728948C1 (en) Method for early detection of occurrence moment of poisson's teletraffic overload
RU2687040C1 (en) Method and apparatus for monitoring a backbone network

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
AD01 Patent right deemed abandoned

Effective date of abandoning: 20200228

AD01 Patent right deemed abandoned