Skip to content

SIP User Documentation Chapter 3

Vincent Hérilier edited this page Nov 26, 2019 · 1 revision

Interaction between SIP nodes, samplers, and peer nodes

PREVIOUS CHAPTER | TOC | NEXT CHAPTER


A SIP node configuration element is responsible for creating and configuring the connection to the SIP network.

For each connection to the SIP network, a separate SIP node element must be defined in Apache JMeter. For example, when Apache JMeter is used to simulate services running on an IN platform, a separate SIP node element is needed for each simulated service.

The SIP node context context within the SIP node configuration element is responsible for the following processes:

  • Managing the physical connection to the SIP network
  • Receiving and storing incoming SIP messages
  • Sending SIP messages based on SIPCommandSampler requests

Local IP address and local port are defined at the SIP node level, and the whole network can be accessed from the node.
Routing is done based on the parameters defined at sampler level.

Related concepts

See Dialog management and transaction identification page.

Apache JMeter allows you to handle dialog IDs and transaction IDs locally in a logical manner. Logical IDs are mapped to the real IDs that are created by the stack.

SIP node traffic types

SIP nodes can be used in functional and performance mode. Depending on traffic type configuration, messages are handled differently by the SIP node.

Functional mode

  • Incoming requests are stored in the SIP node context. A sampler needs to be added to the Thread Group to check the reception of a specific request and another sampler needs to be added to send a response.
  • Incoming responses are matched with the corresponding transaction. A sampler needs to be added to check the reception of a specific response.

Figure 2: Handling of SIP messages in functional mode

Figure 2: Handling of SIP messages in functional mode

Performance mode

  • Incoming requests are answered automatically.
  • Incoming responses are discarded.

The purpose of performance mode ! To be refactored !

Use performance mode if you want to send a lot of messages in asynchronous mode, for example, for the performance or overload test of a remote server.

Do not use this traffic type if complex answers are expected by the remote system after initiating a dialog remotely. The content of automatic answers provided by the SIP node is acknowledgement.

In asynchronous mode, the traffic rate is completely independent from the answer time.


PREVIOUS CHAPTER | TOC | NEXT CHAPTER