Question about Operating Systems

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)

×

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

  • 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

  • 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

3 Suggested Answers

  • 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:

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

Tip

How to configure your squid in linux


To configure squid proxy go to
/etc/squid/squid.conf file and then change its port no. from 3128 to 8080.
this is the http port that squid proxy listen for .

Then create your own access list
acl_access name_access_list src networkaddress


Then finally u have the power to allow or deny the particular network


http_access allow name_access_list


Just follow the above three steps to let squid work properly.

You must enable ip forwarding also.

for this go to

/etc/sysctl.conf

in it on the line
net_ipv4 forwarding=0
change it to 1
this will enable the ip forwarding

you can check ip forwarding by

sysctl -p

on Apr 24, 2010 | fedora Linux Operating System

1 Answer

LINUX SQUID SERVER IN TRANSPARENT MODE


Dear Friend....
The examples below are based on the discussion of Linux iptables in Chapter 14, "Linux Firewalls Using iptables". Additional commands may be necessary for you particular network topology.
In both cases below, the firewall is connected to the Internet on interface eth0 and to the home network on interface eth1. The firewall is also the default gateway for the home network and handles network address translation on all the network's traffic to the Internet.
Only the Squid server has access to the Internet on port 80 (HTTP), because all HTTP traffic, except that coming from the Squid server, is redirected.
If the Squid server and firewall are the same server, all HTTP traffic from the home network is redirected to the firewall itself on the Squid port of 3128 and then only the firewall itself is allowed to access the Internet on port 80.
iptables -t nat -A PREROUTING -i eth1 -p tcp --dport 80 \
-j REDIRECT --to-port 3128
iptables -A INPUT -j ACCEPT -m state \
--state NEW,ESTABLISHED,RELATED -i eth1 -p tcp \
--dport 3128
iptables -A OUTPUT -j ACCEPT -m state \
--state NEW,ESTABLISHED,RELATED -o eth0 -p tcp \
--dport 80
iptables -A INPUT -j ACCEPT -m state \
--state ESTABLISHED,RELATED -i eth0 -p tcp \
--sport 80
iptables -A OUTPUT -j ACCEPT -m state \
--state ESTABLISHED,RELATED -o eth1 -p tcp \
--sport 80
Note: This example is specific to HTTP traffic. You won't be able to adapt this example to support HTTPS web browsing on TCP port 443, as that protocol specifically doesn't allow the insertion of a "man in the middle" server for security purposes. One solution is to add IP masquerading statements for port 443, or any other important traffic, immediately after the code snippet. This will allow non HTTP traffic to access the Internet without being cached by Squid.
If the Squid server and firewall are different servers, the statements are different. You need to set up iptables so that all connections to the Web, not originating from the Squid server, are actually converted into three connections; one from the Web browser client to the firewall and another from the firewall to the Squid server, which triggers the Squid server to make its own connection to the Web to service the request. The Squid server then gets the data and replies to the firewall which then relays this information to the Web browser client. The iptables program does all this using these NAT statements:
iptables -t nat -A PREROUTING -i eth1 -s ! 192.168.1.100 \
-p tcp --dport 80 -j DNAT --to 192.168.1.100:3128
iptables -t nat -A POSTROUTING -o eth1 -s 192.168.1.0/24 \
-d 192.168.1.100 -j SNAT --to 192.168.1.1
iptables -A FORWARD -s 192.168.1.0/24 -d 192.168.1.100 \
-i eth1 -o eth1 -m state
--state NEW,ESTABLISHED,RELATED \
-p tcp --dport 3128 -j ACCEPT
iptables -A FORWARD -d 192.168.1.0/24 -s 192.168.1.100 \
-i eth1 -o eth1 -m state --state ESTABLISHED,RELATED \
-p tcp --sport 3128 -j ACCEPT
In the first statement all HTTP traffic from the home network except from the Squid server at IP address 192.168.1.100 is redirected to the Squid server on port 3128 using destination NAT. The second statement makes this redirected traffic also undergo source NAT to make it appear as if it is coming from the firewall itself. The FORWARD statements are used to ensure the traffic is allowed to flow to the Squid server after the NAT process is complete. The unusual feature is that the NAT all takes place on one interface; that of the home network (eth1).
You will additionally have to make sure your firewall has rules to allow your Squid server to access the Internet on HTTP TCP port 80 as covered in Chapter 14, "Linux Firewalls Using iptables".

Good Luck!

Jun 22, 2009 | Operating Systems

2 Answers

How to speed up my net


Hello

Here you go;

Windows XP change DNS server
You can Click on Start button > Settings > Network connections
Double click on Local Area Connection or your Internet connection
Click on Properties button
Select Internet Protocol (TCP/IP)
Click on Properties button and Look for Preferred DNS Server:
Setup NS1 - 208.67.222.222
Setup NS2 - 208.67.220.220

Save and close the windows. If you are using old version of windows you may need to reboot the system.

To test new setting go to Start > Run > Type cmd
Type nslookup command
Now type domain name
yahoo.com
google.com

Linux change DNS server
Please read following tnstructions:
http://www.cyberciti.biz/nixcraft/vi...dns-client.php

If you are using a Linux, you can further increase speed by installing squid local proxy server and dns dnsmasq caching server.
http://www.cyberciti.biz/nixcraft/vi...ormance-on.php

For more information, see their website http://opendns.com/

- -

Good Luck

Please rate

Jan 20, 2009 | Microsoft Windows XP Home Edition

1 Answer

Internet Bandwidth problem


try and get install polipo

it may solve ur promblem

Jun 17, 2008 | Operating Systems

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 | Operating Systems

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 | Operating Systems

Not finding what you are looking for?
Operating Systems Logo

Related Topics:

94 people viewed this question

Ask a Question

Usually answered in minutes!

Top Operating Systems Experts

Les Dickinson
Les Dickinson

Level 3 Expert

18298 Answers

Brian Sullivan
Brian Sullivan

Level 3 Expert

27725 Answers

Prashant  Sharma
Prashant Sharma

Level 3 Expert

1127 Answers

Are you an Operating System Expert? Answer questions, earn points and help others

Answer questions

Manuals & User Guides

Loading...