In Figure 1, the end-to-end packet loss statistics collection function is configured on SwitchA and SwitchB to analyze packet loss performance of the VPN between SwitchA and SwitchB. SwitchA functions as the measurement control point (MCP) in the statistics collection system to summarize statistics data.
The network maintenance personnel want SwitchA to send the collected statistics to the FTP server for further analysis. SwitchA connects to the FTP server through the network and there are reachable routes between them.
The configuration roadmap is as follows:
Configure Packet Conservation Algorithm for Internet (iPCA) on SwitchA and SwitchB to collect end-to-end packet loss statistics.
Enable the performance statistics collection function, create a performance statistics collection task, and bind the task to instances.
Configure SwitchA to automatically send statistics files to the FTP server.
# See iPCA Configuration to configure iPCA. The configuration of iPCA is not mentioned here.
# Enable the performance statistics collection function, create a performance statistics collection task, and bind all the instances in IP flow performance measurement (FPM) of iPCA.
<HUAWEI> system-view [HUAWEI] sysname SwitchA [SwitchA] pm [SwitchA-pm] statistics enable [SwitchA-pm] statistics-task stream [SwitchA-pm-statistics-stream] binding instance-type ipfpm all
# Set the performance statistics collection cycle to 5 minutes and the number of performance statistics collection intervals to 2. That is, the system saves collected performance statistics in statistics files every 10 minutes.
[SwitchA-pm-statistics-stream] statistics-cycle 5 Warning: All data of the statistics task will be deleted. Continue? [Y/N]:y [SwitchA-pm-statistics-stream] record-interval 2 Warning: All data of the statistics task will be deleted. Continue? [Y/N]:y [SwitchA-pm-statistics-stream] quit
# Create a performance management server process, and specify the type, IP address, user name, password, and file upload directory of the performance management server.
[SwitchA-pm] pm-server ftpserver [SwitchA-pm-server-ftpserver] protocol ftp ip-address 10.1.1.1 [SwitchA-pm-server-ftpserver] username user1 password pwd123 [SwitchA-pm-server-ftpserver] path d:/pmdata [SwitchA-pm-server-ftpserver] quit
# Configure SwitchA to automatically send statistics files to the FTP server.
[SwitchA-pm] upload-config req1 server ftpserver [SwitchA-pm] statistics-task stream [SwitchA-pm-statistics-stream] upload auto req1 [SwitchA-pm-statistics-stream] return
# Check the configuration of the performance statistics collection task.
<SwitchA> display pm statistics-task stream Task Name : stream Task State : running Record-file Status : enable Threshold Alarm Status : disable Task Cycle : 5 minutes Sample Interval : 1 minute Instance Type : ipfpm Record Interval(cycle) : 2 File Format : text File Name Prefix : stream File Transfer Mode : active Current File Name : stream20140415154000.txt
# Check performance statistics files in the directory d:/pmdata on the FTP server. The operation procedure is not provided here.
SwitchA configuration file
# sysname SwitchA # pm statistics enable pm-server ftpserver protocol ftp ip-address 10.1.1.1 username user1 password %^%#XGl-6~|CU>v0KaYG:LCINi0F!m/Q"SM^Pk.HL~z>%^%# path d:/pmdata upload-config req1 server ftpserver statistics-task stream statistics-cycle 5 record-interval 2 upload auto req1 binding instance-type ipfpm all # return