TremaでICMPを制御してみた(PINGアスキーアート)

1bcde780729a8dd1eeed0a3bb708c5b7?s=47 kooshin
July 02, 2016

 TremaでICMPを制御してみた(PINGアスキーアート)

2016/07/02のTremaday#9で発表したスライドです。
http://trema.connpass.com/event/31144/
関連記事:PINGアスキーアート with OpenFlow - TremaとOpen vSwitchでICMPを制御してみた
http://qiita.com/kooshin/items/a0b12f62e77273d3fa51

1bcde780729a8dd1eeed0a3bb708c5b7?s=128

kooshin

July 02, 2016
Tweet

Transcript

  1. TremaͰICMPΛ੍ޚͯ͠Έͨ PINGΞεΩʔΞʔτ 2016/07/02 Trema Day #9 ؠా ߒਅ @kooshin

  2. ɹɹ@kooshin • ࢓ࣄ - ωοτϫʔΫͷӡ༻ɾߏங • झຯ - ζϯυίϧʔλͱ͔
 ζϯυίΩϤγ

    with ϧʔλ - Cisco VIRLͱMPLS-TEͰζϯυίϧʔλΛ࣮ݱͯ͠Έͨ
 http://qiita.com/kooshin/items/2e00cdeb53cf9cf4c51d Ω˒Ϥ˒γ ζϯ υί ζϯ ζϯ ζϯ
  3. γείϧʔλͰ ΞεΩʔΞʔτΛ ඳ͍ͯΈͨ

  4. γείϧʔλͷPING ෯70จࣈͷΩϟϯόε

  5. ߏ੒ - Trema + Open vSwitch OpenFlow εΠον γεί ϧʔλ

    γεί ϧʔλ Trema େ޷͖ Trema OpenFlow ίϯτϩʔϥ PACKET_IN PACKET_OUT ICMP Echo Request 2஋Խ Open vSwitch ݩը૾ നɿPACKET_OUTͰసૹ ࠇɿDROPʢసૹ͠ͳ͍ʣ సૹ৚݅
  6. ؀ڥ - ECS LIVA + CISCO1812J • OpenFlowίϯτϩʔϥˍεΠον
 HW ɿECS

    LIVA (N2806 1.6GHz)
 ɹɹɹ Logitec USB LANΞμϓλ
 OS ɿUbuntu 16.04
 OFCɿTrema 0.10.1
 OFSɿOpen vSwitch 2.5.0 • γείϧʔλ
 CISCO1812-J
  7. OpenFlow ECS LIVA-B3-2G-32G USBϋϒʴLANΞμϓλ
 Logitec LAN-GTJU3H3 USB LANΞμϓλ Logitec LAN-GTJU3

    γείϧʔλ CISCO1812-J
  8. PINGΞεΩʔΞʔτ PINGΞεΩʔΞʔτɹ-ɹTremaେ޷͖

  9. ʊਓਓਓਓਓਓਓʊ ʼɹ࣮ߦʹ12෼ɹʻ ʉY^Y^Y^Y^Y^Yʉ

  10. ஗͍ݪҼ • Tremaίϯτϩʔϥͷಈ͖
 നϐΫηϧɿPACKET_OUTͰసૹ
 ࠇϐΫηϧɿDROPɺPINGλΠϜΞ΢τൃੜ • ը૾ʮTremaେ޷͖ʯͷ৔߹
 നϐΫηϧɿ 2726ݸ
 ࠇϐΫηϧɿ

    774ݸ(ඵ) => ໿12෼ Trema େ޷͖
  11. ࣮༻తͰ͸ͳ͍
 ΧΠθϯ ▼


  12. վળࡦ • Trema͔ΒΤϥʔͱͯ͠Ԡ౴͢Δ
 PINGλΠϜΞ΢τ͕ൃੜ͠ͳ͍ • ICMP UnreachableΛੜ੒
 ICMP Type: 3

    Destination Unreachable
 ICMP Code:1 Host Unreachable
  13. ߏ੒(վ) - Trema + Open vSwitch OpenFlow εΠον γεί ϧʔλ

    γεί ϧʔλ Trema OpenFlow ίϯτϩʔϥ PACKET_IN PACKET_OUT ICMP Echo Request 2஋Խ Open vSwitch ݩը૾ നɿPACKET_OUTͰసૹ ࠇɿICMP Unreachableੜ੒ Trema େ޷͖ సૹ৚݅
  14. PINGΞεΩʔΞʔτʢվʣ -ɹTremaେ޷͖

  15. QiitaͰهࣄެ։ͯ͠·͢ http://qiita.com/kooshin/items/a0b12f62e77273d3fa51