0

I have a question about the independence of the layers. I know that the layers in protocol stack are designed in a way to be independent from each other. I want to know does it mean also that we can use different combinations for the layers.

The reason I am asking this is that I notice that in network simulator 3 (ns-3), wifi module has its own mac layer and phy layer. I was wondering whether it is possible to use a phy layer module of a technology and use mac layer module of another technology, when specifying the layers of a node; or are they designed depending on each other? Could you please help me?

2 Answers 2

2

That's more a philosophical question...

Most often, the physical and the data link layer are designed together, even if many data link layer implementations are very similar. The point is that you can optimize and hone the data link layer for what the physical layer doesn't cover very well.

Take 802.11 and 802.3 for example - 802.3 L1 is highly reliable, very fast (10M-400G) and point-to-point. Popular L2 features are link aggregation, redundant meshing and virtualization.

802.11 L1 is wireless radio, so there are inherent problems like bandwidth sharing, noise, reach and eavesdropping. It's L2 focuses on media access, reliability, encryption and authentication.

2
  • @Zac67-Thanks for your reply. But, what about the protocols of the similar type. I mean for example 802.11 and 802.16; Is it possible for example to use the L1 layer of 802.16 and L2 layer of 802.11 in a node? I know that it is not optimized but I want to know if it will work at all?
    – Cror2014
    Commented Apr 16, 2019 at 5:50
  • I'm not too familiar with either WiMAX or Wi-Fi to really answer that, sorry.
    – Zac67
    Commented Apr 16, 2019 at 6:16
0

I do not clearly understand your question,

But, think about these layers as an information package, that can be understood only by the same type of equipment but on the other side of the communication.

WiFi is a L2 technology, that (not necessarily) carries another L2 information. (There are other technologies using this approach i.e.: QinQ) Actually L3 packets can also carry L2 information, but that is a different story.

So, you have a WiFi layer, which is processed by the other wireless device you talking to, but that conversation is not happening on the WiFi device itself so it needs to "forward" the traffic for example a server which is communication through Ethernet, so the WiFi frame contains information about the server's L2 information.

1
  • Thanks for your reply. I have commented on the first response. It might clarify my question.
    – Cror2014
    Commented Apr 16, 2019 at 5:51

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.