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 670843 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: 670843
  • Created:
  • Creator: AfeefRb
  • Is current revision? No
  • Comment

Revision Content

In this article, you will understand the process of sending a piece of information across the Internet.

Prerequisites: You need to know what a network is.
Objective: You will understand how computer networks send data across the Internet.
 
  1. For data to pass through a network, it must pass through seven layers, all designed to make sure the data gets through the network accurately. The first layer, the application layer, is the only part of the process a user sees. This layer converts a message's data into bits and attaches a header identifying the sending and receiving computers.
  2. 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.
  3. The presentation layer translates the data into a language that the receiving computer can understand (often ASCII, a way of encoding text as bits). This layer also compresses and encrypts the data. It adds another header specifying the language as well as compression and encryption.
  4. 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, each computer taking turns sending and receiving, or full duplex, both computers sending and receiving at the same time. The details of these decisions are placed in the session header.
  5. 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.
  6. 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.
  7. 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.
  8. 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, you will understand the process of sending a piece of information across the Internet.</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>You will understand how computer networks send data across the Internet.<br />
    &nbsp;</td>
  </tr>
 </tbody>
</table>
<ol>
 <li>For data to pass through a network, it must pass through seven layers, all designed to make sure the data gets through the network accurately. The first layer, the <em>application layer</em>, is the only part of the process a user sees. This layer converts a message's data into bits and attaches a header identifying the sending and receiving computers.</li>
 <li>The <em>transport layer</em> 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>presentation layer</em> translates the data into a language that the receiving computer can understand (often ASCII, a way of encoding text as bits). This layer also compresses and encrypts the data. It adds another header specifying the language as well as compression and encryption.</li>
 <li>The <em>session layer</em> 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, each computer taking turns sending and receiving, or full duplex, both computers sending and receiving at the same time. The details of these decisions are placed in the session header.</li>
 <li>The <em>network layer</em> 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.</li>
 <li>The <em>data-link layer</em> 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.</li>
 <li>The <em>physical layer</em> 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.</li>
 <li>At the receiving node, the seven layered process that sent the message is reversed. The <em>physical layer</em> reconverts the message 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;</li>
</ol>
<p>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<img alt="" src="https://mdn.mozillademos.org/files/8647/7layers.jpg" style="width: 400px; height: 313px;" /></p>
Revert to this revision