Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added testcase to validate 3485 timer for both default and dedicated bearer #3970

Merged
merged 8 commits into from May 20, 2021

Conversation

rsarwad
Copy link
Contributor

@rsarwad rsarwad commented Dec 9, 2020

[AGW]: Added testcase to validate 3485 timer for both default and dedicated bearer while mme restarts

Summary

Added testcase to validate 3485 timer for both default and dedicated bearer while mme restarts

Test Plan

Executed s1ap sanity test suite
##Additional information
The first message, Activate Default/Dedicated Eps Bearer Context Request message is sent in E-Rab-Setup request message. Consider the case that before mme receives either Activate Default/Dedicated Eps Bearer Context Accept message or E-Rab-Setup Response message, mme may get re-started.
On mme recovery, it identifies that T3485 timer is running, so mme re-transmits the Activate Default/Dedicated Eps Bearer Context Request message. If this message is sent in E-Rab-Setup Request message. On reception of E-Rab-Setup Request message at eNB for same bearer, eNB sends E-Rab-Setup failure with cause as “Multiple E-RAB ID instances” ( This is as per the s1ap spec, 36.413 section 8.2.1.4 ). So eNB will not be able to forward the re-transmitted Activate Default/Dedicated Eps Bearer Context Request message to UE.
So in order to reach esm message to UE, the re-transmitted message needs to be sent DL nas message, so that eNB transparently send the esm message to UE.

Dependent PRs are,
#3968
#5954:
The code is modified to send Activate Default/Dedicated Eps Bearer Context Request message in DL nas message. Accordingly modified the test cases in this PR
magma/S1APTester#54:
In order to expire 3485 timer for default bearer, it requires s1ap code changes and is available in PR,

@ardzoht ardzoht linked an issue Dec 9, 2020 that may be closed by this pull request
@magmabot magmabot added component: agw Access gateway-related issue component: cwag CWAG related issues labels Jan 5, 2021
@ulaskozat
Copy link
Contributor

Is this PR up to date, active? Otherwise let's close it.

@ekowtaylor
Copy link
Contributor

@ssanadhya and @rsarwad any plans to move this PR along?

@ssanadhya
Copy link
Collaborator

@rsarwad , as this PR needs changes on MME logic, created issue #5853 to track this. Closing this PR for now. Please create a new one when the MME logic is implemented.

@ssanadhya ssanadhya closed this Mar 31, 2021
…for_3485_timer

Signed-off-by: rashmi <rashmi.sarwad@radisys.com>
@rsarwad rsarwad reopened this May 12, 2021
@pull-request-size pull-request-size bot added the size/XL Denotes a Pull Request that changes 500-999 lines. label May 12, 2021
@themarwhal themarwhal requested review from a team and removed request for ssanadhya May 12, 2021 15:08
@themarwhal
Copy link
Member

themarwhal commented May 12, 2021

Hey @rsarwad !
Please see python conventions for instructions on running the linter / formatter locally.

cd magma/lte/gateway/python
./precommit.py --format --diff
./precommit.py --lint --path lte/gateway/python/integ_tests/s1aptests/test_attach_detach_dedicated_activation_timer_expiry.py

@rsarwad rsarwad force-pushed the rsarwad_testcase_for_3485_timer branch from 1f8d678 to 2a3580f Compare May 12, 2021 18:07
@pull-request-size pull-request-size bot added size/L Denotes a Pull Request that changes 100-499 lines. and removed size/XL Denotes a Pull Request that changes 500-999 lines. labels May 12, 2021
@rsarwad rsarwad force-pushed the rsarwad_testcase_for_3485_timer branch from db4aa20 to b4b6b74 Compare May 14, 2021 03:43
…earer requests

Signed-off-by: rashmi <rashmi.sarwad@radisys.com>
…for_3485_timer

Signed-off-by: rashmi <rashmi.sarwad@radisys.com>
Copy link
Contributor

@ulaskozat ulaskozat left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can you double check the linter comments?

Request message, so that re-transmitted message reaches to
TFW
Step5: Send command to Magma to restart mme service
Step6: TFW shall receive re-transmitted Actiavte Dedicated EPS
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

spelling error Actiavte

TFW
Step5: Send command to Magma to restart mme service
Step6: TFW shall receive re-transmitted Actiavte Dedicated EPS
Bearer Context Request and send Actiavte Dedicated EPS Bearer
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same spelling error.

'IMSI' + ''.join([str(idx) for idx in req.imsi]), 5, 6,
)
"""During wait time, mme may send multiple times Activate EPS bearer
context request, after sending response one message ignore other
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the sentence does not look correct, did you intend to say after sending response for the first message, ignore the subsequent messages?

Copy link
Contributor Author

@rsarwad rsarwad May 19, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes
Rephrased the comment

Copy link
Contributor

@ulaskozat ulaskozat left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Step6: TFW shall receive re-transmitted Activate Dedicated EPS
Bearer Context Request and send Activate Dedicated EPS Bearer
Context Accept
Step7: TFW shall initiate de-activation of deidicated bearer and then
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

typo deidicated

Signed-off-by: rashmi <rashmi.sarwad@radisys.com>
…for_3485_timer

Signed-off-by: rashmi <rashmi.sarwad@radisys.com>
@themarwhal
Copy link
Member

Hey @rsarwad ! Feel free to tag 'ready2merge' if it's ready to be merged.

@rsarwad
Copy link
Contributor Author

rsarwad commented May 20, 2021

The PR is ready2merge

@themarwhal themarwhal added the ready2merge This PR is ready to be merged (is approved and passes all required checks) label May 20, 2021
@themarwhal themarwhal merged commit 2c8219b into magma:master May 20, 2021
Signed-off-by: rashmi <rashmi.sarwad@radisys.com>
rmeleromira pushed a commit to rmeleromira/magma that referenced this pull request Jul 24, 2021
…bearer (magma#3970)

Signed-off-by: Ramon Melero <ramonmelero@fb.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component: agw Access gateway-related issue component: cwag CWAG related issues ready2merge This PR is ready to be merged (is approved and passes all required checks) size/L Denotes a Pull Request that changes 100-499 lines.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants