# Calculation of metrics

## Cyberweather

The calculation of cyber weather (cybertoxicity in cyT) is performed as follows:

$$
cyT = 1 \* in + 10 \* out \text{, with }\begin{cases} \text{ } in \text{ the number of toxic flows IN} \ \text{ } out\text{ the number of toxic flows OUT}\end{cases}
$$

The weighting of an **OUT** toxic flow is much more important because it represents a network device that initiates a communication to a toxic IP address.

There are 5 different levels of cyberweather:

<table><thead><tr><th width="287.3058082501834" align="center">Cybertoxicity (cyT)</th><th align="center">Icon</th></tr></thead><tbody><tr><td align="center">Equal to zero</td><td align="center"><img src="https://3649415055-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FWc1Xp1HIov409xra1MoW%2Fuploads%2FP9BXqmeFKDom8TxEPrsF%2Fcyt-0.svg?alt=media&#x26;token=f106cb78-a791-41c1-bd11-01b729217142" alt="" data-size="line"></td></tr><tr><td align="center">Between 1 and 5 inclusive</td><td align="center"><img src="https://3649415055-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FWc1Xp1HIov409xra1MoW%2Fuploads%2FS13pFzLVGZnKMPWRLfSl%2Fcyt-1.svg?alt=media&#x26;token=5b7f6c43-06a4-4083-be67-1dd95aae514a" alt="" data-size="line"></td></tr><tr><td align="center">Between 6 and 10 inclusive</td><td align="center"><img src="https://3649415055-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FWc1Xp1HIov409xra1MoW%2Fuploads%2FH2rW43XYExxM4xGoTbu9%2Fcyt-2.svg?alt=media&#x26;token=d7e6dc01-7426-479f-add0-fbc1f17f7915" alt="" data-size="line"></td></tr><tr><td align="center">Between 11 and 99 inclusive</td><td align="center"><img src="https://3649415055-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FWc1Xp1HIov409xra1MoW%2Fuploads%2FtSpfAAPpfMQyrg40uVlB%2Fcyt-3.svg?alt=media&#x26;token=bb6068cc-b60c-45b9-b055-395f887f4d35" alt="" data-size="line"></td></tr><tr><td align="center">100 and more</td><td align="center"><img src="https://3649415055-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FWc1Xp1HIov409xra1MoW%2Fuploads%2FCs7pPDvCR9tnI9NVmbHo%2Fcyt-4.svg?alt=media&#x26;token=d6762e90-9475-4e39-b326-0436fcbb830b" alt="" data-size="line"></td></tr></tbody></table>

## Cybercarbon

The cyber carbon represents the **equivalent in CO2 emissions** (CO2e) of the **volume of the network flows**.

According to the ADEME (French Environment and Energy Management Agency) and a report posed in January 2022, the study shows that the environmental impact of data transmission on :

* a **fixed** network (about **18 gCO2e / Go**)
* a **mobile** network (estimated at 50 gCO2e / Go)

{% embed url="<https://expertises.ademe.fr/economie-circulaire/consommer-autrement/passer-a-laction/reconnaitre-produit-plus-respectueux-lenvironnement/dossier/laffichage-environnemental/affichage-environnemental-secteur-numerique>" %}
Source of the environmental impact of fixed and mobile networks
{% endembed %}

In the case of Serenicity, the majority of the devices are installed on **fixed networks**.\
Therefore, the calculation is as follows:&#x20;

$$
cyC \text{ (in gCO2e) }= \frac{18 \* x}{10^9} \text{, with } x \text{ the sum of the flows in bytes}
$$

{% hint style="info" %}
The notation **gCO2e / kgCO2e** means **gram / kilogram CO2 equivalent**.
{% endhint %}
