That is my boilerplate response to your boilerplate.
Now, to your actual problem ...
The only ready way I know of to test the speed of a connection is to try to do a large transfer over it ... usually, I find an ftp transfer to be the handiest test. This can be difficult when you do not control hosts at both ends of the link you want to test, but you still want to find some approximation of this approach.
You want to do the transfer in the direction you want to test connectivity for (you don't say if your connection is asymmetric); you want to be as "close" as you can to your LAN (don't to a download that involves multiple satellite hops from the opposite hemisphere); and you want to be sure that the upload source serves fast enough that it will not limit connection speed.
Then you can observe transfer speed, either in your client (some ftp clients report transfer speed, and I think wget does this for http as well) or by comparing the output of "ip -s link show" on the router both before and after the transfer.
Beyond that ... when you say "i'm experiance a slow connections", what are you actually observing? Anything other than the Web-page problem you describe? Although you say "this 2Mbps are slower than 1Mbps that i subcsibe before", that doesn't tell me what tests you are using now.
Finally, if you want to test whether the router is introducing any slowness, the obvious tests (using ftp transfers or something similar) are:
1. Revert to the prior router configuration and see if it makes a difference.
2. Connect a host directly to the Internet over the external connection and see if that makes a difference.
As to your Web-page problem ...
When you changed Bering version, did you make any hardware changes? Anything that might involve IRQ sharing, for example?
Does "ip -s link show" indicate any appreciable error rate on any relevant interface?
What NICs and drivers are involved? (I see 2 NIC modules listed, but which is external, which internal ... and did that change?)
Did you make any changes in the DNS configuration when you moved to Bering 2.1, or when you changed Internet service?
Is the problem with images a general one or is it limited to specific Web pages? Details may matter here ... for example, if the images come from a very different URL than the main page, you may be seeing a DNS timeout (the images eventually load because the DNS request eventually resolves). But this is just a wild guess, offered more to indicate the value of your attending to the details of what does not load proprely.
What else to report? Try ...
output of "ip -s link show"
output of "more /proc/interrupts"
CPU utilization during a period of "slowness", as reported by "top"... and answers to the questions I've asked above.
At 12:20 PM 5/12/2004 +0800, zamri wrote:
Hi,
Currently i had replace my old Bering router with Bering Uclibc 2.1 and everything works like a charm. Thank to all leaf developer for the fantastic job, really appreciates it.
The current problem that i encounter right now is images not load while surf the net. The web pages is completly load but the images don't. I need to refresh the page for a couple of times then i could see all those image ( complete web ). Actually i have no idea on how to troubleshoot this problem, i could used all protocols ( ftp, ssh, scp, telnet, p2p, smtp, pop, imap, rdp ) from LAN to internet without no problem but the web pages. Can anybody advice me somehow to troubleshoot this problems?
I using 2Mbps HDLC line to connected to internet. ( could anybody point me on how to check the actual connections that i could get? or how fast i could surf the net ). I'm asking because, i'm experiance a slow connections ( i'm using 1 Mbps before then upgarde to 2Mbps, but this 2Mbps are slower than 1Mbps that i subcsibe before and the web problem i encounter is happen after this upgrade ) i need a black and white test result, so i could prove that i'm don't get the promised speed from my ISP _or_ it's was my fault on router configuration?
I'm using a standard Bering Uclibc 2.1 stock images loaded with :
firewall# lrpkg -l Name Version Description ===============-==============-============================================= = initrd V2.1.0 uClibc- LEAF Bering initial filesystem root V2.1.0 uClibc- Core LEAF Bering-uClibc package config 0.1 Core config and backup system package etc V2.1.0 uClibc- local V2.1.0 uClibc- LEAF Bering local package modules V2.1.0 uClibc- Define & contain your LEAF Bering modules libcrpto 0.9.7d Rev 1 libcrypto - part of the Openssl libraries liblzo 1.08-2 LZO is a portable lossless data compression li libm 0.9.20 The libm library libpcap 0.7.2-1 libpcap library. libssl 0.9.7d Rev 1 libssl - part of the Openssl libraries libz 1.1.4 zlib compression library. Needed for openssh lpthread 0.9.20 The libpthread library mawk 1.3.3-9 Mawk is an interpreter for the AWK Programming ncurses 5.3 The ncurses (new curses) library is a free sof iptables 1.2.9 IP packet filter administration tools for 2.4. shorwall 1.4.10c Shoreline Firewall (Shorewall) ulogd 1.02 The Netfilter Userspace Logging Daemon weblet 1.2.4-1 LEAF status via a small web server djbutils 1.05a djbutils from djbdns package provides DNS tool iptraf 2.7.0-5 iptraf IP Network Monitoring Software iptutil 1.2.9 iptables save & restore netstatn 1.4 Netstat-nat is a small program written in C. I openssl 0.9.7d Rev 1 Openssl binaries psentry 1.2-4 Portsentry port scan detection and active defe sftp 3.7.1p1 Rev 4 OpenSSH sftp client & server programs. ssh 3.7.1p1 Rev 4 OpenSSH ssh client. sshd 3.7.1p1 Rev 4 OpenSSH sshd daemon. sshkey 3.7.1p1 Rev 4 OpenSSH ssh-keygen program tcpdump 3.7.2-1 A powerful tool for network monitoring and dat dnsmasq 2.5 Dnsmasq is lightweight, easy to configure DNS firewall#
my loaded modules are :
firewall# lsmod Module Size Used by Not tainted sd_mod 10300 0 (unused) scsi_mod 53960 1 [sd_mod] usb-uhci 21352 0 (unused) usbcore 55904 1 [usb-uhci] softdog 1508 1 ip_nat_irc 2128 0 (unused) ip_nat_ftp 2736 0 (unused) ip_conntrack_irc 2864 1 ip_conntrack_ftp 3472 1 eepro100 18024 1 8139too 11624 3 mii 2108 0 [8139too] pci-scan 3512 1 [eepro100] crc32 2648 0 [8139too] ext2 31776 0 (unused) vfat 9036 0 (unused) ide-detect 144 0 (unused) ide-disk 12492 1 ide-core 88752 1 [ide-detect ide-disk] firewall# firewall# mount /dev/root on / type tmpfs (rw) /proc on /proc type proc (rw) tmpfs on /tmp type tmpfs (rw) tmpfs on /var/log type tmpfs (rw) none on /proc/bus/usb type usbdevfs (rw) firewall#
Anyway, how i could mount the usb pendrive? i already insert : mount none /proc/bus/usb -t usbdevfs into /etc/init.d/bootmisc.sh so the mount point are automatically active after a reboot, then i do : mount -t vfat /dev/sda1 /mnt but i get this error : ".../dev/sda1 not a valid block or device or ???...." sorry, that was part of the error, i couldn't recall the exact error :( Anyone could point me some advices ?
I'm using and old IBM 300PL computer for the router the cpu was :
firewall# cat /proc/cpuinfo processor : 0 vendor_id : GenuineIntel cpu family : 6 model : 3 model name : Pentium II (Klamath) stepping : 4 cpu MHz : 298.650 cache size : 512 KB fdiv_bug : no hlt_bug : no f00f_bug : no coma_bug : no fpu : yes fpu_exception : yes cpuid level : 2 wp : yes flags : fpu vme de pse tsc msr pae mce cx8 sep mtrr pge mca cmov mmx bogomips : 596.37
firewall#
My RAM and space status :
firewall# free total used free shared buffers Mem: 62976 19880 43096 0 92 Swap: 0 0 0 Total: 62976 19880 43096 firewall# firewall# df -h Filesystem Size Used Available Use% Mounted on /dev/root 400.0M 9.7M 390.3M 2% / tmpfs 30.8M 16.0k 30.7M 0% /tmp tmpfs 100.0M 1.3M 98.7M 1% /var/log firewall#
Actually, i dont think it was a bering router problem ( i had a test with the same router on the other line on the next building - 1 Mbps broadband line subscibe with another ISP and everything is works just fine ), i still suspect that it was a problem with my ISP but the questions is how i going to prove it? Can anyone aid me on this? And if you need more info, please inform me since i don't know which are relevant to troubleshoot this.
Thanks In Advances, Regards, zamri
The content of this email and any files transmitted with it are confidential and intended solely for the use of individual or entity to whom they are address and may be privileged. If you are not the intended receipient or if you have received it in error, please do not read, use, print, copy, forward or distribute the content or disclose it to anyone. Instead, please inform the sender by return email or telephone and please delete it or any copy of it from your system immediately. Opinions, conclusions and other informations in this messages that do not relate to the official businness of PTPL Group Of Companies shall be understood as neither given nor endorsed by PTPL SDN. BHD.
-------------------------------------------------------
This SF.Net email is sponsored by Sleepycat Software
Learn developer strategies Cisco, Motorola, Ericsson & Lucent use to deliver higher performing products faster, at low TCO.
http://www.sleepycat.com/telcomwpreg.php?From=osdnemail3
------------------------------------------------------------------------
leaf-user mailing list: [EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/leaf-user
SR FAQ: http://leaf-project.org/pub/doc/docmanager/docid_1891.html
