OSI Model ของ Linux ทำงานอย่างไร
Back to articles

OSI Model ของ Linux ทำงานอย่างไร

OSI Model ของ Linux ทำงานอย่างไร

Linux Updated: February 21, 2026

Network Stack ของ Linux ทำงานอย่างไร

Network Stack หรือ Network Protocol Stack ใน Linux คือชุดของโปรโตคอลและเลเยอร์ต่าง ๆ ที่ใช้ในการจัดการและสื่อสารข้อมูลผ่านเครือข่าย โปรแกรมและการสื่อสารผ่านเครือข่ายใน Linux จะถูกแบ่งออกเป็นชั้นต่าง ๆ ที่รวมกันเพื่อให้การสื่อสารเกิดขึ้นได้อย่างมีประสิทธิภาพและเป็นระเบียบ ชั้นเหล่านี้มักจะถูกแบ่งออกเป็นพื้นฐานของ OSI Model หรือ TCP/IP Model โดยประกอบด้วยชั้นต่าง ๆ ดังนี้:

  1. Physical Layer: ชั้นนี้เกี่ยวข้องกับข้อกำหนดเชื่อมต่อฮาร์ดแวร์ทางฟิสิกส์ เช่น การเชื่อมต่อสายสัญญาณและการส่งข้อมูลทางไปข้าม.
  1. Data Link Layer: ชั้นนี้จัดการกับเรื่องของข้อผิดพลาดในการส่งข้อมูลทางเครือข่าย โดยใช้ MAC Address เพื่อระบุอุปกรณ์ในเครือข่าย.
  1. Network Layer: ชั้นนี้รับผิดชอบในการเปรียบเทียบและเลือกเส้นทางในการส่งข้อมูลจากแหล่งที่มาถึงปลายทาง โดยใช้ IP Address เพื่อระบุอุปกรณ์และตำแหน่งในเครือข่าย.
  1. Transport Layer: ชั้นนี้มีหน้าที่ในการจัดการเรื่องของการส่งข้อมูลอย่างมีประสิทธิภาพระหว่างเครื่องในเครือข่าย โปรโตคอลเช่น TCP (Transmission Control Protocol) และ UDP (User Datagram Protocol) ถูกใช้งานในชั้นนี้.
  1. Session Layer, Presentation Layer, และ Application Layer: ชั้นเหล่านี้เป็นชั้นบนสุดของสโตร์ค ในบางระบบมักจะรวมเข้าด้วยกัน ในนี้จะมีโปรแกรมและการสื่อสารที่เกี่ยวข้องกับแอปพลิเคชันและการแสดงผลข้อมูล โปรแกรมเช่นเว็บเบราว์เซอร์และอีเมลล์ไคลเอนต์จะทำงานในชั้นนี้.

ใน Linux, Network Stack จะถูกบริหารจัดการโดย Kernel ซึ่งเป็นส่วนของระบบปฏิบัติการที่จัดการกับการเชื่อมต่อเครือข่ายและการสื่อสารผ่านเครือข่าย แต่ละชั้นจะมีโปรแกรมและโค้ดที่เกี่ยวข้องกับการดำเนินการต่าง ๆ ในแต่ละชั้น เช่น การจัดการ IP Address และการส่งข้อมูลใน Network Layer หรือการจัดการ TCP Connections ใน Transport Layer ซึ่งคอยให้ความสำคัญกับประสิทธิภาพ ความเชื่อมต่อที่เสถียร และการจัดการข้อผิดพลาดในการสื่อสารเครือข่าย.

D

DriteStudio | ไดรท์สตูดิโอ

Cloud, VPS, Hosting and Colocation provider in Thailand

Operated by Craft Intertech (Thailand) Co., Ltd.

Manage your cookie settings

We use different types of cookies to optimize your experience on our website. Click on the categories below to learn more and customize your preferences. Note that blocking some types of cookies may impact your experience.

Necessary Cookies

These cookies are essential for the website to function properly. They enable basic functions like page navigation and access to secure areas.

View cookies used
  • Session cookies (session management)
  • Security cookies (CSRF protection)
Always On

Functional Cookies

These cookies enable personalized features like language preferences and theme settings. Without these, some features may not work properly.

View cookies used
  • lang (language preference)
  • theme (dark/light mode)

Analytics Cookies

These cookies help us understand how visitors interact with our website by collecting and reporting information anonymously.

View cookies used
  • _ga (Google Analytics)
  • _gid (Google Analytics)

Marketing Cookies

These cookies are used to track visitors across websites to display relevant advertisements based on your interests.

View cookies used
  • Advertising cookies
  • Remarketing pixels

Privacy Policy