CN114189357B - Registration message processing method, device, computer equipment and storage medium - Google Patents

Registration message processing method, device, computer equipment and storage medium Download PDF

Info

Publication number
CN114189357B
CN114189357B CN202111353173.8A CN202111353173A CN114189357B CN 114189357 B CN114189357 B CN 114189357B CN 202111353173 A CN202111353173 A CN 202111353173A CN 114189357 B CN114189357 B CN 114189357B
Authority
CN
China
Prior art keywords
registration
remote equipment
remote
request message
receiving
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202111353173.8A
Other languages
Chinese (zh)
Other versions
CN114189357A (en
Inventor
周玉兰
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Suzhou Inspur Intelligent Technology Co Ltd
Original Assignee
Suzhou Inspur Intelligent Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Suzhou Inspur Intelligent Technology Co Ltd filed Critical Suzhou Inspur Intelligent Technology Co Ltd
Priority to CN202111353173.8A priority Critical patent/CN114189357B/en
Publication of CN114189357A publication Critical patent/CN114189357A/en
Application granted granted Critical
Publication of CN114189357B publication Critical patent/CN114189357B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/08Network architectures or network communication protocols for network security for authentication of entities
    • H04L63/0876Network architectures or network communication protocols for network security for authentication of entities based on the identity of the terminal or configuration, e.g. MAC address, hardware or software configuration or device fingerprint
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/06Management of faults, events, alarms or notifications
    • H04L41/0631Management of faults, events, alarms or notifications using root cause analysis; using analysis of correlation between notifications, alarms or events based on decision criteria, e.g. hierarchy, tree or time analysis
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • H04L43/0823Errors, e.g. transmission errors

Abstract

The application relates to a registration message processing method, a registration message processing device, computer equipment and a storage medium. The method comprises the following steps: the method comprises the steps of receiving a registration request message sent by remote equipment, wherein the registration request message carries a remote equipment identifier, distributing a registration handle corresponding to the remote equipment identifier for the remote equipment according to the registration request message, sending the registration handle to a chip, enabling the chip to register according to the registration handle, returning to execute a step of receiving the registration request message sent by the remote equipment until receiving a registration success message returned by the chip when receiving a first notification sent by the remote equipment before receiving a registration success message returned by the chip, sending a second notification to the remote equipment, and jumping to a registration completion state by state equipment when receiving a second notification successful receipt message sent by the remote equipment, thereby completing registration between the remote equipment and local equipment. The method can be used for stabilizing data transmission.

Description

Registration message processing method, device, computer equipment and storage medium
Technical Field
The present invention relates to the field of computer technologies, and in particular, to a registration message processing method, apparatus, computer device, and storage medium.
Background
With the rapid development of information technology and the large-scale application of networks, data to be transmitted in the networks is explosively increased, which puts great pressure on network transmission. Along with the expansion of the scale of the storage system, a complex network link is formed in the storage system, so that the research of the method for improving the transmission rate by utilizing the link resource in the storage network has practical value and application prospect.
However, when a relatively complex network environment is deployed, for example, hundreds of hosts and hundreds of storages and switches, the problems of frame loss and packet loss easily occur in the process of accessing the hosts to the storages.
Disclosure of Invention
Based on this, it is necessary to provide a registration message processing method, apparatus, computer device and storage medium, to increase monitoring of abnormal scenes and conversion of state machines, and to improve stability of data transmission.
A registration message processing method, the method comprising:
receiving a registration request message sent by a remote device, wherein the registration request message carries a remote device identifier;
distributing a registration handle corresponding to the remote equipment identifier to the remote equipment according to the registration request message;
transmitting the registration handle to the chip so that the chip registers according to the registration handle;
When a first notice sent by the remote equipment is received before a registration success message returned by the chip is received, the step of receiving a registration request message sent by the remote equipment is carried out in a returning mode until the registration success message returned by the chip is received;
issuing a second notification to the remote device;
and when the second notification successful receiving message sent by the remote equipment is received, the state equipment jumps to a registration completion state to complete registration between the remote equipment and the local equipment.
In one embodiment, the method further comprises: and directly executing the step of issuing a second notification to the remote equipment when the first notification sent by the remote equipment is not received before the registration success message returned by the chip is received.
In one embodiment, the method further comprises: and receiving a first message sent by the switch, wherein the first message is used for informing the local equipment to wait for receiving the registration request message of the remote equipment, when the registration request message sent by the remote equipment is not received within a preset time period, initiating the remote registration request message to the remote equipment, receiving a notification returned by the remote equipment according to the remote registration request message, distributing a registration handle corresponding to the remote equipment identifier to the remote equipment according to the notification, and executing the step of sending the registration handle to the chip.
In one embodiment, the method further comprises: sending a query request to the switch, so that the switch queries a message sent by the remote device according to the query request, returns a query result, detects whether a registration request message sent by the remote device is received within a preset time period when the query result is that the remote device is queried, initiates the remote registration request message to the remote device when the registration request message sent by the remote device is not received within the preset time period, receives a notification returned by the remote device according to the remote registration request message, distributes a registration handle corresponding to a remote device identifier for the remote device according to the notification, and executes the step of sending the registration handle to the chip.
In one embodiment, the method further comprises: and when receiving the registration request message sent by the remote equipment within a preset time period, executing a registration handle step of distributing the remote equipment with a registration handle corresponding to the remote equipment identifier according to the registration request message.
In one embodiment, the method further comprises: and when the query result shows that the existence of the remote equipment is not queried, sending a second message to the switch, wherein the second message is used for attempting to connect the remote equipment, receiving a connection success message sent by the switch, wherein the connection success message is a message that the switch attempts to connect the remote equipment successfully according to the second message, and executing the steps to detect whether the registration request message sent by the remote equipment is received within a preset time period.
In one embodiment, the registration message processing method is applied to a registration message processing link, where the link includes a remote device, a local device, and a switch, and the remote device and the local device are connected through a port provided by the switch.
A registration message processing apparatus, the apparatus comprising:
the receiving module is used for receiving a registration request message sent by the remote equipment, wherein the registration request message carries the remote equipment identifier;
the distribution module is used for distributing the remote equipment with the registration handle corresponding to the remote equipment identifier according to the registration request message;
the sending module is used for sending the registration handle to the chip so that the chip registers according to the registration handle;
the processing module is used for returning to execute the step of receiving the registration request message sent by the remote equipment until receiving the registration success message returned by the chip when receiving the first notification sent by the remote equipment before receiving the registration success message returned by the chip;
the issuing module is used for issuing a second notification to the remote equipment;
and the registration module is used for skipping to a registration completion state by the state equipment when receiving the second notification successful receiving message sent by the remote equipment, and completing registration between the remote equipment and the local equipment.
A computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, the processor implementing the steps of:
receiving a registration request message sent by a remote device, wherein the registration request message carries a remote device identifier;
distributing a registration handle corresponding to the remote equipment identifier to the remote equipment according to the registration request message;
transmitting the registration handle to the chip so that the chip registers according to the registration handle;
when a first notice sent by the remote equipment is received before a registration success message returned by the chip is received, the step of receiving a registration request message sent by the remote equipment is carried out in a returning mode until the registration success message returned by the chip is received;
issuing a second notification to the remote device;
and when the second notification successful receiving message sent by the remote equipment is received, the state equipment jumps to a registration completion state to complete registration between the remote equipment and the local equipment.
A computer readable storage medium having stored thereon a computer program which when executed by a processor performs the steps of:
receiving a registration request message sent by a remote device, wherein the registration request message carries a remote device identifier;
Distributing a registration handle corresponding to the remote equipment identifier to the remote equipment according to the registration request message;
transmitting the registration handle to the chip so that the chip registers according to the registration handle;
when a first notice sent by the remote equipment is received before a registration success message returned by the chip is received, the step of receiving a registration request message sent by the remote equipment is carried out in a returning mode until the registration success message returned by the chip is received;
issuing a second notification to the remote device;
and when the second notification successful receiving message sent by the remote equipment is received, the state equipment jumps to a registration completion state to complete registration between the remote equipment and the local equipment.
The method, the device, the computer equipment and the storage medium for processing the registration message receive the registration request message sent by the remote equipment, the registration request message carries the remote equipment identifier, the registration handle corresponding to the remote equipment identifier is distributed to the remote equipment according to the registration request message, the registration handle is sent to the chip, so that the chip registers according to the registration handle, when a first notification sent by the remote equipment is received before a registration success message returned by the chip is received, the step of receiving the registration request message sent by the remote equipment is returned until the registration success message returned by the chip is received, a second notification is sent to the remote equipment, and when the second notification sent by the remote equipment is received, the state equipment jumps to a registration completion state, and registration between the remote equipment and the local equipment is completed.
Therefore, when the local device receives the first notification sent by the remote device before receiving the registration success message returned by the chip, the notification sent by the remote device is received in advance in the prior art, which is considered as an abnormal condition, and causes abnormal link communication and even interruption of data storage and reading. To solve this problem, the local device receives the first notification sent by the remote device in advance before receiving the registration success message returned by the chip, and does not determine this as an abnormal situation, but returns to execute the step of receiving the registration request message sent by the remote device until receiving the registration success message returned by the chip. By means of the monitoring of the increased abnormal scene, the notification sent by the remote equipment in advance is not regarded as abnormal behavior, but the previous step is returned, the chip continues to wait for the successful registration message, actions such as abnormal alarm and the like are not triggered any more, and the stability of data transmission is improved.
Drawings
FIG. 1 is an application environment diagram of a registration message processing method in one embodiment;
FIG. 2 is a flow diagram of a registration message processing method in one embodiment;
FIG. 3 is a flow diagram of a registration message processing method in one embodiment;
FIG. 4 is a schematic diagram of a registration message processing link in one embodiment;
FIG. 5 is a block diagram of a registration message processing apparatus in one embodiment;
FIG. 6 is an internal block diagram of a computer device in one embodiment;
fig. 7 is an internal structural diagram of a computer device in one embodiment.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application will be further described in detail with reference to the accompanying drawings and examples. It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the present application.
The registration message processing method provided by the application can be applied to an application environment shown in fig. 1. Wherein the remote device 102 communicates with the local device 104 via a network. The remote device 102 or the local device 104 may be a terminal or a server, wherein the terminal may be, but is not limited to, various personal computers, notebook computers, smart phones, tablet computers, and portable wearable devices, and the server may be implemented as a stand-alone server or a server cluster composed of a plurality of servers.
Specifically, the local device 104 receives a registration request message sent by the remote device 102, the registration request message carries a remote device identifier, distributes a registration handle corresponding to the remote device identifier for the remote device according to the registration request message, sends the registration handle to the chip, so that the chip registers according to the registration handle, when receiving a first notification sent by the remote device before receiving a registration success message returned by the chip, returns to execute a step of receiving the registration request message sent by the remote device until receiving the registration success message returned by the chip, sends a second notification to the remote device 102, and when receiving a second notification sent by the remote device 102, the state device jumps to a registration completion state to complete registration between the remote device 102 and the local device 104.
In one embodiment, as shown in fig. 2, a registration message processing method is provided, and the method is applied to the local device in fig. 1 for illustration, and includes the following steps:
step 202, a registration request message sent by a remote device is received, where the registration request message carries a remote device identifier.
The registration request message is a message for requesting registration, the registration request message carries an initiator identifier, and the registration request message is initiated by the remote device, so that the registration request message carries the remote device identifier.
Specifically, the remote device triggers generation of the registration request message through related operations, and the operations can be timing event trigger generation, click trigger generation or voice operation trigger generation. When the remote device triggers to generate the registration request message, the registration request message carries a remote device identifier, where the remote device identifier is used to uniquely identify the remote device and may be a unique device identifier of the remote device.
Step 204, a registration handle corresponding to the remote device identifier is allocated to the remote device according to the registration request message.
Specifically, after receiving a registration request message sent by a remote device, the local device allocates a registration handle to the remote device, where the registration handle corresponds to an identifier of the remote device, where the registration handle may be understood as allocating an identifier, which is equivalent to that the local device receives a registration message of the remote device, marks a log handle, and proves that the local device has received the registration handle to the remote device, and marks itself as having received the registration handle.
In step 206, the registration handle is sent to the chip, so that the chip registers according to the registration handle.
The chip is an element in the local equipment and is located in the local equipment, the local equipment sends the registration handle to the chip, and after the chip receives the registration handle, the chip registers according to the registration handle. After the chip is successfully registered, a registration success message is sent to the local equipment, otherwise, the chip is not successfully registered, and the registration success message is not sent to the local equipment.
Step 208, when the first notification sent by the remote device is received before the registration success message returned by the chip is received, the step of receiving the registration request message sent by the remote device is performed in a returning manner until the registration success message returned by the chip is received.
When the local device receives the first notification sent by the remote device before receiving the registration success message returned by the chip, the notification sent by the remote device is received in advance in the prior art, which is identified as an abnormal condition, and causes abnormal link communication and even the condition of interruption of data storage and reading. To solve this problem, the local device receives the first notification sent by the remote device in advance before receiving the registration success message returned by the chip, and does not determine this as an abnormal situation, but returns to execute the step of receiving the registration request message sent by the remote device until receiving the registration success message returned by the chip. By the monitoring of the increased abnormal scene, the notification sent by the remote equipment in advance is not regarded as abnormal behavior, but the previous step is returned, the chip continues to wait for the successful registration message to be returned, and actions such as abnormal alarm and the like are not triggered.
In one embodiment, when the first notification sent by the remote device is not received before the registration success message returned by the chip is received, the step of issuing the second notification to the remote device is directly performed.
Specifically, when the first notification sent by the remote device is not received before the registration success message returned by the chip is received, the procedure is described that no abnormality occurs, and the procedure can be executed according to the normal steps, after the registration success message returned by the chip is received, the second notification step is directly executed to send the second notification step to the remote device, and the previous step is not required to be returned to wait for the registration success message returned by the chip.
Step 210, issuing a second notification to the remote device.
Step 212, when receiving the second notification successful receiving message sent by the remote device, the state device jumps to the registration completion state to complete the registration between the remote device and the local device.
The first notification is a notification sent by the remote device to the local device, and is sent by the remote device before a registration success message returned by the chip is not received, and the second notification is a notification sent by the local device to the remote device, and is sent to the remote device after a registration success message returned by the chip is received.
Specifically, after receiving the registration success message returned by the chip, the local device sends a second notification to the remote device, and after the remote device successfully receives the second notification, the local device replies a second notification success receiving message to the local device. Further, after receiving the second notification success receiving message sent by the remote device, the local device indicates that the remote device successfully receives the notification sent by the local device, so that state transition of the state machine can be performed, the state of the state device jumps to a registration completion state, and registration between the remote device and the local device is completed, wherein the state device is used for performing state transition between the local device and the remote device.
In the above method for processing registration message, a registration request message sent by a remote device is received, the registration request message carries a remote device identifier, a registration handle corresponding to the remote device identifier is allocated to the remote device according to the registration request message, the registration handle is sent to the chip, so that the chip registers according to the registration handle, when a first notification sent by the remote device is received before a registration success message returned by the chip is received, the step of receiving the registration request message sent by the remote device is executed again until the registration success message returned by the chip is received, a second notification is sent to the remote device, and when a second notification sent by the remote device is received, the state device jumps to a registration completion state, and registration between the remote device and the local device is completed.
Therefore, when the local device receives the first notification sent by the remote device before receiving the registration success message returned by the chip, the notification sent by the remote device is received in advance in the prior art, which is considered as an abnormal condition, and causes abnormal link communication and even interruption of data storage and reading. To solve this problem, the local device receives the first notification sent by the remote device in advance before receiving the registration success message returned by the chip, and does not determine this as an abnormal situation, but returns to execute the step of receiving the registration request message sent by the remote device until receiving the registration success message returned by the chip. By means of the monitoring of the increased abnormal scene, the notification sent by the remote equipment in advance is not regarded as abnormal behavior, but the previous step is returned, the chip continues to wait for the successful registration message, actions such as abnormal alarm and the like are not triggered any more, and the stability of data transmission is improved.
In one embodiment, as shown in fig. 3, the registration message processing method further includes:
step 302, a first message sent by the switch is received, where the first message is used to inform the local device to wait for receiving a registration request message of the remote device.
The local equipment can actively wait for the switch to inform the existence of the remote equipment when waiting for registration, so that after the switch and the remote equipment successfully establish connection, namely the switch senses the existence of the remote equipment, a first message can be sent to the local equipment, the first message can be generated by triggering after the switch and the remote equipment successfully establish connection, and is used for informing the local equipment that the registration request message of the remote equipment can be waited for, and also used for informing the local equipment that the connection with the remote equipment is successfully established and waiting for the remote equipment to initiate the registration request.
Step 304, a query request is sent to the switch, so that the switch queries a message sent by the remote device according to the query request, returns a query result, and detects whether a registration request message sent by the remote device is received within a preset time period when the query result is that the remote device is queried.
The local device can also actively inquire the existence of the remote device to the switch when waiting for registration, the local device can send an inquiry request to the switch, the inquiry request is used for inquiring the existence of the remote device, after receiving the inquiry request sent by the local device, the switch inquires whether connection with the remote device is successfully established according to the inquiry request, and returns an inquiry result, if the inquiry result indicates that the switch successfully establishes connection with the remote device, the remote device is already in existence, the local device can be informed to add a timer, and whether the local device receives registration request information sent by the remote device in a preset time period is detected.
In one embodiment, when the query result is that the existence of the remote device is not queried, a second message is sent to the switch, the second message is used for attempting to connect to the remote device, a connection success message sent by the switch is received, the connection success message is a message that the switch attempts to connect to the remote device successfully according to the second message, and the step of detecting whether the registration request message sent by the remote device is received within a preset time period is performed.
Specifically, if the query result returned by the switch indicates that the switch does not successfully establish a connection with the remote device, that is, the switch does not sense the existence of the remote device, a second message is sent to the switch, the second message is used for notifying the switch to attempt to establish a connection with the remote device, after the switch receives the second message, the switch attempts to establish a connection with the remote device, when the switch successfully establishes a connection with the remote device, the switch sends a connection success message to the local device, and after the local device receives the connection success message sent by the switch, the local device can add a timer to detect whether the registration request message sent by the remote device is received within a preset time period.
It should be noted that, step 302 and step 304 are or, and step 302 and step 304 are two ways in which the local device senses the existence of the remote device, and in practical application, one way may sense the existence of the remote device, so step 302 and step 304 are or.
Step 306, when the registration request message sent by the remote device is not received within the preset time period, initiating a remote registration request message to the remote device.
Specifically, if the remote device does not receive the registration request message sent by the remote device within the preset time period, the local device actively initiates a remote registration request message to the remote device, where the remote registration request message is initiated by the local device to the remote device, and the registration request message is initiated by the remote device to the local device, which are different from each other.
In one embodiment, when a registration request message sent by a remote device is received within a preset period of time, a step of allocating a registration handle corresponding to a remote device identifier to the remote device according to the registration request message is performed.
Specifically, if the local device receives the registration request message sent by the remote device within the preset time period, it indicates that the remote device has initiated the registration request within the preset time period, so that the remote device may be allocated with the matched registration handle according to the registration request message initiated by the remote device, and execute according to the normal execution sequence. The preset time period can be determined according to actual service requirements, actual product requirements or actual application scenes.
In step 308, a notification returned by the remote device according to the remote registration request message is received, and a registration handle corresponding to the remote device identifier is allocated to the remote device according to the notification.
Step 310, the step of sending the registration handle to the chip is performed.
Specifically, after the local device actively initiates a remote registration request message to the remote device, the remote device receives the remote registration request message and replies a notification to the local device, wherein the notification is that the local device has received the remote registration request message, further, after the local device receives the notification, the local device distributes a registration handle corresponding to the remote device identifier to the remote device according to the notification, and executes a subsequent procedure according to a normal execution sequence, namely, executes the step of sending the registration handle to the chip.
In one embodiment, the above method is applied to a registration message processing link that includes a remote device, a local device, and a switch, the remote device and the local device being connected through a port provided by the switch.
For example, as shown in fig. 4, fig. 4 shows a schematic diagram of a registration message processing link in one embodiment, where the remote device is at least one computing zone, the local device is at least one storage zone, and the link in fig. 4 may further include at least one switch providing at least one port through which the remote device and the local device communicate.
In a specific application scenario, the registration message processing method specifically includes the following procedures, where a local port is a port provided by a local device, and a remote port is a port provided by a remote device:
1. the home port senses the existence of the remote port through the active notification (RSCN) of the switch or the inquiry (gid_ft) of the switch, and the add timer waits for the remote port to send a plodin (remote registration request).
2. After the timer expires, PLOGIN of the remote port is not received, the local port actively initiates PLOGIN.
3. The remote port replies to the ACC (notification) after receiving the plodin.
4. When the local port receives the ACC, it allocates a loginfold to the remote port and registers a loginfold to the chip.
5. The chip returns the login handle registration success and drives the PRLI to be sent to the remote port.
6. The remote port replies ACC after receiving PRLI, the local port jumps to PRLI_DONE state after receiving ACC, and logic (registration) establishment is completed.
The local port may also directly receive the log registration information sent by the remote port, directly allocate a log handle to the remote port, register the log handle to the chip, and directly execute step 5. That is, the logic handle may be allocated to the remote port according to the log i registration information sent by the remote port, or may be allocated after receiving the ACC sent by the remote port by actively initiating a remote registration request according to the local port.
It should be understood that, although the steps in the above-described flowcharts are shown in order as indicated by the arrows, these steps are not necessarily performed in order as indicated by the arrows. The steps are not strictly limited to the order of execution unless explicitly recited herein, and the steps may be executed in other orders. Moreover, at least some of the steps in the flowcharts described above may include a plurality of sub-steps or stages that are not necessarily performed at the same time, but may be performed at different times, and the order of execution of the sub-steps or stages is not necessarily sequential, but may be performed alternately or alternately with at least a part of the sub-steps or stages of other steps or other steps.
In one embodiment, as shown in fig. 5, there is provided a registration message processing apparatus 500, including: a receiving module 502, an allocating module 504, a sending module 506, a processing module 508, a issuing module 510, and a registering module 512, wherein:
the receiving module 502 is configured to receive a registration request message sent by a remote device, where the registration request message carries a remote device identifier.
An allocation module 504, configured to allocate, to the remote device, a registration handle corresponding to the remote device identifier according to the registration request message.
And a sending module 506, configured to send the registration handle to the chip, so that the chip registers according to the registration handle.
And the processing module 508 is configured to return to executing the step of receiving the registration request message sent by the remote device until receiving the registration success message returned by the chip when receiving the first notification sent by the remote device before receiving the registration success message returned by the chip.
And a sending module 510, configured to send the second notification to the remote device.
The registration module 512 is configured to, when receiving the second notification successful receipt message sent by the remote device, skip the state device to a registration completion state, and complete registration between the remote device and the local device.
In one embodiment, the direct issuing module 510 performs the step of issuing the second notification to the remote device when the registration message processing apparatus 500 does not receive the first notification sent by the remote device before receiving the registration success message returned by the chip.
In one embodiment, the registration message processing apparatus 500 receives a first message sent by the switch, where the first message is used to notify the local device to wait for receiving a registration request message of the remote device, and when the registration request message sent by the remote device is not received within a preset period of time, initiates a remote registration request message to the remote device, receives a notification returned by the remote device according to the remote registration request message, assigns a registration handle corresponding to the remote device identifier to the remote device according to the notification, and the sending module 506 performs a step of sending the registration handle to the chip.
In one embodiment, the registration message processing apparatus 500 sends a query request to the switch, so that the switch queries a message sent by the remote device according to the query request, returns a query result, detects whether a registration request message sent by the remote device is received within a preset period of time when the query result is that the remote device is queried for existence, initiates a remote registration request message to the remote device when the registration request message sent by the remote device is not received within the preset period of time, receives a notification returned by the remote device according to the remote registration request message, distributes a registration handle corresponding to a remote device identifier for the remote device according to the notification, and the sending module 506 performs a step of sending the registration handle to the chip.
In one embodiment, when the registration message processing apparatus 500 receives a registration request message sent by a remote device within a preset period of time, the allocation module 504 performs a step of allocating a registration handle corresponding to a remote device identifier to the remote device according to the registration request message.
In one embodiment, when the query result indicates that the presence of the remote device is not queried, the registration message processing apparatus 500 sends a second message to the switch, where the second message is used to attempt to connect to the remote device, receives a connection success message sent by the switch, where the connection success message is a message that the switch attempts to connect to the remote device successfully according to the second message, and performs the step of detecting whether the registration request message sent by the remote device is received within a preset period of time.
For specific limitations of the registration message processing apparatus, reference may be made to the above limitations of the registration message processing method, and no further description is given here. The respective modules in the above-described registration message processing apparatus may be implemented in whole or in part by software, hardware, and a combination thereof. The above modules may be embedded in hardware or may be independent of a processor in the computer device, or may be stored in software in a memory in the computer device, so that the processor may call and execute operations corresponding to the above modules.
In one embodiment, a computer device is provided, which may be a server, the internal structure of which may be as shown in fig. 6. The computer device includes a processor, a memory, a network interface, and a database connected by a system bus. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The nonvolatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and computer programs in the non-volatile storage media. The network interface of the computer device is used for communicating with an external terminal through a network connection. The computer program is executed by a processor to implement a registration message processing method.
In one embodiment, a computer device is provided, which may be a terminal, and the internal structure of which may be as shown in fig. 7. The computer device includes a processor, a memory, a network interface, a display screen, and an input device connected by a system bus. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and computer programs in the non-volatile storage media. The network interface of the computer device is used for communicating with an external terminal through a network connection. The computer program is executed by a processor to implement a registration message processing method. The display screen of the computer equipment can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer equipment can be a touch layer covered on the display screen, can also be keys, a track ball or a touch pad arranged on the shell of the computer equipment, and can also be an external keyboard, a touch pad or a mouse and the like.
It will be appreciated by those skilled in the art that the structures shown in fig. 6 or 7 are merely block diagrams of portions of structures related to the aspects of the present application and are not intended to limit the computer devices to which the aspects of the present application may be applied, and that a particular computer device may include more or fewer components than shown, or may combine certain components, or may have a different arrangement of components.
In one embodiment, a computer device is provided comprising a memory, a processor, and a computer program stored on the memory and executable on the processor, the processor implementing the steps of when executing the computer program: the method comprises the steps of receiving a registration request message sent by remote equipment, wherein the registration request message carries a remote equipment identifier, distributing a registration handle corresponding to the remote equipment identifier for the remote equipment according to the registration request message, sending the registration handle to a chip, enabling the chip to register according to the registration handle, returning to execute a step of receiving the registration request message sent by the remote equipment until receiving a registration success message returned by the chip when receiving a first notification sent by the remote equipment before receiving a registration success message returned by the chip, sending a second notification to the remote equipment, and jumping to a registration completion state by state equipment when receiving a second notification successful receipt message sent by the remote equipment, thereby completing registration between the remote equipment and local equipment.
In one embodiment, the processor when executing the computer program further performs the steps of: and directly executing the step of issuing a second notification to the remote equipment when the first notification sent by the remote equipment is not received before the registration success message returned by the chip is received.
In one embodiment, the processor when executing the computer program further performs the steps of: and receiving a first message sent by the switch, wherein the first message is used for informing the local equipment to wait for receiving the registration request message of the remote equipment, when the registration request message sent by the remote equipment is not received within a preset time period, initiating the remote registration request message to the remote equipment, receiving a notification returned by the remote equipment according to the remote registration request message, distributing a registration handle corresponding to the remote equipment identifier to the remote equipment according to the notification, and executing the step of sending the registration handle to the chip.
In one embodiment, the processor when executing the computer program further performs the steps of: sending a query request to the switch, so that the switch queries a message sent by the remote device according to the query request, returns a query result, detects whether a registration request message sent by the remote device is received within a preset time period when the query result is that the remote device is queried, initiates the remote registration request message to the remote device when the registration request message sent by the remote device is not received within the preset time period, receives a notification returned by the remote device according to the remote registration request message, distributes a registration handle corresponding to a remote device identifier for the remote device according to the notification, and executes the step of sending the registration handle to the chip.
In one embodiment, the processor when executing the computer program further performs the steps of: and when receiving the registration request message sent by the remote equipment within a preset time period, executing a registration handle step of distributing the remote equipment with a registration handle corresponding to the remote equipment identifier according to the registration request message.
In one embodiment, the processor when executing the computer program further performs the steps of: and when the query result shows that the existence of the remote equipment is not queried, sending a second message to the switch, wherein the second message is used for attempting to connect the remote equipment, receiving a connection success message sent by the switch, wherein the connection success message is a message that the switch attempts to connect the remote equipment successfully according to the second message, and executing the steps to detect whether the registration request message sent by the remote equipment is received within a preset time period.
In one embodiment, a computer readable storage medium is provided having a computer program stored thereon, which when executed by a processor, performs the steps of: the method comprises the steps of receiving a registration request message sent by remote equipment, wherein the registration request message carries a remote equipment identifier, distributing a registration handle corresponding to the remote equipment identifier for the remote equipment according to the registration request message, sending the registration handle to a chip, enabling the chip to register according to the registration handle, returning to execute a step of receiving the registration request message sent by the remote equipment until receiving a registration success message returned by the chip when receiving a first notification sent by the remote equipment before receiving a registration success message returned by the chip, sending a second notification to the remote equipment, and jumping to a registration completion state by state equipment when receiving a second notification successful receipt message sent by the remote equipment, thereby completing registration between the remote equipment and local equipment.
In one embodiment, the processor when executing the computer program further performs the steps of: and directly executing the step of issuing a second notification to the remote equipment when the first notification sent by the remote equipment is not received before the registration success message returned by the chip is received.
In one embodiment, the processor when executing the computer program further performs the steps of: and receiving a first message sent by the switch, wherein the first message is used for informing the local equipment to wait for receiving the registration request message of the remote equipment, when the registration request message sent by the remote equipment is not received within a preset time period, initiating the remote registration request message to the remote equipment, receiving a notification returned by the remote equipment according to the remote registration request message, distributing a registration handle corresponding to the remote equipment identifier to the remote equipment according to the notification, and executing the step of sending the registration handle to the chip.
In one embodiment, the processor when executing the computer program further performs the steps of: sending a query request to the switch, so that the switch queries a message sent by the remote device according to the query request, returns a query result, detects whether a registration request message sent by the remote device is received within a preset time period when the query result is that the remote device is queried, initiates the remote registration request message to the remote device when the registration request message sent by the remote device is not received within the preset time period, receives a notification returned by the remote device according to the remote registration request message, distributes a registration handle corresponding to a remote device identifier for the remote device according to the notification, and executes the step of sending the registration handle to the chip.
In one embodiment, the processor when executing the computer program further performs the steps of: and when receiving the registration request message sent by the remote equipment within a preset time period, executing a registration handle step of distributing the remote equipment with a registration handle corresponding to the remote equipment identifier according to the registration request message.
In one embodiment, the processor when executing the computer program further performs the steps of: and when the query result shows that the existence of the remote equipment is not queried, sending a second message to the switch, wherein the second message is used for attempting to connect the remote equipment, receiving a connection success message sent by the switch, wherein the connection success message is a message that the switch attempts to connect the remote equipment successfully according to the second message, and executing the steps to detect whether the registration request message sent by the remote equipment is received within a preset time period.
Those skilled in the art will appreciate that implementing all or part of the above described methods may be accomplished by way of a computer program stored on a non-transitory computer readable storage medium, which when executed, may comprise the steps of the embodiments of the methods described above. Any reference to memory, storage, database, or other medium used in the various embodiments provided herein may include non-volatile and/or volatile memory. The nonvolatile memory can include Read Only Memory (ROM), programmable ROM (PROM), electrically Programmable ROM (EPROM), electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms such as Static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double Data Rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous Link DRAM (SLDRAM), memory bus direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM), among others.
The technical features of the above embodiments may be arbitrarily combined, and all possible combinations of the technical features in the above embodiments are not described for brevity of description, however, as long as there is no contradiction between the combinations of the technical features, they should be considered as the scope of the description.
The above examples merely represent a few embodiments of the present application, which are described in more detail and are not to be construed as limiting the scope of the invention. It should be noted that it would be apparent to those skilled in the art that various modifications and improvements could be made without departing from the spirit of the present application, which would be within the scope of the present application. Accordingly, the scope of protection of the present application is to be determined by the claims appended hereto.

Claims (9)

1. A registration message processing method, the method comprising:
receiving a registration request message sent by a remote device, wherein the registration request message carries a remote device identifier;
distributing a registration handle corresponding to the remote equipment identifier to the remote equipment according to the registration request message;
sending the registration handle to a chip so that the chip registers according to the registration handle;
When a first notification sent by the remote equipment is received before a registration success message returned by the chip is received, returning to the step of executing the registration request message sent by the remote equipment until the registration success message returned by the chip is received;
issuing a second notification to the remote device;
when receiving a second notification successful receiving message sent by the remote equipment, the state equipment jumps to a registration completion state to complete registration between the remote equipment and the local equipment;
and directly executing the step of issuing a second notification to the remote equipment when the first notification sent by the remote equipment is not received before the registration success message returned by the chip is received.
2. The method according to claim 1, wherein the method further comprises:
receiving a first message sent by a switch, wherein the first message is used for notifying the local equipment to wait for receiving a registration request message of the remote equipment;
when the registration request message sent by the remote equipment is not received within a preset time period, initiating a remote registration request message to the remote equipment;
receiving a notification returned by the remote equipment according to the remote registration request message, and distributing a registration handle corresponding to the remote equipment identifier to the remote equipment according to the notification;
And executing the step of sending the registration handle to the chip.
3. The method according to claim 1, wherein the method further comprises:
sending a query request to a switch, so that the switch queries a message sent by the remote equipment according to the query request and returns a query result;
detecting whether a registration request message sent by the remote equipment is received within a preset time period when the query result is that the existence of the remote equipment is queried;
when the registration request message sent by the remote equipment is not received within a preset time period, initiating a remote registration request message to the remote equipment;
receiving a notification returned by the remote equipment according to the remote registration request message, and distributing a registration handle corresponding to the remote equipment identifier to the remote equipment according to the notification;
and executing the step of sending the registration handle to the chip.
4. A method according to claim 2 or 3, characterized in that the method further comprises:
and when receiving the registration request message sent by the remote equipment within a preset time period, executing the step of distributing the registration handle corresponding to the remote equipment identifier to the remote equipment according to the registration request message.
5. A method according to claim 3, characterized in that the method further comprises:
when the query result is that the existence of the remote equipment is not queried, sending a second message to the switch, wherein the second message is used for attempting to connect the remote equipment;
receiving a connection success message sent by the switch, wherein the connection success message is a message that the switch attempts to connect with the remote equipment successfully according to the second message;
and the executing step detects whether the registration request message sent by the remote equipment is received within a preset time period.
6. The method of claim 1, wherein the method is applied to a registration message processing link comprising the remote device, the local device, and a switch, the remote device and the local device being connected through a port provided by the switch.
7. A registration message processing apparatus, the apparatus comprising:
the receiving module is used for receiving a registration request message sent by the remote equipment, wherein the registration request message carries a remote equipment identifier;
the distribution module is used for distributing the remote equipment with a registration handle corresponding to the remote equipment identifier according to the registration request message;
The sending module is used for sending the registration handle to the chip so that the chip registers according to the registration handle;
the processing module is used for returning to execute the step of receiving the registration request message sent by the remote equipment until receiving the registration success message returned by the chip when receiving the first notification sent by the remote equipment before receiving the registration success message returned by the chip;
the issuing module is used for issuing a second notification to the remote equipment;
and the registration module is used for skipping to a registration completion state by the state equipment when receiving the second notification successful receiving message sent by the remote equipment, completing registration between the remote equipment and the local equipment, and directly executing the step of sending the second notification to the remote equipment when the first notification sent by the remote equipment is not received before receiving the registration success message returned by the chip.
8. A computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, characterized in that the processor implements the steps of the method according to any one of claims 1 to 6 when the computer program is executed by the processor.
9. A computer readable storage medium, on which a computer program is stored, characterized in that the computer program, when being executed by a processor, implements the steps of the method of any of claims 1 to 6.
CN202111353173.8A 2021-11-16 2021-11-16 Registration message processing method, device, computer equipment and storage medium Active CN114189357B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111353173.8A CN114189357B (en) 2021-11-16 2021-11-16 Registration message processing method, device, computer equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111353173.8A CN114189357B (en) 2021-11-16 2021-11-16 Registration message processing method, device, computer equipment and storage medium

Publications (2)

Publication Number Publication Date
CN114189357A CN114189357A (en) 2022-03-15
CN114189357B true CN114189357B (en) 2023-07-14

Family

ID=80540109

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111353173.8A Active CN114189357B (en) 2021-11-16 2021-11-16 Registration message processing method, device, computer equipment and storage medium

Country Status (1)

Country Link
CN (1) CN114189357B (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111343156A (en) * 2020-02-11 2020-06-26 中国联合网络通信集团有限公司 Registration authentication method, server, terminal device and readable storage medium
CN111917551A (en) * 2020-06-23 2020-11-10 深圳奥联信息安全技术有限公司 Handle access protection method and system based on certificateless public key

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US11048549B2 (en) * 2019-04-04 2021-06-29 Google Llc Transferral of process state and/or components in computing environments

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111343156A (en) * 2020-02-11 2020-06-26 中国联合网络通信集团有限公司 Registration authentication method, server, terminal device and readable storage medium
CN111917551A (en) * 2020-06-23 2020-11-10 深圳奥联信息安全技术有限公司 Handle access protection method and system based on certificateless public key

Also Published As

Publication number Publication date
CN114189357A (en) 2022-03-15

Similar Documents

Publication Publication Date Title
EP3541127B1 (en) Downlink packet transmission method and device
CN110602169B (en) Service calling method and device, computer equipment and storage medium
US11013026B2 (en) Data transmission method, terminal and network-side device
CN107784221B (en) Authority control method, service providing method, device and system and electronic equipment
CN108280020B (en) Monitoring method and device of computer equipment, terminal and computer storage medium
CN108446172B (en) Data calling method and device, computer equipment and storage medium
US20210321358A1 (en) Sim card registration method and apparatus, computer device, and storage medium
US11736597B2 (en) Data exchange method, electronic device, and non-transitory storage medium
CN112423281B (en) Wireless module upgrading method, device, computer equipment and storage medium
CN114401250A (en) Address allocation method and device
EP4030776A1 (en) Method and apparatus for triggering vomci function from olt to send omci messages
CN115086394A (en) Service information processing method and device and electronic equipment
CN114189357B (en) Registration message processing method, device, computer equipment and storage medium
CN112232902B (en) Order data processing method, device and system, computer equipment and storage medium
CN104660780A (en) Electronic equipment and control method thereof
CN115221156A (en) Database cluster capacity expansion method and device, computer equipment and storage medium
CN108241616B (en) Message pushing method and device
US20180262707A1 (en) Method for Processing Ordered Broadcast and Electronic Device
CN115454329A (en) Management method, device, equipment and storage medium for storage cluster equipment
CN113840313B (en) Network mode control method and device of mobile terminal and computer equipment
CN111258860B (en) Data alarm method, device, computer equipment and storage medium
CN114157663A (en) Cloud data access method and cloud server
CN111274176B (en) Information processing method, electronic equipment, system and storage medium
CN109246034B (en) Method and equipment for allocating flow resources for mobile equipment
CN113051008A (en) Interface request processing method and device, computer equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant