Skip to main content

UDP (Client)

The UDP (Client) feed type in ArcGIS Velocity listens for UDP messages (datagrams) on a configured local hostname or IP address and port. External senders transmit event data to that address and port via unicast.

Example

The following is an example use case for the feed:

A city traffic department uses a UDP (Client) feed to receive vehicle count and speed data that roadside sensors send as JSON datagrams. The sensors target Velocity's listening address and port. A real-time analytic calculates a rolling average speed per sensor and alerts the department when congestion is detected.

Usage notes

Note the following when working with the feed:

  • Velocity supports multiple input data formats for the UDP (Client) feed, including JSON, GeoJSON, Esri JSON, XML, and delimited text.

  • Each UDP message must contain a complete payload for the selected input format. The running feed does not combine partial records or documents across UDP messages.

  • When using delimited text, separate multiple records in a UDP message using the configured record terminator, such as a newline \n. A single complete record in a UDP message does not require a trailing newline during feed execution. When sending delimited text for live sampling during feed configuration, terminate records with a newline \n.

  • JSON, GeoJSON, Esri JSON, and XML do not require a newline separator. For XML, send one complete, well-formed XML document per UDP message. Do not group standalone XML documents into a single UDP message.

  • The Hostname parameter is a local bind address, not the remote sender. The user interface initially supplies localhost, which accepts traffic only from the Velocity machine. Remote senders require an appropriate local interface address, along with any necessary network and firewall access.

Parameters

The following table describes the parameters for the feed:

Parameter

Description

Data type

Hostname

(Required)

The local hostname or IP address on which Velocity listens to UDP datagrams. The address must be available for binding on the Velocity machine.

String

Port

(Required)

The local listening port. Specify an available port from 1 through 65535.

Integer

Considerations and limitations

Consider the following when using the feed:

  • Invalid configuration, such as an unavailable local address or an occupied port, can prevent sampling or feed startup. A successful test connection does not confirm that Velocity can bind to the configured local address and port or receive data from a sender. Verify reception through live sampling and running the feed.

  • UDP does not guarantee delivery, order, or protection against duplicates. The running feed does not reassemble records or documents split across UDP messages, which can cause processing failures.