CN112737892B - Switch performance test method and system - Google Patents

Switch performance test method and system Download PDF

Info

Publication number
CN112737892B
CN112737892B CN202011607008.6A CN202011607008A CN112737892B CN 112737892 B CN112737892 B CN 112737892B CN 202011607008 A CN202011607008 A CN 202011607008A CN 112737892 B CN112737892 B CN 112737892B
Authority
CN
China
Prior art keywords
switch
tested
data stream
port
data
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
CN202011607008.6A
Other languages
Chinese (zh)
Other versions
CN112737892A (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.)
China Academy of Information and Communications Technology CAICT
Original Assignee
China Academy of Information and Communications Technology CAICT
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 China Academy of Information and Communications Technology CAICT filed Critical China Academy of Information and Communications Technology CAICT
Priority to CN202011607008.6A priority Critical patent/CN112737892B/en
Publication of CN112737892A publication Critical patent/CN112737892A/en
Application granted granted Critical
Publication of CN112737892B publication Critical patent/CN112737892B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

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
    • H04L49/00Packet switching elements
    • H04L49/55Prevention, detection or correction of errors
    • H04L49/555Error detection

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 application provides a method and a system for testing switch performance, wherein the method comprises the following steps: the traffic generation equipment configures a static MAC table entry to the tested switch, wherein the static MAC table entry comprises a corresponding relation between a first MAC address and a port identifier of a first port; the traffic generating equipment generates a data stream with a target MAC address as the first MAC address and sends the data stream to the tested switch; when the tested switch receives the data stream, forwarding the data stream; the data receiving equipment receives the data stream sent by the switch to be tested through a second port; if the data stream is not received, determining that the data forwarding capability of the tested switch is normal; otherwise, determining that the data forwarding capability of the tested switch is abnormal. The method can simply and accurately test the basic performance of the switch.

Description

Switch performance test method and system
Technical Field
The invention relates to the technical field of Internet of things, in particular to a method and a device for testing switch performance.
Background
With the deployment of 5G, the system gradually enters the era of interconnection of everything and explosive growth of data. More and more services put higher requirements on time delay and reliability, and edge data centers close to users are produced. The edge data center provides resources such as storage, calculation, network and the like at the edge side of the network close to the user so as to reduce bandwidth and delay loss brought by network transmission and multistage forwarding.
With the development of edge data centers, ethernet switches are becoming more and more important in edge data centers, and an ethernet switch is a network device that implements data transmission and switching based on ethernet, and has a structural form that each port is directly connected to the device and works in a full-duplex manner, and the switch can simultaneously connect multiple pairs of ports, so that each pair of hosts that communicate with each other can independently transmit data without collision. The network communication capacity of the edge data center is directly affected by the quality of the Ethernet switch, so that it is important to set a corresponding testing method of the edge data center Ethernet switch.
With the development of edge computing, the ports of edge data center switches will grow rapidly. In order to guarantee the increase of the ports of the edge data center switch, the working performance of each switch must be effectively guaranteed.
It is important how to test the basic performance of the switch, such as the forwarding capability of the data flow, whether it is normal or not.
Disclosure of Invention
In view of this, the present application provides a method and a system for testing switch performance, which can simply and accurately test the basic performance of the switch.
In order to solve the technical problem, the technical scheme of the application is realized as follows:
In one embodiment, a switch performance testing method is provided, the method comprising:
the traffic generation equipment configures a static MAC table entry to the tested switch, wherein the static MAC table entry comprises a corresponding relation between a first MAC address and a port identifier of a first port;
the traffic generating equipment generates a data stream with a target MAC address as the first MAC address and sends the data stream to the tested switch;
when the tested switch receives the data stream, forwarding the data stream;
the data receiving equipment receives the data stream sent by the switch to be tested through a second port; if the data stream is not received, determining that the data forwarding capability of the tested switch is normal; otherwise, determining that the data forwarding capability of the tested switch is abnormal; wherein the first port and the second port are different ports.
In another embodiment, a switch performance testing system is provided, the system comprising: the system comprises a flow generating device, a tested switch and a flow receiving device;
the flow generating equipment configures a static MAC table entry to the tested switch; generating a data stream with a target MAC address as the first MAC address, and sending the data stream to the tested switch; wherein, the static MAC table item comprises a corresponding relation between a first MAC address and a port identifier of a first port;
The detected switch forwards the data stream when receiving the data stream sent by the traffic generating equipment;
the data receiving device receives the data stream sent by the switch under test through a second port; if the data stream is not received, determining that the data forwarding capability of the tested switch is normal; otherwise, determining that the data forwarding capability of the tested switch is abnormal; wherein the first port and the second port are different ports.
According to the technical scheme, the built test system is used for testing whether the tested switch can forward the data stream according to the configured MAC table entry or not on the premise of configuring the static MAC table entry. The scheme can simply and accurately test the basic performance of the switch.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without inventive labor.
FIG. 1 is a schematic diagram of a system for testing performance of a switch in an embodiment of the present application;
fig. 2 is a schematic diagram illustrating a performance testing process of the switch according to an embodiment of the present application;
fig. 3 is a schematic diagram illustrating a performance testing process of the switch according to the second embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments obtained by a person of ordinary skill in the art based on the embodiments in the present application without making any creative effort belong to the protection scope of the present application.
The terms "first," "second," "third," "fourth," and the like in the description and in the claims, as well as in the drawings, if any, are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the invention described herein are, for example, capable of operation in sequences other than those illustrated or otherwise described herein. Furthermore, the terms "comprising" and "having," as well as any variations thereof, are intended to cover non-exclusive inclusions. For example, a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements explicitly listed, but may include other steps or elements not explicitly listed or inherent to such process, method, article, or apparatus.
The technical solution of the present invention will be described in detail with specific examples. Several of the following embodiments may be combined with each other and some details of the same or similar concepts or processes may not be repeated in some embodiments.
The embodiment of the application provides a switch performance testing method which is applied to a switch performance testing system. According to the embodiment of the application, the established test system is used for testing whether the tested switch can forward the data stream according to the configured MAC table entry on the premise of configuring the static Media Access Control (MAC) table entry; and testing whether the tested switch can broadcast and send the data stream or not on the premise that the static MAC table entry is not configured. The scheme can simply and accurately test the basic performance of the switch.
In the embodiment of the application, a test system needs to be set up before the performance test of the switch is carried out. The following equipment is required for building a test system: the built test system of the switch to be tested, the traffic generation device and the traffic receiving device is shown in fig. 1, and fig. 1 is a schematic diagram of a switch performance test system in the embodiment of the application.
The flow generating equipment is physically connected with the tested switch, and the tested switch is respectively physically connected with the flow generating equipment through the first port and the third port;
And the detected switch is physically connected with the traffic receiving equipment through the second port.
The third port, the first port, and the second port are all different ports.
The flow generating equipment can configure and delete the static MAC table entry of the tested switch, can check whether the configuration and deletion of the static MAC table entry are successful, can generate a data stream of a specified destination MAC address, and can send the data stream to the tested switch through physical connection;
such as a computer.
The detected exchanger works in a data link layer, receives a unicast data stream in work, searches a destination MAC address of the data stream in a local MAC address table entry, and directly transmits a message in a unicast mode through a port in the MAC address table entry if the destination MAC address of the data stream exists in the local MAC address table entry; if not, the data stream is broadcast, i.e. forwarded through all local ports.
The flow receiving device can observe whether the data flow is received or not and the destination MAC address of the data flow, and is used for verifying whether the data flow is forwarded on the switch according to the provisions of the MAC protocol or not.
Such as a protocol analyzer with a display screen.
The process for realizing the performance test of the switch is given based on the performance test system of the switch as follows:
Before testing, no MAC table item exists on the tested exchanger, if yes, all MAC table items are cleared.
The flow generating equipment configures a static MAC table entry to the detected switch; generating a data stream with a target MAC address as the first MAC address, and sending the data stream to the tested switch; wherein, the static MAC table item comprises a corresponding relation between a first MAC address and a port identifier of a first port;
the tested switch forwards the data stream when receiving the data stream sent by the traffic generating equipment;
the data receiving equipment receives the data stream sent by the switch to be tested through a second port; if the data stream is not received, determining that the data forwarding capability of the tested switch is normal; otherwise, determining that the data forwarding capability of the tested switch is abnormal; wherein the first port and the second port are different ports.
Wherein
The flow generating device further performs configuration check on the switch after configuring the static MAC table entry to the switch to be tested, and if it is determined that the static MAC address table entry is configured in the switch to be tested, it is determined that the configuration of the static MAC address is completed, and the generated data stream is sent to the switch to be tested; otherwise, determining that the configuration of the static MAC table entry is not finished, and finishing the test.
Wherein, the first and the second end of the pipe are connected with each other,
the flow generating device further deletes the static MAC table entry from the tested switch, generates a data stream with a target MAC address as the first MAC address, and sends the data stream to the tested switch;
the detected exchanger further receives the data flow and forwards the data flow;
the data receiving device further receives the data stream sent by the switch under test through the second port; if the data stream is received, determining that the data forwarding capability of the detected switch is normal; otherwise, determining that the data forwarding capability of the tested switch is abnormal.
Wherein the content of the first and second substances,
the traffic generation device further performs configuration check on the switch after deleting the static MAC entry from the switch to be tested, and if it is determined that the static MAC entry is not configured in the switch to be tested, determines that the static MAC entry is deleted, and sends the generated data stream to the switch to be tested; otherwise, determining that the static MAC table entry is not deleted, and ending the test.
The following describes in detail a process for implementing switch performance testing in the embodiment of the present application, with reference to the accompanying drawings:
Example one
Referring to fig. 2, fig. 2 is a schematic diagram of a performance testing process of a switch according to a first embodiment of the present application. The method comprises the following specific steps:
step 201, the traffic generation device configures a static MAC entry to the switch under test.
Wherein, the static MAC table entry comprises a corresponding relation between a first MAC address and a port identifier of a first port.
The first port is a next hop port of the first MAC address.
After the flow generating equipment configures a static MAC table entry to a tested switch, the flow generating equipment performs configuration check on the switch, and if the static MAC address table entry is configured in the tested switch, the configuration of the static MAC address is determined to be completed; step 202 is executed; otherwise, determining that the configuration of the static MAC table entry is not finished, and finishing the test.
The end of the test refers to the test after the static MAC table entry is currently configured, and if the test is continued, the static MAC table entry needs to be configured again for testing.
Step 202, the traffic generating device generates a data stream with a destination MAC address as the first MAC address, and sends the data stream to the tested switch.
And step 203, when the tested switch receives the data stream, forwarding the data stream.
If the basic performance of the tested switch is normal, the MAC table entry of the data flow is searched, and when the corresponding MAC table entry is searched, the MAC table entry is forwarded through the port in the MAC table entry.
And step 204, the data receiving device receives the data stream sent by the switch under test through a second port.
Step 205, if the data stream is not received, determining that the data forwarding capability of the tested switch is normal. The flow is ended.
Step 206, if the data stream is received, determining that the data forwarding capability of the tested switch is abnormal.
According to the embodiment of the application, the established test system is used for testing whether the tested switch can forward the data stream according to the configured MAC table entry on the premise of configuring the static MAC table entry. The scheme can simply and accurately test the basic performance of the switch.
Example two
Referring to fig. 3, fig. 3 is a schematic diagram of a performance testing process of the switch in the second embodiment of the present application. The method comprises the following specific steps:
step 301, the traffic generation device deletes the static MAC entry from the switch under test.
In this step, after the traffic generation device deletes the static MAC entry from the switch under test, the traffic generation device performs configuration check on the switch, and if it is determined that the static MAC entry is not configured in the switch under test, it is determined that the static MAC entry is deleted, and step 302 is performed; otherwise, determining that the static MAC table entry is not deleted, and ending the test.
Here, ending the test refers to a test after deleting the configured static MAC entry, and if the test is continued, the test needs to be performed again by deleting the static MAC entry.
Step 302, the traffic generating device generates a data stream whose destination MAC address is the first MAC address, and sends the data stream to the detected switch.
And step 303, when the detected switch receives the data stream, forwarding the data stream.
If the basic performance of the tested switch is normal, the MAC table entry of the data stream is searched, and when the corresponding MAC table entry is not searched, the data stream is broadcasted and sent through all local ports.
And step 304, the data receiving device receives the data stream sent by the switch under test through the second port.
Step 305, if the data stream is received, determining that the data forwarding capability of the tested switch is normal. The flow is ended.
Step 306, if the data stream is not received, determining that the data forwarding capability of the tested switch is abnormal.
According to the embodiment of the application, the established test system is used for testing whether the tested switch can broadcast the data stream or not on the premise of not configuring the static MAC table entry. The scheme can simply and accurately test the basic performance of the switch.
In this embodiment, the broadcast capability test is performed by deleting the configured static MAC entry, and in practice, the capability test may be performed before configuring the static MAC address entry.
The above description is only for the purpose of illustrating the preferred embodiments of the present invention and is not to be construed as limiting the invention, and any modifications, equivalents, improvements and the like made within the spirit and principle of the present invention should be included in the scope of the present invention.

Claims (7)

1. A method for testing switch performance, the method comprising:
the traffic generation equipment configures a static Media Access Control (MAC) table entry to a tested switch, wherein the static MAC table entry comprises a corresponding relation between a first MAC address and a port identifier of a first port; the first port is a next hop port of the first MAC address;
the traffic generating equipment generates a data stream with a target MAC address as the first MAC address and sends the data stream to the tested switch;
when the tested switch receives the data stream, forwarding the data stream;
the data receiving equipment receives the data stream sent by the switch to be tested through a second port; if the data stream is not received, determining that the data forwarding capability of the tested switch is normal; otherwise, determining that the data forwarding capability of the tested switch is abnormal; wherein the first port and the second port are different ports;
Wherein the method further comprises:
the tested switch is physically connected with the flow generating equipment through the first port and the third port respectively;
the tested switch is physically connected with the flow receiving equipment through a second port;
the third port is different from the first port and different from the second port;
wherein the method further comprises:
the flow generating equipment deletes the static MAC table entry from the tested switch;
the traffic generation equipment generates a data stream with a target MAC address as the first MAC address and sends the data stream to the tested switch;
when the tested switch receives the data stream, forwarding the data stream;
the data receiving equipment receives the data stream sent by the switch to be tested through the second port; if the data stream is received, determining that the data forwarding capability of the tested switch is normal; otherwise, determining that the data forwarding capability of the tested switch is abnormal.
2. The method of claim 1, wherein after the traffic generation device configures the static MAC table entry to the switch under test, before sending the generated data flow to the switch under test, the method further comprises:
The flow generating equipment carries out configuration check on the switch, and if the static MAC address table entry is determined to be configured in the switch to be tested, the configuration of the static MAC address is determined to be completed; executing the operation of sending the generated data stream to the tested switch; otherwise, determining that the configuration of the static MAC table entry is not finished, and finishing the test.
3. The method of claim 1, wherein after the traffic generation device removes the static MAC entry from the switch under test and before sending the data flow to the switch under test, the method further comprises:
the flow generating equipment carries out configuration check on a switch, if the static MAC table entry is determined not to be configured in the switch to be tested, the static MAC table entry is determined to be deleted, and the operation of sending the generated data stream to the switch to be tested is executed; otherwise, determining that the static MAC table entry is not deleted, and ending the test.
4. The method of claim 1,
the data receiving device is able to observe whether a data flow is received, and the destination MAC address of the data flow.
5. A switch performance testing system, the system comprising: the system comprises a flow generating device, a tested switch and a flow receiving device;
the flow generating equipment configures a static Media Access Control (MAC) table entry to the tested switch; generating a data stream with a target MAC address as the first MAC address, and sending the data stream to the tested switch; wherein, the static MAC table item comprises a corresponding relation between a first MAC address and a port identifier of a first port; the first port is a next hop port of the first MAC address;
the tested switch forwards the data stream when receiving the data stream sent by the traffic generating equipment;
the data receiving equipment receives the data stream sent by the switch to be tested through a second port; if the data stream is not received, determining that the data forwarding capability of the tested switch is normal; otherwise, determining that the data forwarding capability of the tested switch is abnormal; wherein the first port and the second port are different ports;
wherein the content of the first and second substances,
the tested switch is physically connected with the flow generating equipment through the first port and the third port respectively;
The detected switch is physically connected with the flow receiving equipment through a second port;
the third port is different from the first port and different from the second port;
wherein, the first and the second end of the pipe are connected with each other,
the flow generating device further deletes the static MAC table entry from the tested switch, generates a data stream with a target MAC address as the first MAC address, and sends the data stream to the tested switch;
the detected exchanger further receives the data flow and forwards the data flow;
the data receiving device further receives the data stream sent by the switch under test through the second port; if the data stream is received, determining that the data forwarding capability of the tested switch is normal; otherwise, determining that the data forwarding capability of the tested switch is abnormal.
6. The system of claim 5,
the flow generating device further performs configuration check on the switch after configuring the static MAC table entry to the switch to be tested, and if it is determined that the static MAC address table entry is configured in the switch to be tested, it is determined that the configuration of the static MAC address is completed, and the generated data stream is sent to the switch to be tested; otherwise, determining that the configuration of the static MAC table entry is not finished, and finishing the test.
7. The system of claim 5,
the traffic generation device further performs configuration check on the switch after deleting the static MAC entry from the switch to be tested, and if it is determined that the static MAC entry is not configured in the switch to be tested, determines that the static MAC entry is deleted, and sends the generated data stream to the switch to be tested; otherwise, determining that the static MAC table entry is not deleted, and ending the test.
CN202011607008.6A 2020-12-30 2020-12-30 Switch performance test method and system Active CN112737892B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011607008.6A CN112737892B (en) 2020-12-30 2020-12-30 Switch performance test method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011607008.6A CN112737892B (en) 2020-12-30 2020-12-30 Switch performance test method and system

Publications (2)

Publication Number Publication Date
CN112737892A CN112737892A (en) 2021-04-30
CN112737892B true CN112737892B (en) 2022-07-29

Family

ID=75610710

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011607008.6A Active CN112737892B (en) 2020-12-30 2020-12-30 Switch performance test method and system

Country Status (1)

Country Link
CN (1) CN112737892B (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101296131A (en) * 2008-06-11 2008-10-29 北京星网锐捷网络技术有限公司 Method, device and system for testing switchboard connectivity
CN103647680A (en) * 2013-11-26 2014-03-19 上海斐讯数据通信技术有限公司 Method for testing size of MAC address table of switch product
CN109150667A (en) * 2018-10-26 2019-01-04 京信通信系统(中国)有限公司 Switch test system

Family Cites Families (6)

* 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
US8830845B2 (en) * 2008-08-04 2014-09-09 Ciena Corporation Packet switch modeling and using a packet switch model to test a packet switch
CN102355377B (en) * 2011-06-30 2014-03-26 迈普通信技术股份有限公司 Entire test system and method for Ethernet switch
CN102664456B (en) * 2012-04-25 2014-12-17 广东电网公司珠海供电局 Multicast management method and device for intelligent substation process level
US9825776B2 (en) * 2015-06-11 2017-11-21 Lenovo Enterprise Solutions (Singapore) Pte. Ltd. Data center networking
CN105141553B (en) * 2015-09-24 2018-01-16 上海斐讯数据通信技术有限公司 A kind of system and method for testing switch mac address study

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101296131A (en) * 2008-06-11 2008-10-29 北京星网锐捷网络技术有限公司 Method, device and system for testing switchboard connectivity
CN103647680A (en) * 2013-11-26 2014-03-19 上海斐讯数据通信技术有限公司 Method for testing size of MAC address table of switch product
CN109150667A (en) * 2018-10-26 2019-01-04 京信通信系统(中国)有限公司 Switch test system

Also Published As

Publication number Publication date
CN112737892A (en) 2021-04-30

Similar Documents

Publication Publication Date Title
CN110572293B (en) Data message detection method, equipment and system
US6608817B1 (en) Method and apparatus for connection-oriented multiplexing and switching network analysis, management, and troubleshooting
CN103117930B (en) The detection method of static routing configuration and device
CN112804112A (en) Multi-cloud access method in SD-WAN (secure digital-Wide area network) network environment
CN104702509A (en) Method and device for isolating SDN protocol message from data message
CN105657571A (en) Bandwidth-saving method for video transmission in local area network
CN105743687A (en) Method and device for determining node faults
WO2016124117A1 (en) Method, switching device and network controller for protecting links in software-defined network (sdn)
CN108989218A (en) A kind of data forwarding device and method based on network integration framework
CN112217680B (en) Controller capability benchmark test method and device based on software-defined wide area network
CN105227334B (en) A kind of Fabric method for discovering network topology and device
CN112737892B (en) Switch performance test method and system
CN107659436A (en) A kind of method and device for preventing service disconnection
CN111327524B (en) Flow forwarding method and system, SDN controller and computer readable storage medium
CN107154871B (en) VOIP business master-slave conversion system and method based on distributed DSP
CN100372306C (en) Method for positioning fault of asynchronous transmission mode carrying IP data channel
CN104168132A (en) Fault diagnosis method, equipment and system
Manzanares-Lopez et al. Host Discovery Solution: An Enhancement of Topology Discovery in OpenFlow based SDN Networks.
CN101102231A (en) An automatic discovery method and device of PPP link routing device
CN112187551A (en) Software-defined wide area network-based edge equipment capability benchmark test method and device
CN112543142B (en) Method and device for realizing RSTP ring network protocol based on FPGA
CN115242699A (en) Message transmission method, slice generation method, device and system
CN117280671A (en) Message processing method, device, network equipment and medium
Cisco
Cisco

Legal Events

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