Edge Caching Savings Calculator
Try Change Device cache hit rate (%), then press Calculate.
Observe After Calculate, watch Edge-served (device + AP), Cloud backhaul traffic, and Monthly savings.
Explain Describe how cache hit rates change Cloud backhaul traffic after Calculate.
Calculate
Reset
Technical boundaries. Device and AP cache hit rates are added. Cloud traffic cannot fall below zero, but the displayed edge-served percentage is the sum of both hit rates.
viewof cacheUsers = Inputs. range ([100 , 50000 ], {value : 10000 , step : 100 , label : "Number of users" })
viewof monthlyGB = Inputs. range ([1 , 50 ], {value : 15 , step : 1 , label : "Monthly data per user (GB)" })
viewof backhaulCost = Inputs. range ([1 , 20 ], {value : 8 , step : 1 , label : "Backhaul cost ($/TB)" })
viewof deviceHitRate = Inputs. range ([0 , 100 ], {value : 30 , step : 5 , label : "Device cache hit rate (%)" })
viewof apHitRate = Inputs. range ([0 , 100 ], {value : 40 , step : 5 , label : "AP cache hit rate (%)" })
totalTrafficTB = cacheUsers * monthlyGB / 1000
cloudFraction = Math . max (0 , 100 - deviceHitRate - apHitRate) / 100
cloudTrafficTB = totalTrafficTB * cloudFraction
noCacheCost = totalTrafficTB * backhaulCost
withCacheCost = cloudTrafficTB * backhaulCost
cacheSavings = noCacheCost - withCacheCost
edgePercent = deviceHitRate + apHitRate
html `<div style="background: var(--bs-light, #f8f9fa); padding: 1rem; border-radius: 8px; border-left: 4px solid #3498DB; margin-top: 0.5rem;">
<p style="color: var(--bs-body-color); margin: 0;"><strong>Edge Caching Savings Calculator</strong></p>
<table style="width: 100%; margin-top: 0.5rem; color: var(--bs-body-color);">
<tr><th scope="row" style="font-weight: normal; text-align: left;">Total monthly traffic:</th><td><strong> ${ totalTrafficTB. toFixed (1 )} TB</strong></td></tr>
<tr><th scope="row" style="font-weight: normal; text-align: left;">Edge-served (device + AP):</th><td><strong> ${ edgePercent} %</strong></td></tr>
<tr><th scope="row" style="font-weight: normal; text-align: left;">Cloud backhaul traffic:</th><td><strong> ${ cloudTrafficTB. toFixed (1 )} TB</strong> ( ${ (cloudFraction * 100 ). toFixed (0 )} %)</td></tr>
<tr><th scope="row" style="font-weight: normal; text-align: left;">Cost without caching:</th><td><strong>$ ${ noCacheCost. toFixed (0 )} /month</strong></td></tr>
<tr><th scope="row" style="font-weight: normal; text-align: left;">Cost with caching:</th><td><strong>$ ${ withCacheCost. toFixed (0 )} /month</strong></td></tr>
</table>
<p style="margin-top: 0.5rem; margin-bottom: 0; font-size: 1.1em; color: var(--bs-body-color);">
<strong>Monthly savings:</strong> $ ${ cacheSavings. toFixed (0 )} ( ${ noCacheCost > 0 ? (cacheSavings / noCacheCost * 100 ). toFixed (0 ) : 0 } % reduction)
</p>
</div>`
Back to the chapter