welcome to Sawlinux, this is sharing the site of PC

Video Post


stat counters
Follow us on Twitter Subscribe to RSS Subscribe via Email

Sunday, July 15, 2012

Saw Linux  /  5:24 PM  /    /  No comments
က်ေနာ္အခုေနာက္ပိုင္း Network အပိုင္းကိုျပန္ျပီး ေလ့လာေနေတာ့ ´TCP/IP အေၾကာင္း´ေတြကို knowledgebridgeတစ္ဆင့္ျပန္လည္ေဖၚျပျခင္းသာျဖစ္ပါတယ္။

Networking မွာ TPC/IP model နဲ႔ OSI model ဆုိၿပီး ႏွစ္မ်ဳိးရွိပါ တယ္။ ဒီတခါေတာ့ TPC/IP Protocol ရဲ႕ Architecture ကိုသိသေလာက္ ေျပာျပပါမယ္။ TPC/IP ဆိုတာ Transmission Control Protocol/Internet Protocol ျဖစ္ပါတယ္။ Network သမုိင္းေၾကာင္းတေလွ်ာက္သံုးခဲ့ပါတယ္။ TPC/IP က computers ေတြကို communicate လုပ္ေပးႏိုင္တဲ့ protocols ေတြကို define လုပ္ေပးတယ္။ documents ထဲမွာရွိတဲ protocol တစ္ခုစီကို define လုပ္တာကို Request for Comments လို႔ေခၚပါတယ္။ TCP/IP Protocol Archi tecture မွာ layer 4 ခုရွိပါတယ္။ Layer တစ္ခုစီမွာလည္း layer အလိုက္ အလုပ္လုပ္တဲ့ protocols ေတြရွိပါတယ္။

ဥပမာအားျဖင့္ Application layer မွာ HTTP, POP 3, SMTP protocol, Transport layer မွာ TCPနဲ႔ UDP protocol, Internet layer မွာ ေတာ့ IP protocol, Network access lyaer မွာ Ethernet နဲ႔ Frame Relay တို႔ သံုးပါတယ္။

TCP/IP ရဲ႕ application layer protocols ေတြက ဒီ computer မွာ run ေနတဲ့ application software အ တြက္ service ေပးပါတယ္။ ဒီ application layer က application ကို define လုပ္တာသာမကဘဲ ဒီ application လိုအပ္တဲ့ service ကိုပဲ define လုပ္ေပးတာျဖစ္ပါတယ္။ ဒါေၾကာင့္ application layer က network နဲ႔ software ၾကားက interface တစ္ခု ပါပဲ။

TCP/IP ရဲ႕ application မွာ popular အျဖစ္ဆံုးကေတာ့ web browser ပါ။ web server ကို web browser ကအမည္ေရြးခ်ယ္လိုက္ၿပီး၊ ရိုက္လိုက္တာနဲ႔ web page ေပၚလာ ေအာင္ TCP/IP application layer ရဲ႕ HTTP (Hypertext Transfer Protocol) နဲ႔ HTML (Hypertext Markup Language) protocol ႏွစ္ခုကအလုပ္ လုပ္ေပးတာျဖစ္ပါတယ္။ HTTP က web browser က file request ေတာင္းတာကို လက္ခံၿပီး file ကို actual transfer လုပ္ေပးတာ ျဖစ္ပါ တယ္။ Web server မွာရွိတဲ့ HTTP protocol ရဲ႕ header မွာ file ကိုယူဖို႔ command ပါထားၿပီးသားမို႔လို႔ file name မေရးခဲ့ရင္ေတာင္ web servre က default web page ကို ေတာင္းမွန္း သိပါတယ္။ HTTP request ကို return ျပန္ရင္ HTTP reader မွာ web page ကို ေတြ႔ရင္ HTTP 2000, web page ကုိမေတြ႕ရင္ HTTP 404 ဆိုတဲ့ return code ပါပါ တယ္။ HTTP data မွာ file ကို ရွာေတြ႕ရင္ file contents ေတြ ပါပါတယ္။

Return ျပန္လာတဲ့ file contents ေတြကုိ web browser မွာျပဖို႔ HTML protocol က interpret လုပ္ေပးပါတယ္။ ဒီလိုမ်ဳိး computer ရဲ႕ layer တစ္ခုနဲ႔ ေနာက္ computer ရဲ႕ layer တစ္ခု same layer အခ်င္းခ်င္း communicate လုပ္ေတာ့မယ့္ဆိုရင္ computer ႏွစ္လံုးစလံုးမွာ communicate လုပ္ခ်င္တဲ့ information ကုိ သိမ္းထားႏုိင္တဲ့ header ကို သံုးရပါတယ္။ ဒီ headers ကလည္း computer ႏွစ္လံုးၾကားမွာဘာကို transmit လုပ္မလဲဆိုတဲ့အပိုင္း ျဖစ္ပါတယ္။ ဒီလို process ကို same layer interaction လို႔ ေခၚပါတယ္။

TCP/IP transport layer မွာ အဓိကက်တဲ့ Protocol ႏွစ္ခုရွိပါတယ္။ Transmission Control Protocol (TCP) နဲ႔ User Datagram Protocol (UDP) တို႔ ျဖစ္ပါတယ္။ Transport layer protocols ေတြအေၾကာင္း စဥ္းစားမယ္ဆိုရင္ ဒီ transport layer ရဲ႕အထက္ layer ျဖစ္တဲ့ applicatoin layer ကိုပါ ထည့္စဥ္းစား ရပါမယ္။ ဘာျဖစ္လို႔လဲဆိုေတာ့ layer တစ္ခုစီက သူတို႔ရဲ႕ above layer ေတြ အတြက္လည္း service ကို provide လုပ္ေပးလို႔ ျဖစ္ပါတယ္။ network ေတြေပၚ မွာ data delivery လုပ္ဖို႔ TCP/IP မွာ guarantee ေပးႏိုင္မယ့္ mechanism တစ္ခုလိုပါတယ္။ ဒါကို TCP က acknowledge ment ကုိသံုးၿပီး application protocols ေတြအတြက္ error-recovery feature ကို ေပးႏိုင္ပါတယ္။

တကယ္လို႔ transmission က lost ျဖစ္သြားရင္ HTTP က direct action မလုပ္ေပမယ့္ TCP က data ကို resend ျပန္လုပ္ပါတယ္။ data transmission က successfully receive ျဖစ္တာ ေသခ်ာေအာင္လုပ္ေပးပါတယ္။ ဒီလို computer တစ္ခုတည္းေပၚမွာ networking model ရဲ႕ adjacent layers ေတြ အလုပ္ လုပ္တာကို adjacent layer interaction လို႔ ေခၚပါတယ္။

Transport layer ရဲ႕ေအာက္မွာ internet layer ရွိပါတယ္။ ဒီ layer မွာ သံုးတဲ့ IP (Internet Protocol) က မတူတဲ့ ip address ေတြရွိတဲ့ host computer တစ္ခုစီကိုသြားဖို႔ address လုပ္ေပးပါတယ္။ ပို႔ခ်င္တဲ့ destination ကို data packet ေတြကို ေရာက္ေအာင္ပို႔ဖို႔ router ေတြေရြးၿပီး routing process လည္းလုပ္ပါတယ္။ computer ကို data delivery လုပ္ဖို႔ ဘာနဲ႔ပို႔မယ္ ဘယ္လမ္း ေၾကာင္းသံုးၿပီး ဘယ္လိုပို႔မယ္ဆိုတဲ့ network infrastructure ကို detail define လုပ္ပါတယ္။

Data ပို႔တဲ့ ip pack မွာ layer တစ္ခုစီရဲ႕ header ေတြနဲ႔ ip layer ရဲ႕ ip header ပါပါတယ္။ IP header ထဲမွာ source ပို႔မယ္သူရဲ႕ ip address နဲ႔ destination ပို႔ခံရမယ့္သူရဲ႕ ip address field ပါပါတယ္။ ေနာက္ဆံုး layer ကေတာ့ network access layer ျဖစ္ပါတယ္။ ဒီ layer မွာတျခား network ေတြကိုdata delivery လုပ္ဖို႔လိုအပ္တဲ့ hard ware နဲ႔ protocols ေတြကို သတ္မွတ္ေပးပါ တယ္။ Network access ဆိုတာ data transmit လုပ္ႏိုင္တဲ့ ၾကားခံ media ကေန host computer က ဘယ္လို connect လုပ္မလဲဆိုတာ သတ္မွတ္တာပါပဲ။

ဥပမာဆိုရင္ Ethernet ဆိုတာ TCP/IP network access layer ရဲ႕ protocol တစ္ခု ျဖစ္ပါတယ္။ Ethernet LAN တစ္ခုကို create လုပ္ဖို႔သံုးတဲ့ protocols ေတြ၊ addressing နဲ႔ လိုအပ္တဲ့ cabling အကုန္လံုး Ethenet က သတ္မွတ္ေပးပါတယ္။

Network access layer မွာ Ethernet protocols အမ်ဳိးမ်ဳိးနဲ႔တျခား LAN standard ေတြအျပင္ WAN standard ေတြျဖစ္တဲ့ Point-to-Point Protocol (PPP)နဲ႔ Frame relay တို႔လည္း ပါ၀င္ပါတယ္။ PPP ရဲ႕အဓိက လုပ္ေဆာင္ခ်က္ ကေတာ့ serial link ကေန data deliver လုပ္တာပဲ ျဖစ္ပါတယ္။ IP က network access layer protocols ေတြသံုးၿပီး IP packet ကို next router ဒါမွ မဟုတ္ host computer ကို ပို႔တယ္။ ဒီလို process ကို router တစ္ခုစီကလည္း IP packet က destination ကို မေရာက္မခ်င္း ထပ္ခါထပ္ခါလုပ္ေပးပါတယ္။

Network access layer မွာသံုးတဲ့ Protocols တစ္ခုစီရဲ႕ header က physical network ေပၚမွာ data ကို successfully deliver လုပ္ဖို႔ လိုအပ္တဲ့ information ေတြကို encode လုပ္ေပးပါတယ္။

အဓိကကေတာ့ network access layer မွာ protocols ေတြ cabling standard ေတြ၊ physical network အမ်ဳိးမ်ဳိးေပၚမွာ data ေတြဘယ္လို ပို႔မလဲ ဆိုတဲ့ သတ္မွတ္ခ်က္ေတြရွိတဲ့ headers နဲ႔ trailers ေတြ ပါ၀င္ပါတယ္။

TCP/IP model မွာ data encapsulation terminology ကိုသံုးပါတယ္။ Application layer မွာ data ကို header နဲ႔ေပါင္းထားပါတယ္။ ဥပမာ HTTP protocol ကိုသံုးရင္ Header မွာ HTTP OK message နဲ႔ data ေပါင္းထားပါတယ္။ Transport layer ေရာက္ရင္ေတာ့ TCP protocol header နဲ႔ Application layer ကလာတဲ့ Application data နဲ႔ ေပါင္းပါတယ္။ TCP နဲ႔ Data ေပါင္းသြားတာကို segment လို႔ ေခၚပါတယ္။ ဒီ segment ဟာ IP layer ေရာက္ရင္ IP header နဲ႔ ေပါင္းၿပီး Packet ျဖစ္သြားပါတယ္။ ဒီ packet ကို network access layer ရဲ႕ header နဲ႔ trailer က အေရွ႕နဲ႔ အေနာက္ကေပါင္းၿပီး Frame ဖြဲ႕ပါတယ္။ TCP/IP model မွာ ဒီ network access layer တစ္ခုပဲ header နဲ႔ trailer ႏွစ္ခုစလံုး သံုးတာ ျဖစ္ပါတယ္။ ဒီ Frame ကို ပို႔ဖို႔ ေနာက္ဆံုး signal ေတြျဖစ္ေအာင္ encode လုပ္ပါတယ္။ ဒါကေတာ့ TCP/IP network model မွာ data ပို႔ဖို႔ အလုပ္ လုပ္ပံုပဲ ျဖစ္ပါတယ္။

0 comments:

Post a Comment

Search