嵌入式linux中文站在线图书

Previous Page
Next Page

Part III: Transmission and Reception

The aim of these five chapters is to put into context all the features that can influence the path of a packet inside the kernel, and to give you an idea of the big picture. You will see what each subsystem is supposed to do and when it comes into the picture. This chapter will not touch upon routing, which has a large chapter of its own, or firewalling, which is beyond the scope of this book.

In general usage, the term transmission is often used to refer to communications in any direction. But in kernel discussions, transmission refers only to sending frames outward, whereas reception refers to frames coming in. In some places, I use the terms ingress for reception and egress for transmission.

Forwarded packetswhich both originate and terminate in remote systems but use the local system for routingconstitute yet another category that combines elements of reception and transmission. Some aspects of forwarding are presented in Chapter 10; a more thorough discussion appears in Parts V and VII.

We saw in Chapter 1 the difference between the terms frame, datagram, and packet. Because the chapters in Part III discuss the interface between L2 and L3, both the terms frame and packet would be correct in most cases. Even though I'll mostly use the term frame, I may sometimes use packet when referring to a data unit with no reference to any particular layer. The word packet is the one most commonly seen in the code we are discussing.

Here is what we will see in each chapter of Part III:


Chapter 9 Interrupts and Network Drivers

In this chapter, you will be given an overview on both bottom half handlers and kernel synchronization mechanisms.


Chapter 10 Frame Reception

This chapter goes on to describe the path through the L2 layer of a received frame.


Chapter 11 Frame Transmission

Chapter 11 does the same as Chapter 10, but for a transmitted (outgoing) frame.


Chapter 12 General and Reference Material About Interrupts

This is a repository of reference material for the previous chapters.


Chapter 13 Protocol Handlers

This chapter will conclude this part of the book with a discussion of how ingress frames are handed to the right L3 protocol receive routines.



Previous Page
Next Page