Communication control method, electronic device and storage medium

By controlling user authorization and deauthorization in communication devices, the problem of processing pressure on the device during multi-user interaction is solved, and the success rate and efficiency of protocol interaction are improved.

CN114389828BActive Publication Date: 2025-08-22NANJING ZHONGXING SOFTWARE
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202011119204.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-10-19
Publication Date
2025-08-22
Estimated Expiration
2040-10-19

AI Technical Summary

Technical Problem

In the prior art, when the communication device handles multiple user protocol interactions at the same time, packet overflow and discarding exceptions are prone to occur, resulting in low protocol interaction efficiency and slow user service recovery.

Method used

If the unauthorized user and the authorized user has not reached the preset threshold, the user is authorized, and the authorization will be released after the message is detected within the preset time period, controlling the number of users within the threshold range, and reducing the operating pressure of the equipment.

Benefits of technology

It improves the success rate of user protocol interaction, ensures that the interaction process is carried out in an orderly manner, reduces the use of equipment resources, and improves the processing capabilities of equipment.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114389828B_ABST
    Figure CN114389828B_ABST
Patent Text Reader

Abstract

The present application relates to the field of communications, and in particular to a communication control method, electronic device, and storage medium. The present application includes: receiving a starting message of a protocol interaction initiated by a user; if the user is an unauthorized user and the number of authorized users does not reach a preset threshold, authorizing the user and processing each message of the user in the protocol interaction; if a completion message of the user in the protocol interaction is detected within a preset time after the user is authorized, revoking the authorization of the user; after the user completes the protocol interaction, the user no longer occupies the protocol interaction resources of the communication device, thereby making the user protocol interaction orderly and controlled, and improving the success rate of the user protocol interaction.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present application relate to the field of communications, and in particular to a communication control method, electronic equipment, and storage medium. Background Art

[0002] At present, since protocol interaction is widely used in communication equipment, multiple users may initiate protocol interaction at the same time, causing the communication equipment to process various messages in the protocol interaction for multiple users at the same time. The solution of the existing technology is usually to try its best to process them; however, since the communication equipment has limited ability to process messages, when processing a large number of messages at the same time, the communication equipment is more likely to have message overflow and discard exceptions during the message processing process. When a protocol message in the protocol interaction is discarded or the processing is abnormal, the solution of the existing technology is to restart the entire protocol interaction process, and the protocol interaction is inefficient, and the protocol interaction messages that have been completed before are also invalid, resulting in very slow recovery of all user services.

[0003] Therefore, it is very important to provide a communication control method that can reduce the operating pressure of the protocol interaction subject and improve the success rate of user protocol interaction. Summary of the Invention

[0004] The main purpose of the embodiments of the present application is to propose a communication control method, electronic device and storage medium to reduce the operating pressure of the protocol interaction subject and improve the success rate of user protocol interaction.

[0005] To achieve the above-mentioned purpose, an embodiment of the present application provides a communication control method, including: receiving a starting message of a protocol interaction initiated by a user; authorizing the user when the user is an unauthorized user and the number of authorized users does not reach a preset threshold.

[0006] To achieve the above-mentioned purpose, an embodiment of the present application also provides an electronic device, comprising: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the communication control method as described above.

[0007] To achieve the above-mentioned purpose, an embodiment of the present application further provides a computer-readable storage medium storing a computer program, which implements the above-mentioned communication control method when executed by a processor.

[0008] The communication control method proposed in the present application authorizes the user when the user is an unauthorized user and the number of authorized users has not reached a preset threshold, so that during the process of protocol interaction between the executing entity, i.e., the communication device, and the user, the number of authorized users is within the range of its preset threshold, that is, the number of users conducting protocol interaction is within the range of the preset threshold, thereby reducing the operating pressure of the protocol interaction entity and improving the success rate of user protocol interaction. BRIEF DESCRIPTION OF THE DRAWINGS

[0009] One or more embodiments are exemplarily illustrated by pictures in the corresponding drawings. These exemplifications do not constitute limitations on the embodiments. Elements with the same reference numerals in the drawings are represented as similar elements. Unless otherwise stated, the figures in the drawings do not constitute proportional limitations.

[0010] Figure 1 is a flow chart of a communication control method according to a first embodiment of the present invention;

[0011] Figure 2 It is an interaction diagram between the user and the server based on the PPPOE protocol;

[0012] Figure 3 This is a diagram of the interaction between the user and the server based on the DHCP protocol;

[0013] Figure 4 is a flow chart of a communication control method according to a second embodiment of the present invention;

[0014] Figure 5 is a flow chart of a communication control method according to a third embodiment of the present invention;

[0015] Figure 6 is a flow chart of a communication control method according to a fourth embodiment of the present invention;

[0016] Figure 7 FIG. 5 is a schematic structural diagram of an electronic device according to a fifth embodiment of the present invention. DETAILED DESCRIPTION

[0017] In order to make the purpose, technical solutions and advantages of the embodiments of the present application clearer, each embodiment of the present application will be described in detail below with reference to the accompanying drawings. However, it will be understood by those skilled in the art that in each embodiment of the present application, many technical details are proposed to enable the reader to better understand the present application. However, even without these technical details and various changes and modifications based on the following embodiments, the technical solutions claimed in the present application can be implemented. The division of the following embodiments is for convenience of description and should not constitute any limitation on the specific implementation of the present application. The various embodiments can be combined and referenced with each other under the premise of no contradiction.

[0018] The first embodiment of the present application relates to a communication control method. The flow chart of the communication control method in this embodiment is as follows: Figure 1 As shown, the specific steps include:

[0019] Step 101: Receive a start message of a protocol interaction initiated by a user.

[0020] Specifically, the execution subject of this embodiment is the communication device, which detects the starting file of the protocol interaction initiated by the user. When the user initiates a protocol interaction to the communication device, the user sends the starting text of the protocol interaction to the communication device, and then the communication device receives the starting message of the protocol interaction initiated by the user.

[0021] It should be noted that the user is uniquely identified by the user's Media Access Control (MAC) address carried in the start message. That is, the start file carries a MAC address, and the user's identity information is uniquely identified by the MAC address. Therefore, when the communication device receives the start file of the protocol interaction initiated by the user, the user can be identified according to the MAC address carried in the start file, and different users can be distinguished according to the MAC address.

[0022] Step 102: If the user is an unauthorized user and the number of authorized users does not reach a preset threshold, authorize the user.

[0023] Specifically, the communication device is provided with a protocol interaction record table for recording the identity information of authorized users, namely, the MAC address. The communication device sets a preset threshold for the protocol interaction record table. The preset threshold is used to determine the maximum number of authorized users that can be stored in the protocol interaction record table, namely, the maximum authorization queue depth of the protocol interaction record table.

[0024] In one example, the preset threshold is determined based on the type of service carried by the subject executing the method and the number of interactive messages required for the protocol session of the service. Specifically, the maximum authorized queue depth is based on the user service type currently carried by the communication device (such as a virtual local area network), combined with the number of interactive messages required for the protocol session of the corresponding service type (hereinafter referred to as the number of protocol message interactions). The specific calculation method is as follows: maximum authorized queue depth = coefficient * corresponding protocol hardware processing resource queue / number of protocol message interactions, where coefficient = hardware message processing rate / user protocol interaction rate or server protocol interaction rate.

[0025] Specifically, the protocol authorization queue depth can be processed according to certain strategies based on logical unit attributes or hardware unit attributes, including but not limited to: taking the service virtual LAN as the logical unit attribute, dynamically dividing the authorization queue depth based on the logical unit according to the importance of the virtual LAN service attributes or the number of MAC addresses dynamically learned by the service in the virtual LAN; or taking the line card as the hardware unit attribute, dynamically dividing the authorization queue depth based on the logical unit based on the number of optical network units (ONU) or ONU type under the hardware.

[0026] In actual applications, the protocol interaction record table includes but is not limited to the following: maximum authorized queue depth and MAC address.

[0027] Specifically, when the user initiating the protocol interaction is an unauthorized user and the number of authorized users has not reached the preset threshold, it means that the authorized number of communication equipment is still within its tolerable range and the number of authorized users can be increased. Therefore, the user can be authorized at this time and its MAC address can be added to the protocol interaction record table.

[0028] In the prior art, the interaction between users and servers requires multiple rounds of protocol message exchanges before it can be completed. Common user service protocols in communication devices include but are not limited to Point-to-Point Protocol Over Ethernet (PPPOE) and Dynamic Host Configuration Protocol (DHCP).

[0029] like Figure 2 The diagram below shows the interaction between the user and the server based on the PPPOE protocol, which specifically includes the following steps:

[0030] First, the user broadcasts a PPPoE Active Discovery Initiation (PADI) packet to the server. After receiving the PADI packet, the server sends a PPPoE Active Discovery Offer (PADO) packet to the user. The user then receives the PADO packet and sends a PPPoE Active Discovery Request (PADR) unicast session request packet to the server. Finally, the server receives the PADR packet and sends a PPPoE Active Discovery Session-confirmation (PADS) packet to the user.

[0031] like Figure 3 The following figure shows the interaction between the user and the server based on the DHCP protocol, which specifically includes the following steps:

[0032] First, the user sends a DHCP DISCOVER broadcast packet to the server to search for a DHCP server on the network; then, the DHCP server sends a DHCP OFFER unicast packet to the user, which contains the Internet Protocol address, MAC address, domain name information, and address lease period; then, the user sends a DHCP REQUEST broadcast packet to the DHCP server to formally request the server to allocate the provided IP address; finally, the DHCP server sends a DHCP ACK unicast packet to the user to confirm the user's request.

[0033] From the above, it can be seen that no matter what kind of protocol interaction is used, after the communication device authorizes the user, the interaction between the user and the server needs to go through multiple rounds of protocol message interaction to be completed. When there are a large number of authorized users performing protocol interaction, the processing burden of the communication device is large, and confusion is easily caused in the message processing process, resulting in abnormalities; therefore, in this embodiment, when the user is an unauthorized user and the number of authorized users does not reach the preset threshold, the user is authorized, so that during the process of protocol interaction between the executing entity, that is, the communication device, and the user, the number of authorized users is within the range of its preset threshold, that is, the number of users performing protocol interaction is within the range of the preset threshold, thereby reducing the operating pressure of the protocol interaction entity and improving the success rate of user protocol interaction.

[0034] The second embodiment of the present invention relates to a communication control method. The second embodiment is substantially the same as the first embodiment, with the main difference being that, in the second embodiment of the present invention, when the user is an unauthorized user and the number of authorized users does not reach a preset threshold, after authorizing the user, the method further includes: performing protocol interaction with the user; and releasing the user's authorization when a completion message from the user in the protocol interaction is detected within a preset time period after the user is authorized. The relevant technical details of the first embodiment described above are still valid in this embodiment and will not be elaborated on here to avoid repetition.

[0035] The flow chart of the communication control method in this embodiment is as follows: Figure 4 As shown, the specific steps include:

[0036] Step 201: Receive a start message of a protocol interaction initiated by a user.

[0037] Step 202: If the user is an unauthorized user and the number of authorized users does not reach a preset threshold, authorize the user.

[0038] The above steps 201 and 202 are the same as steps 101 and 102 of the first embodiment, and are not described here in detail to avoid repetition.

[0039] Step 203: Perform protocol interaction with the user.

[0040] Specifically, when the user is an unauthorized user and the number of authorized users does not reach a preset threshold, after authorizing the user, the communication device further performs protocol interaction with the user. The protocol interaction subject in this embodiment is the communication device.

[0041] Specifically, during the process of protocol interaction between the communication device and the user, the communication device will process each message of the user in the protocol interaction.

[0042] It should be noted that, if the user initiating the protocol interaction is an authorized user, that is, the user's identity information is stored in the protocol interaction record table, the communication device can directly perform protocol interaction with the user.

[0043] Step 204: If a completion message of the user in the protocol interaction is detected within a preset time period after the user is authorized, the authorization of the user is released.

[0044] Specifically, after the user is authorized, the communication device will conduct a protocol interaction with the user; it should be noted that the communication device is set with a preset duration. Under normal circumstances, the time from the start to the end of the user's protocol interaction is within the preset duration, that is, the communication device will detect the user's completion message in the protocol interaction within the preset duration; therefore, when the user's completion message in the protocol interaction is detected within the preset duration after the user is authorized, the user's authorization is revoked and its MAC address is deleted from the protocol interaction record table, so that the user who completes the protocol interaction no longer occupies the protocol interaction resources of the communication device after completing the protocol interaction.

[0045] In this embodiment, when the user is an unauthorized user and the number of authorized users has not reached a preset threshold, it means that the authorized number of the executing entity, i.e., the communication device, is still within its tolerable range. At this time, the user is authorized and each message of the user in the protocol interaction is processed; when the user's completion message in the protocol interaction is detected within the preset time after the user is authorized, the user's authorization is revoked, so that the user who completes the protocol interaction no longer occupies the protocol interaction resources of the communication device after completing the protocol interaction, thereby making the user protocol interaction orderly and controlled, and improving the success rate of the user protocol interaction.

[0046] In one example, after receiving a user-initiated protocol interaction start message, the system further includes: if at least one of the preset conditions is met, revoking the user's authorization and recording the user as a user experiencing an interaction anomaly; the preset conditions include: the user is an authorized user and the number of user-initiated protocol interaction start messages received exceeds a preset number; or no user completion messages in the protocol interaction are detected within a preset time period after the user is authorized. In this way, when an authorized user experiences an interaction anomaly, the user's authorization is revoked, reducing the number of authorized users, so that users experiencing interaction anomalies no longer occupy the communication device's protocol interaction resources, thereby further improving the success rate of user protocol interactions.

[0047] Specifically, from the above, it can be seen that under normal circumstances, the communication device will detect the user's completion message in the protocol interaction within the preset time period. That is to say, when the user's completion message in the protocol interaction is not detected within the preset time period after the user is authorized, it indicates that the user has an abnormality.

[0048] Specifically, the communication device is set with a preset number of times. Under normal circumstances, the number of initial messages of protocol interactions initiated by an authorized user is within the preset number. In actual applications, the preset number defaults to 3. Of course, it can also be set according to actual needs, such as 1 or 2. Therefore, if the number of received initial messages of protocol interactions initiated by an authorized user exceeds the preset number, it indicates that the user has an abnormality.

[0049] Specifically, in this embodiment, there are two abnormal situations: the first preset situation and the second preset situation. The first preset situation occurs when the user is an authorized user and the number of received user-initiated protocol interaction start messages exceeds the preset number, that is, the protocol interaction process fails. The second preset situation occurs when the user fails to receive a completion message during the protocol interaction within a preset period of time after the user is authorized, that is, the protocol interaction process times out. It should be noted that if at least one of the above two situations is met, it means that the user has experienced an interaction abnormality.

[0050] Specifically, the communication device can also be provided with two interaction anomaly tables according to the above two abnormal situations, namely, a first interaction anomaly table and a second interaction anomaly table. The first interaction anomaly table is used to store the identity information (MAC address) of the users who meet the above first preset situation (interaction failure); the second interaction anomaly table is used to store the identity information (MAC address) of the users in the above second interaction anomaly table (interaction timeout). When an authorized user meets the first preset situation (interaction failure), the communication device revokes the authorization of the user (deletes the user in the interaction protocol record table), and records the user as a user with interaction failure, and records the user's MAC address in the first interaction anomaly table; when an authorized user meets the second preset situation (interaction timeout), the communication device revokes the authorization of the user (deletes the user in the interaction protocol record table), and records the user as a user with interaction timeout, and records the user's MAC address in the second interaction anomaly table.

[0051] In actual applications, the first interaction anomaly table and the second interaction anomaly table include but are not limited to the following contents: maximum queue depth, MAC address, number of interaction anomalies, and storage time of interaction anomaly users.

[0052] In one example, when a completion message of a user in a protocol interaction is detected within a preset time period after the user is authorized, after the authorization of the user is released, it also includes: if the user has been recorded as a user with an interaction abnormality, deleting the record of the user's interaction abnormality.

[0053] Specifically, after a user has been recorded as an abnormal interaction user, when the user initiates a protocol interaction again, the communication device will still receive the starting message of the protocol interaction initiated by the user. When the number of authorized users does not reach the preset threshold, the communication device will still authorize the user and process each message of the user in the protocol interaction. Afterwards, if the communication device detects the completion message of the user in the protocol interaction within the preset time after the user is authorized, it means that the user has corrected the abnormality, and it is inappropriate to record the user as an abnormal interaction user. Therefore, after the user successfully completes the message, the record of the user's interaction abnormality is deleted, so as to avoid marking the user who has corrected the abnormality as an abnormal user.

[0054] The third embodiment of the present invention relates to a communication control method. The third embodiment is substantially the same as the second embodiment, with the main difference being that, in the third embodiment of the present invention, after receiving the start message of the protocol interaction initiated by the user, it also includes: when the user is an unauthorized user and the number of authorized users reaches a preset threshold, setting the user as a user waiting for authorization; when the user is a user waiting for authorization and the number of authorized users does not reach a preset threshold, authorizing the user so that the user changes from a user waiting for authorization to an authorized user, and processing each message of the user in the protocol interaction. The relevant technical details of the above-mentioned second embodiment are still valid in this embodiment, and are not described here in order to avoid repetition.

[0055] The flow chart of the communication control method in this embodiment is as follows: Figure 5 As shown, the specific steps include:

[0056] Step 301: Receive a start message of a protocol interaction initiated by a user.

[0057] Step 3021: If the user is an unauthorized user and the number of authorized users does not reach a preset threshold, authorize the user.

[0058] Step 3022: If the user is a user waiting for authorization and the number of authorized users does not reach a preset threshold, authorize the user to change the user from a user waiting for authorization to an authorized user.

[0059] Specifically, the communication device is equipped with a waiting record table, which is used to record the MAC address of the user who subsequently initiates the protocol interaction in the waiting record table when the number of authorized users reaches a preset threshold. In other words, the waiting record table is used to record users in the waiting state. If the user who initiated the protocol interaction is a user waiting for authorization and the number of authorized users has not reached the preset threshold, it means that the communication device can continue to authorize users. Therefore, the user is authorized to change from a user waiting for authorization to an authorized user. In other words, the user is deleted from the waiting record table and added to the protocol interaction record table.

[0060] It should be noted that after the above steps 3021 and 3022 are completed, the process proceeds to step 303 and then to step 304.

[0061] Step 3023: If the user is an unauthorized user and the number of authorized users reaches a preset threshold, the user is set as a user waiting for authorization.

[0062] Specifically, if the user is not recorded as an authorized user and is not recorded as a user waiting for authorization, when the number of authorized users reaches a preset threshold, the user is recorded as a user waiting for authorization and is recorded in the waiting record table. It should be noted that the waiting record table can also record the number of waiting times for users waiting for authorization. When a user is first recorded as a user waiting for authorization, the waiting time for that user is 1. Similarly, when the user initiates a protocol interaction again and the number of authorized users reaches the preset threshold, the user needs to continue waiting, and the waiting time for that user is increased by 1 based on the original waiting time.

[0063] It should be noted that after the above step 3023 is completed, the process ends.

[0064] Step 303: Perform protocol interaction with the user.

[0065] Step 304: If a completion message of the user in the protocol interaction is detected within a preset time period after the user is authorized, the authorization of the user is released.

[0066] It should be noted that the above steps 301 , 3021 , 303 and 304 are the same as steps 201 to 204 of the second embodiment, and will not be described again to avoid repetition.

[0067] It should be noted that, when the user is waiting for authorization and the number of authorized users reaches a preset threshold, the user's waiting times are accumulated; that is, at this time, the user continues to wait, and the user's waiting times are increased by 1 based on the original waiting times.

[0068] In this embodiment, after the number of authorized users reaches a preset threshold, authorization will no longer be continued. When the number of authorized users decreases below the preset threshold, the user who initiates the protocol interaction can be authorized, so that the number of authorized users of the communication device is always within the tolerable range of the communication device. The operating pressure of the communication device is reduced by the waiting record table, thereby further realizing orderly control of user protocol interaction.

[0069] The fourth embodiment of the present invention relates to a communication control method. This fourth embodiment is substantially similar to the first embodiment, with the primary difference being that, in this embodiment, receiving a user-initiated protocol interaction initiation message specifically involves receiving protocol interaction initiation messages initiated by multiple users. The relevant technical details of the first embodiment remain valid in this embodiment and are omitted here to avoid repetition.

[0070] The flow chart of the communication control method in this embodiment is as follows: Figure 6 As shown, the specific steps include:

[0071] Step 401: receiving initial messages of protocol interactions initiated by multiple users.

[0072] Specifically, in this embodiment, the communication device simultaneously receives initial messages of protocol interactions initiated by multiple users.

[0073] Step 402 : When multiple users are unauthorized users and the number of authorized users does not reach a preset threshold, select some of the multiple users for authorization.

[0074] Specifically, the number of multiple users may be greater than the difference between the preset threshold and the number of authorized users, or may be less than or equal to the difference between the preset threshold and the number of authorized users. When the number of multiple users is greater than the difference between the preset threshold and the number of authorized users, since the difference is the maximum value that can be authorized by the current communication device, it is necessary to select some of the multiple users for authorization, and the number of selected users should be less than or equal to the difference between the preset threshold and the number of authorized users, so that the number of authorized users in the communication device is always within its tolerable range. When the number of multiple users is less than or equal to the difference between the preset threshold and the number of authorized users, some users may be selected for authorization, or all users may be selected for authorization. At this time, whether all users or some users are selected for authorization, it can be satisfied that the number of selected users is less than or equal to the difference between the preset threshold and the number of authorized users.

[0075] Specifically, if some of the selected users are not in the protocol interaction record table and the waiting record table, the identity information of these users will be added to the protocol interaction record table; if some of the selected users are not recorded in the protocol interaction record table but are recorded in the waiting record table, the identity information of these users will be added to the protocol interaction record table, and the identity information of these users will be deleted from the waiting record table.

[0076] Specifically, there are unselected users among multiple users. Therefore, after some of the multiple users are selected for authorization, if other unselected users are not recorded in the waiting record table, then this type of users will be recorded in the waiting record table; if the unselected users already exist in the waiting record table, then this type of users will continue to be kept in the waiting record table, and the waiting times of the user will be increased by 1 based on the original waiting times.

[0077] In one example, selecting some of the multiple users for authorization specifically includes: when the multiple users include users waiting for authorization, selecting some of the users according to a preset selection priority; that is, when only some of the multiple users are selected for authorization, selection is performed based on the selection priority, wherein the rule for selecting the priority is: the priority of the users waiting for authorization is higher than that of other users among the multiple users except the users waiting for authorization.

[0078] In one example, after receiving the start message of the protocol interaction initiated by the user, it also includes: when the user is a user waiting for authorization and the number of authorized users reaches a preset threshold, the user's waiting times are accumulated; after receiving the start message of the protocol interaction initiated by the user, it also includes: when at least one of the preset conditions is met, the user's authorization is revoked, and the user is recorded as a user with an interaction abnormality; the preset conditions include at least two, namely the first preset condition and the second preset condition, the first preset condition is: the user is an authorized user and the number of start messages of the protocol interaction initiated by the user received is greater than the preset number, that is, the interaction fails; the second preset condition is: within the preset time after the user is authorized, no completion message of the user in the protocol interaction is detected, that is, the interaction times out; the rule for selecting priority also includes: the priority of the waiting authorization user who is not recorded as having an interaction abnormality is higher than the waiting authorization user who is recorded as having an interaction abnormality, and the priority of the waiting authorization user with a larger waiting time is higher than the waiting authorization user with a smaller waiting time.

[0079] In one example, when all users are recorded as experiencing interaction anomalies, users who meet the first preset condition are prioritized over users who meet the second preset condition. That is, users with failed interactions have a higher priority than users with abnormal interactions because users with failed interactions have had their messages processed by the communication device, while users with timed-out interactions have not. Therefore, messages from users who meet the first preset condition are prioritized, resulting in a shorter processing time and higher efficiency than messages from users with timed-out interactions.

[0080] It should be noted that users who meet the first preset condition (interaction failure) can continue to initiate protocol interactions. When the first preset condition still occurs after the user who meets the first preset condition is authorized, the number of times the user meets the first preset condition (interaction failure) can be accumulated in the first interaction exception table. Similarly, users who meet the second preset condition (interaction timeout) can continue to initiate protocol interactions. When the second preset condition still occurs after the user who meets the second preset condition is authorized, the number of times the user meets the second preset condition (interaction timeout) can be accumulated in the second interaction exception table. In one example, in the case where all users are recorded as having the first preset condition, the priority of users who have the first preset condition less frequently is higher than that of users who have the first preset condition more frequently; in the case where all users are recorded as having the second preset condition, the priority of users who have the second preset condition less frequently is higher than that of users who have the second preset condition more frequently.

[0081] In actual applications, the first interaction anomaly table and the second interaction anomaly table both store a preset storage time and a preset number of times. Taking the first interaction anomaly table as an example, when the time a user is stored in the first interaction anomaly table is greater than the preset storage time, or the number of times a user meets the first preset condition is greater than the preset number of times, it means that the user's abnormal situation has not been handled. Therefore, the information of the interaction abnormal user is reported to the network manager, and the interaction abnormal user is handled manually; the situation of the second interaction anomaly table is similar and will not be repeated again. Among them, the method of reporting the interaction abnormal user's information to the network manager can be a warning, notification message, etc.

[0082] Specifically, after selecting some of the multiple users for authorization, the communication device performs protocol interaction with the authorized users. Thereafter, if a completion message of one of the users in the protocol interaction is detected within a preset time period, the authorization of the user is released.

[0083] The steps of the various methods above are divided only for the purpose of clear description. During implementation, they can be combined into one step or some steps can be split and decomposed into multiple steps. As long as they include the same logical relationship, they are all within the scope of protection of this patent. Adding insignificant modifications or introducing insignificant designs to the algorithm or process without changing the core design of the algorithm and process are all within the scope of protection of this patent.

[0084] A fifth embodiment of the present invention relates to an electronic device, such as Figure 7As shown, it includes at least one processor 501; and a memory 502 that is communicatively connected to the at least one processor 501; wherein the memory 502 stores instructions that can be executed by the at least one processor 501, and the instructions are executed by the at least one processor 501 so that the at least one processor 501 can execute the communication control method as described above.

[0085] The memory 502 and processor 501 are connected using a bus. The bus can include any number of interconnected buses and bridges, connecting various circuits of one or more processors 501 and memory 502. The bus can also connect various other circuits such as peripheral devices, voltage regulators, and power management circuits. These are all well known in the art and are therefore not described further herein. The bus interface provides an interface between the bus and the transceiver. The transceiver can be a single component or multiple components, such as multiple receivers and transmitters, providing a unit for communicating with various other devices over a transmission medium. Data processed by the processor 501 is transmitted over a wireless medium via an antenna. Furthermore, the antenna receives data and transmits it to the processor 501.

[0086] The processor 501 is responsible for managing the bus and general processing, and can also provide various functions, including timing, peripheral interfaces, voltage regulation, power management, and other control functions. The memory 502 can be used to store data used by the processor 501 when performing operations.

[0087] A sixth embodiment of the present invention relates to a computer-readable storage medium storing a computer program, which implements the above method embodiment when executed by a processor.

[0088] That is, those skilled in the art will understand that all or part of the steps in the above-mentioned embodiment methods can be implemented by instructing the relevant hardware through a program, which is stored in a storage medium and includes a number of instructions for causing a device (which can be a single-chip microcomputer, chip, etc.) or a processor to execute all or part of the steps in the various embodiments of the present application. The aforementioned storage medium includes: a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk, etc., various media that can store program code.

[0089] Those skilled in the art will appreciate that the above embodiments are specific embodiments for implementing the present invention, and that in actual applications, various changes may be made thereto in form and detail without departing from the spirit and scope of the present invention.

Claims

1. A communication control method, characterized in that: include: Receive the initial message of the protocol interaction initiated by the user; If the user is an unauthorized user and the number of authorized users does not reach a preset threshold, authorize the user and perform protocol interaction with the user; The method further includes: if the user initiating the protocol interaction is an authorized user, performing the protocol interaction with the authorized user.

2. The communication control method according to claim 1, wherein: After authorizing the user and performing protocol interaction with the user if the user is an unauthorized user and the number of authorized users does not reach a preset threshold, the method further includes: In the case where a completion message of the user in the protocol interaction is detected within a preset time period after the user is authorized, the authorization of the user is released.

3. The communication control method according to claim 2, wherein: After receiving the start message of the protocol interaction initiated by the user, the method further includes: If the user is an unauthorized user and the number of authorized users reaches a preset threshold, setting the user as a user waiting for authorization; In a case where the user is a user waiting for authorization and the number of authorized users does not reach a preset threshold, the user is authorized so that the user changes from a user waiting for authorization to an authorized user.

4. The communication control method according to claim 2 or 3, characterized in that: After receiving the start message of the protocol interaction initiated by the user, the method further includes: When at least one of the preset conditions is met, the user's authorization is revoked and the user is recorded as a user with abnormal interaction; The preset conditions include: the user is an authorized user and the number of received start messages of the protocol interaction initiated by the user is greater than the preset number; and no completion message of the user in the protocol interaction is detected within a preset time after the user is authorized.

5. The communication control method according to claim 1, wherein: The receiving of the protocol interaction start message initiated by the user is specifically: receiving the protocol interaction start message initiated by multiple users; When the user is an unauthorized user and the number of authorized users does not reach a preset threshold, authorizing the user is specifically: When the multiple users are all unauthorized users and the number of authorized users does not reach a preset threshold, some of the multiple users are selected for authorization; the number of the selected users is less than or equal to the difference between the preset threshold and the number of authorized users.

6. The communication control method according to claim 5, characterized in that: The selecting of some of the multiple users for authorization includes: when the multiple users include users waiting for authorization, selecting the some of the users according to a preset selection priority; wherein the selection priority includes: the priority of the users waiting for authorization is higher than that of other users among the multiple users except the users waiting for authorization.

7. The communication control method according to claim 6, characterized in that: After receiving the start message of the protocol interaction initiated by the user, the method further includes: accumulating the waiting times of the user if the user is a user waiting for authorization and the number of authorized users reaches a preset threshold; After receiving the start message of the protocol interaction initiated by the user, the method further includes: if at least one of the preset conditions is met, revoking the authorization of the user and recording the user as a user with an interaction abnormality; the preset conditions include at least two, namely a first preset condition and a second preset condition, the first preset condition being that the user is an authorized user and the number of received start messages of the protocol interaction initiated by the user is greater than a preset number; the second preset condition being that no completion message of the user in the protocol interaction is detected within a preset time period after the user is authorized; The selection priority also includes: the priority of the waiting authorization user who is not recorded as having interaction abnormalities is higher than the waiting authorization user who is recorded as having interaction abnormalities, and the priority of the waiting authorization user who has waited more times is higher than the waiting authorization user who has waited less times.

8. The communication control method according to claim 7, wherein: The selection priority also includes: in the case where all users are recorded as having interaction abnormalities, the priority of the user who meets the first preset condition is higher than the priority of the user who meets the second preset condition.

9. The communication control method according to claim 4, characterized in that: After the authorization of the user is released, if a completion message of the user in the protocol interaction is detected within a preset time period after the user is authorized, the method further includes: In a case where the user has been recorded as a user with abnormal interaction, the record of the abnormal interaction of the user is deleted.

10. The communication control method according to claim 1, wherein: The preset threshold is determined according to the type of service carried by the execution subject of the method and the number of interactive messages required for the protocol session of the service.

11. An electronic device, characterized in that: include: at least one processor; as well as, a memory communicatively connected to the at least one processor; wherein, The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to execute the communication control method according to any one of claims 1 to 10.

12. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the communication control method according to any one of claims 1 to 10 is implemented.

Citation Information

Patent Citations

  • Data transceiver based on random access protocol

    CN111385907A

  • Regulating client requests in an electronic messaging environment

    US20050267980A1