OSI model

 

osi model

In order to help you understand the OSI Model, I am going to briefly describe how each layer functions in a Building Automation System framework:

  1. Physical Layer- This is the media you use to communicate (RS-485/Ethernet ect).
  2. Data Link Layer– This is the subnet communication, or for example, the communication of MS/TP on a field bus.
  3. Network Layer- This is typically were your supervisory devices lie and is where IP messages exist and route outside of the local subnet.
  4. Transport Layer- This is where the data verification exist for communication. Typically, when you are transferring code or you are logging into a system, the verification of the transport is made at the Transport layer.
  5. Session Layer- This is where the conversation is initiated. Often times, two supervisory devices will create a session to discuss. As you learn more about TCP and UDP, you will learn that UDP is a connection-less protocol.Essentially it just sends out data. Our control systems usually do not  require verification of commands.  As such, our systems rely on UDP sessions.
  6. Presentation Layer- This is where the data is taken and formulated into view-able information. Often times, this is when the raw  CoAP or BACnet/IP data shifts into a view-able data format, whether that be ASCII or UNICODE.Additionally, the presentation layer can translate data into XML which is utilized by the majority of the web based building automation systems.
  7. Application Layer– Here programs run to visually present and physically interact with the data from the previous layers. Typically building automation systems will use applications built around the HTTP or SNMP protocols.Additionally, applications can create FTP connections between one another to transfer data this is often seen in high level peer to peer supervisory communication.

tcp ip model

 

tcp ip model