## 6 Performance Results
### Video Latency
\begin{table}
\begin{tabular}{c c c c c c c c c c c} \hline \hline \multicolumn{2}{c}{**Test Name**} & \multicolumn{1}{c}{**Protocol**} & \multicolumn{1}{c}{**Encoding**} & \multicolumn{1}{c}{**Encrypted**} & \multicolumn{1}{c}{**Data Length**} & \multicolumn{1}{c}{**Arithmetic**} & \multicolumn{1}{c}{**Median**} & \multicolumn{1}{c}{**Min Value**} & \multicolumn{1}{c}{**Max Value**} & \multicolumn{1}{c}{**Deviation**} \\  & \multicolumn{1}{c}{} & \multicolumn{1}{c}{} & \multicolumn{1}{c}{} & \multicolumn{1}{c}{} & \multicolumn{1}{c}{} & \multicolumn{1}{c}{} & \multicolumn{1}{c}{} & \multicolumn{1}{c}{} & \multicolumn{1}{c}{} & \multicolumn{1}{c}{} & \multicolumn{1}{c}{} & \multicolumn{1}{c}{} & \multicolumn{1}{c}{} \\ \multirow{4}{*}{Group 1} & \multirow{2}{*}{Case 1} & TCP & H264 & NO & 128 & 1449.01 & 1448.36 & 1163.24 & 1742.285 & 52.57 \\  & & TCP & H264 & YES & 128 & 1468.00 & 1464.37 & 1368.38 & 1680.23 & 55.37 \\ \cline{2-11}  & \multirow{2}{*}{Case 2} & UDP & H264 & NO & 128 & 1376.72 & 1379.02 & 1276.35 & 1493.63 & 33.01 \\  & & UDP & H264 & YES & 128 & 1382.22 & 1387.32 & 1341.13 & 1474.67 & 26.04 \\ \cline{2-11}  & \multirow{2}{*}{Case 3} & TCP & MJPEG & NO & 128 & 1071.16 & 1071.52 & 894.56 & 1392.23 & 37.29 \\  & & TCP & MJPEG & YES & 128 & 1117.00 & 1117.66 & 979.33 & 1239.15 & 21.15 \\ \cline{2-11}  & \multirow{2}{*}{Case 4} & UDP & MJPEG & NO & 128 & 586.16 & 584.14 & 557.27 & 666.12 & 14.62 \\  & & UDP & MJPEG & YES & 128 & 868.33 & 867.08 & 845.42 & 910.08 & 11.89 \\ \hline \multirow{4}{*}{Group 2} & \multirow{2}{*}{Case 6} & TCP & H264 & NO & 256 & 1429.15 & 1428.59 & 1368.62 & 1541.27 & 24.82 \\  & & TCP & H264 & YES & 256 & 1430.91 & 1426.33 & 1365.82 & 1828.51 & 44.35 \\ \cline{2-11}  & \multirow{2}{*}{Case 7} & UDP & H264 & NO & 256 & 1399.67 & 1393.27 & 1293.2 & 1522.47 & 34.87 \\  & & UDP & H264 & YES & 256 & 1402.75 & 1414.91 & 1299.60 & 1499.92 & 40.47 \\ \cline{2-11}  & \multirow{2}{*}{Case 7} & TCP & MJPEG & NO & 256 & 998.38 & 999.15 & 964.13 & 1031.71 & 16.22 \\  & & TCP & MJPEG & YES & 256 & 1150.59 & 1147.46 & 1121.58 & 1202.80 & 14.46 \\ \cline{2-11}  & \multirow{2}{*}{Case 8} & UDP & MJPEG & NO & 256 & 816.02 & 816.08 & 794.52 & 876.98 & 12.31 \\  & & UDP & MJPEG & YES & 256 & 843.19 & 843.74 & 820.94 & 883.43 & 11.17 \\ \hline \multirow{4}{*}{Group 3} & \multirow{2}{*}{Case 9} & TCP & H264 & NO & 512 & 1413.37 & 1409.64 & 1355.42 & 1562.79 & 33.75 \\  & & TCP & H264 & YES & 512 & 1481.81 & 1469.33 & 1412.66 & 1578.85 & 45.33 \\ \cline{2-11}  & \multirow{2}{*}{Case 10} & UDP & H264 & NO & 512 & 1372.62 & 1375.25 & 1282.46 & 1660.71 & 66.47 \\ \cline{2-11}  & & UDP & H264 & YES & 512 & 1411.26 & 1408.00 & 1386.23 & 1543.13 & 21.98 \\ \cline{2-11}  & \multirow{2}{*}{Case 11} & TCP & MJPEG & NO & 512 & 1047.59 & 1150.67 & 713.31 & 1911.16 & 128.47 \\ \cline{2-11}  & & TCP & MJPEG & YES & 512 & 1108.69 & 1106.81 & 1086.19 & 1179.45 & 16.62 \\ \hline \multirow{4}{*}{Case 12} & UDP & MJPEG & NO & 512 & 673.76 & 671.40 & 647.55 & 736.3 & 15.62 \\ \cline{2-11}  & \multirow{2}{*}{Upper} & MJPEG & YES & 512 & 724.86 & 720.32 & 682.40 & 974.49 & 39.81 \\ \cline{2-11}  & & \multicolumn{1}{c}{} & \multicolumn{1}{c}{} & \multicolumn{1}{c}{} & \multicolumn{1}{c}{} & \multicolumn{1}{c}{} & \multicolumn{1}{c}{} & \multicolumn{1}{c}{} & \multicolumn{1}{c}{} \\ \end{tabular}
\end{table} 
Table 2: Scenario 1 test video latency results. Figure 11: Video latency Group 1. Figure 12: Video latency Group 2. Figure 13: Video latency Group 3. Comparison can be made based on the mean video latency measurements for secure and insecure video. In most cases, tests with encryption have higher video latency values than the tests without encryption. There are two cases which can be considered the best: Case 5 and Case 6. The difference between encrypted and unencrypted video latency is 1.76 ms (in Case 5) and 3.08 ms (in Case 6). In addition, it is found that when encryption is enabled, cases with MJPEG encoding algorithms perform worse than cases with H264.