Questions tagged [tc]

Tc is used to configure Traffic Control in the Linux kernel.

Filter by
Sorted by
Tagged with
0
votes
0answers
5 views

set asymmetric bandwidth on an interface

I'm coding a simple application using docker-compose and docker networks (images based on ubuntu). One of my services is a client with a network interface given from docker. All my services are on my ...
0
votes
0answers
15 views

Signification of TC (Trafic Control) backlog counter

I try to understand the signification of the counter backlog from the TC stats. Example : tc -s class show dev eth0 class htb 1:1 root rate 10Mbit ceil 10Mbit burst 5000b cburst 5000b Sent 602228374 ...
0
votes
0answers
19 views

Some doubts about traffic control

I am performing an experiment of network bandwidth limitation on my ubantu machine. Many views believe that tc (traffic control) cannot limit the inbound bandwidth, and point out that it needs to be ...
1
vote
1answer
53 views

Forcefully enable fq_pie

I am very interested in setting up fq_pie queue discipline for TCP congestion control. If I write net.core.default_qdisc = fq_pie to /etc/sysctl.d/90-override.conf, it should enable fq_pie on latest ...
-1
votes
1answer
45 views

Installing wondershaper on Debian 10

# apt-get install wondershaper # wondershaper wlan0 24000 16000 Now what?! How can I tell if it's running? How can I get it to start automatically after a reboot? (And configure it.) None of the ...
0
votes
0answers
10 views

ESFQ is not control the upload

I am using IMQ and Iptables to control the packages outcome from my LAN using ESFQ, but it is not work at all. How I can control the upload of my LAN, I know that others systems like Mikrotik, has its ...
1
vote
1answer
25 views

How does a htb qdesc tree handle bandwidth overallocation?

let's say I have a simple htb hierarchy (See man 8 tc-htb) set up where the total bandwidth specified for child htb classes exceeds the total bandwidth specified for the root htb class: tc class add ...
0
votes
1answer
55 views

wondershaper bandwdith limit per ip

Does this command allows us to download speed 512kpbs for each connected devices? or let say if two devices connected then they get only 256kbps each or 512 kbps each ? sudo wondershaper wlan0 512
0
votes
0answers
29 views

How to set priority of network traffic for services using systemd?

I want to be able to specify the priority for all incoming and outgoing network traffic of a service in its systemd unit configuration to be able to ensure that some services get a higher priority for ...
0
votes
0answers
18 views

How do I use TC to prioritise a device on the network?

I'm running a home network using a Linux gateway (raspbian) as a router. It's a simple setup just using iptables as a firewall and traffic forwarding between the local and ppp0 interface. I want to be ...
-1
votes
1answer
18 views

Why does iperf results not change with traffic control change to outbound?

I have been trying to change bandwidth between two ec2 instances using tc and outbound rules using HTB and TBF. I set these rules on on ec2 instance which acts as server and then test from another ...
0
votes
1answer
15 views

Is there a back-pressure mechanism from qdisc to TCP?

Is there a mechanism to stop TCP sending packets towards Qdisc if the queue length exceeds the limit? I know TSQ helps here for a small number of connections but what if I have 1000 connections or ...
0
votes
0answers
60 views

Problem assigning markings to classids

I'm trying to configure an ethernet interface in an Ubuntu 18.04 VM to capture traffic. The traffic will come with DSCP marks, so I proceeded to create classids for every mark: tc qdisc add dev ...
0
votes
0answers
36 views

What is the equivalent tool TC (Traffic Control) for Solaris?

I would like to know if anyone knows a way to emulate what TC does on Linux. I have some scripts that I would like to port to Solaris.
0
votes
0answers
24 views

How to add two tc qdisc to a single interface

I want to change the maximum bandwidth in a interface, which I can achieve with: $ tc qdisc add dev eth1 root tbf rate 1mbit burst 32kbit latency 500ms I also need to add a variable delay to the ...
0
votes
0answers
86 views

Problem of limit bandwidth on a specific port in Ubuntu18.04

I set up a socks proxy server listening on 2 ports, 10001-10002. The port 10001 is provided to anonymous user. So, I want to limit the max bandwidth to 1 MB/s, and limit the max bandwidth of port ...
0
votes
0answers
192 views

Linux TC filter to combine u32 and basic match

I want to match the ingress traffic with a particular firewall mark and ipset match. Only after both matches I want to redirect the packet. I restore the mark for ingress packets using action ...
0
votes
0answers
22 views

linux tc network traffic control

I am using a Synology NAS and within their control panel one can set up network traffic control and set a limit. With nothing set, one would assume there is no limit and it would run as fast as ...
0
votes
0answers
68 views

Netem does not show the correct parameter inserted

I'm issuing the following tc command tc qdisc in order to configure different queues in a computer. The problem is that when I configure two different queues (htb configuration) and I insert ...
0
votes
0answers
105 views

egress traffic shaping rules on mirrored interface aren't working

In my small, private, network I have a device (IP address 192.168.0.240) which I want to have a "guaranteed" section of the pipe. To that end, I've been following this Server Fault article to shape ...
0
votes
1answer
202 views

qdisc resets after changing to htb

Background I have a system running Ubuntu which has two interfaces eno1 and enp4s0. I have created an OVS bridge using: ovs-vsctl add br s1 I added the two physical interfaces eno1 and enp4s0 to ...
1
vote
1answer
279 views

Example command to set same DSCP value in the IP header for return packets within the same TCP connection

I have seen connmark or ctinfo could work for this but couldn't find a simple effective command to make it work (Not familiar within this area). The command can be applied to the TCP termination node ...
0
votes
0answers
117 views

Adding Latency to Internal Port

I am doing some network simulations on an Ubuntu VM. I am trying to add some latency to all packets being sent to and from specific ports without affecting the whole adapter. I have found this code ...
2
votes
1answer
818 views

Adding qdisc under the mq top-level qdisc

This LWN article suggests that one may add/replace the network scheduler for a queue "under" the mq "dummy scheduler." These two point to that end: The mq scheduler does two things: - present ...
1
vote
2answers
368 views

Mirror to Multiple Ports Using TC?

Does anyone know if it's possible to mirror to multiple interfaces from one source interface using TC? I've done the following: The first thing I did was create an ingress queue on my input interface ...
1
vote
1answer
283 views

tc qdisc not delete filter

I have a problem with understand tc behaviour, especially how is working qdisc deletion. My main problem is why tc qdisc did not delete the attached filter? I did: tc qdisc add dev eth ingress tc ...
0
votes
0answers
454 views

Traffic control (TC) command with u32 filter - Not working (RTNETLINK answers: Invalid argument)

I am working on college assignment, in which our teacher asked us to block some BPDU packets (which are generated by interface, incoming packets are blocked by BPDU guard) using traffic control tc's ...
0
votes
1answer
108 views

Difference between MTU and Burst at Linux-TC

I did a small experiment by using Linux-tc My question is what is the difference between Burst and MTU at Linux tc-htb It seems that they have a same effect. They change a only burst value. (we can ...
1
vote
1answer
335 views

How many qdiscs can I create with tc?

I am trying to emulate traffic among multiple virtual machines. Each connection is supposed to have different parameters, i.e. delay. Therefore, I am trying to create different qdisc filters for ...
1
vote
0answers
53 views

tc: route all traffic from default gateway to ifb0

Traffic from eth0 arriving from gateway should be sent to ifb0 for ingress shaphing. Here some relevant outputs and commands ip route default via 192.168.0.1 dev eth0 metric 200 realm 1 What ...
0
votes
1answer
93 views

Using tc rate limit all traffic except from one IP

Currently i have the below rule for rate limiting the traffic on port 22. This applies for all traffic, however i don't want this to apply for one IP say x.x.x.x , how to do this? So if the traffic is ...
2
votes
2answers
668 views

Tc qdisc delay not seen in tcpdump recording

I have two linux containers connected with a veth-pair. At veth-interface of one container I set up tc qdisc netem delay and send traffic from it to the other container. If I watch traffic on both ...
2
votes
0answers
283 views

Simulate network on a single machine

I'm trying to simulate a network on a single machine. I have multiple nodes that communicate through tcp sockets. I tried to create one dummy interface for each node like this: ip link add name ...
1
vote
1answer
978 views

For veth pair, ping does not recognize interface name and tc qdisc netem does not work

I have Ubuntu 16.04 LTS with hwe kernel 4.13.0-39-generic. I configure the veth pair in the default network namespace as follows: $ sudo ip link add h1-eth0 type veth peer name h2-eth0 $ sudo ip ...
1
vote
0answers
41 views

Are there any disadvantages of using very low “rate” value for Linux HTB queuing discipline?

I have a use-case where egress traffic on 10Mbps connection needs to be divided into two classes. First class is high-priority traffic which needs to be able to use bandwidth up to 10Mbps. Second ...
2
votes
3answers
927 views

queueing in linux-htb

I am trying to understand the queuing mechanism of linux-htb QDisc and QDisc of linux tc in general. What I could gather: During TX, the packet is queued into the queue inside the linux tc. This ...
3
votes
0answers
698 views

Multiqueue tun/tap interface

I am trying to understand how Multiqueue tuntap interface works. Following the instructions provided at: https://www.kernel.org/doc/Documentation/networking/tuntap.txt I was able to create multiple ...
0
votes
0answers
226 views

Using netem on traffic filtered by iptables

I would like to use netem for only partion of the traffic on bridge. Edit 1 So, I was able to figure out at least something. tc qdisc del dev eth0.1 root tc qdisc add dev eth0.1 root handle 1: ...
1
vote
2answers
1k views

Slowing down a server with traffic shaping

I would like to study the behaviour of an application streaming from a slow server. I'm trying to take advantage of tc-netem to introduce a network delay. Before setting up a more complicated ...
1
vote
1answer
139 views

How does one use tc to add latency to a ratelimit?

I read that there's another tool for netfilter that allows you to add latency to a ratelimit. Does anyone have an example of this?
2
votes
1answer
730 views

Rate limiting with tc on vlans

I have found this prior answer (https://serverfault.com/questions/461153/vlan-based-rate-limiting-using-tc), however attempting to add the vlan match to my script yields : What is "handle"? Usage: ....
2
votes
1answer
543 views

How can I use `tc` with diffrent parameters on few virtual interfaces?

I need to simulate network environment with bad network connections for about 1000 hosts. Can tc (with netem) be used with virtual network interfaces (like eth0:0, eth0:1)? When I try to use tc on ...
1
vote
0answers
139 views

Any interface to access linux's tc flower from another kernel module?

I was looking at linux tc flower source code. I see that when a flow is modified, a netlink message is sent from user space to kernel space to create/delete/modify the flow. Rather than the userspace ...
1
vote
0answers
512 views

When mirroring ingress traffic on an interface with tc, are only the packets destined for the interface mirrored?

I have a Linux box with 3 physical interfaces, one for management (has an IP address) and two for receiving mirrored traffic from two separate switches that make up a link aggregation group (LAG). The ...
1
vote
0answers
23 views

IPTABLES: issue with impacting traffic to a subnet using --destination flag

I am applying iptables rule to impact outbound traffic into a subnet. I send the traffic into a new chain created and then tc impose some delay using netem. TC is then using that rules. Something like ...
2
votes
0answers
349 views

htb -> netem -> pfifo_fast qdisc drops all packets under high traffic

I configured a OpenVSwitch-based topology using Mininet on my local machine: h1 (server) -------(eth1) s1 (eth2)--------------- h2 (client) (eth3) | ...
2
votes
1answer
1k views

How can I permanently associate tc qdisc commands with a particular interface?

I need to use a tc qdisc command to limit bandwidth usage on an interface created by openvpn. This works great when I run the command manually but occasionally the connection drops or restarts and ...
2
votes
1answer
473 views

Using IFB for ingress traffic shaping

I am trying to use the IFB driver for ingress traffic and are having some problems getting it to work for us. It hooks the packets before netfilter and so marks set with iptables are not seen by tc ...
2
votes
0answers
1k views

Performance bottlenecks of Linux traffic shaping (tc)

I have an interesting problem. We have a Linux server with Debian Stretch installed. The server has a single CPU E5-2680 v2 and Intel 82599ES 10G Dual Port NIC's. There are no other services (like ...
1
vote
0answers
259 views

TC (Traffic control) and trickle: apply different bandwidth to (multiple requests) same IP or URL during upload and download

I have some files of different sizes which I needed to send to Azure blob storage and I am using Azure IOT SDKs to achieve that.Now I have different types of file size ( from 50 MB to 5 GB) and have ...