国产探花免费观看_亚洲丰满少妇自慰呻吟_97日韩有码在线_资源在线日韩欧美_一区二区精品毛片,辰东完美世界有声小说,欢乐颂第一季,yy玄幻小说排行榜完本

首頁 > 學院 > 網絡通信 > 正文

使用路由器作流量檢測的幾個手段

2019-11-05 00:31:35
字體:
來源:轉載
供稿:網友

  一、ip accounting
  1、配置方法
  
  router(config)#int s 0/0
  
  router(config-if)#ip accounting output-packets
  
  router#sh ip accounting output-packets
  
  Source Destination Packets Bytes
  
  192.1.1.110 192.1.1.97 5 500
  
  172.17.246. 128 192.1.1.110 8 704
  
  Accounting data age is 2d23h
  
  或者
  
  router(config)#int s 0/0
  
  router(config-if)#ip accounting access-violations
  
  router#sh ip accounting [checkpoint] access-violations
  
  Source Destination Packets Bytes ACL
  
  192.1.1.110 224.0.0.5 46 3128 19
  
  Accounting data age is 7
  
  2、說明
  
  ● 基于地址對的字節數量及數據包數量統計
  
  ● 通常只支持outbound的數據包,及被ACL拒絕的數據包(支持IN 和 OUT方向的ACL)
  
  ● 只統計穿越路由器的流量,源或目的是該路由器的數據包不做統計
  
  ● 支持所有的switching path,除了Autonomous Switching
  
  ● 可以通過SNMP來訪問統計值,MIB是OLD-CISCO-IP-MIB, lipAccountingTable
  
  ● ip accounting還支持其他的監測方式,如基于tos,mac-address等
  
  二、netflow
  1、配置方法
  
  router (config-if)#ip route-cache flow
  
  router (config)#ip flow-eXPort destination 172.17.246.225 9996
  
  router (config)#ip flow-export version 5
  
  Optional configuration
  
  router (config)#ip flow-export source loopback 0
  
  router (config)#ip flow-cache entries <1024-524288>
  
  router (config)#ip flow-cache timeout
  
  sh ip cache flow
  
  IP packet size distribution (132429191 total packets):
  
  1-32 64 96 128 160 192 224 256 288 320 352 384 416 448 480
  
  .000 .191 .024 .009 .010 .006 .005 .008 .003 .005 .003 .003 .002 .001 .001
  
  
  512 544 576 1024 1536 2048 2560 3072 3584 4096 4608
  
  .001 .002 .107 .032 .578 .000 .000 .000 .000 .000 .000
  
  IP Flow Switching Cache, 278544 bytes
  
  33 active, 4063 inactive, 7975259 added
  
  104834714 ager polls, 0 flow alloc failures
  
  Active flows timeout in 30 minutes
  
  Inactive flows timeout in 15 seconds
  
  last clearing of statistics never
  
  PRotocol Total Flows Packets Bytes Packets Active(Sec) Idle(Sec)
  
  -------- Flows /Sec /Flow /Pkt /Sec /Flow /Flow
  
  TCP-Telnet 25378 0.0 12 652 0.0 22.9 15.2
  
  TCP-FTP 432435 0.1 4 59 0.4 1.2 2.7
  
  TCP-FTPD 28670 0.0 212 1397 1.4 8.2 1.6
  
  TCP-WWW 4682530 1.0 15 927 16.4 2.4 4.6
  
  2、說明
  
  ● 統計基于流(包括地址對、端口號、協議類型等)的數據量
  
  ● 只支持inbound的流量
  
  ● 只支持單播
  
  ● 只能在主端口配置
  
  ● 需要和cef或fast switching一起使用
  
  ● 對路由器性能有影響
  
  10,000 active flows: < 4% of additional CPU utilization
  
  45,000 active flows: <12% of additional CPU utilization
  
  65,000 active flows: <16% of additional CPU utilization
  
  三、NBAR
  1、配置方法
  
  router(config)# interface FastEthernet 0/1
  
  router(config-if)# ip nbar protocol discovery
  
  router# show ip nbar protocol -discovery interface FastEthernet 6/0
  
  FastEthernet6/0
  
  Input Output
  
  Protocol Packet Count Packet Count
  
  Byte Count Byte Count
  
  5 minute bit rate (bps) 5 minute bit rate (bps)
  ------------------------ ------------------------ ------------------------
  http 316773 0
  
  26340105 0
  
  3000 0
  
  pop3 4437 7367
  
  2301891 339213
  
  3000 0
  
  snmp 279538 14644
  
  319106191 673624
  
  0 0
  
  …
  
  Total 17203819 151684936
  
  19161397327 50967034611
  
  4179000 6620000
  
  2、說明
  
  ● NBAR識別從4層到7層的協議信息
  
  ●可以基于端口統計input 和output 的bit rate (bps), packet counts, byte counts
  
  ● 只能在cef或dcef的基礎上運行
  
  ● 不象netflow,沒有流的概念。主要是統計目前網絡中有那一些應用
  
  四、access-list log
  1、配置方法
  
  router(config)# access-list 118 permit ip any any log
  
  router(config)# interface FastEthernet 0/1
  
  router(config-if)# ip access-group 118 out
  
  router# show log
  
  router>sh log
  
  Syslog logging: enabled (0 messages dropped, 0 messages rate-limited, 0 flushes,
  
  0 overruns)
  
  Console logging: level debugging, 79 messages logged
  
  Monitor logging: level debugging, 0 messages logged
  
  Buffer logging: level debugging, 79 messages logged
  
  Logging Exception size (4096 bytes)
  
  Trap logging: level informational, 83 message lines logged
  
  Log Buffer (4096 bytes):
  
  *May 25 05:27:50: %SEC-6-IPACCESSLOGP: list 118 permitted tcp 10.1.64.71(0) -> 10.0.29.3(0), 1 packet
  
  *May 25 05:28:59: %SEC-6-IPACCESSLOGP: list 118 permitted tcp 10.1.64.71(0) -> 10.0.28.128(0), 1 packet
  
  *May 25 05:29:19: %SEC-6-IPACCESSLOGP: list 118 permitted tcp 10.1.64.71(0) -> 10.0.29.3(0), 56 packets
  
  2、說明
  
  ● 可以使用于任何端口的input 或者output
  
  ● 可以看到目前端口上跑的應用
  
  ● 沒有統計信息,只能看到有那一些地址,看不到應用統計


發表評論 共有條評論
用戶名: 密碼:
驗證碼: 匿名發表
主站蜘蛛池模板: 罗源县| 宜君县| 潞城市| 平顺县| 政和县| 连江县| 淄博市| 溆浦县| 遂川县| 杭锦旗| 潜江市| 无极县| 宁国市| 广安市| 商南县| 丽江市| 故城县| 沽源县| 霍林郭勒市| 海伦市| 绥滨县| 尚志市| 冀州市| 久治县| 元朗区| 高要市| 桦川县| 汉中市| 重庆市| 修水县| 色达县| 乌拉特中旗| 酒泉市| 邮箱| 禹城市| 大同县| 宁河县| 新昌县| 鹿泉市| 博罗县| 历史|