Upgrade to Pro — share decks privately, control downloads, hide ads and more …

The Internet の仕組み ~ISPの作り方~

chibiegg
September 20, 2015

The Internet の仕組み ~ISPの作り方~

BGPでの経路制御の概要
@第48回情報科学若手の会

chibiegg

September 20, 2015
Tweet

More Decks by chibiegg

Other Decks in Technology

Transcript

  1. ͨ͜·͝!DIJCJFHH ܦྺ
 େࡕେֶ޻ֶ෦ଔ޻ֶݚڀՊதୀ
 ͘͞ΒΠϯλʔωοτ
 ݸਓࣄۀओ
 ɹɾిࢠճ࿏ͷઃܭɾϑΝʔϜ΢ΤΞͷ։ൃ
 ɹɾۀ຿γεςϜͷ։ൃ 8FCϝΠϯ 
 ɹɾاۀͷΠϯϑϥߏங


    
 ͦͷଞ
 ϩϘΧοϓδϡχΞɾ/),େֶϩϘίϯ
 /8c%#c4$ εϖγϟϦετ ฽هࡾڃ
 4&$$0/$5'౳.S5BLFEB
 ޷͖ͳϝʔΧʔ͸:".")" +VOJQFS $JTDP
 4PGUXBSF%FTJHOɾ݄߸ ͓ͱͳϥζύΠϦϨʔ
  2. The Internet Tier 1 Tier 2 ɾɾɾ ɾɾɾ Tier 3

    ϐΞϦϯά ͋͘·Ͱ΋ΠϝʔδͰࣄ࣮ͱ͸ҟͳΓ·͢
  3. Home NOC Operators’ Group • ࡞Βͳ͍ͱΘ͔Βͳ͍͜ͱ΋͋Δ͸ͣ • ଞͷASͱަྲྀͰ͖Δ • Ұ౓͸ASӡ༻͍ͨ͠ΑͶʁ

    • The Internetʹͭͳ͕ΔॠؒͬͯυΩυΩ͢Δʂ ࣮༻ʹ଱͑͏ΔASΛઃܭɺߏங͠ɺ೔ʑӡ༻͢Δ
 ΈΜͳͰ৮ͬͯɺָ͠Έͳ͕Βษڧ͢Δ
  4. ISPʹඞཁͳϞϊ • IPΞυϨε • AS൪߸ • ػࡐ
 ɹϧʔλɾճઢɾ৔ॴ • AS59105ɹ

    • 103.48.31.0/24 • 2001:df2:c00::/48 2015೥1݄
 JPNICΑΓׂ౰
  5. BGP Local Preference
 ࣗ෼Ͱ͚ͭΔɾߴ͍΋ͷ༏ઌ AS Path
 ్தͲͷASΛ௨Δ͔ɾ୹͍΋ͷ༏ઌ MED
 ૬ख͕͚ͭͯૹΔɾখ͍͞΋ͷ༏ઌ 173.194.117.0/24

    *[BGP/170] 3d 22:38:49, MED 1000, localpref 310, from 103.48.31.2 AS path: 17686 15169 I, validation-state: unverified > to 103.48.31.121 via ge-0/0/3.102 [BGP/170] 1w3d 07:21:18, MED 1000, localpref 200 AS path: 9370 15169 I, validation-state: unverified > to 210.188.225.233 via ge-0/0/0.0 ༏ઌ౓ߴ
  6. Local Preference • ϐΞϦϯάΛ༏ઌ • ΞΫςΟϒελϯόΠ • ·ͩ༨༟ͷ͋ΔτϥϯδοτΛ༏ઌ ྫ 59105ࣗ਎ͷܦ࿏

    350 ւ֎ͷϓϥΠϕʔτPeer 310 ࠃ಺ͷϓϥΠϕʔτPeer 300 ࠃ಺͔ΒͷTransit 200
  7. AS Path • ࣗ਎ͷAS൪߸Λͨ͘͞Μ͚ͭΔ (AS Prepend)
 ɹ→Ͱ͖Δ͚ͩ࢖ΘΕͳ͍Α͏ʹͳΔ AS path: 59105

    9370 15169 AS path: 59105 59105 59105 59105 9370 15169 AS15169ѼͷτϥϑΟοΫΛ͏ͪʹ౤͛ʹ͘͘ͳΔ
  8. BGP Community • ܦ࿏ʹෳ਺ͷ໨ҹΛ͚ͭɺ੍ޚ͕Մೳ
 (ྫ) ւ֎ͷܦ࿏͸·ͱΊͯ࠶޿ࠂ͢Δ • Communityผʹ౷ܭΛऔΔͱ͖ʹ΋࢖͑Δ ྫ 59105ࣗ਎ͷܦ࿏

    59105:100 59105-SPECIFIC ւ֎ͷϓϥΠϕʔτPeer 59105:400 PEER-ABROAD ࠃ಺ISPͷϓϥΠϕʔτPeer 59105:300 PEER-ISP ࠃ಺ISPҎ֎ͷϓϥΠϕʔτPeer 59105:310 PEER-xSP ࠃ಺͔ΒͷTransit 59105:200 TRANSIT-DOMESTIC ࠃ಺͔ΒͷTransit(BIGLOBE) 59105:201 TRANSIT-DOMESTIC-AS2518 ࠃ಺͔ΒͷTransit(SoftEther) 59105:202 TRANSIT-DOMESTIC-AS59103
  9. 

  10.