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

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

?? structure.sgml.svn-base

?? 網絡模擬器
?? SVN-BASE
?? 第 1 頁 / 共 2 頁
字號:
<!doctype linuxdoc system>

<article>

<title>How to build a network for simulation in JNS
<author>Christian Nentwich (c.nentwich@cs.ucl.ac.uk)
<date>06/03/1999

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

<toc>

<sect>Prerequisites
<p>

Before reading this document, you should ask yourself the following questions:
<itemize>
<item>Does the term "subnet" mean anything to you? Are you scared of the word
"netmask" ?
<item>Can you tell a "router" from a "host"? Is a "host" someone who provides
hospitality?
<item>Does the expression <tt>public static void main(String args[])</tt> look
meaningful?
<item>Does MTU mean "Military Telecommunications Unit"?
</itemize>

<p>
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.


<sect>Introduction

<p>
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.

<p>
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).

<p>
Again, this file describes how to build a network from the basic building
blocks:
<itemize>
<item>Nodes - think of this as computers. The box on your desk or under your
desk.
<item>Interfaces - the equivalent of network cards, modems, you name it.
<item>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.
</itemize>

<p>
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 <tt>'attach'</tt>, regardless of what is attached
to what.


<sect>Nodes
<p>

Nodes represent a computer. The class that implements a node is called..
<tt>Node</tt>. In JNS, a node contains a couple of essential components:
<itemize>
<item>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.
<item>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.
<item>A name - be imaginative ;)
</itemize>

<p>
That's about all the elements a node contains. The functionality provided by
nodes includes:
<itemize>
<item>Attaching Interfaces - the most obvious functionality needed.
<item>Adding a routing table entry - you can add a route to a subnet.
<item>Adding a default route - the route to use if no other routes seem to
match.
</itemize>

<p>
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.

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


<sect>Interfaces
<p>

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

<p>
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:
<itemize>
<item>An IP address - a globally unique IP address by which this interface
can be identified.
<item>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.
<item>A reference to an IP handler - this is invisible to you. The interface
knows which handler gets the packets that arrive.
<item>A queue - incoming and outgoing packets will be held in a queue until 
they can receive further treatment.
<item>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.
</itemize>

<p>
There are several functions provided by all interfaces which are used almost
all of the time.
<itemize>
<item>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.
<item>Attaching a queue - An interface contains a queue for packets. You can
override the default queue here. The behaviour differs between
<tt>SimplexInterface</tt> and <tt>DuplexInterface</tt>, check in the
relevant sections.
</itemize>

<sect1>SimplexInterface
<p>
A <tt>SimplexInterface</tt> 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 <tt>SimplexLink</tt> to a
<tt>SimplexInterface</tt>.

<p>
Simplex Interfaces contain a queue. By default, when a simplex interface is
created, a <it>drop-tail</it> 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.

<sect1>DuplexInterface
<p>
The <tt>DuplexInterface</tt> 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 <it>sender</it> and a <it>receiver</it>
interface.

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


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

<p>
Links in JNS have the following common characteristics:
<itemize>
<item>A Bandwidth - the bandwidth of a link is specified in bytes per second
(bps). You should know the bandwidth you want to use.
<item>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.
<item>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.
</itemize>

<sect1>SimplexLink
<p>

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.

<sect1>DuplexLink

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
国产精品 欧美精品| 成人99免费视频| 亚洲欧美日韩久久精品| 精品国产91洋老外米糕| 欧美一区二区三区不卡| 51久久夜色精品国产麻豆| 色婷婷精品大视频在线蜜桃视频| 成人av电影在线播放| 成人妖精视频yjsp地址| 国产成人aaa| 色八戒一区二区三区| 在线观看欧美黄色| 欧美日韩精品二区第二页| 欧美日韩国产综合草草| 日韩免费高清电影| 国产午夜久久久久| 国产精品国产馆在线真实露脸| 久久色.com| 自拍偷拍亚洲欧美日韩| 一卡二卡三卡日韩欧美| 五月婷婷久久丁香| 国产综合色视频| 91蜜桃在线观看| 欧美日韩高清影院| 26uuu亚洲综合色欧美| 中文字幕在线不卡国产视频| 伊人夜夜躁av伊人久久| 亚洲aⅴ怡春院| 国产成人亚洲精品青草天美| 99re免费视频精品全部| 这里只有精品99re| 中文字幕高清不卡| 天天综合天天综合色| 狠狠久久亚洲欧美| 91高清在线观看| 久久久久久电影| 亚洲一区二区三区四区在线免费观看 | 国产精品18久久久久久久久久久久| 懂色av一区二区在线播放| 欧美亚洲图片小说| 国产精品网站一区| 免费观看30秒视频久久| 91麻豆成人久久精品二区三区| 欧美高清视频一二三区| 国产精品成人一区二区艾草 | 在线观看三级视频欧美| 久久色在线视频| 亚洲高清中文字幕| 99国产精品久久久久久久久久 | 国内一区二区视频| 欧美日本免费一区二区三区| 亚洲视频资源在线| 成人午夜激情影院| 久久综合99re88久久爱| 亚洲.国产.中文慕字在线| 床上的激情91.| 日韩一区二区三免费高清| 亚洲在线视频一区| 91麻豆精东视频| 国产精品成人网| 国产999精品久久久久久绿帽| 欧美一区二区黄色| 手机精品视频在线观看| 欧亚洲嫩模精品一区三区| 中文字幕亚洲一区二区av在线| 国产精品一区久久久久| 久久只精品国产| 精品亚洲免费视频| 日韩女优视频免费观看| 蜜臀av性久久久久蜜臀av麻豆 | 久久蜜桃av一区精品变态类天堂 | 99久久久精品| 亚洲特黄一级片| 成人深夜福利app| 中文字幕五月欧美| 99国产欧美另类久久久精品| 国产精品色婷婷久久58| 国产91丝袜在线18| 欧美激情一区二区三区蜜桃视频| 国产精品一级片在线观看| 久久久www成人免费毛片麻豆| 国内精品国产成人| 中文字幕欧美激情一区| 91麻豆精品一区二区三区| 亚洲另类一区二区| 欧美欧美午夜aⅴ在线观看| 性感美女久久精品| 日韩精品中文字幕一区二区三区| 奇米一区二区三区| 国产午夜亚洲精品午夜鲁丝片| 丁香婷婷综合网| 一区二区三区电影在线播| 欧美午夜片在线观看| 日本vs亚洲vs韩国一区三区| 久久久精品黄色| 91视频免费播放| 男女视频一区二区| 中文字幕二三区不卡| 日本久久一区二区| 看片网站欧美日韩| 中文字幕av免费专区久久| 欧洲国产伦久久久久久久| 久久精品72免费观看| 国产精品久久久久久久蜜臀| 欧美亚洲尤物久久| 黑人巨大精品欧美一区| 亚洲老司机在线| 精品人在线二区三区| eeuss鲁片一区二区三区在线看| 亚洲国产日韩av| 国产日韩欧美a| 欧美三级三级三级爽爽爽| 精品在线一区二区三区| 亚洲精品日韩综合观看成人91| 日韩视频一区二区三区| 色综合久久六月婷婷中文字幕| 日本怡春院一区二区| 亚洲欧洲精品一区二区三区不卡| 7777精品伊人久久久大香线蕉完整版| 国产精品996| 免费成人你懂的| 亚洲午夜久久久久久久久电影网| 中文字幕免费一区| 精品欧美一区二区三区精品久久| 在线观看av一区二区| 成人性生交大片免费看视频在线| 日本不卡123| 亚洲第一电影网| 国产精品成人免费在线| 国产色产综合色产在线视频| 91精品国产综合久久久蜜臀粉嫩| av电影天堂一区二区在线观看| 国内不卡的二区三区中文字幕| 香蕉成人啪国产精品视频综合网| 亚洲欧洲国产日韩| 亚洲国产精品传媒在线观看| 91精品国产一区二区三区蜜臀| 91美女精品福利| 99视频在线观看一区三区| 成人一区在线看| 国产91清纯白嫩初高中在线观看| 黄色资源网久久资源365| 日韩国产欧美一区二区三区| 亚洲男女一区二区三区| 综合亚洲深深色噜噜狠狠网站| 国产视频一区二区在线观看| 久久丝袜美腿综合| 国产三级精品三级在线专区| 久久综合久久久久88| 久久新电视剧免费观看| 久久久久高清精品| 国产日韩欧美精品综合| 欧美激情一区二区在线| 国产精品―色哟哟| 日韩一区在线看| 亚洲一区二区三区影院| 天天射综合影视| 天天做天天摸天天爽国产一区| 三级久久三级久久久| 六月婷婷色综合| 国产久卡久卡久卡久卡视频精品| 国产高清精品网站| 91小宝寻花一区二区三区| 91成人网在线| 欧美刺激午夜性久久久久久久 | 中文字幕亚洲区| 亚洲男帅同性gay1069| 一区二区视频免费在线观看| 亚洲丶国产丶欧美一区二区三区| 蜜桃精品在线观看| 国产一区二区精品在线观看| 成人av网在线| 欧美日韩精品福利| 久久久99久久精品欧美| 国产精品国产精品国产专区不片| 一区二区三区精品| 国产综合色视频| 色悠悠久久综合| 欧美一区二区三区视频在线观看 | 日韩一区二区三免费高清| 久久久国产精品麻豆| 亚洲精品视频在线看| 日本强好片久久久久久aaa| 成人网页在线观看| 欧美猛男gaygay网站| 久久嫩草精品久久久久| 夜夜操天天操亚洲| 国产一区二区导航在线播放| 91国在线观看| www激情久久| 亚洲国产日韩av| 成人一二三区视频| 欧美一级高清片| 亚洲欧美乱综合| 国产麻豆精品theporn| 欧美午夜精品一区二区蜜桃 | 欧美日韩精品一区二区三区 | 亚洲高清免费观看高清完整版在线观看| 蜜桃在线一区二区三区| 在线看日本不卡|