Help
  • Explore Community
  • Get Started
  • Ask the Community
  • How-To & Best Practices
  • Contact Support
Notifications
Login / Register
Community
Community
Notifications
close
  • Forums
  • Knowledge Center
  • Events & Webinars
  • Ideas
  • Blogs
Help
Help
  • Explore Community
  • Get Started
  • Ask the Community
  • How-To & Best Practices
  • Contact Support
Login / Register
Sustainability
Sustainability

Join our "Ask Me About" community webinar on May 20th at 9 AM CET and 5 PM CET to explore cybersecurity and monitoring for Data Center and edge IT. Learn about market trends, cutting-edge technologies, and best practices from industry experts.
Register and secure your Critical IT infrastructure

Links, Advises and Associated Server Threads

Geo SCADA Knowledge Base

Access vast amounts of technical know-how and pro tips from our community of Geo SCADA experts.

cancel
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
Showing results for 
Show  only  | Search instead for 
Did you mean: 
  • Home
  • Schneider Electric Community
  • Knowledge Center
  • Geo SCADA Knowledge Base
  • Links, Advises and Associated Server Threads
Invite a Co-worker
Send a co-worker an invite to the portal.Just enter their email address and we'll connect them to register. After joining, they will belong to the same company.
You have entered an invalid email address. Please re-enter the email address.
This co-worker has already been invited to the Exchange portal. Please invite another co-worker.
Please enter email address
Send Invite Cancel
Invitation Sent
Your invitation was sent.Thanks for sharing Exchange with your co-worker.
Send New Invite Close
Top Labels
Top Labels
  • Alphabetical
  • database 32
  • Web Server and Client 31
  • WebX 19
  • Request Form 18
  • Lists, Events & Alarms 16
  • ViewX 15
  • Application Programming 12
  • Setup 12
  • Telemetry 8
  • Events & Alarms 7
  • Lists 7
  • Mimic Graphics 7
  • Downloads 6
  • Support 5
  • IoT 5
  • SCADA 5
  • Geo SCADA Expert 5
  • Drivers and Communications 4
  • Security 4
  • DNP 3 3
  • IEC 61131-3 Logic 3
  • Trends and Historian 2
  • Virtual ViewX 2
  • Geo Scada 1
  • ClearSCADA 1
  • Templates and Instances 1
  • Releases 1
  • Maps and GIS 1
  • Mobile 1
  • Architectures 1
  • Tools & Resources 1
  • Privacy Policy 1
  • OPC-UA 1
  • Previous
  • 1 of 4
  • Next
Latest Blog Posts
  • OPC UA - Driver and Server
  • Requirements for Generating a Valid OPC UA Server Certificate
  • Load Events Using LoadRecord and LoadRecords
  • Geo SCADA Embedded Component Licenses
  • Geo SCADA 2023 Known Issues
Related Products
product field
Schneider Electric
EcoStruxure™ Geo SCADA Expert

Invite a Colleague

Found this content useful? Share it with a Colleague!

Invite a Colleague Invite
Anonymous user
Not applicable
‎2021-06-09 06:13 PM
0 Likes
0
869
  • Bookmark
  • Subscribe
  • Email to a Friend
  • Printer Friendly Page
  • Report Inappropriate Content

Link copied. Please paste this link to share this article on your social media post.

‎2021-06-09 06:13 PM

Links, Advises and Associated Server Threads

Originally published on Geo SCADA Knowledge Base by Anonymous user | June 10, 2021 03:13 AM

📖 Home  Back  
Links and Advises


ClearSCADA performs Client-Server communication through what are termed 'Links' and 'Advises'.

LinkAdviseDiagram.pngLinkAdviseDiagram.pngLinkAdviseDiagram.png

Links are established from the client to the server to perform long or short running tasks or requests. DBServer will respond to these tasks or requests directly using the link. The client application may establish multiple links simultaneously to the same ClearSCADA server. By default links are established from any available port on the client to port 5481 on the server.

The ClearSCADA may establish an Advise connection to the client. Advise connections are used to send unsolicited updates to the client, such as alarm data and updates for Mimics. Only one advise connection is made to each client application. By default the advise connection will be established from any available port on the server to a port in the range 5500-5509 on this client allowing up to 10 client applications to be run per client machine.

Information about the currently active Links and Advises are available from the Server Status window and are recorded in the snapshots:
LinkAdviseStatus.pngLinkAdviseStatus.pngLinkAdviseStatus.png

Notice in the above screenshot that:
  • The Server Icon uses 1 link and 1 advise

Link ID 1:01 which is associated with Advise 1:01
  • The Server Status window uses 1 link and 1 advise

Link ID 2:01 which is associated with Advise 2:01
  • A ViewX client is current using 5 links and 1 advise

Link ID 1:02 which is associated with Advise 1:01
Link ID 1:05
Link ID 1:06
Link ID 2:03 which is associated with Advise 1:01
Link ID 2:04 which is associated with Advise 1:01

Link Threads and Advise Threads


DBServer uses 'Link Threads' and 'Advise Threads' to handle and process communications through the link and advise connections. Details about the currently active Links Threads and Advise Threads are available from the the Server Status window.

LinkAdviseThreadStatus.pngLinkAdviseThreadStatus.pngLinkAdviseThreadStatus.png

Link threads, referred to in DBServer Logs as [SVRTHR], handle up to 16 links at a time. Advise threads, referred to in logs as [SVRADVTHR], handle up to 16 advises at a time. As an example, 10 link threads and 5 advise threads would imply that there are up to 240 (ie, 10*16 + 5*16) simultaneous TCP connections between the server and its clients.

Additional information about these threads can be found on the General-Threads tab of the Server Status window
GeneralThreadStatus.pngGeneralThreadStatus.pngGeneralThreadStatus.png

This includes information such as how long the thread has been running and how many minutes of processor time have been dedicated to them.

DBServer Log Analysis includes an example showing a new incoming connection being accepted, assigned to a link thread and being assigned a new Link Id


Example Analysis - Links example 1


The activity of Links Threads is split into two different types of messages:
  • [SVR] - relating to initial processing of incoming connections.

  • [SVRTHR] - relating to the Link Thread itself and assignment of ids to incoming links.


This example outlines the basic process.

The Link Thread accepts a new incoming connection.
26-MAY-2010 21:20:39.776 19B4 [SVR] Accepted connection 4 from 192.168.0.101:4502 to 192.168.0.1:5481...26-MAY-2010 21:20:39.776 19B4 [SVR] ... Connection 4: Type 1, client version 0x6440DA4 (6.68.3492), (Uncompressed,Client Licence,ViewX)26-MAY-2010 21:20:39.776 19B4 [SVR] ... Connection 4 confirmed, link version 6.68.3616, client name 'Unknown'


The Link Thread assigns the incoming line the alias "[SCX] 11:01" (where 11:01 indicate that this is Link 01 of the 11th Link Thread).
26-MAY-2010 21:20:39.776 19B4 [SVRTHR] 11 AddClient from 192.168.0.101:4502, link is [SCX] 11:01


From this point on activity related to this particular link can be tracked through the alias "[SCX] 11:01".

Every 5 seconds a timeout is triggered for the link thread.
26-MAY-2010 21:20:41.432 1884 [SVRTHR] 11 Timeout26-MAY-2010 21:20:46.432 1884 [SVRTHR] 11 Timeout


Example Analysis - Links example 2


The Server Snapshot extract below shows an example of an unusually high number of link threads.

7904|[SVRTHR] 244 |45234 |Waiting |61:30:28| 0.109 (0.0%) | 0.046 (0.0%)7040|[SVRTHR] 245 |45211 |Waiting |61:25:01| 0.062 (0.0%) | 0.031 (0.0%)6444|[SVRTHR] 246 |45097 |Waiting |61:19:12| 0.046 (0.0%) | 0.000 (0.0%)7548|[SVRTHR] 247 |45037 |Waiting |61:13:46| 0.031 (0.0%) | 0.015 (0.0%)7804|[SVRTHR] 248 |44977 |Waiting |61:08:14| 0.062 (0.0%) | 0.000 (0.0%)7828|[SVRTHR] 249 |44911 |Waiting |61:02:43| 0.078 (0.0%) | 0.031 (0.0%)7620|[SVRTHR] 250 |44850 |Waiting |60:57:13| 0.078 (0.0%) | 0.015 (0.0%)4284|[SVRTHR] 251 |44789 |Waiting |60:51:43| 0.031 (0.0%) | 0.015 (0.0%)7460|[SVRTHR] 252 |44717 |Waiting |60:46:10| 0.046 (0.0%) | 0.000 (0.0%)3896|[SVRTHR] 253 |44673 |Waiting |60:40:40| 0.015 (0.0%) | 0.031 (0.0%)7572|[SVRTHR] 254 |44598 |Waiting |60:35:06| 0.062 (0.0%) | 0.031 (0.0%)5412|[SVRTHR] 255 |44456 |Waiting |60:29:40| 0.031 (0.0%) | 0.078 (0.0%)7712|[SVRTHR] 256 |43874 |Waiting |60:24:14| 0.046 (0.0%) | 0.000 (0.0%)


We can see that just over 60 hours ago DBServer received a flood of incoming links. The latest thread has a Run Time of '60:24:14', so at that time all 255 existing link threads were at capacity (255*16 = 4080 links) and a new link thread was required.

Investigating the Links and Advises tabs of the Server Status (or Snapshots) as above will provide details about the associated links if they are still active. If the associated client application has been disconnected, the links may already have been closed.

In this above example, investigation of the Links tab of the Server Status identified that a single Source IP address was responsible for the large number of links. A fault in some network monitoring software had caused it to make thousands of simultaneous connections to ClearSCADA.

Example Analysis - Advises


The activity of Advise Threads is split into two different types of messages:
  • [SVRADVTHR] - relating to the Advise Thread itself

  • [SVRADVISE] - relate to the advise process for individual clients


This example outlines the basic process.

Advise Threads, in this case 1A50, time out every 5 seconds.
26-MAY-2010 21:20:10.308 1A50 [SVRADVTHR] 1 Timeout


A thread, in this case 0C90, wants to send some events to a specific client (in this case 1 event to Client Id)
26-MAY-2010 21:20:12.854 0C90 [SVRADVISE]  1:10 SendEvent: Events 1, ClientId 5, IsUnadvise false


The Advise Thread (1A50) starts to process the send event
26-MAY-2010 21:20:12.854 1A50 [SVRADVTHR] 1 SendEvent


The Advise Thread (1A50) does the process of transmitting the events to the specific client
26-MAY-2010 21:20:12.854 1A50 [SVRADVISE]  1:10 ProcessWrite-1: Events 1, Links 126-MAY-2010 21:20:12.854 1A50 [SVRADVISE]  1:10 ProcessWrite-2: Sent 40 bytes to ClientId 5, IsUnadvise false26-MAY-2010 21:20:12.854 1A50 [SVRADVISE]  1:10 ProcessWrite-3: Events 0, Links 1


The Advise Thread (1A50) times out again.
26-MAY-2010 21:20:15.308 1A50 [SVRADVTHR] 1 Timeout


Go: Home Back

Author

Biography

Anonymous user

Link copied. Please paste this link to share this article on your social media post.

  • Back to Blog
  • Newer Article
  • Older Article
To The Top!

Forums

  • APC UPS Data Center Backup Solutions
  • EcoStruxure IT
  • EcoStruxure Geo SCADA Expert
  • Metering & Power Quality
  • Schneider Electric Wiser

Knowledge Center

Events & webinars

Ideas

Blogs

Get Started

  • Ask the Community
  • Community Guidelines
  • Community User Guide
  • How-To & Best Practice
  • Experts Leaderboard
  • Contact Support
Brand-Logo
Subscribing is a smart move!
You can subscribe to this board after you log in or create your free account.
Forum-Icon

Create your free account or log in to subscribe to the board - and gain access to more than 10,000+ support articles along with insights from experts and peers.

Register today for FREE

Register Now

Already have an account? Login

Terms & Conditions Privacy Notice Change your Cookie Settings © 2025 Schneider Electric

This is a heading

With achievable small steps, users progress and continually feel satisfaction in task accomplishment.

Usetiful Onboarding Checklist remembers the progress of every user, allowing them to take bite-sized journeys and continue where they left.

of