want to check the exchange between server and client by WireShark.|OPC UA Implementation: Stacks, Tools, and Samples|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
want to check the exchange between server and client by WireShark.
Avatar
Ntc Ntc
New Member
Members
Forum Posts: 1
Member Since:
07/01/2019
sp_UserOfflineSmall Offline
1
07/19/2019 - 02:03
sp_Permalink sp_Print

Hi,
I would like to ask some questions about server-client interactions.

Since I am not a native language of English, I may be asking questions that are difficult to understand, but please forgive me.

I run the exe file which made the build of UA-NetStandard.sln of http://opcfoundation.github.io.....TStandard/, and to check what kind of exchange between the OPCUA server and the client,
I captured the packet with a WireShark.

[Assumption]
・ I use Opc.Ua.SampleServer.exe as a server and use Opc.Ua.SampleClient.exe as a client
・ Server, client and WireShark are all in local environment

I only start the server first and wire connection hi
I would like to ask some questions about server-client interactions.

Since I am not a native language of English, I may be asking questions that are difficult to understand, but please forgive me.

[Assumption]
・ I use Opc.Ua.SampleServer.exe as a server and use Opc.Ua.SampleClient.exe as a client
・ Server, client and WireShark are all in local environment

[Implementation content]
I want to implement an OPCUA client.
In order to understand OPCUA, I would like to find out what the OPCUA server and client are communicating with, and build an exe file that builds http://opcfoundation.github.io/UA-.NETStandard/ UA-NetStandard.sln. Run
I captured the packet with a WireShark.

At first I started the server only and captured it with WireShark, and confirmed the following packet
At this time, the client has not started and only the server has started.

Below is the packet captured by the WireShark

no, time, Source, Dist, Protocol, Length, Info
11, 0.015574, :: 1, 1 :: 1, OpcUa, 131, Hello message
13, 0.015970, :: 1, 1 :: 1, OpcUa, 102, Acknowledge message
15,0.055823, :: 1, 1 :: 1, OpcUa, 206, OpenSecureChannel message: OpenSecureChannelRequest
17,0.056146, :: 1, 1 :: 1, OpcUa, 209, OpenSecureChannel message: OpenSecureChannelResponse
19, 0.104634, :: 1, 1 :: 1, OpcUa, 168, UA Secure Conversation Message: GetEndpointsRequest
21,0.105725, :: 1, 1 :: 1, OpcUa, 8976, UA Secure Conversation Message: GetEndpointsResponse
23,0.144735, :: 1, 1 :: 1, OpcUa, 131, CloseSecureChannel message: CloseSecureChannelRequest
39,0.162962, :: 1, 1 :: 1, OpcUa, 131, Hello message
41,0.163268, :: 1, 1 :: 1, OpcUa, 102, Acknowledge message
45,0.183165, :: 1, 1 :: 1, OpcUa, 90, Error message

[Question]
Q1 ◆
When I confirm the packet, Response is returned to Request.
What does the server interact with when I only start the server?

Q2 ◆
I started the client, connected to the server, browsed the data tree, added a subscription, etc.
I could not capture anything as WireShark opcua protocol
How can I check the client-server communication with a WireShark

Q3 ◆ I want to implement an OPCUA client that reads server data and outputs it to a file.
Is there a document on how to make it

Thank you
Regards,

Avatar
Randy Armstrong
Admin
Forum Posts: 1445
Member Since:
05/30/2017
sp_UserOfflineSmall Offline
2
07/22/2019 - 16:49
sp_Permalink sp_Print

If you want to develop an OPC UA application you should not be using wireshark from the beginning. Wireshark is only a tool if you are having problems with interoperability. The place to start is the specifications: Part3, Part4 and Part6.

If you are developing a stack from scratch you need to start with an existing Open Source library in the language you are planning to use. They are available for .NET, Java and ANSI C. These libraries will give you the basic communication to start with.

Avatar
Randy Armstrong
Admin
Forum Posts: 1445
Member Since:
05/30/2017
sp_UserOfflineSmall Offline
3
07/23/2019 - 19:59
sp_Permalink sp_Print sp_EditHistory

Sorry bi.ml. I deleted your post by accident. My response:

Part 3, Part 4 should give you content that allow you to understand how it is supposed to work.

If you are a more hands on type you can debug the .NET code and see what happens when you send a Read request.

WireShark captures only work if the Client and Server are on different machines.

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