Networking Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me

The Shed is going Social! Join us on FaceBook and Twitter and chime in on the conversation.

Go Back   Dev Shed ForumsSystem AdministrationNetworking Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old January 22nd, 2013, 11:19 AM
dougman82 dougman82 is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Nov 2012
Posts: 4 dougman82 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 47 m 51 sec
Reputation Power: 0
Multiple NICs, same subnet

Hello,

I am working on a Java web application deployed in Tomcat 7 in a Windows Server 2008 environment. One requirement we were recently given was to configure the server with multiple NICs, so as to support communication with some legacy applications that require my server to have specific IP addresses (all IPs on the same subnet).

So, currently, my server is set up with NICs with the following addresses: 10.0.0.20, 10.0.0.21, 10.0.0.22. Tomcat is configured to listen on all interfaces, and any web service requests made to my application are handled and given a response. That's good.

However, I am getting some reports that my app is not playing nicely with some of these legacy apps. Specifically, if legacy app A sends a web service request to 10.0.0.21, it expects to get a response from 10.0.0.21. However, according to reports, the responses actually come back over another interface, presumably determined by the Windows network stack. I'm guessing what happens is that since the client and all of the server's IPs are on the same subnet, Windows could use any of the three interfaces and just chooses one based on the routing tables.

I am still in the process of setting up a test server and client to test this behavior. However, it seems to me (and maybe I'm naive) that this is part of the HTTP specification. The server shouldn't open up any new connections - it's supposed to just respond over the same connection initiated by the client. Is this behavior even possible?

If it is possible, how can I configure my server (again, Windows Server 2008) to respond over the same interface on which a request was received?

It doesn't appear to be any sort of Tomcat or Java configuration. I could create a static route in the routing table (not sure it works this way, though) to try to force the use of a specific interface when routing somewhere. However, all of the legacy apps are sitting on the same box, so any static route would only solve the problem for a specific app...

Thanks!

Reply With Quote
  #2  
Old January 22nd, 2013, 12:16 PM
E-Oreo's Avatar
E-Oreo E-Oreo is offline
Lost in code
Click here for more information.
 
Join Date: Dec 2004
Posts: 7,931 E-Oreo User rank is General 90th Grade (Above 100000 Reputation Level)E-Oreo User rank is General 90th Grade (Above 100000 Reputation Level)E-Oreo User rank is General 90th Grade (Above 100000 Reputation Level)E-Oreo User rank is General 90th Grade (Above 100000 Reputation Level)E-Oreo User rank is General 90th Grade (Above 100000 Reputation Level)E-Oreo User rank is General 90th Grade (Above 100000 Reputation Level)E-Oreo User rank is General 90th Grade (Above 100000 Reputation Level)E-Oreo User rank is General 90th Grade (Above 100000 Reputation Level)E-Oreo User rank is General 90th Grade (Above 100000 Reputation Level)E-Oreo User rank is General 90th Grade (Above 100000 Reputation Level)E-Oreo User rank is General 90th Grade (Above 100000 Reputation Level)E-Oreo User rank is General 90th Grade (Above 100000 Reputation Level)E-Oreo User rank is General 90th Grade (Above 100000 Reputation Level)E-Oreo User rank is General 90th Grade (Above 100000 Reputation Level)E-Oreo User rank is General 90th Grade (Above 100000 Reputation Level)E-Oreo User rank is General 90th Grade (Above 100000 Reputation Level)  Folding Points: 945 Folding Title: Novice Folder
Time spent in forums: 2 Months 7 h 43 m 47 sec
Reputation Power: 6991
Well, from a physical perspective it's possible, but from a software perspective it doesn't seem very likely. It shouldn't really be very hard to test the theory, just install a packet sniffer like WireShark on the server and see what packets it's sending. I'd be interested to learn whether or not it's actually doing that.
__________________
PHP FAQ
How to program a basic, secure login system using PHP

Quote:
Originally Posted by Spad
Ah USB, the only rectangular connector where you have to make 3 attempts before you get it the right way around

Reply With Quote
  #3  
Old January 22nd, 2013, 01:02 PM
dougman82 dougman82 is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Nov 2012
Posts: 4 dougman82 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 47 m 51 sec
Reputation Power: 0
Quote:
Originally Posted by E-Oreo
Well, from a physical perspective it's possible, but from a software perspective it doesn't seem very likely. It shouldn't really be very hard to test the theory, just install a packet sniffer like WireShark on the server and see what packets it's sending. I'd be interested to learn whether or not it's actually doing that.


Agreed. That's what I'm trying to set up... Only my test machines are currently tied up with something else at the moment. Will be sure to let you know.

Reply With Quote
  #4  
Old January 23rd, 2013, 03:51 PM
dougman82 dougman82 is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Nov 2012
Posts: 4 dougman82 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 47 m 51 sec
Reputation Power: 0
Ok, as an update, I tried to test this in my lab. Specifically, I set up the server with 3 NICs, and deployed the web application. Then, from a client, I made web service SOAP requests (via SoapUI) to each of the 3 IP addresses.

Simultaneously, I had wireshark running, sniffing the packets going back and forth to and from the server. In every case, the SOAP responses were returned over the same interface to which the request was made.

Next, I created a route in the server's routing table such that interface X should always be used when sending a packet to the client's IP address.

Even with this route in place, I could not get the SOAP responses to arrive at the client from a different address than the one where I sent the requests.

So... it looks like something altogether different must be going on.

Thanks!

Reply With Quote
  #5  
Old January 23rd, 2013, 06:49 PM
E-Oreo's Avatar
E-Oreo E-Oreo is offline
Lost in code
Click here for more information.
 
Join Date: Dec 2004
Posts: 7,931 E-Oreo User rank is General 90th Grade (Above 100000 Reputation Level)E-Oreo User rank is General 90th Grade (Above 100000 Reputation Level)E-Oreo User rank is General 90th Grade (Above 100000 Reputation Level)E-Oreo User rank is General 90th Grade (Above 100000 Reputation Level)E-Oreo User rank is General 90th Grade (Above 100000 Reputation Level)E-Oreo User rank is General 90th Grade (Above 100000 Reputation Level)E-Oreo User rank is General 90th Grade (Above 100000 Reputation Level)E-Oreo User rank is General 90th Grade (Above 100000 Reputation Level)E-Oreo User rank is General 90th Grade (Above 100000 Reputation Level)E-Oreo User rank is General 90th Grade (Above 100000 Reputation Level)E-Oreo User rank is General 90th Grade (Above 100000 Reputation Level)E-Oreo User rank is General 90th Grade (Above 100000 Reputation Level)E-Oreo User rank is General 90th Grade (Above 100000 Reputation Level)E-Oreo User rank is General 90th Grade (Above 100000 Reputation Level)E-Oreo User rank is General 90th Grade (Above 100000 Reputation Level)E-Oreo User rank is General 90th Grade (Above 100000 Reputation Level)  Folding Points: 945 Folding Title: Novice Folder
Time spent in forums: 2 Months 7 h 43 m 47 sec
Reputation Power: 6991
Thanks for posting back.

Reply With Quote
Reply

Viewing: Dev Shed ForumsSystem AdministrationNetworking Help > Multiple NICs, same subnet

Developer Shed Advertisers and Affiliates



Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 


Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.

© 2003-2013 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap