亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? structure.txt.svn-base

?? 網絡模擬器
?? SVN-BASE
?? 第 1 頁 / 共 2 頁
字號:
  How to build a network for simulation in JNS
  Christian Nentwich (c.nentwich@cs.ucl.ac.uk)
  06/03/1999

  This file describes how to build the static structure of a network
  (nodes, links, etc.) from the classes available in JNS.
  ______________________________________________________________________

  Table of Contents


  1. Prerequisites

  2. Introduction

  3. Nodes

  4. Interfaces

     4.1 SimplexInterface
     4.2 DuplexInterface

  5. Links

     5.1 SimplexLink
     5.2 DuplexLink

  6. An Example

  7. The whole example code

  8. Additional Comments



  ______________________________________________________________________

  1.  Prerequisites


  Before reading this document, you should ask yourself the following
  questions:

  o  Does the term "subnet" mean anything to you? Are you scared of the
     word "netmask" ?

  o  Can you tell a "router" from a "host"? Is a "host" someone who
     provides hospitality?

  o  Does the expression public static void main(String args[]) look
     meaningful?

  o  Does MTU mean "Military Telecommunications Unit"?


  If the answer to any of those is "yes", you will probably have to do
  some reading before you can use JNS. You will have to read up on the
  IP protocol, especially subnetting, the Java programming language
  and/or basic networking terms.



  2.  Introduction

  This document will describe how you can build the network you want to
  simulate in JNS. It is concerned with the static structure only, not
  with dynamic things such as tracing or sending packets. Consequently,
  when functions of several classes are described, those concerned with
  data transfer are left out.


  The functions presented here are not recommended for "daily use". JNS
  was designed with many options in mind, thus you have quite a bit of
  setup work to do in order to build your network. If you want to just
  quickly build a network without much customisation you are strongly
  advised to write some code that will take away most details (For
  examples, a node together with an interface could be built
  automatically and returned).


  Again, this file describes how to build a network from the basic
  building blocks:

  o  Nodes - think of this as computers. The box on your desk or under
     your desk.

  o  Interfaces - the equivalent of network cards, modems, you name it.

  o  Links - the cable that runs out of your network card into the next
     one, your phone-line, etc.. Note, however, that links are between
     two interfaces, not like an Ethernet cable that can connect more
     than two computers.


  Each of these will be described in detail in the next sections. Nearly
  all of them can be attached to each other. As a reminder from here on,
  JNS has a uniform naming scheme for attaching elements to others, the
  function to do this is always called 'attach', regardless of what is
  attached to what.



  3.  Nodes


  Nodes represent a computer. The class that implements a node is
  called..  Node. In JNS, a node contains a couple of essential
  components:

  o  Zero or more Interfaces - Any computer needs an interface to a
     network to participate. You can have zero interfaces if you find a
     use for it.

  o  One IP Handler object - you will not see this object if you do not
     look for it actively. It takes care of sending and receiving IP
     packets and dispatching them to higher level protocols. There is
     only one of those in each node and it is attached to every
     interface. It also contains the routing table.

  o  A name - be imaginative ;)


  That's about all the elements a node contains. The functionality
  provided by nodes includes:

  o  Attaching Interfaces - the most obvious functionality needed.

  o  Adding a routing table entry - you can add a route to a subnet.

  o  Adding a default route - the route to use if no other routes seem
     to match.

  It is worth pointing out that nodes are not particularly useful in any
  simulation, there is nothing going in on inside that class. The only
  purpose it has is to hold together its components, so the actual class
  looks pretty boring.


  The first thing you want to do when creating your network is create a
  couple of Node objects to add interfaces to later.



  4.  Interfaces


  An interface lets a node connect to a link, i.e. it is a bit like a
  network card. The class Interface is actually an abstract class, so
  you cannot use it when building your network. Instead, you have to
  choose between SimplexInterface and DuplexInterface


  Those two classes share the important functionality you need, so it is
  described here. An interface (regardless of whether it is simplex or
  duplex) consists of:

  o  An IP address - a globally unique IP address by which this
     interface can be identified.

  o  A bandwidth - the bandwidth is given in bps. Most of the time, you
     will prefer to assign a bandwidth to a link and let all interfaces
     that connect to the link inherit the bandwidth.

  o  A reference to an IP handler - this is invisible to you. The
     interface knows which handler gets the packets that arrive.

  o  A queue - incoming and outgoing packets will be held in a queue
     until they can receive further treatment.

  o  A maximum transfer unit (MTU) - the maximum packet length in bytes
     of a packet this interface can send. Defaults to 1500. Override if
     you want to see some IP fragmentation.


  There are several functions provided by all interfaces which are used
  almost all of the time.

  o  Attaching a link - You will need this after creating a link when
     you want to connect it to an interface. You can choose here whether
     the interface will take its bandwidth from the link.

  o  Attaching a queue - An interface contains a queue for packets. You
     can override the default queue here. The behaviour differs between
     SimplexInterface and DuplexInterface, check in the relevant
     sections.


  4.1.  SimplexInterface

  A SimplexInterface is a unidirectional interface, which means it can
  either be a sender or a receiver, but not both. This class is used
  heavily internally but it is generally not very useful for simulation.
  Note that you can only attach a SimplexLink to a SimplexInterface.


  Simplex Interfaces contain a queue. By default, when a simplex
  interface is created, a drop-tail queue is attached to it without any
  further interaction from you. If you decide to attach your own queue
  (e.g. a RED queue you implemented) this default queue will be
  overwritten.


  4.2.  DuplexInterface

  The DuplexInterface is much more like your network card. It really
  consists of two simplex interfaces internally, but most of the time
  you can ignore this. It is made of by a sender and a receiver
  interface.


  Note that attaching a queue to this interface works a bit differently.
  If you choose to do this, the clone() method of the queue you are
  attaching will be called and the two queues will be attach to the two
  simplex interfaces.



  5.  Links

  Setting up links is the last step in building a network. Similar to
  the Interface class, the Link class is abstract so you cannot
  instantiate it. You have to make a choice between SimplexLink and
  DuplexLink.


  Links in JNS have the following common characteristics:

  o  A Bandwidth - the bandwidth of a link is specified in bytes per
     second (bps). You should know the bandwidth you want to use.

  o  A propagation delay - this value specifies how long it takes for
     one bit to travel from one length of the link to the other. You
     will normally either know the propagation delay or calculate it
     from 2/3 the speed of light (around the speed of an electron going
     down a wire) and the length of the link.

  o  An error rate - This is a value between 0 and 1. 0 means error free
     and 1 means "ruins everything". JNS will generate a random variable
     and if it is smaller than this value, it will corrupt the CRC of
     the current packet the link is sending.


  5.1.  SimplexLink


  Most of the time, you will not use simplex links, so they are not very
  interesting (although all processing is done internally using simplex
  links anyway). If you do decide to use one, keep in mind that it can
  only attach to a SimplexInterface.


  5.2.  DuplexLink


  A duplex link encapsulates two simplex links and can be attached to a
  DuplexInterface. There is not much more to say about it but this is
  definitely the kind of link you should use if you want to be sane
  after laying out your network.






  6.  An Example

  We will now provide some annotated example code that shows how to
  create a static network structure in JNS. We will create a simple
  network of three nodes: Two hosts joined by a router. The way to
  proceed is to show bits of code and explain them. What all steps will
  have in common is that every element that is generated has to be
  attached to the simulator.


  Step 1: Obtain a reference to the Simulator

  ______________________________________________________________________
      Simulator sim=Simulator.getInstance();
  ______________________________________________________________________



  Note that only one instance of the simulator can ever exist. That's
  why the constructor is private and you have to use this method to
  obtain the singleton instance.


  Step 2: Create the three nodes (the code should be self-explanatory)
  and attach them to the simulator:

  ______________________________________________________________________
      Node src=new Node("Source node");
      Node router=new Node("Router");
      Node dest=new Node("Destination node");

      sim.attach(src);
      sim.attach(router);
      sim.attach(dest);

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
国产91在线观看丝袜| 91精品国产综合久久久久久久久久 | 国产精品久久久久久久久图文区| 亚洲靠逼com| 激情文学综合网| 日本精品视频一区二区三区| 久久综合色婷婷| 一区二区三区在线视频播放| 狠狠色伊人亚洲综合成人| 欧美午夜在线一二页| 中文字幕不卡三区| 蜜臂av日日欢夜夜爽一区| 91国在线观看| 成人免费在线播放视频| 精品一二三四在线| 91.com视频| 亚洲电影在线播放| 一本到三区不卡视频| 国产精品色噜噜| 久久99精品国产麻豆婷婷| 欧美精品一二三区| 一区二区三区国产精华| 91麻豆福利精品推荐| 国产精品无码永久免费888| 狠狠色狠狠色综合系列| 精品国产免费一区二区三区香蕉 | 99综合影院在线| 久久免费精品国产久精品久久久久 | 久久看人人爽人人| 麻豆91精品视频| 日韩欧美二区三区| 日本女人一区二区三区| 56国语精品自产拍在线观看| 亚洲一二三级电影| 欧美另类videos死尸| 亚洲va欧美va国产va天堂影院| 在线观看亚洲a| 亚洲亚洲人成综合网络| 欧美日韩不卡一区| 日本aⅴ免费视频一区二区三区| 欧美日韩在线不卡| 亚洲国产毛片aaaaa无费看| 欧美日韩专区在线| 日韩中文字幕区一区有砖一区| 欧美视频日韩视频在线观看| 亚洲国产成人tv| 欧美一区二区三区四区五区 | 一区二区三区四区在线播放| 91福利国产精品| 午夜激情久久久| 日韩一级黄色大片| 国产酒店精品激情| 综合欧美亚洲日本| 9191国产精品| 国产一区二区精品久久| 亚洲欧洲三级电影| 欧美日韩亚洲综合在线 欧美亚洲特黄一级| 亚洲国产综合视频在线观看| 91精品国模一区二区三区| 狠狠色伊人亚洲综合成人| 一区二区三区资源| 日韩午夜在线播放| 成人免费视频网站在线观看| 亚洲综合成人在线视频| 91精品国产一区二区人妖| 国产999精品久久久久久绿帽| 亚洲免费在线观看| 欧美一区二区精品在线| 成人免费视频视频在线观看免费| 亚洲精品你懂的| 日韩亚洲欧美在线| a亚洲天堂av| 蜜臀av一区二区在线观看| 国产日韩av一区二区| 欧洲国产伦久久久久久久| 久久99精品视频| 综合久久国产九一剧情麻豆| 欧美一区二区啪啪| 99视频精品全部免费在线| 美女视频一区在线观看| 最新国产成人在线观看| 精品动漫一区二区三区在线观看 | 久久av资源网| 一区二区三区在线免费播放| 精品成人a区在线观看| 在线一区二区视频| 国产91精品露脸国语对白| 丝袜美腿成人在线| 亚洲色图欧美在线| 国产视频亚洲色图| 91精品国产日韩91久久久久久| 99精品热视频| 国产乱人伦精品一区二区在线观看 | 欧美日产国产精品| 菠萝蜜视频在线观看一区| 美美哒免费高清在线观看视频一区二区 | 欧美一区二区三区免费大片| 色悠久久久久综合欧美99| 国产精品一区二区黑丝| 麻豆成人免费电影| 日韩精品亚洲专区| 亚洲成人动漫精品| 亚洲欧美激情小说另类| 中文字幕av一区二区三区| 精品99久久久久久| 欧美成人女星排名| 51精品秘密在线观看| 欧美欧美欧美欧美| 欧美午夜不卡在线观看免费| 91在线国产观看| 不卡高清视频专区| 丁香啪啪综合成人亚洲小说| 国产精品自拍网站| 日本一区二区在线不卡| 国产精品久久久久久久久果冻传媒 | 亚洲va欧美va国产va天堂影院| 亚洲青青青在线视频| 中文字幕亚洲不卡| 亚洲国产精品成人久久综合一区| 天天综合日日夜夜精品| 尤物av一区二区| 51精品视频一区二区三区| 欧美日韩在线观看一区二区| 久久综合久久久久88| 亚洲免费在线观看视频| 激情国产一区二区| 在线观看亚洲一区| 久久九九国产精品| 亚洲成av人片一区二区三区| 国产成人午夜精品影院观看视频| 日本久久电影网| 国产调教视频一区| 午夜精品免费在线| 丁香啪啪综合成人亚洲小说| 7777精品伊人久久久大香线蕉的| 国产精品乱人伦| 久久97超碰国产精品超碰| 在线亚洲一区二区| 日本一区二区三区免费乱视频| 亚洲国产一区二区三区| 成人性生交大片免费看中文网站| 69堂国产成人免费视频| 亚洲欧洲精品一区二区精品久久久| 蜜臀av一区二区在线免费观看 | 成人黄色av网站在线| 欧美一二三区在线观看| 一区二区三区四区在线免费观看| 国产成人免费视频精品含羞草妖精| 91精品国产综合久久久久久久| 日韩理论片网站| 成人午夜电影网站| 精品国产sm最大网站| 免费在线观看不卡| 欧美嫩在线观看| 亚洲柠檬福利资源导航| 懂色av噜噜一区二区三区av| 日韩欧美你懂的| 免费观看91视频大全| 欧美日韩一区二区三区高清 | 精品久久国产97色综合| 亚洲成在线观看| 91久久线看在观草草青青| 中文字幕一区二区日韩精品绯色| 国产福利一区二区| 久久亚洲精品国产精品紫薇| 久久不见久久见免费视频1| 日韩一区二区中文字幕| 水蜜桃久久夜色精品一区的特点| 欧美性xxxxxx少妇| 亚洲高清在线精品| 欧美久久久久中文字幕| 亚洲国产人成综合网站| 欧美日韩一区二区欧美激情| 亚洲高清免费在线| 欧美日韩大陆一区二区| 日韩av中文字幕一区二区| 欧美精品日日鲁夜夜添| 日韩精品电影在线| 日韩欧美国产wwwww| 国产一区二区调教| 国产日韩欧美制服另类| 成人av综合在线| 1区2区3区国产精品| 色av综合在线| 香蕉久久夜色精品国产使用方法| 欧美日韩国产精选| 美日韩一区二区三区| 欧美sm极限捆绑bd| 国产精品一区免费在线观看| 国产精品久久三| 色婷婷综合在线| 日韩精彩视频在线观看| 精品国产一区二区三区久久影院| 国产成人自拍网| 亚洲人午夜精品天堂一二香蕉| 欧美性色黄大片| 麻豆精品在线观看| 国产欧美一区二区在线观看| 一本大道av伊人久久综合| 亚洲成av人影院在线观看网|