> Source: [sk139732](https://support.checkpoint.com/results/sk/sk139732)

# sk139732 - Total byte calculation for bytes/packets in SmartLog  is incorrect 

| Property | Value |
|----------|-------|
| Solution ID | sk139732 |
| Date Created | 2018-11-07 |
| Last Modified | 2019-08-03 |
| Technical Level | Advanced |
| Products | Logging & Status |
| Versions | R82.10, R82.20, R81.20, R82 |
| OS | Gaia |

## Symptoms

- There is a wrong calculation for total bytes in Smartlog. in the SmartLog, there is section for Total bytes and it is displayed as follows:

```

"Bytes (sent\receive):"

the Sent bytes was calculated as:
Sent : client inbound + client outbound

the receive bytes was calculated as:
Receive: server inbound + server outbound
```

<br />

This is an incorrect calculation.   

![](https://sc1.checkpoint.com/sc//SolutionsStatics/sk139732/bytes1811070037.png)

## Cause

The correct calculation for total bytes is:

Bytes (sent\\receive) = server outbound (sent) + client outbound (receive)  
Sent = server outbound  
Receive = client outbound

**Background:**

Those sent and received stats is based on firewall point of view.

* Client inbound is the traffic the client sends (to firewall, so at firewall, it is client side inbound traffic).
* Client outbound is the traffic which is sent from the server and the client is receiving (firewall is forwarding the server traffic to client, to firewall it is client side outbound traffic).
* Server inbound is the traffic the server sends (to firewall).
* Server outbound is the traffic sent from the client and the server is receiving (firewall is forwarding the client traffic to server, to firewall it is server side outbound traffic).

## Solution

This solution requires authentication. Please log in to view the full solution.

---

# Agent Instructions

This content is from the Check Point Support Center (https://support.checkpoint.com), the official knowledge base for Check Point cybersecurity products.

## Navigating This Knowledge Base

- **Complete index**: [llms.txt](https://support.checkpoint.com/llms.txt)
- **All SK articles**: [SecureKnowledge Sitemap](https://support.checkpoint.com/sitemaps/secureknowledge-sitemap-index.xml)
- **SK article URL pattern**: `https://support.checkpoint.com/results/sk/{skId}`
- **Markdown responses**: AI bot User-Agents automatically receive `text/markdown` content
