Kamis, 31 Oktober 2024

Host

The term host is a general term that implies any type of end device on the Internet. Any device that may be the original traffic initiator or final destination of traffic can be considered a host.

A traditional example is your computer or laptop. But in this modern age, there is so much more: cell phones, smart TVs, smart watches, certain cars, and even some refrigerators!

Hosts run software and applications to interact with end users, and at some point they also need to use bits. Thus, it is said that Host operates at all seven layers of the OSI model.

In regular internet communications or network traffic, the two hosts in the communication are often labeled as Client or Server.

The client is the entity that initiated the request and is seeking to obtain information or data or services. Meanwhile, the Server is the entity that receives requests and has the information, data or services that the Client wants.

It should be noted that these terms are relative to certain types of communication.

For example, when your laptop is browsing through a web page, your laptop acts as a Client and the Web Server acts as a Server. But when that same Web Server then downloads a software update, it now acts as a Client and communicates with the Update Server.

Selasa, 29 Oktober 2024

Host

Istilah host adalah istilah umum yang menyiratkan segala jenis perangkat akhir di Internet. Perangkat apa pun yang mungkin merupakan inisiasi lalu lintas asli atau tujuan akhir lalu lintas dapat dianggap sebagai host.

Contoh tradisional adalah komputer atau laptop Anda. Tetapi di zaman modern ini, ada begitu banyak lagi: ponsel, TV pintar, jam tangan pintar, mobil tertentu, dan bahkan beberapa lemari es !

Host menjalankan perangkat lunak dan aplikasi untuk berinteraksi dengan pengguna akhir, dan pada beberapa titik mereka juga perlu menggunakan bit. Dengan demikian, dikatakan bahwa Host beroperasi di semua tujuh lapisan model OSI.

Dalam komunikasi internet biasa atau lalu lintas jaringan, dua host dalam komunikasi sering diberi label sebagai Klien atau Server.

Klien adalah entitas yang memulai permintaan dan sedang mencari untuk memperoleh informasi atau data atau layanan. Sedangkan Server adalah entitas yang menerima permintaan dan memiliki informasi, data, atau layanan yang diinginkan Klien.

Perlu dicatat bahwa istilah-istilah ini relatif untuk jenis komunikasi tertentu.

Misalnya, ketika laptop Anda meramban melalui halaman web, laptop Anda bertindak sebagai Klien dan Server Web bertindak sebagai Server. Tetapi ketika Server Web yang sama itu kemudian mengunduh pembaruan perangkat lunak, sekarang bertindak sebagai Klien dan berkomunikasi dengan Server Pembaruan.

Minggu, 13 Oktober 2024

Encapsulation and Decapsulation

The final item we need to discuss before we move on from the OSI Model is Encapsulation and Decapsulation. These terms refer to how data is moved through the layers from top to bottom when sending and from bottom to top when receiving.

As data is passed from layer to layer, each layer adds the information it needs to achieve its goal before the complete datagram is converted into 1s and 0s and sent over the wire. As an example:

  • Layer 4 will add a TCP header which will include the Source and Destination ports
  • Layer 3 will add an IP header which will include the Source and Destination IP addresses
  • Layer 2 will add an Ethernet header that will include the Source and Destination MAC addresses
  • On the receiving side, each layer removes the header from the data and passes it back up the stack to the Application layer.

Note that this is just an example. The headers to be added will depend on the underlying communication protocol. For example, a UDP header might be added at Layer 4, or an IPv6 header might be added at Layer 3.

Aside from that, it's important to understand that when data is sent over the wire, it gets passed down the stack and each layer adds its own header to help it reach its destination. On the receiving end, the headers are stripped one by one, layer by layer, as the data is sent back to the Application layer.

This article categorizes various network functions into various layers of the OSI model. While it is important to understand how packets move through a network, the OSI model itself is not a strict requirement as much as it is a conceptual model - not every protocol will fit perfectly within one layer of the OSI model.

Sabtu, 05 Oktober 2024

Enkapsulasi dan Dekapsulasi

Item terakhir yang perlu kita diskusikan sebelum kita beralih dari Model OSI adalah Enkapsulasi dan Dekapsulasi. Istilah-istilah ini merujuk pada bagaimana data dipindahkan melalui lapisan dari atas ke bawah saat mengirim dan dari bawah ke atas saat menerima.

Karena data diserahkan dari lapisan ke lapisan, setiap lapisan menambahkan informasi yang diperlukan untuk mencapai tujuannya sebelum datagram lengkap dikonversi menjadi 1s dan 0s dan dikirim melalui kawat. Sebagai contoh:

  • Layer 4 akan menambahkan header TCP yang akan mencakup port Sumber dan Tujuan
  • Layer 3 akan menambahkan header IP yang akan mencakup alamat IP Sumber dan Tujuan
  • Layer 2 akan menambahkan header Ethernet yang akan menyertakan alamat MAC Sumber dan Tujuan
  • Di sisi penerima, setiap lapisan menghapus header dari data dan meneruskannya kembali ke tumpukan menuju lapisan Aplikasi.

Perhatikan bahwa ini hanyalah sebuah contoh. Header yang akan ditambahkan akan tergantung pada protokol komunikasi yang mendasarinya. Misalnya, header UDP mungkin ditambahkan pada Layer 4, atau header IPv6 mungkin ditambahkan pada Layer 3.

Selain dari itu, penting untuk memahami bahwa ketika data dikirim melalui kawat, itu akan diturunkan ke tumpukan dan setiap lapisan menambahkan header sendiri untuk membantu mencapai tujuannya. Di sisi penerima, header akan dilucuti satu demi satu, lapis demi lapis, saat data dikirim kembali ke lapisan Aplikasi.

Artikel ini mengkategorikan berbagai fungsi jaringan ke dalam berbagai lapisan model OSI. Sementara penting untuk memahami bagaimana paket bergerak melalui jaringan, model OSI itu sendiri bukanlah persyaratan yang ketat seperti itu adalah model konseptual - tidak setiap protokol akan cocok dengan sempurna dalam satu lapisan model OSI.