# Performance Analysis of Cache Based on Popularity and Class in Named Data Network
## 5 Simulation Models and Results
### Test Results  
The simulation result in Figure 8 (above) shows the first class cache hit ratio, while Figure 8 (below) indicates path stretch of Dynamic-CAPIC, Static-CAPIC, and LCD+sharing scheme. Figure 9 (above) and Figure 10 (above) shows the cache hit ratio while Figure 9 (below) and Figure 10 (below) illustrates the path stretch for second class and third class Dynamic-CAPIC, Static-CAPIC, and LCD+sharing scheme. The network cache hit ratio of Dynamic-CAPIC, Static-CAPIC, and LCD+Sharing scheme are presented in Figure 11. Furthermore, graphs comparing the cache hit ratio, and each content class's path stretch in an internal Dynamic-CAPIC, Static-CAPIC, and LCD+sharing scheme, respectively, are shown in Figures 12-14. \begin{table}
\begin{tabular}{p{142.3 pt} p{142.3 pt}} \hline \hline
**Parameter** & **Value** \\ \hline Number of routers & 20 \\ \hline Number of class & 3 \\ \hline Content store proportion for static-CAPIC (classes 1, 2, and 3) & 1. Dynamic-CAPIC = dynamic, according to the formula \\ \hline  & 2. Static-CAPIC = 15:43:92 (5\%, 10\% and 15\% of content number, normalized) \\ \hline  & 3. LCD+Sharing scheme = sharing \\ \hline Number of content & 500 (1 st class); \\ \hline  & 700 (2 nd class); \\ \hline  & 1000 (3 rd class) \\ \hline Number of rounds & 10,000 \\ \hline Average request rate per round for each class & 10 (1 st class) \\ \hline  & 20 (2 nd class) \\ \hline  & 30 (3 rd class) \\ \hline Exp factor & 0.8 \\ \hline Flattened factor & 3 \\ \hline \(F_{Rk}\) & 25, 50, 75, 100, 125, 150, 175 \\ \hline Scenario & Simulating the Dynamic-CAPIC vs. Static-CAPIC with a variety of Frequency Limit factor \\ \hline \hline \end{tabular}
\end{table} 
Table 2: Simulation parameters. Figure 8: Cache hit ratio (**above**) and path stretch (**below**) 1 st class of Dynamic-CAPIC, Static-CAPIC, and LCD+sharing scheme. Figure 10: Cache hit ratio (**above**) and path stretch (**below**) 3 rd class of Dynamic-CAPIC, Static-CAPIC, and LCD+sharing scheme. Figure 9: Cache hit ratio (**above**) and path stretch (**below**) 2 nd class of Dynamic-CAPIC, Static-CAPIC, and LCD+sharing scheme. Figure 11: Network cache hit ratio Dynamic-CAPIC, Static-CAPIC, and LCD+sharing scheme. Figure 12: Performance of Dynamic-CAPIC. Figure 13: Performance of Static-CAPIC. Dynamic-CAPIC gave the highest cache hit ratio for the first class compared to Static-CAPIC and LCD+sharing scheme. Dynamic-CAPIC gave a 130.7% in an average increase in the cache hit ratio compared to Static-CAPIC, and a 92.4% in an average increase compared to the LCD+sharing scheme. The Dynamic-CAPIC produces the highest cache hit ratio for the first class compared to the second and third classes, are shown in Figure 12. This result is as expected where the first class is concerned with jitter and delay, so content is expected to be available at the nodes in the network without asking the producer, which has the longest distance from the consumer. The condition is different for the Static-CAPIC algorithm. Static-CAPIC gives the largest cache hit ratio to the third class, instead of the first class, as shown in Figure 13. Dynamic-CAPIC corrects this condition. For the path stretch parameter, as in Figure 8 (below), the path stretch of Dynamic-CAPIC is similar to Static-CAPIC. For the second class, LCD+sharing schemes provide a higher cache hit ratio than Dynamic-CAPIC and Static-CAPIC algorithm, as in Figure 9 (above). The cache hit ratio of LCD+sharing scheme is 6.95% in an average higher compared to Dynamic-CAPIC. Dynamic-CAPIC has a cache hit ratio that is higher than Static-CAPIC by 4.21%. Dynamic-CAPIC cache hit ratio lies between LCD+sharing scheme's and Static-CAPIC's cache hit ratio. Dynamic-CAPIC compromises the cache hit ratio in this second content class to provide a larger cache hit ratio for the first class. For the path stretch parameter, it is similar between Dynamic-CAPIC and Static-CAPIC as in Figure 9 (below).