Communication method and system of gateway equipment, storage medium and electronic device
By determining the target working mode based on the uplink rate of the master gateway device and the slave gateway device, the compatibility issues of symmetric 2.5G FTTR and asymmetric 2.5G FTTR are solved, and the adaptive compatibility and flexibility of the communication system are achieved.
Patent Information
- Application Number
- CN202310867400.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-07-14
- Publication Date
- 2025-01-14
AI Technical Summary
The prior art has failed to effectively realize adaptive compatibility between symmetric 2.5G FTTR and existing asymmetric 2.5G FTTR.
Ensure compatibility between the slave gateway device and the master gateway device by determining the target operating mode of the slave gateway device based on the uplink rate supported by the master gateway device and the slave gateway device, and communicating through specific message fields and channel identifier mechanisms.
The adaptive compatibility of symmetric 2.5G FTTR and existing asymmetric 2.5G FTTR is achieved, improving the flexibility and adaptability of the communication system.
Smart Images

Figure CN119316490A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of communications, and in particular, to a communication method, system, storage medium and electronic device for a gateway device. Background Art
[0002] FTTR stands for Fiber to the room, and mainly adopts P2MP (point to multiplepoint) network architecture, such as Figure 1 As shown, the MFU (main FTTR unit, FTTR main gateway or master gateway) is connected to multiple SFUs (sub FTTR units, FTTR slave gateways or slave gateways) through the IFDN (Indoor Fibre Distribution Network).
[0003] China's three major operators are deploying FTTR on a large scale. As the standards have not yet been formally completed, Figure 2 In the PON (Passive Optical Network) network architecture shown in the figure, OLT (Optical Line Terminal) connects multiple ONUs (Optical Network Units) through ODN (Optical Distribution Network). The P2MP architecture of FTTR is similar to PON. Therefore, the currently deployed FTTR is mainly based on the industry's mature GPON (Gigabit Passive Optical Network) standard, using a downstream rate of 2.5G and an upstream rate of 1.25G.
[0004] Standards organizations such as CCSA (China Communications Standards Association) and ITU (International Telecommunications Union) are standardizing FTTR. Considering the needs of home interconnection, the symmetrical 2.5G rate is mainly used, and will be upgraded to a symmetrical 10G rate in the future. For the symmetrical 2.5G rate, it needs to be compatible with the existing deployed FTTR.
[0005] With regard to related technologies, there is no effective solution for how to achieve adaptive compatibility between symmetric 2.5G FTTR and existing asymmetric 2.5G FTTR.
[0006] Therefore, it is necessary to improve the related technology to overcome the above-mentioned defects in the related technology. Summary of the invention
[0007] The embodiments of the present application provide a communication method, system, storage medium and electronic device of a gateway device to at least solve the problem of how to achieve adaptive compatibility between symmetric 2.5G FTTR and existing asymmetric 2.5G FTTR.
[0008] According to one aspect of an embodiment of the present application, a communication method for a gateway device is provided, comprising: determining a target operating mode of the slave gateway device based on an uplink rate supported by a master gateway device and an uplink rate supported by a slave gateway device; and the slave gateway device communicates with the master gateway device according to the target operating mode.
[0009] In an exemplary embodiment, before determining the target operating mode of the slave gateway device based on the uplink rate supported by the master gateway device and the uplink rate supported by the slave gateway device, the method also includes: determining a message field from a gateway message sent by the master gateway device; and determining the target uplink rate indicated by the channel identifier carried by the message field as the uplink rate supported by the master gateway device.
[0010] In an exemplary embodiment, the gateway message sending method includes at least one of the following: the master gateway device periodically sends the gateway message, wherein the periodically sent gateway message has the same or different channel identifiers; the master gateway device alternately sends the gateway message, wherein the alternately sent gateway messages have different channel identifiers.
[0011] In an exemplary embodiment, before determining the target uplink rate indicated by the channel identifier carried by the message field as the uplink rate supported by the master gateway device, the method also includes: when it is determined that the master gateway device operates in the first operating mode, determining the first uplink rate corresponding to the first operating mode as the target uplink rate, and setting the channel identifier carried by the message field to the first identifier used to represent the uplink rate of the first operating mode; when it is determined that the master gateway device operates in the second operating mode, determining the second uplink rate corresponding to the second operating mode as the target uplink rate, and setting the channel identifier carried by the message field to the second identifier used to represent the uplink rate of the second operating mode; when it is determined that the master gateway device operates in the first operating mode and the second operating mode, determining the first uplink rate corresponding to the first operating mode and the second uplink rate corresponding to the second operating mode as the target uplink rate, and setting the channel identifier carried by the message field to the third identifier used to represent the uplink rates of the first operating mode and the second operating mode; wherein the second uplink rate is greater than the first uplink rate.
[0012] In an exemplary embodiment, the target operating mode of the slave gateway device is determined based on the uplink rate supported by the master gateway device and the uplink rate supported by the slave gateway device, including: acquiring all operating modes supported by the slave gateway device; wherein each of all operating modes corresponds to an uplink rate; and determining a target operating mode that supports the target uplink rate from among all operating modes.
[0013] In an exemplary embodiment, determining a target operating mode that supports the target uplink rate from all the operating modes includes: for a first type of slave gateway device, upon receiving at least two message fields sent alternately by a first type of master gateway device according to a preset period, determining all channel identifiers carried by the at least two message fields; wherein the first type of master gateway device supports a first operating mode and a second operating mode, the first type of slave gateway device supports the second operating mode, and all the channel identifiers include a first identifier for supporting a first uplink rate and a second identifier for supporting a second uplink rate; the first uplink rate is an uplink rate corresponding to the first type of master gateway device operating in the first operating mode, and the second uplink rate is an uplink rate corresponding to the first type of master gateway device operating in the second operating mode; and the second operating mode supporting the second uplink rate is determined as the target operating mode.
[0014] In an exemplary embodiment, determining a target operating mode supporting the target uplink rate from all the operating modes includes: for a second-type slave gateway device, upon receiving at least two message fields sent alternately by a first-type master gateway device according to a preset period, determining all channel identifiers carried by the at least two message fields; wherein the first-type master gateway device supports a first operating mode and a second operating mode, and the second-type slave gateway device only supports the first operating mode, and all the channel identifiers include a first identifier for supporting a first uplink rate and a second identifier for supporting a second uplink rate; the first uplink rate is an uplink rate corresponding to the first-type master gateway device operating in the first operating mode, and the second uplink rate is an uplink rate corresponding to the first-type master gateway device operating in the second operating mode; and the first operating mode supporting the first uplink rate is determined as the target operating mode.
[0015] In an exemplary embodiment, determining a target operating mode supporting the target uplink rate from all the operating modes includes: for a third-category slave gateway device, upon receiving at least two message fields sent alternately by a first-category master gateway device according to a preset period, determining all channel identifiers carried by the at least two message fields; wherein the first-category master gateway device supports a first operating mode and a second operating mode, the third-category slave gateway device supports the first operating mode and the second operating mode, and the all channel identifiers include a first identifier for supporting a first uplink rate and a second identifier for supporting a second uplink rate; the first uplink rate is an uplink rate corresponding to the first-category master gateway device operating in the first operating mode, and the second uplink rate is an uplink rate corresponding to the first-category master gateway device operating in the second operating mode; for a slave gateway device supporting the first operating mode among the third-category slave gateway devices, determining a first operating mode supporting the first uplink rate as the target operating mode; and for a slave gateway device supporting the second operating mode among the third-category slave gateway devices, determining a second operating mode supporting the second uplink rate as the target operating mode.
[0016] In an exemplary embodiment, determining a target operating mode that supports the target uplink rate from all the operating modes includes: for a second-type slave gateway device, upon receiving a message field sent by a second-type master gateway device according to a preset period, determining a channel identifier carried by the message field sent according to the preset period; wherein the second-type master gateway device supports a first operating mode, the second-type slave gateway device supports the first operating mode, and the channel identifier includes a first identifier for supporting a first uplink rate; the first uplink rate is an uplink rate corresponding to the second-type master gateway device operating in the first operating mode; and the first operating mode that supports the first uplink rate is determined as the target operating mode.
[0017] In an exemplary embodiment, determining a target operating mode that supports the target uplink rate from all the operating modes includes: for a first-type slave gateway device, upon receiving a message field sent by a second-type master gateway device according to a preset period, determining a channel identifier carried by the message field sent according to the preset period; wherein the second-type master gateway device supports the first operating mode, and the first-type slave gateway device supports the second operating mode; if the channel identifiers received within a preset time period are all first identifiers for supporting a first uplink rate, then the first operating mode that supports the first uplink rate is determined as the target operating mode; if the channel identifiers received continuously within a preset number of times are all first identifiers for supporting the first uplink rate, then the first operating mode that supports the first uplink rate is determined as the target operating mode; wherein the first uplink rate is the uplink rate corresponding to the second-type master gateway device operating in the first operating mode.
[0018] In an exemplary embodiment, determining a target operating mode supporting the target uplink rate from all the operating modes includes: for a first-class slave gateway device, upon receiving at least two message fields sent alternately by a first-class master gateway device according to a preset period, determining all channel identifiers carried by the at least two message fields; wherein the first-class master gateway device supports a first operating mode and a second operating mode, the first-class slave gateway device supports the second operating mode, and the all channel identifiers include a first identifier for supporting a first uplink rate and a second identifier for supporting a second uplink rate; the first uplink rate is an uplink rate corresponding to the first-class master gateway device operating in the first operating mode, and the second uplink rate is an uplink rate corresponding to the first-class master gateway device operating in the second operating mode; determining the first operating mode supporting the first uplink rate as the target operating mode; obtaining configuration information sent by the first-class slave gateway device when activated, and sending the configuration information to the first-class master gateway device, so that the first-class master gateway device configures the first-class slave gateway device to support the second operating mode; and determining the second operating mode supporting the second uplink rate as the target operating mode.
[0019] In an exemplary embodiment, determining a target working mode supporting the target uplink rate from all the working modes includes: for a first-class slave gateway device, upon receiving at least two message fields sent alternately by a first-class master gateway device according to a preset period, determining all channel identifiers carried by the at least two message fields; wherein the first-class master gateway device supports a first working mode and a second working mode, the first-class slave gateway device supports the second working mode, and the all channel identifiers include a first identifier for supporting a first uplink rate and a second identifier for supporting a second uplink rate; the first uplink rate is an uplink rate corresponding to the first-class master gateway device working in the first working mode, and the second uplink rate is an uplink rate corresponding to the first-class master gateway device working in the second working mode; determining the first working mode supporting the first uplink rate as the target working mode; in the case of determining that the first-class slave gateway device receives another second identifier after activation is completed, restarting and activating the first-class slave gateway device; if it is determined that the first-class slave gateway device receives the second identifier when restarting and activating, determining the second working mode supporting the second uplink rate as the target working mode.
[0020] In an exemplary embodiment, determining a target operating mode supporting the target uplink rate from all the operating modes includes: for a third-category slave gateway device, upon receiving a message field sent by a second-category master gateway device according to a preset period, determining a channel identifier carried by the message field sent according to the preset period; wherein the second-category master gateway device supports a first operating mode, and the third-category slave gateway device supports the first operating mode and a second operating mode, and the channel identifier includes a first identifier for supporting a first uplink rate and a second identifier for supporting a second uplink rate, and the first uplink rate is an uplink rate corresponding to the second-category master gateway device operating in the first operating mode. , the second uplink rate is the uplink rate corresponding to the second type of master gateway device operating in the second working mode; for the slave gateway device supporting the first working mode in the third type of slave gateway devices, if it is determined that the slave gateway device supporting the first working mode has received the first identifier, the first working mode supporting the first uplink rate is determined as the target working mode; for the slave gateway device supporting the second working mode in the third type of slave gateway devices, if it is determined that the slave gateway device supporting the second working mode has received the first identifier and has not received the second identifier, the first working mode supporting the first uplink rate is determined as the target working mode.
[0021] In an exemplary embodiment, the manner in which the message field carries the channel identifier includes at least one of the following: carrying the channel identifier through a sequence number request field; carrying the channel identifier through a PLOAM field.
[0022] In an exemplary embodiment, the method further includes: in the case where the channel identifier is carried by the PLOAM field, determining the extended burst length information from the PLOAM field; determining the target uplink rate indicated by the channel identifier carried by the message field, and determining the target operating mode of the slave gateway device that supports the target uplink rate, wherein the determining the target uplink rate indicated by the channel identifier carried by the message field and determining the target operating mode of the slave gateway device that supports the target uplink rate include: determining the target uplink rate indicated by the extended burst length information and determining the target operating mode of the slave gateway device that supports the target uplink rate.
[0023] In an exemplary embodiment, the slave gateway device communicates with the master gateway device according to the target working mode, including: determining the uplink rate of the working mode of the slave gateway device when it is powered on; when it is determined that the master gateway device supports the uplink rate of the working mode of the slave gateway device when it is powered on, the slave gateway device communicates with the master gateway device according to the target working mode; when it is determined that the master gateway device does not support the uplink rate of the working mode of the slave gateway device when it is powered on, obtaining external configuration information; and switching the uplink rate of the working mode of the slave gateway device when it is powered on based on the external configuration information until the master gateway device supports the uplink rate of the working mode of the slave gateway device when it is powered on.
[0024] In an exemplary embodiment, after the slave gateway device communicates with the master gateway device according to the target working mode, the method further includes: responding to a startup instruction for starting the slave gateway device, obtaining an activation process preset for the slave gateway device; and activating the slave gateway device according to the activation process.
[0025] According to another aspect of an embodiment of the present application, a communication system of a gateway device is also provided, including: a master gateway device and a slave gateway device, wherein the slave gateway device is used to communicate with the master gateway device according to a target working mode, wherein the target working mode is determined based on an uplink rate supported by the master gateway device and an uplink rate supported by the slave gateway device.
[0026] According to another aspect of the embodiments of the present application, a computer-readable storage medium is provided, in which a computer program is stored, wherein the computer program is configured to execute the communication method of the above-mentioned gateway device when running.
[0027] According to another aspect of an embodiment of the present application, an electronic device is also provided, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the communication method of the gateway device through the computer program.
[0028] Through the present application, the target operating mode of the slave gateway device is determined according to the uplink rate supported by the master gateway device and the uplink rate supported by the slave gateway device; the slave gateway device communicates with the master gateway device according to the target operating mode, thereby solving the technical problem of how to achieve adaptive compatibility between symmetric 2.5G FTTR and existing asymmetric 2.5G FTTR. BRIEF DESCRIPTION OF THE DRAWINGS
[0029] The drawings described herein are used to provide a further understanding of the present application and constitute a part of the present application. The exemplary embodiments of the present application and their descriptions are used to explain the present application and do not constitute an improper limitation on the present application. In the drawings:
[0030] Figure 1 It is a schematic diagram of the networking architecture of a gateway device in the related technology;
[0031] Figure 2 It is a schematic diagram of a GPON networking architecture in the related technology;
[0032] Figure 3 It is a hardware structure block diagram of a computer terminal of a communication method of a gateway device in an embodiment of the present application;
[0033] Figure 4 is a flow chart of a communication method of a gateway device according to an embodiment of the present application;
[0034] Figure 5 is a schematic diagram of an Upstream BWmap according to an embodiment of the present application;
[0035] Figure 6 is a schematic diagram of an activation process according to an embodiment of the present application;
[0036] Figure 7 It is a structural block diagram of a communication system of a gateway device according to an embodiment of the present application. DETAILED DESCRIPTION
[0037] In order to enable those skilled in the art to better understand the solution of the present application, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present application.
[0038] It should be noted that the terms "first", "second", etc. in the specification and claims of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments of the present application described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device comprising a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0039] The method embodiments provided in the embodiments of the present application can be executed in a computer terminal or a similar computing device. Taking running on a computer terminal as an example, Figure 3 1 is a hardware structure block diagram of a computer terminal of a communication method of a gateway device in an embodiment of the present application. Figure 3 As shown, the computer terminal may include one or more ( Figure 3 Only one is shown in the figure) processor 302 (processor 302 may include but is not limited to a microprocessor (Microprocessor Unit, referred to as MPU) or a programmable logic device (Programmable logic device, referred to as PLD)) and a memory 304 for storing data. In an exemplary embodiment, the computer terminal may also include a transmission device 306 and an input and output device 308 for communication functions. It can be understood by those skilled in the art that Figure 3 The structure shown is only for illustration and does not limit the structure of the above-mentioned computer terminal. Figure 3 More or fewer components as shown, or with Figure 3 Equivalent functions or comparisons shown Figure 3 A different configuration with more features is shown.
[0040] The memory 304 can be used to store computer programs, for example, software programs and modules of application software, such as the computer program corresponding to the communication method of the gateway device in the embodiment of the present application. The processor 302 executes various functional applications and data processing by running the computer program stored in the memory 304, that is, to implement the above method. The memory 304 may include a high-speed random access memory, and may also include a non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some instances, the memory 304 may further include a memory remotely arranged relative to the processor 302, and these remote memories may be connected to the computer terminal via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.
[0041] The transmission device 306 is used to receive or send data via a network. The specific example of the above network may include a wireless network provided by a communication provider of a computer terminal. In one example, the transmission device 306 includes a network adapter (Network Interface Controller, referred to as NIC), which can be connected to other network devices through a base station so as to communicate with the Internet. In one example, the transmission device 306 can be a radio frequency (RF) module, which is used to communicate with the Internet wirelessly.
[0042] Figure 4 is a flow chart of a communication method of a gateway device according to an embodiment of the present application, such as Figure 4 As shown, the steps of the method include:
[0043] Step S402, determining a target working mode of the slave gateway device according to the uplink rate supported by the master gateway device and the uplink rate supported by the slave gateway device;
[0044] Step S404: the slave gateway device communicates with the master gateway device according to the target working mode.
[0045] The embodiment of the present application determines the target operating mode of the slave gateway device according to the uplink rate supported by the master gateway device and the uplink rate supported by the slave gateway device; the slave gateway device communicates with the master gateway device according to the target operating mode, thereby solving the technical problem of how to achieve adaptive compatibility between symmetric 2.5G FTTR and existing asymmetric 2.5G FTTR.
[0046] Among them, the master gateway device can be referred to as the master gateway, and the slave gateway device can be referred to as the slave gateway.
[0047] The master gateway MFU in the FTTR can send its own capabilities to the slave gateway SFU, and inform the slave gateway of the rate supported by the master gateway itself in the uplink direction, that is, the uplink rate.
[0048] Optionally, the master gateway may send its own capabilities through a serial number request. For the indication of the uplink rate, it may also be set and sent through a PLOAM broadcast, such as in an extended Upstream_Overhead message. The slave gateway may check the values of the relevant fields to determine the capabilities of the master gateway.
[0049] Optionally, when the Alloc-ID of the serial number request is 254, it indicates that the MFU supports an uplink rate of 1.25G.
[0050] Among them, Alloc-ID (Allocation Identifier) is a unique identifier used in the GPON (Gigabit Passive Optical Network) standard to identify the transmission container allocated to the ONU (Optical Network Unit). The OLT allocates bandwidth to the transmission container so that the ONU obtains an upstream transmission opportunity.
[0051] The value range of Alloc-ID is 0-4095, of which 0-252 is the default allocation value, which is consistent with the ONU identification, 253, 254 and 255 are reserved broadcast values for ONU activation, and other values are used to allocate to different ONU transmission containers.
[0052] Among them, the role of Alloc-ID is to distinguish different ONU devices and their corresponding transmission containers in the GPON network.
[0053] Among them, when the Alloc-ID of the serial number request is 254, it means that the MFU supports 1.25G upstream rate, which is specified in the existing GPON standard;
[0054] Optional. When the Alloc-ID of the serial number request is 255, it indicates that the MFU supports 2.5G uplink rate.
[0055] Optionally, when the Alloc-ID of the serial number request is 253, it indicates that the MFU supports 1.25G uplink rate and 2.5G uplink rate.
[0056] Optionally, the 2.5G FTTR main gateway can send serial number request with Alloc-ID of 255 and 254 alternately, or send serial number request with Alloc-ID of 253 alone, indicating that it supports uplink 1.25G rate and 2.5G rate. The following embodiments take the serial number request with Alloc-ID of 255 and 254 alternately as an example. This embodiment can also be modified to send serial number request with Alloc-ID of 253 alone, and the process is similar. The 2.5G FTTR main gateway can also send serial number request with Alloc-ID of 255 or 254 alone, indicating that it only supports 2.5G uplink rate or 1.25G uplink rate.
[0057] Optionally, the 1.25G FTTR main gateway generally sends a serial number request with Alloc-ID 254.
[0058] Optionally, the master gateway may also send its own capabilities by filling in corresponding values in relevant fields through PLOAM messages or other methods, as detailed in the implementation method.
[0059] Among them, FTTR obtains the capabilities of the FTTR main gateway MFU from the gateway SFU, and determines its own working mode according to the uplink rate it supports.
[0060] For example, the FTTR slave gateway obtains the capability of the FTTR master gateway by obtaining the Alloc-ID carried in the serial number request sent by the FTTR master gateway, and determines its own working mode.
[0061] Optionally, for a 2.5G FTTR slave gateway, if it can receive a serial number request with Alloc-ID of 255 or 253, it works in 2.5G mode; if it can only receive a serial number request with Alloc-ID of 254, it will reduce the speed and work in 1.25G mode.
[0062] Optionally, for a 1.25G FTTR slave gateway, if it can receive a serial number request with Alloc-ID 254 or 253, it will respond in 1.25G mode and will not respond to a serial number request with Alloc-ID 255.
[0063] Optionally, the FTTR slave gateway may also obtain the capability of the master gateway by checking corresponding values of relevant fields in PLOAM messages or other methods, as described in detail in the implementation method.
[0064] Through the above embodiments, the 2.5G FTTR master gateway can be compatible with the 1.25G slave gateway, and the 2.5G FTTR slave gateway can also work at a reduced speed on the 1.25G FTTR master gateway.
[0065] In an exemplary embodiment, before executing the above step S402, a message field may be determined from the gateway message sent by the master gateway device; and the target uplink rate indicated by the channel identifier carried in the message field is determined as the uplink rate supported by the master gateway device.
[0066] In an exemplary embodiment, the gateway message sending method includes at least one of the following: the master gateway device periodically sends the gateway message, wherein the periodically sent gateway message has the same or different channel identifiers; the master gateway device alternately sends the gateway message, wherein the alternately sent gateway messages have different channel identifiers.
[0067] In an exemplary embodiment, before determining the target uplink rate indicated by the channel identifier carried by the message field as the uplink rate supported by the master gateway device, a technical solution is further proposed, specifically including: when it is determined that the master gateway device operates in the first working mode, the first uplink rate corresponding to the first working mode is determined as the target uplink rate, and the channel identifier carried by the message field is set to the first identifier used to represent the uplink rate of the first working mode; when it is determined that the master gateway device operates in the second working mode, the second uplink rate corresponding to the second working mode is determined as the target uplink rate, and the channel identifier carried by the message field is set to the second identifier used to represent the uplink rate of the second working mode; when it is determined that the master gateway device operates in the first working mode and the second working mode, the first uplink rate corresponding to the first working mode and the second uplink rate corresponding to the second working mode are determined as the target uplink rate, and the channel identifier carried by the message field is set to the third identifier used to represent the uplink rates of the first working mode and the second working mode; wherein the second uplink rate is greater than the first uplink rate.
[0068] In an exemplary embodiment, for an implementation process of determining a target operating mode of a slave gateway device based on an uplink rate supported by a master gateway device and an uplink rate supported by a slave gateway device, the specific steps include: obtaining all operating modes supported by the slave gateway device; wherein each of all operating modes corresponds to an uplink rate; and determining a target operating mode that supports the target uplink rate from among all operating modes.
[0069] Optionally, the intersection of all working modes supported by the slave gateway device and all working modes supported by the master gateway device may be taken to obtain a working mode set, and the optimal working mode may be selected from the working mode set as the target working mode. For example, the working mode with the largest uplink rate in the working mode set may be determined as the target working mode to increase the uplink transmission capacity and reduce the uplink transmission delay, or the working mode with the smallest uplink rate in the working mode set may be determined as the target working mode to reduce the energy consumption required for uplink transmission, etc. If there is only one working mode in the working mode set, this working mode is determined as the target working mode.
[0070] In an exemplary embodiment, a plurality of technical solutions are proposed for determining a target operating mode supporting the target uplink rate from all the operating modes, including:
[0071] Scheme 1, for a first type of slave gateway device, when receiving at least two message fields sent alternately by a first type of master gateway device according to a preset period, all channel identifiers carried by the at least two message fields are determined; wherein the first type of master gateway device supports a first working mode and a second working mode, the first type of slave gateway device supports the second working mode, and all channel identifiers include a first identifier for supporting a first uplink rate and a second identifier for supporting a second uplink rate; the first uplink rate is the uplink rate corresponding to the first type of master gateway device working in the first working mode, and the second uplink rate is the uplink rate corresponding to the first type of master gateway device working in the second working mode; the second working mode supporting the second uplink rate is determined as the target working mode.
[0072] Scheme 2, for the second type of slave gateway device, when receiving at least two message fields sent alternately by the first type of master gateway device according to a preset period, all channel identifiers carried by the at least two message fields are determined; wherein the first type of master gateway device supports a first working mode and a second working mode, and the second type of slave gateway device only supports the first working mode, and all the channel identifiers include a first identifier for supporting a first uplink rate and a second identifier for supporting a second uplink rate; the first uplink rate is the uplink rate corresponding to the first type of master gateway device working in the first working mode, and the second uplink rate is the uplink rate corresponding to the first type of master gateway device working in the second working mode; the first working mode supporting the first uplink rate is determined as the target working mode.
[0073] Scheme 3, determining a target working mode supporting the target uplink rate from all the working modes, comprising: for a third-category slave gateway device, upon receiving at least two message fields sent alternately by a first-category master gateway device according to a preset period, determining all channel identifiers carried by the at least two message fields; wherein the first-category master gateway device supports a first working mode and a second working mode, the third-category slave gateway device supports the first working mode and the second working mode, and all the channel identifiers include a first identifier for supporting a first uplink rate and a second identifier for supporting a second uplink rate; the first uplink rate is an uplink rate corresponding to the first-category master gateway device working in the first working mode, and the second uplink rate is an uplink rate corresponding to the first-category master gateway device working in the second working mode; for a slave gateway device in the third-category slave gateway device that supports the first working mode, determining the first working mode supporting the first uplink rate as the target working mode; for a slave gateway device in the third-category slave gateway device that supports the second working mode, determining the second working mode supporting the second uplink rate as the target working mode.
[0074] Scheme 4, for the second-class slave gateway device, when receiving the message field sent by the second-class master gateway device according to the preset period, determine the channel identifier carried by the message field sent according to the preset period; wherein the second-class master gateway device supports the first working mode, the second-class slave gateway device supports the first working mode, and the channel identifier includes a first identifier for supporting a first uplink rate; the first uplink rate is the uplink rate corresponding to the second-class master gateway device working in the first working mode; the first working mode supporting the first uplink rate is determined as the target working mode.
[0075] Scheme 5, for the first type of slave gateway device, when receiving the message field sent by the second type of master gateway device according to the preset period, determine the channel identifier carried by the message field sent according to the preset period; wherein the second type of master gateway device supports the first working mode, and the first type of slave gateway device supports the second working mode; if the channel identifiers received within the preset time period are all first identifiers for supporting the first uplink rate, the first working mode supporting the first uplink rate is determined as the target working mode; if the channel identifiers received continuously within the preset number of times are all first identifiers for supporting the first uplink rate, the first working mode supporting the first uplink rate is determined as the target working mode; wherein the first uplink rate is the uplink rate corresponding to the second type of master gateway device working in the first working mode.
[0076] Scheme 6, for a first-class slave gateway device, upon receiving at least two message fields sent alternately by a first-class master gateway device according to a preset period, all channel identifiers carried by the at least two message fields are determined; wherein the first-class master gateway device supports a first working mode and a second working mode, the first-class slave gateway device supports the second working mode, and all channel identifiers include a first identifier for supporting a first uplink rate and a second identifier for supporting a second uplink rate; the first uplink rate is an uplink rate corresponding to the first-class master gateway device working in the first working mode, and the second uplink rate is an uplink rate corresponding to the first-class master gateway device working in the second working mode; the first working mode supporting the first uplink rate is determined as the target working mode; the configuration information sent by the first-class slave gateway device when activated is obtained, and the configuration information is sent to the first-class master gateway device, so that the first-class master gateway device configures the first-class slave gateway device to support the second working mode; the second working mode supporting the second uplink rate is determined as the target working mode.
[0077] Scheme 7, for a first type of slave gateway device, when receiving at least two message fields sent alternately by a first type of master gateway device according to a preset period, all channel identifiers carried by the at least two message fields are determined; wherein the first type of master gateway device supports a first working mode and a second working mode, the first type of slave gateway device supports the second working mode, and all the channel identifiers include a first identifier for supporting a first uplink rate and a second identifier for supporting a second uplink rate; the first uplink rate is the uplink rate corresponding to the first type of master gateway device working in the first working mode, and the second uplink rate is the uplink rate corresponding to the first type of master gateway device working in the second working mode; the first working mode supporting the first uplink rate is determined as the target working mode; when it is determined that the first type of slave gateway device receives another second identifier after activation is completed, the first type of slave gateway device is restarted and activated; if it is determined that the first type of slave gateway device receives the second identifier when restarting and activating, the second working mode supporting the second uplink rate is determined as the target working mode.
[0078] Scheme 8, for the third type of slave gateway device, when receiving a message field sent by the second type of master gateway device according to a preset period, determine the channel identifier carried by the message field sent according to the preset period; wherein the second type of master gateway device supports the first working mode, the third type of slave gateway device supports the first working mode and the second working mode, and the channel identifier includes a first identifier for supporting a first uplink rate and a second identifier for supporting a second uplink rate, the first uplink rate is the uplink rate corresponding to the second type of master gateway device working in the first working mode, and the second uplink rate is the uplink rate corresponding to the second type of master gateway device working in the second working mode; for the slave gateway device supporting the first working mode in the third type of slave gateway device, if it is determined that the slave gateway device supporting the first working mode receives the first identifier, the first working mode supporting the first uplink rate is determined as the target working mode; for the slave gateway device supporting the second working mode in the third type of slave gateway device, if it is determined that the slave gateway device supporting the second working mode receives the first identifier and does not receive the second identifier, the first working mode supporting the first uplink rate is determined as the target working mode.
[0079] Optionally, in an exemplary embodiment, the manner in which the message field carries the channel identifier includes at least one of the following: carrying the channel identifier through a sequence number request field; carrying the channel identifier through a PLOAM field.
[0080] This embodiment also includes Scheme 9, in the case where the channel identifier is carried by the PLOAM field, determining the extended burst length information from the PLOAM field; determining the target uplink rate indicated by the channel identifier carried by the message field, and determining the target working mode of the slave gateway device that supports the target uplink rate, wherein the determining the target uplink rate indicated by the channel identifier carried by the message field and determining the target working mode of the slave gateway device that supports the target uplink rate include: determining the target uplink rate indicated by the extended burst length information and determining the target working mode of the slave gateway device that supports the target uplink rate.
[0081] Optionally, in this embodiment, the target uplink rate indicated by the extended burst length information may also be determined, and the target operating mode of the slave gateway device supporting the target uplink rate may be determined from all the operating modes.
[0082] In an exemplary embodiment, the above-mentioned step S404 also includes the following implementation steps: determining the uplink rate of the working mode of the slave gateway device when performing a power-on operation; when it is determined that the master gateway device supports the uplink rate of the working mode of the slave gateway device when performing a power-on operation, the slave gateway device communicates with the master gateway device according to the target working mode; when it is determined that the master gateway device does not support the uplink rate of the working mode of the slave gateway device when performing a power-on operation, obtaining external configuration information; switching the uplink rate of the working mode of the slave gateway device when performing a power-on operation based on the external configuration information until the master gateway device supports the uplink rate of the working mode of the slave gateway device when performing a power-on operation.
[0083] In an exemplary embodiment, after the above step S404, it is also possible to respond to a startup instruction for starting the slave gateway device, obtain an activation process preset for the slave gateway device; and activate the slave gateway device according to the activation process.
[0084] Next, the communication method of the gateway device is further described in conjunction with the following embodiments.
[0085] The following is the real-time preparation work of the communication method of the gateway device in this application:
[0086] At present, the FTTR standards of CCSA and ITU-T are mainly modified and improved on the basis of GPON and XGS-PON (10-Gigabit-capable symmetric passive optical network, symmetric 10G passive optical network) standards. The following expansion is based on GPON as an example.
[0087] The result of modifying the Alloc-ID of the GPON standard is shown in Table 1 below. The modification mainly extends the Alloc-ID of the serial number request.
[0088] Table 1 Alloc-ID information table
[0089]
[0090]
[0091] The serial number request is a bandwidth allocation entry and is an entry in the Upstream BWmap. Figure 5 shown.
[0092] The serial number request is generally defined as: Alloc-ID = specified value (the original value is 254, which is now limited to the upstream 1.25G rate SFU activation, and extended to two values 255 and 253, see the description in the table above), bit 10 in the Flags field, PLOAMu = '1', StartTime = X, and StopTime = X+12, used to send an upstream PLOAM message with a length of 13 bytes.
[0093] In the example of the master gateway notifying its own capabilities through the PLOAM message, the original Extended_Burst_Length message is extended, and the ss bit in the 5th byte is shown in Table 2, which is used to indicate the supported uplink rate.
[0094] Of course, it is also possible to extend other existing PLOAM messages or define new PLOAM messages, which will not be described in detail in this application.
[0095] Table 2 Burst extension length information
[0096]
[0097]
[0098] Among them, the 1.24416Gbit / s uplink rate shown in Table 2 corresponds to the "1.25G" working mode (ie, the first working mode mentioned above), and the 2.48832Gbit / s uplink rate corresponds to the "2.5G" working mode (ie, the second working mode mentioned above).
[0099] The 1.25G uplink rate mentioned in this application means the "1.25G" working mode, while the 2.5 uplink rate means the "2.5G" working mode.
[0100] GPON can perform activation process periodically, for example, sending a serial number request every 10 seconds. Figure 6 As shown in the figure, the GPON activation process specifically includes:
[0101] Among them, the ONU in the GPON activation process can be understood as the above-mentioned slave gateway SFU, and the OLT in the GPON activation process can be understood as the above-mentioned master gateway MFU.
[0102] After the ONU entering the activation process listens to the downstream transmission and obtains PSync and superframe synchronization: the ONU waits for the Upstream_Overhead PLOAM message, optionally followed by the Extended_Burst_Length PLOAM message periodically issued by the OLT. The ONU receives the PON operating parameters (the length and mode of the burst mode overhead component, the value of the pre-assigned delay, and the initial optical power level) through the Upstream_Overhead and Extended_Burst_Length messages. The ONU announces its presence on the PON by responding to the broadcast serial number request regularly issued by the OLT using the Serial_Number_ONU message. The OLT discovers the serial number of the newly connected ONU and assigns the ONU-ID to it using the Assign_ONU-ID message. The OLT issues a directional serial number request to the newly discovered ONU and accurately time-locates the ONU's response. The OLT calculates a separate equalization delay and sends the equalization delay to the ONU using the Ranging_Time message. The ONU adjusts the start of its upstream GTC frame clock based on its assigned equalization delay. The ONU completes activation and begins normal operation.
[0103] Furthermore, for other switching methods other than those based on protocols, the uplink rate can be configured by software or by external hardware. That is, one uplink rate can be configured first, and activation can be attempted. If activation cannot be completed, another uplink rate can be switched. Of course, if the software configuration method is used, the software configuration method can also be automatically attempted.
[0104] The communication method of the above-mentioned gateway device may include, for example, the following implementations:
[0105] Implementation 1:
[0106] For the networking of 2.5G MFU (i.e. the first type of master gateway device mentioned above) and 2.5G SFU (i.e. the first type of slave gateway device mentioned above), the 2.5G MFU master gateway supports two uplink rates of 1.25G and 2.5G, and periodically starts the activation process, for example, once every 10 seconds. The Alloc-ID carried by the serial number request in each activation process changes alternately. One Alloc-ID = 255 allows SFU activation with an uplink rate of 2.5G, and another Alloc-ID = 254 allows SFU activation with an uplink rate of 1.25G.
[0107] If the 2.5G SFU detects the serial number request of Alloc-ID=255, it ignores the serial number request of Alloc-ID=254, chooses to work in the symmetric 2.5G mode, responds to the serial number request and sends the Serial_Number_ONU message, and continues to complete the activation according to the GPON activation process.
[0108] Implementation 2:
[0109] For the networking of 2.5G MFU (i.e. the first type of master gateway device mentioned above) and 1.25G SFU (i.e. the second type of slave gateway device mentioned above), the 2.5G MFU master gateway supports two uplink rates of 1.25G and 2.5G, and periodically starts the activation process, for example, once every 10 seconds. The Alloc-ID carried by the serial number request in each activation process changes alternately. One Alloc-ID = 255 allows SFU activation with an uplink rate of 2.5G, and another Alloc-ID = 254 allows SFU activation with an uplink rate of 1.25G.
[0110] If the 1.25G SFU detects the serial number request of Alloc-ID=254, but does not support the serial number request of Alloc-ID=255, it responds to the serial number request of Alloc-ID=254 and sends a Serial_Number_ONU message, and continues to complete the activation according to the GPON activation process.
[0111] Implementation 3:
[0112] For the mixed networking of 2.5G MFU (i.e. the first type of master gateway device mentioned above) and 2.5G SFU, 1.25SFU (i.e. the third type of slave gateway device mentioned above), the 2.5G MFU master gateway supports two uplink rates of 1.25G and 2.5G, and periodically starts the activation process, for example, once every 10 seconds. The Alloc-ID carried by the serial number request in each activation process changes alternately. One Alloc-ID = 255 allows SFU activation with an uplink rate of 2.5G, and another Alloc-ID = 254 allows SFU activation with an uplink rate of 1.25G.
[0113] If the 1.25G SFU detects the serial number request of Alloc-ID=254, but does not support the serial number request of Alloc-ID=255, it responds to the serial number request of Alloc-ID=254 and sends a Serial_Number_ONU message, and continues to complete the activation according to the GPON activation process.
[0114] If the 2.5G SFU detects the serial number request of Alloc-ID=255, it ignores the serial number request of Alloc-ID=254, chooses to work in the symmetric 2.5G mode, responds to the serial number request and sends the Serial_Number_ONU message, and continues to complete the activation according to the GPON activation process.
[0115] Implementation 4:
[0116] For the networking of 1.25G MFU (ie the second type of master gateway device) and 1.25G SFU (ie the second type of slave gateway device), the 1.25G MFU master gateway periodically starts the activation process and sends a serial number request with Alloc-ID=254 in standard mode.
[0117] If the 1.25G SFU detects the serial number request of Alloc-ID=254, it responds to the serial number request and sends a Serial_Number_ONU message, and continues to complete the activation according to the GPON activation process.
[0118] Implementation 5:
[0119] This implementation is an automatic switching mechanism based on a protocol.
[0120] For the networking of 1.25G MFU (ie the second type of master gateway device) and 2.5G SFU (ie the first type of slave gateway device), the 1.25G MFU master gateway periodically starts the activation process and sends a serial number request with Alloc-ID=254 in standard mode.
[0121] If the 2.5G SFU only hears the serial number request of Alloc-ID=254 from the gateway within a certain period of time (for example, within 1 minute) or a certain number of times (for example, within 10 times), but fails to hear the serial number request of Alloc-ID=255, it will reduce the speed to 1.25G mode, respond to the serial number request and send the Serial_Number_ONU message, and continue to complete the activation according to the GPON activation process.
[0122] Implementation 6:
[0123] This embodiment is an extension of the first embodiment.
[0124] For the networking of 2.5G MFU (i.e. the first type of master gateway device mentioned above) and 2.5G SFU (i.e. the first type of slave gateway device mentioned above), 2.5SFU can first work in 1.25 mode (it may be that when MFU broadcasts its capability, SFU does not detect the serial number request with Alloc-ID of 255), but during the activation process or after the activation is completed, it reports that it supports 2.5G mode. After the activation is completed, MFU configures SFU to work in 2.5G mode.
[0125] The 2.5G SFU can report that it supports the 2.5G mode during the activation process through the extended Serial_Number_ONU message. The extended Serial_Number_ONU message is shown in Table 3 below, where when the A bit of the 12th byte is 1, it indicates that the SFU supports the 2.5G mode.
[0126] Table 3 Serial number ONU information table
[0127]
[0128]
[0129] Among them, the 2.5G MFU configures the uplink rate of the SFU through the extended Assign_ONU-ID message. The SFU uses the corresponding uplink rate to send subsequent uplink messages and frames according to the configuration. The extended Assign_ONU-ID message is shown in Table 4 below, where the r bit of the 12th byte is 1, indicating that the SFU is configured to work in the uplink rate mode of 2.5G.
[0130] Table 4 Assign_ONU-ID information table
[0131]
[0132] Of course, after the activation is completed, the SFU can report through other messages and the MFU can configure the uplink rate mode of the SFU through other messages, but the methods are similar and will not be repeated one by one.
[0133] Implementation 7:
[0134] This implementation is expanded on the basis of the first implementation.
[0135] For the networking of 2.5G MFU (i.e. the first type of master gateway device mentioned above) and 2.5G SFU (i.e. the first type of slave gateway device mentioned above), 2.5SFU can first work in 1.25 mode (it may be that when MFU broadcasts capability, SFU does not detect the serial number request with Alloc-ID as 255). After the activation is completed, SFU detects the serial number request with Alloc-ID=255, then restarts the activation process, chooses to work in 2.5G mode and waits for listening to the serial number request with Alloc-ID=255, and completes the activation according to the GPON activation process.
[0136] Implementation 8:
[0137] For the mixed networking of 1.25G MFU (i.e. the second type of master gateway device mentioned above) and 1.25G SFU and 2.5G SFU (i.e. the third type of slave gateway device mentioned above), 1.25G MFU periodically sends a serial number request with Alloc-ID=254;
[0138] If the 1.25G SFU hears the serial number request with Alloc-ID = 254, it responds to the serial number request and sends a Serial_Number_ONU message, and continues to complete the activation according to the GPON activation process;
[0139] If the 2.5G SFU only hears the serial number request of Alloc-ID=254 within a certain period of time (for example, within 1 minute) or a certain number of times (for example, within 10 times), and fails to hear the serial number request of Alloc-ID=255, it will reduce the speed to 1.25G mode, respond to the serial number request and send the Serial_Number_ONU message, and continue to complete the activation according to the GPON activation process.
[0140] Implementation 9:
[0141] In this embodiment, the serial number request can be replaced with a PLOAM message. Based on the above implementation, the main gateway MFU broadcasts its own capabilities with an extended Extended_Burst_Length message, receives and parses the extended Extended_Burst_Length message from the gateway SFU to obtain the uplink rate capability of the MFU, and determines its own uplink rate, still using the traditional Alloc-ID = 254 serial number request, and completing the activation according to the activation process. The process is similar to the above implementation, and will not be repeated here.
[0142] Implementation 10:
[0143] In this embodiment, the SFU can be set to select the uplink rate mode through external configuration. Based on the above implementation, for 2.5G SFU, an uplink rate mode can be selected when powered on. If the MFU supports its uplink rate, the 2.5G SFU completes the activation according to the activation process. Otherwise, the uplink rate mode is switched through external configuration, such as software configuration, hardware switch control, etc., and the activation process is continued.
[0144] Implementation 11:
[0145] In this embodiment, the SFU can be set to store the upstream rate mode locally. Based on the above implementation, after the SFU completes the activation process, the current upstream rate mode of the SFU can be stored, and this storage information is not easily lost even if the SFU is powered off. After the SFU is restarted, the stored upstream rate mode is read and operated according to the mode, waiting for the corresponding serial number request or PLOAM message, and completing the activation according to the GPON activation process.
[0146] In this embodiment, a communication system of a gateway device is also provided, which is used to implement the above-mentioned embodiments and preferred implementation modes, and the descriptions that have been made will not be repeated. As used below, the term "module" can implement a combination of software and / or hardware for a predetermined function. Although the devices described in the following embodiments are preferably implemented in software, the implementation of hardware, or a combination of software and hardware, is also possible and conceivable.
[0147] Figure 7 is a structural block diagram of a communication system of a gateway device according to an embodiment of the present application. Figure 7As shown, the communication system of the gateway device includes: a master gateway device 720 and a slave gateway device 740. The slave gateway device 740 is used to communicate with the master gateway device 720 according to the target working mode, wherein the target working mode is determined according to the uplink rate supported by the master gateway device and the uplink rate supported by the slave gateway device.
[0148] The embodiment of the present application determines the target operating mode of the slave gateway device according to the uplink rate supported by the master gateway device and the uplink rate supported by the slave gateway device; the slave gateway device communicates with the master gateway device according to the target operating mode, solving the technical problem of how to achieve adaptive compatibility between symmetric 2.5G FTTR and existing asymmetric 2.5G FTTR.
[0149] Furthermore, the communication system of the above-mentioned gateway device also includes a control center, and the control center or the slave gateway device is used to determine the target working mode of the slave gateway device according to the uplink rate supported by the master gateway device and the uplink rate supported by the slave gateway device.
[0150] Optionally, in an exemplary embodiment, the control center or slave gateway device is also used to determine a message field from the gateway message sent by the master gateway device; and determine the target uplink rate indicated by the channel identifier carried by the message field as the uplink rate supported by the master gateway device.
[0151] Optionally, in an exemplary embodiment, the gateway message sending method includes at least one of the following: the master gateway device periodically sends the gateway message, wherein the periodically sent gateway message has the same or different channel identifiers; the master gateway device alternately sends the gateway message, wherein the alternately sent gateway messages have different channel identifiers.
[0152] Optionally, in an exemplary embodiment, the control center or the slave gateway device is also used to, before determining the target uplink rate indicated by the channel identifier carried in the message field as the uplink rate supported by the master gateway device, determine the first uplink rate corresponding to the first working mode as the target uplink rate when it is determined that the master gateway device is working in the first working mode, and set the channel identifier carried by the message field to the first identifier used to represent the uplink rate of the first working mode; when it is determined that the master gateway device is working in the second working mode, determine the second uplink rate corresponding to the second working mode as the target uplink rate, and set the channel identifier carried by the message field to the second identifier used to represent the uplink rate of the second working mode; when it is determined that the master gateway device is working in the first working mode and the second working mode, determine the first uplink rate corresponding to the first working mode and the second uplink rate corresponding to the second working mode as the target uplink rate, and set the channel identifier carried by the message field to the third identifier used to represent the uplink rates of the first working mode and the second working mode; wherein the second uplink rate is greater than the first uplink rate.
[0153] Optionally, in an exemplary embodiment, the control center or the slave gateway device obtains all operating modes supported by the slave gateway device; wherein each of all the operating modes corresponds to an uplink rate; and a target operating mode that supports the target uplink rate is determined from among all the operating modes.
[0154] Optionally, in an exemplary embodiment, the control center or the slave gateway device is also used to determine, for a first type of slave gateway device, all channel identifiers carried by the at least two message fields upon receiving at least two message fields sent alternately by a first type of master gateway device according to a preset period; wherein the first type of master gateway device supports a first working mode and a second working mode, and the first type of slave gateway device supports the second working mode, and all the channel identifiers include a first identifier for supporting a first uplink rate and a second identifier for supporting a second uplink rate; the first uplink rate is an uplink rate corresponding to the first type of master gateway device operating in the first working mode, and the second uplink rate is an uplink rate corresponding to the first type of master gateway device operating in the second working mode; and the second working mode supporting the second uplink rate is determined as the target working mode.
[0155] Optionally, in an exemplary embodiment, the control center or the slave gateway device is also used to determine, for a second type of slave gateway device, all channel identifiers carried by the at least two message fields sent alternately by the first type of master gateway device according to a preset period, upon receiving the at least two message fields sent alternately by the first type of master gateway device according to the preset period; wherein the first type of master gateway device supports a first working mode and a second working mode, and the second type of slave gateway device only supports the first working mode, and all the channel identifiers include a first identifier for supporting a first uplink rate and a second identifier for supporting a second uplink rate; the first uplink rate is an uplink rate corresponding to the first type of master gateway device working in the first working mode, and the second uplink rate is an uplink rate corresponding to the first type of master gateway device working in the second working mode; and the first working mode supporting the first uplink rate is determined as the target working mode.
[0156] Optionally, in an exemplary embodiment, the control center or the slave gateway device is further used to determine a target operating mode that supports the target uplink rate from all the operating modes, including: for the third type of slave gateway device, upon receiving at least two message fields sent alternately by the first type of master gateway device according to a preset period, determining all channel identifiers carried by the at least two message fields; wherein the first type of master gateway device supports the first operating mode and the second operating mode, and the third type of slave gateway device supports the first operating mode and the second operating mode, and all the channel identifiers include a first identifier for supporting the first uplink rate and a second identifier for supporting the second uplink rate; the first uplink rate is the uplink rate corresponding to the first type of master gateway device operating in the first operating mode, and the second uplink rate is the uplink rate corresponding to the first type of master gateway device operating in the second operating mode; for the slave gateway device supporting the first operating mode among the third type of slave gateway devices, determining the first operating mode that supports the first uplink rate as the target operating mode; for the slave gateway device supporting the second operating mode among the third type of slave gateway devices, determining the second operating mode that supports the second uplink rate as the target operating mode.
[0157] Optionally, in an exemplary embodiment, the control center or the slave gateway device is also used to determine, for a second type of slave gateway device, a channel identifier carried by a message field sent according to a preset period by a second type of master gateway device, upon receiving the message field sent according to a preset period by the second type of master gateway device; wherein the second type of master gateway device supports a first working mode, the second type of slave gateway device supports the first working mode, and the channel identifier includes a first identifier for supporting a first uplink rate; the first uplink rate is an uplink rate corresponding to the second type of master gateway device working in the first working mode; and the first working mode supporting the first uplink rate is determined as the target working mode.
[0158] Optionally, in an exemplary embodiment, the control center or the slave gateway device is also used to determine, for the first type of slave gateway device, a channel identifier carried by the message field sent according to a preset period by the second type of master gateway device, when receiving the message field sent according to a preset period; wherein the second type of master gateway device supports the first working mode, and the first type of slave gateway device supports the second working mode; if the channel identifiers received within a preset time period are all first identifiers for supporting a first uplink rate, the first working mode supporting the first uplink rate is determined as the target working mode; if the channel identifiers received continuously within a preset number of times are all first identifiers for supporting the first uplink rate, the first working mode supporting the first uplink rate is determined as the target working mode; wherein the first uplink rate is the uplink rate corresponding to the second type of master gateway device working in the first working mode.
[0159] Optionally, in an exemplary embodiment, the control center or the slave gateway device is further used to determine all channel identifiers carried by the at least two message fields of the first type of slave gateway device, upon receiving at least two message fields sent alternately by the first type of master gateway device according to a preset period; wherein the first type of master gateway device supports a first working mode and a second working mode, and the first type of slave gateway device supports the second working mode, and all the channel identifiers include a first identifier for supporting a first uplink rate and a second identifier for supporting a second uplink rate; the first uplink rate is an uplink rate corresponding to the first type of master gateway device working in the first working mode, and the second uplink rate is an uplink rate corresponding to the first type of master gateway device working in the second working mode; the first working mode supporting the first uplink rate is determined as the target working mode; the configuration information sent by the first type of slave gateway device when activated is obtained, and the configuration information is sent to the first type of master gateway device, so that the first type of master gateway device configures the first type of slave gateway device to support the second working mode; and the second working mode supporting the second uplink rate is determined as the target working mode.
[0160] Optionally, in an exemplary embodiment, the control center or the slave gateway device is further used to determine all channel identifiers carried by the at least two message fields of the first type of slave gateway device, upon receiving at least two message fields sent alternately by the first type of master gateway device according to a preset period; wherein the first type of master gateway device supports a first working mode and a second working mode, and the first type of slave gateway device supports the second working mode, and all the channel identifiers include a first identifier for supporting a first uplink rate and a second identifier for supporting a second uplink rate; the first uplink rate is an uplink rate corresponding to the first type of master gateway device working in the first working mode, and the second uplink rate is an uplink rate corresponding to the first type of master gateway device working in the second working mode; the first working mode supporting the first uplink rate is determined as the target working mode; when it is determined that the first type of slave gateway device receives another second identifier after activation is completed, the first type of slave gateway device is restarted and activated; if it is determined that the first type of slave gateway device receives the second identifier when restarting and activating, the second working mode supporting the second uplink rate is determined as the target working mode.
[0161] Optionally, in an exemplary embodiment, the control center or the slave gateway device is further used to determine, for a third-category slave gateway device, a channel identifier carried by a message field sent according to a preset period when receiving a message field sent by a second-category master gateway device according to a preset period; wherein the second-category master gateway device supports a first working mode, and the third-category slave gateway device supports the first working mode and a second working mode, and the channel identifier includes a first identifier for supporting a first uplink rate and a second identifier for supporting a second uplink rate, the first uplink rate is an uplink rate corresponding to the second-category master gateway device working in the first working mode, and the second uplink rate is an uplink rate corresponding to the second-category master gateway device working in the second working mode; for a slave gateway device supporting the first working mode in the third-category slave gateway device, if it is determined that the slave gateway device supporting the first working mode receives the first identifier, the first working mode supporting the first uplink rate is determined as the target working mode; for a slave gateway device supporting the second working mode in the third-category slave gateway device, if it is determined that the slave gateway device supporting the second working mode receives the first identifier and does not receive the second identifier, the first working mode supporting the first uplink rate is determined as the target working mode.
[0162] Optionally, in an exemplary embodiment, the manner in which the message field carries the channel identifier includes at least one of the following: carrying the channel identifier through a sequence number request field; carrying the channel identifier through a PLOAM field.
[0163] Optionally, in an exemplary embodiment, the control center or the slave gateway device is further used to determine the extended burst length information from the PLOAM field when the channel identifier is carried by the PLOAM field; the target uplink rate indicated by the channel identifier carried by the message field and the target operating mode of the slave gateway device that supports the target uplink rate include: determining the target uplink rate indicated by the extended burst length information and determining the target operating mode of the slave gateway device that supports the target uplink rate.
[0164] In an exemplary embodiment, the control center or the slave gateway device is also used to determine the uplink rate of the working mode of the slave gateway device when it is powered on; when it is determined that the master gateway device supports the uplink rate of the working mode of the slave gateway device when it is powered on, the slave gateway device communicates with the master gateway device according to the target working mode; when it is determined that the master gateway device does not support the uplink rate of the working mode of the slave gateway device when it is powered on, external configuration information is obtained; and the uplink rate of the working mode of the slave gateway device when it is powered on is switched based on the external configuration information until the master gateway device supports the uplink rate of the working mode of the slave gateway device when it is powered on.
[0165] In an exemplary embodiment, the control center or the slave gateway device also responds to a startup instruction for starting the slave gateway device, obtains an activation process preset for the slave gateway device, and activates the slave gateway device according to the activation process.
[0166] Through the description of the above implementation methods, those skilled in the art can clearly understand that the method according to the above embodiment can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an 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 readable storage medium (such as ROM / RAM, a disk, or an optical disk), and includes a number of instructions for a terminal device (which can be a mobile phone, a computer, a server, or a network device, etc.) to execute the methods of each embodiment of the present application.
[0167] In an exemplary embodiment, the computer-readable storage medium may include, but is not limited to, various media that can store computer programs, such as a USB flash drive, a read-only memory (ROM), a random access memory (RAM), a mobile hard disk, a magnetic disk or an optical disk.
[0168] For specific examples in this embodiment, reference may be made to the examples described in the above embodiments and exemplary implementation modes, and this embodiment will not be described in detail herein.
[0169] An embodiment of the present application further provides an electronic device, including a memory and a processor, wherein a computer program is stored in the memory, and the processor is configured to run the computer program to execute the steps in any one of the above method embodiments.
[0170] Optionally, in this embodiment, the processor may be configured to perform the following steps through a computer program:
[0171] S1, determining a target working mode of the slave gateway device according to an uplink rate supported by the master gateway device and an uplink rate supported by the slave gateway device;
[0172] S2, the slave gateway device communicates with the master gateway device according to the target working mode.
[0173] In an exemplary embodiment, the electronic device may further include a transmission device and an input / output device, wherein the transmission device is connected to the processor, and the input / output device is connected to the processor.
[0174] Optionally, in this embodiment, the electronic device may also be configured to execute the steps S1 and S2 via a computer program.
[0175] For specific examples in this embodiment, reference may be made to the examples described in the above embodiments and exemplary implementation modes, and this embodiment will not be described in detail herein.
[0176] Obviously, those skilled in the art should understand that the above modules or steps of the present application can be implemented by a general computing device, they can be concentrated on a single computing device, or distributed on a network composed of multiple computing devices, they can be implemented by a program code executable by a computing device, so that they can be stored in a storage device and executed by the computing device, and in some cases, the steps shown or described can be executed in a different order from that herein, or they can be made into individual integrated circuit modules, or multiple modules or steps therein can be made into a single integrated circuit module for implementation. Thus, the present application is not limited to any specific combination of hardware and software.
[0177] The above description is only the preferred embodiment of the present application and is not intended to limit the present application. For those skilled in the art, the present application may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the principles of the present application shall be included in the protection scope of the present application.
Claims
1. A communication method for a gateway device, characterized in that: include: Determining a target operating mode of the slave gateway device according to an uplink rate supported by the master gateway device and an uplink rate supported by the slave gateway device; The slave gateway device communicates with the master gateway device according to the target working mode.
2. The communication method of the gateway device according to claim 1, characterized in that: Before determining the target working mode of the slave gateway device according to the uplink rate supported by the master gateway device and the uplink rate supported by the slave gateway device, the method further includes: Determining a message field from a gateway message sent by the master gateway device; The target uplink rate indicated by the channel identifier carried in the message field is determined as the uplink rate supported by the master gateway device.
3. The communication method of the gateway device according to claim 2, characterized in that: The gateway message is sent in at least one of the following ways: The master gateway device periodically sends the gateway message, wherein the periodically sent gateway message has the same or different channel identifiers; The master gateway device sends the gateway messages alternately, wherein the alternately sent gateway messages have different channel identifiers.
4. The communication method of the gateway device according to claim 2, characterized in that: Before determining the target uplink rate indicated by the channel identifier carried by the message field as the uplink rate supported by the master gateway device, the method further includes: In the case where it is determined that the master gateway device operates in the first operating mode, a first uplink rate corresponding to the first operating mode is determined as the target uplink rate, and the channel identifier carried by the message field is set to a first identifier for indicating the uplink rate of the first operating mode; In the case where it is determined that the master gateway device operates in the second operating mode, a second uplink rate corresponding to the second operating mode is determined as the target uplink rate, and the channel identifier carried by the message field is set to a second identifier for indicating the uplink rate of the second operating mode; In the case of determining that the master gateway device operates in the first working mode and the second working mode, determining a first uplink rate corresponding to the first working mode and a second uplink rate corresponding to the second working mode as the target uplink rate, and setting the channel identifier carried by the message field to a third identifier for indicating the uplink rates of the first working mode and the second working mode; The second uplink rate is greater than the first uplink rate.
5. The communication method of the gateway device according to claim 2, characterized in that: Determining a target working mode of the slave gateway device according to an uplink rate supported by the master gateway device and an uplink rate supported by the slave gateway device, including: Acquire all working modes supported by the slave gateway device; wherein each working mode of all working modes corresponds to an uplink rate; A target operating mode that supports the target uplink rate is determined from all the operating modes.
6. The communication method of the gateway device according to claim 5, characterized in that: Determining a target operating mode that supports the target uplink rate from all the operating modes includes: For the first type of slave gateway device, upon receiving at least two message fields sent alternately by the first type of master gateway device according to a preset period, determining all channel identifiers carried by the at least two message fields; The first type of master gateway device supports a first working mode and a second working mode, the first type of slave gateway device supports a second working mode, and all the channel identifiers include a first identifier for supporting a first uplink rate and a second identifier for supporting a second uplink rate; the first uplink rate is an uplink rate corresponding to the first type of master gateway device working in the first working mode, and the second uplink rate is an uplink rate corresponding to the first type of master gateway device working in the second working mode; A second operating mode supporting the second uplink rate is determined as the target operating mode.
7. The communication method of the gateway device according to claim 5, characterized in that: Determining a target operating mode that supports the target uplink rate from all the operating modes includes: For the second type of slave gateway device, upon receiving at least two message fields sent alternately by the first type of master gateway device according to a preset period, determining all channel identifiers carried by the at least two message fields; The first type of master gateway device supports a first working mode and a second working mode, the second type of slave gateway device only supports the first working mode, and all the channel identifiers include a first identifier for supporting a first uplink rate and a second identifier for supporting a second uplink rate; the first uplink rate is an uplink rate corresponding to the first type of master gateway device working in the first working mode, and the second uplink rate is an uplink rate corresponding to the first type of master gateway device working in the second working mode; A first operating mode supporting the first uplink rate is determined as the target operating mode.
8. The communication method of the gateway device according to claim 5, characterized in that: Determining a target operating mode that supports the target uplink rate from all the operating modes includes: For the third type of slave gateway device, upon receiving at least two message fields sent alternately by the first type of master gateway device according to a preset period, determining all channel identifiers carried by the at least two message fields; The first type of master gateway device supports a first working mode and a second working mode, the third type of slave gateway device supports the first working mode and the second working mode, and all the channel identifiers include a first identifier for supporting a first uplink rate and a second identifier for supporting a second uplink rate; the first uplink rate is an uplink rate corresponding to the first type of master gateway device working in the first working mode, and the second uplink rate is an uplink rate corresponding to the first type of master gateway device working in the second working mode; For a slave gateway device in the third type of slave gateway devices that supports the first working mode, determining the first working mode that supports the first uplink rate as the target working mode; For the slave gateway devices of the third category that support the second working mode, the second working mode that supports the second uplink rate is determined as the target working mode.
9. The communication method of the gateway device according to claim 5, characterized in that: Determining a target operating mode that supports the target uplink rate from all the operating modes includes: For the second type of slave gateway device, upon receiving a message field sent by the second type of master gateway device according to a preset period, determining a channel identifier carried by the message field sent according to the preset period; The second-type master gateway device supports the first working mode, the second-type slave gateway device supports the first working mode, the channel identifier includes a first identifier for supporting a first uplink rate; the first uplink rate is an uplink rate corresponding to the second-type master gateway device working in the first working mode; A first operating mode supporting the first uplink rate is determined as the target operating mode.
10. The communication method of the gateway device according to claim 5, characterized in that: Determining a target operating mode that supports the target uplink rate from all the operating modes includes: For the first type of slave gateway device, when receiving a message field sent by the second type of master gateway device according to a preset period, determining a channel identifier carried by the message field sent according to the preset period; wherein the second type of master gateway device supports the first working mode, and the first type of slave gateway device supports the second working mode; If the channel identifiers received within the preset time period are all first identifiers for supporting a first uplink rate, determining a first operating mode supporting the first uplink rate as the target operating mode; If the channel identifiers continuously received within a preset number of times are all first identifiers for supporting a first uplink rate, determining a first operating mode supporting the first uplink rate as the target operating mode; The first uplink rate is an uplink rate corresponding to the second-type master gateway device operating in the first working mode.
11. The communication method of the gateway device according to claim 5, characterized in that: Determining a target operating mode that supports the target uplink rate from all the operating modes includes: For the first type of slave gateway device, upon receiving at least two message fields sent alternately by the first type of master gateway device according to a preset period, determining all channel identifiers carried by the at least two message fields; The first type of master gateway device supports a first working mode and a second working mode, the first type of slave gateway device supports a second working mode, and all the channel identifiers include a first identifier for supporting a first uplink rate and a second identifier for supporting a second uplink rate; the first uplink rate is an uplink rate corresponding to the first type of master gateway device working in the first working mode, and the second uplink rate is an uplink rate corresponding to the first type of master gateway device working in the second working mode; Determining a first operating mode supporting the first uplink rate as the target operating mode; Obtaining configuration information sent by the first-type slave gateway device when activated, and sending the configuration information to the first-type master gateway device, so that the first-type master gateway device configures the first-type slave gateway device to support the second working mode; A second operating mode supporting the second uplink rate is determined as the target operating mode.
12. The communication method of the gateway device according to claim 5, characterized in that: Determining a target operating mode that supports the target uplink rate from all the operating modes includes: For the first type of slave gateway device, upon receiving at least two message fields sent alternately by the first type of master gateway device according to a preset period, determining all channel identifiers carried by the at least two message fields; The first type of master gateway device supports a first working mode and a second working mode, the first type of slave gateway device supports a second working mode, and all the channel identifiers include a first identifier for supporting a first uplink rate and a second identifier for supporting a second uplink rate; the first uplink rate is an uplink rate corresponding to the first type of master gateway device working in the first working mode, and the second uplink rate is an uplink rate corresponding to the first type of master gateway device working in the second working mode; Determining a first operating mode supporting the first uplink rate as the target operating mode; When it is determined that the first-type slave gateway device receives another second identifier after activation is completed, restarting and activating the first-type slave gateway device; If it is determined that the first type of slave gateway device receives the second identifier when restarting and activating, a second operating mode supporting the second uplink rate is determined as the target operating mode.
13. The communication method of the gateway device according to claim 5, characterized in that: Determining a target operating mode that supports the target uplink rate from all the operating modes includes: For the third type of slave gateway device, upon receiving a message field sent by the second type of master gateway device according to a preset period, determining a channel identifier carried by the message field sent according to the preset period; Wherein, the second-type master gateway device supports the first working mode, the third-type slave gateway device supports the first working mode and the second working mode, the channel identifier includes a first identifier for supporting a first uplink rate and a second identifier for supporting a second uplink rate, the first uplink rate is the uplink rate corresponding to the second-type master gateway device working in the first working mode, and the second uplink rate is the uplink rate corresponding to the second-type master gateway device working in the second working mode; For a slave gateway device in the third type of slave gateway devices that supports the first working mode, if it is determined that the slave gateway device that supports the first working mode receives the first identifier, determining the first working mode that supports the first uplink rate as the target working mode; For the slave gateway device supporting the second working mode in the third category of slave gateway devices, if it is determined that the slave gateway device supporting the second working mode has received the first identifier and has not received the second identifier, the first working mode supporting the first uplink rate is determined as the target working mode.
14. The communication method of the gateway device according to any one of claims 2 to 13, characterized in that: The manner in which the message field carries the channel identifier includes at least one of the following: carrying the channel identifier through a sequence number request field; carrying the channel identifier through a PLOAM field.
15. The communication method of the gateway device according to claim 14, characterized in that: The method further comprises: In the case where the channel identifier is carried by a PLOAM field, determining extended burst length information from the PLOAM field; Determine a target uplink rate indicated by a channel identifier carried by the message field, and determine a target operating mode of a slave gateway device that supports the target uplink rate, wherein the determining the target uplink rate indicated by the channel identifier carried by the message field, and determining the target operating mode of a slave gateway device that supports the target uplink rate, includes: A target uplink rate indicated by the extended burst length information is determined, and a target operating mode of the slave gateway device that supports the target uplink rate is determined.
16. The communication method of a gateway device according to any one of claims 1 to 13, characterized in that: The slave gateway device communicates with the master gateway device according to the target working mode, including: Determining an uplink rate of the working mode of the slave gateway device when performing a power-on operation; In the case of determining that the master gateway device supports the uplink rate of the working mode of the slave gateway device when performing a power-on operation, the slave gateway device communicates with the master gateway device according to the target working mode; In a case where it is determined that the master gateway device does not support the uplink rate of the working mode of the slave gateway device when performing a power-on operation, obtaining external configuration information; The uplink rate of the working mode of the slave gateway device when it is powered on is switched based on the external configuration information until the master gateway device supports the uplink rate of the working mode of the slave gateway device when it is powered on.
17. The communication method of a gateway device according to any one of claims 1 to 13, characterized in that: After the slave gateway device communicates with the master gateway device according to the target working mode, the method further includes: In response to a startup instruction for starting the slave gateway device, acquiring an activation process preset for the slave gateway device; Activate the slave gateway device according to the activation process.
18. A communication system of a gateway device, characterized in that: include: A master gateway device and a slave gateway device, wherein the slave gateway device is used to communicate with the master gateway device according to a target working mode, wherein the target working mode is determined based on an uplink rate supported by the master gateway device and an uplink rate supported by the slave gateway device.
19. A computer-readable storage medium, characterized in that: The storage medium stores a computer program, wherein the computer program is configured to execute the method according to any one of claims 1 to 17 when executed.
20. An electronic device, characterized in that: The method comprises a memory and a processor, wherein the memory stores a computer program, and the processor is configured to execute the method according to any one of claims 1 to 17 through the computer program.
Citation Information
Cited By
Information interaction method, rate adjustment method, FTTR device, medium and program product
CN122579009A
Communication method and system for gateway device, and storage medium and electronic apparatus
EP4664862A1
Communication method and system for gateway device, and storage medium and electronic apparatus
WO2025016076A1