0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

[自分用メモ] リージョンの異なるVNETをピアリング

Posted at

VNETを大阪と米国西部に配置。(vn-osaka,vn-uswest)
それぞれにServerを設置。(vm-osaka,vm-uswest)

  • ピアリングせずに疎通確認
    vm-osakaからvm-uswestまでPublic IPでPING。
    100ms程度。
ubuntu@vm-osaka:~$ ping 40.xx.xx.xxx
PING 40.78.81.223 (40.xx.xx.xxx) 56(84) bytes of data.
64 bytes from 40.xx.xx.xxx: icmp_seq=1 ttl=52 time=105 ms
64 bytes from 40.xx.xx.xxx: icmp_seq=2 ttl=52 time=105 ms
64 bytes from 40.xx.xx.xxx: icmp_seq=3 ttl=52 time=106 ms
64 bytes from 40.xx.xx.xxx: icmp_seq=4 ttl=52 time=106 ms
64 bytes from 40.xx.xx.xxx: icmp_seq=5 ttl=52 time=105 ms
^C
--- 40.xx.xx.xxx ping statistics ---
5 packets transmitted, 5 received, 0% packet loss, time 4004ms
rtt min/avg/max/mdev = 105.872/106.099/106.458/0.296 ms
  • vm-osakaからvm-uswestまでPrivate IPでPING.(ピアリング前なのでつながらないことの確認)
ubuntu@vm-osaka:~$ ping 10.0.0.5
PING 10.0.0.5 (10.0.0.5) 56(84) bytes of data.
^C
--- 10.0.0.5 ping statistics ---
6 packets transmitted, 0 received, 100% packet loss, time 5098ms
  • ピアリングを作成( vm-osaka, vm-uswest )
    10.1.0.5(vm-osaka)から10.0.0.5(vm-uswest)へのPING。
    100ms程度。Public Address 、Private address もほぼ同じくらいの応答時間だった。
ubuntu@vm-osaka:~$ ping 10.0.0.5
PING 10.0.0.5 (10.0.0.5) 56(84) bytes of data.
64 bytes from 10.0.0.5: icmp_seq=1 ttl=64 time=126 ms
64 bytes from 10.0.0.5: icmp_seq=2 ttl=64 time=108 ms
64 bytes from 10.0.0.5: icmp_seq=3 ttl=64 time=108 ms
64 bytes from 10.0.0.5: icmp_seq=4 ttl=64 time=109 ms
64 bytes from 10.0.0.5: icmp_seq=5 ttl=64 time=108 ms
^C
--- 10.0.0.5 ping statistics ---
5 packets transmitted, 5 received, 0% packet loss, time 4005ms
rtt min/avg/max/mdev = 108.758/112.461/126.279/6.925 ms
  • 同一VNET(Region内)での速さ
    vn-uswest内。10.0.0.5 から10.0.1.4へのPING。同じVNET内というかRegion内なら、1ms 程度。Azure内のネットワークを通っても、まあ同じということか。大阪と米国はやはり遠いということと解釈。
ubuntu@vm-default:~$ ping 10.0.1.4
PING 10.0.1.4 (10.0.1.4) 56(84) bytes of data.
64 bytes from 10.0.1.4: icmp_seq=1 ttl=64 time=0.810 ms
64 bytes from 10.0.1.4: icmp_seq=2 ttl=64 time=0.886 ms
64 bytes from 10.0.1.4: icmp_seq=3 ttl=64 time=0.882 ms
64 bytes from 10.0.1.4: icmp_seq=4 ttl=64 time=1.24 ms
64 bytes from 10.0.1.4: icmp_seq=5 ttl=64 time=0.919 ms
64 bytes from 10.0.1.4: icmp_seq=6 ttl=64 time=0.907 ms
^C
--- 10.0.1.4 ping statistics ---
6 packets transmitted, 6 received, 0% packet loss, time 5100ms
rtt min/avg/max/mdev = 0.810/0.941/1.243/0.140 ms

tracerouteをするとこんな感じだった。private IPだとPeeringだからかわかりやすく1ホップ。Publicだと、なんかいろいろ探してから、という雰囲気。。。

traceroute to 10.0.0.5 (10.0.0.5), 30 hops max, 60 byte packets
 1  10.0.0.5 (10.0.0.5)  109.781 ms  109.793 ms  109.792 ms
ubuntu@vm-osaka:~$ sudo traceroute -I  40.xx.xx.xxx
traceroute to 40.xx.xx.xxx (40.xx.xx.xxx), 30 hops max, 60 byte packets
 1  * * *
 2  * * *
 3  * * *
 4  * * *
 5  * * *
 6  * * *
 7  * * *
 8  * * *
 9  * * *
10  * * *
11  * * *
12  * * *
13  * * *
14  * * *
15  * * *
16  * * *
17  * * *
18  * * *
19  * * *
20  40.xx.xx.xxx (40.xx.xx.xxx)  106.532 ms  106.557 ms  106.555 ms
ubuntu@vm-osaka:~$
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?