CN116319380A - Network simulation method and system based on cloud native platform and user state switch - Google Patents

Network simulation method and system based on cloud native platform and user state switch Download PDF

Info

Publication number
CN116319380A
CN116319380A CN202310600421.7A CN202310600421A CN116319380A CN 116319380 A CN116319380 A CN 116319380A CN 202310600421 A CN202310600421 A CN 202310600421A CN 116319380 A CN116319380 A CN 116319380A
Authority
CN
China
Prior art keywords
network
network node
working end
space
user state
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
CN202310600421.7A
Other languages
Chinese (zh)
Other versions
CN116319380B (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.)
Southwest University of Science and Technology
Original Assignee
Southwest University of Science and Technology
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 Southwest University of Science and Technology filed Critical Southwest University of Science and Technology
Priority to CN202310600421.7A priority Critical patent/CN116319380B/en
Publication of CN116319380A publication Critical patent/CN116319380A/en
Application granted granted Critical
Publication of CN116319380B publication Critical patent/CN116319380B/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
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/50Reducing energy consumption in communication networks in wire-line communication networks, e.g. low power modes or reduced link rate

Abstract

The application discloses a network simulation method and system based on a cloud native platform and a user state switch, wherein the method comprises the steps of obtaining network topology parameters of a network to be simulated; allocating network nodes required by the network to be simulated to a working end server according to network topology parameters; the network nodes are configured to form virtual data links based on the user state switches within the working end servers. According to the method and the system, the network node is configured through the user state switch in the working end server, the user state switch is used for replacing the physical switch and the router, the number of the physical switch and the router is reduced, the construction cost of the high-bandwidth simulation network is reduced, and the research cost of the high-bandwidth network is further reduced.

Description

Network simulation method and system based on cloud native platform and user state switch
Technical Field
The application relates to the technical field of network simulation, in particular to a network simulation method and system based on a cloud native platform and a user-mode switch.
Background
At present, in the application scene of network experiments, a simulation network is generally built locally to perform the experiments, however, with the improvement of network bandwidth requirements, each simulation network performing the experiments locally cannot meet the performance requirements of high bandwidth. Therefore, a learner builds a cloud experiment platform on the cloud platform, and the performance requirement of high bandwidth is met through the cloud experiment platform.
However, the cloud experiment platform is generally built in a virtual environment, and the service provider has a strict limitation on performance, when the high-bandwidth network needs to be tested, the physical network needs to be built by corresponding high-speed hardware (i.e. the high-speed switch and the high-speed router are the same), and when the test scale is enlarged, the building cost of the cloud experiment platform is greatly increased, so that the research cost of the high-bandwidth network is increased.
There is thus a need for improvements and improvements in the art.
Disclosure of Invention
The technical problem to be solved by the application is to provide a network simulation method and system based on a cloud native platform and a user state switch aiming at the defects of the prior art.
In order to solve the above technical problems, a first aspect of an embodiment of the present application provides a network simulation method based on a cloud native platform and a user state switch, where the method includes:
acquiring network topology parameters of a network to be simulated;
allocating network nodes required by the network to be simulated to a working end server according to network topology parameters, wherein the mirror image used by the network nodes comprises a user-mode switch;
the network nodes are configured to form virtual data links based on the user state switches within the working end servers.
The network simulation method based on the cloud native platform and the user-mode switch is characterized in that the network nodes are constructed in a container mode and managed through a container management platform.
The network simulation method based on the cloud native platform and the user state switch, wherein the configuration of the network node by the user state switch in the working end server to form the virtual data link specifically comprises the following steps:
constructing a local virtual data link for a network node on a working end server based on a user state switch in the working end server;
based on user state exchanger in server of working end and physical exchanger, cross machine virtual data link is constructed for network node between servers of working end.
The network simulation method based on the cloud native platform and the user state switch, wherein the construction of the local virtual data link for the network node on the working end server based on the user state switch in the working end server specifically comprises the following steps:
for a first network node, a second network node and a third network node in a working end server, connecting a Linux space on the first network node and a VPP space on the second network node based on a user state switch of the working end server to form a first link, wherein the first network node is common host equipment, the second network node is a user state switch, and the third network node is a flow generator;
a user state switch based on a working end server connects the VPP space on a second network node with the DPDK space on the third network node to form a second link;
the first link and the second link are connected through a VPP space on the second network node to form a local virtual data link.
The network simulation method based on the cloud native platform and the user state switch, wherein the construction of the cross-machine virtual data link based on the user state switch and the physical switch in the working end server as the network node between the working end servers specifically comprises the following steps:
for a first network node, a second network node and a third network node in other working end servers in the working end server, connecting a Linux space on the first network node and a VPP space on the second network node based on a user state switch of the working end server to form a first link, wherein the first network node is common host equipment, the second network node is a user state switch, and the third network node is a flow generator;
connecting the VPP space on the second network node with the DPDK space on the third network node based on the user state switch and the physical switch of the working end server to form a second link;
the first link and the second link are connected through a VPP space on the second network node to form a cross-machine virtual data link.
According to the network simulation method based on the cloud native platform and the user state switch, the Linux space is connected with the user state switch of the working end server through a Tap interface, the VPP space is connected with the user state switch of the working end server through a Memif interface, and the first link and the second link are connected through the Memif interface.
The network simulation method based on the cloud native platform and the user state switch, wherein the user state switch and the physical switch based on the working end server connect the VPP space on the second network node with the DPDK space on the third network node to form a second link specifically comprises:
connecting the VPP space on the second network node with the VPP space on the corresponding working server, and connecting the DPDK space on the third network node with the VPP space on the corresponding working server;
and establishing a VXLAN tunnel between the VPP space on the working server and the VPP space on the working server corresponding to the third network node through a physical switch so as to form a second link.
A second aspect of the embodiments of the present application provides a network simulation system based on a cloud native platform and a user-mode switch, where the system includes:
the front-end program module is used for acquiring network topology parameters of the network to be simulated;
the control end program module is used for allocating network nodes required by the network to be simulated to the working end server according to network topology parameters, wherein the mirror image used by the network nodes comprises a user-mode switch;
and the working end program module is used for configuring the network node based on the user state switch in the working end server to form a virtual data link.
The network simulation system based on the cloud native platform and the user state switch, wherein the control end program module comprises:
the front-end service plug-in is used for communicating with the front-end program module through a calling protocol so as to receive network topology parameters transmitted by the front-end program module;
the first database plug-in is communicated with the main database and is used for storing data in the main database and transmitting the network topology parameters to the working end program module through the main database;
and the container management plug-in is used for communicating with the container management platform and configuring network nodes of the container management platform based on network topology parameters, wherein the network nodes are constructed in a container form.
The network simulation system based on the cloud native platform and the user state switch, wherein the working end program module comprises:
the second database plug-in is communicated with the main database and is used for receiving the network topology parameters transmitted by the control end program module;
the VPP control plug-in is used for configuring the user-state switch of the working end server;
a Linux control plug-in, configured to configure a network space of a network node, where the network space includes a Linux space or a DPDK space;
and the central control plug-in is used for calling the VPP control plug-in and the Linux control plug-in to allocate based on the network topology parameters so as to form a virtual data link.
The beneficial effects are that: compared with the prior art, the application provides a network simulation method and system based on a cloud native platform and a user-mode switch, wherein the method comprises the steps of obtaining network topology parameters of a network to be simulated; allocating network nodes required by the network to be simulated to a working end server according to network topology parameters; the network nodes are configured to form virtual data links based on the user state switches within the working end servers. According to the method and the system, the network node is configured through the user state switch in the working end server, the user state switch is used for replacing the physical switch and the router, the number of the physical switch and the router is reduced, the construction cost of the high-bandwidth simulation network is reduced, and the research cost of the high-bandwidth network is further reduced.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings that are needed in the description of the embodiments will be briefly described below, it being obvious that the drawings described below are only some embodiments of the present application, and that other drawings may be obtained according to these drawings without creative effort for a person skilled in the art.
Fig. 1 is a schematic structural diagram of a network simulation system based on a cloud native platform and a user-mode switch provided in the present application.
Fig. 2 is a diagram of a specific example of a network simulation system based on a cloud native platform and a user-mode switch provided in the present application.
Fig. 3 is a flowchart of a network simulation method based on a cloud native platform and a user-mode switch provided in the present application.
Fig. 4 is a schematic diagram of a local virtual data link.
Fig. 5 is a schematic diagram of a quart virtual data link.
Detailed Description
The application provides a network simulation method and system based on a cloud native platform and a user-mode switch, and in order to make the purposes, technical schemes and effects of the application clearer and more definite, the application is further described in detail below with reference to the accompanying drawings and the embodiments. It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the present application.
As used herein, the singular forms "a", "an", "the" and "the" are intended to include the plural forms as well, unless expressly stated otherwise, as understood by those skilled in the art. It will be further understood that the terms "comprises" and/or "comprising," when used in this specification, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof. It will be understood that when an element is referred to as being "connected" or "coupled" to another element, it can be directly connected or coupled to the other element or intervening elements may also be present. Further, "connected" or "coupled" as used herein may include wirelessly connected or wirelessly coupled. The term "and/or" as used herein includes all or any element and all combination of one or more of the associated listed items.
It will be understood by those skilled in the art that all terms (including technical and scientific terms) used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this application belongs unless defined otherwise. It will be further understood that terms, such as those defined in commonly used dictionaries, should be interpreted as having a meaning that is consistent with their meaning in the context of the prior art and will not be interpreted in an idealized or overly formal sense unless expressly so defined herein.
It should be understood that the sequence number and the size of each step in this embodiment do not mean the sequence of execution, and the execution sequence of each process is determined by the function and the internal logic of each process, and should not constitute any limitation on the implementation process of the embodiment of the present application.
According to research, in the current network experiment application scene, a simulation network is generally built locally to perform an experiment, however, with the improvement of network bandwidth requirements, each simulation network performing the experiment locally cannot meet the high-bandwidth performance requirements. Therefore, a learner builds a cloud experiment platform on the cloud platform, and the performance requirement of high bandwidth is met through the cloud experiment platform.
However, the cloud experiment platform is generally built in a virtual environment, and the service provider has a strict limitation on performance, when the high-bandwidth network needs to be tested, the physical network needs to be built by corresponding high-speed hardware (i.e. the high-speed switch and the high-speed router are the same), and when the test scale is enlarged, the building cost of the cloud experiment platform is greatly increased, so that the research cost of the high-bandwidth network is increased.
In order to solve the above-mentioned problem, in the embodiment of the present application, network topology parameters of a network to be simulated are obtained; allocating network nodes required by the network to be simulated to a working end server according to network topology parameters; the network nodes are configured to form virtual data links based on the user state switches within the working end servers. According to the method and the system, the network node is configured through the user state switch in the working end server, the user state switch is used for replacing the physical switch and the router, the number of the physical switch and the router is reduced, the construction cost of the high-bandwidth simulation network is reduced, and the research cost of the high-bandwidth network is further reduced.
The application will be further described by the description of embodiments with reference to the accompanying drawings.
The embodiment provides a network simulation system based on a cloud native platform and a user state switch, as shown in fig. 1, where the system includes a front-end program module, a control-end program module and a working-end program module, the front-end program module is loaded in a front-end device (e.g., a client computer, etc.), the control-end program module is loaded in a control-end server, and the working-end program module is loaded in a working-end server, so as to construct a network simulation based on the cloud native platform and the user state switch through the simulation system. In addition, the front-end equipment is a carrier of a front-end program module, the control end server is a carrier of a control end program module, and the working end server is a carrier of a working end program module, so that the front-end equipment, the control end server and the working end servers communicate with each other to realize functions of the network simulation system, namely the network simulation system can comprise the front-end equipment, the control end server and the working end servers, and a simulation network based on a cloud native platform and a user-state switch is constructed through cooperative work of the front-end equipment, the control end server and the working end servers.
The front-end program module communicates with the control-end program module through a calling protocol, and the control-end program module communicates with the working-end program module through a main database ETCD. The calling protocol may be RPC protocol, etc. In addition, a container management platform (e.g., kubernetes, etc.) is deployed in the control end server, and the container management platform includes a plurality of network nodes established in the form of containers, and the mirror image used by the network nodes includes a user-mode switch. That is, all network nodes (virtual hosts, virtual switches and the like) of the simulation system are established in a container mode, and the mirror image used by the network nodes is a network operation system comprising user-mode software switch programs and basic test tools.
The front-end program module is used for acquiring network topology parameters of the network to be simulated, wherein the front-end program module is used for being responsible for interacting with user instructions and information and transmitting the user instructions and the information to the control-end program module through a preset RPC protocol file. The front-end program module may integrate in advance several network topologies, e.g., a minimum topology, a linear topology, a tree topology, a fat tree topology, etc.; then, the network topology type to be constructed can be directly selected from a plurality of network topology structures, and corresponding parameters are input to obtain the network topology parameters of the network to be simulated. The front-end program module can be further provided with a custom topology interface, and a custom topology structure is carried out through the custom topology interface so as to obtain network topology parameters of the network to be simulated.
The control end program module is used for allocating the network nodes required by the network to be simulated to the working end server according to the network topology parameters. The control end program module operates in the control end server of the back end server cluster and is used for communicating with the front end program module and the working end program module, and can allocate the container of the container management platform based on the network topology parameters so as to determine the network node corresponding to the network to be simulated, and allocate the determined network node to the working end server.
In one implementation, as shown in fig. 2, the control-side program module includes: the system comprises a front-end service plug-in, a first database plug-in and a container management plug-in, wherein the front-end service plug-in is communicated with a front-end program module through a calling protocol, the first database plug-in is communicated with a main database, and the container management plug-in is communicated with a container management platform running on a control end server. The front-end service plug-in receives the instruction information received by the front-end program module through a calling protocol, analyzes the instruction information to obtain network topology parameters transmitted by the front-end program module, triggers an event corresponding to the instruction information according to the instruction information sent by the front-end program module, and executes operations required by the event corresponding to the instruction information by calling the first database plug-in and the container management plug-in.
The first database plug-in establishes communication with the main database, stores data in the main database for the calling of the working end program module, sends network topology parameters and instruction information to the main database, and reads feedback information of the working end program module to complete communication of the working end program module, so that the working end program module can acquire the network topology parameters, corresponding data and the like. The container management plug-in establishes communication with a container management platform running on the control end server through an interface, and configures network nodes of the container management platform based on network topology parameters transmitted by the front end program module.
The working end program module is used for configuring the network node based on the user state switch in the working end server to form a virtual data link, wherein the working end program module runs in each working end server except the control end server in the background service cluster, and the working end server is communicated with the control end program module of the control end server through the working end program module so as to construct a simulation network and operate the simulation network based on the network topology parameters and the information instructions transmitted by the control end program module. Furthermore, it should be noted that each working end server of the background server cluster is configured with a working end program module.
In one implementation, as shown in fig. 2, the working end program module includes a second database plug-in, a central control plug-in, a VPP control plug-in and a Linux control plug-in, where the second database plug-in establishes communication with the main database, the central control plug-in communicates with the second database plug-in, and invokes the VPP control plug-in and the Linux control plug-in based on information instructions transmitted by the second database plug-in to complete the configuration work of the simulation network. The second database plug-in is used for monitoring an information instruction issued by the control end program module through the main database so as to receive the network topology parameter transmitted by the control end program module, notifying the received information instruction (including the network topology parameter) to the central control plug-in, and transmitting feedback information of the central control plug-in to the main database, so that the control end program module obtains the feedback information of the working end program module through the second database plug-in. The central control plug-in is a central dispatcher of the working end program module, and the VPP control plug-in and the Linux control plug-in are called according to the information instruction (including network topology parameters) received by the second database plug-in. The VPP control plugin establishes communication with the user state switch running on the working end server and running on the container (i.e., network node), and configures the user state switch running on the working end server and running on the container (i.e., network node) according to the call of the central control plugin. The Linux control plug-in configures a network space of the network node according to the call of the central control plug-in, wherein the network space can comprise a Linux space or a DPDK space.
Based on the network simulation system based on the cloud native platform and the user state switch, the embodiment provides a network simulation method based on the cloud native platform and the user state switch, as shown in fig. 3, the system includes:
s10, acquiring network topology parameters of the network to be simulated.
Specifically, the network topology parameter is topology information of the network to be simulated, and the network to be simulated can be constructed based on the network topology parameter, for example, the network topology parameter can include a network topology structure type, network node information required by the network topology structure, and the like. In this embodiment, the network topology parameters may be obtained through a front-end program module, where the front-end program module may be run in a client computer, and the network topology type and parameters of the network to be simulated are selected from a plurality of preset network topologies through the front-end program module, so as to obtain the network topology parameters, or the topology parameters are obtained through a topology custom interface configured by the front-end program module by defining the topology. In addition, after obtaining the network topology parameters, the IP address and port of the control end server may be determined by the front end program module, and connected to the control server through the IP address and port of the control server, so as to transmit the network topology parameters to the control end program module running on the control end server, where the front end program module communicates with the control program module through a call protocol, for example, through RPC.
And S20, allocating network nodes required by the network to be simulated to a working end server according to network topology parameters.
Specifically, the working end server is a background server of a background server cluster, the network node is constructed by a container, and is managed through a container management platform, wherein the container management platform runs in the control end server, and the control end server is a background server of the background server cluster. It can be understood that the background server cluster comprises a plurality of background servers, one of the plurality of background servers is fixed as a control end server, the other background servers are working end servers, the control end servers are communicated with the working end servers through a main database, a container management platform is arranged in the control end servers, and the container management platform is used for managing network nodes constructed in a container mode.
Further, the network node includes a user state switch and may further include a general host, where the user state switch may be a virtual host, a virtual switch, and the mirror image used by the user state switch is a network operating system including a high performance software switch program and a basic test tool. The control end program module of the control end server allocates network nodes required by the network to be simulated to the working end servers according to the network topology parameters, wherein the network nodes required by the network to be simulated can be distributed in one working end server or a plurality of working end servers. Meanwhile, the control end program module uploads the network topology parameters to the main database so that the working end server can acquire the network topology parameters through the main database.
S30, configuring the network node based on the user state switch in the working end server to form a virtual data link.
Specifically, a working end program module is configured in the working end server, the working end program module obtains network topology parameters through a main database, then determines link relations among all network nodes based on the obtained network topology parameters, configures user-state switches in the network nodes and the working end server based on the link relations to form virtual data links, and then forms a network to be simulated based on the virtual data links and the network nodes.
In one implementation manner, the configuring the network node to form the virtual data link based on the user state switch in the working end server specifically includes:
s31, constructing a local virtual data link for a network node on a working end server based on a user state switch in the working end server;
s32, constructing a cross-machine virtual data link for a network node between the working end servers based on the user state switch and the physical switch in the working end servers.
Specifically, the local virtual data link is a data link established among a plurality of network nodes in the working end server, the cross-machine virtual data link is a data link established among network nodes on different working end servers, wherein the local virtual data link is constructed based on a user-mode switch running in the working end server, and the cross-machine virtual data link is constructed based on a user-mode switch and a physical switch running in the working end server. It can be understood that a user state switch is arranged in the working end server, and local virtual data links are provided for different network nodes on the same working end server through the user state switch; and providing cross-machine virtual data links for network nodes on different working end servers through the user state switches and the physical switches which are deployed in the working end servers. In this embodiment, the user mode switch may employ a VPP instance.
In one implementation manner, as shown in fig. 4, the constructing a local virtual data link for a network node on a working server based on a user mode traffic in the working server specifically includes:
s311, for a first network node, a second network node and a third network node in a working server, connecting a Linux space on the first network node and a VPP space on the second network node based on a user-mode switch running in the working server to form a first link;
s312, connecting the VPP space on the second network node with the DPDK space on the third network node based on a user state switch running in the working server to form a second link;
s313, connecting the first link and the second link through the VPP space on the second network node to form a local virtual data link.
Specifically, the first network node, the second network node and the third network node are located in the same working server, for example, the first network node is a common host device, the second network node is a user state switch, and the third network node is a traffic generator, wherein the traffic generator adopts a traffic generator based on DPDK to bypass a Linux network protocol stack of the host node.
The first network node and the second network node form a first link through VPP space connection on the working end server, the second network node and the third network node form a second link through VPP space connection on the working end server, and the first link and the second link form a local virtual data link through VPP space connection on the second network node.
Further, in the process that the first network node and the second network node are connected through the VPP space on the working end server to form a first link, the Linux space on the first network node is connected with the VPP space on the working end server through a Tap interface, namely the Tap interface of the Linux space is connected with the Tap interface of the VPP space on the working end server; the VPP space on the second network node is connected with the VPP space on the working end server through the Memif interface 1, namely the Memif interface 1 of the VPP space on the second network node is connected with the Memif interface 1 of the VPP space on the working end server, and then the Tap interface of the VPP space on the working end server is connected with the Memif interface 1 of the VPP space on the working end server.
In the process that the second network node and the third network node are connected through the VPP space on the working end server to form a second link, the VPP space on the second network node is connected with the VPP space on the working end server through the Memif interface 2, namely the Memif interface 2 of the VPP space on the second network node is connected with the Memif interface 2 of the VPP space on the working end server; the connection between the DPDK space on the third network node and the VPP space on the working end server is connected through the Memif interface 3, that is, the Memif interface 3 of the DPDK space on the third network node is connected with the Memif interface 3 of the VPP space on the working end server, and then the Memif interface 2 of the VPP space on the working end server is connected with the Memif interface 3 of the VPP space on the working end server. Finally, the Memif interface 1 of the second network node and the Memif interface 2 of the second network node are connected to form a local virtual data link.
In one implementation manner, as shown in fig. 5, the building a cross-machine virtual data link for a network node between working servers based on a user state switch and a physical switch in the working servers specifically includes:
s321, for a first network node, a second network node and a third network node in other working servers in the working server, connecting a Linux space on the first network node and a VPP space on the second network node based on a user mode switch running in the working server to form a first link;
s322, connecting the VPP space on the second network node with the DPDK space on the third network node based on the user state switch and the physical switch running in the working server to form a second link;
s323, connecting the first link and the second link through the VPP space on the second network node to form a cross-machine virtual data link.
Specifically, the first network node and the second network node are located at the same working end server, the third network node is located at a different working end server, for example, the first network node is a common host device, the second network node is a user state switch, and the third network node is a traffic generator, wherein the traffic generator adopts a traffic generator based on DPDK to bypass a Linux network protocol stack of the host node.
A VXLAN tunnel is established between the VPP spaces on the two working end servers, and the VXLAN tunnels between the two VPP spaces are communicated through a physical switch, so that network nodes on the two working end servers can communicate like a local virtual data link, and details of bottom layer traffic are transparent to each network node. It will be appreciated that the VPP space running on the working end server is responsible for encapsulating the traffic of the network node into a format data stream for VXLAN tunneling, and then forwarding the number of streams to the VPP space on the other working end server through the physical switch by the DPDK space, so as to implement the communication of the network nodes on the different working end servers.
Further, the construction process of the first link and the second link in the cross-machine virtual data link is basically the same as the construction process of the first link and the second link in the local virtual data link, and the difference between the two is that when the second link is constructed, the second link in the local virtual data link is directly constructed through the VPP space on the working end server, and the second connection in the cross-machine virtual data link is constructed through the VPP spaces on the two working end servers and the physical switch. The process of constructing the second link may be that the working end server-based user mode switch and the physical switch connect the VPP space on the second network node with the DPDK space on the third network node to form the second link specifically includes: connecting the VPP space on the second network node with the VPP space on the corresponding working server, and connecting the DPDK space on the third network node with the VPP space on the corresponding working server; and establishing a VXLAN tunnel between the VPP space on the working server and the VPP space on the working server corresponding to the third network node through a physical switch so as to form a second link. In addition, the connection modes of the Linux space, the VPP space on the second network node, the VPP space on the working end server and the DPDK space are the same as those in the local virtual data link, and will not be described again here.
In summary, the present embodiment provides a network simulation method based on a cloud native platform and a user-mode switch, where the method includes obtaining network topology parameters of a network to be simulated; allocating network nodes required by the network to be simulated to a working end server according to network topology parameters; the network nodes are configured to form virtual data links based on the user state switches within the working end servers. According to the method and the system, the network node is configured through the user state switch in the working end server, the user state switch is used for replacing the physical switch and the router, the number of the physical switch and the router is reduced, the construction cost of the high-bandwidth simulation network is reduced, and the research cost of the high-bandwidth network is further reduced.
Finally, it should be noted that: the above embodiments are only for illustrating the technical solution of the present application, and are not limiting thereof; although the present application has been described in detail with reference to the foregoing embodiments, it should be understood by those of ordinary skill in the art that: the technical scheme described in the foregoing embodiments can be modified or some technical features thereof can be replaced by equivalents; such modifications and substitutions do not depart from the spirit and scope of the corresponding technical solutions.

Claims (10)

1. The network simulation method based on the cloud native platform and the user state switch is characterized by comprising the following steps:
acquiring network topology parameters of a network to be simulated;
allocating network nodes required by the network to be simulated to a working end server according to the network topology parameters, wherein the network nodes comprise user-mode switches;
the network nodes are configured to form virtual data links based on the user state switches within the working end servers.
2. The network simulation method based on the cloud native platform and the user state switch according to claim 1, wherein the network nodes are constructed in a container form and managed through a container management platform.
3. The network simulation method based on the cloud native platform and the user state switch according to claim 1, wherein the configuring the network node to form the virtual data link based on the user state switch in the working end server specifically comprises:
constructing a local virtual data link for a network node on a working end server based on a user state switch in the working end server;
based on user state exchanger in server of working end and physical exchanger, cross machine virtual data link is constructed for network node between servers of working end.
4. The network simulation method based on the cloud native platform and the user state switch according to claim 3, wherein the constructing a local virtual data link for the network node on the working end server based on the user state switch in the working end server specifically comprises:
for a first network node, a second network node and a third network node in a working end server, connecting a Linux space on the first network node and a VPP space on the second network node based on a user state switch of the working end server to form a first link, wherein the first network node is common host equipment, the second network node is a user state switch, and the third network node is a flow generator;
a user state switch based on a working end server connects the VPP space on a second network node with the DPDK space on the third network node to form a second link;
the first link and the second link are connected through a VPP space on the second network node to form a local virtual data link.
5. The network simulation method based on the cloud native platform and the user state switch according to claim 4, wherein the constructing a cross-machine virtual data link for a network node between the working end servers based on the user state switch and the physical switch in the working end servers specifically comprises:
for a first network node, a second network node and a third network node in other working end servers in the working end server, connecting a Linux space on the first network node and a VPP space on the second network node based on a user state switch of the working end server to form a first link, wherein the first network node is common host equipment, the second network node is a user state switch, and the third network node is a flow generator;
connecting the VPP space on the second network node with the DPDK space on the third network node based on the user state switch and the physical switch of the working end server to form a second link;
the first link and the second link are connected through a VPP space on the second network node to form a cross-machine virtual data link.
6. The network simulation method based on the cloud native platform and the user state switch according to claim 4 or 5, wherein the Linux space is connected with the user state switch of the working end server through a Tap interface, the VPP space is connected with the user state switch of the working end server through a Memif interface, and the first link and the second link are connected through a Memif interface.
7. The network simulation method based on the cloud native platform and the user state switch according to claim 5, wherein the user state switch and the physical switch based on the working end server connect the VPP space on the second network node with the DPDK space on the third network node to form the second link specifically includes:
connecting the VPP space on the second network node with the VPP space on the corresponding working server, and connecting the DPDK space on the third network node with the VPP space on the corresponding working server;
and establishing a VXLAN tunnel between the VPP space on the working server and the VPP space on the working server corresponding to the third network node through a physical switch so as to form a second link.
8. A network simulation system based on a cloud native platform and a user-mode switch, the system comprising:
the front-end program module is used for acquiring network topology parameters of the network to be simulated;
the control end program module is used for allocating network nodes required by the network to be simulated to the working end server according to network topology parameters, wherein the mirror image used by the network nodes comprises a user-mode switch;
and the working end program module is used for configuring the network node based on the user state switch in the working end server to form a virtual data link.
9. The network simulation system based on the cloud native platform and the user-mode switch according to claim 8, wherein the control-side program module comprises:
the front-end service plug-in is used for communicating with the front-end program module through a calling protocol so as to receive network topology parameters transmitted by the front-end program module;
the first database plug-in is communicated with the main database and is used for storing data in the main database and transmitting the network topology parameters to the working end program module through the main database;
and the container management plug-in is used for communicating with the container management platform and configuring network nodes of the container management platform based on network topology parameters, wherein the network nodes are constructed in a container form.
10. The network simulation system based on the cloud native platform and the user state switch according to claim 8, wherein the working end program module comprises:
the second database plug-in is communicated with the main database and is used for receiving the network topology parameters transmitted by the control end program module;
the VPP control plug-in is used for configuring the user-state switch of the working end server;
a Linux control plug-in, configured to configure a network space of a network node, where the network space includes a Linux space or a DPDK space;
and the central control plug-in is used for calling the VPP control plug-in and the Linux control plug-in to allocate based on the network topology parameters so as to form a virtual data link.
CN202310600421.7A 2023-05-25 2023-05-25 Network simulation method and system based on cloud native platform and user state switch Active CN116319380B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310600421.7A CN116319380B (en) 2023-05-25 2023-05-25 Network simulation method and system based on cloud native platform and user state switch

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310600421.7A CN116319380B (en) 2023-05-25 2023-05-25 Network simulation method and system based on cloud native platform and user state switch

Publications (2)

Publication Number Publication Date
CN116319380A true CN116319380A (en) 2023-06-23
CN116319380B CN116319380B (en) 2023-10-20

Family

ID=86832751

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310600421.7A Active CN116319380B (en) 2023-05-25 2023-05-25 Network simulation method and system based on cloud native platform and user state switch

Country Status (1)

Country Link
CN (1) CN116319380B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5774695A (en) * 1996-03-22 1998-06-30 Ericsson Inc. Protocol interface gateway and method of connecting an emulator to a network
CN105763570A (en) * 2016-04-26 2016-07-13 北京交通大学 Virtualization-technology-based distributed real-time network simulation system
CN112311606A (en) * 2020-11-12 2021-02-02 中国科学院计算技术研究所 Method for constructing virtual-real decoupling simulation network
CN112532428A (en) * 2020-11-10 2021-03-19 南京大学 Business-driven large-scale network simulation method and system
CN114371912A (en) * 2021-12-29 2022-04-19 江苏先云信息技术有限公司 Virtual network management method of data center and data center system

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5774695A (en) * 1996-03-22 1998-06-30 Ericsson Inc. Protocol interface gateway and method of connecting an emulator to a network
CN105763570A (en) * 2016-04-26 2016-07-13 北京交通大学 Virtualization-technology-based distributed real-time network simulation system
CN112532428A (en) * 2020-11-10 2021-03-19 南京大学 Business-driven large-scale network simulation method and system
CN112311606A (en) * 2020-11-12 2021-02-02 中国科学院计算技术研究所 Method for constructing virtual-real decoupling simulation network
CN114371912A (en) * 2021-12-29 2022-04-19 江苏先云信息技术有限公司 Virtual network management method of data center and data center system

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
王虎;金以庆;: "基于链路层虚拟化的网络仿真方法", 指挥信息系统与技术, no. 03 *

Also Published As

Publication number Publication date
CN116319380B (en) 2023-10-20

Similar Documents

Publication Publication Date Title
CN103703724B (en) Resource payment method
EP2849064B1 (en) Method and apparatus for network virtualization
CN105409172B (en) Logical switch
CN104734931A (en) Method and device for establishing link between virtual network functions
CN111880902A (en) Pod creation method, device, equipment and readable storage medium
CN103475722A (en) Implement system for business collaboration platform
JP2006033829A (en) Distributed application framework capable of porting
CN102195803B (en) Data communication method and system
CN113055232B (en) Network configuration deployment method, device and equipment
CN112838940B (en) Network controller frame and data processing method
CN114422010B (en) Protocol testing method of satellite communication simulation platform based on network virtualization
CN103067287B (en) Forwarding and realizing under control separation architecture the method for virtual programmable router
CN110086640A (en) The enabled method and apparatus of business
KR20180028499A (en) Method and system for providing ICT service
CN113285816B (en) Control request sending method, device and system based on key value configuration
King et al. The dichotomy of distributed and centralized control: METRO-HAUL, when control planes collide for 5G networks
CN104350704A (en) Self-configuring transport network
Uddin et al. Performance analysis of SDN based firewalls: POX vs. ODL
CN103200067A (en) Dynamic virtual LANs to segregate data
CN108512811A (en) A kind of virtual network partition method and SDN controllers based on SDN
CN116319380B (en) Network simulation method and system based on cloud native platform and user state switch
CN112003825A (en) SDN-based virtual network isolation method and SDN controller
CN114157718B (en) SDN network system and control method thereof
CN106533720B (en) Compiling method and device for network service request and controller
Talhar et al. An adaptive approach for controller placement problem in software defined networks

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