create account

Investigating how computers communicate by robotics101

View this thread on: hive.blogpeakd.comecency.com
· @robotics101 · (edited)
$30.16
Investigating how computers communicate
<p>Hi everyone!</p>
<p> </p>
<p>Before we get started on <a href="https://peakd.com/hive-196387/@robotics101/indoor-garden-or-preliminary-researches">the connected indoor garden project</a>, I wanted to tell you a little bit about communication between electronic devices.</p>
<p> </p>
<figure><img src="https://101robotics.com/wp-content/uploads/2022/04/earth-gaad522b5b_1920-1-1024x507.jpg" alt="" />
<figcaption>Background from <a href="https://pixabay.com/illustrations/earth-globalisation-network-3866609/">Pixabay </a>| Author: <a href="https://pixabay.com/users/thedigitalartist-202249/">TheDigitalArtist</a></figcaption>
</figure>
<p><center><a href="https://peakd.com/hive-196396/@robotics101/comment-communiquent-les-ordinateurs">You can read this post in French here</a></center></p>
<p> </p>
<p>You may have already asked yourself this question in the middle of the big mess created by the far too many norms and standards that each company tries to impose with great difficulty. Many of us also hate having to sacrifice a drawer full of cables with different plugs. And with the arrival of wireless networks with an ever-increasing number (3G, 4G, 5G and soon 6G), one could say that all these technologies are going a bit in all directions.</p>
<p> </p>
<p>And you wouldn't be completely wrong, but behind all these communication methods there is a model that allows to organize all this little world, the OSI model. I imagine it a bit like a classification system similar to the genes in animals that allow to create phylogenetic trees ("family trees for species" if you want to know what I typed in the search engine to find the word phylogenetic).</p>
<p> </p>
<h2>The OSI model :</h2>
<p> </p>
<p>OSI is an acronym for Open Systems Interconnection, it is an ISO standard (therefore proposed by the International Organization for Standardization). But the model is so general that almost all communication modes are included (if we allow the fact that some protocols need less layers). On the other hand, it does not take into account the connectors used which are concerned by other standards (because the same type of connector can be used for different communication protocols).</p>
<p> </p>
<p>The model is divided into 7 layers, which go from the hardware aspect (layer 1) to the software aspect (layer 7). You can see below the list of the 7 layers with the example of what corresponds to each layer for the TCP/IP protocol (the one that goes through the Ethernet cables with RJ45 connectors that you plug on your PCs to access the internet when the Wi-Fi is too slow or non-existent).</p>
<p> </p>
<figure><img src="https://101robotics.com/wp-content/uploads/2022/04/image_2022-04-10_143757.png" alt="" />
<figcaption>Source : <a href="https://commons.wikimedia.org/wiki/File:OSI_Model_v1.svg">Wikimédia</a> | Author : <a href="https://commons.wikimedia.org/wiki/User:Offnfopt">offnofopt </a>| Public Domain</figcaption>
</figure>
<p> </p>
<p>But I guess not everyone is as comfortable with this protocol as the person who created this diagram, so we'll go into a little more detail about what each of these layers means and see if we can also draw a parallel with the human world using letter exchange, for example.</p>
<p> </p>
<h3>Layer #1 : Physical</h3>
<p> </p>
<p>It is here that we decide by which physical means we wish to transmit the information, generally we choose among a digital voltage (0 or 1), analog voltage (can take any value between 2 voltages) in a cable, a transmission by optical fiber or radio frequency.</p>
<p> </p>
<p>For our postal analogy, layer 1 could be paper and ink.</p>
<p> </p>
<h3>Layer #2 : Data Link</h3>
<p> </p>
<p>The Data link is the layer allowing to put in relation 2 users of the same protocol. It is also the layer that takes care of the correction of errors that occurred because of layer 1 (due to electrical noise, among others).</p>
<p> </p>
<p>For me, in the example of the Post Office, layer 2 is represented by the mailboxes. Because it is the way you communicate with the network (it becomes even more true when you receive and send mail from your mailbox).</p>
<p> </p>
<h3>Layer #3 : Network</h3>
<p> </p>
<p>In the OSI model, layer 3 allows you to identify a distant interlocutor (in another network), it is used to correctly direct the information from the sender to the recipient. This is the case of IP addresses for TCP/IP (the example in the image above).</p>
<p> </p>
<p>In the case of the post office, these are postal addresses (e.g. 20 W 34th St, New York, NY 10001, United States). They allow you to get in touch with people outside your immediate circle.</p>
<p> </p>
<h3>Layer #4 : Transport</h3>
<p> </p>
<p>The transport layer is used to format standard ways of sending sequences of information. For websites (which use the http protocol) this means creating packets that are sent successively to the recipients. It is also in this layer that we worry about acknowledgements and the rate of lost packets, if it is a criterion for the protocol.</p>
<p> </p>
<p>For our analogy, we don't need to cut our letter into several pieces to send it, but if it starts to get long (and even very very long), we will need more stamps because of the weight of the letter. Moreover, we can even choose to have a receipt, a tracking number or a registered letter by changing this stamp.</p>
<p> </p>
<h3>Layer #5 : Session</h3>
<p> </p>
<p>Layer 5 enables the creation of a privileged channel between two nodes (devices) in order to accelerate data exchanges between them.</p>
<p> </p>
<p>This layer does not concern postal exchange, an alternative could be found if the postal services allowed you to create a faster direct line between you and the people you exchange with the most. On the other hand, this layer does concern phone calls for example.</p>
<p> </p>
<h3>Layer #6 : Presentation</h3>
<p> </p>
<p>This is where the format of the messages is decided (such as <a href="https://en.wikipedia.org/wiki/ASCII">ASCII </a>or <a href="https://developer.mozilla.org/en-US/docs/Glossary/UTF-8">UTF-8</a>, for example, which assign a binary number to a character), the encryption of the data and the various possible conversions (compression, decompression, protocol conversion).</p>
<p> </p>
<p>For our letter, this layer could as well contain, the language and alphabet or if you are going to use an encryption or not.</p>
<p> </p>
<h3>Layer #7 : Application</h3>
<p> </p>
<p>This is the access point, the layer closest to the user, it can be the browser you are reading this article on or the messaging application you use to contact your relatives.</p>
<p> </p>
<p>For our epistolary example, after much hesitation, I think this layer is most similar to the envelope. It is the envelope that contains the message and on which all the information about the transaction is indicated.</p>
<p> </p>
<h1>Conclusion</h1>
<p> </p>
<p>And so we have covered the 7 layers of the OSI model. Of course, this is not the only model and not necessarily the most used one depending on the field of activity, but in electronics we appreciate this model to separate the different components of a communication protocol.</p>
<p> </p>
<p>I hope you enjoyed this article and have a better idea of how to organize a protocol.</p>
<p> </p>
<p>See you soon</p>
<p> </p>
<h1>Sources</h1>
<p> </p>
<ul>
<li><a href="https://en.wikipedia.org/wiki/OSI_model">OSI Model | Wikipedia</a></li>
<li><a href="http://standards.iso.org/ittf/PubliclyAvailableStandards/s020269_ISO_IEC_7498-1_1994(E).zip">ISO 7498-1:1994 Standard | ISO.org</a></li>
</ul>
<p> </p>
<p> </p>
<p> </p>
<h2>Connected Garden Status:</h2>
<p> </p>
<p>I'll try to keep you informed of my progress in small sections at the end of the articles that concern this project. For the moment, it is the season of purchases, necessary at the beginning of any project and present particularly in spring for the budding gardeners. We have bought the plants and their pots, and I now remember why I didn't wanted to grow in soil at first :</p>
<p> </p>
<figure><img src="https://101robotics.com/wp-content/uploads/2022/04/photo5969996003501259133-768x1024.jpg" alt="" />
<figcaption>It was getting dark outside, so we repot the plants inside, maybe not the best idea of the year</figcaption>
</figure>
<p> </p>
<p>But now everything is cleaned up, and it looks very nice (I think, but I'm biased):</p>
<p> </p>
<figure><img src="https://101robotics.com/wp-content/uploads/2022/04/photo5969996003501259132-648x1024.jpg" alt="" />
<figcaption>The current state of my indoor garden</figcaption>
</figure>
<p> </p>
<p>We have 6 strawberry plants, 1 raspberry (not pi) plant, mint, basil, and chives. You can see below the germinating tray for the lettuce seeds and the container where I will transplant them when they will sprout. You can also see the lights I've added to help them grow.</p>
👍  , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , and 312 others
👎  ,
properties (23)
authorrobotics101
permlinkinvestigating-how-computers-communicate
categoryhive-196387
json_metadata{"app":"peakd/2022.04.5","format":"markdown","tags":["stemsocial","technology","computers","pc","stem"],"users":["robotics101"],"image":["https://101robotics.com/wp-content/uploads/2022/04/earth-gaad522b5b_1920-1-1024x507.jpg","https://101robotics.com/wp-content/uploads/2022/04/image_2022-04-10_143757.png","https://101robotics.com/wp-content/uploads/2022/04/photo5969996003501259133-768x1024.jpg","https://101robotics.com/wp-content/uploads/2022/04/photo5969996003501259132-648x1024.jpg"]}
created2022-04-19 15:18:06
last_update2022-04-19 15:19:27
depth0
children6
last_payout2022-04-26 15:18:06
cashout_time1969-12-31 23:59:59
total_payout_value15.160 HBD
curator_payout_value15.003 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length8,907
author_reputation13,003,325,382,700
root_title"Investigating how computers communicate"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id112,439,711
net_rshares26,308,301,679,822
author_curate_reward""
vote details (378)
@curation-cartel ·
$0.02
![Don-1UP-Cheers-Cartel-250px.png](https://files.peakd.com/file/peakd-hive/curation-cartel/23wgDhXHXhDmLCUp4RXCi4QwSwg2eCBXYV3b8uBMLvQ7BDWDG4eFSyWTp58qTjfu5ULQD.png) |  <div class="phishy"><u><h4>You have received a __1UP__ from @lipe100dedos!</h4></u></div> The following @oneup-cartel family members will soon upvote your post:<br> __<code>@stem-curator</code>__  <br>_And they will bring !PIZZA 🍕_ 
-|-

<sup>[Learn more](https://peakd.com/hive-102223/@flauwy/the-curation-cartel-1up-trigger-smart-voting-mana-and-high-delegation-returns-for-14-different-tribes) about our delegation service to earn daily rewards. Join the family on [Discord](https://discord.gg/H5mxvTrexm).</sup>
👍  ,
properties (23)
authorcuration-cartel
permlinkre-investigating-how-computers-communicate-20220420t063849z
categoryhive-196387
json_metadata"{"app": "beem/0.24.26"}"
created2022-04-20 06:38:51
last_update2022-04-20 06:38:51
depth1
children0
last_payout2022-04-27 06:38:51
cashout_time1969-12-31 23:59:59
total_payout_value0.011 HBD
curator_payout_value0.010 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length684
author_reputation1,123,882,653,763
root_title"Investigating how computers communicate"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id112,458,470
net_rshares21,235,178,264
author_curate_reward""
vote details (2)
@lipe100dedos ·
$0.02
Love this kind of content.
Thanks for sharing.
!1UP
![cartel_curator_final.gif](https://images.ecency.com/DQmbgnUPDzyz6wXXQRgLj12XB1zwqwHpWPBCV5FsFmKLgLp/cartel_curator_final.gif)
👍  ,
properties (23)
authorlipe100dedos
permlinkre-robotics101-2022420t3371029z
categoryhive-196387
json_metadata{"tags":["stemsocial","technology","computers","pc","stem"],"app":"ecency/3.0.22-vision","format":"markdown+html"}
created2022-04-20 06:37:12
last_update2022-04-20 06:37:12
depth1
children1
last_payout2022-04-27 06:37:12
cashout_time1969-12-31 23:59:59
total_payout_value0.011 HBD
curator_payout_value0.010 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length179
author_reputation136,003,558,603,241
root_title"Investigating how computers communicate"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id112,458,427
net_rshares21,199,838,185
author_curate_reward""
vote details (2)
@robotics101 ·
Thank you ! :)
properties (22)
authorrobotics101
permlinkre-lipe100dedos-2022420t10934131z
categoryhive-196387
json_metadata{"tags":["stemsocial","technology","computers","pc","stem"],"app":"ecency/3.0.27-mobile","format":"markdown+html"}
created2022-04-20 08:09:33
last_update2022-04-20 08:09:33
depth2
children0
last_payout2022-04-27 08:09:33
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length14
author_reputation13,003,325,382,700
root_title"Investigating how computers communicate"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id112,460,174
net_rshares0
@mathowl ·
$0.02
>1 raspberry (not pi) plant

:D
👍  ,
properties (23)
authormathowl
permlinkre-robotics101-ranf4i
categoryhive-196387
json_metadata{"tags":["hive-196387"],"app":"peakd/2022.04.5"}
created2022-04-20 17:26:45
last_update2022-04-20 17:26:45
depth1
children1
last_payout2022-04-27 17:26:45
cashout_time1969-12-31 23:59:59
total_payout_value0.011 HBD
curator_payout_value0.010 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length31
author_reputation44,993,635,814,620
root_title"Investigating how computers communicate"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id112,472,844
net_rshares21,285,029,493
author_curate_reward""
vote details (2)
@robotics101 ·
:) I should have written "not yet" because I talk about this kind of raspberries in the next articles ^^
properties (22)
authorrobotics101
permlinkre-mathowl-2022422t13354761z
categoryhive-196387
json_metadata{"tags":["hive-196387"],"app":"ecency/3.0.27-mobile","format":"markdown+html"}
created2022-04-22 11:35:06
last_update2022-04-22 11:35:06
depth2
children0
last_payout2022-04-29 11:35:06
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length104
author_reputation13,003,325,382,700
root_title"Investigating how computers communicate"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id112,525,703
net_rshares0
@stemsocial ·
re-robotics101-investigating-how-computers-communicate-20220420t172719151z
<div class='text-justify'> <div class='pull-left'>
 <img src='https://stem.openhive.network/images/stemsocialsupport7.png'> </div>

Thanks for your contribution to the <a href='/trending/hive-196387'>STEMsocial community</a>. Feel free to join us on <a href='https://discord.gg/9c7pKVD'>discord</a> to get to know the rest of us!

Please consider delegating to the @stemsocial account (85% of the curation rewards are returned).

You may also include @stemsocial as a beneficiary of the rewards of this post to get a stronger support.&nbsp;<br />&nbsp;<br />
</div>
properties (22)
authorstemsocial
permlinkre-robotics101-investigating-how-computers-communicate-20220420t172719151z
categoryhive-196387
json_metadata{"app":"STEMsocial"}
created2022-04-20 17:27:21
last_update2022-04-20 17:27:21
depth1
children0
last_payout2022-04-27 17:27:21
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length565
author_reputation22,927,767,309,334
root_title"Investigating how computers communicate"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id112,472,866
net_rshares0