# Traffic Shaping⁣⁣⁣⁣⁣⁣⁣

The "Traffic Shaping" section allows to manipulate the data streams flowing through the device. Up to 200 logical channels can be created, characterized by different properties (such as priority levels and data transfer rates), and then the data streams can be assigned to these logical channels according to the special rules, previously created. In order to configure distribution of the transmit rate between several channels, can be created the class.

In the default configuration, there is no channel or class created.

Create the class by clicking the "**Add Class**" button, to set the transmit rate redistribution for one or more channels.

<table><thead><tr><th width="182">Parameter</th><th>Description</th></tr></thead><tbody><tr><td><strong>Class</strong></td><td>Service class number in the range 1-200</td></tr><tr><td><strong>Max</strong></td><td>Maximal available transmit rate in Kbps</td></tr></tbody></table>

You can delete an existed class by clicking the corresponding "**Remove Class**" button.

<figure><img src="https://2734851754-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FnG7V17JtC1mMJOmveKc6%2Fuploads%2Fyi0uJkoTlfl5UwR1plgZ%2Fimage.png?alt=media&#x26;token=0fc5fe90-a052-44d0-8266-03eb6fab089d" alt=""><figcaption></figcaption></figure>

In order to prioritize the data flows and/or to set the data transfer rates, create the logical channels by clicking the "**Add Channel**" button.

The following parameters can be configured in the "Traffic Shaping" section for the logical channels:

<table><thead><tr><th width="184">Parameter</th><th>Description</th></tr></thead><tbody><tr><td><strong>Channel</strong></td><td><p>Select the logical channel from the dropdown list.</p><p>All the parameters of this rule are applied to this channel.</p></td></tr><tr><td><strong>Priority</strong></td><td><p>Set the priority for the packets going through the new rule of the filter:</p><ul><li>“<em>Up to</em>” - used to increase the packet priority to the specified value only if the processed packet has a lower priority.</li><li>“<em>Set</em>” - used to assign a new priority regardless of the value already assigned to the packet.</li></ul></td></tr><tr><td><strong>Direction</strong></td><td><p>Set the input/output direction for applying the new rule:</p><ul><li>“<em>Input</em>” - the rule is used to process inbound traffic.</li><li>“<em>Output</em>” - the rule is used to process outbound traffic and for post-routing packet filtering.</li></ul></td></tr><tr><td><strong>Interface</strong></td><td><p>Set the interface for applying the new rule.</p><p>All the available interfaces are displayed in the dropdown list (physical and logical).</p><p>If “<em>any</em>” option is used, the rule is applied to all available interfaces.</p></td></tr><tr><td><strong>Group</strong></td><td><p>Set the Switch Group number for the applying of the new rule.</p><p>The Switch Group must be prior created.</p></td></tr><tr><td><strong>Rule</strong></td><td><p>Set the packet capture filter.</p><p>It is the same syntax called “PCAP expression”, as in the "Switching" section.</p><p>Refer to the filter expression syntax description above.</p><p>Validate the rule by clicking the «<strong>Validate</strong>» button.</p></td></tr></tbody></table>

You can delete an existed traffic shaping rule by clicking the corresponding «**Remove Rule**» button.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://wiki.astrawireless.net/astra-wireless-documentation/technical-documentation/astra-evolution-technical-user-manual/operation-and-administration/basic-settings/traffic-shaping.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
