oxle ID:
password:
store password | forgot password?
schakel over op de nederlandse versie 
 the forums »  INT/Section »  techtalk
 How to connect two networks, wireless
Next Page
Reply to this topic Share this page! Printer Friendly
of 3 Message
MarcelG
Netherlands 13.5k posts
 Posted 18/01/10 @ 16:02 - 1367 pageviews Show MarcelG's profile Reply with Quote  ¤ 
Here's a challenge.
Let's assume Krypt and I live pretty close to each other.
Let's assume we both have a wireless network.
Then, let's assume we want to connect those two networks in such a way that we can access each others file shares (NAS, windows file shares (CIFS)), while keeping our internet access through our own gateways.

Here's the network drawing, simplified.
[img]/uploaded/18/1/ournetworks_notlinkedyet.jpg[/img]

How can we link these two networks over the air, while retaining our own local internet access ?

Via the internet is also an option, using some kind of VPN, however both our internet connections have a limited upload speed at 1 Mbit/sec.
With a wireless link we can get up to 54 MBit/sec, which is enough.
With a cantenna I think the 60 meters is not a problem in terms of wireless connectivity, but what needs to be done in terms of devices, routing etc ?

Should I place a wireless bridge device which connects over UTP to my switch, and which connects to Krypts wireless network over the air?
HuwR
 
United Kingdom 420 posts
 Posted 18/01/10 @ 17:06 Show HuwR's profile Reply with Quote  #1 
quote :
Should I place a wireless bridge device which connects over UTP to my switch, and which connects to Krypts wireless network over the air?
yes in essence that is what you need to do.

60m may not seem that far but you will need a pretty clear line of site view, anything inbetween will drastically reduce your range.
MarcelG
 
Netherlands 13.5k posts
 Posted 18/01/10 @ 20:10 Show MarcelG's profile Reply with Quote  #2 
Will the bridge also function as the router to Krypts network then, or should I define static routes in my current router?
Krypt
 
Netherlands 574 posts
 Posted 19/01/10 @ 09:20 (Edited @ 10:28) Show Krypt's profile Reply with Quote  #3 
Let's say we are setting up the following networks:
1. 192.168.1.0/24 for me (main router is at 192.168.1.1 and wl500g1 is at 192.168.1.2)
2. 192.168.2.0/24 for you (main router is at 192.168.2.1 and wl500g2 is at 192.168.2.2)

(192.168.1.2 - WL500g1 - 192.168.3.1) <-> (192.168.3.2 - WL500g2 - 192.168.2.2)
We need to add a route to WL500g1 to forward each packet with destination 192.168.2.x to WL500g2 (192.168.3.2) and add a route to WL500g2 to forward each packet with destination 192.168.1.x to WL500g1 (192.168.3.1)

Then we need to add a route to our main routers. My main router needs to forward each packet with destination 192.168.2.x to 192.168.1.2, and your main router needs to forward each packet with destination 192.168.1.x to 192.168.2.2

This should do the trick. The question is; are our routers capable of doing this.

Connecting both WL500g shouldn't be a problem. Connect both WL500g with WDS or one in AP mode and one in Client mode. (WPA is max; WPA2 isn't supported) but the tricky part is to set up static routes in both WL500g's and main routers.

[edit]
WL500g should support the RIP protocol. So when they are in Router mode and NAT is disabled they should see eachother and autocreate routes. Only thing to do is to add routes to our mainroutes; my Fritzbox supports it and maybe your linksys also supports it,
Krypt
 
Netherlands 574 posts
 Posted 19/01/10 @ 09:55 Show Krypt's profile Reply with Quote  #4 
Another idea:

Only a wireless bridge would cause problems because we probably have both our routers configured to use 192.168.1.1 and both have DHCP enabled. My clients could get an IP address from the wrong DHCP server and we have a conflicting IP address.

Workaround:
Change IP address; my router and my network get 192.168.1.0/16 and your network gets 192.168.2.0/16. Both main routers have dhcp enabled for each "network". We connect both wireless routers to eachother in WDS/AP-Client mode and search something to block port 67+68 on this connection.

Static IP addresses on each device al also a "solution" but not workable for me because my laptop needs to be in multiple networks and I don't want to change the ip address every time I change network.
[img]http://www.dejong-frencken.com/random.php[/img]
MarcelG
 
Netherlands 13.5k posts
 Posted 19/01/10 @ 12:18 Show MarcelG's profile Reply with Quote  #5 
I'm thinking it can be even more simple.

One subnet: 192.168.1.0/24.
Two gateways:
- 192.168.1.1 for your DSL router (telfort connection)
- 192.168.1.2 for my DSL router (orange connection)
One DHCP server with 2 scopes.
- One scope for your systems, with 192.168.1.1 as default gateway.
- One scope for my systems, with 192.168.1.2 as default gateway.
One Asus WL500G in bridge mode that connects to my LAN over the wire, and which connects to your wireless network over the air using the cantenna.
In bridge mode this device should interconnect your LAN and my LAN.

This should be it...I think.

Ergo:
[img]/uploaded/18/1/ournetworks_linked.jpg[/img]

By the way, here are the routing features my WAG200G supports:
[img]/uploaded/18/1/wag200g_routingfeatures.png[/img]
MarcelG
 
Netherlands 13.5k posts
 Posted 19/01/10 @ 13:22 Show MarcelG's profile Reply with Quote  #6 
Btw, do you happen to have a Linksys WRT54G ?
That one supports the WAG200g<-wirelessbridge->WRT54G connection using the custom DD_WRT firmware. [:)]
No WDS, just WPA-2, 54 Mbit.
Krypt
 
Netherlands 574 posts
 Posted 19/01/10 @ 14:00 (Edited @ 14:02) Show Krypt's profile Reply with Quote  #7 
DD_WRT also supports WL500g; but that wouldn't be a problem because the WL500g also supports Client mode. So the WLAN would be the uplink for all LAN ports (only WPA).

But my router doesn't support multiple DHCP scopes. Nor is supports editting DHCP options (ea. Gateway address)

I'll try to enable the firewall on the WIFI connection and block port 67&68 (DHCP requests)
MarcelG
 
Netherlands 13.5k posts
 Posted 19/01/10 @ 14:12 Show MarcelG's profile Reply with Quote  #8 
So you'll turn your WL500G into a client of my wireless network ?
I'm not sure if I still have my old WL500G....

Let's get together sometime this week and try it out. [good]
MarcelG
 
Netherlands 13.5k posts
 Posted 20/01/10 @ 23:27 Show MarcelG's profile Reply with Quote  #9 
Okay..confused now...
Krypt and I have spent over 3 hours getting it done, and it's not working.

Situation:

Krypts network (LAN): 192.168.1.0.
My network (LAN): 192.168.2.0
Two NICs in my workstation, one on my LAN, one connected (via the wire) to an Asus WL500g, configured with an ip address in Krypts range. (192.168.1.75).
This Asus WL500g is configured to be 192.168.1.3.
The Asus connects to another Asus WL500G (192.168.1.2) which resides at Krypts home.
Signal strength: -77 dB.

Situation:
192.168.1.3 can ping 192.168.1.2.
192.168.1.3 can ping 192.168.1.75
192.168.1.2 can ping 192.168.1.3
192.168.1.75 can ping 192.168.1.3
192.168.1.2 can NOT ping 192.168.1.75 et vice versa.
Ergo, the Asus in my home can connect to my nodes of the shared subnet (192.168.1.75) ánd to Krypts section of that same subnet....no problems.
However, I cannot connect to Krypts section *over* the Asus....
According to Asus, the WL500G should use all LAN ports, the WAN port ánd the WLAN port in bridged mode in it's current operation mode (Access Point mode as a Station...)
quote :
In Access Point mode, all 5 Ethernet ports and wireless devices are set to locate in the same local area network. Those WAN related functions are not supported here.

Explaining with technical terms, access point mode is, NAT is disabled, one wan port and four lan ports of WL500g are bridged together.
Krypt
 
Netherlands 574 posts
 Posted 21/01/10 @ 08:03 (Edited @ 09:35) Show Krypt's profile Reply with Quote  #10 
I think we can fix it using the router mode in the WL500g at you place.

I've checked the possible settings.
Put both ethernet cards in your machine in Bridge mode
Enable Routing mode
Disable DHCP
Insert static IP on both WAN (192.168.2.x) and LAN (192.168.1.3) side
Enable WDS (New firmware supports WPA WDS; so upgrade is needed)
Connect WAN port of WL500g to your machine

Also we should check other (beam)antennas.

edit:
We can make biquads. It'll cost about 10euro and some effort, but I've found a fontenna on Tweakers-Aanbod for that same money. I've contacted him if he still got it. Then we can put that lightsabre antenna at my place (I've a wireless printen which I have to connect to my LAN) and that Fontenna at your place.
MarcelG
 
Netherlands 13.5k posts
 Posted 21/01/10 @ 09:49 Show MarcelG's profile Reply with Quote  #11 
Okay, so:

Put both ethernet cards in your machine in Bridge mode
- how will that affect my workstations connectivity?
Enable Routing mode
- where? In Windows 7 or on the Asus WL500G's?
Disable DHCP
- on the Asusses?
Insert static IP on both WAN (192.168.2.x) and LAN (192.168.1.3) side
- on the Asusses?
Enable WDS (New firmware supports WPA WDS; so upgrade is needed)
Connect WAN port of WL500g to your machine
- done.
Krypt
 
Netherlands 574 posts
 Posted 22/01/10 @ 21:40 (Edited @ 23:40) Show Krypt's profile Reply with Quote  #12 
I fixed it!!

My 1st WL500g has ip 192.168.1.2. I configured that one as Hybrid AP mode (WDS & AP).
I gave my 2nd WL500g IP 192.168.1.3 and configured that one as WDS Only mode.

I saved and rebooted both and they got a connection. I could join my network by plugging in an UTP cable in my second WL500g and get an IP and can browse internet and my network.

The second step, was to configure it in Router mode. Gave the WAN side IP 192.168.2.8 and disabled DHCP and firewall services. I rebooted once again, and WDS link was reconnected.

Then I configured a static route on my main router (Fritzbox 7170). 192.168.2.0/16 must connect to 192.168.1.3

I gave my laptop a static IP of 192.168.2.9 and gateway 192.168.2.8; then I connected the UTP to the WAN port of my 2nd WL500g.

Now I can ping 192.168.2.9/192.168.2.8 but can also ping every station within my main network!

Only thing wat doesn't work, is internet via that connection (2nd WL500g doesn't know the route to the internet). But that won't be a problem because Marcel would be using it's own network connection.

So Marcel; if you can't find out a way to let Windows7 or a Linux VM route trafic through my and your network... We've got a fallback scenario.
MarcelG
 
Netherlands 13.5k posts
 Posted 22/01/10 @ 21:43 Show MarcelG's profile Reply with Quote  #13 
Great!!! [good] I crafted this magnificent Windsurfer antenna, so we're definitely in business!! [good]
Krypt
 
Netherlands 574 posts
 Posted 22/01/10 @ 21:45 Show Krypt's profile Reply with Quote  #14 
Also fixed the internet "problem". Set the default gateway of the WAN connection to 192.168.1.1 and all unknown request will be forwarded to my Fritzbox and to the internet.

Funny project :)
MarcelG
 
Netherlands 13.5k posts
 Posted 22/01/10 @ 21:51 Show MarcelG's profile Reply with Quote  #15 
Huh?
Krypt
 
Netherlands 574 posts
 Posted 22/01/10 @ 23:38 (Edited @ 23:40) Show Krypt's profile Reply with Quote  #16 
Scrap that last comment. That didn't work.

All up and running. Upgraded firmware, and now WPA2 is also possible.
Ow; and I made some changes that the routers support AfterBurner technologie (125Mbps); but I can't figure out if it works in WDS mode.

Next week or so I'll try it in client mode. Exported the current setting; So I always can go back.

Max. speed in WDS mode seems to be about 2MB/s
MarcelG
 
Netherlands 13.5k posts
 Posted 23/01/10 @ 00:01 Show MarcelG's profile Reply with Quote  #17 
2 MB/sec is not bad, but more is better.
Is WDS really necessary?
The Wl500G on my side does not need to function as an AP at all, it just needs to bridge the connection to your side.
KRYPT
 
 Posted 23/01/10 @ 11:52 Reply with Quote  #18 
The only wireless connection that works in outermode is wds.
Bridge and client mode use the wan por for wirless passthroughbut we need that port for routing purposes.

So in routingmode wds is the only way. Or we have to use client/ethernet bridge mode (and hopewe have more speed and afterburner works in clientmode) and a vmware which routes the traffic
posted by KRYPT, an anonymous guest user
MarcelG
 
Netherlands 13.5k posts
 Posted 23/01/10 @ 14:26 Show MarcelG's profile Reply with Quote  #19 
Ok. Save the current router configs for safety and lets get busy.
If speed is acceptable in WDS mode I'm happy.
If not we can try the other setup.
Krypt
 
Netherlands 574 posts
 Posted 24/01/10 @ 22:46 (Edited 25/01/10 @ 07:27) Show Krypt's profile Reply with Quote  #20 
Tried Afterburner; but that won't work in WDS mode nor in Client mode.

Tweaked some settings (Performance settings & Frame bursting) and that gave me the max. troughtput of 2,45MB/s.

Just check some MKV's what bitrate it uses. But DVD's and tvseries shouldn't be a problem to stream across this connection.

I also enabled Encryption on both devices. So if you cannot connect though client mode use that WEPkey of mine (if you can't remember just text me)

These speeds are throught a 54Mbit connection.
MarcelG
 
Netherlands 13.5k posts
 Posted 24/01/10 @ 22:52 Show MarcelG's profile Reply with Quote  #21 
Mmmm, ok. Let's try it tomorrow night. I'll use the antenna booster, to see of that helps.
MarcelG
 
Netherlands 13.5k posts
 Posted 26/01/10 @ 21:16 Show MarcelG's profile Reply with Quote  #22 
Krypt, it's a success!!!
I just installed the extra networkcard and bridged it with my other networkcard which is connected to my local network.
After that, I connected the extra networkcard with the WAN port in your Asus WL500G.
I pointed the Asus' antenna, together with the ultracheap Windsurfer-antanna booster in the direction of your attic, and booted it.

I checked to see if it was available (at the static IP you provided, 192.168.2.9) and it was.

After adding the route to 192.168.1.0 via 192.168.2.9 to my own router, I checked the connection, and decided to test the speed by copying a file from your fileserver.
Amazing speed:
[img]/uploaded/18/1/wireless-copy-speed.png[/img]
After a minute or so it fell back to 1.9 MB/sec, but all in all it's a pretty stable and decent connection!
[good]

-edit-
I decided to try and see what the antenna booster does to the link, and man, it's really amazing.
Just for reference here's a shot of the € 0,50 paper & tinfoil Windsurfer Antenna Booster, as it is mounted on the WL500g.
[img]/uploaded/18/1/windsurfer_antenna.jpg[/img]


In the diagram below you can see the speed I started off with ; approx. 20% of a 100 Mbit link.
[img]/uploaded/18/1/wireless_link_utilization_during_copy.png[/img]

However, as soon as I touched the antenna booster, the connection was influenced.
I've hightlighted them with the red boxes in the diagram.

When I decided to reposition the Asus, I noticed that the closer I moved the Asus to the wall, the worse the connection became. [?]
I took it off the table, and put it closer to the ground, but that was really bad...the lowest point in this diagram was when I had the Asus on the ground, as close to the attic ceiling/wall as I could get...

Ultimately I decided to put it back on the PC, where it is now, and I managed to get the link back to a relatively stable 17%...but not 20%. [:'(]
MarcelG
 
Netherlands 13.5k posts
 Posted 26/01/10 @ 21:50 Show MarcelG's profile Reply with Quote  #23 
Grmbl.... after about an hour or so of filetransfer at 18 Mbit the Asus crashed....[v]
krypt
 
 Posted 26/01/10 @ 23:19 Reply with Quote  #24 
If you can build another antenna I will put it o my wl500g. Wl500g is isolated so no other wifi clients are connected. Now the lightsabre is connected.did you try to add the nfs share on your playon?
posted by krypt, an anonymous guest user
Krypt
 
Netherlands 574 posts
 Posted 27/01/10 @ 09:27 Show Krypt's profile Reply with Quote  #25 
It seems the rate is dropping when no data is transfered.
I just logged onto the 192.168.1.2 and the rate showed 1Mbps.
But when I pinged the 192.168.1.3 with large packets, the rate increased to 36Mbps.

Some sort of powermanagement?
Let's see if another antenna works better.
MarcelG
 
Netherlands 13.5k posts
 Posted 27/01/10 @ 17:18 Show MarcelG's profile Reply with Quote  #26 
quote :
Originally posted by Krypt on 27/01/10 @ 09:27
It seems the rate is dropping when no data is transfered.
I just logged onto the 192.168.1.2 and the rate showed 1Mbps.
But when I pinged the 192.168.1.3 with large packets, the rate increased to 36Mbps.

Some sort of powermanagement?
Ah, ok that makes sense.
The transfer speed of 1.8 to 2.45 MB/sec is pretty good.
In fact, I think that getting higher than 2.45 MB/sec is not really possible even under the best circumstances.
From a whitepaper: http://www.proxim.com/learn/li../..vestment.pdf
quote :
In a ‘clean’ environment - defined as one in which there is no other radio equipment operating and the client is close to the access point, actual achievable throughputs average approximately 50% of the maximum data rate. So, in the case of 802.11g this results in a best case situation of approximately 27 Mbps.
I think however that our current biggest issue is the stability of the Asus...it crashes every hour or so....
I again tried to download a 4 GB file yesterday from your NAS, and after 60% the connection was lost....the WL500G needed to be reset once agian.
CIFS not supporting a "resume" isn't helping much either.
quote :
Let's see if another antenna works better.

Just take 10 minutes and make the Windsurfer antenna from this template: http://www.freeantennas.com/pr../..2/index.html
All you need is
- 10 minutes
- 1 sheet of normal paper to print the template on
- adhesive tape
- a pair of scissors
- a piece of cardboard
- a sheet of tinfoil.
Result: 9 dB gain! [good]
Yosh
 
Netherlands 2.3k posts
 Posted 27/01/10 @ 20:59 Show Yosh's profile Reply with Quote  #27 
For your information: I have a perfectly functioning WL500G laying here, with only a broke power supply.

If you want, you can have it to see if it is more stable then the current WL500g you are having. Although I doubt it will help much as your Asus doesn't seem to be physically broken. If you buy a new power supply (15Euro), you have yourself another perfectly functioning router!
Krypt
 
Netherlands 574 posts
 Posted 28/01/10 @ 10:16 Show Krypt's profile Reply with Quote  #28 
Maybe we must look at the option to find a 802.11n 300Mbps router/AP.
2 days ago there was one on ibood, but I responded to late to that.

Marcel; does the AP surely crash? Does it still respond to a ping? Or did only the wifi link collapse?
MarcelG
 
Netherlands 13.5k posts
 Posted 28/01/10 @ 10:38 Show MarcelG's profile Reply with Quote  #29 
Yosh ; we could always try and see if the one you still have is more stable. I already have a power supply for it.

Krypt ; it really stops responding to a ping...."destination host unreachable" when I ping 192.168.2.9 from my workstation.

Regarding going for N: the wifi penetration of an 802.11n device is a lot less than a the 802.11g device, simply because of the 5 GHz range.

Besides, we'll need a Windsurfer antenna booster per antenna...and they have 3 each. [:o)]

I honestly think the 2.5 MB/sec transfer speed is extremely good.
From a topic over at the AC Ryan forums, I got this info:
802.11b has a theoretical speed maximum of 11 Mbits/sec with a typical transfer rate of around 4.5 Mbits/sec (0.5 MB/sec) with an ideal signal.
802.11g has a theoretical speed maximum of 54 Mbits/sec, with a typical transfer rate of around 23 Mbits/sec (2.5 MB/sec) with an ideal signal.
802.11n has a theoretical speed maximum of 300 Mbits/sec, with a typical transfer rate of around 74 Mbits/sec (9.25 MB/sec) with an ideal signal.

So, let's make the simple calculation ; to watch a 50GB BluRay movie of let's say 1.5 hours (which really is the biggest BluRay you'll find), you'll need to transfer/stream 50 GB/1.5hours.
In other words 51200 MB/5400 seconds which comes down to 9.48 MB/sec.
Even an optimal 802.11n-link will not be able to give that throughput, not even under the best possible circumstances.

However, we're not going to stream that much data, and if we were we'd also need to make sure we've got a 1 Gbps wired connection to our NAS/workstations, as the (theoretical) optimal throughput of 12 MB/sec of a 100 Mbps is very close to that figure.
Typically one can expect at maximum 2/3 of the 100 Mbps link based on several factors such as traffic and if there are any disturbances in your physical layer causing retransmissions, your throughput will suffer as well.

So, 50 GB Blurays are out of the question anyway, even with a wired 100 Mbps link between our homes.

But that's not a show stopper at all ; a perfectly fine Bluray ISO (or MKV) is almost never bigger than 15 GB, and if it is, it's likely to be a 2 hour movie.
So, for a 15 GB 2 hour MKV we'll need 2.13 MB/sec.
Then, add up the best fact ; most 1.5 hour MKV's are less than 9 GB, ergo they require a streaming throughput of 1.7 MB/sec.
Most 720p MKV's I've seen are either 4.4 GB or 6.5 GB, and DVD ISO's over 4.7 GB are scarce.

Also remember that the audio bitrate mentioned in the files is the uncompressed audio bitrate, and the streaming device will simply passthrough the DTS datastream to the receiver.

Ergo ; we have no need for an N device (we don't need the bandwidth), as long as we can maintain the 1.8-2.5 MB/sec transfer speed.

However, sharing one 120 Mbps internet connection over the air is also out of the question.....sad but true.
Krypt
 
Netherlands 574 posts
 Posted 28/01/10 @ 15:56 Show Krypt's profile Reply with Quote  #30 
Only the WL500g situated at your place is crashing. I still can connect to my WL500g without any problems.

Maybe it's wise to downgrade the firmware to a previous Oleg version or to the stock Asus firmware. Both support WDS and Routing mode. Maybe that firmware is more stable than the newest firmware currently in our WL500g's

I'll try to find another poweradapter (the adapter of your WL500g was also fried; maybe that's why you got connection problems with it) which can handle 2A at 5V. And try an older firmware and use clientmode instead of WDS.
of 3 Reply to this topic Share this page! Printer Friendly  
Next Page
 Reply
 oxle ID:    password: 
 Use the username Guest with the password Guest if you do not wish to register.
 (You cannot edit your post later, and you have fill out your nickname!) 

   HTML is off - forumcode is on - add picture

oxle
parsetime: 0.64s
click here to support this site
© 2003 - 2010 Marcel Göertz
Powered by Snitz Forums 2000