91av视频/亚洲h视频/操亚洲美女/外国一级黄色毛片 - 国产三级三级三级三级

資源簡介

壓縮包內包含完整程序、使用說明、實驗報告 1.關與距離 本程序使用8作為路由投遞的最大距離,通過吧距離設為8作為路由不可達的標志。 2.關于路由回路 本程序同時采用了水平分割,毒性轉換,和抑制時間來避免路由回路的產生。即不再想X發送從X處學得的路由信息;把到故障路由的距離設置為最大值8,表示不可達;不接受除故障路由外的其它路由發來的故障路由恢復的信息。 3.程序操作指令說明: 1.N 動態輸出路由器的鄰居路由 2.T 動態打印路由器的路由表 3.0~9 轉發分組。注:本程序設置TTL=2 4.R X(注:此處R與X之間必須加空格) 路由器拒絕包含X的路由更新信息 5.r X(同上) 路由器恢復接收包含X的路由更新信息 6.“路由中止”和“路由恢復”按鈕 用來使路由器停止或恢復發送路由表

資源截圖

代碼片段和文件信息

using?System;
using?System.Collections.Generic;
using?System.Collections;
using?System.ComponentModel;
using?System.Data;
using?System.Drawing;
using?System.Linq;
using?System.Text;
using?System.Windows.Forms;
using?System.Net;
using?System.Net.Sockets;
using?System.Threading;
using?System.IO;

namespace?DV
{
????public?partial?class?Form1?:?Form
????{
????????Form2?form2?=?new?Form2();
????????Form3?form3?=?new?Form3();
????????Form4?form4?=?new?Form4();
????????Form5?form5?=?new?Form5();
???????///?
???????///?屬性定義部分
???????///?

????????public?int?TTL?=?2;?//定義分組存活時間
????????public?string?Id;??//本路由ID
????????public?string?Myport;?//本地端口
????????public?ArrayList?Refu?=?new?ArrayList();//保存拒收路由的ID
????????public?struct?Naddr???//鄰居表結構
????????{
????????????public?string?id;
????????????public?string?port;
????????}
????????public?struct?Ntime??//計時結構體
????????{
????????????public?string?id;
???????????//?public?string?t;
????????????public?DateTime?datetime;
????????}
????????public?struct?routeList?????//路由表結構
????????{
????????????public?string?dest;?//目的地
????????????public?string?route;//路由
????????????public?string?dis;?//距離
????????};
????????List?routelist?=?new?List();???????//用routelist來存儲本機路由表信息
????????List?naddr?=?new?List();????//用naddr來存儲鄰居表信息
????????List?ntime?=?new?List();
????????UdpClient?udpSend;?//聲明UDPClient
????????UdpClient?udpRec;
????????System.Timers.Timer?t?=?new?System.Timers.Timer(2000);//實例化Timer類,設置間隔時間為2000毫秒;
????????System.Timers.Timer?check?=?new?System.Timers.Timer(2000);??//實例化Timer類,設置間隔時間為2000毫秒;??
????????///?
????????///?主窗口
????????///?

????????List?RouterList?=?new?List();???????//用LIST來存儲路由信息類
????????public?Form1()
????????{
?????????????Control.CheckForIllegalCrossThreadCalls?=?false;
????????????InitializeComponent();
????????????//接收輸入的數據
????????????StreamReader?strmReader?=?new?StreamReader(“data.txt“);
????????????string?s;
???????????//?listBox1.Items.Add(“RouterList:“);
????????????//************對輸入數據進行處理
????????????while?(strmReader.Peek()?!=?-1)
????????????{
????????????????s?=?strmReader.ReadLine();
??????????????//??listBox1.Items.Add(s);??//輸出初始化路由表
????????????????ArrayList?a?=?new?ArrayList();
????????????????Router?router?=?new?Router(null?null?null);
????????????????router.Id?=?s.Substring(7?1);
????????????????router.Myport?=?s.Substring(10?4);
????????????????router.Nport?=?s.Substring(16);
????????????????RouterList.Add(router);
????????????}
??????
????????????for?(int?i?=?0;?i?????????????{
????????????????if?(i?==?0)
????????????????{?Id?=?RouterList[i].Id;?}
????????????????if?(i?==?1)
????????????????{???form2.Id?=?RouterList[i].Id;?}
????????????????if?(i?==?2)
????????????????{
????????????????????form3.Id?=?RouterList[i].Id;

?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????目錄???????????0??2011-12-26?19:56??dv\
?????目錄???????????0??2011-12-05?20:20??dv\DV\
?????目錄???????????0??2011-12-05?20:20??dv\DV\DV\
?????文件?????????848??2011-12-02?23:20??dv\DV\DV.sln
?????文件???????25600??2011-12-05?18:44??dv\DV\DV.suo
?????目錄???????????0??2011-12-05?20:20??dv\DV\DV\bin\
?????目錄???????????0??2011-12-05?20:20??dv\DV\DV\bin\Debug\
?????文件?????????112??2011-12-03?22:35??dv\DV\DV\bin\Debug\data?-?副本.txt
?????文件??????????84??2011-12-04?21:28??dv\DV\DV\bin\Debug\data-1.txt
?????文件?????????156??2011-12-02?23:20??dv\DV\DV\bin\Debug\data.txt
?????文件???????49664??2011-12-05?19:41??dv\DV\DV\bin\Debug\DV.exe
?????文件??????110080??2011-12-05?19:41??dv\DV\DV\bin\Debug\DV.pdb
?????文件???????11600??2011-12-05?19:44??dv\DV\DV\bin\Debug\DV.vshost.exe
?????目錄???????????0??2011-12-05?20:20??dv\DV\DV\bin\Release\
?????文件?????????156??2011-12-02?23:20??dv\DV\DV\bin\Release\data.txt
?????文件???????46080??2011-12-05?20:03??dv\DV\DV\bin\Release\DV.exe
?????文件???????97792??2011-12-05?20:03??dv\DV\DV\bin\Release\DV.pdb
?????文件???????11600??2011-12-05?20:03??dv\DV\DV\bin\Release\DV.vshost.exe
?????文件?????????490??2010-03-17?22:39??dv\DV\DV\bin\Release\DV.vshost.exe.manifest
?????文件????????4916??2011-12-03?23:02??dv\DV\DV\DV.csproj
?????文件???????22586??2011-12-05?19:40??dv\DV\DV\Form1.cs
?????文件????????5098??2011-12-05?15:37??dv\DV\DV\Form1.Designer.cs
?????文件????????5817??2011-12-05?15:37??dv\DV\DV\Form1.resx
?????文件???????21575??2011-12-05?19:40??dv\DV\DV\Form2.cs
?????文件????????5092??2011-12-05?15:37??dv\DV\DV\Form2.Designer.cs
?????文件????????5817??2011-12-05?15:37??dv\DV\DV\Form2.resx
?????文件???????21517??2011-12-05?19:40??dv\DV\DV\Form3.cs
?????文件????????5093??2011-12-05?15:39??dv\DV\DV\Form3.Designer.cs
?????文件????????5817??2011-12-05?15:39??dv\DV\DV\Form3.resx
?????文件???????21571??2011-12-05?19:40??dv\DV\DV\Form4.cs
?????文件????????5092??2011-12-05?15:39??dv\DV\DV\Form4.Designer.cs
............此處省略53個文件信息

評論

共有 條評論