Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Titan » IP Header for BER Message(Need decoded IP Header information for BER Decoded ASN.1 message)
IP Header for BER Message [message #1793403] Tue, 07 August 2018 14:42 Go to next message
Jason Laule is currently offline Jason LauleFriend
Messages: 1
Registered: August 2018
Junior Member
Hi all,

We have an existing testing framework in place that handles GCP messaging for our H.248 testing. The existing is using the external decoding of:

external function enc_PDU_GCP(in MegacoMessage pdu) return octetstring
 with { extension "prototype(convert) encode(BER:BER_ENCODE_DER)" };
external function dec_PDU_GCP(in octetstring stream) return MegacoMessage
 with { extension "prototype(convert) decode(BER:BER_ACCEPT_ALL)" };

For some new functionality, we are needing to be able to verify the dscp related information in the IP Header of the messages that contain the H.248. What we are trying to figure out is how to go about getting the decoded information from RAW to get the IP header and still retain the current decoding of the BER. Any help with this is greatly appreciated.

Re: IP Header for BER Message [message #1793490 is a reply to message #1793403] Thu, 09 August 2018 06:45 Go to previous messageGo to next message
Elemer Lelik is currently offline Elemer LelikFriend
Messages: 1120
Registered: January 2015
Senior Member
Hi Jason,

Protocols are embedded one into another as Matrioshka dolls:


The IP payload is usually a transport layer protocol , TCP or UDP, which carries a higher layer protocol, in your case GCP.

In TTCN-3 you have to do decoding layer by layer: assuming that you start from IP ( that is your test port receives structured IP messages) , first you will have to decode the TCP ( or UDP ) layer; now decoding TCP also assumes that you want to handle the TCP protocol from that layer which is not practical; for UDP this is not a problem.

From the structured UDP (or TCP ) message obtained you can extract the GCP payload and decode it with the BER codec.

This leads to the following architecture:

some IP test port that handles structured IP messages ;
here , a combination of the LANL2 test port and the IP protocol module (with teh associated RAW codec) can be used ( see product list on

in the next step , the TCP/UDP messages can be (binary RAW) decoded/encoded with the TCP/UDP protocol module

Finally , the extracted GCP payload is transferred to the BER codec

On every protocol level, the headers can be analyzed and verified as needed.

To bridge the gap between distant protocol layers its practical to use the translation port feature that has been described in several posts.

Now I understand you have an existing framework. The exact answer to your question depends on how this is structured already. If you have access to IP messages than just simply decode them along the way using the IP protocol module.

I hope this helps

Best regards

  • Attachment: GCP.png
    (Size: 22.56KB, Downloaded 214 times)

[Updated on: Thu, 09 August 2018 07:23]

Report message to a moderator

Re: IP Header for BER Message [message #1793496 is a reply to message #1793490] Thu, 09 August 2018 07:32 Go to previous message
Gábor Szalai is currently offline Gábor SzalaiFriend
Messages: 86
Registered: December 2015
Which test port do you use to send and receive the messages?

Maybe it is enough to modify the test por to pass or set the dscp header field.
Previous Topic:Error in function generation
Next Topic:Decoding NAS PDUs
Goto Forum:

Current Time: Sun Jul 25 02:30:44 GMT 2021

Powered by FUDForum. Page generated in 0.02646 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top