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.

239 questions
0
votes
1 answer

Limit bandwidth for incoming packets to specific ip and port

I have a Linux server application running on a specific IP and PORT. Incoming packets need to be manipulated and put into an nfqueue based on sources and ports, for example: iptables -t raw -A PREROUTING -p udp --src 192.168.1.100 --sport 8000 -j…
seq16
  • 1
  • 1
0
votes
0 answers

Traffic control with tc qdisc taprio

Currently, I am working on a TSN project and I am trying to implement a TSN scenario in a Ubuntu 20.04 VM. I leverage on tc qdisc command: tc qdisc replace dev gateway-eth0 parent root handle 100 taprio \ num_tc 8 \ map 0 1 2 3 4 5 6 7 1 1 1 1 1 1…
Gpapa
  • 1
  • 1
0
votes
0 answers

Linux traffic balacning over multiple interfaces using traffic control

I have a server with virtual machines on libvirt. The server has an eth0 external interface. Each virtual machine has its own tap interface (tap0, tap1, tap2, etc.). I need to balance the traffic between the virtual machines, so that with a free…
arykalin
  • 101
  • 1
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
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
0
votes
1 answer

Corruption using linux traffic control (tc command)

I am kinda new to doing traffic control using Linux tc commands. So i am doing some hands-on on introducing network delay, packet loss and corruption etc across two hosts in the same network. The below commands were used to corrupt all traffic from…
0
votes
1 answer

Linux HTB: More than 70% of ceil rate is never achieved

Background:- I have an arm based system, which has HTB setup on the eth and wlan interface. Here is the HTB configuration:- tc class add dev eth1 parent 1:1 classid 1:1 htb rate 1Gbit ceil 1Gbit burst 18000b cburst 18000b tc class add dev eth1…
0
votes
1 answer

how to proritize UDP port in tc

I have this TC code sudo tc qdisc add dev eth0 root handle 1: prio sudo tc filter add dev eth0 protocol ip parent 1: prio 1 u32 match ip dport xxxx 0xffff flowid 1:1 where XXXX is the port number. I know that this is for TCP. how can I achieve this…
striker69
  • 1
  • 2
-1
votes
1 answer

tc-qfq is classless error

I'm using Linux 3.0.101 with iproute2-3.4.0 on a router and I'm getting this error: tc qdisc add dev eth2.2 root handle 1: qfq --> OK tc class add dev eth2.2 parent 1: classid 1:10 qfq weight 1 --> Error: Qdisc "qfq" is classless. sch_qfq.ko was…
xnor
  • 101
  • 1
-1
votes
1 answer

I have a WinXP machine with 2 ethernet ports. One is connected to a LAN, another is connected to a WAN. How do I make this work?

I have a WinXP machine which has 2 ethernet ports. The information I've found indicates that the first nic in the advanced settings list is the one that receives all traffic. I'd like to configure them so that all traffic destined for a particular…
HappyEngineer
  • 211
  • 1
  • 3
  • 7
-3
votes
1 answer

Understanding a shell script

there i am trying to understand the purpose of this shell script. If anyone can help out i would appreciate it. Thanks! This is located in android system at system/etc/throttle.sh #!/system/bin/sh # traffic control; arg1:ifname, arg2: rx, arg 3…
risto
  • 1
  • 2
-5
votes
1 answer

Network traffic shaping, understanding if a video is being watched from Facebook

I am tring to determine which web sites are being used, how frequently they are being used, how much data transfer occurs etc.., in my company network . Now my problem when someone is watching a video; for example a video served by youtube from…
1 2 3
15
16