# The bandwidth schedule

The server can hold all transfers together under a speed, and the speed can change with the time of day: slow during office hours, unlimited at night. The schedule is in the first panel of [General Settings](Prefs-General.md), one list for each direction.

![The two speed schedules](Prefs-General-Bandwidth/schedule.png)

| List | Limits |
|---|---|
| **Max Server Outgoing Speed** | what the server sends: the downloads of all users together |
| **Max Server Incoming Speed** | what the server receives: the uploads of all users together |

A new server has no entries, "No time based speed set.", and no limit.

## Adding and removing entries

An entry is a time of day and a speed in K/sec (kilobytes per second). From that time on the server uses that speed, until the time of the next entry.

1. Pick the time in the first box. The clock button opens a time picker.
2. Type the speed in the second box. `0` means no limit.
3. Click **Add**, or press Enter in either box.

The entry appears above the boxes, sorted by time. The **×** on an entry removes it. Nothing is applied until you press **Save** at the bottom of the page.

| Message | Why |
|---|---|
| "Enter a time first, such as 07:00 AM." | no time was picked |
| "Enter a speed in K/sec." | the speed box is empty |
| "… is not a valid speed" | the speed is not a number |
| "… exists." | there is already an entry for that time |

## Which entry is in force

The entry in force is the latest one whose time has passed today. Before the first entry of the day, the first entry is in force: the schedule does not carry the last entry of yesterday over midnight.

So start every schedule with an entry at 12:00 AM. The picture above reads:

| Entry | Means |
|---|---|
| 12:00 AM · 0 K/sec | no limit from midnight |
| 07:00 AM · 2000 K/sec | at most 2000 K/sec from 7 in the morning |
| 07:00 PM · 0 K/sec | no limit again from 7 in the evening |

Without the first entry, the 2000 K/sec of 7 in the morning would also apply from midnight to 7.

A single entry, at any time, is a limit that holds all day.

The times are those of the server's clock. A transfer that is running when the time of an entry comes follows the new speed.

## What the limit does

- It is a limit for the whole server and one direction: all downloads together stay under the outgoing speed, all uploads together under the incoming speed.
- No single user gets more than the limit either.
- A user's own **Max Download Speed** and **Max Upload Speed** (User Manager) still apply. The lower of the user's limit and the server's limit counts for that user.
- The server slows a transfer by pausing it for moments. On a fast network a low limit is kept on average, not second by second.

## Addresses without a limit

**IP Patterns Immune To Speed** lists the addresses the server-wide limits do not apply to, for example the machines of your own network. Several patterns are separated by commas, and `*` stands for any part of an address:

```
10.0.1.*,192.168.5.20
```

A transfer from such an address is not slowed by the schedule and does not wait for the others. A user's own speed limit still applies to it.
