ProDeveloperTutorial.com

Tutorials and Programming Solutions
Menu
  • Shell Scripting
  • System Design
  • Linux System Programming
  • 4g LTE
  • Coding questions
  • C
  • C++
  • DSA
  • GIT
  • 450 DSA Cracker
  • 5G NR
  • O-RAN

LTE MAC: MAC Layer Introduction

prodevelopertutorial May 18, 2020

MAC Layer Function:

1. Mapping between logical channels and transport channel.
2. Multiplexing of MAC SDU form one or more different logical channels onto the transport blocks.
3. Those Transport blocks will be delivered to the physical channel.
4. De-multiplexing for MAC PDUs from transport blocks from physical channel to transport channel.
5. Error correction through HARQ.
6. Logical channel prioritization
7. Transport format selection.

Some of the functions are specific to UE and some of them are specific to eNB.

Below is the detailed image of the correct functions:

MAC function location and link direction association.

MAC_FUNCTIONS

MAC Architecture:

mac_architecture

From the above image, we can see can see that MAC layer has multiple entities in its architecture.

  1. Multiplexing and De-Multiplexing:

    Its function is to composing and decomposing of multiple MAC PDU to and from the transport channels.

  2. Logical channel Prioritisation:

    This entity will tell how much data from each logical channel should be included in each MAC PDU.

  3. HARQ:

    It preforms Hybrid Automatic Repeat Request, which includes automatic transmission of transport packets, retransmission of transport blocks.

  4. Control Entity:

    It handles DRX resource requests, power headroom report.

 

MAC layer sits between RLC layer and PHY layer.

PCCH is mapped to PCH
BCCH is mapped to BCH and HARQ
CCCH, DCCH, DTCH is mapped to Logical Channel prioritization.

MAC PDU

There are 3 different types of MAC PDU

1. MAC PDU for Transparent MAC
2. MAC PDU for DL-SCH and UL-SCH
3. MAC PDU for Random Access Response

A MAC PDU can contain:

MAC header
Zero or more MAC control elements
Zero or more MAC SDU
Optional Padding

MAC control elements are placed before any MAC SDU
Padding occurs at the end of the MAC PDU

 

1. MAC PDU for Transparent MAC

MAC_PDU

It has only one MAC SDU
THe size of SDU is equal to the TB size

2. MAC PDU for DL-SCH and UL-SCH

MAC PDU for DL-SCH and UL-SCH

In the sub header:
R: Reserved Bits
E : Extension. If set 1, indicates that another sub header follows. Else MAC control elements/SDU/padding starts at next byte.
LCID : Logical channel Identifiers. 15 values are there.
L : Length in bytes
F : If set 0, when length of MAC CE/SDU is less then 128 bytes. Indicates “L” fields of 7 bits.
If set 1, when length of MAC CE/SDU is more then 127 bytes. Indicates “L” fields of 15 bits.

The first MAC PDU subheader consists of the three header fields E/T/RAPID

The second MAC PDU subheader consists of the five header field E/T/R/R/BI

The third MAC PDU subheader consists of the 4 header field R/R/E/LCID

3. MAC PDU for Random Access Response
MAC_PDU

A MAC PDU consists of a MAC header and zero or more MAC Random Access Responses (MAC RAR) and optionally padding

The first MAC PDU subheader consists of the three header fields E/T/RAPID
The second MAC PDU subheader consists of the three header fields E/T/R/R/BI (Backoff Indicator)

Can 1 mac PDU can contain multiple Random Access Responses? Yes.

 

MAC Procedures:

1. Random Access Procedure
2. DL-SCH Data Transfer
3. UL-SCH Data Transfer
4. PCH Reception
5. BCH Reception
6. Discontinuous Reception
7. MAC Reconfiguration
8. MAC Reset

 

4. MAC Control Element

1. MAC Control Element (CE) contains control information.
2. They are transmitted as part of MAC PDU
3. They are always placed before any MAC SDU.
There are 2 different types of MAC CE.

1. Downlink MAC CE [eNB to UE perspective]

111_mac_CE_uplink

2. Uplink MAC CE [UE to eNB perspective]

_mac_CE_downlink

All MAC Control Elements:

all Mac CE

 

Brief explanation of MAC CE:

 

1. Buffer Status Report (BSR) MAC control element. 

It is sued to indicate eNB the Buffer size in bytes for all logical channels in a logical channel group.

There are two types of BSR:
1. Short BSR and Truncated BSR for,at
2. Long BSR

2. C-RNTI MAC control element.

Used to indicate to eNB the C-RNIT of the UE

3. UE contention Resolution Identity MAC control element.

It is used during contention resolution phase to contain CCCH SDU.

4. Timing Advanced Command MAC control element

Indicates the timing adjustment that the UE has to apply.

5. DRX command MAC control element.

6. Power Headroom MAC control element.

Reference 3GPP TS 36.321

List Of Tutorials available in this website:

C Programming 20+ ChaptersC++ Programming 80+ Chapters
100+ Solved Coding QuestionsData Structures and Algorithms 85+ Chapters
System design 20+ ChaptersShell Scripting 12 Chapters
4g LTE 60+ ChaptersMost Frequently asked Coding questions
5G NR 50+ ChaptersLinux System Programming 20+ chapters
Share
Email
Tweet
Linkedin
Reddit
Stumble
Pinterest
Prev Article
Next Article

About The Author

prodevelopertutorial

Follow this blog to learn more about C, C++, Linux, Competitive Programming concepts, Data Structures.

Leave a Reply Cancel Reply

You must be logged in to post a comment.

ProDeveloperTutorial.com

Tutorials and Programming Solutions
Copyright © 2023 ProDeveloperTutorial.com
We use cookies on our website to give you the most relevant experience by remembering your preferences and repeat visits. By clicking “Accept”, you consent to the use of ALL the cookies.
Do not sell my personal information.
Cookie SettingsAccept
Manage consent

Privacy Overview

This website uses cookies to improve your experience while you navigate through the website. Out of these, the cookies that are categorized as necessary are stored on your browser as they are essential for the working of basic functionalities of the website. We also use third-party cookies that help us analyze and understand how you use this website. These cookies will be stored in your browser only with your consent. You also have the option to opt-out of these cookies. But opting out of some of these cookies may affect your browsing experience.
Necessary
Always Enabled
Necessary cookies are absolutely essential for the website to function properly. These cookies ensure basic functionalities and security features of the website, anonymously.
CookieDurationDescription
cookielawinfo-checkbox-analytics11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Analytics".
cookielawinfo-checkbox-functional11 monthsThe cookie is set by GDPR cookie consent to record the user consent for the cookies in the category "Functional".
cookielawinfo-checkbox-necessary11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookies is used to store the user consent for the cookies in the category "Necessary".
cookielawinfo-checkbox-others11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Other.
cookielawinfo-checkbox-performance11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Performance".
viewed_cookie_policy11 monthsThe cookie is set by the GDPR Cookie Consent plugin and is used to store whether or not user has consented to the use of cookies. It does not store any personal data.
Functional
Functional cookies help to perform certain functionalities like sharing the content of the website on social media platforms, collect feedbacks, and other third-party features.
Performance
Performance cookies are used to understand and analyze the key performance indexes of the website which helps in delivering a better user experience for the visitors.
Analytics
Analytical cookies are used to understand how visitors interact with the website. These cookies help provide information on metrics the number of visitors, bounce rate, traffic source, etc.
Advertisement
Advertisement cookies are used to provide visitors with relevant ads and marketing campaigns. These cookies track visitors across websites and collect information to provide customized ads.
Others
Other uncategorized cookies are those that are being analyzed and have not been classified into a category as yet.
SAVE & ACCEPT