Skip to main content

Command Palette

Search for a command to run...

How to connect On Premises Network and Cloud (AWS)? (Part-1)

Updated
2 min read
How to connect On Premises Network and Cloud (AWS)? (Part-1)

ကိုယ့်ရဲ့ ‌data center (on-prem) network နဲ့ AWS ချိတ်ဆက်ဖို့ လိုလာပြီဆိုရင် ချိတ်ဆက်နိုင်တဲ့ နည်း (၂) နည်း ရှိပါတယ်။

1. Site-to-Site VPN (Virtual Private Network)

2. Direct connect

Site-to-Site VPN

- On-prem network နဲ့ AWS resources တွေ ချိတ်ဆက်တဲ့ အခါမှာ VPN ကို သုံးပြီး ချိတ်ဆက် တယ်ဆိုတာ on-prem network နဲ့ ‌AWS VPC ကို internet ပေါ်က နေ tunnel ထိုးပြီးချိတ်ဆက်တာဖြစ်ပါတယ်။ (Site-to-Site VPN လို့လည်း ‌‌ခေါ်ပါတယ်။)

- Routing အနေနဲ့ Static route or Dynamic route (BGP) ကို သုံးပါတယ်။

- VPN connections တစ်ခု create လုပ်တာနဲ့ AWS ဘက်ကနေ tunnel 2 ခု support လုပ်ပါတယ်။ Redundancy ရဖို့ အတွက်ဖြစ်ပါတယ်။ Tunnel တစ်ခုက active အနေနဲ့ အလုပ်လုပ်နေရင် ကျန် tunnel တစ်ခုက standby အနေနဲ့ အလုပ်လုပ်ပါတယ်။

- Maximum bandwidth အနေနဲ့ tunnel တစ် ခုကို 1.25 Gbps support လုပ်ပါတယ် ။ Tunnel 2 ခု ကို auto ‌‌‌ပေါင်းပြီး double speed ဖြစ်သွားမလားဆိုရင် မဖြစ်သွားပါဘူး။ ဘာလို့လဲဆိုရင် tunnel တစ်ခုက active အနေ နဲ့ အလုပ်လုပ်‌နေချိန်မှာ ‌နောက် tunnel တစ်ခုက standby အနေနဲ့ဘဲ ရှိနေလို့ ဖြစ်ပါတယ်။ ECMP (Equal-Cost Multi-Path) ကို သုံးမယ်ဆိုရင်‌ ‌‌တော့ tunnel 2 ခုလုံးက တပြိုင်နက်တည်း active ဖြစ်နိုင်ပါတယ်

- ECMP ကို သုံးဖို့ဆိုရင် VPN connection သည် TGW ကို atttached လုပ်ထားတာဖြစ်ရပါမည်။ Dynamic routing (BGP) ကို သုံးရပါမည်။ On-prem router သည် လည်း ECMP ကို support လုပ်ရပါမည်။

VPN Endpoint

- AWS ဘက် မှာ VPC တစ်ခုတည်းနဲ့ ချိတ်ဆက်မယ်ဆိုရင် VGW (Virtual private Gateway) create လုပ်ပေးရပါမယ်။ VPC အရေအတွက် များလာတာနဲ့ VGW အရေအတွက် ‌တွေလည်း များလာမှာပါ။

- တစ်ခုထက်မက ပို များတဲ့ VPC တွေ နဲ့ ချိတ်မယ်ဆိုရင် TGW (Transit Gateway) ကို create လုပ်ပေး သင့် ပါတယ်။ TGW သုံးတဲ့ VPN connections မှာဆိုရင် Tunnel bandwidth ကို standard (or) large ရွေးချယ်လို့ရပါတယ်။ Standard သည် 1.25 Gbps ကို support လုပ်ပြီး Large သည် 5Gbps ကို support လုပ်ပါတယ်။

Customer Gateway device and Customer Gateway

Site-to-site VPN ကို ‌လေ့လာတဲ့ အခါမှာ confuse ဖြစ်တတ်တဲ့ အသုံး အနှုန်းလေးဖြစ်ပါတယ်။

- Customer Gateway device ဆိုတာ VPN connection အတွက် on-prem ဘက် မှာ ရှိ ရမယ့် physical device ဖြစ်ပါတယ်။

- Customer Gateway ဆိုတာ ကိုယ့်ရဲ့ on-prem device (customer gateway device) ရဲ့ infomation ‌တွေကို AWS ဘက် က သိအောင် ပြောပြပေးရတဲ့ နေရာ ဖြစ်ပါတယ်။

- Customer Gateway create လုပ်တဲ့ အချိန်မှာ ဖြည့်ပေးရတဲ့ infomation ‌‌တွေက ဘာတွေလဲဆိုရင် on-prem device ရဲ့ Public IP, ASN, .. အစရှိတာတို့ ဖြစ်ပါတယ်။

ဒီလောက်ဆိုရင် ‌တော့ AWS ရဲ့ site-to-site VPN အ ကြောင်းလေးအခြေခံလောက် သိသွားမယ်ထင်ပါတယ်။

Part -2 မှာ Direct connect အကြောင်းလေး ထပ် ဆွေးနွေးသွားမှာ ဖြစ်ပါတယ်။ Direct Connect အကြောင်း အောက်ပါ link မှာ ဝင်ရောက် လေ့လာနိုင်ပါတယ်။

https://kalaung.org/how-to-connect-on-premises-network-and-cloud-aws-part-2

More from this blog

Infrastructure ကိုင်ပြီး အိပ်ရေးမပျက် ချင် လျှင် ဒါမျိုး Alarms လုပ် 🔥🔥🔥

High Level ရေးထားတာပါ ဒါပေမဲ့ လွယ်ပါတယ် ​ကိုယ့်မှာ AWS Infra တွေရှိတယ်ဆို တွေ့သမျှ metric တွေကို alarms တွေလုပ်ပြီး notification ယူမနေဘဲ တကယ် effective ဖြစ်တဲ့ metric တွေကိုမှ CloudWatch ရဲ့ alarm feature တွေနဲ့ ပေါင်းပြီး ပို့စေချင်ပါတယ်။ ​ဥပမာ prod...

Jan 17, 20263 min read151
Infrastructure ကိုင်ပြီး အိပ်ရေးမပျက် ချင် လျှင်  ဒါမျိုး Alarms လုပ် 🔥🔥🔥

How to connect On Premises Network and Cloud (AWS)? (Part-2)

ကိုယ့်ရဲ့ ‌data center (on-prem) network နဲ့ AWS ချိတ်ဆက်ဖို့ လိုလာပြီဆိုရင် ဘယ်လို ချိတ်ဆက်ကြမလဲ? အပိုင်း (၂) မှာ တော့ Direct connect အကြောင်းကို ဆွေးနွေး သွားမှာ ဖြစ်ပါတယ်။ အပိုင်း (၁) Site-to-site VPN အကြောင်းကို လေ့လာချင်ရင်တော့ အောက်ပါ link မှာ ...

Dec 20, 20253 min read222
How to connect On Premises Network and Cloud (AWS)? (Part-2)

Accessibility for Designer

လွန်ခဲ့တဲ့အပတ်က ရုံးက Designer တွေနဲ့ တော်ကီပွားရင်း Accessibility နဲ့ပတ်သတ်တာတွေ သူတို့ကို ရှင်းပြဖြစ်တယ်။ ကိုယ်တိုင်ကလည်း အရင်ကတည်းက ဒီ topic ကိုစိတ်ဝင်စားလို့ လေ့လာနေတာဆိုတော့ အခွင့်အရေးရရင် ရသလို sharing လုပ်ဖြစ်တယ်။ အဓိကက Accessibility နဲ့ပတ်သတ်...

Nov 21, 20253 min read67
Accessibility for Designer

VPC Endpoint

အားလုံးဘဲ မင်္ဂလာပါ။ ဒီနေ့ sharing လုပ်ပေးချင်တာကတော့ VPC Endpoint အကြောင်းဘဲဖြစ်ပါတယ်။ VPC Endpoint ဆိုတာ VPC နဲ့ AWS services တွေ ကို public Internet ကို အသုံးမပြုဘဲနဲ့ Privately connect လုပ်ပေးတာ ဖြစ်ပါတယ်။ Internet Gateway, NAT Gateway နဲ့ Public...

Nov 18, 20252 min read88
VPC Endpoint
M

Myanmar Technical Blog

108 posts

Cloud, Linux, DevOps, Docker, Security အစရှိတဲ့ နည်းပညာများ အကြောင်းကို မြန်မာလို ပြန်လည်မျှဝေပေးမယ့် Blog ပဲဖြစ်ပါတယ်ခဗျာ...