How to modify the MAC header structure

54 views
Skip to first unread message

SEDE

unread,
Jul 17, 2020, 4:25:23 AM7/17/20
to OMNeT++ Users
Hi everyone,

I want to modify an existing MAC header structure in INET (for example bmac) where the MAC header will contain an additional bit along with the source address, destination address and type. I have to set/reset that bit before transmitting the packet to the receiver, so receiver can make some decision.

Would anyone please suggest me how I can do that in INET?

Thanking you


SEDE

unread,
Jul 20, 2020, 3:59:23 AM7/20/20
to OMNeT++ Users
Hello Alfonso,

Sir, would you please suggest me aboout my question?

Thanking you

Alfonso Ariza Quintana

unread,
Jul 20, 2020, 10:44:50 AM7/20/20
to omn...@googlegroups.com

You can edit the msg file and include the fields that you need, later, in the mac code, you can modify the header size

 

Enviado desde Correo para Windows 10

--
You received this message because you are subscribed to the Google Groups "OMNeT++ Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to omnetpp+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/omnetpp/4473f3fc-0b9e-442e-8a3a-a0b35880dec9o%40googlegroups.com.

 

Alfonso Ariza Quintana

unread,
Jul 20, 2020, 10:45:21 AM7/20/20
to omn...@googlegroups.com

But this question is in the documentation

 

Enviado desde Correo para Windows 10

 

De: SEDE
Enviado: lunes, 20 de julio de 2020 9:59
Para: OMNeT++ Users
Asunto: [Omnetpp-l] Re: How to modify the MAC header structure

 

Hello Alfonso,

--

SEDE

unread,
Jul 21, 2020, 3:58:22 AM7/21/20
to OMNeT++ Users
Hello Alfonso,

Sir, did you mean this question is in user manual?

On Tuesday, July 21, 2020 at 12:45:21 AM UTC+10, Alfonso Ariza Quintana wrote:

But this question is in the documentation

 

Enviado desde Correo para HWindows 10

 

De: SEDE
Enviado: lunes, 20 de julio de 2020 9:59
Para: OMNeT++ Users
Asunto: [Omnetpp-l] Re: How to modify the MAC header structure

 

Hello Alfonso,

 

Sir, would you please suggest me aboout my question?

 

Thanking you


On Friday, July 17, 2020 at 6:25:23 PM UTC+10, SEDE wrote:

Hi everyone,

 

I want to modify an existing MAC header structure in INET (for example bmac) where the MAC header will contain an additional bit along with the source address, destination address and type. I have to set/reset that bit before transmitting the packet to the receiver, so receiver can make some decision.

 

Would anyone please suggest me how I can do that in INET?

 

Thanking you

 

 

--
You received this message because you are subscribed to the Google Groups "OMNeT++ Users" group.

To unsubscribe from this group and stop receiving emails from it, send an email to omn...@googlegroups.com.

Alfonso Ariza Quintana

unread,
Jul 21, 2020, 5:07:51 AM7/21/20
to omn...@googlegroups.com
yes, it is,

De: omn...@googlegroups.com <omn...@googlegroups.com> en nombre de SEDE <afroz...@gmail.com>
Enviado: martes, 21 de julio de 2020 9:58
Para: OMNeT++ Users <omn...@googlegroups.com>
Asunto: Re: [Omnetpp-l] Re: How to modify the MAC header structure
 
Hello Alfonso,

Sir, did you mean this question is in user manual?

On Tuesday, July 21, 2020 at 12:45:21 AM UTC+10, Alfonso Ariza Quintana wrote:

But this question is in the documentation

 

Enviado desde Correo para HWindows 10

 

De: SEDE
Enviado: lunes, 20 de julio de 2020 9:59
Para: OMNeT++ Users
Asunto: [Omnetpp-l] Re: How to modify the MAC header structure

 

Hello Alfonso,

 

Sir, would you please suggest me aboout my question?

 

Thanking you


On Friday, July 17, 2020 at 6:25:23 PM UTC+10, SEDE wrote:

Hi everyone,

 

I want to modify an existing MAC header structure in INET (for example bmac) where the MAC header will contain an additional bit along with the source address, destination address and type. I have to set/reset that bit before transmitting the packet to the receiver, so receiver can make some decision.

 

Would anyone please suggest me how I can do that in INET?

 

Thanking you

 

 

--
You received this message because you are subscribed to the Google Groups "OMNeT++ Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to omn...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/omnetpp/4473f3fc-0b9e-442e-8a3a-a0b35880dec9o%40googlegroups.com.

 

--
You received this message because you are subscribed to the Google Groups "OMNeT++ Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to omnetpp+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/omnetpp/f2b01219-d0d9-468e-837d-0f69b5ee10cao%40googlegroups.com.

SEDE

unread,
Jul 21, 2020, 9:12:35 AM7/21/20
to OMNeT++ Users
Hello Alfonso,
Sir, in xmac, the preamble length and MAC header length is same (preamble->setChunkLength(ctrlFrameLength)). So, if i want to modify preamble structure, I have to change header structure the way you mentioned above. Is not it?

Thanking you

On Tuesday, July 21, 2020 at 7:07:51 PM UTC+10, Alfonso Ariza Quintana wrote:

Alfonso Ariza Quintana

unread,
Jul 21, 2020, 11:55:57 AM7/21/20
to omn...@googlegroups.com
You need to modify the msg file if you want to include a new field

De: omn...@googlegroups.com <omn...@googlegroups.com> en nombre de SEDE <afroz...@gmail.com>
Enviado: martes, 21 de julio de 2020 15:12
To unsubscribe from this group and stop receiving emails from it, send an email to omnetpp+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/omnetpp/3ec5acb4-e340-4887-b1ca-8a83c8e38cf5o%40googlegroups.com.

SEDE

unread,
Jul 23, 2020, 12:28:26 AM7/23/20
to omn...@googlegroups.com
Hello Alfonso,

Sir, if i want to change/extend header structure, do i need to add field under class MacHeaderBase extends FieldsChunk or below one?

class MacControlFrame extends MacHeaderBase
{
}

Thank you

On Wednesday, July 22, 2020 at 1:55:57 AM UTC+10, Alfonso Ariza Quintana wrote:
You need to modify the msg file if you want to include a new field

Alfonso Ariza Quintana

unread,
Jul 23, 2020, 3:25:53 AM7/23/20
to omn...@googlegroups.com
It depends where you want the field, for all xmac frames or only for control frames

De: omn...@googlegroups.com <omn...@googlegroups.com> en nombre de SEDE <afroz...@gmail.com>
Enviado: jueves, 23 de julio de 2020 6:28

Para: OMNeT++ Users <omn...@googlegroups.com>
Asunto: Re: [Omnetpp-l] Re: How to modify the MAC header structure
 
Hello Alfonso,

Sir, if i want to change/entend header structure, do i need to add field under class MacHeaderBase extends FieldsChunk or below one?

class XMacControlFrame extends XMacHeaderBase
{
}
To unsubscribe from this group and stop receiving emails from it, send an email to omnetpp+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/omnetpp/b50e0554-247b-4ef7-8d0a-b8d6b0275fdco%40googlegroups.com.

S Tanin

unread,
Jul 23, 2020, 3:36:45 AM7/23/20
to OMNeT++ Users
Sir, can you please say me what is the difference between xmac frame and control frame? I want additional field in preamble. For that, where i have to add fields?

Thanking you

On Thursday, July 23, 2020 at 5:25:53 PM UTC+10, Alfonso Ariza Quintana wrote:
It depends where you want the field, for all xmac frames or only for control frames

SEDE

unread,
Jul 23, 2020, 7:14:39 AM7/23/20
to OMNeT++ Users

Sir, I only need additional fields for preamble. In that case, would you suggest where to add that?

On Thursday, July 23, 2020 at 5:25:53 PM UTC+10, Alfonso Ariza Quintana wrote:
It depends where you want the field, for all xmac frames or only for control frames

Imtithal Saeed

unread,
Jul 23, 2020, 3:04:52 PM7/23/20
to OMNeT++ Users
Can one add  parameter to embed what he/she wants?

Alfonso Ariza Quintana

unread,
Jul 24, 2020, 5:03:28 AM7/24/20
to omn...@googlegroups.com
If the preamble is of type control, you can add in the control

De: omn...@googlegroups.com <omn...@googlegroups.com> en nombre de Imtithal Saeed <imtit...@gmail.com>
Enviado: jueves, 23 de julio de 2020 21:04
Para: OMNeT++ Users <omn...@googlegroups.com>
Asunto: [Omnetpp-l] Re: How to modify the MAC header structure
 
--
You received this message because you are subscribed to the Google Groups "OMNeT++ Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to omnetpp+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/omnetpp/c5db1923-1f70-4bd6-85b4-f75784169480o%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages