<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Christian Costa</title>
    <description>The latest articles on DEV Community by Christian Costa (@christiancost47).</description>
    <link>https://dev.to/christiancost47</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F280307%2Fe0bb28fa-3bdd-4dc5-ad40-3b35c1c262c1.jpeg</url>
      <title>DEV Community: Christian Costa</title>
      <link>https://dev.to/christiancost47</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/christiancost47"/>
    <language>en</language>
    <item>
      <title>TCP/IP vs ISO/OSI for Beginners</title>
      <dc:creator>Christian Costa</dc:creator>
      <pubDate>Thu, 04 Jun 2020 21:51:57 +0000</pubDate>
      <link>https://dev.to/christiancost47/tcp-ip-vs-iso-osi-for-beginners-1b09</link>
      <guid>https://dev.to/christiancost47/tcp-ip-vs-iso-osi-for-beginners-1b09</guid>
      <description>&lt;p&gt;As said in a &lt;a href="https://dev.to/christiancost47/the-origins-of-computer-networks-a-developers-guide-5nc"&gt;previous post&lt;/a&gt; the various manufacturers protocols led to the stacks standardization, in order to bring everyone to the same page. In this post we'll talk more about the two models and what differentiate one from another.&lt;/p&gt;

&lt;h1&gt;
  
  
  Encapsulation
&lt;/h1&gt;

&lt;p&gt;Before we talk about each model and each individual layer of each, let's talk quickly about encapsulation and the reason that there is such a division by layers.&lt;br&gt;
For both models the use of layers serves to represent in smaller parts each logical function that occurs in the communication process between two entities.&lt;/p&gt;

&lt;p&gt;Each layer plays a role in creating and attaching information that describe the data in transport. This information attachment process is called encapsulation, and works in a similar way to sending a package by mail, in the middle of the way your delivery comes out of the store stock in which the purchase was made, is forwarded to the core distribution center, then to the regional distribution center, directed to the responsible courier, until you reach your address. At each stage to transport your order received ways to identify who was the sender and who would be the recipient, as well as occurs in the encapsulation.&lt;/p&gt;

&lt;h2&gt;
  
  
  Quick Note: Top Down or Botton&amp;nbsp;Up
&lt;/h2&gt;

&lt;p&gt;Several authors use different approaches when dealing with both models, starting from the bottom up or from the top down. For being considered the most didactic here we will use the Top-Down approach.&lt;/p&gt;

&lt;h1&gt;
  
  
  TCP/IP Stack
&lt;/h1&gt;

&lt;p&gt;In the early 1970s was born in the Department of Defense(DoD) of the United States the ARPANET (ARPA: Advanced Research Project Agency). The first protocol used in this military network was called NCP (Network Control Protocol) however, this protocol was not able to support the increasing data traffic in the network and it was necessary to develop a new solution to meet the demand, which came to be the TCP/IP suite of protocols (Transmission Control Protocol/Internet Protocol).&lt;/p&gt;

&lt;p&gt;After a few years the ARPANET which until then was a military project, left the DoD basement and its use was allowed initially in universities and later its civil use was released, thus giving birth to World Wide Web.&lt;/p&gt;

&lt;p&gt;This change forced the manufacturers that until then followed their own standards, to use the TCP/IP protocols, otherwise their users could not access the internet.&lt;/p&gt;

&lt;h2&gt;
  
  
  The Four&amp;nbsp;Layers
&lt;/h2&gt;

&lt;p&gt;As mentioned in the beginning, we'll consider that this model has four layers, being:&lt;/p&gt;

&lt;p&gt;4 - Application&lt;br&gt;
3 - Transport&lt;br&gt;
2 - Internet&lt;br&gt;
1 - link&lt;/p&gt;

&lt;h3&gt;
  
  
  4th Layer: Application
&lt;/h3&gt;

&lt;p&gt;The application layer is the user interface when accessing a TCP/IP network and is responsible for meeting access requests. Many of the most well-known protocols are in this layer, such as the case of HTTP (Hypertext Transfer Protocol), responsible for ordering web pages; the FTP (File Transfer Protocol) responsible for transferring file between entities and SMTP (Simple Mail Transfer Protocol) in charge of providing transfer of messages via email.&lt;/p&gt;

&lt;h3&gt;
  
  
  3rd Layer: Transportation
&lt;/h3&gt;

&lt;p&gt;When a message is transmitted over the network it is not sent at once, but fragmented into smaller parts, called packets. The transport layer is responsible for this task of fragmentation and transmission, always so that all packages reach their destination without loss and in the correct order. The services of this layer are said to be connected precisely by this guaranteed message delivery functionality.&lt;br&gt;
The protocols of this layer responsible for these tasks are the TCP (Transmission Control Protocol - Transmission Control Protocol), which names the model and the UDP (User Datagram Protocol - User Datagram Protocol).&lt;/p&gt;

&lt;h3&gt;
  
  
  2nd Layer: The&amp;nbsp;Network
&lt;/h3&gt;

&lt;p&gt;The Network layer has the function of identifying the package destination based on its logical identification. This mechanism to carry out this identification is the famous IP address, which differentiates an object from everyone else on the same network, and is based on a numbering system to identify whether the destination is local (on the same network) or remote (on a different network). The protocol that accomplishes this task of identification is the IP (Internet Protocol - Internet Protocol), which together with TCP baptizes the model.&lt;/p&gt;

&lt;h3&gt;
  
  
  1st Layer: The&amp;nbsp;Link
&lt;/h3&gt;

&lt;p&gt;A link is a "meeting point" between a machine and an access device. For example, your home's internet modem and your computer. The link layer converts a logical identifier, in the case of the IP address, into a physical identifier, for example the MAC address (Media Access Identifier - Media Access Identifier). The case of the MAC address applies to the use of the Ethernet protocol, but in addition to this layer is also our dear WiFi protocol.&lt;/p&gt;

&lt;h1&gt;
  
  
  What about the OSI Model?
&lt;/h1&gt;

&lt;p&gt;In addition to the need to use the TCP/IP model to access the Internet, the companies finally realized that putting everyone on the same page following an established model they could sell more of their products. The entity responsible for developing this standard was the International Organization for Standardization (ISO ), thus creating the Open Systems Interconnection model (OSI ). This model is called Open Systems, as it refers to open devices to communicate with other devices.&lt;/p&gt;

&lt;h2&gt;
  
  
  The Seven&amp;nbsp;Layers
&lt;/h2&gt;

&lt;p&gt;The OSI model layers are as follows:&lt;/p&gt;

&lt;p&gt;7 - Layer of Application&lt;br&gt;
6 - Layer of Presentation&lt;br&gt;
5 - Layer of Session&lt;br&gt;
4 - Layer of Transport&lt;br&gt;
3 - Layer of Network&lt;br&gt;
2 - Layer of link&lt;br&gt;
1 - The Physical Layer&lt;/p&gt;

&lt;p&gt;Note that the layers of Application(7), Transport(4), Network(3), and Link(2), are the same as those that appear in the TCP/IP model. Therefore, to avoid repetition, we'll consider the OSI model should be considered as the TCP/IP model, with the addition of layers of Presentation(6), Session(5), and Physical(1).&lt;/p&gt;

&lt;h3&gt;
  
  
  6th Layer: Presentation
&lt;/h3&gt;

&lt;p&gt;The sixth layer is responsible for ensuring the transmission of data from the previous layer (Application) in a comprehensible manner. However the presentation layer does not perform a translation work transmits to the layer below with the necessary means for the message to be translated.&lt;/p&gt;

&lt;h3&gt;
  
  
  5th Layer:&amp;nbsp;Session
&lt;/h3&gt;

&lt;p&gt;The fifth layer is called "Session Layer" as it allows two different machines to establish sessions between them. The establishment of sessions makes it possible to perform dialogue control, that is, to maintain control of which machine is the turn to transmit); token control, which prevents the machines to do equal and simultaneous actions; and synchronization, i.e., check long transmissions to enable resumption at the same point where there was an interruption.&lt;/p&gt;

&lt;h3&gt;
  
  
  1st Layer:&amp;nbsp;Physical
&lt;/h3&gt;

&lt;p&gt;The lower layer of the OSI model is responsible for the transmission of raw data (zeros and 1's) by the network through a communication channel (optical fiber, copper or wireless) that represents all bits.&lt;/p&gt;

&lt;p&gt;The way these bits are represented depends on the medium used. In the case of copper use these bits will be represented by the presence or absence of electrical signal. If the medium used is wireless the representation will be made according to the "shape" of the waves. And if it's via optical fiber, the representation uses laser-generated light patterns.&lt;/p&gt;

&lt;h1&gt;
  
  
  Wrapping up
&lt;/h1&gt;

&lt;p&gt;If the goal of using references was standardization, why are there still two rather than just one model? Well, the OSI Model is very effective in being used to represent the processes that occur in each layer, however its protocols are not the same way efficient. By contrast, the protocols present in TCP/IP Model are extremely valuable for the internet as a whole, so TCP/IP is much more practical than OSI. However both models are of great importance so that one does not disqualify the other.&lt;/p&gt;




&lt;p&gt;This post was based in the great Kurose &amp;amp; Ross book &lt;em&gt;Computer Networks and Protocols&lt;/em&gt; and in the Cisco's &lt;em&gt;Networking Fundamentals&lt;/em&gt; book&lt;/p&gt;




&lt;p&gt;Thanks for your reading!&lt;/p&gt;

</description>
      <category>networks</category>
      <category>protocols</category>
    </item>
    <item>
      <title>The Origins of Computer Networks: A Developer's Guide</title>
      <dc:creator>Christian Costa</dc:creator>
      <pubDate>Thu, 04 Jun 2020 16:14:44 +0000</pubDate>
      <link>https://dev.to/christiancost47/the-origins-of-computer-networks-a-developers-guide-5nc</link>
      <guid>https://dev.to/christiancost47/the-origins-of-computer-networks-a-developers-guide-5nc</guid>
      <description>&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--LgyxLhQO--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/i/whh578sh6aod05adpy6g.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--LgyxLhQO--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/i/whh578sh6aod05adpy6g.jpg" alt="Photo by Taylor Vick on Unsplash"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h1&gt;
  
  
  The Early Days
&lt;/h1&gt;

&lt;p&gt;When computers began to spread, very few of them were connected together and for the most part operated isolated. If it was necessary to transfer files between two machines everything was done manually using floppy disks the so called &lt;em&gt;sneakernet&lt;/em&gt;. In the long term this practice has obviously proved inefficient, causing the networks to develop at a faster pace, precisely to optimize this process of resource exchange.&lt;/p&gt;

&lt;h1&gt;
  
  
  The Need for networks
&lt;/h1&gt;

&lt;p&gt;Sharing resources makes the need for networks a key part of the modern world, by playing a role of utmost importance commercially and organizationally. Commercially by cheapening costs in the purchase of software, because instead of the individual charge for each computer a single purchase is made for all network computers. Organizationally by enabling centralized resource management, access control, and optimizing the driver/software update process.&lt;/p&gt;

&lt;p&gt;As Tanenbaum defines: &lt;em&gt;"Computer networks are systems composed of several computers independent and interconnected through the same technology. Two computers are interconnected when there is exchange of information"&lt;/em&gt;. A network only makes sense if there is something to share, which can be a file, folder or access permission. In order for information to be exchanged a transfer medium is needed to connect one entity to another, this “medium” is called transmission mediator, which can be physical (fiber optic, copper) or wireless (Wi-Fi). Once the resources and the means of exchange have been defined, it is necessary to establish a communication agreement.&lt;/p&gt;

&lt;h1&gt;
  
  
  The Prococols
&lt;/h1&gt;

&lt;p&gt;An agreement defines how something should be done. On a network the communication agreement is called &lt;strong&gt;protocol&lt;/strong&gt;. Therefore the protocol defines the order and content of messages exchanged between two entities. In a telephone call between two persons, for example, something similar occurs. When answering the phone, “Hello?” , the opening greeting of a conversation, and when done it is common to say something like “bye”, which defines the end of the call. The same is true of protocols. There is a start message that says “Hey, I am ready to communicate”, then there is the exchange of messages (in the example of the telephone call the conversation between the two people) and the end a closing message.&lt;/p&gt;

&lt;h1&gt;
  
  
  Putting Everyone in the same page
&lt;/h1&gt;

&lt;p&gt;With the rise of computer networks, manufacturers started producing hardware and software on their own, that is, each company developed its own technologies that were compatible only with its products. In this way consumers were always attached to the ecosystem developed by a particular manufacturer.&lt;br&gt;
To solve this mess the industry ended up adopting standard models for communications protocols: the &lt;strong&gt;TCP/IP Model&lt;/strong&gt;, which has four layers and the &lt;strong&gt;ISO OSI Model&lt;/strong&gt; that has seven layers. &lt;/p&gt;

&lt;p&gt;In fact the TCP/IP is the "Original Stack" as it essentially gave birth to the internet as we know, but this will be the matter for our next post! Thanks for your reading, see you!&lt;/p&gt;

</description>
      <category>protocols</category>
      <category>networks</category>
      <category>guide</category>
    </item>
  </channel>
</rss>
