Example for Configuring eMDI to Monitor Quality of a Video Surveillance Network
Networking Requirements
On the video surveillance network shown in Figure 16-7, Switch_1, Switch_2, and Switch_3 need to monitor quality of video streams from IPC_1. The three switches have reachable routes to each other.
Procedure
- Deploy eMDI on Switch_1.
# Configure an eMDI instance with the ID of 1.
<HUAWEI> system-view [HUAWEI] sysname Switch_1 [Switch_1] emdi [Switch_1-emdi] emdi instance 1 [Switch_1-emdi-instance-1] flow ipv4 tcp source 10.1.1.1 destination 10.2.2.2 source-port 1 destination-port 2 //Configure the target flow characteristics. Set the source IP address to 10.1.1.1, destination IP address to 10.2.2.2, source port to 1, and destination port to 2. [Switch_1-emdi-instance-1] end lifetime seconds 300 //Set the lifetime of eMDI instance 1 to 300 seconds. [Switch_1-emdi-instance-1] alarm dplr threshold 1000 //Set the alarm threshold of the downstream packet loss rate to 1000 in eMDI instance 1. [Switch_1-emdi-instance-1] start //Start the eMDI instance.
- Deploy eMDI on Switch_2.
# Configure an eMDI instance with the ID of 1.
<HUAWEI> system-view [HUAWEI] sysname Switch_2 [Switch_2] emdi [Switch_2-emdi] emdi instance 1 [Switch_2-emdi-instance-1] flow ipv4 tcp source 10.1.1.1 destination 10.2.2.2 source-port 3 destination-port 4 //Configure the target flow characteristics. Set the source IP address to 10.1.1.1, destination IP address to 10.2.2.2, source port to 3, and destination port to 4. [Switch_2-emdi-instance-1] end lifetime seconds 300 //Set the lifetime of eMDI instance 1 to 300 seconds. [Switch_2-emdi-instance-1] alarm dplr threshold 1000 //Set the alarm threshold of the downstream packet loss rate to 1000 in eMDI instance 1. [Switch_2-emdi-instance-1] start //Start the eMDI instance.
- Deploy eMDI on Switch_3.
# Configure an eMDI instance with the ID of 1.
<HUAWEI> system-view [HUAWEI] sysname Switch_3 [Switch_3] emdi [Switch_3-emdi] emdi instance 1 [Switch_3-emdi-instance-1] flow ipv4 tcp source 10.1.1.1 destination 10.2.2.2 source-port 5 destination-port 6 //Configure the target flow characteristics. Set the source IP address to 10.1.1.1, destination IP address to 10.2.2.2, source port to 5, and destination port to 6 [Switch_3-emdi-instance-1] end lifetime seconds 300 //Set the lifetime of eMDI instance 1 to 300 seconds. [Switch_3-emdi-instance-1] alarm dplr threshold 1000 //Set the alarm threshold of the downstream packet loss rate to 1000 in eMDI instance 1. [Switch_3-emdi-instance-1] start //Start the eMDI instance.
- Verify the configuration.
The following uses the display on Switch_1 as an example.
# Run the display emdi command on Switch_1 to check the eMDI specifications and current configuration.
[Switch_1] display emdi Specification Information(Main Board): Max Instance Number : 1024 Max UDP Instance Number : 1024 Max TCP Instance Number : 512 Max Static Instance Number : 1024 Max Dynamic Instance Number : 1024 Configuration Information: Current Instance Number : 1 Current Running Instance Number : 1 Current UDP Instance Number : 0 Current TCP Instance Number : 1 Current Static Instance Number : 1 Current Dynamic Instance Number : 0 Specification and Configuration Information(IO Board 1): Max Instance Number : 1024 Current Instance Number : 1
# Run the display emdi statistics instance command on Switch_1 to check the monitoring results of eMDI instance 1.
[Switch_1] display emdi statistics instance 1 Instance ID : 1 Monitor Period(s) : 60 Protocol : TCP ------------------------------------------------------------------------------- Record Monitor MFR DPLR UPLR DRTT Time Status (bps) (1/100000) (1/100000) (us) ------------------------------------------------------------------------------- 2018-09-17:15-31-13 Normal 4865656118 151 2 2 2018-09-17:15-32-13 Normal 4866005390 151 2 2 2018-09-17:15-33-13 Normal 4871215641 151 2 2 2018-09-17:15-34-13 Normal 4871535621 151 2 2 2018-09-17:15-35-13 Normal 4865305356 151 2 2
Configuration Files
- Switch_1 configuration file
# sysname Switch_1 # emdi emdi instance 1 flow ipv4 udp source 10.1.1.1 destination 10.2.2.2 source-port 1 destination-port 2 end lifetime seconds 300 alarm dplr threshold 1000 start # return
- Switch_2 configuration file
# sysname Switch_2 # emdi emdi instance 1 flow ipv4 udp source 10.1.1.1 destination 10.2.2.2 source-port 3 destination-port 4 end lifetime seconds 300 alarm dplr threshold 1000 start # return
- Switch_3 configuration file
# sysname Switch_3 # emdi emdi instance 1 flow ipv4 udp source 10.1.1.1 destination 10.2.2.2 source-port 5 destination-port 6 end lifetime seconds 300 alarm dplr threshold 1000 start # return