Please note, this is a STATIC archive of website developer.mozilla.org from 03 Nov 2016, cach3.com does not collect or store any user information, there is no "phishing" involved.

Revision 690577 of How networks talk with each other

  • Revision slug: Learn/How_networks_talk_with_each_other
  • Revision title: How networks talk with each other
  • Revision id: 690577
  • Created:
  • Creator: Andrew_Pfeiffer
  • Is current revision? No
  • Comment

Revision Content

In this article, we discuss what happens when information traverses the Internet.

Prerequisites: You need to know what a network is.
Objective: Learn how computer networks send data across the Internet.
 

To pass through a network, data must go through many processes to make sure it arrives accurately. The seven layer schema of the OSI model (Open Systems Interconnection) provides a helpful way to conceptualize the journey of data across the network:

  1. The user sees only the first layer, the application layer. This layer converts a message's data into bits and attaches a header identifying the sending and receiving computers.
  2. The presentation layer translates the data into an encoding that the receiving computer will recognize (often ASCII, a way of encoding text as bits). This layer also compresses and encrypts the data, and adds another header to specify which conventions have been used for encoding, compression, and encryption.
  3. The session layer opens communications. It sets boundaries (called brackets) for the beginning and end of the message and establishes whether the message will be sent half duplex (the computers take turns sending and receiving) or full duplex (both computers send and receive at the same time). The details of these decisions are placed in a session header.
  4.  
  5. The transport layer protects the data being sent. It subdivides the data into segments and creates checksum tests - mathematical sums based on the contents of data - that can be used later to check if the data was scrambled. It also makes backup copies of the data. This layer attaches a header which identifies each segment's checksum and it's position in the message.
  6. The "network layer" selects a route for the message. It forms segments into packets, counts them, and adds a header containing the sequence of packets and the address of the receiving computer.
  7. The "data-link layer" supervises the transmission. It confirms the checksum, and then addresses and duplicates the packets. This layer keeps a copy of each packet until it receives a confirmation from the next point along the route that the packet has reached un-damaged.
  8. The "physical layer" encodes the packets into the medium that will carry them - such as an analog signal, if the message is going across a telephone line - and sends the packets along that medium.

At the receiving node, the seven layered process that sent the message is reversed. The "physical layer" reconverts the message into bits. The data-link layer recalculates the checksum, confirms arrival, and logs in the packets. The network layer recounts incoming packets for security. The transport layer recalculates the checksum and reassembles the message segments. The session layer holds the parts of the message until it is complete and sends it to the next layer. The presentation layer decrypts, expands, and translates the message. The application layer identifies the recipient, converts the bits into readable characters, and directs the data to the correct application. 

         

Revision Source

<p>In this article, we discuss <em>what happens when information traverses the Internet.</em></p>
<table class="standard-table learn-box">
 <tbody>
  <tr>
   <th scope="row">Prerequisites:</th>
   <td>You need to know what a network is.</td>
  </tr>
  <tr>
   <th scope="row">Objective:</th>
   <td>Learn how computer networks send data across the Internet.<br />
    &nbsp;</td>
  </tr>
 </tbody>
</table>
<p><img alt="" src="https://mdn.mozillademos.org/files/8647/7layers.jpg" style="width: 400px; height: 313px;" /></p>
<p>To pass through a network, data must go through many processes to make sure it arrives accurately. The <em><strong>seven layer schema </strong></em>of the OSI model (Open Systems Interconnection) provides a helpful way to conceptualize the journey of data across the network:</p>
<ol>
 <li>The user sees only the first layer, the <strong>application layer. </strong>This layer converts a message's data into bits and attaches a header identifying the sending and receiving computers.</li>
 <li>The <em><strong>presentation layer</strong> translates</em> the data into an encoding that the receiving computer will recognize (often ASCII, a way of encoding text as bits). This layer also <em>compresses </em>and <em>encrypts</em> the data, and adds another header to specify which conventions have been used for encoding, compression, and encryption.</li>
 <li>The <strong><em>session layer</em></strong> <em>opens communications</em>. It sets boundaries (called brackets) for the beginning and end of the message and establishes whether the message will be sent half duplex (the computers take turns sending and receiving) or full duplex (both computers send and receive at the same time). The details of these decisions are placed in a session header.</li>
 <li>&nbsp;</li>
 <li>The <strong>transport layer&nbsp;</strong>protects the data being sent. It subdivides the data into segments and creates checksum tests - mathematical sums based on the contents of data - that can be used later to check if the data was scrambled. It also makes backup copies of the data. This layer attaches a header which identifies each segment's checksum and it's position in the message.</li>
 <li>The <em>"network layer"</em> <em>selects a route</em> for the message. It forms segments into packets, counts them, and adds a header containing the sequence of packets and the address of the receiving computer.</li>
 <li>The "<em>data-link layer"</em> <em>supervises the transmission</em>. It confirms the checksum, and then addresses and duplicates the packets. This layer keeps a copy of each packet until it receives a confirmation from the next point along the route that the packet has reached un-damaged.</li>
 <li>The <em>"physical layer"</em> <em>encodes</em> the packets into the medium that will carry them - such as an analog signal, if the message is going across a telephone line - and sends the packets along that medium.</li>
</ol>
<p>At the receiving node, the seven layered process that sent the message is reversed. The <em>"physical layer"</em> <em>reconverts the message</em> into bits. The <em>data-link layer</em> recalculates the checksum, confirms arrival, and logs in the packets. The <em>network layer</em> recounts incoming packets for security. The <em>transport layer</em> recalculates the checksum and reassembles the message segments. The <em>session layer</em> holds the parts of the message until it is complete and sends it to the next layer. The <em>presentation layer</em> decrypts, expands, and translates the message. The <em>application layer</em> identifies the recipient, converts the bits into readable characters, and directs the data to the correct application.&nbsp;</p>
<p>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;</p>
Revert to this revision