(rev. 01/05/2008) 
 
Notes On Chapter Eleven 
-- Extending LANs: Fiber Modems, Repeaters, Bridges, and Switches
 
-  11.1 Introduction  
     
     -  LAN technology is best suited to a network contained, say, with a
	  single building.  
      -  However  sometimes extensions of LANs are
	  necessary.  This chapter is about how to make extensions 
	  using such devices as fiber modems, repeaters, and bridges.
	  
      
 -  11.2 Distance Limitation and LAN Design  
     
     -   Distance limitation is fundamental to a
	  LAN.   
      -   If an Ethernet is too long  two
	  hosts may send a frame simultaneously before they become aware
	  that a collision is occurring.  
      -  If a token ring becomes too long it requires too much time for
	  information to get around the ring.  
      -  there can be so much signal loss as a network grows longer that
	  frames sent from one end to the other cannot be detected.  
      
     
 -  11.3 Fiber Optic Extensions  
     
     -  
           One can connect an office LAN to a remote
	  computer with a pair of optical modems and some optical fiber.
	   
      -  The modems take care of translating the signals properly so that
	  the remote computer operates exactly as though it were connected
	  to the LAN normally.  
      -  Distances of up to several kilometers are not a problem in this case
	  because the fiber has low signal loss and low delay.  
      
 -  11.4 Repeaters  
      
     -  
           One can use ordinary coaxial cable to join
	  two adjacent Ethernet segments if a repeater is inserted at the
	  join.   
      -  A repeater simply copies each signal received on one side and
	  transmits it on the other side at full strength.    
      -   A repeater forwards all signals
	  immediately.  It does not buffer frames.  It does not "understand"
	  frames.   
      -  Hosts communicate across a repeater exactly the same way they
	  communicate on the same segment.  
      -  A 10Base5 Ethernet segment can be up to 500 meters in length.  No
	  more than four repeaters may separate any two nodes.  Usually it is
	  easy to stay within these limits when networking a building.
	  
      -  Although signal strength does not become a problem just because too
	  many repeaters are in the network,  CSMA/CD
	  will not work reliably when there are too many repeaters between
	  nodes.   This is simply a matter of time delay.  Each
	  repeater and segment between hosts adds delay.  If a  sending host does not "hear" a collision soon
	  enough, it will not back off,  yet the packet may be
	  unintelligible to the intended receiver.  
      -  The limits for 10Base2 and 10BaseT Ethernet are lower, which is
	  perhaps a reason why a network architect might choose to use 10Base5
	  technology instead of the newer cheaper 10BaseT.  
      -   One can connect two very distant Ethernet
	  segments using two special repeater/modem devices and an optical
	  fiber connection  between the repeater/modem devices.  This
	  arrangement is much like the one described previously for connecting
	  a remote computer to a LAN.  The technology is called Fiber Optic
	  Intra-Repeater Link (FOIRL).  
      -  Unfortunately, repeaters repeat  everything  including
	  collisions and noise.   Repeaters fail to
	  isolate "problem traffic" on a segment.  
      
 -  11.5 Bridges 
     
     -  
           One can use a bridge to connect two Ethernet
	  segments. 
     -  A bridge is different from a repeater. 
  
      -   A bridge has two NIC's , one for
	  connecting to each of the two Ethernet segments.   (Repeaters don't have NIC's.)  
      -  Hosts communicate across a bridge exactly the same way they
	  communicate on the same segment. 
      -  When a bridge receives a frame on one side that is addressed to a
	  node on the other side, it transmits that frame on the other side.
	  
      -   A bridge waits until it receives a whole
	  frame, and then commands the NIC on the other side to transmit.
	  (Repeaters don't wait.)  
      -   A bridge forwards only correct frames, so
	  therefore it does not forward noise or collisions. (Repeaters forward
	  everything.)  
      -   Bridges help to keep problems on the net
	  isolated  because they do not forward noise. 
      
 -  11.6 Frame Filtering 
     
     -  
           Most bridges are adaptive, learning bridges:
	   they grow a list associated with each of their NIC's.
	  
      -   
         The bridge examines the source address of each frame that arrives at
	  one of its interfaces.   It keeps a list of
	  source addresses on side "1" and source addresses on side "2."
	   
      -  The bridge also examines the destination address of each frame
	  that arrives. 
      -  The bridge always forwards broadcast or multicast frames. 
      -   If a frame arrives on side "1" and it is
	  addressed to a specific host whose address is in the list of sources
	  on side "1," the bridge does not forward the frame  to side
	  "2" -- because the destination is known to be on side "1" of the
	  bridge.  Otherwise, the bridge does forward the frame. 
      
 -  11.7 Startup and Steady State Behavior of Bridged Networks
          
      
     -  Note that "when in doubt" the bridge forwards the frame.  Therefore
	  a bridge will forward all frames until it has learned about some
	  sources. 
      -  Theoretically a host could remain unknown to a bridge by refraining
	  from sending any frames.  However, a host that sends no frames would
	  be extremely unusual.  
      -  There is an advantage to the "smarts" of a bridge -- isolation of
	  local traffic.  However the CPU of the bridge has to work very hard
	  -- it needs to processes every frame that arrives on either side.
	  
      
 
 -  11.8 Planning a Bridged Network 
     
     -  If segment 1 is connected to segment 2 by a bridge, then a pair of
	  hosts can communicate on segment 1 at the same time that another
	  pair of hosts is communicating on segment 2. 
      -  When planning a network of segments connected by bridges, one should
	  try to  put hosts that need to communicate
	  frequently together on the same segment.  This will tend to foster a
	  situation in which many communications between pairs of computers can
	  go on simultaneously.  There will tend to be more throughput
	  on such a network -- more bits per second of communication among
	  hosts.  Also hosts will tend to spend less time waiting for a
	  communication to begin. 
      -  Keep in mind, however, that when a frame is  not  local, it
	  will not in general get forwarded in a way that "funnels" it to the
	  destination hosts.  In a spanning tree arrangement, the non-local
	  frame is forwarded onto all segments, except it will not be
	  forwarded to the descendants of the destination's segment. 
      
 -  11.9 Bridging Between Buildings 
     
     -  
          Because a bridge connects to a LAN exactly like a computer connects,
	  a bridge can be connected to a far distant segment using a pair of
	  fiber modems as described in section 11.3. 
      -  This is a more economical and flexible arrangement than using the
	  idea in 11.3 to separately connect each computer to the remote LAN.
	  
      
 -  11.10 Bridging Across Longer Distances 
     
     -  The delay on a segment has to be small so that collision detection
	  will work properly. 
      -   It's not possible for a host to "collide"
	  with another host on the opposite side of a bridge.  
	  
      -  A bridge acts just like any of the other hosts when it puts a
	  frame on a segment.  A bridge participates
	  in CSMA/CD.  
      -  Therefore if two segments are separated by a bridge,  it will not cause incorrect operation of the
	  network if frames moving from one segment to the other are
	  delayed for a very long time.  
      -  
           We can therefore join two very distant
	  Ethernet segments by putting a leased line or 
          
	  satellite uplink  
          between two bridges,  and connecting
	  one segment to each bridge.  There should
	  always be two bridges  in such arrangements, to avoid
	  forwarding packets unnecessarily across the (low bandwidth) remote
	  link in either direction. 
      -  Typically the leased line or uplink has much higher delay and lower
	  throughput than the LAN.  The bridge needs to queue up large numbers
	  of frames from the LAN while they wait to be sent across the slow
	  link.  A bridge used for such a purpose is equipped with extra
	  capacity to perform the buffering.  
      
 -  11.11 A Cycle of Bridges 
     
     -  
           Any number of Ethernet segments can be
	  connected together using bridges.   This provides at least one
	  solution to the problem of building a large LAN. 
      -  
          It is possible to join segments with bridges in such a way that
	  cycles are formed: routes that go through two or more segments and
	  return to the starting segment. 
      -   Bridge software has to be designed carefully
	  so that frames will not be forwarded around cycles ad infinitum.
	  For example, how do we avoid the forwarding of broadcast packets in
	  an infinite cycle?  
      
 -  11.12 Distributed Spanning Tree 
     
     -  If a network contains a cycle of bridged segments, then  we can avoid forwarding cycles by instructing some
	  bridges not to forward packets.  
      -  When a bridge boots it performs an algorithm that tells it whether it
	  would create a cycle if it forwards packets.  If the answer is yes
	  then that bridge will not forward packets. 
      -   The bridges that do forwarding form a spanning
	  tree  of the graph whose nodes are segments and whose edges
	  are bridges. 
      
 -  11.13 Switching 
     
     -  
          Computers connect to an Ethernet switch in the same manner that they
	  connect to an Ethernet hub.  However, the hub simulates a single
	  shared Ethernet segment.  The  switch
	  simulates a set of bridged segments.   The "forwarding" is
	  very selective.  There is a simulated bridge between each pair of
	  segments.  Each host is on one segment alone.  
      -  If 2M computers are connected to a switch, up to M pairs can
	  communicate through the switch simultaneously. 
      -  
	  A closeup of two 3Com 24 port Ethernet switches
           
      -  
	  Three 3Com Ethernet switches
           
      
 -  11.14 Combining Switches and Hubs 
     
 -  11.15 Bridging and Switching with Other Technologies 
     
     -  Other LAN technologies besides Ethernet can make use of fiber modem
	  connections to distant hosts.  It makes sense with token ring or
	  FDDI. 
      -  FDDI switches exist. 
      
 -  11.16 Summary