[MPICH] Re: Using MPICH2 on different ports

Matthew Chambers matthew.chambers at vanderbilt.edu
Fri Apr 20 11:31:19 CDT 2007


I don't understand how that could solve his problem.  I think Matt Valerio's
initial description of the problem was misleading, though.  It seems to me
that he is not trying to connect through a simple firewall, he is trying to
connect through a NAT.  It seems he wants to use port forwarding set up on
the NAT in way that will enable him, from a computer outside the NAT, to
create a machine config file that connects to the same host IP (e.g. the WAN
IP of the NAT) with different ports, which will logically connect to
multiple machines inside of the NAT.  However, as you say, that is not
possible with the current SMPD machine config file.  I do think that is bad
design on the part of the config file though.  Would it be very difficult to
extend the config file to support specification of port as well as host/IP?

 

  _____  

From: owner-mpich-discuss at mcs.anl.gov
[mailto:owner-mpich-discuss at mcs.anl.gov] On Behalf Of Jayesh Krishna
Sent: Friday, April 20, 2007 10:56 AM
To: 'Matt Valerio'
Cc: mpich-discuss at mcs.anl.gov
Subject: RE: [MPICH] Re: Using MPICH2 on different ports

 

Hi,

 SMPD, by default, runs on the same port (8676) on all computers. However
you can specify the port that smpd needs to run using the "-port" option
while starting smpd (You can also ask smpd to run on any port assigned by OS
using the "-anyport" option). The machine config file does not support
specifying port names along with the machine name & number of procs.

 Instead of mapping the port numbers to IP+port you could allow connections
from a certain list of client machines/IPs to certain port (say 8000)
numbers on computer1/2/..

 Let us know if you require any further information.

 

Regards,

Jayesh

 

  _____  

From: owner-mpich-discuss at mcs.anl.gov
[mailto:owner-mpich-discuss at mcs.anl.gov] On Behalf Of Matt Valerio
Sent: Wednesday, April 18, 2007 11:04 AM
To: mpich-discuss at mcs.anl.gov
Subject: [MPICH] Re: Using MPICH2 on different ports

Ok, let me try to simplify the question.

Does smpd need to run on the same port on all computers?
Can I tell mpiexec that it needs to connect to all of the smpd computers on
different ports?

I know that the machine config file can specify different computers, but the
same port.  I am just curious if the machine config file can specify
different computers as well as different ports. 

Any help would be greatly apppreciated.  Thanks!
-Matt




On 4/16/07, Matt Valerio <matt.valerio at gmail.com > wrote: 

Hello MPICH2 users,

I am wondering if there is a way to instruct mpiexec to use multiple
computers running smpd on different ports. 

For example, I have 10 computers behind a firewall.  Each of those 10
computers is running smpd on the same port (let's say 8000). 
I want to put rules into a firewall computer that maps an
externally-available port to the specific computer

firewall:8001 ----(maps to)----------> computer1:8000
firewall:8002 ----(maps to)----------> computer2:8000 
...
firewall:8010 ----(maps to)----------> computer10:8000

Then in the machine configuration file, I need to be able to tell mpiexec
that it can use the same computer but different ports (8000-8010), like

firewall:8001 
firewall:8002
...
firewall:8010

etc.

Is this currently possible?  I know the machine file format is wrong because
the number after the colon specifies the number of processes, not the port
number. 

Does anyone have any ideas as to whether this kind of thing could work?  Is
there a better way?  Any help would be greatly appreciated.

Thanks!
-Matt




 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/mpich-discuss/attachments/20070420/1eb276c3/attachment.htm>


More information about the mpich-discuss mailing list