Questions tagged [traffic-shaping]

Traffic shaping is a technique to delay some or all datagrams to comply with desired traffic profile.

Traffic shaping is a network traffic management technique which delay some or all datagrams to bring them into compliance with a desired traffic profile. Traffic shaping is used to optimize or guarantee performance, improve latency, and/or increase usable bandwidth for some kinds of packets by delaying other kinds.

232 questions
36
votes
4 answers

Does anyone really understand how HFSC scheduling in Linux/BSD works?

I read the original SIGCOMM '97 PostScript paper about HFSC, it is very technically, but I understand the basic concept. Instead of giving a linear service curve (as with pretty much every other scheduling algorithm), you can specify a convex or…
Mecki
  • 799
  • 1
  • 6
  • 16
29
votes
1 answer

Minimal rate and default class problem for HTB

I have some doubts about a HTB structure I'm using. My aim is to limit the download and upload speed of users in a local network. Each user of the network has a personal list of domains with a down and up speed for the domain he cannot exceed. It…
Mulot
  • 484
  • 4
  • 10
23
votes
4 answers

Using tc to delay packets to only a single IP address

I am new to using tc and netem. I want to delay packets being sent to a specific IP address. However, the commands below cause all packets on the system to be delayed, instead of just to the IP address 1.2.3.4: tc qdisc del dev eth0 root tc qdisc…
Matt White
  • 707
  • 1
  • 5
  • 17
23
votes
3 answers

Tc: ingress policing and ifb mirroring

I'm trying to setup traffic shaping on a Linux gateway as written here. The script needs to be customized because I have multiple LAN interfaces. So to shape the LAN side I am planning to create a ifb pseudo device like so: modprobe ifb ip…
nixnotwin
  • 1,513
  • 5
  • 34
  • 54
16
votes
3 answers

How can I do traffic shaping in Linux by IP?

We have a transparent proxy setup. I tried looking for traffic shaping in Linux, and all I could find online was to limit traffic by interface (eth0/eth1...). I need to limit the bandwidth (never exceeding a specific limit) by IP address or IP…
Osama ALASSIRY
  • 794
  • 3
  • 7
  • 22
16
votes
3 answers

Throttle bandwidth via iptables

I have a need to throttle the bandwidth usage, similar to how some ISPs do it, so that after a couple of seconds, it throttles down the speed.
Glen Solsberry
  • 1,506
  • 5
  • 28
  • 35
13
votes
6 answers

Rate-limiting incoming traffic

I've never quite understood whether or not it's possible to rate-limit incoming traffic. I realize that there is no direct method whereby to control the remote server's rate of sending packets (unless you're in control of both endpoints), but taking…
Richard Keller
  • 2,270
  • 2
  • 18
  • 31
12
votes
5 answers

tc u32 --- how to match L2 protocols in recent kernels?

I have a nice shaper, with hashed filtering, built at a linux bridge. In short, br0 connects external and internal physical interfaces, VLAN tagged packets are bridged "transparently" (I mean, no VLAN interfaces are there). Now, different kernels do…
brownian
  • 291
  • 3
  • 13
12
votes
2 answers

Linux TC class/filter numbering

I'm currently working on a traffic shaping solution for ISP-level companies, and came to an interesting (kindof philosophical) problem. Looking about the number of endpoints the system should handle (which is around ~20k) I got a little worried what…
exa
  • 571
  • 4
  • 14
11
votes
6 answers

What is the best solution for traffic control in a large system (ca. 2000 users)?

following situation: We're a group of students administering the internet connection for the local resident halls, with a total of about 2000 end users. We have a traffic point system, every MB down- or upload costs points, new points are added by…
Christoph Wurm
  • 299
  • 2
  • 12
10
votes
3 answers

bandwidth shaping, the best approach

Let's say I have a server with a lot of external IPs, 1024+. My users are causing heavy traffic but not all of them. The ones eating all the bandwidth are few and cause the other ones to suffer from low internet speed because they eat all…
Romeo M.
  • 225
  • 1
  • 2
  • 5
10
votes
3 answers

Simulating a slow connection with tc

I have a linux box (Centos 5.5) on which I want to limit the network traffic. I have an application that we distribute to clients and I want to test it on the minimum recommended bandwidth of 256Mbit/sec. So far the tc tutorials I have seen seem…
rancidfishbreath
  • 311
  • 1
  • 7
  • 15
10
votes
1 answer

Sharing Bandwidth and Prioritizing Realtime Traffic via HTB, Which Scenario Works Better?

I would like to add some kind of traffic management to our Internet line. After reading a lot of documentation, I think HFSC is too complicated for me (I don't understand all the curves stuff, I'm afraid I will never get it right), CBQ is not…
Mecki
  • 799
  • 1
  • 6
  • 16
9
votes
3 answers

Limiting interface bandwidth with tc under Linux

I have a linux router which has a 10GBe interface on the outside and bonded Gigabit ethernet interfaces on the inside. We have currently budget for 2GBit/s. If we exceed that rate by more than 5% average for a month then we'll be charged for the…
hookenz
  • 14,132
  • 22
  • 86
  • 142
9
votes
5 answers

Blocking BitTorrent

How can one block, or severely slow down, BitTorrent and similar peer-to-peer (P2P) services on one's small office network? In searching Server Fault I wasn't able to find a question that served as a rallying point for the best technical ideas on…
duozmo
  • 193
  • 4
1
2 3
15 16