PDA

View Full Version : HUB/NAT question


Bradte20
April 3rd, 2006, 07:17 PM
If your requesting data from a webserver from behind a NAT then no data should reach a client which isnt requesting data from the webserver.....if you were using a HUB, then this may be different I suppose.

Isn't the above statement false in terms of what he says about a hub? I thought even info on a Hub is only receivable by the node requesting it. I'm not sure if Hubs assign subnets or not, but pretty sure either way ou still have to be requesting that info. Your PC doesn't automatically absorb what goes through a Hub.


Aren't NATs for any LAN, hub, switch, router, etc?

degsy
April 3rd, 2006, 07:46 PM
Say you have 5 PCs and PC1 sends a request.

A router would send the response directly back to PC1

A hub would send it to all 5 and PC1 would accept it because it was addressed to PC1. The others would ignore it because it was not addressed to them.

Bradte20
April 3rd, 2006, 08:40 PM
thanks degsy, I wiki'ed NAT, i'm assuming this only is related to routers?

degsy
April 3rd, 2006, 08:48 PM
Yes, a router is a Switch with NAT.

z1p
April 3rd, 2006, 10:19 PM
Yes, a router is a Switch with NAT.No really degs. All routers don't support NAT and actually NAT is a function more often than not associated firewalls. This all gets a bit confusing 'cause most routers targeted for the home or small office are really a hybrid router/switch/firewall.

The router piece provides the subnetting.
The switch piece provides the packet switching.
The firewall piece provides packet filtering and NAT.

Bradte20
April 3rd, 2006, 10:40 PM
thanks guys

z1p
April 3rd, 2006, 10:46 PM
A subnet mask (http://www.webopedia.com/TERM/S/subnet_mask.html) is used by various networking devices to seperate the subnet portion of the ip address from the host address section of the ip address.

Your PC makes uses of the subnet masks as well as routers.

oracle128
April 4th, 2006, 02:45 PM
Put more simply, a router is your basic switch which also acts as a gateway to other networks, such as another LAN, or the internet (a router may also be defined as a hub with a gateway, but I haven't looked into this). It just so happens that routers also provide firewall/NAT functions, act as DHCP servers, etc. However, these are features of most routers, not part of the definition of a router. Other than that, degsy is right, a hub sends traffic to all connected PCs (allowing you to monitor all packets), but a switch (router or not) sends only specific packets to specific connected devices (or of course multicast packets to all connected devices).