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MF --PPQCBDL*' 5$1%FGBVMU*' 6%1%FGBVMU*' 'MPX *EFOUJpFS *11BDLFU %FGSBHNFOUFS 'MPX$MBTTJpFS -ϓϩτίϧࣝผ ϑϩʔந*'τϥϑΟοΫΛग़ྗ -
'MPX"CTUSBDUPSͷ ઃఆϑΝΠϧʢ̍ʣ develop ana- by this plane. developed by
s analyzers in rator and ab- f the capturer the analyzer the following ow abstractor le of an ana- stractor illus- 1 http: 2 up = ˆ[-a-zA-Z]+ .+ HTTP/1\.(0\r?\n|1\r?\n([-a- zA-Z]+: .+\r?\n)+) 3 down = ˆHTTP/1\.[01] [1-9][0-9]{2} .+\r?\n 4 proto = TCP # TCP or UDP 5 if = http # path to UNIX domain socket 6 nice = 100 # priority 7 balance = 4 # balaced by 4 IFs 8 9 torrent_tracker: # BitTorrent Tracker 10 up = ˆGET .*(announce|scrape).*\?.*info_hash =.+&.+ HTTP/1\.(0\r?\n|1\r?\n([-a-zA-Z]+: .+\r?\n)+) 11 down = ˆHTTP/1\.[01] [1-9][0-9]{2} .+\r?\n 12 proto = TCP 13 if = torrent_tracker 14 nice = 90 # priority 15 16 dns_udp: 17 proto = UDP 18 if = dns 19 port = 53 20 nice = 200 -
'MPX"CTUSBDUPSͷ ઃఆϑΝΠϧʢ̎ʣ develop ana- by this plane. developed by
s analyzers in rator and ab- f the capturer the analyzer the following ow abstractor le of an ana- stractor illus- 1 http: 2 up = ˆ[-a-zA-Z]+ .+ HTTP/1\.(0\r?\n|1\r?\n([-a- zA-Z]+: .+\r?\n)+) 3 down = ˆHTTP/1\.[01] [1-9][0-9]{2} .+\r?\n 4 proto = TCP # TCP or UDP 5 if = http # path to UNIX domain socket 6 nice = 100 # priority 7 balance = 4 # balaced by 4 IFs 8 9 torrent_tracker: # BitTorrent Tracker 10 up = ˆGET .*(announce|scrape).*\?.*info_hash =.+&.+ HTTP/1\.(0\r?\n|1\r?\n([-a-zA-Z]+: .+\r?\n)+) 11 down = ˆHTTP/1\.[01] [1-9][0-9]{2} .+\r?\n 12 proto = TCP 13 if = torrent_tracker 14 nice = 90 # priority 15 16 dns_udp: 17 proto = UDP 18 if = dns 19 port = 53 20 nice = 200 ਖ਼نදݱʹΑΔϓϩτίϧผ -
'MPX"CTUSBDUPSͷ ઃఆϑΝΠϧʢ̏ʣ develop ana- by this plane. developed by
s analyzers in rator and ab- f the capturer the analyzer the following ow abstractor le of an ana- stractor illus- 1 http: 2 up = ˆ[-a-zA-Z]+ .+ HTTP/1\.(0\r?\n|1\r?\n([-a- zA-Z]+: .+\r?\n)+) 3 down = ˆHTTP/1\.[01] [1-9][0-9]{2} .+\r?\n 4 proto = TCP # TCP or UDP 5 if = http # path to UNIX domain socket 6 nice = 100 # priority 7 balance = 4 # balaced by 4 IFs 8 9 torrent_tracker: # BitTorrent Tracker 10 up = ˆGET .*(announce|scrape).*\?.*info_hash =.+&.+ HTTP/1\.(0\r?\n|1\r?\n([-a-zA-Z]+: .+\r?\n)+) 11 down = ˆHTTP/1\.[01] [1-9][0-9]{2} .+\r?\n 12 proto = TCP 13 if = torrent_tracker 14 nice = 90 # priority 15 16 dns_udp: 17 proto = UDP 18 if = dns 19 port = 53 20 nice = 200 -ϓϩτίϧࢦఆ -
'MPX"CTUSBDUPSͷ ઃఆϑΝΠϧʢ̐ʣ develop ana- by this plane. developed by
s analyzers in rator and ab- f the capturer the analyzer the following ow abstractor le of an ana- stractor illus- 1 http: 2 up = ˆ[-a-zA-Z]+ .+ HTTP/1\.(0\r?\n|1\r?\n([-a- zA-Z]+: .+\r?\n)+) 3 down = ˆHTTP/1\.[01] [1-9][0-9]{2} .+\r?\n 4 proto = TCP # TCP or UDP 5 if = http # path to UNIX domain socket 6 nice = 100 # priority 7 balance = 4 # balaced by 4 IFs 8 9 torrent_tracker: # BitTorrent Tracker 10 up = ˆGET .*(announce|scrape).*\?.*info_hash =.+&.+ HTTP/1\.(0\r?\n|1\r?\n([-a-zA-Z]+: .+\r?\n)+) 11 down = ˆHTTP/1\.[01] [1-9][0-9]{2} .+\r?\n 12 proto = TCP 13 if = torrent_tracker 14 nice = 90 # priority 15 16 dns_udp: 17 proto = UDP 18 if = dns 19 port = 53 20 nice = 200 ग़ྗΠϯλʔϑΣʔε໊ࢦఆ -
'MPX"CTUSBDUPSͷ ઃఆϑΝΠϧʢ̑ʣ develop ana- by this plane. developed by
s analyzers in rator and ab- f the capturer the analyzer the following ow abstractor le of an ana- stractor illus- 1 http: 2 up = ˆ[-a-zA-Z]+ .+ HTTP/1\.(0\r?\n|1\r?\n([-a- zA-Z]+: .+\r?\n)+) 3 down = ˆHTTP/1\.[01] [1-9][0-9]{2} .+\r?\n 4 proto = TCP # TCP or UDP 5 if = http # path to UNIX domain socket 6 nice = 100 # priority 7 balance = 4 # balaced by 4 IFs 8 9 torrent_tracker: # BitTorrent Tracker 10 up = ˆGET .*(announce|scrape).*\?.*info_hash =.+&.+ HTTP/1\.(0\r?\n|1\r?\n([-a-zA-Z]+: .+\r?\n)+) 11 down = ˆHTTP/1\.[01] [1-9][0-9]{2} .+\r?\n 12 proto = TCP 13 if = torrent_tracker 14 nice = 90 # priority 15 16 dns_udp: 17 proto = UDP 18 if = dns 19 port = 53 20 nice = 200 ϙʔτ൪߸ࢦఆ -
'MPX"CTUSBDUPSͷ ઃఆϑΝΠϧʢ̒ʣ develop ana- by this plane. developed by
s analyzers in rator and ab- f the capturer the analyzer the following ow abstractor le of an ana- stractor illus- 1 http: 2 up = ˆ[-a-zA-Z]+ .+ HTTP/1\.(0\r?\n|1\r?\n([-a- zA-Z]+: .+\r?\n)+) 3 down = ˆHTTP/1\.[01] [1-9][0-9]{2} .+\r?\n 4 proto = TCP # TCP or UDP 5 if = http # path to UNIX domain socket 6 nice = 100 # priority 7 balance = 4 # balaced by 4 IFs 8 9 torrent_tracker: # BitTorrent Tracker 10 up = ˆGET .*(announce|scrape).*\?.*info_hash =.+&.+ HTTP/1\.(0\r?\n|1\r?\n([-a-zA-Z]+: .+\r?\n)+) 11 down = ˆHTTP/1\.[01] [1-9][0-9]{2} .+\r?\n 12 proto = TCP 13 if = torrent_tracker 14 nice = 90 # priority 15 16 dns_udp: 17 proto = UDP 18 if = dns 19 port = 53 20 nice = 200 ϧʔϧͷ༏ઌॱҐࢦఆ -
'MPX"CTUSBDUPSͷ ઃఆϑΝΠϧʢ̓ʣ develop ana- by this plane. developed by
s analyzers in rator and ab- f the capturer the analyzer the following ow abstractor le of an ana- stractor illus- 1 http: 2 up = ˆ[-a-zA-Z]+ .+ HTTP/1\.(0\r?\n|1\r?\n([-a- zA-Z]+: .+\r?\n)+) 3 down = ˆHTTP/1\.[01] [1-9][0-9]{2} .+\r?\n 4 proto = TCP # TCP or UDP 5 if = http # path to UNIX domain socket 6 nice = 100 # priority 7 balance = 4 # balaced by 4 IFs 8 9 torrent_tracker: # BitTorrent Tracker 10 up = ˆGET .*(announce|scrape).*\?.*info_hash =.+&.+ HTTP/1\.(0\r?\n|1\r?\n([-a-zA-Z]+: .+\r?\n)+) 11 down = ˆHTTP/1\.[01] [1-9][0-9]{2} .+\r?\n 12 proto = TCP 13 if = torrent_tracker 14 nice = 90 # priority 15 16 dns_udp: 17 proto = UDP 18 if = dns 19 port = 53 20 nice = 200 ࢄॲཧɾ$16ෛՙࢄ༻ઃఆ ͜ͷ߹ɼͭͷ*'ϑϩʔ୯ҐͰ ׂ͞Εग़ྗ͞ΕΔ -
நϑϩʔ*'ͷ σΟϨΫτϦߏ 20 nice = 200 Figure 3: Configuration Example
of Flow Abstractor 1 $ ls -R /tmp/sf-tap 2 loopback7= tcp/ udp/ 3 4 /tmp/sf-tap/tcp: 5 default= http2= ssh= 6 dns= http3= ssl= 7 ftp= http_proxy= torrent_tracker= 8 http0= irc= websocket= 9 http1= smtp= 10 11 /tmp/sf-tap/udp: 12 default= dns= torrent_dht= -
ෳΠϯλʔϑΣεʹΑΔ $16ෛՙܭଌ (a) HTTP Analyzer x 1 (b) HTTP Analyzer
x 2 (c) HTTP Analyzer x 4 generate 50 clients / sec, 1000 clients maximum, 2500 requests / sec on average Figure 7: CPU Load of HTTP Analyzer and Flow Abstractor -
'MPX"CTUSBDUPSͱ ඵؒίωΫγϣϯ s maximum, 2500 requests / sec on
average TP Analyzer and Flow Abstractor -
·ͱΊ w ൚༻-ղੳث4'5"1ΛఏҊ w εέʔϥϒϧ w ϞδϡϥϦςΟ w ίϞσΟςΟ w
ඇݴޠґଘͷΠϯλʔϑΣʔε w ϓϩάϥϚϒϧͳωοτϫʔΫղੳ͕Մೳʹ w ߴͳωοτϫʔΫʹରͯ͠ద༻Մೳʹ