[TriLUG] Does JVM use the TCP/IP stack when talking through 127.0.0.1 to a nother JVM?
Ryan Leathers
ryan.leathers at globalknowledge.com
Wed Jun 9 14:27:28 EDT 2004
The JVM talks to the socket
The socket can only exist if a TCP/IP stack exists at both the source
and destination.
Socket = 14 bytes:
IP source addr = 4 bytes (192.168.1.1)
source protocol= 1 byte (TCP, UDP)
source port = 2 bytes (1-65535)
IP dest. addr = 4 bytes (127.0.0.1)
dest. protocol = 1 byte (TCP/UDP)
dest. port = 2 bytes (1-65535)
Total =14 bytes
Does this help?
On Wed, 2004-06-09 at 13:47, Phillip Rhodes wrote:
> Christopher L Merrill wrote:
>
> > Smith, Brett wrote:
> >
> >> Does JVM use the TCP/IP stack when talking through 127.0.0.1 to
> >> another JVM?
> >> This is over my head but a developer needs the answer so don't flame
> >> if I am
> >> way off.
> >
>
> I'd say that in general the answer is "yes", with the caveat
> that it might depend on the underlying operating system. That is,
> 127.0.0.1 is an IP address, just like any other, and traffic sent
> through that interface is IP traffic, blah, blah..
>
> But, it is a "special" address in a sense, and I suppose the
> OS might be allowed by the specs to treat that traffic differently
> than "normal" IP traffic...
>
> Still, I'd be highly inclined to think that for all practical
> purposes you can assume that it does.
>
> TTYL,
>
> Phil
>
> --
> When the 1st Amendment no longer protects your voice.
> And when the 4th Amendment no longer protects your privacy or your stuff.
> Thank God we have the 2nd Amendment to tell our elected representatives
> that enough is enough.
> It's time to put "... from my cold, dead hands" back where it belongs.
>
> FREE AMERICA
> Vote Libertarian
> www.lp.org
--
Ryan Leathers <ryan.leathers at globalknowledge.com>
Global Knowledge
More information about the TriLUG
mailing list