FTTR gateway upgrade method, gateway device, system and computer readable storage medium
Centrally managing the version upgrade of FTTR gateway equipment through the main gateway equipment solves the problem of difficulty in upgrading the version of FTTR gateway equipment, reduces operation and maintenance costs and improves security.
Patent Information
- Application Number
- CN202410603827.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-15
- Publication Date
- 2024-08-27
- Estimated Expiration
- 2044-05-15
AI Technical Summary
It is difficult to upgrade the version of FTTR gateway equipment, which leads to high operation and maintenance costs and an increased risk of version incompatibility.
Obtain the upgrade version information and gateway version information of the slave gateway device through the master gateway device, determine the target slave gateway device to be upgraded, and send an upgrade query message to upgrade its version to the corresponding gateway upgrade version, achieving centralized management and safe upgrade.
It reduces the operation and maintenance costs of the slave gateway device, reduces the risk of exceptions due to version incompatibility, and improves the security and efficiency of version upgrades.
Smart Images

Figure CN118175464B
Abstract
Description
Technical Field
[0001] The embodiments of the present application relate to the field of communication technology, and in particular to a FTTR gateway upgrade method, gateway device, system and computer-readable storage medium. Background Art
[0002] Fiber to the Room (FTTR) is a network architecture that extends a fiber optic network to a user's home or business building to provide high-speed broadband access services. In the FTTP architecture, the optical fiber will be extended all the way to the user's room or building, usually converted by an optical network terminal (ONT) or optical network unit (ONU) so that the user can connect to the fiber optic network.
[0003] With the application and popularization of fiber to the room - home (FTTR-H) in home scenarios and fiber to the room - business (FTTR-B) in government and enterprise scenarios, it is difficult to upgrade the version of the gateway device due to its large scale, difficulty in server management, and high consumption of server resources (bandwidth, memory, etc.), which increases the operation and maintenance cost of the gateway device. Summary of the invention
[0004] The embodiments of the present application provide a FTTR gateway upgrade method, gateway device, system and computer-readable storage medium, which are used to at least solve the problem of difficulty in upgrading the gateway device version in the related art.
[0005] In a first aspect, an embodiment of the present application provides an FTTR gateway upgrade method, which is applied to a master gateway device, including: obtaining upgrade version information of at least one slave gateway device, and obtaining gateway version information of the at least one slave gateway device; determining a target slave gateway device to be upgraded in the at least one slave gateway device based on the upgrade version information and the gateway version information; sending an upgrade query message to the target slave gateway device, so that the target slave gateway device upgrades the version of the target slave gateway device to the gateway upgrade version corresponding to the upgrade version information according to the upgrade query message.
[0006] In the second aspect, an embodiment of the present application provides an FTTR gateway upgrade method, which is applied to a slave gateway device, including: receiving an upgrade query message sent by a master gateway device; wherein the upgrade query message is sent by the master gateway device when it is determined that the slave gateway device is a target slave gateway device to be upgraded based on the upgrade version information of the slave gateway device and the gateway version information of the slave gateway device; and upgrading the version of the slave gateway device to the gateway upgrade version corresponding to the upgrade version information according to the upgrade query message.
[0007] In a third aspect, an embodiment of the present application provides a gateway device, which includes a processor and a memory, wherein the memory stores programs or instructions that can be run on the processor, and when the program or instructions are executed by the processor, the steps of the method described in the first aspect or the second aspect above are implemented.
[0008] In a fourth aspect, an embodiment of the present application provides a gateway upgrade system, comprising a master gateway device and multiple slave gateway devices, wherein the master gateway device is communicatively connected to the multiple slave gateway devices; the master gateway device is used to execute the steps of the method described in the first aspect above, and the slave gateway device is used to execute the steps of the method described in the second aspect above.
[0009] In a fifth aspect, an embodiment of the present application provides a computer-readable storage medium, on which a program or instruction is stored. When the program or instruction is executed by a processor, the steps of the method described in the first aspect or the second aspect above are implemented.
[0010] In the embodiment of the present application, the master gateway device obtains the upgrade version information of at least one slave gateway device, and obtains the gateway version information of at least one slave gateway device; determines the target slave gateway device to be upgraded in at least one slave gateway device according to the upgrade version information and the gateway version information; sends an upgrade query message to the target slave gateway device, so that the target slave gateway device upgrades the version of the target slave gateway device to the gateway upgrade version corresponding to the upgrade version information according to the upgrade query message. In this way, by determining the target slave gateway device to be upgraded through the master gateway device, and sending an upgrade query message to enable the target slave gateway device to upgrade the version, centralized management of the slave gateway device version upgrade can be achieved, the operation and maintenance cost of the slave gateway device can be reduced, and at the same time, the risk of abnormality of the slave gateway device due to version incompatibility can be reduced, and the security of the slave gateway device version upgrade can be improved.
[0011] It should be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present application. BRIEF DESCRIPTION OF THE DRAWINGS
[0012] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.
[0013] Figure 1 A schematic diagram of an application scenario provided by an embodiment of the present application is shown;
[0014] Figure 2 A schematic diagram of a process of upgrading the FTTR gateway provided in an embodiment of the present application is shown;
[0015] Figure 3a One of the schematic diagrams of AP Capability Report extended TLV structure coding provided in an embodiment of the present application is shown;
[0016] Figure 3b The second schematic diagram of the AP Capability Report extended TLV structure encoding provided in the embodiment of the present application is shown;
[0017] Figure 4a One of the schematic diagrams of Link metric Query extended TLV structure encoding provided in an embodiment of the present application is shown;
[0018] Figure 4b The second schematic diagram of the Link metric Query extended TLV structure encoding provided by the embodiment of the present application is shown;
[0019] Figure 5a One of the schematic diagrams of Link metric Report extended TLV structure encoding provided in an embodiment of the present application is shown;
[0020] Figure 5b The second schematic diagram of the Link metric Report extended TLV structure encoding provided by the embodiment of the present application is shown;
[0021] Figure 6 Another schematic diagram of the process of upgrading the FTTR gateway provided in the embodiment of the present application is shown;
[0022] Figure 7 A schematic diagram of the process of a method for upgrading a slave gateway device by a master gateway device agent provided in an embodiment of the present application is shown;
[0023] Figure 8 A schematic diagram of the structure of a gateway device provided in an embodiment of the present application is shown. DETAILED DESCRIPTION
[0024] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, the same numbers in different drawings represent the same or similar elements unless otherwise indicated. The implementations described in the following exemplary embodiments do not represent all implementations consistent with the present application. Instead, they are merely examples of devices and methods consistent with some aspects of the present application as detailed in the appended claims.
[0025] With the application and popularization of FTTR-H in home scenarios and FTTR-B in government and enterprise scenarios, gateway devices have become a bottleneck in operation and maintenance due to their large scale, difficulty in server management, and high consumption of server resources (bandwidth, memory, etc.). In particular, the full upgrade of gateway device versions poses a great challenge to the server's processing speed and business function stability.
[0026] In view of the problems existing in the process of upgrading the version of the FTTR slave gateway device, the embodiment of the present application provides a FTTR gateway upgrading method, which uses the FTTR master gateway device to upgrade the slave gateway device version, that is, the master gateway device determines the target slave gateway device to be upgraded, and sends an upgrade query message to enable the target slave gateway device to upgrade the version, so as to realize the centralized management of the slave gateway device version upgrade and reduce the operation and maintenance cost of the slave gateway device. Figure 1 As shown, the gateway upgrade system provided by the embodiment of the present application includes a server, a master gateway device and a slave gateway device; wherein the master gateway device includes FTTR master gateway A and FTTR master gateway N, and the slave gateway devices include FTTR slave gateway A1, FTTR slave gateway A2, FTTR slave gateway An, FTTR slave gateway N1, and FTTR slave gateway Nn; the server is used to manage and maintain the master gateway device, and the master gateway device is used to complete the upgrade function of the slave gateway device through protocols such as IEEE 1905.1a. When a large number of slave gateway devices in the entire network need to be upgraded at the same time, the server does not need to manage all slave gateway devices and issue a large number of upgrade requests, but only needs to issue upgrade requests to all master gateway devices in the slave gateway networking topology, thereby reducing the complexity of the slave gateway device version upgrade and improving the efficiency of the slave gateway device version upgrade.
[0027] See also Figure 2 , Figure 2 A schematic diagram of a process flow of the FTTR gateway upgrade method provided in an embodiment of the present application is shown. The method can be applied to Figure 1 In the application scenario shown, it can be specifically applied to the main gateway device, such as Figure 2 As shown, the method 200 may include the following steps:
[0028] S201: Acquire upgrade version information of at least one slave gateway device, and acquire gateway version information of the at least one slave gateway device.
[0029] Among them, the upgrade version information may include the upgrade version number and applicable device model, etc.; the gateway version information of the slave gateway device may include the slave gateway device model, slave gateway version number and MAC information, etc.
[0030] In a specific implementation, the master gateway device can automatically check whether a new gateway upgrade version is available on the server regularly to obtain the upgrade version information of the new gateway upgrade version; it can also receive an upgrade request message sent by the server, download the gateway upgrade version according to the address information carried in the upgrade request message, and obtain the upgrade version information of the gateway upgrade version. For obtaining the gateway version information of the slave gateway device, the master gateway device can connect to the slave gateway device through remote access and directly query its gateway version information; it can obtain the gateway version information of the slave gateway device through an API call; it can also send a query request to all slave gateway devices in the networking topology to obtain their gateway version information. In this way, by obtaining the upgrade version information of at least one slave gateway device through the master gateway device, and obtaining the gateway version information of at least one slave gateway device, centralized management of the slave gateway device version upgrade can be achieved, reducing the operation and maintenance costs of the slave gateway devices.
[0031] S202: Determine a target slave gateway device to be upgraded in the at least one slave gateway device according to the upgrade version information and the gateway version information.
[0032] In a specific implementation, the master gateway device can determine whether the gateway upgrade version is compatible with the version of the slave gateway device based on the upgrade version information and the gateway version information, thereby determining a target slave gateway device to be upgraded in at least one slave gateway device. In this way, the risk of abnormalities occurring in the slave gateway device due to version incompatibility can be reduced, thereby improving the security of the slave gateway device version upgrade.
[0033] S203: Send an upgrade query message to the target slave gateway device, so that the target slave gateway device upgrades the version of the target slave gateway device to the gateway upgrade version corresponding to the upgrade version information according to the upgrade query message.
[0034] In the specific implementation, after the master gateway device determines the target slave gateway device to be upgraded among the slave gateway devices, it sends an upgrade query message to the target slave gateway device; the target slave gateway device receives the upgrade query message, upgrades its own version according to the upgrade query message, and upgrades it to the gateway upgrade version corresponding to the upgrade version information.
[0035] According to the above steps, the embodiment of the present application determines the target slave gateway device to be upgraded through the master gateway device, and sends an upgrade query message to enable the target slave gateway device to upgrade the version. This can achieve centralized management of slave gateway device version upgrades, reduce the operation and maintenance costs of slave gateway devices, and at the same time reduce the risk of abnormalities in slave gateway devices due to version incompatibility, thereby improving the security of slave gateway device version upgrades.
[0036] In a possible implementation, in S201, obtaining upgrade version information of at least one slave gateway device includes:
[0037] In response to the upgrade request message sent by the server, first address information in the upgrade request message is obtained; a gateway upgrade version of the at least one slave gateway device is downloaded according to the first address information, and upgrade version information of the gateway upgrade version is obtained.
[0038] In an embodiment of the present application, the server sends an upgrade request message to the main gateway device, and the upgrade request message carries first address information, wherein the first address information can be a uniform resource locator (Uniform Resource Locator, URL); after receiving the upgrade request message, the main gateway device can immediately return an upgrade response message to the server.
[0039] Furthermore, the master gateway device downloads the upgrade version of the slave gateway according to the received first address information. While downloading the gateway upgrade version, the master gateway device stores the gateway upgrade version in the memory. After the download is completed, the master gateway device returns a download response message to the server. The download response message may include download success status information (for example, status=0) and obtain the upgrade version information of the gateway upgrade version.
[0040] In this way, the main gateway device responds to the upgrade request message sent by the server, downloads the gateway upgrade version of the slave gateway device according to the first address information included in the upgrade request message, and obtains the upgrade version information of the gateway upgrade version, which can ensure that the main gateway device obtains accurate upgrade version information and avoids version confusion or errors.
[0041] In a possible implementation, in S201 above, obtaining gateway version information of the at least one slave gateway device includes:
[0042] Send a query request message to the at least one slave gateway device; obtain a query response message fed back by the at least one slave gateway device based on the query request message, wherein the query response message includes gateway version information of each slave gateway device.
[0043] In an embodiment of the present application, the master gateway device can actively trigger a wireless access point (AP) capability query, and send a query request message to all slave gateway devices in the networking topology. In a specific application, the query request message can be a query message of the IEEE 1905.1a protocol type AP Capability Query. The slave gateway device receives the query request message sent by the master gateway device, and based on the query response message fed back by the query request message, in a specific application, the query response message can be an AP Capability Report message of the IEEE 1905.1a protocol type.
[0044] The query response message includes the gateway version information of each slave gateway device, such as Figure 3a and 3b As shown in the figure, the APCapability Report message contains a custom TLV (Type-Length-Value) field. The TLV field customizes a 1-byte (8-bit) tlvType with a value of 0xF0; a 2-byte tlvLength with a value of the entire TLV length; and a 48-byte tlvValue with a value of the gateway version information from the gateway device.
[0045] In a possible implementation, the upgrade version information includes an upgrade version number and an applicable device model, and the gateway version information of at least one slave gateway device includes a slave gateway device model and a slave gateway version number of at least one slave gateway device;
[0046] In the above S202, determining the target slave gateway device to be upgraded in the at least one slave gateway device according to the upgrade version information and the gateway version information includes:
[0047] The slave gateway device corresponding to the gateway device model matching the applicable device model is determined as a candidate slave gateway device; and the candidate slave gateway device whose slave gateway version number is lower than the upgrade version number is determined as the target slave gateway device.
[0048] In an embodiment of the present application, the master gateway device can extract all slave gateway version numbers, slave gateway device models and MAC information within the networking topology, and compare them with the upgrade version number and applicable device model in the memory. The master gateway device first compares the slave gateway device model. When the applicable device model of the gateway upgrade version does not match the slave gateway device model of the slave gateway device, the master gateway device does not process and continues to match other slave gateway devices until the slave gateway device models of all slave gateway devices are compared, and the slave gateway device corresponding to the gateway device model that matches the applicable device model is determined as a candidate slave gateway device. Then the master gateway device compares the slave gateway version number of the slave gateway device again, and only when the extracted slave gateway version number is lower than the upgrade version number in the memory, the candidate slave gateway device is determined as the target slave gateway device.
[0049] In this way, the master gateway device can avoid abnormalities in the slave gateway device due to downloading an incompatible gateway upgrade version by first comparing the slave gateway device model and then comparing the slave gateway version number, ensuring that the slave gateway device can communicate and operate normally after the upgrade.
[0050] In a possible implementation, the above-mentioned upgrade query message includes second address information and authentication information, wherein the second address information is used to indicate the address of the target slave gateway device to obtain the gateway upgrade version, and the authentication information is used to verify the identity and authority of the target slave gateway device.
[0051] In an embodiment of the present application, after determining the target slave gateway device, the master gateway device sends an upgrade query message to the target slave gateway device based on the MAC information. In a specific application, the upgrade query message may be a Link metric Query query message of the IEEE 1905.1a protocol type. The upgrade query message includes second address information and authentication information. The second address information may be a slave gateway version upgrade URL. Specifically, the Link metric Query query message contains a custom TLV field, and the TLV field carries the slave gateway version upgrade URL and authentication information. The master gateway also opens a random port for the target slave gateway device that needs to be upgraded to download the gateway upgrade version. Figure 4a and Figure 4b As shown in the figure, the Linkmetric Query query message contains a custom TLV field, which customizes a 1-byte tlvType with a value of 0xF1, a 2-byte tlvLength with a value of the entire TLV length, and a 64-byte tlvValue with a value of the gateway version upgrade URL and authentication information.
[0052] In a possible implementation, the upgrade query message includes an upgrade policy, and the upgrade policy is used to instruct the target slave gateway device to upgrade its version to the gateway upgrade version according to the upgrade policy.
[0053] In an embodiment of the present application, the upgrade request message sent by the server to the master gateway device may include an upgrade strategy, and the upgrade strategy is batch immediate upgrade or idle upgrade. The master gateway device can send the upgrade strategy to the target slave gateway device, specifically, carry the upgrade strategy to the upgrade query message, so that the target slave gateway device upgrades the version to the gateway upgrade version according to the upgrade strategy. In this way, the stability and reliability of the target slave gateway during the upgrade process can be ensured.
[0054] In a possible implementation, after the above S203, sending the upgrade query message to the target slave gateway device, the method further includes:
[0055] In response to the upgrade response message fed back by the target slave gateway device, the gateway upgrade version corresponding to the upgrade version information is deleted; wherein the upgrade response message includes status indication information, and the status indication information is used to indicate that the target slave gateway device is successfully upgraded.
[0056] In the embodiment of the present application, after the target slave gateway device is successfully upgraded, an upgrade response message is fed back to the master gateway device to notify the master gateway device that the version upgrade is successful. In a specific application, the upgrade response message can be a Link metric Report message of the IEEE 1905.1a protocol type, in which the message contains a custom TLV field, and the field carries status indication information (for example, status=0), which is used to indicate that the target slave gateway device has been successfully upgraded. Figure 5a and Figure 5b As shown, the TLV field of the Link metric Report message customizes a 1-byte tlvType with a value of 0xF2; a 2-byte tlvLength with a value of the entire TLV length; and a 1-byte tlvValue with a value of status indication information. In response to the upgrade response message fed back by the target slave gateway device, the master gateway device closes the upgrade port channel and deletes the gateway upgrade version in the memory to avoid version confusion or errors.
[0057] The embodiment of the present application provides a FTTR gateway upgrade method, which is applied to a master gateway device, including: obtaining upgrade version information of at least one slave gateway device, and obtaining gateway version information of at least one slave gateway device; determining a target slave gateway device to be upgraded in at least one slave gateway device according to the upgrade version information and the gateway version information; sending an upgrade query message to the target slave gateway device, so that the target slave gateway device upgrades the version of the target slave gateway device to the gateway upgrade version corresponding to the upgrade version information according to the upgrade query message. In this way, centralized management of slave gateway device version upgrades can be achieved, the operation and maintenance costs of slave gateway devices can be reduced, and the risk of abnormalities in slave gateway devices due to version incompatibility can be reduced, thereby improving the security of slave gateway device version upgrades.
[0058] See also Figure 6 , Figure 6 Another flow chart of the FTTR gateway upgrade method provided in the embodiment of the present application is shown. The method can be applied to Figure 1 In the application scenario shown, it can be specifically applied to a slave gateway device, such as Figure 6 As shown, the method 600 may include the following steps:
[0059] S601: receiving an upgrade query message sent by a primary gateway device.
[0060] The upgrade query message is sent by the master gateway device when it determines that the slave gateway device is the target slave gateway device to be upgraded based on the upgrade version information of the slave gateway device and the gateway version information of the slave gateway device.
[0061] S602: Upgrading the version of the slave gateway device to the gateway upgrade version corresponding to the upgrade version information according to the upgrade query message.
[0062] In a possible implementation, in the above S601, before receiving the upgrade query message sent by the master gateway device, the process further includes:
[0063] Receiving a version query message sent by the master gateway device;
[0064] Based on the version query message, a query response message is sent to the master gateway device, wherein the query response message includes the gateway version information of the slave gateway device.
[0065] In a possible implementation, the upgrade query message includes the second address information and the authentication information. In the above S602, upgrading the version of the slave gateway device to the gateway upgrade version corresponding to the upgrade version information according to the upgrade query message includes:
[0066] When it is determined according to the authentication information that the slave gateway device has passed the authentication, the gateway upgrade version is obtained according to the second address information.
[0067] In a possible implementation, in the above S602, after the target is upgraded from the version of the gateway device to the gateway upgrade version corresponding to the upgrade version information according to the upgrade query message, the method further includes:
[0068] An upgrade response message is sent to the master gateway device, wherein the upgrade response message includes status indication information, and the status indication information is used to indicate that the upgrade of the slave gateway device is successful.
[0069] The embodiment of the present application provides a FTTR gateway upgrade method, which is applied to a slave gateway device, including: receiving an upgrade query message sent by a master gateway device; wherein the upgrade query message is sent by the master gateway device when the slave gateway device is determined to be a target slave gateway device to be upgraded based on the upgrade version information of the slave gateway device and the gateway version information of the slave gateway device; and upgrading the version of the slave gateway device to the gateway upgrade version corresponding to the upgrade version information according to the upgrade query message. In this way, the master gateway device determines the target slave gateway device to be upgraded, and when the slave gateway device is determined to be the target slave gateway device to be upgraded, an upgrade query message is sent to enable the slave gateway device to upgrade the version, thereby realizing centralized management of the slave gateway device version upgrade, reducing the operation and maintenance cost of the slave gateway device, and reducing the risk of abnormalities of the slave gateway device due to version incompatibility, thereby improving the security of the slave gateway device version upgrade.
[0070] The embodiment of the present application also provides a gateway upgrade system, including a master gateway device and multiple slave gateway devices, wherein the master gateway device is connected to the multiple slave gateway devices for communication; the master gateway device is used to perform the above Figure 2 The steps of the method described above, the slave gateway device is used to perform the above Figure 6 The steps of the method described in .
[0071] In an exemplary embodiment, if Figure 7 As shown, the gateway upgrade system adopts the method of upgrading the slave gateway device by the master gateway device agent, which specifically includes the following steps:
[0072] Step 701: The server sends an upgrade request message Server request to the FTTR main gateway, wherein the upgrade request message carries an upgrade URL (i.e. the first address information mentioned above) and an upgrade strategy;
[0073] Step 702: After receiving the upgrade request message, the FTTR main gateway immediately returns a response message Server response to the server;
[0074] Step 703: The FTTR master gateway downloads the gateway upgrade version according to the received upgrade URL. The FTTR master gateway stores the gateway upgrade version in the memory while downloading it. After the download is complete, the master gateway returns a download response message (including download success status information status=0) to the server.
[0075] Step 704: the FTTR master gateway actively triggers an AP capability query, and sends a query message of IEEE 1905.1a protocol type AP Capability Query (i.e., the query request message described above) to all FTTR slave gateways in the networking topology;
[0076] Step 705: The FTTR slave gateway replies with an AP Capability Report message (i.e., the query response message) of the IEEE 1905.1a protocol type to the FTTR master gateway, wherein the AP Capability Report message carries the slave gateway device model and the slave gateway version number;
[0077] Step 706: The FTTR master gateway extracts the slave gateway device models and slave gateway version numbers of all FTTR slave gateways, and compares them with the upgrade version numbers and applicable device models in the memory;
[0078] Step 707: When the FTTR master gateway determines that the FTTR slave gateway is the target slave gateway, it sends a Link metric Query message (i.e., the upgrade query message mentioned above) of the IEEE 1905.1a protocol type to the target slave gateway, wherein the Link metric Query message carries the slave gateway version upgrade URL (i.e., the second address information mentioned above) and authentication information, and the FTTR master gateway simultaneously opens a random port for the target slave gateway that needs to be upgraded to download the gateway upgrade version;
[0079] Step 708: The target slave gateway extracts the slave gateway version upgrade URL and authentication information of the Link metric Query query message, uses the tftp or ftp protocol to download the gateway upgrade version to the FTTR master gateway, and performs version upgrade according to the upgrade strategy after the download is successful;
[0080] Step 709: After the target slave gateway is successfully upgraded, it returns a Link metric Report message (i.e., the upgrade response message described above) of the IEEE 1905.1a protocol type to the FTTR master gateway, wherein the Link metric Report message carries status indication information, and the status indication information is used to indicate that the upgrade of the target slave gateway device is successful;
[0081] Step 710: After receiving the Link metric Report messages carrying status indication information sent by all the target slave gateways to be upgraded, the FTTR master gateway closes the upgrade port channel and deletes the gateway upgrade version in the memory.
[0082] Through the above method, centralized management of slave gateway device version upgrades can be achieved, reducing the operation and maintenance costs of slave gateway devices, while reducing the risk of abnormalities in slave gateway devices due to version incompatibility, and improving the security of slave gateway device version upgrades.
[0083] Figure 8 The schematic diagram of the structure of the gateway device provided by the embodiment of the present application is shown. Referring to the figure, at the hardware level, the gateway device 800 includes a processor 810, and optionally, includes an internal bus 820, a network interface 830, and a memory 840. Among them, the memory 840 may include a memory 841, such as a high-speed random access memory (Random-Access Memory, RAM), and may also include a non-volatile memory 842 (non-volatile memory), such as at least one disk storage, etc. Of course, the gateway device 800 may also include hardware required for other services.
[0084] The processor 810, the network interface 830 and the memory may be interconnected via an internal bus 820, which may be an Industry Standard Architecture (ISA) bus, a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus, etc. The bus may be divided into an address bus, a data bus, a control bus, etc. For ease of representation, only one bidirectional arrow is used in the figure, but it does not mean that there is only one bus or one type of bus.
[0085] The memory 840 stores programs. Specifically, the programs may include program codes, and the program codes include computer operation instructions. The memory 840 may include a memory 841 and a non-volatile memory 842, and provide instructions and data to the processor 810.
[0086] The processor 810 reads the corresponding computer program from the non-volatile memory 842 into the memory and then runs it, forming a device for locating the target user at the logical level. The processor 810 executes the program stored in the memory and specifically performs: Figure 2 or Figure 6 or Figure 7 The method disclosed in the illustrated embodiment realizes the functions and beneficial effects of each method described in the foregoing method embodiments, which will not be described in detail here.
[0087] The above application Figure 2 or Figure 6 or Figure 7 The method disclosed in the illustrated embodiment can be applied to the processor 810 or implemented by the processor 810. The processor 810 may be an integrated circuit chip with signal processing capabilities. In the implementation process, each step of the above method can be completed by the hardware integrated logic circuit or software instructions in the processor 810. The above processor 810 can be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it can also be a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field-programmable gate array (FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components. The methods, steps and logic block diagrams disclosed in the embodiments of the present application can be implemented or executed. The general-purpose processor can be a microprocessor or the processor can also be any conventional processor, etc. The steps of the method disclosed in the embodiments of the present application can be directly embodied as a hardware decoding processor for execution, or a combination of hardware and software modules in the decoding processor for execution. The software module can be located in a mature storage medium in the field such as random access memory, flash memory, read-only memory, programmable read-only memory or electrically erasable programmable memory, register, etc. The storage medium is located in the memory, and the processor reads the information in the memory and completes the steps of the above method in combination with its hardware.
[0088] The computer device can also execute the methods described in the foregoing method embodiments, and realize the functions and beneficial effects of the methods described in the foregoing method embodiments, which will not be repeated here.
[0089] Of course, in addition to software implementation methods, the gateway device of the present application does not exclude other implementation methods, such as logic devices or a combination of software and hardware, etc. That is to say, the execution subject of the following processing flow is not limited to each logical unit, but can also be hardware or logic devices.
[0090] The embodiment of the present application also provides a computer-readable storage medium, wherein the computer-readable medium stores one or more programs, and when the one or more programs are executed by a gateway device including multiple application programs, the gateway device executes Figure 2 or Figure 6 or Figure 7 The method disclosed in the illustrated embodiment realizes the functions and beneficial effects of each method described in the foregoing method embodiments, which will not be described in detail here.
[0091] The computer-readable storage medium includes a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, etc.
[0092] Furthermore, an embodiment of the present application also provides a computer program product, the computer program product comprising a computer program stored on a non-transitory computer-readable storage medium, the computer program comprising program instructions, and when the program instructions are executed by a computer, the following process is implemented: Figure 2 or Figure 6 or Figure 7 The method disclosed in the illustrated embodiment realizes the functions and beneficial effects of each method described in the foregoing method embodiments, which will not be described in detail here.
[0093] The embodiments of the present application can be applied to various scenarios of cooperation or interconnection of gateway devices, including: cooperation and interconnection between mobile phones and laptops / tablet computers; cooperation and interconnection between mobile terminals and smart TVs / displays; cooperation and interconnection between mobile phones or tablet computers and in-vehicle entertainment systems; cooperation and interconnection between mobile terminals and smart conference systems, etc., so as to meet the needs of users in various scenarios such as smart homes, smart offices, and smart travel.
[0094] In short, the above is only a preferred embodiment of the present application and does not limit the protection scope of the present application. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application shall be included in the protection scope of the present application.
[0095] The systems, devices, modules or units described in the above embodiments may be implemented by computer chips or entities, or by products with certain functions. A typical implementation device is a computer. Specifically, the computer may be, for example, a personal computer, a laptop computer, a cellular phone, a camera phone, a smart phone, a personal digital assistant, a media player, a navigation device, an email device, a game console, a tablet computer, a wearable device, or a combination of any of these devices.
[0096] Computer readable media include permanent and non-permanent, removable and non-removable media that can be implemented by any method or technology to store information. Information can be computer readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices or any other non-transmission media that can store information that can be accessed by a computing device. As defined herein, computer readable media does not include temporary computer readable media (transitory media), such as modulated data signals and carrier waves.
[0097] It should also be noted that the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, commodity or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, commodity or device. In the absence of more restrictions, the elements defined by the sentence "comprises a ..." do not exclude the existence of other identical elements in the process, method, commodity or device including the elements.
[0098] Each embodiment in this specification is described in a progressive manner, and the same or similar parts between the embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the system embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.
Claims
1. A FTTR gateway upgrade method, characterized in that: Applied to a main gateway device, the method comprises: Acquire upgrade version information of at least one slave gateway device, and acquire gateway version information of the at least one slave gateway device; Determine a target slave gateway device to be upgraded in the at least one slave gateway device according to the upgrade version information and the gateway version information; Sending an upgrade query message to the target slave gateway device, so that the target slave gateway device upgrades the version of the target slave gateway device to the gateway upgrade version corresponding to the upgrade version information according to the upgrade query message; Wherein, the obtaining gateway version information of the at least one slave gateway device includes: Sending a query request message to the at least one slave gateway device; the query request message includes a query message of IEEE 1905.1a protocol type AP Capability Query; Obtaining a query response message fed back by the at least one slave gateway device based on the query request message, wherein the query response message includes gateway version information of each slave gateway device, and the query response message includes an AP Capability Report message of the IEEE1905.1a protocol type; The upgrade version information includes the upgrade version number and the applicable device model, and the gateway version information of the at least one slave gateway device includes the slave gateway device model and the slave gateway version number of the at least one slave gateway device; The step of determining a target slave gateway device to be upgraded in the at least one slave gateway device according to the upgrade version information and the gateway version information includes: Determine a slave gateway device corresponding to a slave gateway device model that matches the applicable device model as a candidate slave gateway device; The candidate slave gateway device whose slave gateway version number is lower than the upgrade version number is determined as the target slave gateway device.
2. The method according to claim 1, characterized in that The obtaining of upgrade version information of at least one slave gateway device includes: In response to the upgrade request message sent by the server, obtaining first address information in the upgrade request message; The gateway upgrade version of the at least one slave gateway device is downloaded according to the first address information, and the upgrade version information of the gateway upgrade version is obtained.
3. The method according to any one of claims 1 to 2, characterized in that: The upgrade query message includes second address information and authentication information, wherein the second address information is used to indicate the address of the target slave gateway device to obtain the gateway upgrade version, and the authentication information is used to verify the identity and authority of the target slave gateway device.
4. The method according to any one of claims 1 to 2, characterized in that: The upgrade query message includes an upgrade policy, and the upgrade policy is used to instruct the target slave gateway device to upgrade its version to the gateway upgrade version according to the upgrade policy.
5. The method according to any one of claims 1 to 2, characterized in that: After sending the upgrade query message to the target slave gateway device, the method further includes: In response to an upgrade response message fed back by the target from the gateway device, deleting the gateway upgrade version corresponding to the upgrade version information; The upgrade response message includes status indication information, and the status indication information is used to indicate that the target is successfully upgraded from the gateway device.
6. A method for upgrading an FTTR gateway, characterized in that: Applied to a slave gateway device, the method comprises: Receiving an upgrade query message sent by a master gateway device; wherein the upgrade query message is sent by the master gateway device when the slave gateway device is determined to be a target slave gateway device to be upgraded based on the upgrade version information of the slave gateway device and the gateway version information of the slave gateway device; Upgrading the version of the slave gateway device to the gateway upgrade version corresponding to the upgrade version information according to the upgrade query message; The upgrade version information includes the upgrade version number and the applicable device model, and the gateway version information of the slave gateway device includes the slave gateway device model and the slave gateway version number of the slave gateway device; the master gateway device determines the slave gateway device corresponding to the slave gateway device model matching the applicable device model as the candidate slave gateway device; Determine the candidate slave gateway device whose slave gateway version number is lower than the upgrade version number as the target slave gateway device; Before receiving the upgrade query message sent by the main gateway device, the method further includes: receiving a query request message sent by the master gateway device; the query request message includes a query message of IEEE 1905.1a protocol type AP Capability Query; Based on the query request message, a query response message is sent to the master gateway device, the query response message includes the gateway version information of the slave gateway device, and the query response message includes an AP Capability Report message of IEEE 1905.1a protocol type.
7. The method according to claim 6, characterized in that The upgrade query message includes the second address information and the authentication information, and the upgrading the version of the slave gateway device to the gateway upgrade version corresponding to the upgrade version information according to the upgrade query message includes: When it is determined according to the authentication information that the slave gateway device has passed the authentication, the gateway upgrade version is obtained according to the second address information.
8. The method according to any one of claims 6 to 7, characterized in that: After the target is upgraded from the version of the gateway device to the gateway upgrade version corresponding to the upgrade version information according to the upgrade query message, the method further includes: An upgrade response message is sent to the master gateway device, wherein the upgrade response message includes status indication information, and the status indication information is used to indicate that the upgrade of the slave gateway device is successful.
9. A gateway device, characterized in that: The gateway device comprises a processor and a memory, wherein the memory stores a program or instruction that can be run on the processor, and when the program or instruction is executed by the processor, the steps of the method according to any one of claims 1 to 8 are implemented.
10. A gateway upgrade system, characterized in that: It comprises a master gateway device and multiple slave gateway devices, wherein the master gateway device is communicatively connected with the multiple slave gateway devices; the master gateway device is used to execute the steps of the method described in any one of claims 1 to 5, and the slave gateway devices are used to execute the steps of the method described in any one of claims 6 to 8.
11. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a program or instruction, and when the program or instruction is executed by a processor, the steps of the method according to any one of claims 1 to 8 are implemented.
