Example two
Referring to fig. 2, a flowchart illustrating steps of a signaling tracking method according to a second embodiment of the present invention is shown. In this embodiment, the signaling tracking method includes:
step 202, the current base station determines whether the terminal is a test terminal.
In this embodiment, any suitable manner may be adopted to determine whether the terminal is a test terminal. When the access states of the terminals are different, the specific available determination manners may not be completely the same, and the following description will take the first access of the terminal, the handover access of the terminal, and the reestablishment access of the terminal as examples.
First time terminal access
When the terminal is accessed for the first time, the current base station can judge whether the terminal is a test terminal according to the service condition of the terminal or the IP of the terminal. Specifically, the method comprises the following steps:
preferably, a manner of determining whether the terminal is a test terminal may be as follows: when the terminal is accessed for the first time, acquiring the downlink rate of the terminal in a set time period; judging whether the terminal is a test terminal or not according to the downlink rate of the terminal in a set time period; and if the downlink rate of the terminal in a set time period exceeds a set threshold, determining that the terminal is a test terminal.
In another preferred embodiment, a manner of determining whether the terminal is a test terminal may be as follows: when a terminal is accessed for the first time, acquiring an IP (Internet Protocol ) address of the terminal; judging whether the terminal is a test terminal or not according to the IP address of the terminal; and if the IP address of the terminal is consistent with the preset IP address of the test terminal, determining that the terminal is the test terminal.
Second, terminal switching access
When the terminal is switched in, whether the terminal is a test terminal can be judged according to the tracking identifier carried in the switching request message. The handover request message may be sent by a source base station corresponding to the current base station.
Specifically, a possible way to determine whether the terminal is a test terminal may be as follows: when the terminal is switched to access the current base station, the current base station receives a switching request message sent by a source base station; judging whether the terminal is a test terminal or not according to a received switching request message sent by a source base station; and if the switching request message sent by the source base station carries the tracking identifier, determining that the terminal is a test terminal.
Thirdly, the terminal reestablishes the access
In this embodiment, the reestablishing of access by the terminal may include at least two cases: and the terminal reestablishes the source base station to other base stations.
For the case that the terminal reestablishes to the source base station, that is, the base station that the terminal currently reestablishes to is the source base station, a feasible way of determining whether the terminal is a test terminal may be as follows: acquiring original state information of the terminal in the source base station; judging whether the terminal is a test terminal or not according to the original state information; and if the original state information indicates that the terminal is a test terminal, determining that the terminal is the test terminal.
For the case that the terminal is reestablished to another base station, that is, the base station to which the terminal is currently reestablished is another base station, a feasible way of determining whether the terminal is a test terminal may be as follows: when the terminal accesses other base stations for reestablishment, an indication message is sent to the source base station; the indication message is used for indicating the terminal to be reestablished to the other base stations; receiving a reestablishment request message sent by the source base station; judging whether the terminal is a test terminal or not according to the received reestablishment request message sent by the source base station; and if the reestablishment request message sent by the source base station carries the tracking identifier, determining that the terminal is a test terminal.
And 204, when the terminal is determined to be a test terminal, tracking and recording the signaling information of the terminal in the current base station by the current base station.
In this embodiment, any one of the above suitable manners may be selected to determine that the terminal is a test terminal according to actual conditions, and further, when the terminal is determined to be the test terminal, the signaling information of the terminal in the base station is recorded and tracked.
Step 206, when the terminal is reestablished or switched, the current base station writes the tracking identifier into the corresponding reestablishment request message or switching request message.
In this embodiment, the base station may write the tracking identifier into a corresponding reestablishment request message or handover request message, where the tracking identifier written in the reestablishment request message or handover request message may be transmitted to the target base station along with the reestablishment request message or the handover request message when the terminal is reestablished or handed over, and then the target base station may determine that the terminal is a test terminal according to the reestablishment request message carrying the tracking identifier or the handover request message carrying the tracking identifier, and then perform tracking recording on a signaling of the terminal after the terminal is reestablished or handed over. Wherein the target base station may be
It should be noted that, in this embodiment, the tracking identifier may be specifically written into a private field or information element ie (information element) of the corresponding reestablishment request message; or, writing the tracking identifier into a private field or information element IE of the corresponding handover request message.
In summary, in this embodiment, when the terminal is first accessed, whether the terminal is a test terminal may be directly determined according to the service or the IP address of the terminal, and when the terminal is switched to access or reestablishes access, whether the terminal is a test terminal may be directly determined according to the tracking identifier carried in the reestablishment request message or the handover request message, which reduces the interaction link with the core network side, reduces the communication cost, and has strong timeliness. Moreover, once the terminal is identified, whether the terminal is a test terminal can be quickly determined according to the request message in the subsequent moving process, so that the identification efficiency of the terminal is improved.
Secondly, even if the terminal is switched or reestablished, the base station can continuously track the terminal according to the reestablishment request message or the switching request message carrying the tracking identifier to acquire the signaling.
Further, the tracking identifier may be used to indicate that the terminal is a test terminal, that is, the terminal may be quickly located according to the tracking identifier, and a terminal behavior may be identified for network monitoring and analysis.
EXAMPLE III
With reference to the foregoing embodiments, the present embodiment describes the signaling tracking method in detail through several specific examples.
First, the terminal accesses the base station for the first time
Referring to fig. 3, a flowchart illustrating a signaling tracking method according to a third embodiment of the present invention is shown. In this embodiment, the terminal is a terminal that accesses the base station for the first time, and the signaling tracking method includes:
step 302, acquiring the downlink rate of the terminal in a set time period or acquiring the IP address of the terminal.
Step 304, determining whether the terminal is a test terminal according to the downlink rate of the terminal in a set time period or the IP address of the terminal.
In this embodiment, if the downlink rate of the terminal in a set time period is greater than or equal to a set threshold, it indicates that the terminal processes a high-speed service for a long time, and is a test terminal. In addition, if the IP address of the terminal is consistent with the preset IP address of the test terminal, the terminal is determined to be the test terminal.
It should be noted that, after the terminal is accessed and has a service, it may be determined that the terminal is a test terminal according to the downlink rate of the terminal in a set time period, and meanwhile, a message is sent to the signaling high-level processing module to notify that the terminal is the test terminal, and the signaling high-level processing module records the IP address of the terminal.
In this embodiment, if the terminal is not a test terminal, the process may be directly ended, and if the terminal is a test terminal, the followingstep 306 may be continuously performed.
Step 306, recording the information such as the signaling service of the terminal in the base station.
Step 308, the state of the terminal is determined.
In a mobile environment, a terminal may change at any time, such as: the terminal is released, terminal reestablishment or terminal handover. In this embodiment, if the terminal is released, the process may be directly ended; if the terminal is reestablished, the following step 310 may be executed; if the terminal is handed over, the followingstep 312 may be performed.
Step 310, writing the tracking identifier into a private field or information element IE of the HANDOVER REQUEST message, and sending the HANDOVER REQUEST message carrying the tracking identifier to the reestablishing base station.
In this embodiment, when the terminal is reestablished, the tracking identifier may be written in a corresponding reestablishment request message and sent to the reestablishment base station. Wherein, the trace flag is used to indicate that the terminal is a test terminal, and the reestablishment REQUEST message may be, but is not limited to, a HANDOVER REQUEST message; the reestablishing base station may be a current base station (source base station) or other base stations, which is not limited in this embodiment.
Step 312, determine the handover type of the terminal.
In this embodiment, when the terminal is switched to S1, the followingstep 314 is performed, and when the terminal is switched to X2, the followingstep 316 is performed.
Step 314, writing the tracking identifier into a private field or information element IE of the HANDOVER request message, and sending the HANDOVER request message carrying the tracking identifier to an MME (Mobility Management Entity, a key control node of a 3GPP protocol LTE access network).
In this embodiment, when the terminal performs S1 handover, the tracking identifier may be written in a corresponding handover request message and sent to the MME. Wherein the HANDOVER request message may be, but is not limited to, a HANDOVER request message.
For example, at the S1 handover, the transfer of the tracking identity may be realized by the iE-Extensions extension IE existing in SourceeNB-ToTargeteNB-Transparentcontainer in HANDOER REQUIRED. The extended IE (Source eNB-ToTargetNB-TranspartContainer) is not analyzed when being transmitted in the MME, only the source side and the target side are analyzed, and the Assigned Criticality of the iE-Extensions is set as the ignore, so that the base stations of different manufacturers can be ensured not to cause any problem due to the private IE in time.
Step 316, writing the tracking identifier into the private field or IE of the HANDOVER REQUEST message, and sending the HANDOVER REQUEST message carrying the tracking identifier to the opposite base station.
In this embodiment, when the terminal performs an X1 handover, the tracking identifier may be written in a corresponding handover request message and sent to the MME. Wherein, the HANDOVER REQUEST message may be, but not limited to, a HANDOVER REQUEST message.
For example, at X1 handover, the tracking identity is passed through iE-Extensions of UE-Contextinformation in HANDOER REQUEST.
Therefore, in the embodiment, when the terminal is accessed for the first time, the interaction link with the core network side is reduced, the communication cost is reduced, and the timeliness is strong.
Second, terminal S1 switching access base station
Referring to fig. 4, a flowchart illustrating steps of another signaling tracking method according to a third embodiment of the present invention is shown. In this embodiment, the terminal is a terminal that switches to access the base station in S1, and the signaling tracking method includes:
atstep 402, a HANDOER REQUIRED message is obtained.
In this embodiment, the handover REQUIRED message may be sent by a source base station, where the source base station is the base station accessed before the handover of the terminal S1.
And step 404, judging whether the terminal is a test terminal according to the HANDOER REQUIRED message.
In this embodiment, if the handover request message carries a tracking identifier, determining that the terminal is a test terminal, and performing the followingstep 404; otherwise, the flow may be ended directly.
Step 406, recording the information such as the signaling service of the terminal in the base station.
Step 408, the status of the terminal is determined.
In this embodiment, if the terminal is released, the process may be directly ended; if the terminal is reestablished, the following step 410 may be performed; if the terminal is handed over, the followingstep 412 may be performed.
Step 410, writing the tracking identifier into the private field or information element IE of the HANDOVER REQUEST message, and sending the HANDOVER REQUEST message carrying the tracking identifier to the reestablishment base station.
Step 412, determine the handover type of the terminal.
In the present embodiment, when the terminal is switched to S1, the followingstep 414 is performed, and when the terminal is switched to X2, the followingstep 416 is performed.
Step 414, writing the tracking identifier into the private field or information element IE of the HANDOVER request message, and sending the HANDOVER request message carrying the tracking identifier to the MME.
Step 416, writing the tracking identifier into a private field or information element IE of the HANDOVER REQUEST message, and sending the HANDOVER REQUEST message carrying the tracking identifier to the opposite base station.
Therefore, in this embodiment, when the S1 handover access is performed, the terminal can be directly identified according to whether the handover request message carries the tracking identifier, so that an interaction link with the core network side is avoided, the communication cost is reduced, and the timeliness is strong.
Thirdly, when the terminal X2 switches to the access base station
Referring to fig. 5, a flowchart illustrating steps of a signaling tracking method according to a third embodiment of the present invention is shown. In this embodiment, the terminal is a terminal that is switched to access a base station by X2, and the signaling tracking method includes:
step 502, obtain the HANDOER REQUEST message.
In this embodiment, the handover REQUEST message may be sent by a source base station, where the source base station is the base station accessed before the handover of the terminal X2.
Step 504, judging whether the terminal is a test terminal according to the HANDOER REQUEST message.
In this embodiment, if the handover REQUEST message carries a tracking identifier, it is determined that the terminal is a test terminal, and the followingstep 506 is executed; otherwise, the flow may be ended directly.
Step 506, recording the information such as the signaling service of the terminal in the base station.
Step 508, the state of the terminal is determined.
In this embodiment, if the terminal is released, the process may be directly ended; if the terminal is reestablished, the following step 510 may be performed; if the terminal is handed over, the followingstep 512 can be executed.
Step 510, writing the tracking identifier into a private field or information element IE of the HANDOVER REQUEST message, and sending the HANDOVER REQUEST message carrying the tracking identifier to the reestablishing base station.
Step 512, determine the handover type of the terminal.
In this embodiment, when the terminal is switched to S1, the followingstep 514 is performed, and when the terminal is switched to X2, the followingstep 516 is performed.
Step 514, writing the tracking identifier into the private field or information element IE of the HANDOVER request message, and sending the HANDOVER request message carrying the tracking identifier to the MME.
Step 516, writing the tracking identifier into the private field or information element IE of the HANDOVER REQUEST message, and sending the HANDOVER REQUEST message carrying the tracking identifier to the opposite base station.
Therefore, in this embodiment, when the X2 handover access is performed, the terminal can be directly identified according to whether the handover request message carries the tracking identifier, so that an interaction link with the core network side is avoided, the communication cost is reduced, and the timeliness is strong.
Fourthly, when the terminal reestablishes the source base station
Referring to fig. 6, a flowchart illustrating steps of another signaling tracking method in a third embodiment of the present invention is shown. In this embodiment, the terminal is a terminal that reestablishes an access source base station, that is, the base stations before and after the terminal is reestablished are the same base station, and the signaling tracking method includes:
step 602, obtaining the original state information of the terminal in the source base station.
And step 604, determining whether the terminal is a test terminal according to the original state information.
In this embodiment, the original state information may directly indicate whether the terminal is a test terminal. Wherein the followingstep 606 may be performed when testing the terminal when determining the terminal; otherwise, the flow may be ended directly.
Step 606, recording the signaling service and other information of the terminal in the base station.
Step 608, the status of the terminal is determined.
In this embodiment, if the terminal is released, the process may be directly ended; if the terminal is reestablished, the following step 610 may be executed; if the terminal is handed over, the followingstep 612 can be performed.
Step 610, writing the tracking identifier into a private field or information element IE of the HANDOVER REQUEST message, and sending the HANDOVER REQUEST message carrying the tracking identifier to the reestablishment base station.
Step 612, determine the handover type of the terminal.
In the present embodiment, when the terminal is switched to S1, the followingstep 614 is performed, and when the terminal is switched to X2, the followingstep 616 is performed.
Step 614, writing the tracking identifier into the private field or information element IE of the HANDOVER request message, and sending the HANDOVER request message carrying the tracking identifier to the MME.
Step 616, writing the tracking identifier into the private field or information element IE of the HANDOVER REQUEST message, and sending the HANDOVER REQUEST message carrying the tracking identifier to the opposite base station.
Therefore, in this embodiment, when the access source base station is reestablished, the terminal can be directly identified according to the state of the terminal in the source base station, so that an interaction link with the core network side is avoided, the communication cost is reduced, and the timeliness is strong.
Fifthly, when the terminal is reestablished to enter other base stations
Referring to fig. 7, a flowchart illustrating steps of a signaling tracking method in a third embodiment of the present invention is shown. In this embodiment, the terminal is a terminal that is re-established to another base station, that is, the base stations before and after re-establishment of the terminal are different base stations, and the signaling tracking method includes:
step 702, sending an indication message to the source base station (base station before the terminal is reestablished).
In this embodiment, the INDICATION message sent to the source base station may specifically be an RLF INDICATION message, which is used to indicate that the terminal has reestablished to enter another base station.
For example, when the terminal re-establishes into another base station, the source base station before re-establishment may be notified by the RLF INDICATION message, and the source base station may notify the context of the terminal and the flag bit (i.e., tracking id) of whether to perform tracking to another base station through iE-Extensions of UE-context information in the HANDOVER REQUEST message, so that the another base station that re-establishes access can continue to track signaling of the terminal.
Step 704, receive the HANDOVER REQUEST message sent by the source base station.
Step 706, determining whether the terminal is a test terminal according to the received HANDOVER REQUEST message sent by the source base station.
In this embodiment, if the HANDOVER REQUEST message carries a tracking identifier, it is determined that the terminal is a test terminal. Wherein when the terminal is currently determined to be a test terminal, the followingstep 708 can be executed
Step 708, recording the information such as the signaling service of the terminal in the base station.
Step 710, determining the state of the terminal.
In this embodiment, if the terminal is released, the process may be directly ended; if the terminal is reestablished, the followingstep 712 may be performed; if the terminal is handed over, the followingstep 714 may be performed.
Step 712, writing the tracking identifier into the private field or IE of the HANDOVER REQUEST message, and sending the HANDOVER REQUEST message carrying the tracking identifier to the reestablishing base station.
Step 714, determine the handover type of the terminal.
In this embodiment, when the terminal is switched to S1, the followingstep 716 is performed, and when the terminal is switched to X2, the followingstep 718 is performed.
Step 716, writing the tracking identifier into the private field or information element IE of the HANDOVER request message, and sending the HANDOVER request message carrying the tracking identifier to the MME.
Step 718, writing the tracking identifier into the private field or information element IE of the HANDOVER REQUEST message, and sending the HANDOVER REQUEST message carrying the tracking identifier to the opposite base station.
Therefore, in this embodiment, when the other base stations are reestablished, the terminal can be directly identified according to whether the reestablishment request message carries the tracking identifier, so that an interaction link with the core network side is avoided, the communication cost is reduced, and the timeliness is strong.
In summary, in this embodiment, when the terminal is first accessed, whether the terminal is a test terminal may be directly determined according to the service or the IP address of the terminal, and when the terminal is switched to access or reestablishes access, whether the terminal is a test terminal may be directly determined according to the tracking identifier carried in the reestablishment request message or the handover request message, which reduces the interaction link with the core network side, reduces the communication cost, and has strong timeliness. Moreover, once the terminal is identified, whether the terminal is a test terminal can be quickly determined according to the request message in the subsequent moving process, so that the identification efficiency of the terminal is improved.
Secondly, even if the terminal is switched or reestablished, the base station can continuously track the terminal according to the reestablishment request message or the switching request message carrying the tracking identifier to acquire the signaling.
Further, the tracking identifier may be used to indicate that the terminal is a test terminal, that is, the terminal may be quickly located according to the tracking identifier, and a terminal behavior may be identified for network monitoring and analysis.
It should be noted that the foregoing method embodiments are described as a series of acts or combinations for simplicity in explanation, but it should be understood by those skilled in the art that the present invention is not limited by the order of acts or acts described, as some steps may occur in other orders or concurrently in accordance with the invention. Further, those skilled in the art will appreciate that the embodiments described in the specification are presently preferred and that no particular act is required to implement the invention.
Example four
Based on the same inventive concept as the above method embodiments, referring to fig. 8, a block diagram of a signaling tracking system in a fourth embodiment of the present invention is shown. In this embodiment, the signaling tracking system includes:
the determining module 802 is configured to determine whether the terminal is a test terminal.
A tracking module 804, configured to track and record signaling information of the terminal in the current base station when the terminal is determined to be a test terminal.
A writing module 806, configured to write a tracking identifier into a corresponding reestablishment request message or a handover request message when the terminal is reestablished or handed over, and send the tracking identifier to a target base station, so that the target base station performs tracking recording on a signaling after the terminal is reestablished or handed over according to the reestablishment request message carrying the tracking identifier or the handover request message carrying the tracking identifier.
In this embodiment, the tracking identifier is used to indicate that the terminal is a test terminal.
In a preferred embodiment of this embodiment, referring to fig. 9, a block diagram of a signaling tracking system preferred in the fourth embodiment of the present invention is shown.
Preferably, the determining module 802 may specifically include: a first obtaining submodule 8022, configured to obtain a downlink rate of the terminal in a set time period when the terminal is first accessed; the first judging submodule 8024 is configured to judge whether the terminal is a test terminal according to a downlink rate of the terminal in a set time period; and if the downlink rate of the terminal in a set time period is greater than or equal to a set threshold, determining that the terminal is a test terminal.
Still preferably, the determining module 802 may specifically include: a second obtaining submodule 8026, configured to obtain an IP address of the terminal when the terminal is first accessed; a second judging submodule 8028, configured to judge whether the terminal is a test terminal according to the IP address of the terminal; and if the IP address of the terminal is consistent with the preset IP address of the test terminal, determining that the terminal is the test terminal.
Preferably, the determining module 802 may specifically include: a first receiving submodule 80210, configured to receive, when the terminal is a handover access, a handover request message sent by a source base station; a third determining submodule 80212, configured to determine, according to the received handover request message sent by the source base station, whether the terminal is a test terminal; and if the switching request message sent by the source base station carries the tracking identifier, determining that the terminal is a test terminal.
Preferably, the determining module 802 may specifically include: a third obtaining sub-module 80214, configured to, when the terminal is a reestablishment source base station, obtain original state information of the terminal in the source base station; a fourth judging submodule 80216, configured to judge, according to the original state information, whether the terminal is a test terminal; and if the original state information indicates that the terminal is a test terminal, determining that the terminal is the test terminal.
Still preferably, the determining module 802 may specifically include: a sending submodule 80218, configured to send an indication message to the source base station when the terminal establishes another base station for reestablishment; the indication message is used for indicating the terminal to be reestablished to the other base stations; a second receiving submodule 80220, configured to receive a reestablishment request message sent by the source base station; a fifth judging submodule 80222, configured to judge, according to the received reestablishment request message sent by the source base station, whether the terminal is a test terminal; and if the reestablishment request message sent by the source base station carries the tracking identifier, determining that the terminal is a test terminal.
In this embodiment, the writing module 806 may be specifically configured to write the tracking identifier into a private field or an information element IE of the corresponding reestablishment request message; or, writing the tracking identifier into a private field or information element IE of the corresponding handover request message.
In summary, in this embodiment, when the terminal is first accessed, whether the terminal is a test terminal may be directly determined according to the service or the IP address of the terminal, and when the terminal is switched to access or reestablishes access, whether the terminal is a test terminal may be directly determined according to the tracking identifier carried in the reestablishment request message or the handover request message, which reduces the interaction link with the core network side, reduces the communication cost, and has strong timeliness. Moreover, once the terminal is identified, whether the terminal is a test terminal can be quickly determined according to the request message in the subsequent moving process, so that the identification efficiency of the terminal is improved.
Secondly, even if the terminal is switched or reestablished, the base station can continuously track the terminal according to the reestablishment request message or the switching request message carrying the tracking identifier to acquire the signaling.
Further, the tracking identifier may be used to indicate that the terminal is a test terminal, that is, the terminal may be quickly located according to the tracking identifier, and a terminal behavior may be identified for network monitoring and analysis.
For the device embodiment, since it is basically similar to the method embodiment, the description is simple, and for the relevant points, refer to the partial description of the method embodiment.
The embodiments in the present specification are described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments are referred to each other.
The signaling tracking method and system provided by the present invention are introduced in detail, and a specific example is applied in the text to explain the principle and the implementation of the present invention, and the description of the above embodiment is only used to help understanding the method and the core idea of the present invention; meanwhile, for a person skilled in the art, according to the idea of the present invention, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present invention.