Mar 11
29
The function of each layer in computer networking architecture is to provide services to the layer above it. The active elements in each layer are often called entities. An entity can be a software entity (such as a process), or a hardware entity (such as an intelligent I/O chip). Entries in the same layer on different machines are called peer entities.
The entities in layer n implement a service used by layer n+1. In this case layer n called the service provider and layer n+1 is called the service user. Layer n may use the services of layer n-1 in order to provide its service. It may offer several classes of service for example, fast, expensive communication and slow, cheap communication. Services are available at SAPs (Service Access Points). The layer n SAPs are the places where layer n+1 can access the services offered. Each SAP has an address that uniquely identifies it.
In order for two layers to exchange information, there has to be an agreed upon set of rules about the interface. At a typical interface, the layer n+1 entity passes an IDU (Interface Data Unit) to the layer n entity through the SAP. The IDU consists of an SDU (Service Data Unit) and some control information. The SDU is the information passes across the network to the peer entity and then up to layer n+1. The control information is needed to help the lower layer so its job (e.g., the number of bytes in the SDU) but is not part of the data itself.
In order to transfer the SDU, the layer n entity may have to fragment it into several pieces, each of which is given a header and sent as a separate PDU(Protocol Data Unit) such as a packet. The PDU headers are used by the peer entities to carry out their peer protocol. They identify which PDUs contain data and which contain control information, provide sequence numbers and counts, as so on.








