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

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

?? structure.txt.svn-base

?? 網絡模擬器
?? SVN-BASE
?? 第 1 頁 / 共 2 頁
字號:
  ______________________________________________________________________



  Step 3: Create an interface for the source and destination nodes and
  attach them to those nodes. In this piece of code, observe the
  following two things:

  o  We are using duplex interfaces because we want two-way
     communication, like a network card

  o  The two nodes will be connected by a router. Therefore, by the
     rules of IP, they have to be on different IP networks. We assign
     two different network addresses.


     ___________________________________________________________________
         Interface src_iface=new DuplexInterface(new IPAddr(192,168,1,10));
         src.attach(src_iface);
         sim.attach(src_iface);

         Interface dest_iface=new DuplexInterface(new IPAddr(128,116,11,20));
         dest.attach(dest_iface);
         sim.attach(dest_iface);
     ___________________________________________________________________




  Step 4: Create interfaces for the router and attach them to the
  router. Note that the router will of course need two duplex interfaces
  because it is attached to two different pieces of wire. In addition,
  keep in mind that the router has to be on both IP networks (it is
  customary to give the router the address .1 on both networks).


  Caveat: Be careful not to assign the IP addresses of the router
  interfaces the right way round but then attach the physical links the
  wrong way round later.

  ______________________________________________________________________
      Interface route_iface192=new DuplexInterface(new IPAddr(192,168,1,1));
      Interface route_iface128=new DuplexInterface(new IPAddr(128,116,11,1));

      router.attach(route_iface192);
      router.attach(route_iface128);

      sim.attach(route_iface192);
      sim.attach(route_iface128);
  ______________________________________________________________________




  Step 5: Connect all the interfaces via links. We need two links, one
  from the source node to the router, and one from there to the
  destination node. Since we are using duplex interfaces, we have to use
  duplex links. We will create one 1Mbps link and one sample ISDN link:

  ______________________________________________________________________
      Link link_src_router=new DuplexLink(1000000,0.001);
      Link link_router_dest=new DuplexLink(64000,0.1);

      src_iface.attach(link_src_router,true);
      route_iface192.attach(link_src_router,true);
      sim.attach(link_src_router);

      route_iface128.attach(link_router_dest,true);
      dest_iface.attach(link_router_dest,true);
      sim.attach(link_router_dest);
  ______________________________________________________________________


  Notice the parameter true that is being passed as a second argument
  when the links are attached; it tells the interface to "inherit" the
  link's bandwidth.


  Step 6: Add the correct routing table entries. The physical structure
  of the network is completely set up. However, the source host wouldn't
  know how to reach the destination host yet because it has no routing
  table entries.  (You may argue that the routing is quite obvious in
  this example, however the simulator cannot guess that you will provide
  a simple network, so routing has to be set in every case.).


  We will make our life simple by adding default routes at the source
  and destination node that point to the router. At the router, however,
  we will add exact routing entries for the two subnets. Caveat: do not
  enter default routes into the routing table of a router if you can
  avoid it. If you have more than one router and someone sends a packet
  with an unroutable address, those two routers might play ping-pong for
  a while (until the packet times out) if you set default routes.





  ______________________________________________________________________
      src.addDefaultRoute(src_iface);
      dest.addDefaultRoute(dest_iface);

      router.addRoute(new IPAddr(192,168,1,0),new IPAddr(255,255,255,0),
                      route_iface192);
      router.addRoute(new IPAddr(128,116,11,0),new IPAddr(255,255,255,0),
                      route_iface128);
  ______________________________________________________________________


  In the above code, notice the following things: We did indeed simply
  add a default route for the two hosts. At the router, what we did was
  effectively create two class C networks by setting the netmask to
  255.255.255.0.

  Step 7: No such step. We are finished!


  7.  The whole example code

  Here is the whole code of this example without interruptions:












































  ______________________________________________________________________
      Simulator sim=Simulator.getInstance();

      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);


      Interface src_iface=new DuplexInterface(new IPAddr(192,168,1,10));
      src.attach(src_iface);
      sim.attach(src_iface);

      Interface dest_iface=new DuplexInterface(new IPAddr(128,116,11,20));
      dest.attach(dest_iface);
      sim.attach(dest_iface);


      Interface route_iface192=new DuplexInterface(new IPAddr(192,168,1,1));
      Interface route_iface128=new DuplexInterface(new IPAddr(128,116,11,1));

      router.attach(route_iface192);
      router.attach(route_iface128);

      sim.attach(route_iface192);
      sim.attach(route_iface128);


      Link link_src_router=new DuplexLink(1000000,0.001);
      Link link_router_dest=new DuplexLink(64000,0.1);

      src_iface.attach(link_src_router,true);
      route_iface192.attach(link_src_router,true);
      sim.attach(link_src_router);

      route_iface128.attach(link_router_dest,true);
      dest_iface.attach(link_router_dest,true);
      sim.attach(link_router_dest);


      src.addDefaultRoute(src_iface);
      dest.addDefaultRoute(dest_iface);

      router.addRoute(new IPAddr(192,168,1,0),new IPAddr(255,255,255,0),
                      route_iface192);
      router.addRoute(new IPAddr(128,116,11,0),new IPAddr(255,255,255,0),
                      route_iface128);
  ______________________________________________________________________




  8.  Additional Comments


  As mentioned before already, you should not really have to do all this
  setup work, particularly if you want to simulate a rather large
  network (Internet, anyone?). Here are some suggestions on how to make
  your life easier:

  o  ALWAYS attach all your elements to the Simulator. Your simulation
     might work without doing it but you will not be able to trace
     anything.

  o  Use loops if you have many nodes.

  o  Write a class that will produce "shrink-wrapped" Nodes. A bit like
     a mass computer retailer: Complete with an interface and routing
     table. You could then produce a node with one line of code.

  o  Abstract this idea further to produce whole networks shrink-
     wrapped.

  o  Alternatively, forget about all this. Download one of the many good
     topology generators available on the web and either write a script
     or modify its code so it directly generates JNS code.






















































?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
欧美日韩国产区一| 欧美日韩免费不卡视频一区二区三区| 五月天国产精品| 亚洲成a人片综合在线| 亚洲综合久久久久| 亚洲午夜激情网页| 天天av天天翘天天综合网| 日韩av一级电影| 人人狠狠综合久久亚洲| 久久99久久久欧美国产| 精品一区二区三区影院在线午夜 | 91蝌蚪porny| 91在线观看美女| 欧美午夜片在线观看| 在线综合视频播放| 精品欧美一区二区在线观看| 久久午夜羞羞影院免费观看| 国产精品视频一二三| 日韩一区有码在线| 丝袜a∨在线一区二区三区不卡| 日韩精品乱码免费| 国产麻豆精品久久一二三| 丰满放荡岳乱妇91ww| 色av一区二区| 日韩一区二区三区四区五区六区| 国产亚洲欧美激情| 亚洲综合色噜噜狠狠| 日韩精品一二三区| 高清在线不卡av| 欧美高清性hdvideosex| 国产亚洲精品中文字幕| 亚洲v中文字幕| 成人听书哪个软件好| 欧美日韩免费在线视频| 久久久久久久网| 国产东北露脸精品视频| 在线免费观看日本一区| 精品国精品国产尤物美女| 日韩理论在线观看| 麻豆精品视频在线观看免费| 一本色道**综合亚洲精品蜜桃冫| 7777女厕盗摄久久久| 亚洲国产高清在线观看视频| 亚洲成人免费视| 91在线国产观看| 久久亚洲捆绑美女| 亚洲成av人片一区二区三区| 99久久精品国产网站| 欧美xxxxx裸体时装秀| 亚洲成av人影院| 91视频国产观看| 国产欧美日韩激情| 精品无人码麻豆乱码1区2区| 欧美精品久久久久久久久老牛影院| 国产精品久久三区| 国产精品自拍av| 精品精品欲导航| 日本三级韩国三级欧美三级| 色88888久久久久久影院按摩| 国产人成亚洲第一网站在线播放| 蜜桃视频一区二区三区在线观看| 欧美色精品天天在线观看视频| 成人欧美一区二区三区1314| 韩国精品久久久| 精品少妇一区二区三区在线播放| 亚洲一二三四久久| 99久久综合色| 一色桃子久久精品亚洲| 风间由美一区二区av101| 精品国产sm最大网站免费看| 蜜臀av国产精品久久久久| 欧美精品日韩综合在线| 亚洲成av人片一区二区梦乃| 欧美日韩高清一区二区三区| 亚洲国产欧美日韩另类综合 | 亚洲伊人伊色伊影伊综合网| 91在线国产观看| 樱花草国产18久久久久| 91国产精品成人| 亚洲综合免费观看高清在线观看| 91久久精品国产91性色tv| 一区二区免费视频| 欧美精品 国产精品| 蜜桃av一区二区在线观看| 精品av久久707| 从欧美一区二区三区| 中文字幕日韩一区二区| 91美女在线观看| 视频在线在亚洲| 国产午夜亚洲精品午夜鲁丝片| 国产成人免费在线观看不卡| 中文字幕五月欧美| 欧美日韩免费一区二区三区 | 国产欧美中文在线| 97se亚洲国产综合自在线| 亚洲地区一二三色| 精品国产一区二区三区久久影院 | av不卡在线播放| 亚洲国产精品嫩草影院| 欧美疯狂性受xxxxx喷水图片| 玖玖九九国产精品| 国产精品国产成人国产三级| 欧美日韩在线亚洲一区蜜芽| 精品伊人久久久久7777人| 国产精品网站一区| 欧美日韩一区二区在线视频| 精品写真视频在线观看 | 日本不卡不码高清免费观看| 国产午夜亚洲精品午夜鲁丝片 | 91精品福利在线一区二区三区| 美女高潮久久久| 亚洲欧美激情插| 精品理论电影在线观看| 99视频一区二区| 六月丁香婷婷色狠狠久久| 亚洲乱码国产乱码精品精小说 | 亚洲一区二区黄色| 国产亚洲欧美激情| 欧美一区二区在线观看| 94-欧美-setu| 国产成+人+日韩+欧美+亚洲| 亚洲成人免费视| 亚洲视频一二三区| 26uuu久久天堂性欧美| 欧美在线小视频| 国产成人久久精品77777最新版本 国产成人鲁色资源国产91色综 | 日韩vs国产vs欧美| 亚洲人成网站色在线观看| 久久先锋影音av鲁色资源网| 91精品国产一区二区人妖| 日本伦理一区二区| 99久久免费国产| 国产经典欧美精品| 精品一区二区三区久久| 视频一区免费在线观看| 亚洲欧美一区二区三区久本道91 | 高清shemale亚洲人妖| 91蜜桃传媒精品久久久一区二区| 激情综合网最新| 免费在线一区观看| 日韩不卡一区二区| 亚洲sss视频在线视频| 一区二区三区国产精品| 亚洲欧美综合另类在线卡通| 中文字幕av资源一区| 国产亚洲精品资源在线26u| 久久久亚洲精品一区二区三区| 日韩美一区二区三区| 欧美一个色资源| 精品国产青草久久久久福利| 欧美成人性战久久| 欧美不卡一二三| 久久久久亚洲蜜桃| 国产欧美一区二区三区沐欲| 国产网站一区二区| 国产精品久久久久久久午夜片| 国产婷婷色一区二区三区四区 | 91在线观看一区二区| 91在线高清观看| 日本韩国一区二区三区| 欧美日韩精品三区| 91精品国产入口| 2020国产精品自拍| 国产免费久久精品| 亚洲欧美一区二区三区久本道91| 亚洲精品免费在线| 亚洲国产美女搞黄色| 免费观看30秒视频久久| 国产乱码精品一区二区三区av| 丁香五精品蜜臀久久久久99网站 | 美腿丝袜在线亚洲一区| 国内精品写真在线观看| 国产成人精品一区二区三区网站观看| 国产成人日日夜夜| 色94色欧美sute亚洲13| 91精品在线观看入口| 久久久久综合网| 亚洲一区二三区| 国内精品伊人久久久久av一坑| 成人激情校园春色| 欧美日韩精品欧美日韩精品一综合| 日韩三级免费观看| 中文字幕一区二区三区不卡在线| 亚洲午夜精品久久久久久久久| 美女免费视频一区| 一本色道a无线码一区v| 欧美不卡一二三| 亚洲久草在线视频| 精品影视av免费| 欧美午夜片在线看| 中文在线资源观看网站视频免费不卡| 亚洲综合一二三区| 国产黄色精品视频| 91精品国产色综合久久不卡电影| 国产片一区二区| 久久成人久久鬼色| 欧美日韩国产高清一区| 国产精品久久久一本精品| 日韩精品免费视频人成| 色8久久人人97超碰香蕉987|