In-depth understanding of Linux Network-PARTI-General Background
Source: Internet
Author: User
Learn more about Linux Network-PARTI-general background-Linux Enterprise Application-Linux server application. This part is required for your smooth understanding of the rest of the book. If you are familiar with the Linux kernel or you are an old software engineer, you will finish these chapters very quickly. For other readers, I suggest getting familiar with this part before starting other parts of the book:
Chapter 1: Introduction
The main purpose of this chapter is to introduce some common programming modes and techniques that you will often encounter in some source code of the network.
Chapter 2 important data structures
In this chapter, you will see a detailed description of the two important data structures used in the network code: socket buffer structure sk_buff and network device structure net_device.
Chapter 3: interfaces from user space to Kernel
Each Linux Network feature discussed in this book ends with a section that describes how a user space tool communicates with the kernel. The information in this chapter will help you better understand these sections.
Chapter 1 Introduction
Studying the source code of a large project is like entering a new world with its own customs and language. It is useful to learn some major local customs in advance and try to communicate with the local residents instead of avoiding them.
This chapter describes some common programming modes and techniques that you will often encounter in some network code.
If possible, I encourage you to try to use a user space tool to interact with some code on a specific network. If you haven't installed these tools on your Linux release, or you just want to upgrade them to the latest version, in this chapter, I will tell you where to download some information to those tools.
I will also introduce some tools that allow you to easily traverse huge source code. Finally, I will briefly explain why some kernel features have not been integrated into the official release, although they have been widely used in the Linux community.
Basic Terms
In this section, I will introduce some widely used terms and acronyms in this book.
8 bits are usually called octets in the network field. However, in this book, I will use more general terms byte ). After all, this book describes kernel behaviors rather than network abstraction, and kernel developers are more accustomed to byte usage.
Vector and array will be used for interaction.
When talking about the layer of the TCP/IP protocol stack, I will replace the data link layer, network layer, and transmission layer with the abbreviations L2, L3, and L4 respectively. The numbers in the abbreviation are based on the famous (maybe not now) layer-7 OSI model. In most cases, L2 will be synonymous with Ethernet. L3 represents IPv4 or IPV6, while L4 is UDP, TCP, ICMP, and other protocols. When I want to mention a specific protocol, I will use its name (such as TCP) instead of the term "Ln Layer Protocol ".
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service