Go top
Technology offer

SIMPRIME: SimPRIME

SimPRIME is a network simulator targeted to Narrowband Power Line Communications (NB-PLC) networks compliant with the PoweRline Intelligent Metering Evolution (PRIME) standard.

Dr. Javier Matanza Domingo

What's SimPRIME?

SimPRIME is a network simulator targeted to Narrowband Power Line Communications (NB-PLC) networks compliant with the PoweRline Intelligent Metering Evolution (PRIME) standard.

The main objective of this tool is to simulate the behavior of the communication overlay in Advanced Metering Infrastructure (AMI) applications using PRIME technology over DLMS/COSEM. Simulation results will help utilities in estimating the total amount of time required to communicate with all their meter devices. This latency is a key parameter in order to design new strategies intended to a more efficient energy use. For instance, if communications are too slow in a specific network sector, applications requiring quick interactions with meters may not be viable.

In addition to this analysis purpose, the authors of the tool also believe that this could become useful for researching on polling strategies and other MAC optimizations that may lead to a higher network performance. As it is explained later on, PRIME networks have a tree-wise logical structure. This tree is created dynamically depending on the signal coverage. However, the standard does not provide a specific criterion for its creation, leaving some gap for optimization. Once again, a more efficient network will allow for faster responsive applications.

SimPRIME

A more technical description

PRIME is a second-generation NB-PLC technology whose development was initially led by the PRIME Alliance, although the specifications of the PHY, MAC, and Convergence layers have been also accepted as standard by the ITU-T recently (ITU-T G.9904).

At PHY level, PRIME operates in the CENELEC-A band (specifically in the 41-89 KHz band) and uses Orthogonal Frequency-Division Multiplexing (OFDM) modulation where carriers use Differential Phase Shift Keying (DPSK), allowing raw data rates up to 130 Kbps. However, in practice, manufacturers are currently implementing the most robust option, namely DBPSK with Forwarded Error Correction (FEC) ON, which allows raw data rate up to 21.4 Kbps.

PHY

At MAC level, two different kinds of nodes are defined: Base Node (BN) and Service Node(SN). The Base Node has the role of coordinating the PRIME network. Only one single Base Node is allowed in the same PRIME network. In common AMI terminology, the Base Node is known as Concentrator. Service Nodes are generally smart meters.

Service Nodes act as leaves or branch points of the logical tree-structured network, as shown in the figure below. The initial state of the SN is Disconnected. They may change to Terminal by registering to the network BN and, only when they are in Terminal state, they can be promoted to Switch.

Switches are communications repeaters whose main goal is to increase signal range in the cable via relying, thus mitigating the effects of attenuation and noise. The position of these switches may influence the behavior of the whole network, as it was argued in [4]. The figure on the right-hand side below illustrates the possible evolution of a SN in PRIME networks.

PRIME States Logical Tree

With respect to the LLC sublayer, it provides mechanisms to perform fragmentation and reassembling of the packets, flow control, automatic repeat request (ARQ) functions and manages the connection phase prior data transmission, since PRIME is a connection-oriented protocol. The LLC sits on top of the MAC sublayer and below the convergence or application layer.

Although PRIME standard only specifies the PHY, MAC and Convergence layers, an application layer is needed in order to have end-to-end communication for AMI. DLMS/COSEM is widely adopted at the application layer in this context. As a matter of fact, it is used not only for electricity meters but also for gas and water meters on top of not only PRIME but also all the other NB-PLC solutions available in the market (e.g., G3, Meters&More, OSGP, CX1). Even with wireless solutions such as Zigbee.

DLMS/COSEM is standardized at the IEC 62056. DLMS is actually the application protocol, whereas COSEM defines the data model.

Download the trial version:simPRIME trial

After installing OMNeT++, the trial can be executed running the following command at the "simulation" folder of the uncompressed file:

../src/iPLC_DLMSCOSEM -r 0 -c DLMSCOSEMSeq1 -n ../src:. iPLC_OpenADR_DLMSCOSEM.ini

Simulated Scenarios

In its current state, the simulator allows for the definition of “regular” scenarios. These can mainly be described by the following parameters:

Based on the physical description of the scenario:

  • Number of branches in the network
  • Terminating impedances for all cables
  • Number of Service Nodes (meters) per branch
  • Branch length
  • Physical cable characteristics: resistance, conductance, admittance and capacitance per unit length

Behavior of the end-users:

  • Peak demand/generation for each network user

  • Some knowledge of the network behavior: which nodes are communicating (if not all)?, what’s the length of the exchanged messages?, how often do they communicate? Any delay threshold that should not be exceeded? (this last feature is still under development)

"Automated" scenarios:

  • Based on "S11"report generated from a concentrator. "S11" is a standard report obtained from the concentrator that includes information about the network topology in eXtensible Markup Language (XML) format. This allows to easily replicate a real-life scenario with specific Switches and network levels.
  • Based on OpenGis files. Currently under development

PLCNetwork

You can see the differente node: Base Nodes and Service Nodes; the former ones can have a Terminal or a Swith role, as described before.

Simulation Parameters

PRIME specification leaves some parameter open to specific implementations. Concrete value ranges are defined, though. SimPRIME allows for the modification of a number of these parameters. This feature becomes highly useful when trying to find out the set of parameter values that outperforms in a given scenario. The following parameters are editable via OMNeT++’s .ini file (See OMNeT++ user manual to know more about .ini files):

  • Keepalive (ALV) message time out.
  • Enable Switch capability for specific nodes.
  • Waiting time before a Promotion Needed (PRN) message is sent.
  • Application inter-message time.
  • A list of criteria for choosing which Service Node is promoted to Switch: first-come-first-served; SN which receives more PRN messages; an algorithm based on the effective transmission rate, where the node with the fastest end-to-end transmission rate is chosen; or random.
  • Application request and response message size based on the required report.
  • MAC layer retransmission timer.
  • LLC layer retransmission timer.
  • Criteria for the Service Node to register though a given Switch: highest power received or lower Switch level.
  • Number of ALV timeouts before the Service Node is considered as Unregistered.
  • Channel conditions: White Gaussian Noise or Impulsive Noise channel.
  • LLC layer Maximum Transfer Unit (MTU). Also referred in the standard as “SAR size”.
  • LLC layer size for the congestion window.
  • Different BN-SN polling strategies: Simultaneous, where all SNs are polled at the same time; Sequential, where SNs are polled one after each other; and k-Sequential, where only “k” (variable) nodes are simultaneously polled.
  • Selection of whether ARQ should be used or not to improve reception success rate; although it comes with a latency increase in the system.

SimPRIMEmockup

Simulation Outputs

  • Number of registered nodes as a function of time
  • Number of switches in the network as a function of time
  • State of the SN (i.e., Disconnected, Terminal or Switch) as a function of time.
  • Statistical values for the availability of PRIME nodes as a function of time.
  • Number of correct read attempts as a function of time.
  • Percentage time on each state.
  • Number of nodes depending on each Switch.
  • Statistical and instantaneous values for the node queue length.
  • Statistical values for the round-trip latencies when reading a node.
  • Statistical values for the time needed to read all nodes in a network.

Nodes Switches BN Latency Tree

In addition to this, the following features are currently under development:

- Instantaneous topology graph, with capability represent evolving changes in dependencies.

- Node geographical location (with or without OpenGIS integration).

Projects

This tool has been used to produce part of the data from the following R&D projects and related publications:

Related Publications

[1] Eduardo Alonso, Javier Matanza, Carlos Rodriguez-Morcillo, and Sadot Alexandres. A switch promotion algorithm for improving prime plc network latency. In Power Line Communications and its Applications (ISPLC), 2014 18th IEEE International Symposium on, pages 278-283. IEEE, 2014.

[2] Luís González, Javier Matanza, and Cristina Cordón. Análisis de rendimiento de comunicaciones para lectura de contadores inteligentes. In II Congreso Smart Grids, pages 1-6, 2014.

[3] G López, J I Moreno, H Amarís, and F Salazar. Paving the road toward Smart Grids through large-scale advanced metering infrastructures. Electric Power Systems Research,120:194-205, 2015.

[4] Javier Matanza, Sadot Alexandres, and Carlos Rodriguez-Morcillo. Automatic meter-reading simulation through power line communication. In Modeling, Analysis & Simulation of Computer and Telecommunication Systems (MASCOTS), 2013 IEEE 21st International Symposium on, pages 283-287. IEEE, 2013.

[5] Javier Matanza, Sadot Alexandres, and Carlos Rodríguez-Morcillo. Advanced metering infrastructure performance using european low-voltage power line communication networks. Communications, IET,8(7):1041-1047, 2014.

[6] Javier Matanza Domingo. Improvements in the PLC Systems for Smart Grids Environments.PhD thesis, Pontifical University of Comillas, 2013.

[7] Miguel Seijo, Javier Matanza, Gregorio López, José Ignacio Moreno, and Fernando Martín. Herramientas para evaluación y planificación de redes de comunicaciones para smart grids In II Congreso Smart Grids, 2014.

[8] Miguel Seijo, Jose Ignacio Moreno, Fernando Martín, Javier Matanza, Sadot Alexandres, and Carlos Rodríguez. Poster abstract : "Let There be Light : Unveiling how PRIME Networks Actually Work " Categories and Subject Descriptors. In of the 6th ACM International Conference on Future Energy Systems e-Energy, 2015.