Networking Forums

Networking Forums > Computer Networking > Linux Networking > Raw ethernet socket

Reply
Thread Tools Display Modes

Raw ethernet socket

 
 
InuY4sha
Guest
Posts: n/a

 
      07-02-2007, 11:32 AM
Hi all,
I've got the following scenario

Access Point (AP) connected to rest of the nework
Mobile Node (MN) connected to AP through a WiFi 802.11g link

AP is Master mode
MN is Managed mode

AP plus MN create a subnet (defined by themselves only)

On both AP and MN a process is running which opens a raw ethernet
socket; I just fill the Header Source, Destination and Type Options of
the packet and send it; everything works fine, the parsing is working
and when I receive a request packet on the AP it replies with response
to MN and viceversa in a symmetric way

Everything messes up when I try the same with broadcast destination
option (FF:FF:FF:FF:FF:FF): when I try this the result is Asymmetric
and as I send one request from MN, I can se 3 of them on the log
created by my process on the AP. Then of course I get 3 replies on the
MN.
Do you have any clue why this is happening?

I want to give a couple of hints that maybe could help:
1) when I read the packets received in the AP through Ethereal I try
to read them both from the interface ath0 and from the device wifi0
and I get different results, like in the process of forwarding the
packet from the hardware device to its interface a new request is
created.
2) ethereal on MN and AP reads different number of packets (promisquus
mode or not)
-----
What I think is some sort of repeater inside the AP which clone the
packet and queue the clones in the stack for some reasons... if you
have any clue please let me know! Thank you!

 
Reply With Quote
 
 
 
 
Bjorn Nuyttens
Guest
Posts: n/a

 
      07-16-2007, 04:02 PM
InuY4sha wrote:
> Hi all,
> I've got the following scenario
>
> Access Point (AP) connected to rest of the nework
> Mobile Node (MN) connected to AP through a WiFi 802.11g link
>
> AP is Master mode
> MN is Managed mode
>
> AP plus MN create a subnet (defined by themselves only)
>
> On both AP and MN a process is running which opens a raw ethernet
> socket; I just fill the Header Source, Destination and Type Options of
> the packet and send it; everything works fine, the parsing is working
> and when I receive a request packet on the AP it replies with response
> to MN and viceversa in a symmetric way
>
> Everything messes up when I try the same with broadcast destination
> option (FF:FF:FF:FF:FF:FF): when I try this the result is Asymmetric
> and as I send one request from MN, I can se 3 of them on the log
> created by my process on the AP. Then of course I get 3 replies on the
> MN.
> Do you have any clue why this is happening?
>
> I want to give a couple of hints that maybe could help:
> 1) when I read the packets received in the AP through Ethereal I try
> to read them both from the interface ath0 and from the device wifi0
> and I get different results, like in the process of forwarding the
> packet from the hardware device to its interface a new request is
> created.
> 2) ethereal on MN and AP reads different number of packets (promisquus
> mode or not)
> -----
> What I think is some sort of repeater inside the AP which clone the
> packet and queue the clones in the stack for some reasons... if you
> have any clue please let me know! Thank you!
>


There are two options: either the MN sends it three times (for some
reason) and thus the packet is send three times over the air. Or as you
suggest, it is only sent once over the air but is duplicated on the AP.
You can use a wireless sniffer to pinpoint the cause.

If your AP has wired interfaces, you can try sending the broadcast
packet to a wired interface. This may be easier to debug using a third
host and a hub. You may/may not see the same behaviour.
 
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
broadband wireless router - ethernet socket - adsl modem? Willie Webster\(WW\) Windows Networking 2 03-28-2005 09:03 PM
How to get my local ethernet ip on which i receive a socket data?? kernel.lover Linux Networking 1 03-22-2005 08:41 AM
application to receive ethernet|IP|UDP a ethernet|ppp|IP|UDP packages over socket Andreas Linux Networking 0 06-07-2004 03:24 AM
Need help! Raw ethernet socket question Michael Mueller Linux Networking 2 10-07-2003 11:18 AM
Raw Ethernet Socket programming Andrew Mehrtens Linux Networking 1 09-30-2003 09:03 PM



1 2 3 4 5 6 7 8 9 10 11