A gateway bandwidth adaptive method, main gateway, sub-gateway and system
The main gateway detects the PON port traffic of the sub-gateway and sends a mode flag position notification message. The sub-gateway switches the bandwidth when registering, solving the problem of insufficient uplink bandwidth in the existing technology and achieving an improvement in uplink capacity without adjusting the main gateway optical path environment.
Patent Information
- Application Number
- CN202411851586.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-16
- Publication Date
- 2025-09-19
- Estimated Expiration
- 2044-12-16
AI Technical Summary
In existing technologies, mainstream gateway bandwidth configurations cannot meet the needs of services with high uplink demands, especially the problem of insufficient uplink bandwidth in application scenarios such as high-definition live broadcast, cloud computing, and the Internet of Things.
The main gateway detects the average traffic of the sub-gateway PON port. If it exceeds the preset threshold, a mode flag bit notification message is sent. The sub-gateway switches the bandwidth during registration to achieve adaptive configuration of large upstream bandwidth and small downstream bandwidth.
Without adjusting the uplink optical path environment of the main gateway, the uplink capability of the sub-gateway is improved, meeting the business needs of high uplink bandwidth, and solving the problem that the bandwidth mode in the existing technology cannot fully meet the business needs.
Smart Images

Figure CN119697035B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of optical fiber communication technology, and in particular to a gateway bandwidth adaptation method, a main gateway, a sub-gateway, and a system. Background Art
[0002] Currently, the mainstream bandwidth configuration for master gateways in the industry is a physical layer bandwidth of 2.5G upstream and 10G downstream. Master and sub-gateways interact with each other via the GPON (Gigabit Passive Optical Network) protocol, with all sub-gateways sharing a bandwidth of 1.25G upstream and 2.5G downstream. The theoretical upstream bandwidth is smaller than the downstream bandwidth. This is consistent with the client-server interaction model designed when the GPON protocol standard was first finalized.
[0003] However, with the rise of high-uplink demand applications such as high-definition live streaming, cloud computing, big data, and the Internet of Things, there has been a large demand for uplink bandwidth to be greater than downlink bandwidth, and the existing bandwidth model can no longer fully meet business needs. Summary of the Invention
[0004] The present application provides a gateway bandwidth adaptation method, a main gateway, a sub-gateway and a system, which can solve the technical problem in the prior art that the current bandwidth mode cannot fully meet business needs.
[0005] In a first aspect, the present application provides a gateway bandwidth adaptation method applicable to a primary gateway, the method comprising:
[0006] When the average flow of a certain sub-gateway PON port is greater than a preset flow threshold value for consecutive preset times, a mode flag position notification message is sent to the sub-gateway for the sub-gateway to read and switch bandwidth when registering.
[0007] In combination with the first aspect, in one embodiment, after sending the mode flag setting notification message to the sub-gateway, the method further includes:
[0008] If it is detected that the increase in the traffic of the PON port of the sub-gateway is less than the preset increase threshold within the preset time length, a offline message is sent to the sub-gateway;
[0009] The above preset duration is greater than the total duration obtained by the consecutive preset times.
[0010] In combination with the first aspect, in one embodiment, the average flow of each sub-gateway PON port is obtained once every preset time period;
[0011] The above traffic threshold is a preset percentage of the uplink bandwidth before the sub-gateway switches the bandwidth.
[0012] In a second aspect, the present application provides a master gateway for implementing the above-mentioned gateway bandwidth adaptation method, which includes:
[0013] An acquisition module is used to obtain the average traffic of each sub-gateway PON port;
[0014] The bandwidth adaptation module is used to send a mode flag position notification message to a sub-gateway when the average flow of a sub-gateway PON port is greater than a preset flow threshold for a consecutive preset number of times, so that the sub-gateway can read and switch the bandwidth when registering.
[0015] In a third aspect, the present application provides a gateway bandwidth adaptation method applicable to a sub-gateway, the method comprising:
[0016] After receiving the mode flag setting notification message from the master gateway, the mode flag is set to the position;
[0017] When registration is started, the current mode flag is read, and when the mode flag is set, the upstream small bandwidth is switched to the upstream large bandwidth, and the downstream large bandwidth is switched to the downstream small bandwidth.
[0018] In conjunction with the third aspect, in one embodiment, when the mode flag is in a set state, the method further includes:
[0019] Switch its own SerDes operating mode and complete the adaptive configuration of the PON MAC layer initialization under the new SerDes operating mode;
[0020] Receives the small-bandwidth downlink light broadcast by the main gateway and completes the adaptive configuration of network parameters based on the information carried by the downlink light;
[0021] The uplink wavelength with large bandwidth is used as the carrier to send a packet to reply to the serial number request message of the main gateway and obtain the ONU-ID, and complete the registration interaction with the main gateway.
[0022] In conjunction with the third aspect, in one embodiment, the switching of the uplink small bandwidth to the uplink large bandwidth and the switching of the downlink large bandwidth to the downlink small bandwidth includes:
[0023] Switch the upstream 1.25G and downstream 2.5G bandwidth to the upstream 2.5G and downstream 1.25G bandwidth; or,
[0024] Switch the upstream 2.5G and downstream 10G bandwidth to the upstream 10G and downstream 2.5G bandwidth.
[0025] In conjunction with the third aspect, in one embodiment, after setting the mode flag, the method further includes:
[0026] When receiving the offline message from the main gateway, restart the registration; or,
[0027] When the scheduled restart time is reached, restart and re-register.
[0028] In a fourth aspect, the present application provides a sub-gateway for implementing the above-mentioned gateway bandwidth adaptation method, which includes:
[0029] A setting module, configured to set the mode flag to the 1st position upon receiving a mode flag setting notification message from the master gateway;
[0030] The switching module is used to read the current mode flag when starting registration, and when the mode flag is set, switch the upstream small bandwidth to the upstream large bandwidth, and switch the downstream large bandwidth to the downstream small bandwidth.
[0031] In a fifth aspect, the present application provides a gateway bandwidth adaptation system, which includes the above-mentioned main gateway and at least one of the above-mentioned sub-gateways.
[0032] The beneficial effects of the technical solution provided by this application include:
[0033] When the average traffic of a sub-gateway PON port is greater than a preset traffic threshold for a consecutive preset number of times, a mode flag position notification message is sent to the sub-gateway for the sub-gateway to read and switch the bandwidth when registering. This improves the uplink capacity of the sub-gateway without adjusting the uplink optical path environment of the main gateway, solving the technical problem in related technologies that the current bandwidth mode cannot fully meet business needs. BRIEF DESCRIPTION OF THE DRAWINGS
[0034] Figure 1 This is a flow chart of an embodiment of the gateway bandwidth adaptation method of the present application;
[0035] Figure 2 This is a schematic diagram of the architecture of an embodiment of the gateway bandwidth adaptation system of the present application;
[0036] Figure 3 for Figure 1 Schematic diagram of the process of step S20. DETAILED DESCRIPTION
[0037] In order to enable those skilled in the art to better understand the present invention, the following will clearly and completely describe the technical solutions in the embodiments of the present invention in conjunction with the accompanying drawings. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0038] In a first aspect, an embodiment of the present application provides a gateway bandwidth adaptation method applicable to a primary gateway. The gateway bandwidth adaptation method includes:
[0039] When the average flow of a certain sub-gateway PON port is greater than a preset flow threshold value for consecutive preset times, a mode flag position notification message is sent to the sub-gateway for the sub-gateway to read and switch bandwidth when registering.
[0040] In this embodiment, when the main gateway obtains the average flow of the first sub-gateway PON port greater than the preset flow threshold for a consecutive preset number of times, it indicates that the uplink bandwidth demand of the first sub-gateway is high, and a mode flag position notification message can be sent to the first sub-gateway; if the average flow of the PON ports of other sub-gateways is less than or equal to the preset flow threshold, there is no need to send notification messages to other sub-gateways.
[0041] In this embodiment, when the average flow of a certain sub-gateway PON port is greater than a preset flow threshold value for a consecutive preset number of times, a mode flag position notification message is sent to the sub-gateway, so that the sub-gateway can read and switch the bandwidth when registering. This improves the uplink capacity of the sub-gateway without adjusting the uplink optical path environment of the main gateway, and solves the technical problem in the related art that the current bandwidth mode cannot fully meet the business needs.
[0042] Understandably, the increasing bandwidth demands of high-volume uplink services require that excess CPU, cache, and queue resources, such as those reserved for downlink bandwidth, be shifted toward the uplink. If uplink bandwidth is consistently smaller than downlink bandwidth, and the need to continuously increase both uplink and downlink bandwidth to meet service demands inevitably leads to hardware bottlenecks.
[0043] Since the GPON protocol standard has a fixed rate of 8,000 frames per second for both upstream and downstream, different bandwidths essentially mean different encapsulated GTC frame lengths. Therefore, in the absence of a rate bottleneck in the physical medium, the GTC frame length can be customized through negotiation, meaning that the upstream bandwidth is larger than the downstream bandwidth, which is technically feasible. The wavelength division multiplexing technology in the fiber optic network can transmit signals of multiple wavelengths simultaneously on a single fiber, thereby ensuring that sub-gateways with different PON Modes under the main gateway can communicate freely. In addition, the bandwidth configuration between the main and sub-gateways is a private implementation of the FTTR (Fiber To The Room) manufacturer and does not involve compatibility docking with various OLT manufacturers. It only ensures that the main and sub-gateways can communicate with each other.
[0044] Furthermore, in one embodiment, after sending the mode flag setting notification message to the sub-gateway, the method further includes:
[0045] If it is detected that the increase in the traffic of the PON port of the sub-gateway is less than the preset increase threshold within the preset time period, an offline message is sent to the sub-gateway.
[0046] Optionally, the preset duration is greater than the total duration obtained for a preset number of consecutive times.
[0047] Optionally, the preset duration is 30 minutes, and the total duration obtained by the consecutive preset times is 15 minutes.
[0048] In this embodiment, for a sub-gateway that needs to switch PON Mode, if the main gateway detects that the increase in its PON port traffic within 30 minutes is less than the preset increase threshold, it is considered that the sub-gateway is not currently running any business, and the main gateway can send a Deactive message to allow the sub-gateway to restart registration.
[0049] Furthermore, in one embodiment, the main gateway obtains the average traffic of each sub-gateway PON port once every preset time period; and the traffic threshold is a preset percentage of the uplink bandwidth before the sub-gateway switches the bandwidth.
[0050] Optionally, the preset time period is 5 minutes, and each time the average flow rate is obtained, it can be compared with the flow rate threshold. Optionally, the flow rate threshold is 70% of the uplink minimum bandwidth.
[0051] In this embodiment, the main gateway polls and detects the traffic statistics of the PON port of the sub-gateway. If the average traffic of the PON port of the sub-gateway obtained by the main gateway for three consecutive times is greater than the above-mentioned traffic threshold, it is determined that the sub-gateway has a high uplink service demand and needs to switch to PON Mode. The sub-gateway is notified through a private OMCI (ONU Management and Control Interface) message to set its mode flag PON Mode Flag to set, so that the sub-gateway can obtain it when it registers next time to automatically complete the uplink and downlink bandwidth switching.
[0052] In a second aspect, an embodiment of the present application provides a master gateway for implementing the above-mentioned gateway bandwidth adaptation method, and the master gateway includes an acquisition module and a bandwidth adaptation module.
[0053] The acquisition module is used to obtain the average flow of each sub-gateway PON port.
[0054] The bandwidth adaptation module is used to send a mode flag position notification message to a sub-gateway when the average flow of a sub-gateway PON port is greater than a preset flow threshold for a consecutive preset number of times, so that the sub-gateway can read and switch the bandwidth when registering.
[0055] Furthermore, in one embodiment, the bandwidth adaptation module is further configured to:
[0056] If it is detected that the increase in the traffic of the PON port of the sub-gateway is less than the preset increase threshold within the preset time length, a offline message is sent to the sub-gateway;
[0057] Optionally, the preset duration is greater than the total duration obtained for a preset number of consecutive times.
[0058] Furthermore, in one embodiment, the acquisition module is used to:
[0059] Get the average traffic of each sub-gateway PON port once every preset time period;
[0060] The above traffic threshold is a preset percentage of the uplink bandwidth before the sub-gateway switches the bandwidth.
[0061] Among them, the functional implementation of each module of the above-mentioned main gateway corresponds to each step in the embodiment of the above-mentioned gateway bandwidth adaptation method, and its functions and implementation processes are not repeated here one by one.
[0062] In a third aspect, an embodiment of the present application further provides a gateway bandwidth adaptation method applicable to a sub-gateway.
[0063] like Figure 1 As shown, the gateway bandwidth adaptation method includes the following steps:
[0064] S10 after receiving the mode flag position notification message from the main gateway, the mode flag position;
[0065] S20. When registration is started, the current mode flag is read, and when the mode flag is set, the upstream small bandwidth is switched to the upstream large bandwidth, and the downstream large bandwidth is switched to the downstream small bandwidth.
[0066] In this embodiment, by automatically completing the switching from the upstream small bandwidth to the upstream large bandwidth and the downstream large bandwidth to the downstream small bandwidth according to the mode flag when starting registration, the upstream capability of the sub-gateway is improved without adjusting the upstream optical path environment of the main gateway.
[0067] Furthermore, in one embodiment, when the mode flag is in a set state, the method further includes:
[0068] First, the SerDes (Serializer-Deserializer) operating mode is switched, and the adaptive configuration of the PON MAC (Medium Access Control) layer initialization in the new SerDes operating mode is completed.
[0069] Then, it receives the downlink light with small bandwidth broadcasted by the main gateway and completes the adaptive configuration of network parameters based on the information carried by the downlink light.
[0070] Finally, the uplink wavelength with large bandwidth is used as the carrier to send a reply to the serial number request message of the main gateway and obtain the ONU (Optical Network Unit)-ID, and complete the registration interaction with the main gateway.
[0071] In this embodiment, when the sub-gateway starts registration, if the mode flag PON Mode Flag changes, the sub-gateway switches its own SerDes working mode, and after completing the PON MAC layer adaptive detection, receives the downstream light of another wavelength broadcast by the main gateway to complete the network parameter adaptive configuration; and after the main gateway sends a serial number request Serial-NumberRequest message, the sub-gateway reports the serial number SN with the new upstream wavelength and completes the registration interaction with the main gateway.
[0072] Furthermore, in one embodiment, in the above step S20, switching the uplink small bandwidth to the uplink large bandwidth and switching the downlink large bandwidth to the downlink small bandwidth includes:
[0073] Switch the upstream 1.25G and downstream 2.5G bandwidth to the upstream 2.5G and downstream 1.25G bandwidth; or,
[0074] Switch the upstream 2.5G and downstream 10G bandwidth to the upstream 10G and downstream 2.5G bandwidth.
[0075] In this embodiment, the above-mentioned switching of the uplink small bandwidth to the uplink large bandwidth and the switching of the downlink large bandwidth to the downlink small bandwidth is specifically as follows:
[0076] The bandwidth is switched from 1.25 GHz upstream and 2.5 GHz downstream to 2.5 GHz upstream and 1.25 GHz downstream.
[0077] In this embodiment, the newly added PON Mode upstream 2.5G / downstream 1.25G interactive wavelength can be designed by the FTTR manufacturer and maintained as an industry standard as much as possible.
[0078] Optionally, the standard GPON (upstream 1.25G / downstream 2.5G) upstream wavelength is 1310nm, and the downstream wavelength is 1490nm; the newly added bandwidth (upstream 2.5G / downstream 1.25G) upstream wavelength can be 1270nm, and the downstream wavelength can be 1577nm, borrowing the wavelength standard of the passive optical network xGPON. In other embodiments, other wavelengths can also be set.
[0079] Correspondingly, if the bandwidth configuration of the main gateway develops into 10G upstream / 50G downstream in the later stage, the bandwidth adaptation between the master and slave can also be two bandwidth options: 2.5G upstream / 10G downstream and 10G upstream / 2.5G downstream.
[0080] In this embodiment, uplink 2.5G / downlink 1.25G means: an uplink rate of 2.5Gbps and a downlink rate of 1.25Gbps, uplink 1.25G / downlink 2.5G means: an uplink rate of 1.25Gbps and a downlink rate of 2.5Gbps; and so on, uplink 2.5G / downlink 10G means: an uplink rate of 2.5Gbps and a downlink rate of 10Gbps; uplink 10G / downlink 2.5G means: an uplink rate of 10Gbps and a downlink rate of 2.5Gbps.
[0081] Furthermore, in one embodiment, after setting the mode flag in step S10, the following steps are further included:
[0082] When receiving the offline message sent by the main gateway, restart the registration; or when the scheduled restart time is reached, restart and restart the registration.
[0083] In this embodiment, when the sub-gateway receives the offline message of the main gateway, it can restart the registration; in other embodiments, the sub-gateway can also be set to automatically restart at a scheduled time to achieve the effect of active re-registration of the sub-gateway.
[0084] Optionally, after the sub-gateway automatically completes the uplink and downlink bandwidth switching according to the read mode flag, if it is detected multiple times that the sub-gateway PON port traffic is small, it may be considered to switch back to the uplink small bandwidth and downlink large bandwidth mode.
[0085] In a fourth aspect, an embodiment of the present application further provides a sub-gateway for implementing the above-mentioned gateway bandwidth adaptation method, wherein the sub-gateway includes a setting module and a switching module.
[0086] The setting module is used to set the mode flag after receiving the mode flag setting notification message from the master gateway.
[0087] The switching module is used to read the current mode flag when starting registration, and when the mode flag is set, switches the uplink small bandwidth to the uplink large bandwidth, and switches the downlink large bandwidth to the downlink small bandwidth.
[0088] Furthermore, in one embodiment, the switching module is further configured to:
[0089] When the mode flag is in the set state, switch its own SerDes working mode and complete the adaptive configuration of the PON MAC layer initialization in the new SerDes working mode;
[0090] Receives the small-bandwidth downlink light broadcast by the main gateway and completes the adaptive configuration of network parameters based on the information carried by the downlink light;
[0091] The uplink wavelength with large bandwidth is used as the carrier to send a packet to reply to the serial number request message of the main gateway and obtain the ONU-ID, and complete the registration interaction with the main gateway.
[0092] Furthermore, in one embodiment, the switching module is used to:
[0093] Switch the upstream 1.25G and downstream 2.5G bandwidth to the upstream 2.5G and downstream 1.25G bandwidth; or,
[0094] Switch the upstream 2.5G and downstream 10G bandwidth to the upstream 10G and downstream 2.5G bandwidth.
[0095] Furthermore, in one embodiment, the setting module is further configured to:
[0096] After the mode flag is set, when the offline message sent by the main gateway is received, the registration is restarted; or when the scheduled restart time is reached, the system restarts and restarts the registration.
[0097] The functional implementation of each module of the above-mentioned sub-gateway corresponds to each step in the above-mentioned embodiment of the gateway bandwidth adaptation method, and its functions and implementation processes are not repeated here one by one.
[0098] In a fifth aspect, the embodiment of the present application also provides a gateway bandwidth adaptive system, such as Figure 2 As shown, the gateway bandwidth adaptive system includes the above-mentioned main gateway and at least one of the above-mentioned sub-gateways.
[0099] Optionally, the master gateway mini OLT adopts the industry's mature OLT (Optical Line Terminal) hardware solution, integrating two PON MACs and two downstream wavelengths into one downlink PON port. The downlink PON port of the master gateway connects to the sub-gateway via optical fiber, assuming the functions of the OLT for the sub-gateway.
[0100] Optionally, the sub-gateway adopts the dual-mode Bosa (Bi-Directional Optical Sub-Assembly) commonly used in ONUs in the industry, and controls the routing of the two upstream wavelengths by configuring the hardware burst switch to high or low level respectively.
[0101] In this embodiment, the above hardware solution is a mature device and therefore has a low cost.
[0102] Taking the default interaction of the master and slave gateways using the theoretical bandwidth of 1.25G upstream and 2.5G downstream as an example, the gateway bandwidth adaptation method of this embodiment specifically includes:
[0103] (1) The master gateway calculates the average traffic flow of each sub-gateway's PON port every 5 minutes and compares it with the traffic threshold of 0.875G. If the average traffic flow of a sub-gateway's PON port exceeds 0.875G for three consecutive times, it is determined that the sub-gateway has a high uplink service demand. At this time, the master gateway can notify the sub-gateway to set its mode flag, PON Mode Flag, through a private OMCI message and record the relevant information in the master sub-gateway's memory Flash.
[0104] (2) When the sub-gateway starts registration, it reads the PON Mode Flag. If the PON Mode Flag changes, that is, it is in the set state, it actively configures the level of the hardware burst switch to trigger the switching of its own SerDes working mode and completes the adaptive configuration of the PON MAC layer initialization under the new SerDes (O1);
[0105] After the sub-gateway SerDes switch is completed, it can receive the theoretical bandwidth of 1.25G downstream light broadcast by the main gateway. According to the information carried by the downstream optical path, the network parameters (delimiter, power mode, preset equalization delay, etc.) are adaptively configured (O2). That is, the sub-gateway's downlink frame synchronization is successful;
[0106] After the sub-gateway completes the network parameter configuration, it sends a reply to the main gateway's Serial-Number Request message using the 2.5G upstream wavelength as the carrier and obtains the ONU-ID, completing the subsequent registration interaction with the main gateway (O3--O5).
[0107] The above O1--O5 is the GPON registration state machine.
[0108] In addition, based on the actual uplink and downlink traffic requirements of the sub-gateway's services, bandwidth switching back from uplink 2.5G / downlink 1.25G to uplink 1.25G / downlink 2.5G can also be completed.
[0109] Further, if Figure 3 As shown, the value of the PON Mode Flag in the reset state is the default value, and the above step S20 specifically includes:
[0110] S21. When the sub-gateway starts registration, it reads the current PON Mode Flag and determines whether the read PON Mode Flag is the default value. If so, it goes to S22; otherwise, it goes to S23.
[0111] S22. The sub-gateway negotiates registration for 1.25G uplink and 2.5G downlink.
[0112] S23 sub-gateway switches its own SerDes working mode and completes PON MAC layer adaptation;
[0113] S24. Sub-gateway downlink frame synchronization is successful;
[0114] S25. The sub-gateway reports the SN at a 2.5G uplink wavelength.
[0115] S26. The sub-gateway negotiates registration for 2.5G uplink and 1.25G downlink.
[0116] The method of this embodiment is applicable to the adaptive adjustment of the uplink and downlink bandwidths of the master and sub-gateways of FTTR, and proposes a technically feasible bandwidth mode in which the uplink bandwidth is larger than the downlink bandwidth. Based on the traffic statistics of the sub-gateway PON port, the method adaptively adjusts the uplink and downlink bandwidths of 1.25G / 2.5G and 2.5G / 1.25G between the master and sub-gateways, which is compatible with more upload and download service scenarios. Not only can the uplink capacity of the sub-gateway be improved without adjusting the uplink optical path environment of the main gateway, but it can also be compatible with multiple sub-gateways under the main gateway using different bandwidth modes, sharing the uplink and downlink bandwidth of the main gateway.
[0117] It should be noted that the serial numbers of the above-mentioned embodiments of the present application are for description only and do not represent the advantages or disadvantages of the embodiments.
[0118] The terms "including" and "having" and any variations thereof in the specification and claims of this application and the above-mentioned drawings are intended to cover non-exclusive inclusions. For example, a process, method, system, product or device that includes a series of steps or units is not limited to the listed steps or units, but optionally includes steps or units that are not listed, or optionally includes other steps or units inherent to these processes, methods, products or devices. The terms "first", "second" and "third" are used to distinguish different objects, etc., and do not represent a sequence, nor do they limit the "first", "second" and "third" to different types.
[0119] In the description of the embodiments of the present application, the words "exemplary", "for example" or "for example" are used to indicate examples, illustrations or descriptions. Any embodiment or design described in the embodiments of the present application as "exemplary", "for example" or "for example" should not be interpreted as being more preferred or advantageous than other embodiments or designs. Specifically, the use of words such as "exemplary", "for example" or "for example" is intended to present related concepts in a concrete way. In the description of the embodiments of the present application, "plurality" refers to two or more than two.
[0120] In some processes described in the embodiments of the present application, multiple operations or steps are included that appear in a specific order. However, it should be understood that these operations or steps may not be performed in the order in which they appear in the embodiments of the present application or may be performed in parallel. The sequence numbers of the operations are only used to distinguish between different operations, and the sequence numbers themselves do not represent any order of execution. In addition, these processes may include more or fewer operations, and these operations or steps may be performed in sequence or in parallel, and these operations or steps may be combined.
[0121] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus the necessary general hardware platform, of course, it 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 the present application, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk) as described above, and includes a number of instructions for enabling a terminal device to execute the methods described in each embodiment of the present application.
[0122] The above are only preferred embodiments of the present application and do not limit the patent scope of the present application. Any equivalent structure or equivalent process transformation made using the contents of the present application specification and drawings, or directly or indirectly applied in other related technical fields, are also included in the patent protection scope of the present application.
Claims
1. A gateway bandwidth adaptation method, characterized in that: Applicable to the primary gateway, the method includes: When the average traffic of a sub-gateway PON port is greater than the preset traffic threshold for a consecutive preset number of times, a mode flag position notification message is sent to the sub-gateway so that the sub-gateway can read and switch the bandwidth when registering, switching the upstream small bandwidth to the upstream large bandwidth, and switching the downstream large bandwidth to the downstream small bandwidth.
2. The gateway bandwidth adaptation method according to claim 1, wherein: After sending the mode flag bit notification message to the sub-gateway, the method further includes: If it is detected that the increase in the traffic of the PON port of the sub-gateway is less than the preset increase threshold within the preset time period, a logoff message is sent to the sub-gateway; The preset duration is greater than the total duration obtained for a preset number of consecutive times.
3. The gateway bandwidth adaptation method according to claim 1, wherein: Get the average traffic of each sub-gateway PON port once every preset time period; The traffic threshold is a preset percentage of the uplink bandwidth before the sub-gateway switches the bandwidth.
4. A master gateway for implementing the gateway bandwidth adaptation method according to any one of claims 1 to 3, characterized in that: It includes: An acquisition module is used to obtain the average traffic of each sub-gateway PON port; The bandwidth adaptation module is used to send a mode flag position notification message to a sub-gateway when the average flow of a sub-gateway PON port is greater than a preset flow threshold for a consecutive preset number of times, so that the sub-gateway can read and switch the bandwidth when registering.
5. A gateway bandwidth adaptation method, characterized in that: Applicable to a sub-gateway, the method includes: After receiving the mode flag position notification message from the master gateway, the mode flag is set; the mode flag position notification message is: when the master gateway obtains the average flow of the sub-gateway PON port greater than the preset flow threshold for a consecutive preset number of times, the notification message is sent to the sub-gateway; When registration is started, the current mode flag is read, and when the mode flag is set, the upstream small bandwidth is switched to the upstream large bandwidth, and the downstream large bandwidth is switched to the downstream small bandwidth.
6. The gateway bandwidth adaptation method according to claim 5, wherein: When the mode flag is set, it also includes: Switch its own SerDes operating mode and complete the adaptive configuration of the PON MAC layer initialization under the new SerDes operating mode; Receive the downlink light with a small bandwidth broadcast by the main gateway, and complete the adaptive configuration of network parameters based on the information carried by the downlink light; The uplink wavelength with large bandwidth is used as the carrier to send a packet to reply to the serial number request message of the main gateway and obtain the ONU-ID, and complete the registration interaction with the main gateway.
7. The gateway bandwidth adaptation method according to claim 5, wherein: The step of switching the upstream small bandwidth to the upstream large bandwidth and switching the downstream large bandwidth to the downstream small bandwidth includes: Switch the upstream 1.25G and downstream 2.5G bandwidth to the upstream 2.5G and downstream 1.25G bandwidth; or, Switch the upstream 2.5G and downstream 10G bandwidth to the upstream 10G and downstream 2.5G bandwidth.
8. The gateway bandwidth adaptation method according to claim 5, wherein: After setting the mode flag, it also includes: When receiving the offline message from the main gateway, restart the registration; or, When the scheduled restart time is reached, restart and re-register.
9. A sub-gateway for implementing the gateway bandwidth adaptation method according to any one of claims 5 to 8, characterized in that: It includes: A setting module, configured to set the mode flag to the 1st position upon receiving a mode flag setting notification message from the master gateway; The switching module is used to read the current mode flag when starting registration, and when the mode flag is set, switch the upstream small bandwidth to the upstream large bandwidth, and switch the downstream large bandwidth to the downstream small bandwidth.
10. A gateway bandwidth adaptive system, characterized in that: It includes the main gateway according to claim 4 and at least one sub-gateway according to claim 9.
Citation Information
Patent Citations
Dynamic bandwidth allocation device and method of passive optical network
CN101087238A
Bandwidth scheduling method, ONU registration method and device, and OLT
CN106878836A