{"id":63,"date":"2011-11-22T19:55:08","date_gmt":"2011-11-22T19:55:08","guid":{"rendered":"http:\/\/microsoftgeek.com\/?p=63"},"modified":"2011-11-22T19:55:51","modified_gmt":"2011-11-22T19:55:51","slug":"how-encapsulation-works-within-the-tcpip-model","status":"publish","type":"post","link":"https:\/\/microsoftgeek.com\/?p=63","title":{"rendered":"How Encapsulation works within the TCP\/IP Model"},"content":{"rendered":"<p>In the previous section we  reviewed the TCP\/IP and OSI model. For the sake of clarity, we will be  using the TCP\/IP model to demonstrate encapsulation, as compared to the  OSI model. If you are still struggling with grasping concepts of the  TCP\/IP model you may wish to view the previous section once more.  Otherwise, onward to the encapsulation process!<\/p>\n<h3>The TCP\/IP Model<\/h3>\n<p>As we learned in the previous section, the TCP\/IP model has four layers. You can view a diagram of the model below.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/www.learn-networking.com\/wp-content\/oldimages\/tcp-ip-model.jpg\" alt=\"tcp ip model\" width=\"246\" height=\"174\" \/><\/p>\n<p>Keep in mind that we divide the stack into four separate layers  because they each perform a certain role or task. As data is being sent  from one computer, it will pass from the top layer to the bottom. On the  receiving end, the data will then be rebuilt from the bottom layer to  the top. You can view an example of this process below.<\/p>\n<p><img decoding=\"async\" src=\"http:\/\/www.learn-networking.com\/wp-content\/oldimages\/tcp-ip-encapsulation.jpg\" alt=\"tcp ip encapsulation\" \/><\/p>\n<p>Each layer a packet of information travels through adds what is  called a header. Think of it in terms of a Russian doll. You\u2019re probably  familiar with them: each doll has another smaller doll inside of it.  Just like the dolls, each layer a sending packet passes through gains  another header (or doll). When the packet is being rebuilt on the  receiving end, each header is unpackaged the same way. You can see an  example of a sending packet gaining header information below.<\/p>\n<p><img decoding=\"async\" src=\"http:\/\/www.learn-networking.com\/wp-content\/oldimages\/tcp-ip-headers.jpg\" alt=\"tcp ip headers\" \/><\/p>\n<p>Note that at the receiving end, we would have the reverse process  (Headers would be taken away at each layer, until the receiving packet  is by itself.)<\/p>\n<p>Since each layer of the TCP\/IP model does a unique task separate of  the other layers, we refer to the data package at each layer with  different names. For instance, the data package at the Application Layer  is called a message, while the same data package at the Internet Layer  is called a datagram. Review the diagram below for the complete list of  names.<\/p>\n<p><img decoding=\"async\" src=\"http:\/\/www.learn-networking.com\/wp-content\/oldimages\/datagram-segment-frame.jpg\" alt=\"datagram segment frame\" \/><\/p>\n<p>Notice that the Transport Layer may have one of two names- a segment  or a datagram. If the TCP protocol is being used, it is called a  segment. If the UDP protocol is being used, it is called a Datagram.<\/p>\n<p>The data then passes through the Internet Layer onto the Network  Access Layer, where a frame is created. Once the data packet leaves this  level it is converted into a bitstream of electrical pulses, commonly  referred to as 1\u2019s and 0\u2019s.<\/p>\n<p>Finally, you should note that Cisco demands CCNA students to know  specific information on the Data Link Layer and encapsulation. As you  can see, we haven\u2019t used the OSI model, but the TCP\/IP model (so we use  the Network Access Layer as opposed to the Data Link and Physical  Layer). Specifically, Cisco demands that students know that packets are  packaged into frames at the Data Link Layer. And, like other layers, a  header and trailer are added to the information at the Data Link Layer.  You can see the encapsulation process with the OSI model below.<\/p>\n<p><img decoding=\"async\" src=\"http:\/\/www.learn-networking.com\/wp-content\/oldimages\/osi-encapsulation.jpg\" alt=\"osi encapsulation\" \/><\/p>\n<p>We know what you\u2019re thinking- where\u2019s a good pneumonic when you need  it? The easiest one we could find was \u201cDirty Sick People Feel Bad,\u201d  whereas each letter of each word corresponds to Data, Segments, Packets,  Frames, and Bits.<\/p>\n<h3>Putting it All Together<\/h3>\n<p>Now that we have the basics down, we can finally review  the entire process of data encapsulation. Refer to the below list to  see a real-life example of encapsulation. If needed, you can view the  above diagrams if you get lost.<\/p>\n<p><strong>The Data Encapsulation Process<\/strong><\/p>\n<ul>\n<hr \/>\n<li> <strong>1.<\/strong> One computer requests to send data to another over a network.<\/li>\n<li><strong>2.<\/strong> The data message flows through the Application Layer by using a TCP or UDP port to pass onto the internet layer.<\/li>\n<li><strong>3.<\/strong> The data segment obtains logical addressing at  the Internet Layer via the IP protocol, and the data is then  encapsulated into a datagram.<\/li>\n<li><strong>4.<\/strong> The datagram enters the Network Access Layer,  where software will interface with the physical network. A data frame  encapsulates the datagram for entry onto the physical network. At the  end of the process, the frame is converted to a stream of bits that is  then transmitted to the receiving computer.<\/li>\n<li><strong>5.<\/strong> The receiving computer removes the frame, and  passes the packet onto the Internet Layer. The Internet Layer will then  remove the header information and send the data to the Transport layer.  Likewise, the Transport layer removes header information and passes data  to the final layer. At this final layer the data is whole again, and  can be read by the receiving computer if no errors are present.<\/li>\n<hr \/>\n<\/ul>\n<p>And there you have it: encapsulation at its finest. We realize that  encapsulation isn\u2019t the easiest concept to grasp, but steady review of  this and previous sections will ensure you will grasp the concept soon  enough.<\/p>\n<h3>Closing Comments<\/h3>\n<p>Data encapsulation allows devices to communicate, and therefore, it  is completely necessary to learn. It is present on networking exams such  as the CCNA, so be sure to review these concepts before exam day.<\/p>\n<p>In the following sections we\u2019ll be looking at each layer in more  specifics. The next section we will review the Network Access Layer in  particular. Physical addresses, frames and LAN technology- clearly we  will have our hands full!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>In the previous section we reviewed the TCP\/IP and OSI model. For the sake of clarity, we will be using the TCP\/IP model to demonstrate encapsulation, as compared to the OSI model. If you are still struggling with grasping concepts of the TCP\/IP model you may wish to view the previous section once more. Otherwise, [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-63","post","type-post","status-publish","format-standard","hentry","category-networking-stuff"],"_links":{"self":[{"href":"https:\/\/microsoftgeek.com\/index.php?rest_route=\/wp\/v2\/posts\/63","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/microsoftgeek.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/microsoftgeek.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/microsoftgeek.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/microsoftgeek.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=63"}],"version-history":[{"count":3,"href":"https:\/\/microsoftgeek.com\/index.php?rest_route=\/wp\/v2\/posts\/63\/revisions"}],"predecessor-version":[{"id":66,"href":"https:\/\/microsoftgeek.com\/index.php?rest_route=\/wp\/v2\/posts\/63\/revisions\/66"}],"wp:attachment":[{"href":"https:\/\/microsoftgeek.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=63"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/microsoftgeek.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=63"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/microsoftgeek.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=63"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}