Connectionless messages: sccldemo

 

Demonstrates how the SCCP service sends and receives connectionless messages. It can be run as the client that sends the message, or as the server that receives the message.

Usage

sccldemo [options] called address [calling address]

Requirements

Procedure

Follow this procedure to run sccldemo:

Step

Action

1

From the command line prompt, navigate to the \nms\tx\samples\sccp\ directory under Windows or /usr/bin directory under UNIX.

2

Connect two TX boards back-to-back. In this example, both boards are installed on the same PC, with board 1 configured with point code 1.1.1 (ANSI), and board 2 configured with point code 1.1.2 (ANSI).

3

Enter the following command:

sccldemo [options] called address [calling address]

where options include:

Options

Description

-b board

Board number (default = 1, maximum = 8).

-p sapId

SAP ID to be used (default = 0, maximum = 255).

-n subsystem

Subsystem number (default = 254, maximum = 255).

-i messages

Total number of messages to be sent (default = 1, maximum = 1,000,000).

-j delay

Delay between messages in milliseconds (default = 5000, maximum = 1,000,000).

-s

Application acts as the server.


The called address and calling address are specified as:

Option

Specifies...

ssn

Only a subsystem number. Default routing must be enabled.

x.y.z:ssn

Point code and subsystem, with the point code in dotted format.

n:ssn

Point code and subsystem, with the point code in hexadecimal format.

GT n/digits

Global title, where n is the global title format (from 1 - 4) and digits is the global title (each digit is in the range 0 - F).

GT n/digits:ssn

Global title, where n is the global title format (from 1 - 4) and digits is the global title (each digit is in the range 0 - F). Also specifies a specific subsystem number, ssn.

NONE

No address.


4

Start the server side application first with the following syntax:

sccldemo -b 1 -p 0 -n 254 -s

This application uses TX board 1 (-b 1), SAP ID 0 (-p 0), and listens on subsystem 254 (-n 254). The -s option specifies that it is acting as a server and not sending any messages.

5

Start the client side application with the following syntax:

sccldemo -b 2 -p 0 -n 254 1.1.1:254

This application uses TX board 2 (-b 2), SAP ID 0 (-p 0), and listens on subsystem 254 (-n 254). The called address specifies that a message is sent to point code 1.1.1, subsystem 254. Since no calling address is specified in the command line, the default address is used, and the SCCP message contains a calling address with the point code and subsystem (1.1.2, subsystem 254).

The client side application shows the following output:

Sending Connectionless Data

The server side application shows the following output:

Unitdata Indication Received, len = 100

If the server side application does not receive the message, refer to the Details section for suggestions.


Details

Each SCCP connectionless message contains a destination address (the called address) and a source address (the calling address). The client application must specify a destination for the message, which is the called address. The most common address consists of a point code and a subsystem.

If no calling address is specified, the message is sent with a default calling address of the client application point code and subsystem.

sccldemo uses SCCP management to determine the address type (ANSI or ITU) of the SAP ID in use. It adjusts the called and calling addresses appropriately.

Troubleshoot as follows: