OPC UA and YANG Data Modeling Language|OPC UA Standard|Forum|OPC Foundation

Avatar
Search
Forum Scope


Match



Forum Options



Minimum search word length is 3 characters - maximum search word length is 84 characters
Lost password?
sp_Feed sp_PrintTopic sp_TopicIcon
OPC UA and YANG Data Modeling Language
Avatar
Mohit Agarwal
Member
Members
Forum Posts: 59
Member Since:
10/18/2019
sp_UserOfflineSmall Offline
1
11/20/2023 - 02:31
sp_Permalink sp_Print

Hi,

Has anyone got queries on OPC UA vs Yang?

In general, we have very good articles and comparison options of OPC UA vs Modbus or OPC UA vs MQTT, etc.

But, then there is something called Yang Data Model which claims to be platform/language independent from TeleCom but these models are being used in other domains now.

So, if anyone has some additional articles or information related to how OPC UA and Yang are different like OPC UA/MQTT, can you please share your thoughts and inputs?

Sometimes people start saying to use Yang instead of OPC UA CS and it is a bit tricky to explain all the analysis and details to everyone. Hence, if there is any article or standard information, that could be really helpful.

Yang: https://developer.cisco.com/do…..troduction

Avatar
Randy Armstrong
Admin
Forum Posts: 1578
Member Since:
05/30/2017
sp_UserOfflineSmall Offline
2
11/20/2023 - 15:52
sp_Permalink sp_Print sp_EditHistory

Someone could do modelling in Yang and then convert that to a OPC UA model or vice versa. One could do the same the with the numerous other modelling languages from RDF/Owl to UML to XML/JSON schema. They all do the job but some will mean more effort to get from the abstract model to a real system that can use the models.

If the objective is to exchange information via OPC UA then it makes sense to OPC UA modelling. This is particularly true if you need to extend existing OPC UA CS. If someone thinks they can use Yang to create a model that can be exchanged via a protocol like NETCONF then Yang may make more sense.

The end implementation matters because different modelling languages have constructs which can make it very difficult to translate into implementation frameworks that were not designed for that modelling language.

The latter point means the real discussion is OPC UA vs. NETCONF as the primary network protocol. For any sort of industrial device OPC UA the way to go because it designed for this specific purpose and it will allow interoperability with other industrial devices. If someone is building a network switch or other network hardware then NETCONF would likely inter-operate better with existing management s/w.

In OPCUA-FX, NETCONF will be used to configure TSN network devices while OPC UA will be used to stream data across the TSN network. IOW. both protocols are used where they are designed to be used and Yang models co-exist with OPC UA models depending on the problem that needs to be solved.

Does this help?

Avatar
Mohit Agarwal
Member
Members
Forum Posts: 59
Member Since:
10/18/2019
sp_UserOfflineSmall Offline
3
11/21/2023 - 02:09
sp_Permalink sp_Print

Hi Randy,

Thanks a lot for the information and it definitely helps. I am always grateful for the quick response time in the OPC F Forum.

One low-priority point is, that we have a lot of public articles which has explained OPC UA vs Modbus and OPC vs MQTT etc. Maybe in future, if a technical article is created, that would help many other people who have the same question.

When we search in Google, OPC UA vs Modbus, or OPC UA vs MQTT, we can get a lot of results, but with respect to OPC UA and Yang, there are no results.

Also, I have seen some sets of discussions to promote Yang over OPC UA and then I had underlying knowledge that it is apple vs orange comparison, but then I did not have open articles to share.

Avatar
Randy Armstrong
Admin
Forum Posts: 1578
Member Since:
05/30/2017
sp_UserOfflineSmall Offline
4
11/21/2023 - 05:59
sp_Permalink sp_Print

Where are these discussions taking place?

Avatar
Mohit Agarwal
Member
Members
Forum Posts: 59
Member Since:
10/18/2019
sp_UserOfflineSmall Offline
5
11/21/2023 - 06:02
sp_Permalink sp_Print

It was with-in the organization at this point and some colleagues had some discussions with networking related orgs. 

I am trying to collect the information and add in some type of general PPT or document so that these questions does not have to be discussed at multiple levels.

That was the reason, I asked if there were any open articles.

Forum Timezone: America/Phoenix
Most Users Ever Online: 510
Currently Online:
Guest(s) 48
Currently Browsing this Page:
1 Guest(s)
Top Posters:
Forum Stats:
Groups: 2
Forums: 10
Topics: 1444
Posts: 4887