資源描述:
《基于字頻的模式匹配算法研究》由會員上傳分享,免費在線閱讀,更多相關內(nèi)容在工程資料-天天文庫。
1、基于字頻的模式匹配算法研究摘要隨著Internet環(huán)境的不斷復雜以及數(shù)量的不斷增加,要求防火墻、VPN、PKI、入侵檢測等技術更加的快速、高效。模式匹配能有效支持網(wǎng)絡內(nèi)容安全并提高網(wǎng)絡設備的性能,是高速網(wǎng)絡的關鍵技術之一。本文介紹了模式匹配的研究背景、發(fā)展和研究現(xiàn)狀,探討了防火墻、入侵檢測等網(wǎng)絡內(nèi)容安全的關鍵技術,分析研究了經(jīng)典模式匹配算法。針對已有模式匹配算法存在的不足,提出了一種基于字頻的模式匹配算法一一BCFM算法。該算法首先建立一個了符使用頻率表,根據(jù)使用頻率表找出模式串中使用頻率最低和次低的字符,并記錄它們的相對位置
2、。當模式匹配時,首先查找出文本中使用頻率最低的字符,然后直接將其相應位置上的字符與使用頻率次低的字符進行匹配,迅速完成匹配過程。BCFM算法對字符定位較準確,從而提高了模式匹配的效率。本文還對防火墻和入侵檢測技術進行了分析和研究。最后,通過實驗對BCFM和BM算法的性能進行了測試和比較。實驗結(jié)果表明,BCFM算法具有較好的時間效率,并且在模式串較短、文本較長時作用發(fā)揮的更加明顯。關鍵詞:模式匹配,內(nèi)容安全,防火墻,入侵檢測palternmatchingalshorlageofpatrnmaapatternmatchingalg
3、orithmbasedonwordquency,chisnamedBCFM,isproposedhere.ThisalgorithmestablishesachareqseteewcrhoydecnrnofeCtuesfeHAbasewoHAehtsdn?1fnehdnaretcarahcycneahcycneuebatscarrr?1ehtsdrocerdnanMatchingAlgoritResearchoAPaBasedFPWThemoreraPdandefficentoftechno1ogysuchasfirewa11
4、9VPN,PKIand?1ntrusiondetectionisrequiredbyth、eincreasingcomp1exity0fInternetenvironinentandtheincreasingnumberofInternet.Patternmatchingwhichisab1etoeffect1ve1ysupPorIncIw0rkconicnIsccuriIyandimpr0VeIhePcrf0rmancc0fncIworkequ?pmenLs?s0neofLhemoslimporIanthigh—speedn
5、eIw0rk?Inthisthes?1s,theresearchback:ground,deveoPmentandc:urrentresearchstatusofpatternmatchingarewrittcnfirst,fo1Iowedbytherc)atedtechno)ogyofconlentsecurityaswellasfirewallandintrusiondetection?Afterthat,typicalgoriLhmsaredescribedandanalyzed.Toimprovethee1ativep
6、osition.Whenthepatternmatches,itwi11befindhQVa^ct空』nQWe^t§x^tfirr£Hl9ft帛£nXhecharacterontherelativepositionwiIhIhesecondlowestfrequencycharactertomatchdirectly.Thematchingproccssiscomp1etedquickly.BCFMa1gorithmismoreaccurateforcharacteo?1PeSi^ahor1Plfms}itincreasest
7、heefficiencyofpatternmatching.Firewa11andintrusiondetectionisalsoinvestigatedhere.FinalexperimeandBCFM.Theresu1tntime.ItimorccffixtiS1ongnt■1scomp1ets?1ndicatethasccncywhcnper■edtotestatBCFMisproattcrniSsndcomparevidedwithphortcrandtheperforeferabletcrmanceofBMeffic
8、iencyopatching;contentse插圖清單圖2.1入侵檢測的基本結(jié)構10圖2.2通用入侵檢測系統(tǒng)模型11圖2.3入侵檢測系統(tǒng)的分類12圖3.1壞字符不在模式串屮模式串的移動情況21圖3.2壞字符在模式串屮左邊時模式串的移動情況一22圖3.3壞字符在模式串屮右邊時