Fast registration method, apparatus, device, and readable storage medium
Patent Information
- Application Number
- CN202311320695.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-10-12
- Publication Date
- 2026-08-18
- Estimated Expiration
- 2043-10-12
AI Technical Summary
[0003]在子网关的标准注册流程中,主网关打开一个发现窗口,发出SN(Serial Number,序列号)请求消息,待上线子网关需要经过O3(Serial-Number-state,序列号状态)和O4(Ranging-state,测距状态)状态,并需要发送SN响应消息,如果此时在线的子网关也发送数据,主网关就不能避免在线子网关和待上线子网关发送数据的冲突,为此,主网关将暂停在线子网关发送上行信号,产生一安静时段,该安静时段专门为待上线子网关发送SN响应消息,该安静时段将会挤占在线子网关的上行带宽,增大上行流的转发抖动,在线子网关的上行数据会出现转发时延
[0040]In this embodiment, the main gateway detects whether the sub-gateway is registering for the first time based on the sequence number response message reported by the sub-gateway. If the sub-gateway is not registering for the first time, a first equalization delay is calculated based on the sequence number response message. If the error between the first equalization delay and the second equalization delay corresponding to the sub-gateway is less than a preset error, the second equalization delay is allocated to the sub-gateway to complete the registration. The second equalization delay is obtained by the latest ranging measurement of the sub-gateway. This embodiment allows the main gateway to calculate the first equalization delay based on the sequence number response message when the main gateway detects that the sub-gateway is registering again, during the sequence number discovery phase when the sub-gateway is in state O3. If the error between the calculated first equalization delay and the second equalization delay obtained by the latest ranging measurement of the sub-gateway is small, the second equalization delay is directly allocated to the sub-gateway, skipping the ranging process in the standard registration process and completing the registration. This shortens the registration and online time of the sub-gateway and improves the user's service experience.
Smart Images

Figure CN117354651B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of communication technology, and in particular to a fast registration method, apparatus, device, and readable storage medium. Background Technology
[0002] In GPON (Gigabit-Capable Passive Optical Network), the main gateway (OLT, Optical Line Terminal) aggregates and connects multiple sub-gateways (ONU, Optical Network Unit) through ODN (Optical Distribution Network). Each sub-gateway needs to complete the discovery, ranging, and activation process according to the GPON standard before it can register and go online to provide unicast and multicast data services.
[0003] In the standard registration process of a sub-gateway, the main gateway opens a discovery window and sends an SN (Serial Number) request message. The sub-gateway to be connected needs to go through the O3 (Serial-Number-state) and O4 (Ranging-state) states and needs to send an SN response message. If the online sub-gateway also sends data at this time, the main gateway cannot avoid the conflict between the data sent by the online sub-gateway and the sub-gateway to be connected. Therefore, the main gateway will suspend the uplink signal sent by the online sub-gateway, creating a quiet period. This quiet period is dedicated to sending SN response messages by the sub-gateway to be connected. This quiet period will consume the uplink bandwidth of the online sub-gateway, increase the forwarding jitter of the uplink flow, and cause forwarding delays in the uplink data of the online sub-gateway.
[0004] In a FTTR (Fiber to the Room) networking scenario based on GPON technology, sub-gateways placed in different rooms are aggregated and registered to the main gateway via ODN. When a sub-gateway restarts, during the O3 sequence number and O4 ranging phases of the sub-gateway's re-registration process, the main gateway will prohibit other online sub-gateways from sending uplink messages. This will consume the uplink bandwidth of online sub-gateways and affect the service experience of users on online sub-gateways. Summary of the Invention
[0005] This application provides a fast registration method, apparatus, device, and readable storage medium, aiming to solve the technical problem in current FTTR networking scenarios based on GPON technology, where, when a sub-gateway restarts, during the O3 sequence number and O4 ranging phases of the sub-gateway's re-registration process, the main gateway will prohibit other online sub-gateways from sending uplink messages, thereby consuming the uplink bandwidth of online sub-gateways and affecting the service experience of online sub-gateway users.
[0006] In a first aspect, embodiments of this application provide a fast registration method applied to a main gateway, the fast registration method comprising:
[0007] The main gateway responds with a message based on the sequence number reported by the sub-gateway to check whether the sub-gateway is registering for the first time;
[0008] If the sub-gateway is not registering for the first time, the first equalization delay is calculated based on the sequence number response message;
[0009] If the error between the first equalization delay and the second equalization delay corresponding to the sub-gateway is less than a preset error, then the second equalization delay is allocated to the sub-gateway to complete the registration. The second equalization delay is obtained by the latest ranging measurement of the sub-gateway.
[0010] Optionally, if the sub-gateway is not registering for the first time, the calculation of the first equalization delay based on the sequence number response message includes:
[0011] If the sub-gateway is not registering for the first time and the fast registration status of the sub-gateway is enabled, the first equalization delay is calculated based on the sequence number response message. The fast registration status of the sub-gateway is determined by detecting the fast registration status field in the sequence number response message.
[0012] After the main gateway detects whether the sub-gateway is registering for the first time by responding to the sequence number reported by the sub-gateway, the process includes:
[0013] If the sub-gateway is not registering for the first time and its fast registration status is off, or if the sub-gateway is registering for the first time, then the sub-gateway is measured to obtain the second equalization delay, which is then allocated to the sub-gateway to complete the registration, and the second equalization delay is recorded.
[0014] Optionally, calculating the first equalization delay based on the sequence number response message includes:
[0015] The first equalization delay is calculated based on the sequence number response message using Formula 1, which is:
[0016] First equalization delay = zero-distance delay - round-trip delay, round-trip delay = the time when the sequence number request message is sent - the time when the sequence number response message is received - the start time of the bandwidth allocation time slot - fixed delay.
[0017] Optionally, the fast registration method further includes:
[0018] The silence duration is calculated using Formula 2 based on the round-trip delay of the maximum transmission distance, the response time difference of the sub-gateway, and the random delay. Formula 2 is as follows:
[0019] Silence duration = round-trip delay of maximum transmission distance + response time difference of sub-gateway + maximum interval delay, maximum interval delay = maximum ONU_ID × interval delay;
[0020] The main gateway constructs and sends a discovery window data frame using the silence period. The discovery window data frame is used to notify online sub-gateways to suspend sending uplink messages during the silence period.
[0021] Optionally, when applied to a sub-gateway, the fast registration method includes:
[0022] The sub-gateway receives a quick registration switch message and a serial number request message sent by the main gateway. The quick registration switch message includes the main gateway address and a quick registration enable identifier.
[0023] When a sub-gateway receives a sequence number request message from the main gateway, if it detects that the main gateway address in the fast registration switch message has not changed and the fast registration enable flag is enabled, it writes a fixed delay into the fast registration status field in the sequence number response message to indicate that the fast registration status of the sub-gateway is enabled.
[0024] After waiting for a fixed delay, report the sequence number response message to the main gateway.
[0025] Optionally, before writing a fixed delay into the fast registration status field in the sequence number response message to indicate that the fast registration status of the sub-gateway is enabled, the following steps are included:
[0026] The sub-gateway obtains the ONU_ID assigned to it by the main gateway;
[0027] The fixed delay is calculated based on ONU_ID using Formula 3, which is:
[0028] Fixed delay = ONU_ID × interval delay, wherein the interval delay is greater than the sum of the round-trip delay for the maximum transmission distance and the uplink delay for a single frame.
[0029] Secondly, embodiments of this application provide a fast registration device applied to a main gateway, the fast registration device comprising:
[0030] The detection module is used by the main gateway to detect whether a sub-gateway is registering for the first time based on the sequence number reported by the sub-gateway in the response message.
[0031] The calculation module is used to calculate the first equalization delay based on the sequence number response message if the sub-gateway is not registering for the first time.
[0032] The allocation module is used to allocate the second equalization delay to the sub-gateway if the error between the first equalization delay and the second equalization delay corresponding to the sub-gateway is less than a preset error, so as to complete the registration. The second equalization delay is obtained by the latest ranging measurement of the sub-gateway.
[0033] Optionally, when applied to a sub-gateway, the fast registration device includes:
[0034] The receiving module is used for the sub-gateway to receive the quick registration switch message and the serial number request message sent by the main gateway. The quick registration switch message includes the main gateway address and the quick registration enable identifier.
[0035] The writing module is used to write a fixed delay into the fast registration status field of the sequence number response message when the sub-gateway receives a sequence number request message sent by the main gateway. If it detects that the main gateway address in the fast registration switch message has not changed and the fast registration enable flag is enabled, the sub-gateway will then write the fast registration status to the main gateway with the delay to indicate that the fast registration status of the sub-gateway is enabled.
[0036] The reporting module is used to report the sequence number response message to the main gateway after waiting for a fixed time delay.
[0037] Thirdly, embodiments of this application provide a fast registration device, which includes a processor, a memory, and a fast registration program stored in the memory and executable by the processor, wherein when the fast registration program is executed by the processor, it implements the steps of the fast registration method as described above.
[0038] Fourthly, embodiments of this application provide a readable storage medium storing a fast registration program, wherein when the fast registration program is executed by a processor, it implements the steps of the fast registration method as described above.
[0039] The beneficial effects of the technical solutions provided in this application include:
[0040] In this embodiment, the main gateway detects whether the sub-gateway is registering for the first time based on the sequence number response message reported by the sub-gateway. If the sub-gateway is not registering for the first time, a first equalization delay is calculated based on the sequence number response message. If the error between the first equalization delay and the second equalization delay corresponding to the sub-gateway is less than a preset error, the second equalization delay is allocated to the sub-gateway to complete the registration. The second equalization delay is obtained by the latest ranging measurement of the sub-gateway. This embodiment allows the main gateway to calculate the first equalization delay based on the sequence number response message when the main gateway detects that the sub-gateway is registering again, during the sequence number discovery phase when the sub-gateway is in state O3. If the error between the calculated first equalization delay and the second equalization delay obtained by the latest ranging measurement of the sub-gateway is small, the second equalization delay is directly allocated to the sub-gateway, skipping the ranging process in the standard registration process and completing the registration. This shortens the registration and online time of the sub-gateway and improves the user's service experience. Attached Figure Description
[0041] Figure 1 This is a flowchart illustrating one embodiment of the fast registration method of this application;
[0042] Figure 2 This is another flowchart illustrating an embodiment of the fast registration method of this application;
[0043] Figure 3 This is a schematic diagram of the main gateway state transition in one embodiment of the fast registration method of this application;
[0044] Figure 4 This is a schematic diagram of the SN message sending timing of an embodiment of the fast registration method of this application;
[0045] Figure 5 This is a schematic diagram comparing SN response messages under different latency scenarios in an embodiment of the fast registration method of this application;
[0046] Figure 6 This is a schematic diagram of the GTC uplink overhead of one embodiment of the fast registration method of this application;
[0047] Figure 7 This is a schematic diagram of the functional modules of an embodiment of the rapid registration device of this application;
[0048] Figure 8 This is a schematic diagram of the hardware structure of the fast registration device involved in the embodiments of this application. Detailed Implementation
[0049] To enable those skilled in the art to better understand the present application, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present application, and not all embodiments. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art without creative effort are within the scope of protection of the present application.
[0050] The terms "comprising" and "having," and any variations thereof, in the specification, claims, and accompanying drawings of this application are intended to cover non-exclusive inclusion. For example, a process, method, system, product, or apparatus that includes a series of steps or units is not limited to the listed steps or units, but may optionally include steps or units not listed, or may optionally include other steps or units inherent to such process, method, product, or apparatus. The terms "first," "second," and "third," etc., are used to distinguish different objects, etc., and do not indicate a sequence, nor do they limit "first," "second," and "third" to different types.
[0051] In the description of the embodiments of this application, terms such as "exemplary," "for example," or "for instance" are used to indicate examples, illustrations, or explanations. Any embodiment or design described as "exemplary," "for example," or "for instance" in the embodiments of this application should not be construed as being more preferred or advantageous than other embodiments or designs. Specifically, the use of terms such as "exemplary," "for example," or "for instance" is intended to present the relevant concepts in a concrete manner.
[0052] In the description of the embodiments of this application, unless otherwise stated, " / " means "or". For example, A / B can mean A or B. The "and / or" in the text is merely a description of the relationship between related objects, indicating that there can be three relationships. For example, A and / or B can mean: A exists alone, A and B exist simultaneously, and B exists alone. In addition, in the description of the embodiments of this application, "multiple" means two or more.
[0053] In some processes described in the embodiments of this application, multiple operations or steps are included in a specific order. However, it should be understood that these operations or steps may not be executed in the order they appear in the embodiments of this application, or they may be executed in parallel. The sequence number of the operation is only used to distinguish different operations, and the sequence number itself does not represent any execution order. In addition, these processes may include more or fewer operations, and these operations or steps may be executed sequentially or in parallel, and these operations or steps may be combined.
[0054] First, some of the technical terms used in this application will be explained to help those skilled in the art understand this application.
[0055] The registration and activation of a sub-gateway mainly includes: negotiating operating parameters between the main gateway and the sub-gateway, measuring the logical distance between them, and establishing uplink and downlink communication channels. Measuring the logical distance between the main gateway and the sub-gateway is called ranging. The registration and activation process of the sub-gateway is controlled by the main gateway, and its general process is as follows: The sub-gateway receives operating parameters through the Upstream_Overhead message; the sub-gateway adjusts its own parameters, such as transmission optical power, according to the received operating parameters; the main gateway discovers the sequence number of the new sub-gateway through the Serial_Number Acquisition procedure; the main gateway assigns an ONU_ID to all new sub-gateways; the main gateway measures the equalization delay of the new sub-gateway; the main gateway transmits the measured equalization delay to the sub-gateway; the sub-gateway adjusts the transmission start point of its uplink frames according to the equalization delay; the above activation process is completed through the exchange of uplink and downlink flags and PLOAM messages.
[0056] The activation process of a sub-gateway is regulated by the functional behaviors in the state and state transition. The sub-gateway includes 7 states: O1 Initial state, O2 Standby state, O3 Serial number state, O4 Ranging state, O5 Running state, O6 POPUP state, and O7 Emergency stop state. This application focuses on the O3 sequence number state and the O4 ranging state. The master gateway sends a Serial-Number Request message to all sub-gateways in the O3 sequence number state to discover new sub-gateways and their sequence numbers. When the master gateway discovers a new sub-gateway, the sub-gateway waits for the master gateway to assign it an ONU_ID. The master gateway assigns the ONU_ID through the Assign_ONU_ID message. After obtaining the ONU_ID, the sub-gateway transitions to the O4 ranging state. Different sub-gateways should maintain synchronization when sending signals to the master gateway. For this purpose, each sub-gateway needs an equalization delay, which is measured in the ranging state. After receiving the Ranging_Time message, the sub-gateway transitions to the O5 running state. When ranging is successful, all sub-gateways send signals according to their respective equalization delays to maintain uplink frame synchronization. The signals sent by different sub-gateways will arrive at the master gateway separately, but each signal will appear exactly in the position where it should appear in the uplink frame.
[0057] To make the objectives, technical solutions, and advantages of this application clearer, the embodiments of this application will be described in further detail below with reference to the accompanying drawings.
[0058] Firstly, embodiments of this application provide a rapid registration method.
[0059] In one embodiment, it is applied to the main gateway, as shown in the following example. Figure 1 , Figure 1 This is a flowchart illustrating an embodiment of the fast registration method of this application, as shown below. Figure 1 As shown, the quick registration methods include:
[0060] In step S10, the main gateway responds to the message based on the sequence number reported by the sub-gateway to detect whether the sub-gateway is registering for the first time.
[0061] In this embodiment, the main gateway can determine whether a sub-gateway is registering for the first time by detecting the ONU_ID information included in the sequence number response message reported by the sub-gateway. Here, ONU_ID is an identifier assigned to the sub-gateway by the main gateway after registration. The main gateway determines whether a sub-gateway is registering for the first time by detecting the ONU_ID information in the sequence number response message reported by the sub-gateway. For example, if ONU_ID information is detected, it is determined that the sub-gateway is not registering for the first time; if ONU_ID information is not detected, it is determined that the sub-gateway is registering for the first time.
[0062] Step S20: If the sub-gateway is not registering for the first time, the first equalization delay is calculated based on the sequence number response message.
[0063] In this embodiment, if it is detected that the sub-gateway is not registering for the first time, that is, the sub-gateway has registered before, it means that the main gateway has previously allocated a balanced delay to the sub-gateway through ranging. Therefore, it is possible to skip the ranging process and use the balanced delay allocated to the sub-gateway by the latest ranging to shorten the registration and online time of the sub-gateway. First, the first balanced delay is calculated according to the sequence number response message and compared with the balanced delay allocated by the latest ranging.
[0064] Step S30: If the error between the first equalization delay and the second equalization delay corresponding to the sub-gateway is less than a preset error, then the second equalization delay is allocated to the sub-gateway to complete the registration. The second equalization delay is obtained by the latest ranging measurement of the sub-gateway.
[0065] In this embodiment, if the error between the first equalization delay calculated based on the sequence number response message and the second equalization delay obtained from the latest ranging of the sub-gateway is small, the error between the first equalization delay and the second equalization delay can be taken as an absolute value and calculated using the following formula: Error value = |(first equalization delay - second equalization delay) / second equalization delay|. The preset error can be set to, for example, 5%. If the error between the first equalization delay and the second equalization delay is less than 5%, it can be considered that the error is small. In this case, the second equalization delay is directly allocated to the sub-gateway, skipping the ranging process in the standard registration process and completing the registration. This can shorten the registration and online time of the sub-gateway and improve the user's business experience.
[0066] In this embodiment, the main gateway determines whether the sub-gateway is registering for the first time by detecting the ONU_ID information in the sequence number response message reported by the sub-gateway. If the sub-gateway is not registering for the first time, that is, the main gateway has previously allocated a balanced latency to the sub-gateway through ranging, the first balanced latency is calculated based on the sequence number response message. If the error between the first balanced latency and the second balanced latency obtained from the latest ranging of the sub-gateway is small, the second balanced latency is directly allocated to the sub-gateway, skipping the ranging process in the standard registration process and completing the registration. This can shorten the registration and online time of the sub-gateway and improve the user's service experience.
[0067] This embodiment is mainly applied to FTTR networking scenarios based on GPON technology. FTTR networks have the following characteristics: short fiber optic network distances between master and sub-gateways; small maximum differential distances between different sub-gateways; and a lower network element change rate compared to operator PON networks. Based on these characteristics, the rapid registration method of this application can significantly shorten the time for sub-gateways to re-register and come online, reduce the impact of the registration process on the uplink bandwidth of other online sub-gateways, and improve the user's service experience.
[0068] Further, in one embodiment, step S20 includes:
[0069] If the sub-gateway is not registering for the first time and the fast registration status of the sub-gateway is enabled, the first equalization delay is calculated based on the sequence number response message. The fast registration status of the sub-gateway is determined by detecting the fast registration status field in the sequence number response message.
[0070] Following step S10, the following is included:
[0071] If the sub-gateway is not registering for the first time and its fast registration status is off, or if the sub-gateway is registering for the first time, then ranging is performed on the sub-gateway to obtain the second equalization delay. This second equalization delay is then allocated to the sub-gateway to complete the registration, and the second equalization delay is recorded. 。
[0072] In this embodiment, the sequence number response message reported by the sub-gateway includes a fast registration status field. The main gateway determines whether the fast registration status of the sub-gateway is enabled or disabled by detecting the fast registration status field in the sequence number response message. If the sub-gateway is not registering for the first time and its fast registration status is enabled, the first equalization delay is calculated based on the sequence number response message. If the sub-gateway is not registering for the first time and its fast registration status is disabled, or if the sub-gateway is registering for the first time, it indicates that the ranging process in the standard registration procedure is required. In this case, the main gateway measures the distance of the sub-gateway and obtains the second equalization delay. The main gateway allocates the second equalization delay to the sub-gateway to complete the registration. At the same time, the main gateway records and stores the second equalization delay for use in subsequent fast registration procedures. Recording and storing the second equalization delay can be regarded as a learning process. The content recorded and learned by the main gateway may include the sub-gateway's sequence number ONU SN, sub-gateway identifier ONU_ID, fixed delay, and equalization delay Eqd (Equalization Delay), etc. The main gateway's record learning table is shown in Table 1.
[0073] Table 1.
[0074] A 1 3 X B 2 6 y
[0075] Among them, ONU SN is used as the physical address of the sub-gateway, ONU_ID is used to mark the ONU_ID corresponding to each SN, fixed delay is used to record the fixed delay of each sub-gateway that supports fast registration, and Eqd is used to record the balanced delay Eqd obtained by ranging during the last registration of the sub-gateway.
[0076] In this embodiment, refer to Figure 2 , Figure 2 This is another flowchart illustrating an embodiment of the fast registration method of this application, as shown below. Figure 2 As shown, if the detected sub-gateway is registering for the first time, the standard registration process on the right is used for distance measurement; if it is not registering for the first time, the quick registration process on the left is used.
[0077] In this embodiment, refer to Figure 3 , Figure 3 This is a schematic diagram of the main gateway state transition in one embodiment of the fast registration method of this application, as shown below. Figure 3 As shown, to adapt to the fast registration process, the main gateway can add a fast registration state (OLT-IDV5) on the basis of the standard GPON OLT state machine. If the error between the calculated equalized delay and the recorded equalized delay is small, the main gateway in the fast registration state (OLT-IDV5) will jump to the running state (OLT-IDV3). If the error between the calculated equalized delay and the recorded equalized delay is large, it will jump to the ranging state (OLT-IDV2).
[0078] Further, in one embodiment, calculating the first equalization delay based on the sequence number response message includes:
[0079] The first equalization delay is calculated based on the sequence number response message using Formula 1, which is:
[0080] First equalization delay = zero-distance delay - round-trip delay, round-trip delay = the time when the sequence number request message is sent - the time when the sequence number response message is received - the start time of the bandwidth allocation time slot - fixed delay.
[0081] In this embodiment, the zero-distance delay is the time difference between the time when the master gateway sends the D / S frame and the time when it is expected to start receiving the U / S frame. The sending time of the sequence number request message, the receiving time of the sequence number response message, and the start time of the bandwidth allocation time slot in the round-trip delay can be obtained through the SN message. The fixed delay can be calculated by multiplying the ONU_ID by the interval delay. Therefore, the first equalization delay can be calculated by using Formula 1.
[0082] Furthermore, in one embodiment, the rapid registration method further includes:
[0083] The silence duration is calculated using Formula 2 based on the round-trip delay of the maximum transmission distance, the response time difference of the sub-gateway, and the random delay. Formula 2 is as follows:
[0084] Silence duration = round-trip delay of maximum transmission distance + response time difference of sub-gateway + maximum interval delay, maximum interval delay = maximum ONU_ID × interval delay;
[0085] The main gateway constructs and sends a discovery window data frame using the silence period. The discovery window data frame is used to notify online sub-gateways to suspend sending uplink messages during the silence period.
[0086] In this embodiment, the main gateway sends a discovery window data frame to notify the online sub-gateways to suspend sending uplink messages during the silent period to avoid conflicts caused by sending uplink messages. The maximum interval delay = maximum ONU_ID × interval delay = 15 (assuming 16 ONUs, ONU_ID is 0, 1, 2, ..., 15) × 3us = 45us. Then the silent period = the round-trip delay corresponding to the maximum FTTR transmission distance of 200 meters (2us) + the response time difference of the sub-gateway (2us) + the maximum interval delay (45us) = 49us. Thus, by reducing the size of the SN discovery window, the registration and online time of the sub-gateway can be further shortened, the latency of the sub-gateway sending uplink messages can be reduced, and the user's service experience can be improved.
[0087] Furthermore, in one embodiment, applied to a sub-gateway, the fast registration method includes:
[0088] The sub-gateway receives a quick registration switch message and a serial number request message sent by the main gateway. The quick registration switch message includes the main gateway address and a quick registration enable identifier.
[0089] When a sub-gateway receives a sequence number request message from the main gateway, if it detects that the main gateway address in the fast registration switch message has not changed and the fast registration enable flag is enabled, it writes a fixed delay into the fast registration status field in the sequence number response message to indicate that the fast registration status of the sub-gateway is enabled.
[0090] After waiting for a fixed delay, report the sequence number response message to the main gateway.
[0091] In this embodiment, the sub-gateway receives the fast registration switch message and the serial number request message sent by the main gateway, referring to... Figure 4 , Figure 4 This is a schematic diagram of the SN message sending timing of an embodiment of the fast registration method of this application, as shown below. Figure 4 As shown, before the main gateway sends a sequence number request message to the sub-gateway, the main gateway first sends a fast registration switch message to the sub-gateway (i.e., Figure 4 The OLT_ID PLOAM message shown in the image can include the main gateway address, fast registration enable flag, and main gateway port number, etc. When the sub-gateway receives the sequence number request message sent by the main gateway (i.e., Figure 4 When the SN_Request is shown, the main gateway address can be detected by the main gateway address in the fast registration switch message to see if the main gateway address has changed. The fast registration enable flag can be used to obtain the control command of the main gateway to enable or disable the fast registration status of the sub-gateway. If the main gateway address has not changed and the fast registration enable flag is enabled, then in the sequence number response message (i.e. Figure 4The fast registration status field (bytes 11-12 of the PLOAM message) in the Serial_Number_ONU PLOAM message shown is written with a fixed delay value to indicate that the fast registration status of the sub-gateway is enabled. After waiting for a fixed delay, it reports a sequence number response message to the main gateway. In addition, if a change in the main gateway address is detected or the fast registration enable flag is disabled, an invalid flag (such as using 0 or other characters to indicate invalidity) is written to the fast registration status field (bytes 11-12 of the PLOAM message) in the sequence number response message to indicate that the fast registration status of the sub-gateway is disabled. It then reports a sequence number response message to the main gateway with a random delay. Furthermore, if no fast registration switch message is received, it is assumed that the main gateway does not support fast registration, and a sequence number response message is reported to the main gateway with a random delay. In other words, the fast registration status field in the sequence number response message reuses bytes 11-12 of the existing uplink PLOAM message, thus simplifying the function of enabling or disabling the fast registration status of the sub-gateway. When the fast registration status of the sub-gateway is off, the sub-gateway registration requires the ranging process in the standard registration procedure. After ranging, the fixed latency and other parameters are recorded and learned. The content recorded and learned by the sub-gateway may include the main gateway's OLT MAC address, the sub-gateway identifier ONU_ID, the fixed latency, and the fast registration status. The sub-gateway's record learning table is shown in Table 2.
[0092] Table 2.
[0093]
[0094] Among them, OLT MAC is used to distinguish the uplink main gateway and is obtained through the newly added fast registration switch message. ONU_ID is used to mark the unique ID of the sub-gateway in the FTTR network. Fixed delay is used to record the fixed delay of the sub-gateway. Fast registration status switch is used to mark the fast registration status of the sub-gateway itself. When the fast registration status is enabled, the SN is reported according to the fixed delay during the SN discovery phase.
[0095] In this embodiment, the format of the fast registration switch message sent by the main gateway, namely the OLT_ID PLOAM message, is described in Table 3:
[0096] Table 3.
[0097]
[0098]
[0099] In this embodiment, the introduction and description of the serial number response message, i.e., the Serial_Number_ONU PLOAM message format, are shown in Table 4:
[0100] Table 4.
[0101]
[0102]
[0103] Further, in one embodiment, before writing a fixed delay into the fast registration status field in the sequence number response message to indicate that the fast registration status of the sub-gateway is enabled, the process includes:
[0104] The sub-gateway obtains the ONU_ID assigned to it by the main gateway;
[0105] The fixed delay is calculated based on ONU_ID using Formula 3, which is:
[0106] Fixed delay = ONU_ID × interval delay, wherein the interval delay is greater than the sum of the round-trip delay for the maximum transmission distance and the uplink delay for a single frame.
[0107] In this embodiment, the main gateway assigns ONU_IDs and balanced delays to the sub-gateways. Assuming the FTTR network scenario includes 16 sub-gateways, the main gateway assigns ONU_IDs to the sub-gateways, for example, 0, 1, 2, ..., 15. Multiplying the ONU_ID by the interval delay yields the fixed delay for that sub-gateway. This means different sub-gateways have different fixed delays. Therefore, when a sub-gateway receives a sequence number request message from the main gateway, different sub-gateways wait for different fixed delays before reporting a sequence number response message to the main gateway, thus avoiding conflicts caused by different sub-gateways simultaneously sending uplink messages. The specific settings for the interval delay and fixed delay are as follows: Refer to... Figure 5 , Figure 5 This is a schematic diagram comparing SN response messages under different latency scenarios in an embodiment of the fast registration method of this application, as shown below. Figure 5 As shown, since the distance between the FTTR master and slave networks does not exceed 200 meters, the corresponding one-way transmission delay = maximum transmission distance × refractive index / speed of light = 200 (meters) * 1.47 / 300 (meters / µs) ≈ 0.98µs (microseconds). The round-trip delay at the maximum transmission distance = one-way transmission delay × 2 = 1.96µs. The time occupied by a single uplink PLOAM = 125µs × (GTC frame length corresponding to SN PLOAM / 19438) = (4 + 6 + 3 + 1 + 1 + 1 + 13) / 19438 × 125µs ≈ 0.2µs, where 125µs is the time length occupied by one GPON frame cycle, and 19438 is the total number of uplink bytes in one GPON frame cycle. Figure 6 , Figure 6 This is a schematic diagram of the GTC uplink overhead of an embodiment of the fast registration method of this application, as shown below. Figure 6As shown, 4+6+3+1+1+1+13 represents 4 bytes of preamble + 6 bytes of delimiter + 3 bytes of DBRu + 1 byte of BIP + 1 byte of ONU-ID + 1 byte of Ind + 13 bytes of PLOAM. Within a range of less than 200 meters, if multiple sub-gateways under the same optical splitter receive a downlink SN discovery window from the main gateway and, ideally, immediately report the SN, there will be a conflict period of approximately 2.16µs (2.16µs = 1.96µs + 0.2µs). Figure 5 During the time period A shown, reporting the SN may collide with other sub-gateways within a distance of 0-200m under the same optical splitter in the uplink direction, leading to frame loss. To mitigate collisions, the GPON national standard requires each sub-gateway to have a random delay of 0-48µs. However, in practice, there is still a risk that two sub-gateways may have similar random values, resulting in a collision. This application requires each sub-gateway to wait a fixed delay after receiving the SN request message before reporting the SN response message. Considering the duration of the collision and frame interval protection, the interval delay can be set to 3µs (3µs > 1.96µs + 0.2µs). Continuing to refer to... Figure 5 When the delay between sub-gateways at a distance of 0 meters and 200 meters is 3µs × (ONU_ID + 1), and the delay is also 3µs × ONU_ID, there is still a protection interval of approximately 1µs between their two uplink messages, thus avoiding uplink message conflicts. In other words, if the delay interval between the SN PLOAM messages reported by two sub-gateways with a differential distance of 200m exceeds 3µs after the main gateway issues the SN discovery window, no uplink SN message conflict will occur. During the re-registration of a batch of fiber-disconnected sub-gateways, if all sub-gateways enter fast registration mode, the possibility of uplink SN message conflicts is reduced to zero, improving the speed of batch service recovery.
[0108] Secondly, embodiments of this application also provide a rapid registration device.
[0109] In one embodiment, it is applied to the main gateway, as shown in the following example. Figure 7 , Figure 7 This is a functional module diagram of an embodiment of the fast registration device of this application, as shown below. Figure 7 As shown, the rapid registration device includes:
[0110] Detection module 10 is used by the main gateway to detect whether the sub-gateway is registering for the first time based on the response message of the sequence number reported by the sub-gateway;
[0111] The calculation module 20 is used to calculate the first equalization delay based on the sequence number response message if the sub-gateway is not registering for the first time.
[0112] The allocation module 30 is used to allocate the second equalization delay to the sub-gateway if the error between the first equalization delay and the second equalization delay corresponding to the sub-gateway is less than a preset error, so as to complete the registration. The second equalization delay is obtained by the latest ranging measurement of the sub-gateway.
[0113] Furthermore, in one embodiment, the calculation module 20 is used for:
[0114] If the sub-gateway is not registering for the first time and the fast registration status of the sub-gateway is enabled, the first equalization delay is calculated based on the sequence number response message. The fast registration status of the sub-gateway is determined by detecting the fast registration status field in the sequence number response message.
[0115] The rapid registration device also includes a ranging module, used for:
[0116] If the sub-gateway is not registering for the first time and its fast registration status is off, or if the sub-gateway is registering for the first time, then the sub-gateway is measured to obtain the second equalization delay, which is then allocated to the sub-gateway to complete the registration, and the second equalization delay is recorded.
[0117] Furthermore, in one embodiment, the calculation module 20 is also used for:
[0118] The first equalization delay is calculated based on the sequence number response message using Formula 1, which is:
[0119] First equalization delay = zero-distance delay - round-trip delay, round-trip delay = the time when the sequence number request message is sent - the time when the sequence number response message is received - the start time of the bandwidth allocation time slot - fixed delay.
[0120] Furthermore, in one embodiment, the rapid registration device further includes a silent module for:
[0121] The silence duration is calculated using Formula 2 based on the round-trip delay of the maximum transmission distance, the response time difference of the sub-gateway, and the random delay. Formula 2 is as follows:
[0122] Silence duration = round-trip delay of maximum transmission distance + response time difference of sub-gateway + maximum interval delay, maximum interval delay = maximum ONU_ID × interval delay;
[0123] The main gateway constructs and sends a discovery window data frame using the silence period. The discovery window data frame is used to notify online sub-gateways to suspend sending uplink messages during the silence period.
[0124] Furthermore, in one embodiment, applied to a sub-gateway, the fast registration device includes:
[0125] The receiving module is used for the sub-gateway to receive the quick registration switch message and the serial number request message sent by the main gateway. The quick registration switch message includes the main gateway address and the quick registration enable identifier.
[0126] The writing module is used to write a fixed delay into the fast registration status field of the sequence number response message when the sub-gateway receives a sequence number request message sent by the main gateway. If it detects that the main gateway address in the fast registration switch message has not changed and the fast registration enable flag is enabled, the sub-gateway will then write the fast registration status to the main gateway with the delay to indicate that the fast registration status of the sub-gateway is enabled.
[0127] The reporting module is used to report the sequence number response message to the main gateway after waiting for a fixed time delay.
[0128] Furthermore, in one embodiment, the rapid registration device further includes a fixed delay calculation module, used for:
[0129] The sub-gateway obtains the ONU_ID assigned to it by the main gateway;
[0130] The fixed delay is calculated based on ONU_ID using Formula 3, which is:
[0131] Fixed delay = ONU_ID × interval delay, wherein the interval delay is greater than the sum of the round-trip delay for the maximum transmission distance and the uplink delay for a single frame.
[0132] The functions of each module in the above-mentioned rapid registration device correspond to the steps in the above-mentioned rapid registration method embodiment, and their functions and implementation processes will not be described in detail here.
[0133] Thirdly, embodiments of this application provide a fast registration device, which can be a main gateway or a sub-gateway, or other devices with data processing capabilities.
[0134] Reference Figure 8 , Figure 8 This is a schematic diagram of the hardware structure of the fast registration device involved in the embodiments of this application. In the embodiments of this application, the fast registration device may include a processor, a memory, a communication interface, and a communication bus.
[0135] The communication bus can be of any type and is used to interconnect the processor, memory, and communication interface.
[0136] The communication interface includes input / output (I / O) interfaces, physical interfaces, and logical interfaces used for interconnecting devices within the fast registration device, as well as interfaces used for interconnecting the fast registration device with other devices (such as other computing devices or user equipment). Physical interfaces can be Ethernet interfaces, fiber optic interfaces, ATM interfaces, etc.; user equipment can be displays, keyboards, etc.
[0137] Memory can be various types of storage media, such as random access memory (RAM), read-only memory (ROM), non-volatile RAM (NVRAM), flash memory, optical storage, hard disk, programmable ROM (PROM), erasable PROM (EPROM), electrically erasable PROM (EEPROM), etc.
[0138] The processor can be a general-purpose processor, which can call a fast registration program stored in memory and execute the fast registration method provided in the embodiments of this application. For example, the general-purpose processor can be a central processing unit (CPU). The method executed when the fast registration program is called can be referred to in the various embodiments of the fast registration method of this application, and will not be repeated here.
[0139] Those skilled in the art will understand that Figure 8 The hardware structure shown does not constitute a limitation of this application and may include more or fewer components than shown, or combine certain components, or have different component arrangements.
[0140] Fourthly, embodiments of this application also provide a readable storage medium.
[0141] The present application has a readable storage medium storing a fast registration program, wherein when the fast registration program is executed by a processor, it implements the steps of the fast registration method as described above.
[0142] The method implemented when the fast registration procedure is executed can be referred to in the various embodiments of the fast registration method of this application, and will not be repeated here.
[0143] It should be noted that the sequence numbers of the embodiments in this application are for descriptive purposes only and do not represent the superiority or inferiority of the embodiments.
[0144] Through the above description of the embodiments, those skilled in the art can clearly understand that the methods of the above embodiments can be implemented by means of software plus necessary general-purpose hardware platforms. Of course, they can also be implemented by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, can be embodied in the form of a software product. This computer software product is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk) as described above, and includes several instructions to cause a terminal device to execute the methods described in the various embodiments of this application.
[0145] The above are merely preferred embodiments of this application and do not limit the patent scope of this application. Any equivalent structural or procedural transformations made using the content of this application's specification and drawings, or direct or indirect applications in other related technical fields, are similarly included within the patent protection scope of this application.
Claims
1. A rapid registration method, characterized in that, Applied to the main gateway, the fast registration method includes: The main gateway responds with a message based on the sequence number reported by the sub-gateway to check whether the sub-gateway is registering for the first time; If the sub-gateway is not registering for the first time, the first equalization delay is calculated based on the sequence number response message; If the error between the first equalization delay and the second equalization delay corresponding to the sub-gateway is less than a preset error, then the second equalization delay is allocated to the sub-gateway to complete the registration. The second equalization delay is obtained by the latest ranging measurement of the sub-gateway.
2. The rapid registration method as described in claim 1, characterized in that, If the sub-gateway is not registering for the first time, the first equalization delay calculated based on the sequence number response message includes: If the sub-gateway is not registering for the first time and the fast registration status of the sub-gateway is enabled, the first equalization delay is calculated based on the sequence number response message. The fast registration status of the sub-gateway is determined by detecting the fast registration status field in the sequence number response message. After the main gateway detects whether the sub-gateway is registering for the first time by responding to the sequence number reported by the sub-gateway, the process includes: If the sub-gateway is not registering for the first time and its fast registration status is off, or if the sub-gateway is registering for the first time, then the sub-gateway is measured to obtain the second equalization delay, which is then allocated to the sub-gateway to complete the registration, and the second equalization delay is recorded.
3. The rapid registration method as described in claim 1, characterized in that, The calculation of the first equalization delay based on the sequence number response message includes: The first equalization delay is calculated based on the sequence number response message using Formula 1, which is: First equalization delay = zero-distance delay - round-trip delay, round-trip delay = the time when the sequence number request message is sent - the time when the sequence number response message is received - the start time of the bandwidth allocation time slot - fixed delay.
4. The rapid registration method as described in claim 1, characterized in that, The rapid registration method also includes: The silence duration is calculated using Formula 2 based on the round-trip delay of the maximum transmission distance, the response time difference of the sub-gateway, and the random delay. Formula 2 is as follows: Silence duration = round-trip delay of maximum transmission distance + response time difference of sub-gateway + maximum interval delay, maximum interval delay = maximum ONU_ID × interval delay; The main gateway constructs and sends a discovery window data frame using the silence period. The discovery window data frame is used to notify online sub-gateways to suspend sending uplink messages during the silence period.
5. A rapid registration method, characterized in that, Applied to sub-gateways, the fast registration method includes: The sub-gateway receives a quick registration switch message and a serial number request message sent by the main gateway. The quick registration switch message includes the main gateway address and a quick registration enable identifier. When a sub-gateway receives a sequence number request message from the main gateway, if it detects that the main gateway address in the fast registration switch message has not changed and the fast registration enable flag is enabled, it writes a fixed delay into the fast registration status field in the sequence number response message to indicate that the fast registration status of the sub-gateway is enabled. After waiting for a fixed delay, report the sequence number response message to the main gateway; The sequence number response message is used by the main gateway to calculate the first equalization delay based on the sequence number response message, and when the error between the first equalization delay and the second equalization delay obtained by the latest ranging of the sub-gateway is less than a preset error, the second equalization delay is allocated to the sub-gateway to complete the registration.
6. The rapid registration method as described in claim 5, characterized in that, Before writing a fixed delay into the fast registration status field in the sequence number response message to indicate that the fast registration status of the sub-gateway is enabled, the process includes: The sub-gateway obtains the ONU_ID assigned to it by the main gateway; The fixed delay is calculated based on ONU_ID using Formula 3, which is: Fixed delay = ONU_ID × interval delay, wherein the interval delay is greater than the sum of the round-trip delay for the maximum transmission distance and the uplink delay for a single frame.
7. A rapid registration device, characterized in that, Applied to the main gateway, the fast registration device includes: The detection module is used by the main gateway to detect whether a sub-gateway is registering for the first time based on the sequence number reported by the sub-gateway in the response message. The calculation module is used to calculate the first equalization delay based on the sequence number response message if the sub-gateway is not registering for the first time. The allocation module is used to allocate the second equalization delay to the sub-gateway if the error between the first equalization delay and the second equalization delay corresponding to the sub-gateway is less than a preset error, so as to complete the registration. The second equalization delay is obtained by the latest ranging measurement of the sub-gateway.
8. A rapid registration device, characterized in that, Applied to sub-gateways, the fast registration device includes: The receiving module is used for the sub-gateway to receive the quick registration switch message and the serial number request message sent by the main gateway. The quick registration switch message includes the main gateway address and the quick registration enable identifier. The writing module is used to write a fixed delay into the fast registration status field of the sequence number response message when the sub-gateway receives a sequence number request message sent by the main gateway. If it detects that the main gateway address in the fast registration switch message has not changed and the fast registration enable flag is enabled, the sub-gateway will then write the fast registration status to the main gateway with the delay to indicate that the fast registration status of the sub-gateway is enabled. The reporting module is used to report a sequence number response message to the main gateway after waiting for a fixed delay; The sequence number response message is used by the main gateway to calculate the first equalization delay based on the sequence number response message, and when the error between the first equalization delay and the second equalization delay obtained by the latest ranging of the sub-gateway is less than a preset error, the second equalization delay is allocated to the sub-gateway to complete the registration.
9. A rapid registration device, characterized in that, The fast registration device includes a processor, a memory, and a fast registration program stored in the memory and executable by the processor, wherein when the fast registration program is executed by the processor, it implements the steps of the fast registration method as described in any one of claims 1 to 6.
10. A readable storage medium, characterized in that, The readable storage medium stores a fast registration program, wherein when the fast registration program is executed by a processor, it implements the steps of the fast registration method as described in any one of claims 1 to 6.
Citation Information
Patent Citations
Realization method and system of gigabit passive optical network registration process
CN101674501A
Registration method and registration device of optical network unit in passive optical network
CN101692672A