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
0
votes
2 answers

Squid packet injection / replace

I have a server which will act as a proxy, using squid. My goal is to have something replace outgoing data. I tried ettercap, no luck whatsoever. The idea is, whatever-will-replace-data needs to run alongside with squid on the same box. Any ideas of…
Adrian A.
  • 85
  • 2
  • 12
0
votes
3 answers

Per-IP bandwidth monitoring and trafic shaping solution for 100Mb network

I have about 30 servers connecting into a Cisco 3500 series switch, with 100M upstream bandwidth. Periodically, one or more of my servers will do a large file transfer which will completely saturate the network and cause 10-15% packet loss to other…
John P
  • 1,659
  • 6
  • 37
  • 56
0
votes
1 answer

How to read and create this type of TCPDUMP

I am having an issue with my tcpdump command i have created. Chances are its wrong. What i want to do is this: Run this command: tc qdisc add dev eth0 root tbf rate 6kbit latency 50ms burst 1540 run this tcpdump: sudo tcpdump host wiki and wiki2…
0
votes
1 answer

How to prioritize openvpn traffic?

I have an openvpn server, with one network interface. VPN traffic is extremely slow. I tried to do traffic control with this configuration (currently): qdisc del dev eth0 root qdisc add dev eth0 root handle 1: htb default 12 class add dev eth0…
aditsu
  • 386
  • 4
  • 10
0
votes
3 answers

Why are some UDP packets getting blocked?

In our organization, we have two test machines running Windows XP. While attempting to test a roll-my-own UDP message server, I found that both could receive small messages (under 2k) just fine. However, when I test sending large packets to both…
Tom A
  • 218
  • 1
  • 3
  • 10
0
votes
3 answers

Distinguishing between types of P2P traffic on a Packet Shaper

I attend and work at a university where we have a packet shaper (an old Packeteer -- 3-ish years old or so) which relegates P2P traffic to the lowest priority in the queue in order to prevent P2P abuse (BitTorrent, etc.). However, the game StarCraft…
Ben Torell
  • 805
  • 1
  • 6
  • 11
0
votes
1 answer

Applying a quota to network bandwidth (guarantee minimum throughput)

I have a 10Mb internet connection (via an ethernet cable) I have five servers that will use this internet connection. I want each server to be able to use as much bandwidth as possible when it is not in use by other servers, but guarantee that each…
DrStalker
  • 6,676
  • 24
  • 76
  • 106
0
votes
0 answers

Add delay to local traffic, not on loopback

I have a (Ubuntu 18.04) server with several network interfaces, and one of them is a LAN interface (call it eth1, on server A, with IP address 192.168.0.1). Several servers are on the same LAN. I would like to add latency between the transmission…
renyuneyun
  • 101
  • 3
0
votes
1 answer

Huge lag with linux Traffic Control - TBF failed?

I've been working with Ubuntu18.04 and trying to shape the traffic with linux tc. Things went well in the passed few months. Here's my commands: # init queue sudo tc qdisc add dev enp2s0 root handle 1:0 tbf rate 20mbit limit 16k burst 10k sudo tc…
0
votes
0 answers

Traffic shaping and artificial latency per IP in a LAN network using tc/netem

for the last few days I have been trying to setup traffic shaping and artificial latency in a local network. Currently I have an Ubuntu 20.04 PC with 2 NICs, where one is connected to the company network and the other shares the connection with an…
gri40
  • 1
0
votes
0 answers

Traffic shaping with tc penalise large downloads

I have this shaping script that is supposed to penalise downloads larger than 10mb by downgrading their connection speed. If I test with one connection the penalty is in effect and the download speed is lowered to set value. If I open a new download…
Romeo Mihalcea
  • 502
  • 1
  • 6
  • 24
0
votes
0 answers

Limit bandwidth by tc per src IP

I would like to limit output bandwith to server in LAN (virtual server in fact) per IP session / or src IP in other words. My following rules on router doesn't work: tc qdisc add dev lxdbr0 root handle 1:0 htb tc class add dev lxdbr0 parent 1:0…
wrkilu
  • 1
0
votes
0 answers

How can I limit download/upload speed for every single user on OpenVPN using TC?

I have an OpenVPN server on CentOS 7 and I want to limit the download/upload speed for every single OpenVPN client to 512 kilo byte per second . From my own researches , I understood that I can accomplish this with TC , but using the scripts here…
master lfc6
  • 27
  • 1
  • 6
0
votes
1 answer

traffic shaping with "netem delay" works ok, but limits upload bandwidth to 330KB/s. Why?

I'm using Ubuntu 9.04 and the kernel 2.6 build-in NETEM tool to delay traffic. After I apply: tc qdisc add dev eth0 root netem delay 100ms The upload bandwidth can't go further than 330KB/s and I have a 100Mbit connection. How can I fix this so…
dsmilkov
0
votes
0 answers

Limit traffic to any one device with nftables meters

I have a Linux server (up-to-date debian buster) acting as a firewall/router to share an Internet connection among several Windows 10 and Ubuntu Linux workstations (5-10, no more than that). Since the LAN is quite a bit faster than the Internet…
qid
  • 111
  • 4
1 2 3
15
16