CCNA Exam Cram[tm] 2 (Exams 640-821, 640-811, 640-801)
There are four general rules that control the operation of the OSI model:
Moving Through the OSI Model from the Application Layer
Let's follow a stream of data as it moves from the Application layer at a sending station to the Application layer at a receiving station. Remember that for a user application to be considered an application at Layer 7, it must require communications to another node or station. Email is an excellent example of a user application requiring communications, and as such is a Layer 7 application. So, starting with an email message at Layer 7, the message is first passed to Layer 6 (Presentation). Layer 6 encrypts and/or compresses the message as required, and passes it to Layer 5 (Session). Now the plot thickens. Starting with Layer 7, the message will move through five steps of encapsulation. Encapsulation is the process of putting something inside of something else, much like placing a letter in an envelope. Each layer from this point on will add information to the message. The additional information includes processing instructions for the same layer (Layer 5) at the receiving station. We say the message is encapsulated because the additional information is added as a header to the front of the message and often includes a trailer at the end of the message. So in our case, the now encrypted and/or compressed message is encapsulated at Layer 5 with information indicating that the message is part of a single session. When information is encapsulated, it becomes a protocol data unit ( PDU ) . Each layer has its own PDU and the name of the PDU for Layer 5 is "data" .
Figure 2.2 shows five levels of encapsulation with associated protocol data units and OSI layers. There is still uncertainty as to whether Layers 6 and 7 should be viewed as encapsulating with a protocol data unit of " data" or as not encapsulating with a protocol data unit of " information unit" . Figure 2.2. Protocol data units and encapsulation.
When a layer formats information from the layer above and adds additional information, usually in the form of a header, the resulting assembly becomes a "Protocol Data Unit" (see Figure 2.2). In effect, the data from the higher layer (the letter) is encapsulated in data from the lower layer (the envelope). Layers 5 through 1 have PDUs with information specific to that layer. PDUs that are specific to a given layer are why only peer layers (layers at the same level) at the sending and receiving station can communicate. If all of this seems a bit murky, read on and it should become clearer. The Transport layer takes the Data PDU from the Session layer, adds additional information as a header (encapsulating), and passes the resulting unit, now called a Segment PDU , to the Network layer. The Network layer in turn encapsulates the Segment into a Packet PDU with a logical source and destination address, and then passes the Packet to the Data Link layer, which encapsulates the Packet into a Frame with a physical source and destination address. The Frame is then passed to the Physical layer where it is turned into a Bits PDU and finally placed on the network medium. If we have done everything right we will have used five steps of encapsulation, while passing through seven layers, and yes you will need to keep all of this straight for the test. Maybe Figure 2.3 will help. Figure 2.3. Data flow between network stations .
Figure 2.3 shows the flow of data between two network stations. Five levels of encapsulation imply the PDUs for Layer 6 and Layer 7 would be an "information unit". Seven levels of encapsulation would use "Data" as the PDU for Layers 5, 6, and 7 and identify the upper two layers as encapsulating. Packet Handling at the Receiving Station (Reversing the Process)
Now that we have gone through seven layers and five steps of encapsulation, what do you think happens at the receiving station? Right, everything happens in reverse as the information flows up the OSI stack. The Physical layer of the receiving station senses voltage on the medium, converts it into Bits , and strips off any other signals placed there by the Physical layer of the sending station. The remaining Frame moves up to the Data Link layer where the physical source and destination address are removed and the resulting Packet is passed to the Network layer. There the logical source and destination address are removed and the remaining Segment is passed to the Session layer. Well, you get the idea. The process of moving up the OSI stack at the destination node is called de-encapsulation and when we finally get the information unit to the Application layer of the receiving station, we have successfully passed data from one node to another as described by the OSI model. |