test-suite-lan.txt
上传用户:rrhhcc
上传日期:2015-12-11
资源大小:54129k
文件大小:3k
源码类别:

通讯编程

开发平台:

Visual C++

  1. The LAN test suite (test-suite-lan.tcl) performs the following tests:
  2.     - lan-routing-flat
  3.     - lan-routing-hier - these two tests are designed to validate LANs
  4.       under flat and hierarchical routing and specifically the
  5.       functionality of the lanRouter object.  The topology is the same
  6.       in both cases: 
  7.        0   2----------5
  8.        |   |
  9.     ---+----+-----+-- LAN virtual node (3)
  10.             |
  11.       4-------------1
  12.       
  13.       
  14.       with a TCP sender attached to node 4 and a TCP receiver at node
  15.       5.  Here packets are not replicated at the LAN, because they are
  16.       unicast and replication is costly.  Packets flow from node 4 to
  17.       1, then the lanRouter object determines the next hop of the
  18.       packet (node 2) and packets with unicast MAC address of node 2
  19.       are put on the shared medium (channel).  Since the packet has a
  20.       unicast MAC address of 2, MAC classifier delivers it to 2 only,
  21.       at which point it is forwarded to 5.  TCP acknowledgements are
  22.       delivered in a similar fashion in reverse direction.
  23.       WARNING: the current nam animation (as of 11/23/98) shows that
  24.       all packets (including unicast) are replicated and delivered to
  25.       every node on the LAN.  This is misleading, because in the
  26.       unicast case packets are delivered only to the next hop node.
  27.     - lan-broadcast: tests the broadcast behavior of mac classifier.
  28.       
  29. 4-------0  2
  30. | | 
  31.       (vLAN node 3)   --+-------+  5
  32.         | /
  33.  1
  34.       A CBR agent at node 4 is sending unicast packets to a receiver
  35.       at node 5.  But in this case the MAC classifier is explicitly
  36.       running in the broadcast mode and even though the IP
  37.       consequently the MAC address is unicast, packets are fanned out
  38.       and delivered both to 2 and to 1.  Both 2 and 1 receive the
  39.       packet, classify it as addressed to 5 and forward accordingly.
  40.       Thus the receiver at 5 receives two copies of the same packet.
  41.     - lan-abstract: tests the behavior of the abstract lan implemented
  42.       using a DropTail queue as the contention mechanism
  43.        0   2
  44.        |   |
  45.     ---+----+-----+-- abstract LAN node (4)
  46.        |   |
  47.        1          3
  48.       
  49.       A TCP senders are attached to node 0 and node 2 with TCP receivers
  50.       present at node 1 and node 3 respectively. Packets are queued
  51.       and sent on the LAN on a FIFO basis. ACK and packets share
  52.       the same queue. Default queue size of 50 packets.   
  53.      - lan-mactrace: validates the behavior of MAC level collision traces
  54.        on a LAN
  55.        
  56.                0   2
  57.        |   |
  58.     ---+----+-----+-- vLAN node (4)
  59.        |   |
  60.        1          3
  61.        A CBR agent is attached to node 0 and node 2 which sends packets at
  62.        a regular interval of 0.5 seconds to node 1 and mode 3 respectively. 
  63.        Both the agents start at the same time and hence always experience a
  64.        collision. This is recored as a 'c' in the trace files. 
  65.        After a collision, the source double the time it defers, before it 
  66.        attempts to transfer a packet again ie: binary exponential backoff.