# 5. Предотвращение перегрузок

В жизни любого маршрутизатора наступает момент, когда очередь переполняется. Куда положить пакет, если положить его решительно некуда — всё, буфер кончился, совсем, и не будет, даже если хорошо поискать, даже если доплатить.

Тут есть два путя: отбросить либо этот пакет, либо те, что уже очередь забили.\
Если те, что уже в очереди, то считай, что пропалодё.\
А если этот, то считай, что и не приходил он.\
Эти два подхода называются **Tail Drop** и **Head Drop**.

Другие механизмы AQM, которые подходят к вопросу более интеллектуально:

* [RED - Random Early Detection](/sdsm/15.-qos/5.-predotvrashenie-peregruzok-congestion-avoidance/1-red-random-early-detection.md)
* [WRED - Weighted Random Early Detection](/sdsm/15.-qos/5.-predotvrashenie-peregruzok-congestion-avoidance/2-wred-weighted-random-early-detection.md)


---

# 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://linkmeup.gitbook.io/sdsm/15.-qos/5.-predotvrashenie-peregruzok-congestion-avoidance.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.
