Validating MaxRequestMessageSize and MaxResponseMessageSize|OPC Certification and Interoperability Testing|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
Validating MaxRequestMessageSize and MaxResponseMessageSize
Avatar
Ganesh Gaikwad
Member
Members
Forum Posts: 9
Member Since:
08/14/2019
sp_UserOfflineSmall Offline
1
06/11/2020 - 04:25
sp_Permalink sp_Print

Hi Team,

We are using default value(4194304) which is defined by opc ua stack  when gievn value is 0 for MaxResponseMessageSize in createSession call. Also we are not validating MaxRequestMessageSize  given in createsession response. Is it mandatory for opc ua client certification? we are referring below test cases.

Err-026 CTT CreateSession  The Server returns a maxRequestMessageSize of 500 (bytes). Verify that client honors this max by testing with a call that should exceed this space, such as a large Read/Write/Browse request.
TOOL: WireShark to verify? Or a `stack watcher` tool? Actually, the Server and/or Client should reject messages that are too big with an error `Bad_RequestTooLarge` or Bad_ResponseTooLarge` as applicable.
Err-027 CTT CreateSession  maxRequestMessageSize is decades larger than maxResponseMessageSize, e.g. maxResponseMessageSize * 10.
If the requested MaxResponseMessageSize == 0 then set revise the MaxRequestMessageSize = 500;
Client reports an informational message to the end-user to report the limitations on the channel. The Client continues to communicate with the UA Server while abiding by the message size constraint.

 

Regards,

Ganesh

Avatar
Ganesh Gaikwad
Member
Members
Forum Posts: 9
Member Since:
08/14/2019
sp_UserOfflineSmall Offline
2
06/16/2020 - 22:30
sp_Permalink sp_Print

Hi Team,

Can you please respond to above query?

Regards.

Ganesh

Avatar
Paul Hunkar
Cleveland, Ohio, USA
Moderator
Members

Moderators-Specifications

Moderators-Companion

Moderators-Implementation

Moderators-Certification

Moderators-COM
Forum Posts: 112
Member Since:
02/24/2014
sp_UserOfflineSmall Offline
3
06/17/2020 - 06:28
sp_Permalink sp_Print

Ganesh,

   In general, all test cases in the CTT are required for the ConformanceUnit/profile to which they are applied.  If you have questions about the wording of a test cases and don't understand what it is trying to test, we can clean them up and improve them as needed.  The first test is checking that a client will honor the maxmessage size that a server reports.  All well behaved client shall attempt to honor this constraint that a server might have.  the second is that a client can deal with a server that does not have symmetric buffer sizes - again a well behaved client shall attempt to honor this.  The reporting part could be improved in wording or removed - "i.e. Client reports an informational message to the end-user to report the limitations on the channel." is not part of what is required.

Paul

Paul Hunkar - DSInteroperability

Avatar
Deepali Ahirrao
Member
Members
Forum Posts: 25
Member Since:
08/16/2019
sp_UserOfflineSmall Offline
4
06/24/2020 - 23:27
sp_Permalink sp_Print sp_EditHistory

Hi Paul,

Just to confirm my understanding - When client sends Hello message, the MaxMessageSize sent in this message represents MaxResponseMessageSize. And when Server responds with Acknowledge, the MaxMessageSize sent in Acknowledge represents MaxRequestMessageSize. Is this correct?

Thanks,

Deepali

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