Chapter 5. Network Devices Section 3.1.1, then the tasks of a network adapter extend over layers 1 and 2a: They include all tasks dealing with datasignaldata conversion (and media access in the case of shared media). All higher-order protocol functions are handled by the protocol instances of the respective operating system. This interface is characterized by the following properties:[1] This view is limited to software-based communication systems on PC basis. More instances are normally implemented in hardware for dedicated systems. interfacing between specialized hardware in the network adapters and software-based protocols;asynchronous input and output point of the protocol stack in the operating system kernel. In the network architecture of the Linux operating systems, this interface between software-based protocols and network adapters is implemented by the concept of network devices. A network-device interface primarily should meet the following requirements:Abstract from the technical properties of a network adapter: Network adapters might implement different layer-1 and layer-2 protocols and are manufactured by different vendors. This means that their configurations are individual and specific to each network adapter. For this reason, we need a piece of software for each adapter to communicate with the hardware: the driver of a network adapter (which is, by the way, also a protocol).Provide a uniform interface for access by protocol instances: Section 3.1), these instances should be implemented independently of a specific type of adapter. This means that network adapters should have a uniform interface to the higher layers. In the Linux kernel, these two tasks are handled by the concept of network devices and are often seen as one single unit. However, it makes sense to distinguish between the two views of network devices and discuss them separately. For this reason, the following section introduces the network-device interface visible from the "top," which offers a uniform interface to the higher protocol instances for physical transmission of data. Later on, Section 5.3 will discuss the "lower" half: the adapter-specific functions that are the actual network driver. Subsequently, Chapter 6 will introduce an example describing how a packet is sent and received on the level of network devices interfacing to the higher protocols.Not every network device in the Linux kernel represents a physical network adapter. There are network devices, such as the loopback network device, that offer a logical network functionality. The interface of network devices is also often used to bind protocols, such as the point-to-point protocol (PPP).
[View full size image] | |
|