📄 dlsw.htm
字号:
</tr>
<tr>
<td>直接打包通过HDLC</td>
<td><strong>dlsw remote-peer</strong><em> list-number</em><strong>
interface serial </strong><em>number </em>[<strong>backup-peer
</strong><em>ip-address</em>] [<strong>cost </strong><em>cost</em>]
[<strong>keepalive </strong><em>seconds</em>] [<strong>lf</strong><em>
size</em>] [<strong>linger </strong><em>minutes</em>] [<strong>pass-thru</strong>]</td>
</tr>
<tr>
<td>FST</td>
<td><strong>dlsw remote-peer</strong><em> list-number</em><strong>
fst </strong><em>ip-address </em>[<strong>backup-peer </strong><em>ip-address</em>]
[<strong>cost </strong><em>cost</em>] [<strong>keepalive </strong><em>seconds</em>]
[<strong>lf</strong><em> size</em>] [<strong>linger </strong><em>minutes</em>]
[<strong>pass-thru</strong>]</td>
</tr>
<tr>
<td>TCP</td>
<td><strong>dlsw remote-peer</strong><em> list-number</em><strong>
tcp </strong><em>ip-address </em>[<strong>backup-peer </strong><em>ip-address</em>]
[<strong>cost </strong><em>cost</em>] [<strong>dynamic</strong>]
[<strong>keepalive </strong><em>seconds</em>] [<strong>lf</strong><em>
size</em>] [<strong>linger </strong><em>minutes</em>] [<strong>priority</strong>]
[<strong>tcp-queue-max </strong><em>size</em>] [<strong>timeout</strong><em>
seconds</em>]</td>
</tr>
</table>
<p>其中:</p>
<blockquote>
<ul>
<li><em>cost</em> ---
设计是为多条路径到一个目的,按cost低的选择路径.</li>
<li><em>lf</em> --- peer一次接收最大帧长.</li>
<li><em>keepalive ---</em> keepalive包的间隔时间.从0-1200秒.当DLSw通过DDR时设成0.</li>
<li><em>promiscous</em> --- 接受远端peer连接请求.</li>
<li><em>backup peer </em>--- 定义这个peer的备份peer.</li>
<li><em>linger ---</em> 当主peer恢复时,从备份peer恢复到主peer的时间.</li>
</ul>
</blockquote>
<p><img src="gif/img00003.gif" width="529" height="167"></p>
<p>在图中,分支路由器指定local和remote peer.中心路由器只指定local
peer,但指定了"promiscuous",允许接受动态地连接请求.peer-id指定可以是IP地址,用"interface
loopback 0"定义的或路由器上相关的LAN/WAN端口地址.注意,若用路由器上相关的LAN/WAN端口地址,该端口必须是已启动的.</p>
<p><a name="qq8"></a><font color="#808080"><em><strong>令牌环</strong></em></font></p>
<p>下图是关于令牌环的DLSw+简单配置.你必须包含source-bridge
ring group定义指定虚环号.另外,还要包括source-bridge定义告诉路由器实际物理环到虚环通过的桥.</p>
<p><strong>Simple Token Ring DLSw+ Configuration</strong></p>
<p><img src="gif/img00004.gif" width="576" height="316"></p>
<p><font color="#808080"><em><strong>以太网</strong></em></font></p>
<p>在以太网中MAC地址的传输顺序是按字节从低位到高位的
(Least Significant Bit (LSB) first), 而Tokenring是从高位到低位传输的(Most
Significant Bit (MSB) first)。当DLSw+从连接的以太网设备上接收到MAC地址,它认为是正常的顺序,把它转换成非正常顺序传送给remote
peer.在远端peer,终端系统连在令牌环上地址就不作任何改变,若是以太网就转换成正常顺序.注意当在SNA终端系统上配置目的MAC地址时,应当使用正常顺序.例如,如果令牌环或其它非正常顺序MAC地址是4000
3745 0001,正常顺序MAC是0200 ECA2 0080.</p>
<p><strong>Simple Ethernet DLSw+ Configuration</strong></p>
<p><img src="gif/img10005.gif" width="573" height="333"></p>
<p><font color="#808080"><em><strong>SDLC</strong></em></font></p>
<p>配置SDLC相对令牌环和以太网要复杂.对于SDLC设备,必须知道设备是PU1,PU2.0或PU2.1.对于PU2.0设备,又必须知道设备在VTAM中IDBLK/IDNUM定义值.还要知道路由器在SDLC线上作primary还是secondary,等等.</p>
<p>在下图中,连接SDLC设备端口定义一个虚MAC地址4000.3174.0000.路由器将用SDLC设备的PU地址来代替MAC地址中的最后两位.SDLC地址C1设备的MAC地址是4000.3174.00C1,SDLC地址C2设备的MAC地址是4000.3174.00C2.在本例中都是PU
2.0设备,所以要配置XID,它要与VTAM中的IDBLK/IDNUM匹配.另外,连接PU
2.0设备路由器总是作primary.</p>
<p><strong>Simple SDLC DLSw+ Configuration</strong></p>
<p><strong><img src="gif/img00006.gif" width="573" height="298"></strong></p>
<hr>
<p><a name="qq9"></a><font color="#008080" size="5"><em><strong>增强特性</strong></em></font></p>
<p>这一章叙述了DLSw+的<font size="3">增强特性,它们提供好处和简短说明何时并且如何使用它.增强特性是可选择的,你可按照网络需要进行配置.</font></p>
<p><a name="qq10"></a><font color="#808080" size="4"><em><strong>背景</strong></em></font></p>
<p>明白负载平衡,首先要明白DLSw+对等连接是怎样建立的.当一个路由器开启后,第一件事就是与定义的远程peer建立对等连接(除非作了"passive"定义).路由器然后交换性能信息.在性能信息中包括
"icanreach"或"icannotreach"语句.在交换完性能信息后,DLSW+
peer空闲着直到终端系统发送探测帧(SNA Test或XID帧).探测帧传送给每个活的peer.很可能终端系统是通过多个remote
peer被找到的.</p>
<p><font color="#808080" size="3"><em><strong>冗余和负载平衡</strong></em></font></p>
<p>如果在中心有多台DLSw+路由器,可以考虑用负载平衡或冗余.这一节中,我们主要介绍中心多台DLSw+路由器之间或一台路由器上多个端口怎样实现平衡传输的.</p>
<p>如果DLSw+收到多个对探测帧的肯定应答,它把几个peer存放在缓存里.如果定义了负载平衡"<em>dlsw
duplicate-path-bias</em>",新的链路就从另外的一条路径建立,循环建立.</p>
<p>如果没有指定负载平衡,peer选择缓存表里第一条路径建立它所有的链路,除非这条路径无效了.缓存表里第一条路径可能是:</p>
<ul type="square">
<li>接收到第一个肯定应答的Peer.</li>
<li>低cost的Peer.</li>
</ul>
<p>Cost可以定义在本地或远程peer上.指定在本地peer上,它会作为性能信息的一部分与远程peer交换信息.下面是一个cost实例.</p>
<p><font size="2" face="宋体"><strong>Possible configuration
and the resulting cache entries that would be created if all the
channel gateways illustrated have the same MAC address</strong></font><font
size="4" face="宋体"><strong> </strong></font></p>
<p><img src="gif/img00011.gif" width="575" height="316"></p>
<p>图中,中心端有两个DLSw+路由器作gateway和三个令牌环卡访问主机应用.所有三个令牌环卡指定相同的MAC地址.使用重复地址是源路由桥(source-route
bridging---SRB)中一种技术,能够提供负载平衡和冗余,使得在下端看来这三条路径是在同一设备上.</p>
<p>这个例子中,Peer A有两个远程Peer B和Peer C. Peer B定义本地Peer
cost值是4,Peer C是2.这个cost信息在交换性能信息时交换给Peer
A.</p>
<p>当图中左端的SNA终端系统发送探测帧后,Peer A发送探测帧给Peer
B和Peer C.Peer B和Peer C再发送给它们的局域网,Peer B收到一个应答后发给Peer
A,Peer C收到两个应答后发给Peer A.</p>
<p>Peer A再把应答信息传给SNA PU,然后用Peer C建立链路.选择Peer
C是因为它的cost较低.下一个PU要求建立链路时,直接选择Peer
C.</p>
<p>在Peer C上,第一条链路使用Port 1,下一条将用Port
2.这是因为Peer C上作了"<em>dlsw duplicate-path-bias</em>"负载平衡的定义,每一个SNA
PU使用round robin方式建立链路.</p>
<p>下一个例子定义了remote peer,Peer A总与Peer B连接,Peer
D总与Peer C连接.</p>
<p><img src="gif/img00012.gif" width="576" height="281"></p>
<p><a name="qq11"></a><font color="#808080" size="3"><em><strong>备份Peers</strong></em></font></p>
<p>使用备份Peers,访问主路由器必须是TCP或FST.在图中,East路由器都用路由器A作主路由器,West路由器都用路由器C作主路由器.Primary
Peer或Backup Peer均需在remote peer中定义.若路由器A发生故障,所有SNA会话将中断,重新通过路由器B建立.当路由器A恢复后,所有新的会话将通过路由器A建立,但已经建立的会话继续通过路由器B直到设定linger时间到达.若忽略掉linger设置将使路由器B上会话一直保持到会话终止.</p>
<p><img src="gif/img00013.gif" width="573" height="276"></p>
<p><a name="qq12"></a><font color="#808080" size="3"><em><strong>Local
Switching</strong></em></font></p>
<p>Local Switching(在Cisco IOS 11.1及以上版本上支持)允许一台路由器在SDLC,Token
Ring之间提供介质转换.这是一种很有用技术简化了SNA设计,增强可用性.Local
Switching可用用Cisco路由器提供的CIP卡本地直连到SDLC设备上.下图是一个Local
Switching实例.</p>
<p><font size="2" face="宋体"><strong>Local switching
configuration in a mixed PU 2.0, PU 2.1 environment.</strong></font><font
size="4" face="宋体"><strong> </strong></font></p>
<p><img src="gif/img00018.gif" width="437" height="388"></p>
<hr>
<p><a name="qq13"></a><font color="#008080" size="5"><em><strong>用show和debug命令</strong></em></font></p>
<p><font size="3">这一章介绍监控DLSw+和解决网络出现问题的<em>show</em>和<em>debug</em>命令.DLSw+设计提供许多信息帮助你解决网络出现问题而最少的使用额外的网络监控设备.</font></p>
<p><a name="qq14"></a><font color="#808080" size="3"><em><strong>DLSw+的show命令</strong></em></font></p>
<p>DLSw+提供了几个show命令显示DLSw+路由器的一些相关信息,如链路,对等路由器,可到达MAC地址等等.包括下面几个选项:</p>
<p><font face="Times New Roman"><strong>show dlsw </strong>[<strong>capabilities
</strong>| <strong>circuits </strong>| <strong>fastcache </strong>|<strong>
local-circuit </strong>|<strong> peers </strong>|<strong>
reachability</strong>]</font></p>
<p><em><strong>Show DLSw Capabilities</strong></em></p>
<p>交换Peer之间性能信息,包括peer group号和peer cost值等等.<br>
<b>show dlsw capabilities [interface </b><i>interface</i><b> |
ip-address </b><i>ip-address</i><b><i> </i></b><b>|</b> <b>local
] </b></p>
<h2><font size="3"><em><strong>Show DLSw Circuits</strong></em></font></h2>
<p>显示路由器当前建立的链路状态.<br>
<b>show dlsw circuits [detail] [[</b><b><i>0-255</i></b><b>] |
mac-address </b><i>mac-address</i><b><i> </i></b><b>| sap-value </b><i>sap-value</i><b>]</b></p>
<p><font face="Times New Roman"><em><strong>Show DLSw Peers</strong></em></font></p>
<p>路由器所连接的对等Peers状态.<br>
<b>show dlsw peer [interface </b><i>interface</i><b> | ip-address
</b><i>ip-address</i><b><i> </i></b><b>]</b></p>
<p><font face="Times New Roman"><em><strong>Show DLSw
Reachability</strong></em></font></p>
<p>"show dlsw reachability "命令是SNA源和目的地址放在路由器的列表.只有找到了源和目的MAC地址,才能建立链路.<br>
<b>show dlsw reachability [mac-address [</b><i>mac-address</i><b>]
| netbios-names [</b><i>netbios-names</i><b><i> </i></b><b>]]<br>
</b></p>
<p><a name="qq15"></a><font color="#808080" size="3"><em><strong>其它有用的show命令</strong></em></font></p>
<ul>
<li><font face="Times New Roman"><em><strong>Show Interface</strong></em></font></li>
<li><font face="Times New Roman"><em><strong>Show IP Route</strong></em></font></li>
<li><font face="Times New Roman"><em><strong>Show Source
Bridge</strong></em></font></li>
<li><font face="Times New Roman"><em><strong>Show Bridge</strong></em></font></li>
<li><font face="Times New Roman"><em><strong>Show LLC</strong></em></font></li>
<li><font face="Times New Roman"><em><strong>Show TCP</strong></em></font></li>
</ul>
<p><a name="qq16"></a><font color="#808080" size="3"><em><strong>DLSw+的debug命令</strong></em></font></p>
<p>Debug命令提供了更加详实的信息帮助你解决连网时碰到问题,尤其是在用show命令看到不正常状态时.</p>
<p><b>debug dlsw [core | local-circuit | peers | reachability]</b></p>
<p><font face="Times New Roman"><em><strong>Peer Debugging</strong></em></font></p>
<p>当用<em>show dlsw peer</em>查看peer状态不是CONNECT时,用debug命令提供更多信息.<br>
<b>debug dlsw peer [interface</b> <i>interface</i><b> |
ip-address </b><i>ip-address</i><b><i> </i></b><b>]</b></p>
<p><em><strong>Reachability Debugging</strong></em></p>
<p>链路circuit建立不起来,大多数是因为reachability表中没有找到相应的MAC地址,debug
reachability<font face="宋体">是一个很有用的命令帮助你解决问题</font>.<br>
<b>debug dlsw reachability [error | verbose] [netbios | sna ] </b></p>
<p><a name="qq17"></a><font color="#808080" size="3"><em><strong>其它有用的debug命令和debging例子</strong></em></font></p>
<dir>
<li><em><strong>debug source-bridge </strong></em></li>
<li><em><strong>debug sdlc </strong></em></li>
<li><em><strong>debug clsi </strong></em></li>
</dir>
<hr>
<p><img src="zijin%20copywrite.GIF" width="600" height="48"></p>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -