• 0 Posts
  • 18 Comments
Joined 2 years ago
cake
Cake day: November 21st, 2023

help-circle





  • I think I found the source of confusion.

    The OSI model describes networking in general, defining a model in which almost all networks can be categorized and compared. This is important as hundreds (if not thousands) of standards and methods exist for handling each separate layer - some publicized, but many hidden/propriety/unpublicized.

    Meanwhile, the TCP/IP model describes only a very narrow subset of networks, though it just so happens to be the most used kind of network - The Internet - is part of this.

    This means that if you are working with the internet, then TCP/IP will likely cover all your needs, but as soon as you move onto more specialized or simply uncommon network types TCP/IP will be close to useless.

    We could take an example:

    I’m setting up a LoRa network between some neighbors, measuring stations, etc. The network will not be connected directly to the internet, so there will be no possibility of data transfer between the LoRa network and the internet until you reach the OSI Presentation layer.

    The LoRa network will need to be much more efficient than the general-purpose internet-networking, and since only a few machines will be connected we’ll use only a single octet as device identifier (alternative to MAC/IP, lets call it SoMAC), also having to write our own discovery service.

    Likewise, we will make a new custom transport layer based on TCP, but with only space for that single octet identifier, no flags, no IP, and no checksums (I like to live dangerous). Let’s call that SoSTRIP.

    At last, we’ll need to write some kind of socket to make sending the information easy, for simplicity we’ll use a Unnamed Pipe.

    Now, how would we go about representing this in both models (OSI vs. TCP/IP)?

    In OSI we’d have:

    • Physical Layer: LoRa (duh)
    • Data Link Layer: LoRa driver with SoMAC discovery
    • Network Layer: SoMAC addressing
    • Transport Layer: SoSTRIP
    • Session Layer: Unnamed Pipe
    • Presentation Layer: ASCII can be whatever
    • Application Layer: Cat

    In TCP/IP we’d have:

    • Link Layer: LoRa + SoMAC
    • Internet Layer: No IP/Not Applicable/SoMAC(?)
    • Transport Layer: SoSTRIP, except it isn’t compatible with either TCP nor IP.
    • Application Layer: Unnamed Pipe + ASCII + Cat

    Please note that this is purely for demonstration purposes, as it’s absolutely unfair to compare TCP/IP and OSI in this way, since they both are designed for different purposes, with TCP/IP being more popular but narrow, and OSI being more general but overly complicated for most use cases.

    Also, please feel free to correct me, since it’s been a hot moment since I had about OSI and TCP/IP in uni.

    ==EDIT== Formatting


  • Apologies, that’s my fault, I thought you wrote “TCP model(/protocol)” and not “TCP/IP model”, which are indeed two very different things.

    I feel that the OSI model focuses more on the specific layers with their relations and physical/digital setup, while the TCP/IP model has more of a abstract and “high-level”-focus. I think both have their ups and downs, though I’m still confused what about OSI is “theoretical and has never been used”.


  • Ekky@sopuli.xyztoMicroblog Memes@lemmy.world43 years ago, the Internet was created
    link
    fedilink
    English
    arrow-up
    3
    arrow-down
    1
    ·
    edit-2
    2 days ago

    What do you mean “Theoretical” and “Never been used”? Are you writing this by sending off radio waves purely with your mind? Am I the only one using a modem and computer? (/j, but it seems to me that you’re asking “why a plane needs engines and wings, when it already has a payload”)

    TCP (and UDP) just describe how to assemble the data into packages which can be somewhat reliably reassembled on the other end.

    While it does have an address stamped on top (IP), it doesn’t know how to get anywhere by itself. That’s where the bottom 3 OSI layers come in (the physical wires - or wireless spectra/wavelengths - the data is transmitted through, the specifications of how the embedded devices talk to each other over these wires, and how to discover other embedded or other devices on a network). I can very much assure you that the wires do exist and are indeed in use.

    Contrary, the upper layers are more about keeping communication going once a connection has been established.




  • Ekky@sopuli.xyztoProgrammer Humor@lemmy.mlbase 10
    link
    fedilink
    English
    arrow-up
    8
    ·
    8 days ago

    If you want another example, try counting to 10 in hex (base 16).

    Also, base 10 is always base 10, but “10” in base 2 is 2 in all counting systems above base 2 (since base 2 doesn’t actually include 2, just like base 10 doesn’t include “A”). Likewise, 10 in base 10 represented in base 2 would be 1010. ;)




  • So you want to be able to stream Gimp and have a shared drive with your PC’s sheets, it needs to be open source and with no limitations?

    I’d just do gimp+Discord+google docs, but if you want it to be open source and all-in-one then go checkout Nextcloud. I think that’s as free as you get, if even foundry is too limiting.



  • There was a supply shortage of fans during the launch of the LCD model. Valve solved this by shipping two types of fans until supply was restored. If you had one of the alternative fans, then your SD would have a pretty bad whine.

    Though, Valve offered original replacement fans via. IFixIt soon after, so you could just buy the better fan and change it. I did.