CROSS-REFERENCE TO RELATED APPLICATION

This application is a national phase application based on PCT/CN2018/089993, filed Jun. 5, 2018, the content of which is incorporated herein by reference in its entirety.

TECHNICAL FIELD

The present disclosure relates to the field of communication, and more particularly, to a method and apparatus for reporting information, a terminal, and a storage medium.

BACKGROUND

When initiates a connection request to a Base Station (BS), a terminal may be subject to a security threat referred to as a Denial of Service (DoS) attack. A DoS attack in general is when a pseudo BS receives a connection request sent by a terminal and sends a denial message to the terminal to prevent the terminal from accessing a network, such that the terminal cannot access the network for a long time.

SUMMARY

Embodiments herein provide a method and apparatus for reporting information, a terminal, and a storage medium. The technical solution is as follows.

According to a first aspect of the present disclosure, a method for reporting information includes: sending, by a terminal, a connection request, the connection request requesting to establish a radio connection with an access network device in a network; in response to occurrence of a denial event corresponding to the connection request, recording, by the terminal, event information corresponding to the denial event, the denial event referring to an event of denial of response to the connection request; and after the terminal has successfully attained access to the network, sending, by the terminal, to the network, an event report generated according to the event information.

According to a second aspect of the present disclosure, an apparatus for reporting information is applicable to a terminal. The apparatus includes a request sending module, an event recording module, and an information reporting module. The request sending module is adapted to sending a connection request. The connection request is adapted to requesting establishment of a radio connection with an access network device in a network. The event recording module is adapted to, in response to occurrence of a denial event corresponding to the connection request, recording event information corresponding to the denial event. The denial event refers to an event of denial of response to the connection request. The information reporting module is adapted to, after the terminal has successfully attained access to the network, sending, to the network, an event report generated according to the event information.

According to a third aspect of the present disclosure, a terminal includes a processor and memory. The memory is adapted to storing an instruction executable by the processor. The processor, when executing the instruction, causes the terminal to perform acts comprising: sending a connection request, the connection request requesting to establish a radio connection with an access network device in a network; in response to occurrence of a denial event corresponding to the connection request, recording event information corresponding to the denial event, the denial event referring to an event of denial of response to the connection request; and after the terminal has successfully attained access to the network, sending, to the network, an event report generated according to the event information.

According to a fourth aspect herein, a non-transitory computer-readable storage medium has stored thereon a computer program which, when executed by a processor, implements the method of the first aspect.

A technical solution herein may include beneficial effects as follows.

With a technical solution of the present disclosure, in response to occurrence of a denial event corresponding to the connection request, a terminal records event information corresponding to a denial event. Having successfully attained access to the network, the terminal sends, to the network, an event report generated according to the event information. Accordingly, the network learns, according to the event report, a possible security threat to the network, such as a DoS attack. Compared to manual collection and troubleshooting, a network collects information on a DoS attack reported by a terminal, reducing labor and time cost, improving efficiency.

The above general description and detailed description below are but exemplary and explanatory, and do not limit the subject disclosure.

