Questions tagged [traffic]
70 questions
8
votes
3 answers
Tool to generate TCP traffic
I want to generate a TCP traffic starting from the port 0 to the port 65535. 1 tcp packet for each port with 1ms between 2 packets. The generator should not care if there is a TCP ACK or not.
Are there a tool that can generate a such traffic?
Is it…
MOHAMED
- 301
- 1
- 5
- 15
8
votes
1 answer
Accounting for /proc/net/dev reported traffic
I noticed that according to /proc/net/dev I am constantly receiving around 6Kb/s on my wireless usb interface. But I can't account for anything even close to that with the individual connections that I get with iptraf, iftop, and nethogs.…
ricab
- 692
- 1
- 9
- 15
4
votes
1 answer
remove tc filter (Traffic Shaping)
How can I remove a single filter?
tc filter show dev peth1
shows
filter parent 1: protocol ip pref 16 u32
filter parent 1: protocol ip pref 16 u32 fh 800: ht divisor 1
filter parent 1: protocol ip pref 16 u32 fh 800::800 order 2048 key ht 800 bkt 0…
Vince
- 371
- 2
- 12
4
votes
1 answer
Traffic shaping with tc does not work
I want to limit the outgoing traffic to a specific bandwidth.
My Code:
tc qdisc add dev vif1.0 root handle 1: htb default 30
tc class add dev vif1.0 parent 1: classid 1:1 htb rate 1mbit
tc class add dev vif1.0 parent 1: classid 1:2 htb rate 1mbit
tc…
Vince
- 371
- 2
- 12
4
votes
0 answers
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)
|
|
…
lz96
- 163
- 6
4
votes
1 answer
Delay some localhost traffic
How to delay some localhost traffic? (the computer is a VM, but hopefully that won't matter)
The following creates a new interface and tries to apply tc to it:
ifconfig lo:1 127.0.10.10 netmask 255.0.0.0 up
tc qdisk add dev lo:1 root netem delay…
M K
- 161
- 5
4
votes
1 answer
How to gather full network usage statistics on a freebsd router?
I have a freebsd box, which serves as a router from LAN to the outside world. It has several Internet providers, OpenVPN servers and clients, NAT and so on.
I would like to have complete statistics on when, who, to whom, via which provider, via…
Dims
- 3,181
- 9
- 49
- 107
4
votes
1 answer
Using tc for traffic quotas?
Is it possible to implement traffic quotas (absolute limits, not rate limits) based on the network classifier cgroup?
I see there is the iptables netfilter 'quota' extension, which seems to do essentially what I am trying to do: On a given interface…
relet
- 121
- 7
4
votes
1 answer
Limiting download speed based on other LAN traffic
I'm kind of new to Linux (but learning) so bare with me if I say something stupid :P.
I'm currently running an Ubuntu fileserver which automates a whole bunch of downloading tasks. At present it is set to throttle downloads at certain times so I…
Ben Wainwright
- 141
- 3
3
votes
2 answers
Get current network utilization via /sys/class/net
Playing around with some low level functions to monitor my system stats.
I would like to get the current network utilization the same way like I can get cpu temp
cat /sys/class/thermal/thermal_zone0/temp
or fan speed
cat…
FuzzyTemper
- 133
- 4
3
votes
1 answer
tc class rate 50Kbps != 50K/s in wget?
Got the following test rule setup:
tc qdisc add dev wlan0 root handle 1: htb
tc class add dev wlan0 parent 1: classid 1:1 htb rate 1000Mbps
tc class add dev wlan0 parent 1:1 classid 1:5 htb rate 50Kbps ceil 50Kbps burst 1kbit cburst 1kbit
tc qdisc…
Torxed
- 3,567
- 7
- 27
- 44
3
votes
1 answer
How to control the download speed in browser?
With parameter --limit-rate=80k, downloading speed with wget can be limited in 80k/s.
url="http://caesar.acc.umu.se/debian-cd/current/amd64/iso-cd/debian-8.7.1-amd64-CD-1.iso";
wget --limit-rate=80k -c $url -O /tmp/debian.iso
Now I want to control…
showkey
- 79
- 23
- 67
- 128
3
votes
2 answers
run tcpdump not to interpert packet contents
What options should I run tcpdump with to have it just do a hex dump of packets without trying to interpret its contents? Running it astcpdump -e -v -x or similar attempts to interpret layers, however I don't want it.
I want what tshark does:
% sudo…
Mark
- 1,763
- 5
- 25
- 45
3
votes
4 answers
iptables: How to allow only SSH and VPN traffic?
I have a dedicated server with Ubuntu 14.10 installed.
The server should connect to an OpenVPN server and the traffic should only go through the VPN, except for SSH traffic.
My idea is to implement this with iptables, but I am not a specialist.
What…
raxer
- 41
- 1
- 4
3
votes
2 answers
How to measure network traffic (with pfSense/freeBSD)?
Is it possible to measure network traffic (per month, per WAN, per direction) with pfSense/freeBSD?
There are following programs listed https://doc.pfsense.org/index.php/How_can_I_monitor_bandwidth_usage but neither seems to work normally for me.…
Dims
- 3,181
- 9
- 49
- 107