Skip to content

[lte][agw] Scptd modifications to avoid burst after mme recovery#5355

Merged
ulaskozat merged 2 commits intomagma:masterfrom
ulaskozat:sctpdfixes
Mar 8, 2021
Merged

[lte][agw] Scptd modifications to avoid burst after mme recovery#5355
ulaskozat merged 2 commits intomagma:masterfrom
ulaskozat:sctpdfixes

Conversation

@ulaskozat
Copy link
Copy Markdown
Contributor

Summary

In stateless mode, when mme crashes, sctpd was queuing up duplicate events from the same UE towards MME due to UE timers. This PR makes the following improvements:

  • Place an explicit short time out for uplink rpc calls for s1ap requests to prevent bursts of S1AP requests towards UE that were queued up during the MME recovery.
  • When a new association event comes in and it cannot be delivered to MME, close the association.

Test Plan

Spirent tests and S1 AP tests with forced MME restarts.

Additional Information

  • This change is backwards-breaking

@ulaskozat ulaskozat added the component: agw Access gateway-related issue label Mar 7, 2021
@ulaskozat ulaskozat requested a review from ssanadhya as a code owner March 7, 2021 06:04
@ulaskozat
Copy link
Copy Markdown
Contributor Author

ulaskozat commented Mar 7, 2021

MAGMA-OAI-TESTS

@ulaskozat ulaskozat added the apply-v1.4 Needs to be applied to v1.4 release branch as well label Mar 7, 2021
@rdefosse
Copy link
Copy Markdown
Contributor

rdefosse commented Mar 8, 2021

MAGMA-OAI-TESTS

@rdefosse
Copy link
Copy Markdown
Contributor

rdefosse commented Mar 8, 2021

@ulaskozat

Build failure on our variant

7/14] Building CXX object CMakeFiles/SCTPD_LIB.dir/sctp_connection.cpp.o
FAILED: CMakeFiles/SCTPD_LIB.dir/sctp_connection.cpp.o
/usr/bin/c++ -DLOG_WITH_GLOG -I/usr/local/include/prometheus -I/magma/lte/gateway/c/sctpd -I. -I/magma/orc8r/gateway/c/common/logging -g -std=gnu++14 -MD -MT CMakeFiles/SCTPD_LIB.dir/sctp_connection.cpp.o -MF CMakeFiles/SCTPD_LIB.dir/sctp_connection.cpp.o.d -o CMakeFiles/SCTPD_LIB.dir/sctp_connection.cpp.o -c /magma/lte/gateway/c/sctpd/sctp_connection.cpp
/magma/lte/gateway/c/sctpd/sctp_connection.cpp: In member function 'magma::sctpd::SctpStatus magma::sctpd::SctpConnection::HandleComUp(int, sctp_assoc_change*)':
/magma/lte/gateway/c/sctpd/sctp_connection.cpp:271:54: error: no matching function for call to 'magma::sctpd::SctpEventHandler::HandleNewAssoc(sctp_assoc_t&, __u16&, __u16&, std::__cxx11::string&)'
           change->sac_outbound_streams, ran_cp_ipaddr) < 0) {
                                                      ^
In file included from /magma/lte/gateway/c/sctpd/sctp_connection.cpp:14:0:
/magma/lte/gateway/c/sctpd/sctp_connection.h:42:15: note: candidate: virtual int magma::sctpd::SctpEventHandler::HandleNewAssoc(uint32_t, uint32_t, uint32_t, uint32_t, std::__cxx11::string&)
   virtual int HandleNewAssoc(
               ^~~~~~~~~~~~~~
/magma/lte/gateway/c/sctpd/sctp_connection.h:42:15: note:   candidate expects 5 arguments, 4 provided

Copy link
Copy Markdown
Contributor

@rdefosse rdefosse left a comment

Choose a reason for hiding this comment

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

Build failure on our variant

Copy link
Copy Markdown
Contributor

@rdefosse rdefosse left a comment

Choose a reason for hiding this comment

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

@ulaskozat

sorry. It passes now on your last commit.

Cheers
Raphael

@ulaskozat ulaskozat merged commit f950b9d into magma:master Mar 8, 2021
ulaskozat added a commit that referenced this pull request Mar 9, 2021
* Scptd modifications to avoid burst after mme recovery

Signed-off-by: Ulas Kozat <[email protected]>
@themarwhal themarwhal added the backported-v1.4 Has been backported to v1.4 release branch label Mar 9, 2021
ssanadhya pushed a commit to ssanadhya/magma that referenced this pull request Mar 10, 2021
…ma#5355)

* Scptd modifications to avoid burst after mme recovery

Signed-off-by: Ulas Kozat <[email protected]>
ssanadhya pushed a commit to ssanadhya/magma that referenced this pull request Mar 10, 2021
…ma#5355)

* Scptd modifications to avoid burst after mme recovery

Signed-off-by: Ulas Kozat <[email protected]>
chandra-77 pushed a commit to chandra-77/magma that referenced this pull request Mar 30, 2021
…ma#5355)

* Scptd modifications to avoid burst after mme recovery

Signed-off-by: Ulas Kozat <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

apply-v1.4 Needs to be applied to v1.4 release branch as well backported-v1.4 Has been backported to v1.4 release branch component: agw Access gateway-related issue

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants