Question about Computers & Internet

3 Answers

Obtain low bandwidh in linux

I m using a Redhat linux AS 4 proxy server in my office,in which I configure squid 2.5 for sharing the internet(BSNL dataone leased line).the band width provided by the ISP is 2 mbps,but when I check the bandwidth in http://dataone.in from the proxy server it shows around 400 kbps.

then I connect a dual boot client pc ( windows XP sp2/fedora 6) to the same port I use for the proxy server in NORTEL 8300 switch.Now I got the increased bandwidth (around 1.77 mbps) in XP but again low bandwidh with fedora.

plz tell me why linux operating system show me the low bandwidth ?

Posted by on

  • atanu_4u Jun 13, 2008

    http://dataone.in is the official bandwidth testing web site of BSNL dataone (ISP)

×

Ad

3 Answers

  • Level 1:

    An expert who has achieved level 1.

    Hot-Shot:

    An expert who has answered 20 questions.

    Corporal:

    An expert that has over 10 points.

    Mayor:

    An expert whose answer got voted for 2 times.

  • Contributor
  • 24 Answers

Are you going through the proxy when checking speeds? Squid is able to perform bandwidth throttling. I would lean towards a mis-configuration in the Squid config. The directive (config option) in Squid is "delay pools". For security, I stress that you implement a full blown firewall (doing NAT) and do a port redirect to make squid a transparent proxy (no proxy config needed on the client machines' web browsers). They would both run on the same machine.

Posted on Jun 16, 2008

Ad
  • Level 3:

    An expert who has achieved level 3 by getting 1000 points

    Superstar:

    An expert that got 20 achievements.

    All-Star:

    An expert that got 10 achievements.

    MVP:

    An expert that got 5 achievements.

  • Master
  • 4,234 Answers

I'm not the most experiences with Linux either, but experience in general leads me to the following:

1) Make sure that the measurements are equivalent on both. In other words the 2Mbps for the bacndwidth is measured in Bits per second, Is Linux showing you Bytes per second?

2) Bandwidth availability does not directly translate to true throughput. There is overhead with every packet of info sent over the wire. With small data transfers, the overhead becomes a large portion of the actual transfer and the "throughput" values will appear to be small. The larger the transfer of data, the less the overhead will influence the throughput. So, be careful when looking at the raw numbers.

3) In order to get a true comparison or understanding of the situation, you should be testing in a closed environment with nothing else on the network. That will provide you with the actual difference in performance of the two scenerios.

I hope this helps a bit.
Dan

Posted on Jun 13, 2008

Ad
  • Level 3:

    An expert who has achieved level 3 by getting 1000 points

    All-Star:

    An expert that got 10 achievements.

    MVP:

    An expert that got 5 achievements.

    President:

    An expert whose answer got voted for 500 times.

  • Master
  • 2,712 Answers

Sorry, I have no idea about Linux. Could be the software that is causing this issue..
I have forwarded this request to other Experts here who have more knowledge on this subject. Hopefully they should respond to your query within the next couple of hours..

Posted on Jun 13, 2008

4 Suggested Answers

6ya6ya
  • 2 Answers

SOURCE: I have freestanding Series 8 dishwasher. Lately during the filling cycle water hammer is occurring. How can this be resolved

Hi there,
Save hours of searching online or wasting money on unnecessary repairs by talking to a 6YA Expert who can help you resolve this issue over the phone in a minute or two.

Best thing about this new service is that you are never placed on hold and get to talk to real repairmen in the US.

Here's a link to this great service

Good luck!

Posted on Jan 02, 2017

  • 7 Answers

SOURCE: Internet Bandwidth problem

try and get install polipo

it may solve ur promblem

Posted on Jun 17, 2008

kim_cu
  • 70 Answers

SOURCE: Low bandwidth in linux

Bandwidth is related to several factors:
- dedicated vs shared "on-ramp" (DSL is dedicated, good)
- Ethernet card used in the machine (single vs. dual buffers and piplining vs non) - don't know but it may be the card, more expensive cards are often worth the cost.
- drivers for the cards. If the Linux drivers (older than the Windows versions usually) don't allow for the dual buffers or piplining capability then you won't get the rated speed.

You may also have issues with the wrong drivers for your card. It may work but not work well - timing is everything with drivers.

Your description says that with another machine (a different card and drivers) it almost works. It is NOT the operating system. Typically Linux is faster on most things than Windows. It is NOT the BNSL provider. Has to be the card or its drivers.

Posted on Jun 19, 2008

totonf
  • 35 Answers

SOURCE: Obtain low bandwidh in linux

Maybe in your squid.conf, http://www.serverwatch.com/tutorials/article.php/3357241

Posted on Jun 26, 2008

Add Your Answer

Uploading: 0%

my-video-file.mp4

Complete. Click "Add" to insert your video. Add

×

Loading...
Loading...

Related Questions:

1 Answer

A good proxy software


Proxy server is for internet caching.
I suggest the following:
If your server running Linux, Squid is a good proxy software ...

If your server running Windows ISA server from Microsoft is a
good alternative.

Jan 12, 2009 | Computers & Internet

Tip

DHCP Server configuration in Linux


Linux is a UNIX based operating system. It is a server operating system. REDHAT Linux is Enterprise version of Linux. Now a day's Most of corporate sectors use red hat Linux as server in their company because it is secure very much.

Full form of DHCP "Dynamic Host Configuration Protocol. DHCP server assigns IP addresses and other network configuration information like subnet mask, broadcast address, etc to computers on a network. The DHCP assignments are the following.

Lease Request: Client broadcasts their request to DHCP server with a source address of 0.0.0.0 and a destination address of 255.255.255.255.
IP lease offer: DHCP server replies with an IP address, subnet mask, network gateway, name of the domain, name servers, duration of the lease and the IP address of the DHCP server.

Lease Selection: Client receives offer and broadcasts to al DHCP servers that will accept given offer so that other DHCP server need not make an offer.

The DHCP server then sends an ack to the client. The client is configured to use TCP/IP. Lease Renewal: When half of the lease time has expired, the client will issue a new request to the DHCP server.

Installation of DHCP server: First of all while install the RedHat Linux enterprise version server be careful about the ports and the services must be turned on. To create DHCP server in Linux first download DHCP RPM package and install with "rpm-ivh" command. Where I have done it there I have create YUM server, so easily I have download and install it by YUM (yum install dhcp version). DHCP package will locate in /usr/share/doc/at Linux file system. I copied the DHCP's files from /usr/share/doc/ to /etc/dhcpd.conf.. Then I started to configure the dhcpd.conf file to route the DHCP server in there local network. I have open the configuration file with "vi" command. Then commented out the lines from "default gateway to option netbios" because system don't read the commented lines. After that I set the range of IP address in dynamic- bootp of their local assumption of system. I have change the "next-server" with the dhcp server name and have also change the fixed address with the dhcp server IP address (end range of dynamic IP). It is very easy job to configure DHCP server. After configure the .conf file of dhcp just turn on the service with "chkconfig" command and restart the dhcp service. After that entire job I reboot the system. And after rebooting of server I turned on the other client system. While startup the client system without static IP address all of those picked up IP from dhcp server and going on successfully. I have prefer the command line mode to do the total job.
The DHCP server configure file is following:

ddns-update-style interim
ignore client-updates

subnet 192.168.1.0 netmask 255.255.255.0 {
# The range of IP addresses the server
# will issue to DHCP enabled PC clients
# booting up on the network

range 192.168.1.201 192.168.1.220;
# Set the amount of time in seconds that
# a client may keep the IP address

default-lease-time 86400;
max-lease-time 86400;

# Set the default gateway to be used by
# the PC clients

option routers 192.168.1.1;
# Don't forward DHCP requests from this
# NIC interface to any other NIC
# interfaces

option ip-forwarding off;

# Set the broadcast address and subnet mask
# to be used by the DHCP clients

option broadcast-address 192.168.1.255;
option subnet-mask 255.255.255.0;

# Set the NTP server to be used by the
# DHCP clients

option ntp-servers 192.168.1.100;

# Set the DNS server to be used by the
# DHCP clients

option domain-name-servers 192.168.1.100;

# If you specify a WINS server for your Windows clients,
# you need to include the following option in the dhcpd.conf file:

option netbios-name-servers 192.168.1.100;

# You can also assign specific IP addresses based on the clients'
# ethernet MAC address as follows (Host's name is "laser-printer":

host laser-printer {
hardware ethernet 08:00:2b:4c:59:23;
fixed-address 192.168.1.222;
}
}
#
# List an unused interface here
#
subnet 192.168.2.0 netmask 255.255.255.0 {
}

on Mar 17, 2011 | Computers & Internet

Tip

How to divide bandwidth in squid


What is Bandwidth throttling :

Consider we are having 512Kbps Internet connection line. And the system administrator wants to divide the whole bandwidth into two sections. Read More One for the normal users and the other for special users who need high speed internet connection. So that all the normal users can use 256 Kbps and the special users can use the remaining 256 Kbps. So in this case you have to make a bandwidth throttling to differentiate the whole single pipe line into two sections. This can be achieved using squid proxy server.

Squid main configuration file ----- /etc/squid/squid.conf
Squid log file ----- /var/log/squid/access.log
Cache log file ----- /var/log/squid/cache.log

Bandwidth throttling in squid is done using Delay Pools. Delay pools uses bucketing system.

Throttle Calculations
512Kbps(Kilo bits per second) -----> 64Kbytes -----> 64000bytes
256Kbps -----> 32Kbytes -----> 32000bytes
128Kbps -----> 16Kbytes -----> 16000bytes
64Kbps -----> 8Kbytes -----> 8000bytes

Points to remember in Delay Pools:
There are basically three things to note, they are - delay pools, delay class, delay parameters.

Delay pool --- Defines how many pools we want to use
Delay Class ---- Defines type of the pool you are going to use.
Delay Parameter � allots the restrictions and fill rate/maximum bucket size.

As I have said previously in this documentation delay pools uses bucketing system.
Now there are three types of buckets

Class 1 pool: A single aggregate bucket, shared by all users
Class 2 pool: One aggregate bucket, 256 individual buckets
Class 3 pool: One aggregate bucket, 256 network buckets, 65,536 individual buckets

If you still have any problem in the above syntax (ie) aggregate, network and individual buckets to understand, then here is a simple syntax/example for all these

For Class 1 delay pool
delay_parameters 1 32000/32000

For Class 2 delay pool
delay_parameters 1 48000/48000 48000/48000

For Class 3 delay pool
delay_parameters 2 32000/32000 8000/8000 16384/16384

Example Setup:
One 512Kbps pipe line. We want to distribute the whole pipe line into 2. One for normal users and other for special users as follows
Normal users --- 128 Kbps
Special Users --- 384 Kbps

Configuration Setup File /etc/squid/squid.conf:
Before getting into the delay pools setup first create the acl(Access Control List). Through acl you can define rules according to your requirements. Find the Access Control section in the squid.conf file.
Here is an example:

acl superusers src 192.168.1.1 192.168.1.2 192.168.1.3
acl mynetwork src 192.168.1.0/255.255.255.0

Here in the above example only three users are special users who need 256Kbps bandwidth which are listed in the specialusers label and the whole network including he special users are labeled as mynetwork.

After creating the users you have to allow them to access the internet. Below line specifies for allowing the mentioned labeled users.

http_access allow superusers
http_access allow mynetwork

Now comes the funny part Delay Pools. Here We will deal with a basic example for delay pools.

The example is as follows: We are having 512Kbps pipe line connection. We want to divide it into segments one for the special users, web servers and the other for the normal users in the organization. The special users and the web servers are given 384Kbps speed and the remaining 128Kbps for the normal users.

Delay Pools for super users:
Check for the delay pools section in the squid.conf file.
Start the configuration for delay pools as follows
==================================
########## Delay Pools############
==================================

delay_pools 2

As described above we have to create 2 delay pools, one for each delay class.
====================================================
######### Defining Delay pool 1 in class 2 #########
====================================================

delay_class 1 2
delay_parameters 1 48000/48000 48000/48000
delay_access 1 allow superusers

The first line specifies Delay Class which defines delay pool 1 for the delay class 2.

Why we are using delay class 2 here?

The first part on the second line ie �1� defines the pool One(1)

The second part on second line defines the aggregate 48000/48000(restore/max). where restore is the number of bytes (not bits - modem and network speeds are usually quoted in bits) per second placed into the bucket, and maximum is the maximum number of bytes which can be in the bucket at any time.

The third part on second line is individual buckets again 48000/48000(restore/max). All the special users and the web servers should obtain the same speed of 384 Kbps.

The third line allows the super users to fall in that bucket.

=====================================================
######### Defining Delay pool 2 in class 3 #########
=====================================================

Delay Pools for normal users:

delay_class 2 3
delay_parameters 2 32000/32000 8000/8000 16384/16384
delay_access 2 allow !superusers

The first line specifies Delay Class which defines delay pool 2 for the delay class 3.

The first part on the second line ie �2� defines the pool Two(2) of class three(3)

The second part on second line defines the aggregate 32000/32000(restore/max) as aggregate (ie for whole).
Note : - If you use -1/-1. �-1� indicates �unlimited�.

The third part on second line is network bucket. We have defined here 8000/8000 .

The fourth part on second line is for individual.

The third line specifies to throttle all the users except the super users.

How to check:
First set proxy settings in your browser as follows:
Go to any client machine and open an IE(Internet Explorer). Select "Tools" menu then select "Internet Options" then select "Connections" tab. After that select the "LAN Settings" button, you will get a new pop-up window there you select "Use proxy server for your LAN" check box and finally give your squid proxy servers ip address and the port on which the squid proxy server is configured. Now press "OK" and again press "OK". Cloase the window and now open a new window.
Second Check by downloading any large file

Start to download any lage file not less than 10MB size. Because when ever you download any small file it used to download it quickly. When you start downloading large file at first if you note some starting bytes of the file gets downloaded quickly and later it gets slowed down.

Keep a note on the download pop-up box which shows the speed limits in "kbps". When we start downloading note on the pop-up box the speed limits in kbps shows high value and then slowly gets decreased. This means when you start downloading the bucket gets filled and slowly it decreases and becomes stable to the specified limit in Kbps according to the configuration. Remember again as i told restore value is used to set the download speed, and the max value lets you set the size at which the files are to be slowed down from.

on Apr 24, 2010 | fedora Linux Operating System

1 Answer

Internet Bandwidth problem


try and get install polipo

it may solve ur promblem

Jun 17, 2008 | Computers & Internet

1 Answer

Low bandwidth in linux


Bandwidth is related to several factors:
- dedicated vs shared "on-ramp" (DSL is dedicated, good)
- Ethernet card used in the machine (single vs. dual buffers and piplining vs non) - don't know but it may be the card, more expensive cards are often worth the cost.
- drivers for the cards. If the Linux drivers (older than the Windows versions usually) don't allow for the dual buffers or piplining capability then you won't get the rated speed.

You may also have issues with the wrong drivers for your card. It may work but not work well - timing is everything with drivers.

Your description says that with another machine (a different card and drivers) it almost works. It is NOT the operating system. Typically Linux is faster on most things than Windows. It is NOT the BNSL provider. Has to be the card or its drivers.

Jun 16, 2008 | Computers & Internet

1 Answer

Linux operating system show me the low bandwidth


This sounds like your Net cards are limiting your Band or that in your linux boxes you have set a bandwidth limit somewhere.

-Rel

May 30, 2008 | Computers & Internet

1 Answer

Squid problem


Sorry dear...you cannot configure squid for that ...since squid is a http proxy ..cannot operate it in use for smtp/pop3 connectivity ....
Cheers - Parveen

Feb 22, 2008 | Computers & Internet

2 Answers

Download MAil From JAna SErver


Hello Sir,

As my internet is shared through cc proxy
I have to put proxies to all of my programs so that they can run.
Unfortunatelly the only one I cannot get running is outlook express.
When I try to edit the outlook proxy settings it sends me to Internet Explorer's settings
(which makes me think that outlook and internet explorer share the same proxy settings).
The strangest thing is that IE runs with no problems
but outlook express cannot connect to the server.
It says that the server cannot be found (both incoming and outgoing)
Could you please advise me how to make the outlook running.
Also I had try to install squid 2.7 proxy on win2k8 but i m getting some error with squid service is not runniong on win2k8 it says create services failed ...please advice me which proxy server i can use our network ( my task is only i want 2 secure internet & block some sites on my internet and outlook should be a work )

Thank you very much.
Have a great day,



Regards
Ashok

Jan 17, 2008 | Computers & Internet

1 Answer

Firewall is not configered is linux centos


try and go for it..all d best...


**********
Use yum command as follows:
# yum install squid
Output:
Loading "installonlyn" plugin Setting up Install Process Setting up repositories Reading repository metadata in from local files Parsing package install arguments Resolving Dependencies --> Populating transaction set with selected packages. Please wait. ---> Package squid.i386 7:2.6.STABLE6-4.el5 set to be updated --> Running transaction check Dependencies Resolved ============================================================================= Package Arch Version Repository Size ============================================================================= Installing: squid i386 7:2.6.STABLE6-4.el5 updates 1.2 M Transaction Summary ============================================================================= Install 1 Package(s) Update 0 Package(s) Remove 0 Package(s) Total download size: 1.2 M Is this ok [y/N]: y Downloading Packages: Running Transaction Test Finished Transaction Test Transaction Test Succeeded Running Transaction Installing: squid ######################### [1/1] Installed: squid.i386 7:2.6.STABLE6-4.el5 Complete! Squid Basic Configuration Squid configuration file located at /etc/squid/squid.conf. Open file using a text editor:
# vi /etc/squid/squid.conf
At least you need to define ACL (access control list) to work with squid. The defaults port is TCP 3128. Following example ACL allowing access from your local networks 192.168.1.0/24 and 192.168.2.0/24. Make sure you adapt to list your internal IP networks from where browsing should be allowed:
acl our_networks src 192.168.1.0/24 192.168.2.0/24
http_access allow our_networks
Save and close the file. Start squid proxy server:
# chkconfig squid on
# /etc/init.d/squid start
Output:
init_cache_dir /var/spool/squid... Starting squid: . [ OK ] Verify port 3128 is open:
# netstat -tulpn | grep 3128
Output:
tcp 0 0 0.0.0.0:3128 0.0.0.0:* LISTEN 20653/(squid) Open TCP port 3128 Finally make sure iptables is allowing to access squid proxy server. Just open /etc/sysconfig/iptables file:
# vi /etc/sysconfig/iptables
Append configuration:
-A RH-Firewall-1-INPUT -m state --state NEW,ESTABLISHED,RELATED -m tcp -p tcp --dport 3128 -j ACCEPT
Restart iptables based firewall:
# /etc/init.d/iptables restart
Output:
Flushing firewall rules: [ OK ] Setting chains to policy ACCEPT: filter [ OK ] Unloading iptables modules: [ OK ] Applying iptables firewall rules: [ OK ] Loading additional iptables modules: ip_conntrack_netbios_n[ OK ] Client configuration Open a webbrowser > Tools > Internet option > Network settings > and setup Squid server IP address and port # 3128.
See also You may find our previous squid tips useful:

Nov 26, 2007 | Computers & Internet

Not finding what you are looking for?
Computers & Internet Logo

Related Topics:

96 people viewed this question

Ask a Question

Usually answered in minutes!

Top Computers & Internet Experts

Les Dickinson
Les Dickinson

Level 3 Expert

18424 Answers

Doctor PC
Doctor PC

Level 3 Expert

7733 Answers

David Payne
David Payne

Level 3 Expert

14162 Answers

Are you a Computer and Internet Expert? Answer questions, earn points and help others

Answer questions

Manuals & User Guides

Loading...