<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta name="Generator" content="Microsoft Word 14 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
        {font-family:SimSun;
        panose-1:2 1 6 0 3 1 1 1 1 1;}
@font-face
        {font-family:SimSun;
        panose-1:2 1 6 0 3 1 1 1 1 1;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:"\@SimSun";
        panose-1:2 1 6 0 3 1 1 1 1 1;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri","sans-serif";}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="EN-US" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal">Hi, <o:p></o:p></p>
<p class="MsoNormal">I am running mpich2 on couple windows server machines, which have some firewall restriction , namely only several ports are accessible on each machine.<o:p></o:p></p>
<p class="MsoNormal">So I explicitly have smpd listened on port 18000, which is enabled by the firewall, by &#8220;smpd.exe &#8211;p 18000&#8221;<o:p></o:p></p>
<p class="MsoNormal">However, when I call mpiexec on another machine by mpiexec.exe -hosts 1 10.115.130.153 1 -p 18000 hostname, the mpiexec stuck until timeout was thrown.
<o:p></o:p></p>
<p class="MsoNormal">From the log of smpd (listed below) , seems to me smpd issued the &#8220;reconnection request&#8221; and then spawns a new &nbsp;smpd manager process , which listens on port 56412, which unfortunately is not enabled by the firewall.<o:p></o:p></p>
<p class="MsoNormal">So my question is <o:p></o:p></p>
<p class="MsoNormal">Why I got this situation? And how can I limit the port to be used if this situation is unavoidable?<o:p></o:p></p>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
<p class="MsoNormal">Thank you very much<o:p></o:p></p>
<p class="MsoNormal">Wei<o:p></o:p></p>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
<p class="MsoNormal">D:\Program Files\MPICH2\bin&gt;smpd.exe -d 5 -p 18000<o:p></o:p></p>
<p class="MsoNormal">created a set for the listener: 500<o:p></o:p></p>
<p class="MsoNormal">smpd listening on port 18000<o:p></o:p></p>
<p class="MsoNormal">Unable to get the data for the key 'no_dynamic_hosts'<o:p></o:p></p>
<p class="MsoNormal">sock_waiting for the next event.<o:p></o:p></p>
<p class="MsoNormal">SOCK_OP_ACCEPT event.error = 0, result = 0, context=listener<o:p></o:p></p>
<p class="MsoNormal">authenticating new connection<o:p></o:p></p>
<p class="MsoNormal">posting a write of the challenge string: 1.2.1p1 9116<o:p></o:p></p>
<p class="MsoNormal">sock_waiting for the next event.<o:p></o:p></p>
<p class="MsoNormal">SOCK_OP_WRITE event.error = 0, result = 0, context=undetermined<o:p></o:p></p>
<p class="MsoNormal">wrote challenge string: '1.2.1p1 9116'<o:p></o:p></p>
<p class="MsoNormal">sock_waiting for the next event.<o:p></o:p></p>
<p class="MsoNormal">SOCK_OP_READ event.error = 0, result = 0, context=undetermined<o:p></o:p></p>
<p class="MsoNormal">read challenge response: '0ddcd0a20b925177af7e47a03eb402dd'<o:p></o:p></p>
<p class="MsoNormal">sock_waiting for the next event.<o:p></o:p></p>
<p class="MsoNormal">SOCK_OP_WRITE event.error = 0, result = 0, context=undetermined<o:p></o:p></p>
<p class="MsoNormal">wrote connect result: 'SUCCESS'<o:p></o:p></p>
<p class="MsoNormal">sock_waiting for the next event.<o:p></o:p></p>
<p class="MsoNormal">SOCK_OP_READ event.error = 0, result = 0, context=undetermined<o:p></o:p></p>
<p class="MsoNormal">read session request: 'process'<o:p></o:p></p>
<p class="MsoNormal">sock_waiting for the next event.<o:p></o:p></p>
<p class="MsoNormal">SOCK_OP_WRITE event.error = 0, result = 0, context=undetermined<o:p></o:p></p>
<p class="MsoNormal"><span style="background:yellow;mso-highlight:yellow">wrote no cred request: 'nocredentials'<o:p></o:p></span></p>
<p class="MsoNormal"><span style="background:yellow;mso-highlight:yellow">starting command: &quot;D:\Program Files\MPICH2\bin\smpd.exe&quot; -p 18000 -d 5 -mgr -re<o:p></o:p></span></p>
<p class="MsoNormal"><span style="background:yellow;mso-highlight:yellow">d 00000000000002C0 -write 00000000000002BC<o:p></o:p></span></p>
<p class="MsoNormal"><span style="background:yellow;mso-highlight:yellow">CreateProcess<o:p></o:p></span></p>
<p class="MsoNormal"><span style="background:yellow;mso-highlight:yellow">smpd reading the port string from the manager<o:p></o:p></span></p>
<p class="MsoNormal"><span style="background:yellow;mso-highlight:yellow">manager creating listener and session sets.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="background:yellow;mso-highlight:yellow">created set for manager listener, 764<o:p></o:p></span></p>
<p class="MsoNormal"><span style="background:yellow;mso-highlight:yellow">smpd manager listening on port 54614<o:p></o:p></span></p>
<p class="MsoNormal"><span style="background:yellow;mso-highlight:yellow">manager writing port back to smpd.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="background:yellow;mso-highlight:yellow">smpd sending the account to the manager<o:p></o:p></span></p>
<p class="MsoNormal"><span style="background:yellow;mso-highlight:yellow">smpd sending the password to the manager<o:p></o:p></span></p>
<p class="MsoNormal"><span style="background:yellow;mso-highlight:yellow">smpd sending the smpd passphrase to the manager<o:p></o:p></span></p>
<p class="MsoNormal"><span style="background:yellow;mso-highlight:yellow">closing the pipe to the manager</span><o:p></o:p></p>
<p class="MsoNormal"><span style="background:yellow;mso-highlight:yellow">smpd writing reconnect request: port 54614</span><o:p></o:p></p>
<p class="MsoNormal">sock_waiting for the next event.<o:p></o:p></p>
<p class="MsoNormal">SOCK_OP_WRITE event.error = 0, result = 0, context=undetermined<o:p></o:p></p>
<p class="MsoNormal">wrote reconnect request: '54614'<o:p></o:p></p>
<p class="MsoNormal">sock_waiting for the next event.<o:p></o:p></p>
<p class="MsoNormal">manager reading account and password from smpd.<o:p></o:p></p>
<p class="MsoNormal">sock_waiting for the next event.<o:p></o:p></p>
<p class="MsoNormal">SOCK_OP_CLOSE event.error = 0, result = 0, context=undetermined<o:p></o:p></p>
<p class="MsoNormal">op_close received - SMPD_CLOSING state.<o:p></o:p></p>
<p class="MsoNormal">Unaffiliated undetermined context closing.<o:p></o:p></p>
<p class="MsoNormal">freeing undetermined context.<o:p></o:p></p>
<p class="MsoNormal">sock_waiting for the next event.<o:p></o:p></p>
</div>
</body>
</html>