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

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

?? structure.txt

?? The Java Network Simulator is a Java implementation of the ns-2 simulator originally from Berkeley.n
?? TXT
?? 第 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一区二区三区免费野_久草精品视频
www日韩大片| 久久久久久久久久电影| 欧美mv日韩mv国产网站| 国产精品久久久久aaaa| 免费的国产精品| 色视频成人在线观看免| 久久综合色播五月| 午夜久久久久久久久| 不卡视频一二三| 日韩精品专区在线影院重磅| 国产精品免费网站在线观看| 久久99精品国产麻豆不卡| 欧美性色黄大片| 亚洲精选免费视频| 成人短视频下载| 国产精品伦一区| 久久久精品免费免费| 日韩经典一区二区| 欧美性猛交一区二区三区精品| 久久精品在这里| 久久国产精品色婷婷| 欧美日韩mp4| 天天色综合成人网| 欧美日韩一区小说| 亚洲国产一区二区三区| 99久久综合狠狠综合久久| 日本一区二区三级电影在线观看| 国产在线一区二区综合免费视频| 3d成人动漫网站| 日本v片在线高清不卡在线观看| 欧美日韩免费观看一区三区| 亚洲一本大道在线| 欧美日韩久久久| 日韩av在线免费观看不卡| 欧美精品视频www在线观看| 亚洲成人动漫av| 欧美日韩一区 二区 三区 久久精品| 亚洲综合在线第一页| 欧美三级视频在线| 婷婷一区二区三区| 日韩一级高清毛片| 国产一区在线精品| 国产日韩一级二级三级| 成人午夜私人影院| 亚洲欧美国产77777| 日本精品裸体写真集在线观看| 一区二区成人在线| 欧美一区二区久久| 国产原创一区二区三区| 国产精品三级av| 欧美自拍偷拍一区| 天天操天天色综合| 欧美国产成人精品| 欧美色国产精品| 极品销魂美女一区二区三区| 久久久国际精品| 91在线视频观看| 香蕉加勒比综合久久| 精品美女一区二区三区| 不卡视频免费播放| 亚洲午夜久久久久中文字幕久| 欧美日韩高清在线播放| 国产成人综合在线| 一区二区三区中文字幕电影| 91精品国产综合久久精品性色| 国产一区在线视频| 亚洲成人久久影院| 欧美国产视频在线| 欧美男男青年gay1069videost | 亚洲精选视频免费看| 91精品黄色片免费大全| 国产福利精品导航| 亚洲线精品一区二区三区 | 一区二区三区日韩精品| 欧美一区二区免费观在线| 成人黄色在线视频| 日韩电影在线一区二区三区| 久久久激情视频| 91精品国产入口| 色嗨嗨av一区二区三区| 经典三级视频一区| 香蕉久久夜色精品国产使用方法 | 日韩欧美不卡一区| 99久久精品免费精品国产| 日韩精品免费专区| 亚洲同性同志一二三专区| 日韩欧美中文字幕制服| 欧美性生活影院| www.成人网.com| 国产美女精品在线| 美国十次综合导航| 香蕉成人啪国产精品视频综合网| 中文字幕欧美国产| 久久久亚洲高清| 欧美一区二区三区在线视频 | 亚洲国产精品嫩草影院| 国产农村妇女精品| 精品欧美一区二区三区精品久久| 欧美做爰猛烈大尺度电影无法无天| 成人免费看片app下载| 精品写真视频在线观看| 日韩高清一区在线| 香蕉影视欧美成人| 五月综合激情网| 亚洲国产一区二区在线播放| 一区二区三区国产豹纹内裤在线| 久久久精品一品道一区| 久久免费的精品国产v∧| 日韩精品专区在线影院重磅| 7777精品伊人久久久大香线蕉的| 欧美性做爰猛烈叫床潮| 在线一区二区三区四区五区| 99视频有精品| 91蜜桃婷婷狠狠久久综合9色| 成人精品电影在线观看| 高清在线成人网| 成人网在线播放| www.日韩大片| 色综合久久久久网| 色综合久久88色综合天天6| 色综合久久久久久久| 一本色道综合亚洲| 欧美撒尿777hd撒尿| 欧美电影影音先锋| 欧美va在线播放| 2023国产精品视频| 国产性做久久久久久| 欧美国产精品一区二区三区| 国产精品美女www爽爽爽| 综合激情成人伊人| 图片区日韩欧美亚洲| 激情综合网av| 波多野结衣精品在线| 欧美色综合网站| 欧美tickling网站挠脚心| 久久久久久影视| 亚洲卡通欧美制服中文| 日韩电影在线观看一区| 国产精品一区在线| 91婷婷韩国欧美一区二区| 欧美日本在线观看| 久久久久9999亚洲精品| 亚洲日本va午夜在线电影| 天天色综合天天| 成人av先锋影音| 91精品啪在线观看国产60岁| 久久精品日韩一区二区三区| 亚洲精品欧美二区三区中文字幕| 亚洲第一在线综合网站| 九九**精品视频免费播放| 9色porny自拍视频一区二区| 在线不卡一区二区| 国产精品无圣光一区二区| 亚洲国产欧美在线| 国产成人无遮挡在线视频| 在线观看一区二区精品视频| 精品99999| 一区二区三区精品视频| 国产麻豆成人精品| 欧美精品黑人性xxxx| 国产精品超碰97尤物18| 日韩国产高清影视| aa级大片欧美| 国产亚洲成年网址在线观看| 午夜天堂影视香蕉久久| av亚洲精华国产精华| 日韩欧美久久一区| 亚洲一区二区精品3399| 国产999精品久久久久久绿帽| 欧美午夜精品久久久久久孕妇| 国产欧美日韩视频在线观看| 免费成人av资源网| 91久久国产综合久久| 欧美国产一区二区在线观看 | 成人在线视频一区| 欧美一区二区三级| 亚洲最快最全在线视频| 国产电影精品久久禁18| 欧美大片一区二区| 亚洲国产日韩在线一区模特 | 国产乱码精品一区二区三区五月婷| 在线观看三级视频欧美| 国产精品第一页第二页第三页| 久久电影网站中文字幕| 在线电影国产精品| 亚洲成av人片在线| 91蜜桃在线免费视频| 亚洲视频一区二区在线| 国产a视频精品免费观看| 久久综合九色综合欧美98| 久久er99精品| 欧美va亚洲va| 久久se这里有精品| 久久久久亚洲综合| 国产做a爰片久久毛片| 精品国产一区二区亚洲人成毛片| 日本三级韩国三级欧美三级| 欧洲av在线精品| 亚洲午夜一区二区三区| 欧美日韩亚洲综合在线|