View previous topic :: View next topic |
Author |
Message |
punter Guru
Joined: 25 Nov 2002 Posts: 506
|
Posted: Wed Dec 06, 2006 8:56 pm Post subject: wireless link quality determines connection?? |
|
|
Hi,
I have my laptop and PC setup to connect on wireless using ad-hoc mode.
Whenever the two are close to each other, the connection is fine.... but whenever I move slightly further away I lose all connection!
Now, I know you can't connect when you have 0 signal.... but why can't I connect when I have 64% link quality ??
Code: |
root@slimbox ~ # iwlist eth1 scanning
eth1 Scan completed :
Cell 01 - Address: 02:13:02:00:00:BE
ESSID:"charlotte"
Protocol:IEEE 802.11bg
Mode:Ad-Hoc
Channel:11
Encryption key:on
Bit Rates:1 Mb/s; 2 Mb/s; 5.5 Mb/s; 6 Mb/s; 9 Mb/s
11 Mb/s; 12 Mb/s; 18 Mb/s; 24 Mb/s; 36 Mb/s
48 Mb/s; 54 Mb/s
Quality=61/100 Signal level=-64 dBm
Extra: Last beacon: 18ms ago
Cell 02 - Address: 02:09:5B:23:89:2A
ESSID:"linuxbo"
Protocol:IEEE 802.11bg
Mode:Ad-Hoc
Channel:11
Encryption key:off
Bit Rates:1 Mb/s; 2 Mb/s; 5.5 Mb/s; 6 Mb/s; 9 Mb/s
11 Mb/s; 12 Mb/s; 18 Mb/s; 22 Mb/s; 24 Mb/s
36 Mb/s; 48 Mb/s; 54 Mb/s
Quality=62/100 Signal level=-63 dBm
Extra: Last beacon: 42ms ago
Cell 03 - Address: 00:0F:B5:15:F6:7E
ESSID:"Zen"
Protocol:IEEE 802.11bg
Mode:Master
Channel:11
Encryption key:off
Bit Rates:1 Mb/s; 2 Mb/s; 5.5 Mb/s; 6 Mb/s; 9 Mb/s
11 Mb/s; 12 Mb/s; 18 Mb/s; 22 Mb/s; 24 Mb/s
36 Mb/s; 48 Mb/s; 54 Mb/s
Quality=59/100 Signal level=-65 dBm
Extra: Last beacon: 12108ms ago
root@slimbox ~ # iwconfig
lo no wireless extensions.
eth0 no wireless extensions.
eth1 IEEE 802.11g ESSID:"linuxbo"
Mode:Ad-Hoc Frequency:2.462 GHz Cell: 02:09:5B:23:89:2A
Bit Rate:54 Mb/s Tx-Power=20 dBm Sensitivity=8/0
Retry limit:7 RTS thr:off Fragment thr:off
Encryption key:off
Power Management:off
Link Quality=64/100 Signal level=-62 dBm Noise level=-85 dBm
Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0
Tx excessive retries:0 Invalid misc:0 Missed beacon:0
root@slimbox ~ # ifconfig eth1
eth1 Link encap:Ethernet HWaddr 00:13:CE:29:74:38
inet addr:192.168.0.9 Bcast:192.168.0.255 Mask:255.255.255.0
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:1 errors:0 dropped:0 overruns:0 frame:0
TX packets:1 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 b) TX bytes:524 (524.0 b)
Interrupt:22 Base address:0xa000 Memory:b0107000-b0107fff
root@slimbox ~ # ping 192.168.0.50
PING 192.168.0.50 (192.168.0.50) 56(84) bytes of data.
From 192.168.0.9 icmp_seq=2 Destination Host Unreachable
From 192.168.0.9 icmp_seq=3 Destination Host Unreachable
From 192.168.0.9 icmp_seq=4 Destination Host Unreachable
From 192.168.0.9 icmp_seq=6 Destination Host Unreachable
From 192.168.0.9 icmp_seq=7 Destination Host Unreachable
From 192.168.0.9 icmp_seq=8 Destination Host Unreachable
--- 192.168.0.50 ping statistics ---
8 packets transmitted, 0 received, +6 errors, 100% packet loss, time 6998ms, pipe 3
|
Can someone explain please.
Also, I have never fiddled with the frequency / channel number / rate / etc .... is there any setting that would enable me to connect (even at a horribly slow connection rate?)
Many thanks,
Shane
[EDIT] logs included. |
|
Back to top |
|
|
no_hope Guru
Joined: 23 Jun 2003 Posts: 482
|
Posted: Thu Dec 07, 2006 12:59 am Post subject: |
|
|
The term "link quality" is deceptive. Without going into too much detail, SNR (signal-to-noise ratio) is what actually determines how much data you can send on a channel. SNR is the ratio of power at which you receive the data signal over the power of ambient environmental noise. The higher the SNR, the higher the data rate, the better your channel. This is the intuition for link quality.
The problem is that SNR is difficult to measure. So most cards instead report a ratio of the sum of actual signal power and noise power over some constant (noise floor). Thus, the stronger your signal is, the higher the "link quality". That is good. However by that equation, increasing noise also increases link quality. I.e. you could have 100% link quality that is entirely due to noise.
Even worse, link quality reported by iwconfig is an average and in ad-hoc networks may have little to do with the link quality to a particular peer.
To address poor signal quality you could try the following:
- don't use ad-hoc mode, it can be very unreliable even in good conditions
- try changing the channel
- try using 802.11a instead of 802.11bg (802.11a has shorter distance, but fewer things interfere with it)
- try fixing the rate at 1Mbps on all your machines with iwconfig
- fiddle with antenna locations and orientation
- buy/make higher gain (bigger) antennas
- try buying a good access point (they sometimes have better antennas)
- try using 802.11b it's more resilient sometimes (not sure)
- make sure all cards use maximum transmit power (Intel cards in particular)
- enable RTS/CTS (long shot)
|
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|