CN108306759B - Method and equipment for disturbance simulation of link between Leaf-Spine switches - Google Patents

Method and equipment for disturbance simulation of link between Leaf-Spine switches Download PDF

Info

Publication number
CN108306759B
CN108306759B CN201711455796.XA CN201711455796A CN108306759B CN 108306759 B CN108306759 B CN 108306759B CN 201711455796 A CN201711455796 A CN 201711455796A CN 108306759 B CN108306759 B CN 108306759B
Authority
CN
China
Prior art keywords
network
network card
server
software
switch
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
CN201711455796.XA
Other languages
Chinese (zh)
Other versions
CN108306759A (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 Unionpay Co Ltd
Original Assignee
China Unionpay 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 China Unionpay Co Ltd filed Critical China Unionpay Co Ltd
Priority to CN201711455796.XA priority Critical patent/CN108306759B/en
Publication of CN108306759A publication Critical patent/CN108306759A/en
Application granted granted Critical
Publication of CN108306759B publication Critical patent/CN108306759B/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
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/14Network analysis or design
    • H04L41/145Network analysis or design involving simulating, designing, planning or modelling of a network
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/50Testing arrangements

Abstract

The invention provides a method for carrying out disturbance simulation on a link between Leaf-Spine switches in a network, which comprises the following steps: disconnecting a link between the Leaf switch and the Spine switch; coupling the Spine switch with a first network card and coupling the Leaf switch with a second network card; and communicating the first network card with the second network card through a server, so that all traffic entering from the first network card is forwarded to the second network card through the server, and all traffic entering from the second network card is forwarded to the first network card through the server, wherein abnormal disturbance is generated in the server through first software simulation. The invention also provides a device for carrying out disturbance simulation aiming at the link between the Leaf-Spine switches in the network.

Description

Method and equipment for disturbance simulation of link between Leaf-Spine switches
Technical Field
The invention relates to a cloud network monitoring technology, in particular to a method and equipment for carrying out disturbance simulation on a link between Leaf-Spine switches.
Background
Due to the revolution of Network technology, a new Network innovation architecture represented by Software Defined Network (SDN) provides an implementation mode of Network virtualization, that is, by separating a control plane and a data plane of a Network device, flexible control of Network traffic is realized, so that the Network becomes more intelligent as a pipeline.
In order to test the situation that abnormal disturbance occurs to a high-speed communication link between Leaf-Spine switches in an SDN Fabric network, an existing scheme generally simulates the abnormal disturbance of a network link (e.g., a 40G network link) through a professional network tester (e.g., an Attero-100G/40G model network impairment tester) such as a schlieren (Spirent) or Ixia. However, professional network testers such as sbury (Spirent) or Ixia have a market price of over 20 million dollars, which is expensive. In addition, the 40G link damage is simulated by using professional network testers such as a schlieren (Spirent) or Ixia (Ixia), and technically realized by a special network chip, so that the technology is complex and the universality is not strong.
Therefore, there is a need for an improved method and apparatus for disturbance simulation for links between Leaf-Spine switches.
The above information disclosed in this background section is only for enhancement of understanding of the general background of the invention and should not be taken as an acknowledgement or any form of suggestion that this information forms the prior art already known to a person skilled in the art.
Disclosure of Invention
In view of this, according to an aspect of the present invention, there is provided a method for performing disturbance simulation on a link between Leaf-Spine switches in a network, the method including: disconnecting a link between the Leaf switch and the Spine switch; coupling the Spine switch with a first network card and coupling the Leaf switch with a second network card; and communicating the first network card with the second network card through a server, so that all traffic entering from the first network card is forwarded to the second network card through the server, and all traffic entering from the second network card is forwarded to the first network card through the server, wherein abnormal disturbance is generated in the server through first software simulation.
In the above method, said communicating the first network card with the second network card via a server comprises: creating a bridge in the server with a virtual switch; and hanging the first network card and the second network card to the network bridge through a first network port and a second network port respectively.
In the above method, the generating of the abnormal disturbance in the server through the first software simulation includes: and simulating the generation of abnormal disturbance by using the first software on the first network port or the second network port.
In the above method, the first software is network impairment software or a bottom layer tool.
In the method, when the server generates abnormal disturbance through the simulation of the first software, the message processing is accelerated by using the second software.
According to another aspect of the present invention, there is provided an apparatus for performing disturbance simulation on a link between Leaf-Spine switches in a network, the apparatus comprising: the first network card is coupled with a Spine switch; the second network card is coupled with a Leaf switch; the server is configured to communicate the first network card and the second network card, so that all traffic entering from the first network card is forwarded to the second network card through the server, and all traffic entering from the second network card is forwarded to the first network card through the server, wherein abnormal disturbance is generated in the server through first software simulation, and a link between the Leaf switch and the Spine switch is disconnected so as to perform disturbance simulation.
In the above device, the server is configured to create a network bridge using a virtual switch, wherein the first network card and the second network card are respectively hooked to the network bridge via a first portal and a second portal.
In the above apparatus, the server is configured to simulate generation of the abnormal disturbance by using the first software on the first portal or the second portal.
In the above device, the first software is network impairment software or a bottom layer tool.
In the above device, the server is configured to simulate the abnormal disturbance by using the first software, and at the same time, accelerate the message processing by using the second software.
Compared with the prior art, the disturbance simulation scheme of the invention realizes hijack disturbance of a high-speed link (such as a 40G link) by adopting a hardware combination of a general server and network cards (such as an x86 server and two 40G network cards), has simple principle and strong universality, and can effectively realize abnormal disturbance simulation of the network link. In addition, the overall cost for simulating the abnormal disturbance by adopting the technical scheme of the invention is 1-2 orders of magnitude lower than that of a professional network damage instrument on the market.
Other features and advantages of the methods and apparatus of the present invention will be more particularly apparent from or elucidated with reference to the drawings described herein, and the following detailed description of the embodiments used to illustrate certain principles of the invention.
Drawings
Fig. 1 is a schematic diagram illustrating a method for disturbance simulation for a link between Leaf-Spine switches according to an embodiment of the present invention;
FIG. 2 is a schematic diagram of a device for performing disturbance simulation on a link between Leaf-Spine switches in a network according to an embodiment of the invention; and
fig. 3 is an architecture diagram of a cloud network when performing a disturbance simulation according to an embodiment of the present invention.
Detailed Description
The following description describes specific embodiments of the invention to teach those skilled in the art how to make and use the best mode of the invention. For the purpose of teaching inventive principles, some conventional aspects have been simplified or omitted. Those skilled in the art will appreciate variations from these embodiments that will fall within the scope of the invention. Those skilled in the art will appreciate that the features described below can be combined in various ways to form multiple variations of the invention. Thus, the present invention is not limited to the specific embodiments described below, but only by the claims and their equivalents.
In the context of the present invention, the term "SDN" refers to a software defined network that enables software programmable control of the network through an open interface.
The term "SDN Fabric" has the same meaning as "SDN switch matrix", i.e. an SDN network formed by SDN switch connections.
The term "Leaf", "Leaf switch" or "Leaf switch" denotes a Leaf switch, i.e. a switch that is an access layer in a two-layer SDN architecture.
The term "Spine", "Spine switch" or "Spine switch" denotes a backbone switch, i.e. a switch that is a transit layer in a two-layer SDN architecture.
The term "OpenvSwitch", i.e. the open virtual switching standard. OpenvSwitch is a product-level quality multi-layer virtual switching standard under the license of the open-source Apache 2.0, which aims to automate (configure, manage, maintain) a huge network by programmatic extension, while also supporting standard management interfaces and protocols (e.g., NetFlow, sFlow, SPAN, RSPAN, CLI, LACP, 802.1 ag).
The term "virtual switch" refers to a switch element formed by way of software using a virtual platform. Compared with the traditional physical switch, the virtual switch also has a plurality of advantages, and firstly, the configuration is more flexible. Tens of virtual switches or even hundreds of virtual switches can be configured on a common server, and the number of ports can be flexibly selected. For example, one server of the ESX of the VMware may simulate 248 virtual switches, and each switch may have up to 56 preset virtual ports; secondly, the cost is lower, and the performance which can be achieved by an expensive common switch can be obtained through the virtual switch, for example, the Microsoft Hyper-V platform, and the online speed between the virtual machine and the virtual switch can easily reach 10 Gbps.
Fig. 1 is a method 1000 for disturbance simulation of a link between Leaf-Spine switches, according to an embodiment of the invention. Wherein the method 1000 comprises the steps of:
in step 120, a link between the Leaf switch and the Spine switch is disconnected;
in step 140, coupling the Spine switch with a first network card and coupling the Leaf switch with a second network card; and
in step 160, the first network card is communicated with the second network card through a server, so that all traffic entering from the first network card is forwarded to the second network card through the server, and all traffic entering from the second network card is forwarded to the first network card through the server, wherein abnormal disturbance is generated in the server through first software simulation.
In one embodiment, step 160 comprises: creating a bridge in the server with a virtual switch; and hanging the first network card and the second network card to the network bridge through a first network port and a second network port respectively. In one embodiment, step 160 further comprises: and simulating the generation of abnormal disturbance by using the first software on the first network port or the second network port. The first software may be network impairment software (e.g., netimpair, etc.) or a more underlying tool (e.g., tc tool of Linux, etc.). In an embodiment, while the server generates the abnormal disturbance through the first software simulation, a second software (e.g., DPDK OpenvSwitch) is used for accelerating message processing.
Fig. 2 is a schematic structural diagram of a device 2000 for performing disturbance simulation on a link between Leaf-Spine switches in a network according to an embodiment of the present invention. As shown in fig. 2, the device 2000 includes a first network card 210, a second network card 220, and a server 230. The first network card 210 is coupled with a Spine switch, the second network card 220 is coupled with a Leaf switch, the server 230 is configured to communicate the first network card 210 and the second network card 220, so that all traffic entering from the first network card 210 is forwarded to the second network card 220 via the server 230, and all traffic entering from the second network card 220 is forwarded to the first network card 210 via the server 230, wherein abnormal disturbance is generated in the server 230 through first software simulation, and a link between the Leaf switch and the Spine switch is disconnected so as to perform disturbance simulation.
In one embodiment, the server 230 is configured to employ a virtual switch to create a bridge, wherein the first network card 210 and the second network card 220 are hooked up to the bridge via a first portal and a second portal, respectively. In one embodiment, the server 230 is further configured to simulate the generation of the abnormal disturbance with the first software on the first portal or the second portal. The first software may be network impairment software (e.g., netimpair, etc.) or a more underlying tool (e.g., tc tool of Linux, etc.). In one embodiment, the server 230 is further configured to simulate, by the first software, the abnormal disturbance, and at the same time, perform acceleration of message processing by using a second software (e.g., DPDK OpenvSwitch).
Referring to fig. 3, a deployment architecture diagram of a cloud network in performing a disturbance simulation is shown, according to an embodiment of the present invention. As shown in fig. 3, a 40G link between Leaf-Spine switches is first connected to a 40G network card, and then transit connection is performed through a server. The method comprises the following basic implementation steps: 1) referring to fig. 3, network connection configuration is performed; 2) creating a bridge: a bridge br0 is created by adopting an OpenvSwitch software switch, for example, a network card 1 and a network card 2 are hung on a br0, and formed ports are marked as a network port 1 and a network port 2; 3) configuring a flow table: two flow table rules are configured on br 0: the flow entering from the network port 1 is completely transmitted to the network port 2; the traffic entering from the network port 2 is completely forwarded to the network port 1, so that the transparent transmission of the network traffic among Leaf-Spine switches is realized; 4) simulating abnormal disturbance: on the network port 1 (or the network port 2), various forms of network abnormal disturbance (such as delay, packet loss with a certain probability, jitter and the like) are configured by using network impairment software (such as netimpair and the like) or a lower-layer tool (such as tc tool of Linux and the like), so that abnormal disturbance simulation of a 40G network link between Leaf-Spine switches is realized.
In one embodiment, when performing the abnormal disturbance data flow processing analysis, the communication traffic between Leaf-Leaf switches (assuming that the traffic is in the direction from Leaf switch to Leaf switch, and the abnormal disturbance is performed at the portal 1, or vice versa) will first pass through the network card 1, and after the disturbance processing of netimpair at the port 1, the communication traffic will be either discarded or transmitted to the OVS (i.e., OpenvSwitch) bridge br0 in some form, and then transmitted to the portal 2 for output according to the flow table rule of br 0. Therefore, the simulation of abnormal disturbance of the traffic in the direction from the Spine switch to the Leaf switch is realized.
It is noted that the abnormal disturbance simulation may be implemented by various software combinations. In one embodiment, the network message transmission abnormal disturbance on the server is realized through the software combination of OpenvSwitch and netimpair/tc. Those skilled in the art will appreciate that other combinations of software may be employed to achieve similar results.
In one embodiment, a software acceleration scheme is employed to handle anomalous disturbances of the 40G link. Generally speaking, the speed requirement for message processing is high under the full-load condition of the 40G link. The processing speed of a common Linux network protocol stack is limited, so that some software message processing acceleration technologies (such as DPDK OpenvSwitch acceleration) can be used for acceleration. In this case, because the DPDK bypasses the network protocol stack of the Linux kernel, tools such as netimpair/tc will fail, and the processing such as speed limit, packet loss, delay and the like can be directly performed on the network port of the DPDK OpenvSwitch.
In one embodiment, the inventive arrangements are applicable to various rate links including, but not limited to, 25G, 40G, 100G links. In addition, the manner of the abnormal disturbance is not limited to the aforementioned delay, packet loss with a certain probability, jitter, and the like. In one embodiment, the manner of anomalous perturbations also includes custom forms of anomalous perturbations, such as by some form of historical playback, custom feature anomalous perturbations, and the like.
In summary, the present invention provides a scheme for performing abnormal disturbance simulation on a high-rate network link in an SDN switching matrix by using general hardware. In one embodiment, the scheme adopts a general x86 server and a 2-block 40G network card combination as hardware configuration, realizes hijacking of a 40G network link, and realizes abnormal disturbance simulation or transparent transmission in various forms on network messages flowing through the server through software. Compared with the prior art, the disturbance simulation scheme of the invention has the advantages of simple principle and strong universality, and can effectively realize the abnormal disturbance simulation of the network link. In addition, the overall cost for simulating the abnormal disturbance by adopting the technical scheme of the invention is 1-2 orders of magnitude lower than that of a professional network damage instrument on the market.
The above examples mainly illustrate the method and apparatus of the present invention for disturbance simulation of the link between Leaf-Spine switches. Although only a few embodiments of the present invention have been described in detail, those skilled in the art will appreciate that the present invention may be embodied in many other forms without departing from the spirit or scope thereof. Accordingly, the present examples and embodiments are to be considered as illustrative and not restrictive, and various modifications and substitutions may be made therein without departing from the spirit and scope of the present invention as defined by the appended claims.

Claims (10)

1. A method for performing disturbance simulation on a link between Leaf-Spine switches in a network is characterized by comprising the following steps:
disconnecting a link between the Leaf switch and the Spine switch;
coupling the Spine switch with a first network card and coupling the Leaf switch with a second network card; and
communicating the first network card with the second network card via a server, so that traffic entering from the first network card is completely forwarded to the second network card via the server, and traffic entering from the second network card is completely forwarded to the first network card via the server,
wherein the server generates abnormal disturbances through a first software simulation.
2. The method of claim 1, wherein said communicating the first network card with the second network card via a server comprises:
creating a bridge in the server with a virtual switch; and
and hanging the first network card and the second network card to the network bridge through a first network port and a second network port respectively.
3. The method of claim 2, wherein said generating an anomalous disturbance in said server by a first software simulation comprises:
and simulating the generation of abnormal disturbance by using the first software on the first network port or the second network port.
4. The method of claim 3, wherein the first software is network impairment software or an underlying tool.
5. The method of claim 1, wherein message processing acceleration is also performed with a second software while generating an anomalous disturbance in the server through the first software simulation.
6. An apparatus for perturbation simulation of a link between Leaf-Spine switches in a network, the apparatus comprising:
the first network card is coupled with a Spine switch;
the second network card is coupled with a Leaf switch;
a server configured to communicate the first network card and the second network card, such that traffic entering from the first network card is all forwarded to the second network card via the server, and traffic entering from the second network card is all forwarded to the first network card via the server,
wherein, an abnormal disturbance is generated in the server through a first software simulation, and a link between the Leaf switch and the Spine switch is disconnected so as to perform a disturbance simulation.
7. The apparatus of claim 6, wherein the server is configured to employ a virtual switch to create a bridge, wherein the first network card and the second network card are hooked to the bridge via a first portal and a second portal, respectively.
8. The apparatus of claim 7, wherein the server is configured to simulate generation of an anomalous disturbance with the first software on the first portal or the second portal.
9. The apparatus of claim 8, wherein the first software is network impairment software or an underlying tool.
10. The apparatus of claim 6, wherein the server is configured to simulate the anomalous perturbation with the first software while also utilizing a second software for message processing acceleration.
CN201711455796.XA 2017-12-28 2017-12-28 Method and equipment for disturbance simulation of link between Leaf-Spine switches Active CN108306759B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711455796.XA CN108306759B (en) 2017-12-28 2017-12-28 Method and equipment for disturbance simulation of link between Leaf-Spine switches

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711455796.XA CN108306759B (en) 2017-12-28 2017-12-28 Method and equipment for disturbance simulation of link between Leaf-Spine switches

Publications (2)

Publication Number Publication Date
CN108306759A CN108306759A (en) 2018-07-20
CN108306759B true CN108306759B (en) 2020-12-15

Family

ID=62867644

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711455796.XA Active CN108306759B (en) 2017-12-28 2017-12-28 Method and equipment for disturbance simulation of link between Leaf-Spine switches

Country Status (1)

Country Link
CN (1) CN108306759B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111030926B (en) * 2019-12-20 2021-07-27 苏州浪潮智能科技有限公司 Method and device for improving high availability of network

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101491014A (en) * 2006-08-04 2009-07-22 思科技术公司 Technique for sharing a physical port among a plurality of virtual bridges on a switch
CN103200042A (en) * 2013-03-12 2013-07-10 杭州华三通信技术有限公司 Method and device for chain detection in TRILL network
EP3044917A1 (en) * 2013-09-13 2016-07-20 Microsoft Technology Licensing, LLC Virtual network routing
CN106817292A (en) * 2015-12-01 2017-06-09 广达电脑股份有限公司 To the system and method for management service interchanger
CN107342906A (en) * 2016-04-29 2017-11-10 华为技术有限公司 A kind of detection method, equipment and the system of elephant stream
CN110959270A (en) * 2017-07-21 2020-04-03 思科技术公司 Service function chain optimization using real-time testing

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10454830B2 (en) * 2016-05-05 2019-10-22 City University Of Hong Kong System and method for load balancing in a data network

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101491014A (en) * 2006-08-04 2009-07-22 思科技术公司 Technique for sharing a physical port among a plurality of virtual bridges on a switch
CN103200042A (en) * 2013-03-12 2013-07-10 杭州华三通信技术有限公司 Method and device for chain detection in TRILL network
EP3044917A1 (en) * 2013-09-13 2016-07-20 Microsoft Technology Licensing, LLC Virtual network routing
CN106817292A (en) * 2015-12-01 2017-06-09 广达电脑股份有限公司 To the system and method for management service interchanger
CN107342906A (en) * 2016-04-29 2017-11-10 华为技术有限公司 A kind of detection method, equipment and the system of elephant stream
CN110959270A (en) * 2017-07-21 2020-04-03 思科技术公司 Service function chain optimization using real-time testing

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
"云环境下的虚拟网络智能监控分析关键技术研究与应用";陆宏波;《电脑知识与技术》;20170805;第51-53页 *

Also Published As

Publication number Publication date
CN108306759A (en) 2018-07-20

Similar Documents

Publication Publication Date Title
US10148556B2 (en) Link aggregation group (LAG) support on a software-defined network (SDN)
US9065770B2 (en) Traffic item impairment emulation
US11394649B2 (en) Non-random flowlet-based routing
EP3355534A1 (en) Tracing network packets at a managed forwarding element
US20070162595A1 (en) System and method for tracking network resources
US20120324068A1 (en) Direct networking for multi-server units
US10601673B2 (en) Holistic validation of a network via native communications across a mirrored emulation of the network
CN104683165B (en) The monitoring method of virtual machine network data under a kind of Xen virtualized environments
CN105610710A (en) Methods and apparatus for standard protocol validation mechanisms deployed over switch fabric system
CN106254178B (en) network test platform NFVNTP based on NFV and test method thereof
US10523542B2 (en) Systems and methods for testing integrated cloud interoperability, adjacent network compatibility and service chain connectivity
CN107347033A (en) The method and device of quick protective switch is realized in a kind of SDN frameworks
CN103746884A (en) Method and system for testing flow through switchboard
US8654654B2 (en) Traffic distribution control
CN108306759B (en) Method and equipment for disturbance simulation of link between Leaf-Spine switches
RU2584471C1 (en) DEVICE FOR RECEIVING AND TRANSMITTING DATA WITH THE POSSIBILITY OF INTERACTION WITH OpenFlow CONTROLLER
US7433814B2 (en) Network emulator architecture
US20230231806A1 (en) Ghost routing
CN111130917B (en) Line testing method, device and system
Raumer et al. Revisiting benchmarking methodology for interconnect devices
CN109005080B (en) Distributed packet forwarding implementation method, implementation system and automatic test method
CN109039679B (en) NFV network signaling acquisition method and device
Raychev et al. Development and Integration of Educational Software Defined Networking Platform in Computer Networking Classes
Bonfim et al. Identifying performance bottlenecks in software data planes for cloud-based nfv services
KR101867881B1 (en) Method, apparatus and computer program for service function chaining

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