Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
themeRDark
[
  {
    "version": "2.3",
    "role": "TRANSCODER",
    "inboundConnected": true,
    "outboundConnected": false,
    "globalState": "ACTIVE",
    "processingState": "NEW_STREAMS_ALLOWED",
    "id": "192.168.1.64"
  },
  {
    "version": "2.4",
    "role": "EDGE",
    "inboundConnected": true,
    "outboundConnected": false,
    "globalState": "ACTIVE",
    "processingState": "NEW_STREAMS_ALLOWED",
    "connectionStats": {
      "lastRtt": 2,
      "lastSn": 24,
      "lastMessageSentMs": 1592359761801,
      "lastACKReceivedMs": 1592359761802,
      "maxRtt": 1224,
      "inFlightSize": 0
    },
    "id": "192.168.1.65"
  }
]

Parameters

Parameter

Description

Example

inboundConnected

Inbound connection is established from this node

true

outboundConnectedOutbound connection is established to this nodefalse
lastRttLast packet RTT, ms2
lastSnLast packet sequence number24
lastMessageSentMsLast message sent timestamp, ms1592359761801
lastACKReceivedMsLast acknowlegement received timestamp, ms1592359761802
maxRttMaximum RTT, ms1224
inFlightSizeCurrent sending packet size, bytes0

Note that statistics is not available for previous CDN versions nodes, connection status only can be checked.

...

REST queries and response states

REST query

Body example

Response states

Description

/cdn/connection/reset_inbound

Code Block
languagejs
themeRDark
{
 "nodeId":"192.168.1.65"
}




200 – OK

404 - Node not found

Reset inbound connection from this node

/cdn/connection/reset_outbound

Code Block
languagejs
themeRDark
{
 "nodeId":"192.168.1.65"
}




200 – OK

404 - Node not found

Reset outbound connection to this node

/cdn/connection/reset_all

200 – OK

Reset all CDN connections on this node (since build 5.2.1222)

Parameters

Parameter

Description

Example

nodeId

Node id (IP address) to reset connection with

192.168.1.65

Signaling connections tuning

Inactive connections reset configuration

Signaling connection can be closed if server does not receive any packets during a certain timeout. The feature is enabled by the following parameters for incoming and outgoing signaling connections respectively

Code Block
themeRDark
cdn_inbound_ws_read_socket_timeout=true
cdn_outbound_ws_read_socket_timeout=true

By default, the read timeout is set to 60 seconds

Code Block
themeRDark
cdn_inbound_ws_read_socket_timeout_sec=60
cdn_outbound_ws_read_socket_timeout_sec=60

Backward compatibility with CDN 2.0-2.3

...