The MAC layer in veins












2















I am using omnet++-5.4.1, veins-4.7.1 and sumo-0.25.0 to simulate vehicle frame transmission.



About the behavior of the EDCA in the mac layer in WAVE, in my understanding the waiting time to send can be obtained by the following calculation.



waiting time = AIFS[AC] + backoff

AIFS[AC] = SIFS + AIFSN[AC] * slotlength



However, in the startContent function of Mac 1609_4.cc, it is written as follows



if (idleTime > possibleNextEvent) {
DBG_MAC << "Could have already send if we had it earlier" << std::endl;
//we could have already sent. round up to next boundary
simtime_t base = idleSince + DIFS;
possibleNextEvent = simTime() - simtime_t().setRaw((simTime() - base).raw() % SLOTLENGTH_11P.raw()) + SLOTLENGTH_11P;
}


Even during simulation, transmission is performed without waiting for the time calculated just after the transmission request has occurred.



As described above, it is considered that the operation of the original EDCA (CSMA / CA) has not been performed and the busyness of the channel is not sensed.



I do not understand enough about this Mac layer? Please let me know if I missed some information.



Thank you.










share|improve this question























  • What exactly is your question? If the implementation in Veins is correct? If your understanding is correct?

    – Christoph Sommer
    Nov 20 '18 at 7:08











  • Sorry, I may have misunderstood. I was calling the sendDown function in TraCIDemo 11p.cc. In my opinion, after the sendDown function was called, it waited for AIFS and backoff time, then sent a frame. However, in Veins, after the sendDown function was called, AIFS and backoff time were taken into account by inverse computing whether the channel was free from that point.

    – 7ufi
    Nov 21 '18 at 5:15
















2















I am using omnet++-5.4.1, veins-4.7.1 and sumo-0.25.0 to simulate vehicle frame transmission.



About the behavior of the EDCA in the mac layer in WAVE, in my understanding the waiting time to send can be obtained by the following calculation.



waiting time = AIFS[AC] + backoff

AIFS[AC] = SIFS + AIFSN[AC] * slotlength



However, in the startContent function of Mac 1609_4.cc, it is written as follows



if (idleTime > possibleNextEvent) {
DBG_MAC << "Could have already send if we had it earlier" << std::endl;
//we could have already sent. round up to next boundary
simtime_t base = idleSince + DIFS;
possibleNextEvent = simTime() - simtime_t().setRaw((simTime() - base).raw() % SLOTLENGTH_11P.raw()) + SLOTLENGTH_11P;
}


Even during simulation, transmission is performed without waiting for the time calculated just after the transmission request has occurred.



As described above, it is considered that the operation of the original EDCA (CSMA / CA) has not been performed and the busyness of the channel is not sensed.



I do not understand enough about this Mac layer? Please let me know if I missed some information.



Thank you.










share|improve this question























  • What exactly is your question? If the implementation in Veins is correct? If your understanding is correct?

    – Christoph Sommer
    Nov 20 '18 at 7:08











  • Sorry, I may have misunderstood. I was calling the sendDown function in TraCIDemo 11p.cc. In my opinion, after the sendDown function was called, it waited for AIFS and backoff time, then sent a frame. However, in Veins, after the sendDown function was called, AIFS and backoff time were taken into account by inverse computing whether the channel was free from that point.

    – 7ufi
    Nov 21 '18 at 5:15














2












2








2








I am using omnet++-5.4.1, veins-4.7.1 and sumo-0.25.0 to simulate vehicle frame transmission.



About the behavior of the EDCA in the mac layer in WAVE, in my understanding the waiting time to send can be obtained by the following calculation.



waiting time = AIFS[AC] + backoff

AIFS[AC] = SIFS + AIFSN[AC] * slotlength



However, in the startContent function of Mac 1609_4.cc, it is written as follows



if (idleTime > possibleNextEvent) {
DBG_MAC << "Could have already send if we had it earlier" << std::endl;
//we could have already sent. round up to next boundary
simtime_t base = idleSince + DIFS;
possibleNextEvent = simTime() - simtime_t().setRaw((simTime() - base).raw() % SLOTLENGTH_11P.raw()) + SLOTLENGTH_11P;
}


Even during simulation, transmission is performed without waiting for the time calculated just after the transmission request has occurred.



As described above, it is considered that the operation of the original EDCA (CSMA / CA) has not been performed and the busyness of the channel is not sensed.



I do not understand enough about this Mac layer? Please let me know if I missed some information.



Thank you.










share|improve this question














I am using omnet++-5.4.1, veins-4.7.1 and sumo-0.25.0 to simulate vehicle frame transmission.



About the behavior of the EDCA in the mac layer in WAVE, in my understanding the waiting time to send can be obtained by the following calculation.



waiting time = AIFS[AC] + backoff

AIFS[AC] = SIFS + AIFSN[AC] * slotlength



However, in the startContent function of Mac 1609_4.cc, it is written as follows



if (idleTime > possibleNextEvent) {
DBG_MAC << "Could have already send if we had it earlier" << std::endl;
//we could have already sent. round up to next boundary
simtime_t base = idleSince + DIFS;
possibleNextEvent = simTime() - simtime_t().setRaw((simTime() - base).raw() % SLOTLENGTH_11P.raw()) + SLOTLENGTH_11P;
}


Even during simulation, transmission is performed without waiting for the time calculated just after the transmission request has occurred.



As described above, it is considered that the operation of the original EDCA (CSMA / CA) has not been performed and the busyness of the channel is not sensed.



I do not understand enough about this Mac layer? Please let me know if I missed some information.



Thank you.







omnet++ veins






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Nov 20 '18 at 6:44









7ufi7ufi

112




112













  • What exactly is your question? If the implementation in Veins is correct? If your understanding is correct?

    – Christoph Sommer
    Nov 20 '18 at 7:08











  • Sorry, I may have misunderstood. I was calling the sendDown function in TraCIDemo 11p.cc. In my opinion, after the sendDown function was called, it waited for AIFS and backoff time, then sent a frame. However, in Veins, after the sendDown function was called, AIFS and backoff time were taken into account by inverse computing whether the channel was free from that point.

    – 7ufi
    Nov 21 '18 at 5:15



















  • What exactly is your question? If the implementation in Veins is correct? If your understanding is correct?

    – Christoph Sommer
    Nov 20 '18 at 7:08











  • Sorry, I may have misunderstood. I was calling the sendDown function in TraCIDemo 11p.cc. In my opinion, after the sendDown function was called, it waited for AIFS and backoff time, then sent a frame. However, in Veins, after the sendDown function was called, AIFS and backoff time were taken into account by inverse computing whether the channel was free from that point.

    – 7ufi
    Nov 21 '18 at 5:15

















What exactly is your question? If the implementation in Veins is correct? If your understanding is correct?

– Christoph Sommer
Nov 20 '18 at 7:08





What exactly is your question? If the implementation in Veins is correct? If your understanding is correct?

– Christoph Sommer
Nov 20 '18 at 7:08













Sorry, I may have misunderstood. I was calling the sendDown function in TraCIDemo 11p.cc. In my opinion, after the sendDown function was called, it waited for AIFS and backoff time, then sent a frame. However, in Veins, after the sendDown function was called, AIFS and backoff time were taken into account by inverse computing whether the channel was free from that point.

– 7ufi
Nov 21 '18 at 5:15





Sorry, I may have misunderstood. I was calling the sendDown function in TraCIDemo 11p.cc. In my opinion, after the sendDown function was called, it waited for AIFS and backoff time, then sent a frame. However, in Veins, after the sendDown function was called, AIFS and backoff time were taken into account by inverse computing whether the channel was free from that point.

– 7ufi
Nov 21 '18 at 5:15












0






active

oldest

votes











Your Answer






StackExchange.ifUsing("editor", function () {
StackExchange.using("externalEditor", function () {
StackExchange.using("snippets", function () {
StackExchange.snippets.init();
});
});
}, "code-snippets");

StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "1"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});

function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});


}
});














draft saved

draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53387591%2fthe-mac-layer-in-veins%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown

























0






active

oldest

votes








0






active

oldest

votes









active

oldest

votes






active

oldest

votes
















draft saved

draft discarded




















































Thanks for contributing an answer to Stack Overflow!


  • Please be sure to answer the question. Provide details and share your research!

But avoid



  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.


To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53387591%2fthe-mac-layer-in-veins%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

Guess what letter conforming each word

Run scheduled task as local user group (not BUILTIN)

Port of Spain