cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - You can subscribe to a forum, label or individual post and receive email notifications when someone posts a new topic or reply. Learn more! X

Issue with Connecting KEPServerEX to CIMON OPC UA Server (BadTcpMessageTooLarge Error)

uvcssb
4-Participant

Issue with Connecting KEPServerEX to CIMON OPC UA Server (BadTcpMessageTooLarge Error)

Hello, I am writing to inquire about a connection issue between KEPServerEX and the CIMON OPC UA Server.

Currently, I can successfully connect to the CIMON OPC UA Server using both UaExpert and Node.js (node-opcua library).
However, when attempting to connect to the CIMON OPC UA Server via KEPServerEX, I encounter a BadTcpMessageTooLarge error.

---

Current Situation

CIMON OPC UA Server Details
- IP: [CIMON_IP]
- Port: 4840
- Security Policy: None
- Message Security Mode: None

UaExpert Connection
- Successfully connects to the CIMON OPC UA Server, allowing node browsing and data reading.

Node.js Connection
- Successfully connects to the CIMON OPC UA Server, enabling data read/write operations.

KEPServerEX Connection
- Using the OPC UA Client Driver, attempting to connect to the CIMON OPC UA Server results in a BadTcpMessageTooLarge error.
- Wireshark packet analysis shows that after sending a GetEndpointsRequest, the CIMON OPC UA Server returns this error.

---

Wireshark Request Packet Comparison

UaExpert Request Packet:
- Message Size: 98 bytes
- Details:
- EndpointUrl: opc.tcp://[CIMON_IP]:4840
- LocaleIds: None (ArraySize: 0)
- ProfileUris: None (ArraySize: 0)

KEPServerEX Request Packet:
- Message Size: 167 bytes
- Details:
- EndpointUrl: opc.tcp://[CIMON_IP]:4840
- LocaleIds: None (ArraySize: 0)
- ProfileUris: 1 URI included (http://opcfoundation.org/UA-Profile/Transport/uatcp-uasc-uabinary)

TCP Segments Comparison:
- UaExpert Request: Sent in a single TCP segment.
- KEPServerEX Request:
- Reassembled TCP Segments:
- Frame #101: 12 bytes
- Frame #102: 4 bytes
- Frame #103: 151 bytes
- Total Length: 167 bytes
- It seems the CIMON OPC UA Server might have trouble handling segmented TCP packets from KEPServerEX.

---

Comparison Results

- KEPServerEX’s request is slightly larger due to the inclusion of ProfileUris.
- However, 167 bytes is not typically considered a "large message" in OPC UA communications.
- UaExpert successfully handles requests larger than 167 bytes without issues.

---

Steps Taken to Resolve

Network Connection
- Ping and TCP connection tests confirm accessibility (Port 4840).

KEPServerEX Configuration
- Configured with Security Policy: None, Message Security Mode: None.

Wireshark Analysis
- Compared request message size and TCP segments between UaExpert and KEPServerEX.
- KEPServerEX’s request is sent in multiple TCP segments, which might not be properly handled by the CIMON OPC UA Server.

---

3 REPLIES 3
rajskumar
14-Alexandrite
(To:uvcssb)

Thank you for the detailed description. I really appreciate it.

 

Would you mind opening a support ticket with the Kepware Technical Support team? The tech support team would need to check all the negotiations between UA Expert and our client driver with the target UA server.

 

In the meantime, try the following and see if it works for you:

 

  • Device Properties > Subscription > Update Mode > Poll
  • Device Properties > Subscription > Registered Read/Writes = Disabled
  • Device Properties > Communications Parameters > Max. Items per Read/Write > Try with different values less than 100
uvcssb
4-Participant
(To:rajskumar)

Could you please provide more details about what a Kepware Technical Support ticket is and how to open one?
I tried changing the three options you mentioned, but the issue still persists.
For further clarity, I have attached Wireshark capture images.
I would appreciate any additional advice or guidance to resolve this issue.

rajskumar
14-Alexandrite
(To:uvcssb)

The article below will guide you on how to open a support ticket with Kepware tech support.

 

CS382681 - How to open a Support Case for PTC Kepware Products

Announcements


Top Tags