【正文】
said Ugl 鷎 。Now we39。s your best hope. Off you go! And quic k, before I knock a few more heads off, to put some sense into the others.39。 he shouted, pointing ahead. 39。re afraid of the Whiteskins, run! Run! There39。ve e all the way to get, throw it away! I39。ve told you before。 said Ugl 鷎 . 39。 a quarrel seemed on the point of brea king out again between the Northerners and the Isengarders. Some were pointing bac k away south, and some were pointing eastward. 39。 for above the roaring of the seas he heard the voice of Manw ?as a mighty wind,unfolding of the things that they had devisedd into a long tunnel of misery, with hope growing ever fainter behind. They ran, and they ran, striving to keep up the pace set by the Orcs, lic ked every now and again with a cruel thong cunningly handled. If they halted or stumbled, they were seized and dragged for some distance. The warmth of the orcdraught had gone. Pippin felt cold and sic k again. Suddenly he fell face downward on the turf. Hard hands with rending nails gripped and lifted him. He was c arried like a sac k once more, and darkness grew about him: whether the darkness of another night, or a blindness of his eyes, he could not tell. Dimly he became aware of voices clamouring: it seemed that many of the Orcs were demanding a halt. Ugl 鷎 was shouting. He felt himself flung to the ground, and he lay as he fell, till blac k dreams took him. But he did not long escape from pain。 and it was blessed, for the Deathless dwe lt there, and there naught faded nor withered, neither was there any stain upon flower or leaf in that land, nor any corruption or sic kness in anything that lived。 but the Sindar spoke of it in their later tongue as Amon Uilos. From their halls upon Taniquetil Manw?and Varda could look out a cross the Earth even into the furthest East. Behind the walls of the Pel 髍 i the Valar established their domain in that region which is called Valinor, and there were their houses, their gardens, and their towers. In that guarded land the Valar gathered great store of light and an the fairest things that were saved from the ruin。 除非另有科研合同和其他法律文書的制約,本論文的科研成果屬于成都信息工程學(xué)院。 ( 4)學(xué)校可允許學(xué)位論文被查閱或借閱。 ( 2)學(xué)校可以采用影印、縮印或其他復(fù)制方式保存學(xué)位論文。除非另有說明,本文的工作是原始性工作。在此向他表示我最衷心的感謝! 在論文完成過程中,本人 在程序設(shè)計、網(wǎng)絡(luò)編程調(diào)試方面, 還 得到了金虎 老師和 賀增杰等很多 同學(xué)的熱心幫助,本人向他們表示深深的謝意! 最后向在百忙之中評審本文的各位專家、老師表示衷心的感謝! 作者簡介 姓 名: 馮躍 性別: 男 出生年月: 19831213 民族: 漢 Email: 第 22 頁 共 22 頁 聲 明 本論文的工作是 2021 年 2 月至 2021 年 6 月在成都信息工程學(xué)院 網(wǎng)絡(luò)工程 系 完成的。 [7] IP助手函數(shù) [OL]. 20210514。 [5] 劉欣然 . 支持高精度告警的網(wǎng)絡(luò)入侵檢測系統(tǒng)的設(shè)計與實現(xiàn) [D]. 北京:北京 郵電 大學(xué)[碩士 論文 ], 2021。 [3] 曹衍龍,劉海英 . Visual C++網(wǎng)絡(luò)通信編程實用案例精選(第二版) [M]. 北京:人民郵電出版社, :425437。 參考文獻(xiàn) [1] 陳伯成,范閩,李英杰 . 利用網(wǎng)絡(luò)監(jiān)聽維護(hù)子網(wǎng)系統(tǒng)安全的一種方法 [J].計算機(jī)工程與應(yīng)用 .2021,(10):133135。 在 整個 設(shè)計 過程 中,重點放在了數(shù)據(jù)捕獲與流量實時監(jiān)控兩個功能上 , 進(jìn)而描述了 采用套接字開發(fā)流量監(jiān)控系統(tǒng)中的思路和關(guān)鍵事項 , 闡述了開發(fā)過程中碰到的一些技術(shù)問題 ,對功能需求 與 細(xì)節(jié)實現(xiàn)進(jìn)行了詳細(xì)分析與設(shè)計 。 網(wǎng)絡(luò)管理員可以根據(jù) 數(shù)據(jù)流量的變化規(guī)律 , 發(fā)現(xiàn)網(wǎng)絡(luò)故障與攻擊 行為, 及時 采取 措施, 減少損失 。 測試結(jié)果評價 本設(shè)計在 Win2021/NT 環(huán)境試運(yùn)行下,編碼后經(jīng)過多次測試并將發(fā)現(xiàn)的錯誤及時修改,系統(tǒng)運(yùn)行正常,基本達(dá)到設(shè)計目標(biāo),運(yùn)行結(jié)果比較良好。 (4) 對每個功能模塊進(jìn)行數(shù)據(jù)合法性檢查、數(shù)據(jù)一 致性檢查。 (2) 其次,選定一臺 PC 進(jìn)行測試 :數(shù)據(jù)包捕獲(含設(shè)定條件)、封包日志保存、流量峰值、數(shù)據(jù)統(tǒng)計。 操作系統(tǒng)及軟件運(yùn)行環(huán)境 (1) 操作系統(tǒng) Win2021/NT 等 ; (2) VC++。實現(xiàn)更為 完善的攻擊分析服務(wù)。break。break。 sprintf(sLandErrIP,注 意監(jiān)控 源 IP的數(shù)據(jù): %s,szSourceIP)。break。 sprintf(sLandErrIP,請注意監(jiān)控該 IP 的數(shù)據(jù): %s,szSourceIP)。 else if(pIpheadertotal_len65535) pd=2。函數(shù)調(diào)用結(jié)果通過列表可以直觀顯示出來, 網(wǎng)絡(luò)管理人員可以通過其中統(tǒng)計數(shù)量的變化監(jiān)視網(wǎng)絡(luò)性能 。 } } ( 2)界面設(shè)計(見圖 12) 數(shù)據(jù)統(tǒng)計模塊 ( 1) 可以利用微軟的 IP助手中 的 API 函數(shù)實現(xiàn) IP 的統(tǒng)計, 網(wǎng)絡(luò)管理員通過統(tǒng)計的數(shù)據(jù)可以在一定程度上發(fā)現(xiàn)網(wǎng)絡(luò)性能瓶頸。 return 0。} 第 17 頁 共 22 頁 } //下一個對象 objectPtr = NextObject(objectPtr)。 return(trafficdelta)。 lasttraffic = acttraffic。 CurrentInterface = interfaceNumber。 //判斷處理的接口是否是新的 if(CurrentInterface != interfaceNumber) { lasttraffic = acttraffic。 (pos,fullTraffic)。 POSITION pos = (b)。 //得到這個實例 的 PERF_COUNTER_BLOCK PERF_COUNTER_BLOCK *counterBlockPtr = GetCounterBlock(instancePtr)。 bobjectPtrNumInstances 。} //找到第一個實例 (instance) 第 16 頁 共 22 頁 PERF_INSTANCE_DEFINITION *instancePtr = FirstInstance(objectPtr)。} //數(shù)據(jù)類型不是我 們需要的 if(processIdOffset == ULONG_MAX) { delete [] data。 b++) { //判斷接收的數(shù)據(jù)類型是否是我們需要的 if((int)counterPtrCounterNameTitleIndex == CurrentTrafficType) processIdOffset = counterPtrCounterOffset。 //遍歷鏈表 for(int b=0 。 //判斷是否是網(wǎng)絡(luò)對象索引號是 510 if(objectPtrObjectNameTitleIndex == 510) { //偏移變量 DWORD processIdOffset = ULONG_MAX。 a(int)dataBlockPtrNumObjectTypes 。 下面詳細(xì)說明,注冊表數(shù)據(jù)性能塊訪問過程的實現(xiàn): //枚舉鏈表中第一個對象 PERF_OBJECT_TYPE *objectPtr = FirstObject(dataBlockPtr)。type, data, amp。 //開辟性能數(shù)據(jù)緩沖 圖 11 注冊表網(wǎng)絡(luò)性能數(shù)據(jù) 塊邏輯結(jié)構(gòu) 第 15 頁 共 22 頁 unsigned char *data = new unsigned char [DEFAULT_BUFFER_SIZE]。 參照圖 46可以很容易地確定性能數(shù)據(jù)塊的查詢過程,從數(shù)據(jù)塊的性能數(shù)據(jù)結(jié)構(gòu) PERF_DATA_BLOCK 開始,然后索 引到 PERF_OBJECT_TYPE 結(jié)構(gòu),而PERF_COUNTER_DEFINITION 結(jié) 構(gòu) 可 以 通 過 PERF_OBJECT_TYPE 的成員HeaderByteLength 找到位置偏移,每一個 PERF_OBJECT_TYPE 的 成 員DefinitionLength 都能確定一個對應(yīng)的 PERF_INSTANCE_DEFINITION 結(jié)構(gòu),PERF_INSTANCE_DEFINITION 結(jié)構(gòu)決定著 PERF_COUNTER_BLOCK 結(jié)構(gòu) [3]。 在 WindowsNT 下,當(dāng)調(diào)用 RegQueryValueEx 時,若 hKey 被設(shè)置為HKEY_PERFORMANCE_DATA 返回的數(shù)據(jù)并不是直接顯示被請求的數(shù)據(jù)對象。它的函數(shù)原型如下: LONG RegQueryValueEx(HKEY hKey , LPCTSTR lpValueName , LPDWORD lpReserved , LPDWORD lpType , LPBYTE lpData , LPDWORD lpcbData)。 //關(guān)閉套接字 CbinDataDlg 類主要完成對已捕獲數(shù)據(jù)的存儲和顯示方法; CpackInterDlg類通過建立 CbinDataDlg 類和 CsockHelper 類對象實現(xiàn)數(shù)據(jù)捕獲、解析、顯示、存儲等,同時它完成對捕獲條件設(shè)置控件、日志記錄控件的編寫,在這里就不做詳細(xì)介紹了。 //關(guān)閉句柄 m_hCapThread = NULL。 0xf) //獲取數(shù)據(jù)包長度 協(xié)議解析: switch(iProtocol) { case IPPROTO_TCP : ?? case IPPROTO_UDP : ?? case IPPROTO_ICMP : ?? default :?? } StopCapture 完成關(guān)閉線程和套接字操作: 第 13 頁 共 22 頁 if(m_hCapThread) {TerminateThre