﻿<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/"><channel><title>IT博客-IT民工之家－－少数人的博客-随笔分类-Networks</title><link>http://www.cnitblog.com/Victor/category/1334.html</link><description>Victor's Technology World  －Blog For The Minority</description><language>zh-cn</language><lastBuildDate>Wed, 28 Sep 2011 16:39:18 GMT</lastBuildDate><pubDate>Wed, 28 Sep 2011 16:39:18 GMT</pubDate><ttl>60</ttl><item><title>三层交换机的一些功能以及相关网络原理介绍</title><link>http://www.cnitblog.com/Victor/archive/2006/04/18/9343.html</link><dc:creator>Victor</dc:creator><author>Victor</author><pubDate>Tue, 18 Apr 2006 14:06:00 GMT</pubDate><guid>http://www.cnitblog.com/Victor/archive/2006/04/18/9343.html</guid><wfw:comment>http://www.cnitblog.com/Victor/comments/9343.html</wfw:comment><comments>http://www.cnitblog.com/Victor/archive/2006/04/18/9343.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.cnitblog.com/Victor/comments/commentRss/9343.html</wfw:commentRss><trackback:ping>http://www.cnitblog.com/Victor/services/trackbacks/9343.html</trackback:ping><description><![CDATA[一、几个相关设备的定义<br /><br />       在网络中有很多设备能够连接不同的物理网段，包括中继器、集线器、交换机、路由器，还网关。它们都能把信息分组从一段电缆传递到另一段电缆上。但是，它们的工作方式还是有很大差别的，下面我们先来介绍一下这些设备的各自特点和原理吧。<br /><br />1、中继器<br />      中继器（RP repeater）是最简单的网络互联设备，它主要完成物理层的功能，负责在两个节点的物理层上按位传递信息，完成信号的复制、调整和放大功能，以此来延长网络的长度。它位于OSI参考模型中的物理层。中继器并不理解帧、分组和头的概念，它只理解电压值。 <br /><br />　　由于存在损耗，在线路上传输的信号功率会逐渐衰减，衰减到一定程度时将造成信号失真，因此会导致接收错误。中继器就是为解决这一问题而设计的。它完成物理线路的连接，对衰减的信号进行放大，保持与原数据相同。 <br /><br />2、集线器<br />      集线器（HUB）从本质上来说和集线器原理是相同的，它也工作在OSI的物理层。集线器有许多条输入线路，它将这些输入线路连接起来。在任何一条线路上到达的帧都将被转发到所有其他线路上。如果有两个或两个以上的帧同时到达，它们会发生冲突，换句话说，整个集线器构成了一个冲突域。集线器和中继器一样，不识别帧、分组和头，因此它不检查也不使用802地址。<br /><br />3、交换机<br />      交换机（Switch）是工作在数据链路层的设备，它基于帧地址进行路由。<br />(未完待续)<img src ="http://www.cnitblog.com/Victor/aggbug/9343.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cnitblog.com/Victor/" target="_blank">Victor</a> 2006-04-18 22:06 <a href="http://www.cnitblog.com/Victor/archive/2006/04/18/9343.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>广播路由的几种方法（Something I Have Learned About Broadcast Routing）</title><link>http://www.cnitblog.com/Victor/archive/2005/11/17/4585.html</link><dc:creator>Victor</dc:creator><author>Victor</author><pubDate>Wed, 16 Nov 2005 16:08:00 GMT</pubDate><guid>http://www.cnitblog.com/Victor/archive/2005/11/17/4585.html</guid><wfw:comment>http://www.cnitblog.com/Victor/comments/4585.html</wfw:comment><comments>http://www.cnitblog.com/Victor/archive/2005/11/17/4585.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.cnitblog.com/Victor/comments/commentRss/4585.html</wfw:commentRss><trackback:ping>http://www.cnitblog.com/Victor/services/trackbacks/4585.html</trackback:ping><description><![CDATA[<p class="MsoNormal"><span lang="EN-US">Within a network one host sometimes wants
to send messages to more than one receivers or even to all the other hosts.
Examples are like weather broadcasting, video living, software distribution, web-cache
pushing and so on. The easiest way we first realize is to broadcast the
messages into the network with a packet to each receiver, BUT IS THIS THE MOST
EFFICIENT ONE?</span></p>


<p class="MsoNormal"><span lang="EN-US"><!--[if gte vml 1]><v:shapetype id="_x0000_t75"
 coordsize="21600,21600" o:spt="75" o:preferrelative="t" path="m@4@5l@4@11@9@11@9@5xe"
 filled="f" stroked="f">
 <v:stroke joinstyle="miter"/>
 <v:formulas>
  <v:f eqn="if lineDrawn pixelLineWidth 0"/>
  <v:f eqn="sum @0 1 0"/>
  <v:f eqn="sum 0 0 @1"/>
  <v:f eqn="prod @2 1 2"/>
  <v:f eqn="prod @3 21600 pixelWidth"/>
  <v:f eqn="prod @3 21600 pixelHeight"/>
  <v:f eqn="sum @0 0 1"/>
  <v:f eqn="prod @6 1 2"/>
  <v:f eqn="prod @7 21600 pixelWidth"/>
  <v:f eqn="sum @8 21600 0"/>
  <v:f eqn="prod @7 21600 pixelHeight"/>
  <v:f eqn="sum @10 21600 0"/>
 </v:formulas>
 <v:path o:extrusionok="f" gradientshapeok="t" o:connecttype="rect"/>
 <o:lock v:ext="edit" aspectratio="t"/>
</v:shapetype><v:shape id="_x0000_i1025" type="#_x0000_t75" style='width:415.5pt;
 height:240.75pt'>
 <v:imagedata src="file:///E:\TempDIR\temp\msohtml1\05\clip_image001.png"
  o:title=""/>
</v:shape><![endif]--><!--[if !vml]--><img style="width: 589px; height: 345px;" src="http://www.cnitblog.com/images/cnitblog_com/victor/news_references/1.JPG" alt="1.JPG" border="0"><br>
<!--[endif]--></span></p>


<p class="MsoNormal"><span lang="EN-US">The source host simply sends one packet to
each destination as shown above (left). This method is really a waste of
bandwidth. What’s more, this method requires the source host to have all the receivers’
addresses. </span></p>


<h3 style="margin-left: 21pt; text-indent: -21pt;"><!--[if !supportLists]--><span style="" lang="EN-US"><span style="">1)<span style="font-family: &quot;Times New Roman&quot;; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;">&nbsp;&nbsp;&nbsp;&nbsp;
</span></span></span><!--[endif]--><span lang="EN-US">Flooding</span></h3>


<p class="MsoNormal"><span lang="EN-US">The source host send the packets on network
and all the routers that receive the packets simply copy them and forward them
to their neighbors. So this method ensures that each other host in the same
network can hear the packets from the source. If the listener is not a member
of receivers, it just ignores the packets. This method is easy to practice but
it also wastes the bandwidth because it generates too many packets.</span></p>


<h3 style="margin-left: 21pt; text-indent: -21pt;"><!--[if !supportLists]--><span style="" lang="EN-US"><span style="">2)<span style="font-family: &quot;Times New Roman&quot;; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;">&nbsp;&nbsp;&nbsp;&nbsp;
</span></span></span><!--[endif]--><span lang="EN-US">Multidestination Routing</span></h3>


<p class="MsoNormal"><span lang="EN-US">The source only sends a single copy of packets
with multiple destinations carried in them. When the router receives the
packets, it checks out whether its neighbors are on the destination list. </span><span style="font-family: 宋体;">如果它发现连接到它的某条线路上有</span><span lang="EN-US">destination list</span><span style="font-family: 宋体;">里的目标主机，则它就向此链路发送一份分组的副本，副本中</span><span lang="EN-US">destination
list</span><span style="font-family: 宋体;">上列出的不在此链路上的目标地址被删除</span><span lang="EN-US">. After enough hops, there will be only one host address on each
destination list. Then the packets could be treated as common packets of
unicast. </span><span style="font-family: 宋体;">我们可以这样理解：当有发往多个目标的分组在开始的时候沿相同路径传送时，其中一个分组承担网络费用，其他分组搭便车。</span></p>


<h3 style="margin-left: 21pt; text-indent: -21pt;"><!--[if !supportLists]--><span style="" lang="EN-US"><span style="">3)<span style="font-family: &quot;Times New Roman&quot;; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;">&nbsp;&nbsp;&nbsp;&nbsp;
</span></span></span><!--[endif]--><span lang="EN-US">Reverse Path Forwarding</span></h3>


<p class="MsoNormal"><span lang="EN-US"><!--[if gte vml 1]><v:shape id="_x0000_i1026"
 type="#_x0000_t75" style='width:415.5pt;height:160.5pt'>
 <v:imagedata src="file:///E:\TempDIR\temp\msohtml1\05\clip_image003.png"
  o:title=""/>
</v:shape><![endif]--><!--[if !vml]--><img src="http://www.cnitblog.com/images/cnitblog_com/victor/news_references/2.JPG" alt="2.JPG" border="0" height="237" width="572"><br>
<!--[endif]--></span></p>


<p class="MsoNormal"><span lang="EN-US">In this method, when the router receives
some packets from the broadcast source host, it checks the PATH through which
the packets come. If the path is a shortest one from it to the source, the
router forwards the packets to all its neighbors path except the one through
which the packets come, because these packets it receives from the shortest
path are most probably the first copies the source sends. Similarly, if the
packets are not from the shortest path, the route simply drops them because the
packets might be redundant.</span></p>


<p class="MsoNormal"><span style="font-family: 宋体;">逆路径转发有点是兼顾效率和简单性。<br>
</span></p>

<h3 style="margin-left: 21pt; text-indent: -21pt;"><!--[if !supportLists]--><span style="" lang="EN-US"><span style="">4)<span style="font-family: &quot;Times New Roman&quot;; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;">&nbsp;&nbsp;&nbsp;&nbsp;
</span></span></span><!--[endif]--><span lang="EN-US">Spanning Tree</span></h3>


<p class="MsoNormal"><span lang="EN-US">Source host</span><span style="font-family: 宋体;">保
存一棵生成树，它是子网的一个子集，它包含所有的路由器，但是不包含任何环。每个路由器都知道连接它的哪些线路属于这棵生成树。当一个分组到达路由器之
后，它将其转发到除了到来路径之外的所有其他生成树路径中，这种方法可以节省带宽，并且所生成的分组副本是最少的。此方法的缺点是，每个路由器必须保存一
棵生成树，当采用距离矢量路由算法的时候就比较难办了。</span></p>



<img src ="http://www.cnitblog.com/Victor/aggbug/4585.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cnitblog.com/Victor/" target="_blank">Victor</a> 2005-11-17 00:08 <a href="http://www.cnitblog.com/Victor/archive/2005/11/17/4585.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item></channel></rss>