Full text

1. Introduction

Network performance testing is the core content of network management and maintenance. For network managers, facing the actual IP network that runs business, they usually encounter the following three problems in the daily process of network management and maintenance1. Firstly, the advanced QoS theory and complex QoS configuration commands make it difficult for ordinary network managers to quickly grasp them; Secondly, the formulated network QoS control strategy is difficult to deploy and test in the network where the business is running, in order to verify the correctness of its configuration and the effectiveness of its operation; The third issue is that the actual network running the business cannot undergo QoS capability testing because testing requires manually loa ding network traffic, causing network congestion and inevitably affecting the running network business.

This article proposes and validates a network performance testing method based on the combination of virtual and real networks through the application research of network simulation software, virtual machine technology, and SLA technology2,3,4 . It can not only serve as a testing tool for deploying QoS policies in enterprise networks, but also provide a practical teaching platform for students and beginners in network management to learn QoS technology, train QoS configuration commands, observe, analyze, and understand the principles of QoS technology.

2. Building Network Topology

The virtual network consists of five routers and one server. Five routers simulate the boundary routers (2), aggregation routers (2), and core routers (1) in a real network, respectively. The servers are configured with web services, FTP services, DNS services, etc. 5. In order to simulate long-distance transmission, routers are connected through serial interfaces, and each port is assigned a specific IP address according to its subnet. OSPF routing scheme is uniformly used for intra network routing, and the testing server accesses the network through the F0/0 port of the boundary router, providing network services such as FTP, Web, DNS, etc. This part of the network is mainly used for the research and training of network performance testing methods.

The actual network part is the application network used for QoS testing and verification (such as campus networks and the Internet), including two parts: real networked hosts and Cloud objects in network simulation software. If the real connected host only has one network interface (external network), a Loopback adapter needs to be added to the real connected host to generate an internal network interface (local connection 2). In this way, the two parts can achieve bidirectional interconnection, forming a basic testing environment that combines virtual and real aspects for learning, training, and verifying network performance testing methods.

3. Connection between the virtual network and the application network

Application network refers to the real network connected through the host computer, such as accessing the Internet through campus network or enterprise campus network. In this study, the host computer was connected to the Internet (local connection) through a campus network with a fixed assigned IP address. A Loopback Adapter (Local Connection 2) was added to the host computer, and the "Sharing" attribute of the "Local Connection" was set to "Allow other network users to connect through this computer's Internet connection". At the same time, "Local Connection 2" was selected as the allowed connection. The Win10 system automatically set the IP address of 192.168.137.1/24 for "Local Connection 2", thus meeting the basic conditions for virtual network access to application networks. In order to connect the virtual network with the application network, it is necessary to add Cloud objects in the virtual network and select NIO's "Local Connection 2" to connect to the router in the virtual network6,7. 4. network configuration

4.1. Routing Configuration

The routing configuration of a virtual real hybrid network mainly includes two parts: the routing from the virtual network Abstract: Based on the actual needs of network QoS testing in network engineering, a typical network topology was designed. Using network simulators, virtual machines, and real physical networks, a virtual real hybrid tested network topology was constructed. Combined with NTP network time protocol, Cisco SLA protocol, and ICS and routing technology in Win10 system, a tested network environment with virtual real mutual access was simulated and constructed. On this basis, different types of data streams in actual networks were simulated to detect the main performance parameters of network operation, and verifies a low-cost network QoS testing method.

to the physical network and the routing from the physical network back to the virtual network. The virtual network part adopts OSPF routing protocol, and each router must configure default routing information to reach the physical network; The routing information returned to the virtual network is mainly configured on the real host, including the routing configuration to each subnet within the virtual network.

4.2. Application network access configuration

The above routing configuration can only ensure the interconnection between virtual and real networks at the network layer, and virtual intranets can only access the external network through IP addresses. In order to conveniently access the external network using domain names, it is necessary to configure domain name queries on each router of the GNS3 virtual network using two commands: "IP domain lookup" and "IP name server 192.168.137.1". This way, the external network can be accessed through domain names on the virtual internal network, such as ping www.zqu.edu.cn. In addition, in order for router J2691-2 to simulate the target end of QoS testing, different target function simulations also need to be configured. When conducting VOIP jitter testing, router J2691-2 should simulate the VOIP voice connection end and establish a Loopback interface to allocate IP addresses (such as 1.1.1.1); When conducting simulated HTTP access performance testing, router J2691-2 should simulate a WWW server and configure it according to the following command: Conf term Ip http server Ip http authentication local Username abc privilege 15 password abc Ip http port 80 exit

4.3. Network time configuration

Select a network device as the NTP Server (C7200 router is chosen for this experiment), use the "clock set" command in privileged mode to set the NTP Server time, switch to global configuration mode, specify router C7200 as the "NTP Server", set the time zone, and specify the IP address of the NTP Server. To provide security for time calibration, it is also necessary to set up and enable NTP authentication mechanism on the NTP server side. The NTP client only needs to indicate the NTP Server and NTP authentication information selected for time calibration. The specific setting commands are as follows: NTP Server configuration command: C7200#clock set C7200#config term C7200(config)#NTP master C7200(config)#clock timezone Beijing 8 C7200(config)#NTP server 172.21.2.254 C7200(config)#NTP authentication-key 1 md5 yangfan C7200(config)#NTP trusted-key 1 C7200(config)#NTP authenticate NTP Clent configuration command (using J2691-1 as an example): J2691-1 (config)#NTP server 172.21.2.254 J2691-1 (config)#NTP authentication-key 1 md5 yangfan J2691-1 (config)#NTP trusted-key 1 J2691-1 (config)#NTP authenticate Each NTP client is set to the same settings, and after the settings are completed, the real-time time of each network device will be synchronized with the NTP server.

It should be emphasized that: 1) The IP addresses of each subnet in the GNS3 virtual intranet cannot be on the same network as the IP addresses of the external network connected to the real host, otherwise routing confusion may occur; 2) The real host must configure routes to reach each subnet within the GNS3 virtual network, otherwise, the GNS3 virtual network will not be able to access the external network; 3) Each route in the GNS3 virtual intranet must be configured with a default route to reach the external network, otherwise the connected subnet still cannot access the external network; 4) If the NTP protocol is not configured, the clocks of various devices in the network environment will not be synchronized, and the one-way delay in UDP jitter measurement jobs will return 0 instead of a specific delay value.

5. Network QoS Testing and Analysis

5.1. Calculation of IP SLA Response Time

The core parameter of QoS is network response round -trip time (RTT), but due to the presence of other high priority packets, network devices may need tens or even tens of milliseconds to process incoming packets, which can affect the accuracy of the tested RTT. In response, IP SLA uses timestamps to establish a calculation model for RTT, making the RTT measured between source and destination devices more accurate. When a network device is set as a "Respondent", it will use two timestamps to mark the arrival time of the data packet, one is the "device arrival time" Td generated by the interrupt signal, and the other is the "process arrival time" Tp generated by the Respondent process. In this way, as long as both the source and destination devices use such timestamps, RTT can be accurately calculated.

5.2. IP SLA job configuration

Configuring different IP SLA jobs can simulate the generation of different data streams8 , test different QoS parameters, or test the same QoS parameters in different ways. When configuring non application layer test jobs, it is also necessary to specify parameters such as packet size and the number of job packets sent at once. All test job configurations can choose to configure parameters such as packet interval, job execution frequency, timeout, and threshold as needed.

5.2.1. HTTP job configuration

Conf term Ip sla monitor 1 Type http operation raw url http://192.168.1.1 source-ipaddr 172.21.1.254 //Test the HTTP response time of the virtual machine winServer or Type http operation raw url http://172.21.1.254 source-ipaddr 172.21.1.254 //Test the HTTP response time of the HTTP Server simulated by router J2691-2 or Type http operation raw url http://www.baidu.com source-ipaddr 172.21.1.254 //Test the HTTP response time of the real internet server www.baidu.com http-raw-request get/exec/show/interfaces/crhttp/1.1\r\n \r\n Exit Exit Ip SLA monitor schedule 1 life forever start time now //Start job 1

5.2.2. FTP job configuration

Conf term Ip sla monitor 2 Type ftp operation get url ftp://anonymous:test@192.168.1.1/111.jpg mode active Frequency 30 Exit Ip sla monitor schedule 2 life forever start-time now

5.2.3. DNS job configuration

Conf term Ip sla monitor 3 Type dns target-addr www.zqu.edu.cn name-server 10.0.1.88 source-ipaddr 172.21.1.254 Threshold 2147 Frequency 9 Statistics-distribution-interval 1 Exit Ip sla monitor schedule 3 life forever start-time now 5.2.4. echo job configuration Conf term Ip sla monitor 4 Type echo protocol ipicmpecho 172.21.4.254 [source-ipaddr 172.21.1.254] Request-data-size 200 Frequency 5 Exit Ip sla monitor schedule 4 life forever start-time now 5.2.5. jitter job configuration Conf term Ip sla monitor 5 Type jitter dest-ipaddr 1.1.1.1 dest-port 14280 codec g711alaw advantage-factor 1 Request-data-size 200 Frequency 10 Exit Ip sla monitor schedule 5 life forever start-time now

5.3. Collect network performance testing parameters

To collect parameters at the network edge, a virtual host needs to be added. In the absence of corresponding network management software, the single or multiple statistical test results of the corresponding job can only be displayed through the corresponding command line in command mode. Figures 1-3 correspond to the single respectively test results of jobs 1 to 3.

Table 1. Main parameters of VOIP jitter test when the network is normal parameter describe Test values response time RTT (MS) RTTAvg Average Commute Time 57 RTTMin Minimum round-trip time 1 RTTMax Maximum round-trip time 108 NumofRTT Number of tests 16985 Voice scores MinofICPIF Minimum ICPIF 1 MaxofICPIF Maximum ICPIF 1 MinofMOS Minimum MOS 4.34 MaxofIMOS Maximum MOS 4.34 Packet loss Values Packet lossSD Source to target direction packet loss 0 Packet lossDS Target to source direction packet loss 0 jitter values (MS) MinofpositiveSD Minimum positive jitter from source to target 1 MaxofpositiveSD Maximum positive jitter from source to target 999 MinofnegitiveSD Minimum negative jitter from target to source 1 MaxofnegitiveSD Maximum negative jitter from target to source 23 One Way vlues NumofOW Number of unidirectional tests 15941 OWminSD Minimum unidirectional value from source to target 2 OWmaxSD Maximum unidirectional value from source to target 76 OWminDS Minimum unidirectional value from target to source 1 OWmaxDS Maximum unidirectional value from target to source 76 Figure 1. HTTP single test situation Figure 2. FTP single test situation Figure 3. DNS Single Test Situation Figure 4. Response time RTT statistical test results

Figure 4 shows the RTT statistical test results for Assignment 4, and the test results for Assignment 5 are summarized in Table 1.

6. Conclusion

The QoS testing method based on virtual network environment proposed in this paper can train real network QoS configuration and performance testing technology by building the tested network topology that conforms to real network engineering through network simulator, and configuring QoS policies and network performance testing operations in it, which greatly reduces the cost of network management and network professional talent training. It has practical application value for network management and network management teaching in colleges and universities.

Conflict and interest

The authors confirm that this article content has no conflict of interest.

Figures

Article figure
Article figure
Article figure
Article figure