โหนด (node): pc, special-purpose hardware… hosts switches
DESCRIPTION
…. องค์ประกอบของระบบเครือข่าย. โหนด (Node): PC, special-purpose hardware… hosts switches ลิงค์ (Links): Twisted pair, coax cable, optical fiber… point-to-point multiple access. วิธีการต่อเชื่อมส่งผ่านข้อมูล. ระบบเครือข่ายเซอร์กิตสวิทช์ ( Circuit switching: carry bit streams) - PowerPoint PPT PresentationTRANSCRIPT
![Page 1: โหนด (Node): PC, special-purpose hardware… hosts switches](https://reader036.vdocuments.mx/reader036/viewer/2022062423/56814e5b550346895dbbf7f6/html5/thumbnails/1.jpg)
• โหนด (Node): PC, special-purpose hardware…–hosts–switches
• ลิ�งค์ (Links): Twisted pair, coax cable, optical fiber…–point-to-point
–multiple access
องค์�ประกอบของระบบเค์ร�อข ายองค์�ประกอบของระบบเค์ร�อข าย
…
![Page 2: โหนด (Node): PC, special-purpose hardware… hosts switches](https://reader036.vdocuments.mx/reader036/viewer/2022062423/56814e5b550346895dbbf7f6/html5/thumbnails/2.jpg)
วิ�ธี�การต่ อเชื่��อมส่ งผ่ านข�อม�ลวิ�ธี�การต่ อเชื่��อมส่ งผ่ านข�อม�ล
•ระบบเค์ร�อข ายเซอร�ก�ต่ส่วิ�ทชื่� (Circuit switching: carry bit streams)–ระบบโทรศั�พท
•ในเค์ร�อข ายแบบเพค์เก#จส่วิ�ทชื่� (Packet switching: store-and-forward messages) –Internet
![Page 3: โหนด (Node): PC, special-purpose hardware… hosts switches](https://reader036.vdocuments.mx/reader036/viewer/2022062423/56814e5b550346895dbbf7f6/html5/thumbnails/3.jpg)
![Page 4: โหนด (Node): PC, special-purpose hardware… hosts switches](https://reader036.vdocuments.mx/reader036/viewer/2022062423/56814e5b550346895dbbf7f6/html5/thumbnails/4.jpg)
เค์ร�อข ายแบบเพค์เก#จส่วิ�ทชื่�
• ค์อมพ�วเตอรการส่�งผ่�านข้�อม�ลิเป็�นกลิ �มก�อนท!"ม!ข้นาด ตามก#าหนด กลิ �มก�อนข้องข้�อม�ลิด�งกลิ�าวเป็�นส่�วนหน$"ง
ข้�อม�ลิหร%อข้�อม�ลิท�&งหมด กลิ �มก�อนข้องข้�อม�ลิด�งกลิ�าว เร!ยกว�า เพ#ค์เกต่
• โดยท�"วไป็จะใช้�ว�ธี!การร�บเพ-ค์เกตท�&งหมดท!"ร�บจากลิ�งค์ให�เส่ร-จส่�&นก�อนท!"จะท#าการส่�งผ่�านข้�อม�ลิ - -(Store and
forward) เพ-ค์เกตท!"ได�ร�บเข้�ามาจากลิ�งค์จะถู�กเก-บไว�ใน หน�วยค์วามจ#าภายในโหนด แลิะจากน�&นจ$งส่�งผ่�านข้�อม�ลิ
ไป็ย�งอ!กลิ�งค์หน$"ง
Packet Switch
![Page 5: โหนด (Node): PC, special-purpose hardware… hosts switches](https://reader036.vdocuments.mx/reader036/viewer/2022062423/56814e5b550346895dbbf7f6/html5/thumbnails/5.jpg)
โป็รโตค์อลิ(Protocol)
•โป็รโตค์อลิเป็�นองค์ป็ระกอบพ%&นฐานข้องระบบเค์ร%อ ข้�าย
• แต�แลิะโป็รโตค์อลิม!จ ดเช้%"อม (interface) ส่องลิ�กษณะ–จ ดเช้%"อมส่#าหร�บการ บร�การ (service interface): เป็�นส่�วนการป็ฏิ�บ�ต�การข้องโป็รโต
ค์อลิน�&นๆ หร%อกระบวนการท!"โป็รโตค์อลิท#า– จ ดเช้%"อมระหว�างค์��ส่%"อส่าร (peer-to-peer interface): เป็�นข้�อค์วามส่%"อส่ารระหว�างค์��ส่%"อส่ารในแต�ลิะฝั่9" งท!"ใช้�โป็รโตค์อลิเด!ยวก�น
โป็รโตค์อลิ
![Page 6: โหนด (Node): PC, special-purpose hardware… hosts switches](https://reader036.vdocuments.mx/reader036/viewer/2022062423/56814e5b550346895dbbf7f6/html5/thumbnails/6.jpg)
• “ ” ค์#าศั�พท โป็รโตค์อลิ ม!หลิายค์วามหมาย• ข้�อก#าหนดรายลิ ะเอ!ยด ข้องจ ดเช้%"อมระหว�างค์��
ส่%"อส่าร(peer-to-peer interface)• ต�วโมด�ลิท!"เป็�น interface
โป็รโตค์อลิ2
![Page 7: โหนด (Node): PC, special-purpose hardware… hosts switches](https://reader036.vdocuments.mx/reader036/viewer/2022062423/56814e5b550346895dbbf7f6/html5/thumbnails/7.jpg)
Switched Switched NetworksNetworks
–โหนดต�อเช้%"อมก�นผ่�านลิ�งค์
–เค์ร%อข้�ายต�อเช้%"อมก�นโดยอาศั�ยโหนด
•ระบบเค์ร%อข้�ายส่ามารถูข้ยายข้นาดได�โดย
![Page 8: โหนด (Node): PC, special-purpose hardware… hosts switches](https://reader036.vdocuments.mx/reader036/viewer/2022062423/56814e5b550346895dbbf7f6/html5/thumbnails/8.jpg)
• ผ่��พ%ฒนาโปรแกรม: ผ่��พ�ฒนาโป็รแกรมจะเป็�นผ่��ก#าหนด แลิะทราบถู$ง ค์ ณลิ�กษณะค์วามต�องการใช้�งานระบบเค์ร%อข้�าย ตามการออกแบบป็ระย กตใช้�
งานต�างๆ เช้�น ค์วามน�าเช้%"อถู%อข้องระบบเค์ร%อข้�ายในการส่�งข้�อม�ลิ โดยป็ราศัจากข้�อผ่�ดพลิาดภายในก#าหนดเวลิา.
• ผ่��ออกแบบระบบเค์ร�อข าย: ผ่��ออกแบบระบบเค์ร%อข้�ายจะทราบถู$ง ค์ ณลิ�กษณะรายลิะเอ!ยดในการออกแบบระบบเค์ร%อข้�ายให� เพ!ยงพอ, เหมาะ
ส่ม, แลิะป็ระหย�ด. ต�วอย�างเช้�น ทร�พยากรข้องระบบเค์ร%อข้�ายได�ร�บการแบ�ง ส่รรอย�างม!ป็ระส่�ทธี�ภาพ
• ผ่��ให้�บร�การเค์ร�อข าย: ผ่��ให�บร�การเค์ร%อข้�ายเป็�นผ่��ก#าหนดรายลิะเอ!ยด ค์ ณลิ�กษณะข้องระบบท!"ส่ามารถูจ�ดการด�แลิ แลิะให�บร�การได�อย�างม!
ป็ระส่�ทธี�ภาพ. ต�วอย�างเช้�น ค์วามส่ามารถูในการแยกระบบเค์ร%อข้�ายท!"ม!เส่!ย หายหร%อม!ป็9ญหาออกจากระบบ แลิะการบร�หารส่�ทธี�ในการใช้�งานเค์ร%อข้�าย
ข้องผ่��ใช้�แต�ลิะราย.
ผ่��ท��ม�ค์วิามเก��ยวิข�องก%บการใชื่�งานเค์ร�อข ายผ่��ท��ม�ค์วิามเก��ยวิข�องก%บการใชื่�งานเค์ร�อข าย
![Page 9: โหนด (Node): PC, special-purpose hardware… hosts switches](https://reader036.vdocuments.mx/reader036/viewer/2022062423/56814e5b550346895dbbf7f6/html5/thumbnails/9.jpg)
ร�ปแบบโค์รงส่ร�างแบบดาวิร�ปแบบโค์รงส่ร�างแบบดาวิ ร�ปแบบโค์รงส่ร�างแบบดาวิ(Star
Topology)ซ*�งได�ร%บค์วิามน�ยมในการน,ามาใชื่� งานอย างมาก จะวิางเค์ร��องเซ�ร�ฟเวิอร�ไวิ�ท��
ศู�นย�กลางของระบบโดยม�อ/ปกรณ์�ท%1งห้มดเชื่��อม ต่ อแบบจ/ด ต่ อ จ/ด เข�ามาท��เซ�ร�ฟเวิอร�โดยต่รง ใน
การ%บและส่ งข�อม�ล เซ�ร�ฟเวิอร�จะต่�องท,าการ ส่อบถามอ/ปกรณ์�ท��จะต่�ดต่ อด�วิยก อนเส่มอการน#าอ ป็กรณต��พ!บ!เอ-กซ์
มาใช้�งานในระบบเค์ร%อข้�ายแบบดาวการน#าอ ป็กรณต��พ!บ!เอ-กซ์มาใช้�งานในระบบเค์ร%อข้�ายแบบดาว
Start Topology
![Page 10: โหนด (Node): PC, special-purpose hardware… hosts switches](https://reader036.vdocuments.mx/reader036/viewer/2022062423/56814e5b550346895dbbf7f6/html5/thumbnails/10.jpg)
โค์รงส่ร�างแบบวิงแห้วิน (Ring Topology) น�ยมใชื่�ในระบบ เค์ร�อข ายเฉพาะ
บร�เวิณ์มากกวิ า แต่ การจ%ดร�แบบวิงแห้วินก%บ ระบบเค์ร�อข ายขนาดให้ญ่ ก#ส่ามารถท,าได�
ร�ปแบบโค์รงส่ร�างแบบวิงแห้วินร�ปแบบโค์รงส่ร�างแบบวิงแห้วิน
ระบบเค์ร�อข ายวิงแห้วินระบบเค์ร�อข ายวิงแห้วิน
Ring Topology
![Page 11: โหนด (Node): PC, special-purpose hardware… hosts switches](https://reader036.vdocuments.mx/reader036/viewer/2022062423/56814e5b550346895dbbf7f6/html5/thumbnails/11.jpg)
• Software and hardware on two computers in the same network need a commonlanguage, a PROTOCOL, to achieve Computer Communications.
• Protocol elements–Syntax: Grammar, e.g., frame format–Semantics: Meaning of a conversation,e.g., a sequence of queries and responses–Timing: Synchronization
Protocol and Protocol ArchitectureProtocol and Protocol Architecture
![Page 12: โหนด (Node): PC, special-purpose hardware… hosts switches](https://reader036.vdocuments.mx/reader036/viewer/2022062423/56814e5b550346895dbbf7f6/html5/thumbnails/12.jpg)
• User Interface • Medium Access Control • Exchange Control / Management Signal • Error Control • Flow Control • Congestion Control • Addressing • Naming • Routing • Message formatting • Security • Provide QoS • etc.
Communication TaskCommunication Task
![Page 13: โหนด (Node): PC, special-purpose hardware… hosts switches](https://reader036.vdocuments.mx/reader036/viewer/2022062423/56814e5b550346895dbbf7f6/html5/thumbnails/13.jpg)
![Page 14: โหนด (Node): PC, special-purpose hardware… hosts switches](https://reader036.vdocuments.mx/reader036/viewer/2022062423/56814e5b550346895dbbf7f6/html5/thumbnails/14.jpg)
![Page 15: โหนด (Node): PC, special-purpose hardware… hosts switches](https://reader036.vdocuments.mx/reader036/viewer/2022062423/56814e5b550346895dbbf7f6/html5/thumbnails/15.jpg)
OSI ModelOSI Model
![Page 16: โหนด (Node): PC, special-purpose hardware… hosts switches](https://reader036.vdocuments.mx/reader036/viewer/2022062423/56814e5b550346895dbbf7f6/html5/thumbnails/16.jpg)
ส่ถาป6ต่ยกรรม ส่ถาป6ต่ยกรรม ISOISO
One or more nodeswithin the network
Network
Data link
Physical
Network
Data link
Physical
End host
Application
Presentation
Session
Network
Transport
Data link
Physical
End host
Application
Presentation
Session
Network
Transport
Data link
Physical
ISO
![Page 17: โหนด (Node): PC, special-purpose hardware… hosts switches](https://reader036.vdocuments.mx/reader036/viewer/2022062423/56814e5b550346895dbbf7f6/html5/thumbnails/17.jpg)
ฟ6งก�ชื่%�นการท,างานของ ฟ6งก�ชื่%�นการท,างานของ Physical Physical LayerLayerPhysical Layer
![Page 18: โหนด (Node): PC, special-purpose hardware… hosts switches](https://reader036.vdocuments.mx/reader036/viewer/2022062423/56814e5b550346895dbbf7f6/html5/thumbnails/18.jpg)
Data Link LayerData Link LayerData Link Layer
![Page 19: โหนด (Node): PC, special-purpose hardware… hosts switches](https://reader036.vdocuments.mx/reader036/viewer/2022062423/56814e5b550346895dbbf7f6/html5/thumbnails/19.jpg)
ห้น�าท��การท,างานชื่อง ห้น�าท��การท,างานชื่อง Physical Physical และและData Link LayerData Link Layer Phy &Data Link Layer
![Page 20: โหนด (Node): PC, special-purpose hardware… hosts switches](https://reader036.vdocuments.mx/reader036/viewer/2022062423/56814e5b550346895dbbf7f6/html5/thumbnails/20.jpg)
Network LayerNetwork LayerNetwork Layer
![Page 21: โหนด (Node): PC, special-purpose hardware… hosts switches](https://reader036.vdocuments.mx/reader036/viewer/2022062423/56814e5b550346895dbbf7f6/html5/thumbnails/21.jpg)
Transport Layer
Transport Layer
![Page 22: โหนด (Node): PC, special-purpose hardware… hosts switches](https://reader036.vdocuments.mx/reader036/viewer/2022062423/56814e5b550346895dbbf7f6/html5/thumbnails/22.jpg)
Session Layer
Session Layer
![Page 23: โหนด (Node): PC, special-purpose hardware… hosts switches](https://reader036.vdocuments.mx/reader036/viewer/2022062423/56814e5b550346895dbbf7f6/html5/thumbnails/23.jpg)
Presentation LayerPresentation LayerPresentation Layer
![Page 24: โหนด (Node): PC, special-purpose hardware… hosts switches](https://reader036.vdocuments.mx/reader036/viewer/2022062423/56814e5b550346895dbbf7f6/html5/thumbnails/24.jpg)
Application LayerApplication LayerApplication layer
![Page 25: โหนด (Node): PC, special-purpose hardware… hosts switches](https://reader036.vdocuments.mx/reader036/viewer/2022062423/56814e5b550346895dbbf7f6/html5/thumbnails/25.jpg)
ประเภทของข�อผ่�ดพลาดบนระบบประเภทของข�อผ่�ดพลาดบนระบบเค์ร�อข ายเค์ร�อข าย
• ส่�ญญาณบ�ทท!"ได�ร�บผ่�ดพลิาด Bit-level errors (เก�ดจากส่�ญญาณรบกวนทางไฟฟ>า)
• ค์วามผ่�ดพลิาดระด�บเพ-ค์เกต เช้�น เพ-ค์เกตส่�ญหายเน%"องจากเค์ร%อข้�ายต�ดข้�ด
• ค์วามเส่!ยหายข้องลิ�งค์ แลิะ โหนด• ได�ร�บเพ-ค์เกตลิ�าช้�า• ได�ร�บเพ-ค์เกตผ่�ดลิ#าด�บท!"ค์วรจะเป็�น• เพ-ค์เกต หร%อข้�อค์วามถู�กด�กฟ9ง
Type of Error
![Page 26: โหนด (Node): PC, special-purpose hardware… hosts switches](https://reader036.vdocuments.mx/reader036/viewer/2022062423/56814e5b550346895dbbf7f6/html5/thumbnails/26.jpg)
Reliable Byte-Stream Reliable Byte-Stream (TCP)(TCP)
โปรโต่ค์อลระห้วิ างต่%วิส่ งและต่%วิร%บโปรโต่ค์อลระห้วิ างต่%วิส่ งและต่%วิร%บ(End-to-End Protocols)(End-to-End Protocols)
• เค์ร%อข้�ายท!"รองร�บอย��ภายใต�เป็�นแบบbest-effort network– เพ-ค์เกตอาจส่�ญหายได�– เพ-ค์เกตอาจมาถู$งส่ลิ�บลิ#าด�บ– เพ-ค์เกตอาจถู�กส่�งซ์#&าซ์�อน– เพ-ค์เกตอาจถู�กจ#าก�ดข้นาด– เพ-ค์เกตอาจใช้�เวลิานานมากในการส่�งผ่�าน+
e-e Protocol
![Page 27: โหนด (Node): PC, special-purpose hardware… hosts switches](https://reader036.vdocuments.mx/reader036/viewer/2022062423/56814e5b550346895dbbf7f6/html5/thumbnails/27.jpg)
ส่ถาป6ต่ยกรรมอ�นเต่อร�เนต่ส่ถาป6ต่ยกรรมอ�นเต่อร�เนต่• น�ยามโดย Internet Engineering
Task Force (IETF)•รวมถู$งการน�ยามการเช้%"อมต�อระด�บ
โป็รแกรมป็ระย กต เช้�น FTP, HTTP)
…
FTP HTTP NV TFTP
TCP UDP
IP
NET1 NET2 NETn
Service Internet
![Page 28: โหนด (Node): PC, special-purpose hardware… hosts switches](https://reader036.vdocuments.mx/reader036/viewer/2022062423/56814e5b550346895dbbf7f6/html5/thumbnails/28.jpg)
การบร�การของ โปรโต่ค์อลระห้วิ างต่%วิส่ งและต่%วิร%บ
–ร�บป็ระก�นการส่�งข้�อม�ลิ– ร�บข้�อม�ลิตามลิ#าด�บ ท!"ข้�อม�ลิน�&นได�ถู�กส่�ง–จ�ดการส่�งผ่�านข้�อม�ลิเพ!ยงหน$"งช้ ด–รองร�บการท#างานในข้นาดข้�อม�ลิข้นาดใหญ�– รองร�บการ synchronization–ต�วร�บส่ามารถูค์วบค์ มป็ร�มาณข้�อม�ลิท!"ถู�กส่�ง
ผ่�านจากต�วส่�งได�– รองร�บการท#างานข้องหลิายโป็รเซ์ส่ บนหน$"ง
โหนด
Service Internet2
![Page 29: โหนด (Node): PC, special-purpose hardware… hosts switches](https://reader036.vdocuments.mx/reader036/viewer/2022062423/56814e5b550346895dbbf7f6/html5/thumbnails/29.jpg)
TCP (Transmission Control Protocol) • Connection-
oriented• Byte-stream
– โป็รเซ์ส่ส่�งเป็�น bytes– TCP ส่�ง
segments– โป็รเซ์ส่ร�บเป็�น bytes
Application process
W ritebytes
TCP
Send buffer
Segment Segment Segment
Transmit segments
Application process
Readbytes
TCP
Receive buffer
…
… …
• ส่�งได�ส่องทาง (Full duplex)• ม! Flow control ส่#าหร�บค์วบค์ ม
ป็ร�มาณข้�อม�ลิม�ให�เก�นค์วามส่ามารถูข้องต�วร�บ
• Congestion control: ส่#าหร�บค์วบค์ มป็ร�มาณข้�อม�ลิม�ให�เก�นค์วามส่ามารถูข้องเค์ร%อข้�าย
TCP
![Page 30: โหนด (Node): PC, special-purpose hardware… hosts switches](https://reader036.vdocuments.mx/reader036/viewer/2022062423/56814e5b550346895dbbf7f6/html5/thumbnails/30.jpg)
Big Picture
mrouteping traceroute appl.appl.appl. trace
routeappl.
TCP UDP
ICMPv6IPv6
ICMP
IGMP IPv4
ARPRARP
data-linkBPFDLPI
ping-tcp
dump
Application Internet
![Page 31: โหนด (Node): PC, special-purpose hardware… hosts switches](https://reader036.vdocuments.mx/reader036/viewer/2022062423/56814e5b550346895dbbf7f6/html5/thumbnails/31.jpg)
![Page 32: โหนด (Node): PC, special-purpose hardware… hosts switches](https://reader036.vdocuments.mx/reader036/viewer/2022062423/56814e5b550346895dbbf7f6/html5/thumbnails/32.jpg)
![Page 33: โหนด (Node): PC, special-purpose hardware… hosts switches](https://reader036.vdocuments.mx/reader036/viewer/2022062423/56814e5b550346895dbbf7f6/html5/thumbnails/33.jpg)
![Page 34: โหนด (Node): PC, special-purpose hardware… hosts switches](https://reader036.vdocuments.mx/reader036/viewer/2022062423/56814e5b550346895dbbf7f6/html5/thumbnails/34.jpg)
![Page 35: โหนด (Node): PC, special-purpose hardware… hosts switches](https://reader036.vdocuments.mx/reader036/viewer/2022062423/56814e5b550346895dbbf7f6/html5/thumbnails/35.jpg)
![Page 36: โหนด (Node): PC, special-purpose hardware… hosts switches](https://reader036.vdocuments.mx/reader036/viewer/2022062423/56814e5b550346895dbbf7f6/html5/thumbnails/36.jpg)
![Page 37: โหนด (Node): PC, special-purpose hardware… hosts switches](https://reader036.vdocuments.mx/reader036/viewer/2022062423/56814e5b550346895dbbf7f6/html5/thumbnails/37.jpg)
![Page 38: โหนด (Node): PC, special-purpose hardware… hosts switches](https://reader036.vdocuments.mx/reader036/viewer/2022062423/56814e5b550346895dbbf7f6/html5/thumbnails/38.jpg)