On Wed, Sep 03, 2003 at 04:42:47PM +0100, Gordan wrote:
> I've got a hypothetical question, and am consequently looking for a fairly 
> theoretical answer.
> 
> Say I have a bunch of nodes on a fast LAN, on private IPs (say 10.x.y.z) and 
> those were connected to the internet via a much slower connection with NAT on 
> the firewall. One node, (say the most powerful one) has a public IP, e.g. 
> port forwarded from the NAT firewall.
> 
> Obviously, only the one node will be accessible from the internet (the one 
> with a public IP). The other nodes will not be visible from "outside". All 
> nodes have unrestricted access out.
> 
> 1) Would the "private" nodes ever learn about each other (in their private IP 
> space)? If they are not routable inward, then how will thel learn about each 
> other, short of manually creating a seednodes.ref file to give to all of 
> them?

You would have to tell them about each other, correct.
> 
> 1.1) How doe Fred currently deal with nodes that report 
> invalid/private/non-routable IP addresses? Do nodes just try to route to them 
> anyway, or is there some kind of a mechanim (e.g. a 2-way handshake) to 
> detect and prevent invalid/non-routable IP addresses from poluting routing 
> tables?

You would have to set localIsOK=true, also, as currently designed they
would have to talk to the border node via its public address, because we
don't yet support multiple IP addresses in a reference.
> 
> 2) Would the nodes learn to route requests to local nodes first, because they 
> are much, much faster, with amost no network latency, because they sit on 
> something like a 100Mb switch or 802.11g WiFi, instead of a 256Kb DSL line?

If they knew about each other, yes. And our loop protection would ensure
that the request eventually got routed to the outside net. Hopefully.
Although the internal hops would still take up a hop in the HTL.
> 
> 2.1) Is this what NGR is supposed to achieve?
> 
> The idea of such a network would be that while there is still a "way out" to 
> other nodes in the world, the requets would hopefully be fulfillable over the 
> fast LAN instead of the slow WAN.

Yes. Hopefully the internal nodes would never forget about the border
node. NGRouting has of course a much wider scope than this. Such
setups may well be used in hostile environments... talk to jrand0m about
that :)
> 
> I hope this makes some sense.
> 
> Gordan

-- 
Matthew J Toseland - [EMAIL PROTECTED]
Freenet Project Official Codemonkey - http://freenetproject.org/
ICTHUS - Nothing is impossible. Our Boss says so.

Attachment: pgp00000.pgp
Description: PGP signature

_______________________________________________
Devl mailing list
[EMAIL PROTECTED]
http://dodo.freenetproject.org/cgi-bin/mailman/listinfo/devl

Reply via email to