Relationship between SecureChannel and Session|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
Relationship between SecureChannel and Session
Avatar
Tobias Lindeholz
New Member
Members
Forum Posts: 2
Member Since:
01/25/2021
sp_UserOfflineSmall Offline
1
05/05/2021 - 23:35
sp_Permalink sp_Print

Hello,

I have a questions regarding the amount of sessions that can be handled in a secureChannel, which I can't figure out from the specification. Let's assume I have a client-server system and my client app will be used by several users in parallel.

Does the client app need to create a new secureChannel

  • Szenario 1: only once(to secure the connection between client and server)
  • Szenario 2: for each user that needs data from the server (e.g., to better separate the sessions from each other)

What will be the correct architecture (according to the specification) or is this decision up to the application?

BR,

Tobias

P.S. The specification states (in part 4: Chapter 5.6.2.1 CreateSession Description) :

Before calling this Service, the Client shall create a SecureChannel with the OpenSecureChannel Service to ensure the Integrity of all Messages exchanged during a Session

This will be true for both scenarios, as both use a secureChanel that was created with OpenSecureChannel.

Avatar
Randy Armstrong
Admin
Forum Posts: 1445
Member Since:
05/30/2017
sp_UserOfflineSmall Offline
2
05/06/2021 - 00:11
sp_Permalink sp_Print

The specification is silent on the number of sessions that can use the same SecureChannel however, alll UA TCP client implementations that I have looked at impose a restriction of one socket => one secure channel => one session.

The vagueness in the specification is there to handle other transports, such as HTTPS, where the SecureChannel implementation is outside of the scope of OPC UA.

Avatar
Tobias Lindeholz
New Member
Members
Forum Posts: 2
Member Since:
01/25/2021
sp_UserOfflineSmall Offline
3
05/07/2021 - 01:17
sp_Permalink sp_Print

Hi,

thank you for your clarification!

BR,

Tobias

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