Detailed Description
The method and apparatus for identifying abnormal offline provided by the present application will be described in detail below with reference to the accompanying drawings.
The terms "first" and "second", etc. in the description and drawings of the present application are used for distinguishing between different objects and not for describing a particular order of the objects.
Furthermore, the terms "including" and "having," and any variations thereof, as referred to in the description of the present application, are intended to cover non-exclusive inclusions. For example, a process, method, system, article, or apparatus that comprises a list of steps or elements is not limited to only those steps or elements but may alternatively include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
It should be noted that in the embodiments of the present application, words such as "exemplary" or "for example" are used to indicate examples, illustrations or explanations. Any embodiment or design described herein as "exemplary" or "e.g.," is not necessarily to be construed as preferred or advantageous over other embodiments or designs. Rather, use of the word "exemplary" or "such as" is intended to present concepts related in a concrete fashion.
In the description of the present application, the meaning of "a plurality" means two or more unless otherwise specified.
The method for identifying abnormal network disconnection provided in the embodiment of the present application may be applied to a communication network, which may be, for example, a Long Term Evolution (LTE) network, a Global System for Mobile communications (GSM), a Code Division Multiple Access (CDMA) System, a Time Division Multiple Access (TDMA) System, a Wideband Code Division Multiple Access (WCDMA) System, a Frequency Division Multiple Access (FDMA) System, an Orthogonal Frequency Division Multiple Access (OFDMA) System, a General Packet Radio Service (GPRS, General Packet Radio Service) System, a next-generation Mobile communication System, or other non-limiting communication systems.
The communication network comprises a core network and an access network, and the user equipment is accessed to the core network through the access network. The user equipment in the embodiments of the present application may be a wireless terminal or a wired terminal, and the wireless terminal may be a device providing voice and/or data connectivity to a user, a handheld device having a wireless connection function, or another processing device connected to a wireless modem. Wireless terminals, which may be mobile terminals such as mobile telephones (or "cellular" telephones) and computers having mobile terminals, such as portable, pocket, hand-held, computer-included, or vehicle-mounted mobile devices, may communicate with one or more core networks via a Radio Access Network (RAN), which may exchange language and/or data with the RAN. For example, Personal Communication Service (PCS) phones, cordless phones, Session Initiation Protocol (SIP) phones, Wireless Local Loop (WLL) stations, Personal Digital Assistants (PDAs), and the like. A wireless Terminal may also be referred to as a system, a Subscriber Unit (Subscriber Unit), a Subscriber Station (Subscriber Station), a Mobile Station (Mobile), a Remote Station (Remote Station), an Access Point (Access Point), a Remote Terminal (Remote Terminal), an Access Terminal (Access Terminal), a User Terminal (User Terminal), a User Agent (User Agent), a User Device (User Device), or a User Equipment (User Equipment).
The method for identifying the abnormal offline provided by the embodiment of the application can be realized by any computer equipment. As shown in fig. 1, the method includes S101-S106:
s101, all signaling flows in a preset time are obtained.
Specifically, the signaling flow is obtained by synthesizing various signaling messages related to the signaling flow. The signaling flow comprises the following steps: the starting time of the signaling flow, the ending time of the signaling flow, the type of the signaling flow, the result of the signaling flow, the user terminal identification and the cell identification. The signaling flow is stored in a signaling platform; the signaling platform is an acquisition server located between the core network and the access network, and when a user interacts with a cell in a signaling process, the signaling platform can acquire and store the signaling process.
Optionally, the preset time may be set in a time period when the user terminal moves at a low speed, the user uses the network more frequently, or the user is influenced by network drop. Illustratively, the preset time can be selected from a time period of 10:00-11:00 or a time period of 23:00-24: 00. The preset time can be flexibly selected according to different requirements, and the method is not limited in the application.
S102, the first set is inquired by taking the starting time of the signaling flow as the sequence.
The first set is a set composed of signaling flows with the same user terminal identification; all of the first sets constitute a second set. Specifically, the method for dividing the first set and the second set includes: all signaling flows with a certain same user terminal identification are extracted to obtain a first set. Optionally, the extracted signaling flows form the first set according to the starting time of the signaling flows as an order. Thus, according to the method, all signaling flows are divided into a plurality of first sets according to the user terminal identifiers, and further, the first sets form a second set, that is, the second set comprises the first set corresponding to each user terminal identifier.
In a specific implementation of this step, the category of the signaling flow and the result of the signaling flow in the first set are sequentially queried from early to late according to the start time of the signaling flow.
If the type of the signaling flow in the first set is only one, deleting the first set; and reselecting the first set from the second set for query.
S103, if a first signaling flow is inquired and the next signaling flow of the first signaling flow is a second signaling flow, recording a cell identifier in the second signaling flow and the starting time of the second signaling flow.
Wherein, the first signaling flow is a signaling flow of paging failure; the second signaling flow is a signaling flow for reestablishing a connection.
Exemplarily, in the 4G network, the first signaling flow is a signaling flow whose flow type of signaling is paging and whose flow result of signaling is timeout; the second signaling flow is a signaling flow whose flow type is Tracking Area Update (TAU) or Attach (Attach). The process type TAU refers to a process type in which a 4G aperiodic tracking area is updated and a tracking area identification list is not changed. It should be noted that, in the 4G network, the process type paging of the first signaling process refers to paging of a data service specifically.
And when the first signaling flow is inquired, the connection between the user terminal and the 4G network fails at the moment, and the user terminal is disconnected. When the connection between the 4G network and the user terminal fails, the 4G network may continuously issue signaling until the 4G network and the user terminal reestablish the connection, so that a plurality of first signaling flows are arranged in series. When the second signaling flow is inquired, the user terminal is indicated to be re-attached to the 4G network after being detached from the 4G network. At this time, the cell identifier in the second signaling flow and the start time of the second signaling flow are recorded. The above process represents an event that the user terminal is disconnected from the 4G network and then re-connected with the 4G network. Wherein, after the user terminal leaves the 4G network, the user terminal can still choose to reside on the 2G or 3G network.
S104, inquiring a third signaling flow and recording the cell identification in the third signaling flow and the starting time of the third signaling flow.
The third signaling flow is a signaling flow which is previous to the first signaling flow and has a different flow type or flow result from the first signaling flow.
Specifically, if the flow type and the flow result of the previous signaling flow of the first signaling flow are the same as those of the first signaling flow, forward query is continued according to the starting time of the signaling flow until a signaling flow with a flow type and a flow result different from those of the first signaling flow is queried, and the signaling flow with the flow type and the flow result different from those of the first signaling flow is used as the third signaling flow.
For example, in the 4G network, when the connection between the 4G network and the user terminal fails, the 4G network may continuously issue signaling until the 4G network and the user terminal reestablish the connection, so that a plurality of first signaling flows are arranged in series. And taking the previous signaling flow of the first signaling flow in the plurality of continuously arranged signaling as a third signaling flow. Specifically, the first signaling procedure in the 4G network does not carry a cell identifier, so the method for determining the third signaling procedure in the 4G network is as follows: and inquiring a signaling flow before the first signaling flow, and taking the last signaling flow which carries the cell identifier before the first signaling flow as the third signaling flow.
S105, determining the distance between the cell represented by the cell identifier in the second signaling flow and the cell represented by the cell identifier in the third signaling flow. Determining a time difference between the start time of the third signaling flow and the start time of the second signaling flow.
Optionally, the method for calculating the distance between the cell represented by the cell identifier in the second signaling flow and the cell represented by the cell identifier in the third signaling flow includes:
and respectively inquiring the longitude and latitude of the cell represented by the cell identifier in the second signaling flow and the longitude and latitude of the cell represented by the cell identifier in the third signaling flow from a cell engineering parameter table, and calculating the distance between the cell represented by the cell identifier in the second signaling flow and the cell represented by the cell identifier in the third signaling flow according to the longitude and latitude.
And S106, if the distance meets a first preset condition and the time difference meets a second preset condition, recording an abnormal offline event.
Specifically, if the distance between the cell represented by the cell identifier in the second signaling flow and the cell represented by the cell identifier in the third signaling flow is smaller than a preset distance, and the time difference between the starting time of the third signaling flow and the starting time of the second signaling flow is greater than a first preset time and smaller than a second preset time, recording an abnormal offline event.
The preset distance is used for determining an offline event generated by the user terminal in a network coverage range; the first preset time is used for determining a offline event which can influence the experience of the user terminal; the second preset time is used for determining a offline event caused by the user terminal.
Illustratively, the preset distance is set to 10km, and when the distance is greater than 10km, it indicates that the user terminal leaves the coverage of the 4G network once and causes the user terminal to be disconnected. In this case, an abnormal offline event of the user terminal is not recorded. And setting the first preset time to be 200ms, and when the time difference is less than 200ms, the user does not obviously sense the offline event. This case also does not record an abnormal offline event of the user terminal. And setting the second preset time to be 1h, and when the time difference is greater than 1h, determining that the user terminal is disconnected due to factors such as shutdown or failure, and the like, wherein in the case, the abnormal offline event of the user terminal is not recorded. And recording an abnormal offline event only when the distance is less than 10km and the time difference is greater than 200ms and less than 1 h.
Compared with the prior art that a large amount of manpower, material resources and financial resources are required to be input in a field test mode, the abnormal offline identification method and the device can improve the identification efficiency of the abnormal offline event and reduce the cost.
In order to further determine the cause of the abnormal offline, as shown in fig. 2, after S106, the method provided in the embodiment of the present application further includes S107 to S110.
S107, repeating the processes S103-S106 until all the signaling flows in the first set are inquired.
Specifically, S107 is executed to obtain all abnormal offline events corresponding to the terminal indicated by the certain ue identifier.
And S108, repeating the processes S102-S107 until all the first sets in the second set are queried.
Specifically, S108 is executed to obtain all the abnormal offline events in the signaling flow.
And S109, respectively determining the resident cell of each user terminal.
The resident cell is a cell represented by a cell identifier with the largest occurrence number in a signaling flow of a first set corresponding to a certain user terminal or a cell with the longest residence time of the user terminal. Wherein the residence time is the sum of the process duration of the signaling processes with the same cell identifier. The duration of a certain signaling flow is the difference between the ending time and the starting time of the signaling flow.
S110, determining the reason of the abnormal offline event according to the resident cell of each user terminal, the cell identifier in the second signaling flow and the cell identifier in the third signaling flow corresponding to each abnormal offline event.
The method specifically comprises the following steps: counting the frequency of a first abnormal offline event, and if the frequency of the first abnormal offline event is greater than a first preset threshold, determining that an abnormal offline problem exists in the coverage area of the resident cell; the first abnormal offline event is an abnormal offline event in which the cell identifier of the resident cell, the cell identifier in the third signaling flow and the cell identifier in the second signaling flow are the same.
Illustratively, the Cell identity of the resident Cell is Cell
resA Cell identifier in the third signaling flow is Cell
lastThe Cell identifier of the second signaling flow is Cell
updateNumber of first abnormal offline events
The first predetermined threshold is
If Cell
res=Cell
last=Cell
updateAnd if the abnormal offline event is the first abnormal offline event, the abnormal offline event is the first abnormal offline event. If it is
Then Cell is determined
resThe coverage area of the represented cell has abnormal offline problem.
Counting the frequency of a second abnormal offline event, and if the frequency of the second abnormal offline event is greater than a second preset threshold, determining that an abnormal offline problem exists at the intersection of the cell represented by the cell identifier in the third signaling flow and the coverage of the cell represented by the cell identifier in the second signaling flow; the second abnormal offline event is an abnormal offline event in which the cell identifier of the resident cell is the same as the cell identifier of the third signaling flow, and the identifier of the resident cell is different from the cell identifier in the second signaling flow.
Illustratively, the number of second abnormal offline events is
The second predetermined threshold is
If Cell
res=Cell
last≠Cell
updateAnd if the abnormal offline event is the second abnormal offline event, the abnormal offline event is the second abnormal offline event. If it is
Then Cell is determined
lastAnd Cell
updateThere is an abnormal talk-around problem at the coverage intersection of the represented cells.
Counting the number of times of a third abnormal offline event, and if the number of times of the third abnormal offline event is greater than a third preset threshold, determining that an abnormal offline problem exists at the intersection of the coverage areas of the cell represented by the cell identifier in the third signaling flow and the cell represented by the cell identifier in the second signaling flow; the third abnormal offline event is an abnormal offline event in which the cell identifier of the resident cell is the same as the cell identifier of the second signaling flow, and the cell identifier of the resident cell is different from the cell identifier of the third signaling flow.
Illustratively, the number of third abnormal offline events is
The third predetermined threshold is
If Cell
res=Cell
update≠Cell
lastAnd if the abnormal offline event is the third abnormal offline event, the abnormal offline event is the second abnormal offline event. If it is
Then Cell is determined
lastAnd Cell
updateThere is an abnormal talk-around problem at the coverage intersection of the represented cells.
Counting the number of times of a fourth abnormal offline event, and if the number of times of the fourth abnormal offline event is greater than a fourth preset threshold, determining that an abnormal offline problem exists at the intersection of the coverage areas of the residential cell, the cell represented by the cell identifier in the third signaling flow and the cell represented by the cell identifier in the second signaling flow; the fourth abnormal offline event is an abnormal offline event in which the cell identifier of the resident cell, the cell identifier of the third signaling flow and the cell identifier of the second signaling flow are different.
Illustratively, if Cell
res≠Cell
last≠Cell
updateAnd if the abnormal offline event is the fourth abnormal offline event, the abnormal offline event is the fourth abnormal offline event. The number of the fourth abnormal offline events is
The fourth predetermined threshold is
If it is
Then Cell is determined
res、Cell
lastAnd Cell
updateThe coverage area intersection of the cells represented by the three cell identifications has an abnormal offline problem.
According to the method for determining the reason of the abnormal offline event, the abnormal offline event is classified, the occurrence frequency of each type of abnormal offline event is compared with the preset frequency, and the reason of the abnormal offline event is obtained through analysis. Therefore, the method provided by the application can directly determine the reason of the abnormal offline event of the user through the analysis of the signaling flow, and the analysis efficiency is improved.
As shown in fig. 3, an embodiment of the present application provides an apparatus for identifying abnormal offline, where the apparatus is configured to perform the foregoing method for identifying abnormal offline, and the apparatus includes:
an obtaining module 301, configured to execute S101 and obtain all signaling flows within a preset time; wherein the signaling flow comprises: the starting time of the signaling flow, the ending time of the signaling flow, the type of the signaling flow, the result of the signaling flow, the user terminal identification and the cell identification.
A processing module 302 for performing:
s102, a first set is inquired by taking the starting time of the signaling flow as a sequence; the first set is a set composed of signaling flows with the same user terminal identification; all of the first sets constitute a second set.
S103, if a first signaling flow is inquired and the next signaling flow of the first signaling flow is a second signaling flow, recording a cell identifier in the second signaling flow and the starting time of the second signaling flow; wherein, the first signaling flow is a signaling flow of paging failure; the second signaling flow is a signaling flow for reestablishing a connection.
S104, inquiring a third signaling flow and recording a cell identifier in the third signaling flow and the starting time of the third signaling flow; the third signaling flow is a signaling flow which is previous to the first signaling flow and has a different flow type or flow result from the first signaling flow.
S105, determining the distance between the cell represented by the cell identifier in the second signaling flow and the cell represented by the cell identifier in the third signaling flow; determining a time difference between the start time of the third signaling flow and the start time of the second signaling flow.
And S106, if the distance meets a first preset condition and the time difference meets a second preset condition, recording an abnormal offline event.
Optionally, the processing module 302 is further configured to perform:
s107, repeating the processes S103-S106 until all the signaling flows in the first set are inquired.
And S108, repeating the processes S102-S107 until all the first sets in the second set are queried.
S109, respectively determining a resident cell of each user terminal; the resident cell is a cell represented by the cell identifier with the largest occurrence number in the signaling flow of the first set or a cell with the longest residence time of the user terminal.
S110, determining the reason of the abnormal offline event according to the resident cell of each user terminal, the cell identifier in the second signaling flow and the cell identifier in the third signaling flow corresponding to each abnormal offline event.
Optionally, the processing module 302 is further configured to:
counting the frequency of a first abnormal offline event, and if the frequency of the first abnormal offline event is greater than a first preset threshold, determining that an abnormal offline problem exists in the coverage area of the resident cell; the first abnormal offline event is an abnormal offline event in which the cell identifier of the resident cell, the cell identifier in the third signaling flow and the cell identifier in the second signaling flow are the same.
Counting the frequency of a second abnormal offline event, and if the frequency of the second abnormal offline event is greater than a second preset threshold, determining that an abnormal offline problem exists at the intersection of the cell represented by the cell identifier in the third signaling flow and the coverage of the cell represented by the cell identifier in the second signaling flow; the second abnormal offline event is an abnormal offline event in which the cell identifier of the resident cell is the same as the cell identifier in the third signaling flow, and the identifier of the resident cell is different from the cell identifier in the second signaling flow.
Counting the number of times of a third abnormal offline event, and if the number of times of the third abnormal offline event is greater than a third preset threshold, determining that an abnormal offline problem exists at the intersection of the coverage areas of the cell represented by the cell identifier in the third signaling flow and the cell represented by the cell identifier in the second signaling flow; the third abnormal offline event is an abnormal offline event in which the cell identifier of the resident cell is the same as the cell identifier in the second signaling flow, and the cell identifier of the resident cell is different from the cell identifier in the third signaling flow.
Counting the number of times of a fourth abnormal offline event, and if the number of times of the fourth abnormal offline event is greater than a fourth preset threshold, determining that an abnormal offline problem exists at the intersection of the coverage areas of the residential cell, the cell represented by the cell identifier in the third signaling flow and the cell represented by the cell identifier in the second signaling flow; the fourth abnormal offline event is an abnormal offline event in which the cell identifier of the resident cell, the cell identifier in the third signaling flow and the cell identifier in the second signaling flow are all different.
Optionally, the processing module 302 is further configured to:
if the flow type and the flow result of the previous signaling flow of the first signaling flow are the same as those of the first signaling flow, continuing to forward query according to the starting time of the signaling flow until the signaling flow with the flow type and the flow result different from those of the first signaling flow is queried; and taking the signaling flow with the flow type and the flow result different from the first signaling flow as the third signaling flow.
Optionally, the processing module 302 is further configured to:
and respectively inquiring the longitude and latitude of the cell represented by the cell identifier in the second signaling flow and the longitude and latitude of the cell represented by the cell identifier in the third signaling flow from a cell engineering parameter table. And calculating the distance between the cell represented by the cell identifier in the second signaling flow and the cell represented by the cell identifier in the third signaling flow according to the longitude and the latitude.
Optionally, the processing module 302 is further configured to:
and if the distance between the cell represented by the cell identifier in the second signaling flow and the cell represented by the cell identifier in the third signaling flow is less than a preset distance, and the time difference between the starting time of the third signaling flow and the starting time of the second signaling flow is greater than a first preset time and less than a second preset time, recording an abnormal offline event.
Fig. 4 shows a schematic view of another possible structure of the device for identifying abnormal offline in the above embodiment. The device includes: a processor 402 and a communication interface 403. The processor 402 is used to control and manage the actions of the device, e.g., to perform the steps performed by the processing module 302 described above, and/or other processes for performing the techniques described herein. The communication interface 403 is used to support communication between the apparatus and other network entities, for example, to perform the steps performed by the obtaining module 301. The terminal may further comprise a memory 401 and a bus 404, the memory 401 being used for storing program codes and data of the device.
The processor 402 may implement or execute various illustrative logical blocks, units, and circuits described in connection with the disclosure herein. The processor may be a central processing unit, general purpose processor, digital signal processor, application specific integrated circuit, field programmable gate array or other programmable logic device, transistor logic device, hardware component, or any combination thereof. Which may implement or perform the various illustrative logical blocks, units, and circuits described in connection with the disclosure. The processor may also be a combination of computing functions, e.g., comprising one or more microprocessors, DSPs, and microprocessors, among others.
Memory 401 may include volatile memory, such as random access memory; the memory may also include non-volatile memory, such as read-only memory, flash memory, a hard disk, or a solid state disk; the memory may also comprise a combination of memories of the kind described above.
The bus 404 may be an Extended Industry Standard Architecture (EISA) bus or the like. The bus 404 may be divided into an address bus, a data bus, a control bus, and the like. For ease of illustration, only one thick line is shown in FIG. 4, but this does not indicate only one bus or one type of bus.
It is clear to those skilled in the art from the foregoing description of the embodiments that, for convenience and simplicity of description, the foregoing division of the functional units is merely used as an example, and in practical applications, the above function distribution may be performed by different functional units according to needs, that is, the internal structure of the device may be divided into different functional units to perform all or part of the above described functions. For the specific working processes of the system, the apparatus and the unit described above, reference may be made to the corresponding processes in the foregoing method embodiments, and details are not described here again.
The embodiment of the present application further provides a computer-readable storage medium, where instructions are stored in the computer-readable storage medium, and when the instructions are executed by a computer, the computer executes each step in the method flow shown in the above method embodiment.
The computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination thereof. More specific examples (a non-exhaustive list) of the computer readable storage medium would include the following: an electrical connection having one or more wires, a portable computer diskette, and a hard disk. Random Access Memory (RAM), Read-Only Memory (ROM), Erasable Programmable Read-Only Memory (EPROM), registers, a hard disk, an optical fiber, a portable Compact disk Read-Only Memory (CD-ROM), an optical storage device, a magnetic storage device, or any other form of computer-readable storage medium, in any suitable combination, or as appropriate in the art. An exemplary storage medium is coupled to the processor such the processor can read information from, and write information to, the storage medium. Of course, the storage medium may also be integral to the processor. The processor and the storage medium may reside in an Application Specific Integrated Circuit (ASIC). In embodiments of the present application, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device.
The above description is only an embodiment of the present application, but the scope of the present application is not limited thereto, and any changes or substitutions within the technical scope of the present disclosure should be covered by the scope of the present application.