[Q] Encapsulate multiple packets in a packet

446 views
Skip to first unread message

Kyeong Soo (Joseph) Kim

unread,
Jun 29, 2009, 12:17:14 PM6/29/09
to omn...@googlegroups.com
Dear All,

I wonder what is the most efficient way to implement the encapsulation of multiple packets in a packet.
As far as I know, neither OMNeT++ nor INET (and its many variations) has ever implemented this feature. Of course, please correct me if I'm wrong.

For example, the encapsulation of multiple packets/frames is critical for modeling optical burst switching and several flavors of next-generation PONs. Also, note that upcoming IEEE 802.11n (MIMO) standard has a superframe facility, which aggregates multiple packets into one giant frame for transmission efficiency.

In the past I did implement this in a quite adhoc manner by adding "cPacketQueue" field in a new message definition (but don't know how to integrate related functions into the resulting message object), but it's hardly a noble one and certainly we better have a systematic approach to implement it, which, later, could be integrated into the next version of OMNeT++ if possible.

Reading the manual, I found out that "The Generation Gap Pattern" described in Sec. 5.2.6 could be used for this extension of encapsulation function (or addition of a new function). As for actual implementation, however, any guidance and/or suggestion would be greatly appreciated in this regard.

Regards,
Joseph

Kyeong Soo (Joseph) Kim

unread,
Jun 30, 2009, 5:00:46 AM6/30/09
to omn...@googlegroups.com
Sorry for self-responding, but I found further information in Sec. 5.1.4 ("Encapsulating several messages") of the OMNeT++ manual.

In fact, the example provided there ("insertMessage" and "removeMessage" using std::list) is very similar to what I did with cPacketQueue, but I wonder why we have to take the ownership of the encapsulated messages here. It seems that they may be needed for copy and duplication operations. Otherwise, is it ok to not take the ownership here?

As I said before, due to the complexity of related definitions and implementations (not just simple inserting and removal, but true encapsulate-like operations including automatic handling of length, copy, duplication, ...), I do hope that this extension of encapsulation/decapsulation to multiple messages will be integrated to the OMNeT++ itself.

Regards,
Joseph

Nesrine Doghri

unread,
Mar 1, 2013, 3:27:56 PM3/1/13
to omn...@googlegroups.com

Thanks for the clarification .
Do you know how to implement multiple antennas in OMNET++ or any other simulator ?
Thanks

ihsa...@gmail.com

unread,
Jun 11, 2013, 11:55:28 AM6/11/13
to omn...@googlegroups.com

ihsa...@gmail.com

unread,
Jun 11, 2013, 11:57:28 AM6/11/13
to omn...@googlegroups.com
Dear Koseph

Hi,
Have you found any method to put a multiple packets in a single message (may be called as burst). if yes, please share.

Regards

Ihsan UlHaq


On Monday, June 29, 2009 5:17:14 PM UTC+1, Joseph wrote:
Reply all
Reply to author
Forward
0 new messages