ArticleslgStudy

science

TNSDL

TNSDL is a science topic covered in the lgStudy science library. This page brings together a partial reference excerpt, illustrations, worked examples, real-world applications and a short study plan, so you can understand TNSDL rather than just read about it. In short: TeleNokia Specification and Description Language (TNSDL) is based on the ITU-T Specification and Description Language (SDL)-88. It is used exclusively at Nokia Networks, mainly to develop applications for telephone exchanges.

Key takeaways

  • TNSDL belongs to science; place it in that map before memorising details.
  • Learn the definition first, then one example that makes the definition concrete.
  • Connect TNSDL to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of TNSDL from memory before moving on to harder problems.

Reference excerpt

TeleNokia Specification and Description Language (TNSDL) is based on the ITU-T Specification and Description Language (SDL)-88. It is used exclusively at Nokia Networks, mainly to develop applications for telephone exchanges.

Purpose TNSDL is a general-purpose procedural programming language. It is especially well-suited for developing highly concurrent, distributed systems. Originally designed for programming circuit switched exchanges, as the world shifted toward packet-switched and internet-based telecommunication, TNSDL turned out to be an excellent fit for developing internet servers, too.

Design

Basics TNSDL is a strongly typed procedural programming language. Its basic abilities are comparable to the languages C and Pascal.

Multi-processing In TNSDL, processes are created by the CREATE command. It is somewhat similar to the POSIX fork or pthread_create commands. The CREATE command creates either an operating system process or a cooperative task. The process model can be selected by configuration. The source code does not reflect which scheduling method is used. Still, to avoid certain race conditions, a program may need to be planned for parallel execution. TNSDL explicitly supports critical sections to be marked in the code. In case of cooperative multitasking, a program is scheduled as one operating system process. When a cooperative thread enters the state of waiting for asynchronous input, another thread of the program may run.

Message passing The feature of TNSDL is the actor model. Processes are meant to be designed as event-driven finite-state machines. Inter-process communication is done by asynchronous message passing. The OUTPUT command sends a message, while INPUT statements define the expected messages. Timers, from TNSDL perspective, are delayed messages. As with ordinary messages, timer expiration is handled by the INPUT statement. The SET command starts and the RESET command cancels a timer. State machines can be optionally used, for example, to prevent accepting certain input messages at some stage of the processing. The code piece below demonstrates a server, which receives a query signal (message), contacts a database process to obtain the necessary data and finally sends an answer signal.

Comments:

The state machine prevents any new query_signal to be processed while waiting for the database program to answer. WITHWARMING means that when another computer takes over the role of the current one, the marked data (variable) will be copied to the new computer. Therefore, if hardware change or software update happens while waiting for the database to answer, the address of the query sender will not be lost, and the answer can be delivered properly. It is not supported on all platforms, though. TNSDL allows inputs to be tied to several or all of the states. An input signal may have state-specific behavior, if needed.

Differences from SDL-88 Nokia has made several modifications to the language, mainly including simplifications and additions, such as:

Features like channels and signal routes have been replaced by other mechanisms. The concepts of modules and services were added in TNSDL (the service concept of SDL-88 is similar to the subautomaton feature of TNSDL). Some elements have been renamed (for example Priority Inputs are called Input Internals in TNSDL). In TNSDL the MACRO feature has been omitted and a WHILE construct has been added to allow loops in a structured way without using JOINs.

Compiling TNSDL is not directly compiled to machine code. Instead, TNSDL programs are translated to C language source code as an intermediate representation. The responsibility of TNSDL is to allow message handling, state machine definitions, synchronizing parallel execution, "data warming" etc. easily and safely coded. The task of processor-specific code generation and low-level optimization is delegated to the C compiler used. After translating TNSDL to C, any standard-compliant C compiler, linker, coverage measurement and profiling tool can be used. To make source-level debugging possible TNSDL puts line number references to the generated C code. TNSDL code can call routines implemented in other languages, if objects or libraries are present for them. Even C language macros can be used, if C header files are present. External declarations must be made available to the TNSDL translator. The TNSDL translator is a proprietary tool. A source code (reachability) analyser has also been developed specifically for TNSDL.

Use TNSDL is commonly used on the DX 200, IPA 2800 and Linux platforms for high-performance, high-availability applications. TNSDL is an actively used and developed programming language used by thousands of developers (in 2010). TNSDL is mainly used at Nokia Networks for developing software for SGSNs, BSCs, mobile switching centers, application servers both in traditional setups and as virtual network functions (VNF) of NFV solutions.

Similar programming languages Despite the difference in syntax, probably one of the closest relative of TNSDL is Go language. Both languages has light-weight processes in their focus. Go's channel are similar to TNSDL INPUTs and Go's select statement on channels allows very similar program design. There are differences, though. TNSDL uses asynchronous message passing between actors, while channels in Go can either be synchronous or asynchronous (buffered). TNSDL allows message passing between processes running on the same or separate computer nodes. In that aspect TNSDL is a relative of Erlang. Even though in TNSDL one can define operators for types and protect structure attributes to be accessible via those operators only, TNSDL is not an object-oriented language. In that aspect it belongs to the family of non-OOP procedural programming languages, such as C language.

History 1980s: In the beginning, ITU-T SDL had a graphical syntax. Textual syntax was introduced later. A corresponding graphical tool and code generator were developed within Nokia. 1990: ITU-T SDL shifted towards text-based representation. Based on the SDL-88 specification TNSDL was born. TNSDL is a simplified and heavily customized variant of SDL-88.

References

Worked examples

Example 1 — a first encounter with TNSDL

Start with the simplest possible case. Write down what TNSDL claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In science, the smallest case is usually a single object, a single equation or a single measurement. Check that every symbol or term in your sentence has a meaning in that case.

Example 2 — changing one variable

Take the situation from Example 1 and change exactly one quantity: double it, halve it, or set it to zero. Predict what should happen to TNSDL before you calculate. Comparing your prediction with the result is the fastest way to find out whether you understand the idea or only the words.

Example 3 — an exam-style question

Typical questions about TNSDL ask you to (a) state it precisely, (b) apply it to given data, and (c) explain a limitation. Practise writing all three answers in under five minutes; the third part is what separates a full-mark answer from an average one.

Applications of TNSDL

In research
TNSDL appears in science research whenever the underlying quantities have to be modelled precisely. Papers usually cite it as a starting assumption and then explore where it breaks down.
In technology and industry
Engineering practice reuses TNSDL in design rules, simulations and safety margins. Knowing the idea lets you read a specification sheet and understand why the numbers look the way they do.
In the classroom
TNSDL is common in secondary-school and first-year university syllabi. It links to neighbouring topics Formal specification languages, Procedural programming languages, Programming languages created in the 1980s, so understanding it makes those chapters shorter.
In everyday life
Look for TNSDL outside the textbook — in sport, cooking, traffic, electronics or the sky above you. An example you found yourself is remembered far longer than one you were given.
Ask Teacher Smith questions about this articleOpens your AI tutor with a question about “TNSDL” →

How to study TNSDL in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what TNSDL means in your own words.
  3. Compare your version with the excerpt and mark what you missed.
  4. Work through the three examples above with pen and paper.
  5. Explain TNSDL out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is TNSDL in simple terms?

TeleNokia Specification and Description Language (TNSDL) is based on the ITU-T Specification and Description Language (SDL)-88. It is used exclusively at Nokia Networks, mainly to develop applications for telephone exchanges.

Why does TNSDL matter?

Because it connects several science ideas at once: it gives you a definition you can apply, a quantity you can calculate, and a way to check whether a result is plausible.

How should I study TNSDL?

Read the excerpt, restate it from memory, then work through the examples and applications listed on this page. The five-step study plan above takes about twenty minutes.

What does this page cover?

It gives you a compact reference excerpt plus original lgStudy explanations, examples, applications and study material on TNSDL.

Tags

  • Formal specification languages
  • Procedural programming languages
  • Programming languages created in the 1980s

Keep exploring