View Full Version : Doppelter Traffic ?
Ich weis garnicht so recht wo ich anfangen soll.
Ich habe 24 private Teamspeak Server auf meinem Root Server stehen.
Im Durchschnitt sind 150 User pro Stunde online.
Der Codex liegt bei Speex 12.3 Kbit.
Im Durchschnitt verbrauche ich am Tag mit unserer Webseite ca. 8 Gigabyte Traffic. Seit einer Woche verbrauche ich 16 Gigabyte pro Tag Traffic!
Nach dem ich alle Teamspeak Server geschlossen hatte kam ich auf 0,5 Gig pro Tag.
Warum verbrauchen die gleichen Server, mit der gleichen Anzahl an Usern und gleichen codex den doppelten Traffic ?
Zu erst dachte ich daran das User Musik an mehrere Leute im Channel streamen, dem war aber nicht so.
Dann habe ich den Query Port geändert. Falls andere User uns mit anfragen über Webpost bzw Teamspeak Viewer zuflooden. Auch das nutzen von Shell Tools kam in fragen, aber der Traffic ging auch da nicht runter.
Jetzt läufen nur noch 2 Server mit 20 Usern Pro Stunde und ich bin froh das ich nur noch auf 6 - 8 gig komme.
Weis jemand woran das liegen könnte, das auf einemal der Traffic sich verdoppelt?
Server und Teamspeak restart habe ich schon gemacht!
Gruss HiQ
Das ganze hört sich extrem seltsam an, über welchen Port geht den der übermäßige Traffic? (Das Programm IAM wäre evtl. die Lösung um den Traffic pro Port zu ermittlen) Haben andere Benutzer auch zugriff zum Miet-Server? Vielleicht heimlicher DDos ?!
Hmm
Ich kenne unter Linux nur iptraf.
Im moment laufen 2 Server. Die verbrauchen 1,2 bis 2,0 mbit die sek.
Wenn ich den Server ausschalte verbrauche ich nur noch 0,3 mbit.
Damit kommt eine DDos Atacke nicht in Frage.
Über welchen, kann ich bei IPtraf nicht sehen, nur das der 9 /10 des gesamt Traffic über UDP gehen. Das ändert sich dann wenn ich den TS Server schliese. Dann komme ich auch 1/2 TCP UDP.
Andere Benutzer haben keinen Zugriff darauf!
PS: ich habe einen Linux Root ;)
Wenn du ins German Linux Server Forum schreibst, ist mir das schon klar, dass du einen Linux-Mietserver hast :)
Aber zur Sache:
Wenn ich den Server ausschalte verbrauche ich nur noch 0,3 mbit.
Naja, nur noch ist gut, wieso brauchst du im "Stillstand" 0,3 Mbit ?
Poste mal alle Prozesse die am laufen sind. (Mehr fällt mir dazu ehrlichgesagt auch nicht ein)
Ähmmm..... Weil da noch meine kleine Webseite läuft ;)
# ps -ax
Warning: bad syntax, perhaps a bogus '-'? See http://procps.sf.net/faq.html
PID TTY STAT TIME COMMAND
1 ? S 0:05 init [3]
2 ? SW 0:00 [keventd]
3 ? SWN 0:00 [ksoftirqd_CPU0]
4 ? SW 0:00 [kswapd]
5 ? SW 0:00 [bdflush]
6 ? SW 0:00 [kupdated]
7 ? SW 0:00 [kinoded]
8 ? SW 0:00 [mdrecoveryd]
12 ? SW 0:01 [kjournald]
55 ? SW 0:00 [kcopyd]
454 ? S 0:00 /sbin/syslogd -a /var/lib/named/dev/log
457 ? S 0:00 /sbin/klogd -c 1 -2
485 ? S 0:00 /sbin/portmap
487 ? S 0:00 /sbin/resmgrd
488 ? S 0:00 /usr/sbin/saslauthd -a pam
489 ? S 0:00 /usr/sbin/saslauthd -a pam
490 ? S 0:00 /usr/sbin/saslauthd -a pam
491 ? S 0:00 /usr/sbin/saslauthd -a pam
492 ? S 0:00 /usr/sbin/saslauthd -a pam
493 ? S 0:00 /usr/bin/perl /usr/lib/webmin/miniserv.pl /etc/webmin
542 ? S 0:00 /usr/sbin/atd
554 ? S 0:00 /usr/sbin/xinetd
567 ? S 0:00 /bin/sh /usr/bin/mysqld_safe --user=mysql --pid-file=
569 ? S 0:00 /usr/sbin/acpid
570 ? S 0:00 /usr/sbin/sshd -o PidFile=/var/run/sshd.init.pid
611 ? S 0:05 /usr/sbin/mysqld-max --basedir=/usr --datadir=/var/li
612 ? S 0:00 sendmail: Queue control
613 ? S 0:00 sendmail: running queue: /var/spool/clientmqueue
615 ? S 0:00 sendmail: accepting connections
617 ? S 0:06 /usr/sbin/mysqld-max --basedir=/usr --datadir=/var/li
618 ? S 0:00 /usr/sbin/mysqld-max --basedir=/usr --datadir=/var/li
619 ? S 0:00 /usr/sbin/mysqld-max --basedir=/usr --datadir=/var/li
620 ? S 0:00 /usr/sbin/mysqld-max --basedir=/usr --datadir=/var/li
621 ? S 0:00 /usr/sbin/mysqld-max --basedir=/usr --datadir=/var/li
623 ? S 0:00 /usr/sbin/mysqld-max --basedir=/usr --datadir=/var/li
624 ? S 0:00 /usr/sbin/mysqld-max --basedir=/usr --datadir=/var/li
625 ? S 0:00 /usr/sbin/mysqld-max --basedir=/usr --datadir=/var/li
626 ? S 0:01 /usr/sbin/mysqld-max --basedir=/usr --datadir=/var/li
627 ? S 0:00 /usr/sbin/mysqld-max --basedir=/usr --datadir=/var/li
661 ? S 0:00 /usr/sbin/cron
784 ? S 0:01 /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf
785 ? S 0:20 /usr/bin/perl /usr/local/confixx/pipelog.pl
832 tty1 S 0:00 /sbin/mingetty --noclear tty1
833 tty2 S 0:00 /sbin/mingetty tty2
834 tty3 S 0:00 /sbin/mingetty tty3
835 tty4 S 0:00 /sbin/mingetty tty4
836 tty5 S 0:00 /sbin/mingetty tty5
837 tty6 S 0:00 /sbin/mingetty tty6
963 ? SN 0:02 ./server_linux -PID=tsserver2.pid
965 ? S 0:00 ./server_linux -PID=tsserver2.pid
966 ? S 0:03 ./server_linux -PID=tsserver2.pid
967 ? S 0:05 ./server_linux -PID=tsserver2.pid
968 ? S 0:10 ./server_linux -PID=tsserver2.pid
1043 ? S 0:00 ./server_linux -PID=tsserver2.pid
1044 ? S 0:00 ./server_linux -PID=tsserver2.pid
1045 ? S 0:00 ./server_linux -PID=tsserver2.pid
1046 ? S 0:15 ./server_linux -PID=tsserver2.pid
14272 ? S 0:11 ./server_linux -PID=tsserver2.pid
14273 ? S 0:30 ./server_linux -PID=tsserver2.pid
14274 ? S 0:37 ./server_linux -PID=tsserver2.pid
14281 ? S 0:08 ./server_linux -PID=tsserver2.pid
14282 ? S 0:19 ./server_linux -PID=tsserver2.pid
14283 ? S 0:22 ./server_linux -PID=tsserver2.pid
14292 ? S 0:05 ./server_linux -PID=tsserver2.pid
14293 ? S 0:12 ./server_linux -PID=tsserver2.pid
14294 ? S 0:18 ./server_linux -PID=tsserver2.pid
14304 ? S 0:05 ./server_linux -PID=tsserver2.pid
14305 ? S 0:14 ./server_linux -PID=tsserver2.pid
14306 ? S 0:16 ./server_linux -PID=tsserver2.pid
23981 ? S 0:02 /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf
24013 ? S 0:00 /usr/sbin/mysqld-max --basedir=/usr --datadir=/var/li
24051 ? S 0:01 /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf
24053 ? S 0:01 /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf
24054 ? S 0:01 /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf
24101 ? S 0:01 /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf
24136 ? S 0:00 /usr/sbin/mysqld-max --basedir=/usr --datadir=/var/li
24180 ? S 0:00 /usr/sbin/mysqld-max --basedir=/usr --datadir=/var/li
24206 ? S 0:00 /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf
24264 ? S 0:00 /usr/sbin/mysqld-max --basedir=/usr --datadir=/var/li
25068 ? S 0:01 sshd: root@pts/7
25069 ? S 0:00 sshd: root@pts/7
25071 pts/7 S 0:00 -bash
25095 ? S 0:00 /usr/sbin/mysqld-max --basedir=/usr --datadir=/var/li
25145 ? S 0:00 /usr/sbin/mysqld-max --basedir=/usr --datadir=/var/li
25149 ? S 0:00 /usr/sbin/mysqld-max --basedir=/usr --datadir=/var/li
25153 ? S 0:00 /usr/sbin/mysqld-max --basedir=/usr --datadir=/var/li
25165 ? S 0:00 /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf
25188 ? S 0:00 /usr/sbin/mysqld-max --basedir=/usr --datadir=/var/li
25191 ? S 0:00 /usr/sbin/mysqld-max --basedir=/usr --datadir=/var/li
25193 ? S 0:01 /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf
25195 ? S 0:00 /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf
25269 ? S 0:00 /usr/sbin/mysqld-max --basedir=/usr --datadir=/var/li
25270 ? S 0:00 /usr/sbin/mysqld-max --basedir=/usr --datadir=/var/li
25281 ? S 0:00 /usr/sbin/mysqld-max --basedir=/usr --datadir=/var/li
25487 ? Z 0:00 [cron] <defunct>
25492 ? S 0:00 /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf
25496 ? S 0:00 /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf
25501 ? S 0:00 /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf
25520 pts/7 R 0:00 ps -ax
Geh mal auf die einzelenen virtuellen Server und rechne da die Summe an GB über Info > Server Connection Info zusammen.
Meinst du auf jeden Teamspeak Server und dann Server Connection Info ?
Die Zahl hat noch nie mit meinem Traffic gestimmt ;)
Meinst du auf jeden Teamspeak Server und dann Server Connection Info ?
Ja.
Die Zahl hat noch nie mit meinem Traffic gestimmt
Aha, warum nicht?
Meines ermessens nach nimmt TeamSpeak mit der funktion auch nur den UDP-Traffic vom virtuellen Server. Mehr verbraucht der doch nicht, oder hab ich da was falsch verstanden?
Ja, die Scripte wie Webpost und Teamspeak Viewer.
Die Server laufen seit 8 Stunden und haben insgesammt laut "Server Connection Info"
984,85 MB verbraucht!
Und das sagt der Router vom Root Server
TrafficÜbersicht
Stunde Downstream Upstream Gesamttraffic
19 57.92 Megabyte 420.25 Megabyte 478.17 Megabyte
20 84.81 Megabyte 929.35 Megabyte 1014.16 Megabyte
21 75.11 Megabyte 830.98 Megabyte 906.09 Megabyte
22 53.74 Megabyte 513.93 Megabyte 567.67 Megabyte
23 36.07 Megabyte 383.75 Megabyte 419.82 Megabyte
00 37.56 Megabyte 488.83 Megabyte 526.39 Megabyte
01 35.65 Megabyte 624.89 Megabyte 660.54 Megabyte
02 28.71 Megabyte 286.33 Megabyte 315.04 Megabyte
Und hier mal die Tageszahl vom 05.10.2004 - Dienstag
Da liefen alle 24 Server mit 150 usern !
00 40.12 Megabyte 627.48 Megabyte 667.60 Megabyte
01 18.38 Megabyte 182.33 Megabyte 200.71 Megabyte
02 14.09 Megabyte 229.92 Megabyte 244.01 Megabyte
03 18.08 Megabyte 316.34 Megabyte 334.42 Megabyte
04 8.60 Megabyte 225.23 Megabyte 233.83 Megabyte
05 3.96 Megabyte 72.71 Megabyte 76.67 Megabyte
06 6.90 Megabyte 148.39 Megabyte 155.29 Megabyte
07 9.06 Megabyte 245.77 Megabyte 254.83 Megabyte
08 8.31 Megabyte 237.61 Megabyte 245.92 Megabyte
09 8.39 Megabyte 197.41 Megabyte 205.80 Megabyte
10 13.28 Megabyte 276.92 Megabyte 290.20 Megabyte
11 15.01 Megabyte 233.32 Megabyte 248.33 Megabyte
12 18.11 Megabyte 293.05 Megabyte 311.16 Megabyte
13 28.29 Megabyte 375.98 Megabyte 404.27 Megabyte
14 37.77 Megabyte 507.87 Megabyte 545.64 Megabyte
15 36.81 Megabyte 764.29 Megabyte 801.10 Megabyte
16 72.39 Megabyte 1033.96 Megabyte 1106.35 Megabyte
17 82.07 Megabyte 1126.19 Megabyte 1208.26 Megabyte
18 73.15 Megabyte 1271.52 Megabyte 1344.67 Megabyte
19 90.97 Megabyte 1405.57 Megabyte 1496.54 Megabyte
20 99.22 Megabyte 1453.09 Megabyte 1552.31 Megabyte
21 134.46 Megabyte 1807.99 Megabyte 1942.45 Megabyte
22 109.67 Megabyte 1582.91 Megabyte 1692.58 Megabyte
23 56.74 Megabyte 848.04 Megabyte 904.78 Megabyte
Jetzt läufen nur noch 2 Server mit 20 Usern Pro Stunde und ich bin froh das ich nur noch auf 6 - 8 gig komme.
und
Die Server laufen seit 8 Stunden und haben insgesammt laut "Server Connection Info" 984,85 MB verbraucht!
8h * 3 = 24h = 1 Tag
984,85 MB = 0.98 GB * 3 = 2,94 GB/Tag
Ich meine, 2,94 GB/Tag hört sich doch schonmal gut an für 2 Server mit 20 Usern, oder nicht?
Ja , nur der Router zeigt mir halt andere Zahlen an.
Wo bekomme ich dieses überwachungstool her, von dem du geschrieben hast :confused:
http://www.rootforum.de/forum/viewtopic.php?t=2343
Danke dir.
Ich habe zwar nur 5 % Linux Kenntnisse, aber die Anleitung ist TOP !
Ich habe es ans laufen bekommen.
Kennst du zufällig die Beizeichnung um Teamspeak mit in diese Liste aus der Datei "chains.py" zu bekommen ?
lass Chains:
free, service, other = "free of charge", "internet services", "other traffic (unspecified)"
categories = [free, service, other]
_default = (service, "")
names = {"local" : (free, "local network"),
"ftp" : (service, "FTP (without passive data)"),
"ip_local_port_range": (service, "probably FTP"),
"www" : (service, "http/https/caudium"),
"cvs" : (service, "grass-cvs"),
"mail" : (service, "smtp"),
"misc" : (service, "ssh, dns, identd"),
"outgoing" : (service, "without other listed services"),
"rsync" : (service, "rsync server (not backup)"),
"related" : (other, "related connections"),
"fragment" : (other, "fragmented packets"),
"unknown" : (other, "not in any chain")}
rates = {free : [(1.0 / 1024 / 1024, "%.1f MB"), (0.00, "%.2f Euro")],
service : [(1.0 / 1024 / 1024, "%.1f MB"), (0.05, "%.2f Euro")],
other : [(1.0 / 1024 / 1024, "%.1f MB"), (0.05, "%.2f Euro")]}
Nachtrag, hier mal eine auflistung der letzen 3 - 4 Stunden
Wobei das Script nicht so aktuelle ist, ich sehe das ja dann morgen wenn alles drinne ist.
IP traffic (2004-10-09):
========================
| traffic | cost | description |
+----------+------------+------------------------------------------+
| 8.1 MB | | local (local network) |
+----------+------------+------------------------------------------+
| 8.1 MB | | free of charge |
+----------+------------+------------------------------------------+
| | | |
| 384.5 MB | 19.23 Euro | www (http/https/caudium) |
| 72.2 MB | 3.61 Euro | misc (ssh, dns, identd) |
| 28.4 MB | 1.42 Euro | outgoing (without other listed services) |
| 2.0 MB | 0.10 Euro | ftp (FTP (without passive data)) |
| 0.2 MB | 0.01 Euro | ip_local_port_range (probably FTP) |
| 0.1 MB | 0.01 Euro | mail (smtp) |
| 0.0 MB | 0.00 Euro | cvs (grass-cvs) |
| 0.0 MB | 0.00 Euro | rsync (rsync server (not backup)) |
+----------+------------+------------------------------------------+
| 487.4 MB | 24.37 Euro | internet services |
+----------+------------+------------------------------------------+
| | | |
| 395.4 MB | 19.77 Euro | unknown (not in any chain) |
| 0.3 MB | 0.02 Euro | related (related connections) |
| 0.0 MB | 0.00 Euro | fragment (fragmented packets) |
+----------+------------+------------------------------------------+
| 395.7 MB | 19.79 Euro | other traffic (unspecified) |
+----------+------------+------------------------------------------+
vBulletin® v3.7.0, Copyright ©2000-2008, Jelsoft Enterprises Ltd.