943,708 Members | Top Members by Rank

Ad:
  • C++ Discussion Thread
  • Unsolved
  • Views: 4125
  • C++ RSS
Mar 7th, 2007
0

Design pattern for encode/decode modules

Expand Post »
Hello Everyone,
Does anyone know any design patterns for modules meant for encoding/decoding of protocol messages. E.g. BSSMAP/LAP...
We need to write encoders and decoders for BSSMAP and BSSLAP messages for our product.
All the IE (information elements) are defined by standards, so we know everything abt every field in the message. Currently we plan to do the whole thing in 'C', but I'm convinced that a C++ OO design would be much better (for testability and extensibility). Now before I start coming up with my own design, I was wondering if someone has already done it given that it's a common problem.

Thanks
Kashyap

PS: No response at Computer Science and Software Design so trying in this forum.
Similar Threads
Reputation Points: 254
Solved Threads: 74
Practically a Posting Shark
thekashyap is offline Offline
804 posts
since Feb 2007
Mar 7th, 2007
0

Re: Design pattern for encode/decode modules

Click to Expand / Collapse  Quote originally posted by thekashyap ...
Hello Everyone,
Does anyone know any design patterns for modules meant for encoding/decoding of protocol messages. E.g. BSSMAP/LAP...
We need to write encoders and decoders for BSSMAP and BSSLAP messages for our product.
All the IE (information elements) are defined by standards, so we know everything abt every field in the message. Currently we plan to do the whole thing in 'C', but I'm convinced that a C++ OO design would be much better (for testability and extensibility). Now before I start coming up with my own design, I was wondering if someone has already done it given that it's a common problem.

Thanks
Kashyap

PS: No response at Computer Science and Software Design so trying in this forum.
I'm not too familar with the BSSMAP or BASSLAP control protocols, however, I've found by observing how other applications work one can can extract ideas based on how an exisiting product(s) works. I try to find inspiration where ever I can find it. Regarding control nformation between MTP and BASS (i.e. certain control of traffic channels), read up on how an exisiting products. Using your knowledge of C++ and ideas (hopefully written) derived from a product specifications, you can pretty much visualize a pattern, algorithms or architecture for your enconding/decoding program that convert such information to a format specific to your product. Here is a link to some exisiting products you might find useful http://www.odints.com/pages/prod/prodmain.htm

Note: This is just to give you some ideas incase you don't find any support or help before the deadline require for the software development process.

Good luck, Lamabott
Reputation Points: 11
Solved Threads: 13
Junior Poster
Lazaro Claiborn is offline Offline
171 posts
since Jan 2007
Mar 7th, 2007
0

Re: Design pattern for encode/decode modules

You might want to try the networking forums of Daniweb for information regarding applications used to encode/decode BSSMAP/LAP protocol header field/octect information.

Good luck, LamaBot
Last edited by Lazaro Claiborn; Mar 7th, 2007 at 1:55 am.
Reputation Points: 11
Solved Threads: 13
Junior Poster
Lazaro Claiborn is offline Offline
171 posts
since Jan 2007
Mar 8th, 2007
0

Re: Design pattern for encode/decode modules

I'm not too familar with the BSSMAP or BASSLAP control protocols, however, I've found by observing how other applications work one can can extract ideas based on how an exisiting product(s) works. I try to find inspiration where ever I can find it. Regarding control nformation between MTP and BASS (i.e. certain control of traffic channels), read up on how an exisiting products. Using your knowledge of C++ and ideas (hopefully written) derived from a product specifications, you can pretty much visualize a pattern, algorithms or architecture for your enconding/decoding program that convert such information to a format specific to your product. Here is a link to some exisiting products you might find useful http://www.odints.com/pages/prod/prodmain.htm

Note: This is just to give you some ideas incase you don't find any support or help before the deadline require for the software development process.

Good luck, Lamabott
I wasn't looking for exactly BSSMAP/LAP, it could even be TCP/IP ! Any protocol at all will do. Thanks anyways.

You might want to try the networking forums of Daniweb for information regarding applications used to encode/decode BSSMAP/LAP protocol header field/octect information.

Good luck, LamaBot
That forum seems more on network configuration mgmt. .
Reputation Points: 254
Solved Threads: 74
Practically a Posting Shark
thekashyap is offline Offline
804 posts
since Feb 2007
May 23rd, 2008
0

Re: Design pattern for encode/decode modules

Hello,

I'm newbye on this forum and I'm insterested by finding patterns for protocol coding/decoding. The idea is to use this kind of pattern with a Strategy patten to select which coder/decoder according messages cominmg from testbed equipment.

Thanks,

Best regards,

Yann

Click to Expand / Collapse  Quote originally posted by thekashyap ...
Hello Everyone,
Does anyone know any design patterns for modules meant for encoding/decoding of protocol messages. E.g. BSSMAP/LAP...
We need to write encoders and decoders for BSSMAP and BSSLAP messages for our product.
All the IE (information elements) are defined by standards, so we know everything abt every field in the message. Currently we plan to do the whole thing in 'C', but I'm convinced that a C++ OO design would be much better (for testability and extensibility). Now before I start coming up with my own design, I was wondering if someone has already done it given that it's a common problem.

Thanks
Kashyap

PS: No response at Computer Science and Software Design so trying in this forum.
Reputation Points: 10
Solved Threads: 0
Newbie Poster
Yann Garcia is offline Offline
1 posts
since May 2008

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in C++ Forum Timeline: Algorithm/Lib for analysing references in scientific documents needed
Next Thread in C++ Forum Timeline: Safe proofing Program





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC