Networking Forums

Networking Forums > Computer Networking > Linux Networking > A basic question about networking

Reply
Thread Tools Display Modes

A basic question about networking

 
 
veegnu@gmail.com
Guest
Posts: n/a

 
      10-30-2007, 07:42 PM
Hello,

I would like to ask a very basic question about general networking.
Please let me know if you think this question should be asked in a
different newsgroup.

I am running VNC server on a linux machine. I have started a VNC
session. Then I connect to this session by running vncviewer from the
same machine. Will all the traffic generated pass on to the network I
am connected to? Or will the TCP/IP stack recognize that the targeted
machine for IP packets is the same as the originating machine and not
send out the packets?

In fact this question can be asked in the context of any general
client/server. Say I run a web server and connect to it from a browser
on the same machine, will the traffic leak onto the network?

Thanks in advance for your responses.

vkj

 
Reply With Quote
 
 
 
 
Tauno Voipio
Guest
Posts: n/a

 
      10-30-2007, 08:29 PM
(E-Mail Removed) wrote:
> Hello,
>
> I would like to ask a very basic question about general networking.
> Please let me know if you think this question should be asked in a
> different newsgroup.
>
> I am running VNC server on a linux machine. I have started a VNC
> session. Then I connect to this session by running vncviewer from the
> same machine. Will all the traffic generated pass on to the network I
> am connected to? Or will the TCP/IP stack recognize that the targeted
> machine for IP packets is the same as the originating machine and not
> send out the packets?
>
> In fact this question can be asked in the context of any general
> client/server. Say I run a web server and connect to it from a browser
> on the same machine, will the traffic leak onto the network?
>
> Thanks in advance for your responses.
>
> vkj



The Linux TCP/IP protocol stack is smart enough to
route packets addressed to any of the local addresses
via the loopback interface, lo.

This means also that you cannot test the Ethernet
interface or NIC driver using self-addressed
packets.

HTH

--

Tauno Voipio
tauno voipio (at) iki fi
 
Reply With Quote
 
veegnu@gmail.com
Guest
Posts: n/a

 
      10-30-2007, 08:49 PM
Tauno,

Thanks for finding time to reply. However, I have a follow up
question:

> The Linux TCP/IP protocol stack is smart enough to
> route packets addressed to any of the local addresses
> via the loopback interface, lo.


Yes, I remember reading that this is the case with using local
loopback address (e.g. 127.0.0.1). Will the same also apply when
client uses a non-loopback address, say 10.63.3.227 to connect to a
server running on the same machine?

Thanks
vkj

 
Reply With Quote
 
Pascal Hambourg
Guest
Posts: n/a

 
      10-30-2007, 09:08 PM
Hello,

(E-Mail Removed) a écrit :
>
> Yes, I remember reading that this is the case with using local
> loopback address (e.g. 127.0.0.1). Will the same also apply when
> client uses a non-loopback address, say 10.63.3.227 to connect to a
> server running on the same machine?


Yes, any local address. For each local address added on an interface a
local route is added in the local routing table. Local routes can be
displayed with the following command :

$ ip route show type local table local
 
Reply With Quote
 
David Schwartz
Guest
Posts: n/a

 
      10-31-2007, 12:13 AM
On Oct 30, 2:49 pm, "vee...@gmail.com" <vee...@gmail.com> wrote:

> Yes, I remember reading that this is the case with using local
> loopback address (e.g. 127.0.0.1). Will the same also apply when
> client uses a non-loopback address, say 10.63.3.227 to connect to a
> server running on the same machine?


If it didn't, how would networking work? It's not like there's some
"reflector box" on every network that will send traffic back to you.

DS

 
Reply With Quote
 
Rick Jones
Guest
Posts: n/a

 
      10-31-2007, 04:43 PM
David Schwartz <(E-Mail Removed)> wrote:
> On Oct 30, 2:49 pm, "vee...@gmail.com" <vee...@gmail.com> wrote:


> > Yes, I remember reading that this is the case with using local
> > loopback address (e.g. 127.0.0.1). Will the same also apply when
> > client uses a non-loopback address, say 10.63.3.227 to connect to
> > a server running on the same machine?


> If it didn't, how would networking work? It's not like there's some
> "reflector box" on every network that will send traffic back to you.


Although a switch might actually do that if you hand it a frame
destined for your own MAC. And for the non-switched case it would
depend on whether or not the NIC(s) recognized their own MAC(s) on
outbound and mirrored them.

rick jones
--
The glass is neither half-empty nor half-full. The glass has a leak.
The real question is "Can it be patched?"
these opinions are mine, all mine; HP might not want them anyway...
feel free to post, OR email to rick.jones2 in hp.com but NOT BOTH...
 
Reply With Quote
 
David Schwartz
Guest
Posts: n/a

 
      10-31-2007, 10:35 PM
On Oct 31, 10:43 am, Rick Jones <rick.jon...@hp.com> wrote:

> David Schwartz <dav...@webmaster.com> wrote:


> > If it didn't, how would networking work? It's not like there's some
> > "reflector box" on every network that will send traffic back to you.


> Although a switch might actually do that if you hand it a frame
> destined for your own MAC.


Then the switch is badly broken. Not doing this is required to avoid
infinite loops. Consider two switches each of which convinced that the
other holds a MAC.

DS

 
Reply With Quote
 
LEE Sau Dan
Guest
Posts: n/a

 
      11-06-2007, 11:48 AM
>>>>> "veegnu@gmail" == veegnu@gmail com <(E-Mail Removed)> writes:

veegnu@gmail> Yes, I remember reading that this is the case with
veegnu@gmail> using local loopback address (e.g. 127.0.0.1). Will
veegnu@gmail> the same also apply when client uses a non-loopback
veegnu@gmail> address, say 10.63.3.227 to connect to a server
veegnu@gmail> running on the same machine?

Yes. You can see it for yourself. Try to ping 127.0.0.1 and note the
response time. Now, ping 10.63.3.227 and note the response time. Any
difference?

Now, try to ping an another machine attached to the same subnet
(better: attached directly via a cross cable). Do you notice a larger
response time?


--
Lee Sau Dan §õ¦u´° ~{@nJX6X~}

E-mail: (E-Mail Removed)
Home page: http://www.informatik.uni-freiburg.de/~danlee
 
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
Basic networking question: Two network ranges Gaspar Windows Networking 7 06-20-2008 06:45 PM
Basic Newbie networking question Pete Kane Windows Networking 5 03-18-2007 10:07 PM
Very Basic Question vonda Wireless Internet 6 12-24-2006 04:59 AM
Basic networking question Home Networking 1 05-21-2004 11:35 PM
subdomains/one IP/local network basic networking question Jimmy Dean Linux Networking 1 11-22-2003 03:08 AM



1 2 3 4 5 6 7 8 9 10 11