"Rainer Sinsch" <(E-Mail Removed)> hath wroth:
>thank you very much for your detailed answer. Perhaps I should have written
>why I'm asking this question:
Yep. Answers without context tend to be overly general.
>We are using wireless barcode scanners that only send TCP/IP traffic when
>doing a barcode-scan. Now if there is no scanning done (and no TCP/IP
>traffic is sent) the scanners get disconnected from our APs after 180
>seconds.
Are the scanners going into some kind of power save mode? That's
typical of the scanners I'm familiar (ancient Intermec and Symbol). If
you're not sure, run the timeout test by yanking the battery from the
scanner before it has a chance to initiate a disconnect. It's
possible that the scanner issues a disconnect, deauth, or disassociate
packet before going into power save.
I did some googling and blundered across this document. It's a Linux
based handheld terminal:
<http://amltd.com/pdf/commandlink_userguide.pdf>
See page 34 some details on how their timeouts work. It might give
you a clue on how it *SHOULD* work.
<http://amltd.com/m7100.asp>
It does barcode. (Sorry, no experience with the product).
>After that, the clients directly reconnect again. We can see this
>clearly in our logs and we have been told by the AP manufacturer that the
>180 seconds timeout is hardcoded into the firmware and can not be changed.
See what clearly? Is the access point really initiating the
disconnect? Or is it just responding to a disconnect request from the
scanner just before it goes into power save?
>The problem with this behaviour is that the reconnection process takes some
>time (802.1x authentication + dhcp request) and during this timeframe the
>scanner hangs and cannot be used for scanning.
Yep. However, I think you might be trying to "solve" this problem in
a rather backwards manner. The scanners I played with only used WEP
so reconnects were considerably faster. It was about equal to the
time it took for the mirror to spin up and/or the CPU to restart. The
users would just push the trigger at the floor, wait a few seconds,
and then it was ready. My guess(tm) is about 5 seconds maximum.
How long does yours take? (Hint: No numbers, no indication of
progress and no comparisons).
>The scanners I played with took about
>Another thing is that both
>our RF-environemnt and logs gets filled up with senseless reauthentication
>packages.
That sounds more like an interference, collision, or signal strength
problem. The re-auths are not senseless. They're an indication of
loss of connection, lost packets, excessive retransmissions, or
sufficient interference that the AP gives up and wants to start over.
It also might be trying to roam/switch between access points.
Questions:
1. More than one access point? How many?
2. All the same SSID?
3. All the same RF channel? Auto channel selection?
I'm trying to get a feel for what's causing the log to fill with what
I'm guessing are attempts to find a better connection.
Have you tried testing this under ideal conditions?
>Personally I don't want to believe that a hardcoded automatic disconnection
>after 180 seconds idle time is part of the 802.11 standard so I'm looking
>for some documents that describe this behaviour.
I'll look in the IEEE docs. It's in there, somewhere. Reading the
IEEE docs tends to turn by brain to mush, so please ignore any future
incoherent babbling.
>Also I'd like to know if
>this is the case for all 802.11 APs or just the case for our manufacturer (I
>don't want to paste the name here, but it's an industrial AP and not a
>low-budget one from BestBuy).
Bad idea. If some manufactory screwed up on anything other than a
security issue, I believe it should be plastered all over usenet and
the web until it's fixed. I've found that this is often the only way
to get their attention. In trade, you are responsible for posting the
inevitable outcome of your investigation which includes that the
product might have some problems.
>I can also imagine that this is a problem from
>a bad 802.11 implementation on our barcode-scanners. I just want to clarify
>the problem and have a look at possible solutions.
I've seen considerable creativity in following the 802.11
specifications. Disconnect behavior is intimately entangled with
roaming ability and seems to be a target for tinkering. However, it's
usually the client that requires the tinkering to fix roaming. As far
as I know, the access point timing is usually fairly close to whatever
is recommended in IEEE 802.11-1999.
>>>will there be some kind of timeout (on the base that the
>>>client does not send any packets anymore),
>>
>> Yes. However, there are actually several timeouts. Since the access
>> point controls the connection, it's usually the access point that
>> initiates a disconnect.
>
>That is true. In our case it is 180 seconds. We have sniffed the wireless
>traffic and can clearly see the deauthentication frame outgoing from the AP.
Ok, so it's the AP that's initiating the disconnect, not the client.
Presumeably, it's because of the timeout, not because of interference
or packet loss, etc. Duz the log file give a reason for the
disconnect or an "initiated by...." tag?
>>>or is there some kind of
>>>"is-alive frame" outgoing from the AP involved?
>>
>> There is a keep alive coming from the client. The idea is to keep the
>> connection alive even if there is no data traffic. However, even with
>> no data traffic (i.e. no payload), there is plenty of management
>> traffic between the client and access point. Strictly speaking, the
>> keep alive is not needed or could be considered optional.
>
>Now this sounds interesting. Could you elaborate on this? What kind of
>management traffic is this? If this is the case then our barcode-scanners
>shouldn't be disconnected, should they?
If the managment traffic, which sends signal strength, SNR, and other
goodies back and forth all the time ever stops, I guess the 3 minute
timer starts. That can only happen if the bar code scanner goes into
power save mode and shuts up completely.
Digging in the specs....
--
Jeff Liebermann
(E-Mail Removed)
150 Felker St #D
http://www.LearnByDestroying.com
Santa Cruz CA 95060
http://802.11junk.com
Skype: JeffLiebermann AE6KS 831-336-2558