Method, system and device for upgrading sub-gateway
By using VXLAN channel to transmit upgrade shard packets in multicast mode in FTTR networking mode, the problem of low upgrade efficiency of traditional OMCI channels is solved, and OLT is directly batch upgraded to the subgateway, improving the upgrade efficiency.
Patent Information
- Application Number
- CN202211105504.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-09-09
- Publication Date
- 2025-04-18
- Estimated Expiration
- 2042-09-09
AI Technical Summary
In FTTR networking mode, OLT uses the traditional OMCI channel to upgrade the firmware version of the subgateway, resulting in low upgrade efficiency.
N upgrade shard messages are sent through the VXLAN channel in multicast mode. The target subgateway judges and stores these messages. If N shard messages are received, a complete upgrade packet will be formed for upgrading.
It realizes OLT directly and batch upgrade of sub-gateways, improves the upgrade efficiency of sub-gateways in FTTR networking mode, and solves the problem that traditional OMCI takes a long time to deliver upgrade packets.
Smart Images

Figure CN116319313B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of optical communication technology, and in particular to a method, system and device for upgrading a sub-gateway. Background Art
[0002] In the current FTTR networking mode, OLT manages the main gateway through the OMCI channel, and the main gateway manages the sub-gateway through the OMCI channel. If OLT needs to obtain information about the sub-gateway, it can only be managed indirectly through the FTTR main gateway. As the intelligent gateway integrates more and more intelligent services and plug-ins, the firmware version of the gateway is getting larger and larger. In the FTTR networking mode, OLT uses the traditional OMCI channel to upgrade the firmware version of the sub-gateway. It needs to pass the message to the main gateway, and then the main gateway upgrades the sub-gateway point-to-point; and the OMCI channel transmission message is limited by the OMCI message format, and the length of each message is limited. It takes a long time to upgrade the transmission file, so the upgrade efficiency is low. Summary of the invention
[0003] The main purpose of the present invention is to provide a method, system and device for upgrading a sub-gateway, aiming to solve the technical problem that in the existing solution, in the FTTR networking mode, the OLT uses a traditional OMCI channel to upgrade the firmware version of the sub-gateway, and its upgrading efficiency is low.
[0004] In a first aspect, the present invention provides a method for upgrading a sub-gateway, the method for upgrading a sub-gateway comprising the following steps:
[0005] The target sub-gateway receives N upgrade fragment messages sent by the OLT in multicast mode through the VXLAN channel;
[0006] The target sub-gateway determines whether the received upgrade fragment message has been stored;
[0007] If not stored, the target sub-gateway stores the received upgrade fragment message;
[0008] If the target sub-gateway stores N upgrade fragment messages, a complete upgrade package is formed based on the N upgrade fragment messages, and the upgrade is performed based on the complete upgrade package.
[0009] Optionally, before the step of the target sub-gateway receiving N upgrade fragment messages sent by the OLT in a multicast manner through the VXLAN channel, the step further includes:
[0010] OLT sends upgrade information to the main gateway through the OMCI channel;
[0011] The OLT creates a VXLAN channel and cyclically executes the step of sending N upgrade fragment messages corresponding to the upgrade package to the target sub-gateway one by one through the VXLAN channel in multicast mode.
[0012] Optionally, the upgrade information includes upgrade version information, an IP address of a VXLAN channel, and after the OLT sends the upgrade information to the master gateway through the OMCI channel, further includes:
[0013] Each sub-gateway receives the upgrade information sent by the main gateway through the OMCI channel;
[0014] Each sub-gateway checks whether the upgraded version information is consistent with the current version information of the local end;
[0015] The target sub-gateway whose upgraded version information is inconsistent with the current version information of the local end joins the VXLAN channel based on the IP address of the VXLAN channel.
[0016] Optionally, the N upgrade fragment messages are formed by encapsulating the upgrade package into N upgrade fragment packets using the message encapsulation rules of the VXLAN channel.
[0017] Optionally, the upgrade fragment message includes a UDP message header, an IP message header, an Ethernet message header, a VXLAN message header, and an upgrade fragment packet as a payload, wherein some fields of the VXLAN message header are extended and multiplexed.
[0018] Optionally, the VXLAN message header in the upgrade fragment message includes a first field for identifying a fragment sequence number of the upgrade fragment message, a second field for identifying the upgrade message, and a third field for identifying a total number of upgrade package fragments.
[0019] Optionally, the step of the target sub-gateway determining whether the received upgrade fragment message has been stored includes:
[0020] The target sub-gateway determines the fragment sequence number of the received upgrade fragment message based on the first field in the received upgrade fragment message used to identify the fragment sequence number of the upgrade fragment message;
[0021] The target sub-gateway determines whether the received upgrade fragment message has been stored based on the fragment sequence number.
[0022] Optionally, the step of the target sub-gateway determining whether the received upgrade fragment message has been stored based on the fragment sequence number includes:
[0023] The target sub-gateway detects whether there is a target stored upgrade fragment message with a fragment sequence number consistent with the fragment sequence number in the stored upgrade fragment message;
[0024] If it exists, it is determined that the received upgrade fragment message has been stored.
[0025] In a second aspect, the present invention further provides a system for upgrading a sub-gateway, the system for upgrading a sub-gateway comprising:
[0026] Target sub-gateway, used for:
[0027] Receive N upgrade fragment messages sent by OLT in multicast mode through the VXLAN channel;
[0028] Determine whether the received upgrade fragment message has been stored;
[0029] If not stored, the target sub-gateway stores the received upgrade fragment message;
[0030] If N upgrade fragment messages are stored, a complete upgrade package is composed based on the N upgrade fragment messages, and the upgrade is performed based on the complete upgrade package.
[0031] Optionally, the system for upgrading the sub-gateway also includes an OLT and a main gateway, and the OLT is used to: send upgrade information to the main gateway through an OMCI channel;
[0032] Create a VXLAN channel and cyclically execute the step of sending N upgrade fragment messages corresponding to the upgrade package to the target sub-gateway one by one through the VXLAN channel in multicast mode.
[0033] Optionally, the upgrade information includes upgrade version information, an IP address of a VXLAN channel, and the system for upgrading the sub-gateway further includes a plurality of sub-gateways and a main gateway, wherein each sub-gateway is used to: receive upgrade information issued by the main gateway through an OMCI channel;
[0034] Check whether the upgraded version information is consistent with the current version information of this end;
[0035] The target sub-gateway whose upgraded version information is inconsistent with the current version information of the local end is used to join the VXLAN channel based on the IP address of the VXLAN channel.
[0036] Optionally, the N upgrade fragment messages are formed by encapsulating the upgrade package into N upgrade fragment packets using the message encapsulation rules of the VXLAN channel.
[0037] Optionally, the upgrade fragment message includes a UDP message header, an IP message header, an Ethernet message header, a VXLAN message header, and an upgrade fragment packet as a payload, wherein some fields of the VXLAN message header are extended and multiplexed.
[0038] Optionally, the VXLAN message header in the upgrade fragment message includes a first field for identifying a fragment sequence number of the upgrade fragment message, a second field for identifying the upgrade message, and a third field for identifying a total number of upgrade package fragments.
[0039] Optionally, the target sub-gateway is further used to: determine the fragment sequence number of the received upgrade fragment message based on the first field in the received upgrade fragment message used to identify the fragment sequence number of the upgrade fragment message;
[0040] Based on the fragment sequence number, it is determined whether the received upgrade fragment message has been stored.
[0041] Optionally, the target sub-gateway is further used to: detect whether there is a target stored upgrade fragment message with a fragment sequence number consistent with the fragment sequence number in the stored upgrade fragment message;
[0042] If it exists, it is determined that the received upgrade fragment message has been stored.
[0043] In a third aspect, the present invention also provides a device for upgrading a sub-gateway, the device for upgrading a sub-gateway comprising a processor, a memory, and a program for upgrading the sub-gateway stored in the memory and executable by the processor, wherein when the program for upgrading the sub-gateway is executed by the processor, the steps of the method for upgrading the sub-gateway as described above are implemented.
[0044] The present invention provides a method, system and device for upgrading a sub-gateway, and the method for upgrading a sub-gateway includes: the target sub-gateway receives N upgrade fragment messages sent by OLT in multicast mode through a VXLAN channel; the target sub-gateway determines whether the received upgrade fragment messages have been stored; if not, the target sub-gateway stores the received upgrade fragment messages; if the target sub-gateway stores N upgrade fragment messages, a complete upgrade package is formed based on the N upgrade fragment messages, and the upgrade is performed based on the complete upgrade package. The present invention uses a VXLAN channel to transmit upgrade messages with multicast messages to correspond to the upgraded sub-gateway, solves the problem that it takes a long time for traditional OMCI to transmit upgrade messages, realizes that OLT directly and batch upgrades sub-gateways in FTTR networking mode, and improves the upgrade efficiency of sub-gateways in FTTR networking mode. BRIEF DESCRIPTION OF THE DRAWINGS
[0045] Figure 1 A schematic diagram of the hardware structure of a device for upgrading a sub-gateway involved in an embodiment of the present invention;
[0046] Figure 2 A schematic diagram of a flow chart of a method for upgrading a sub-gateway according to an embodiment of the present invention;
[0047] Figure 3 A schematic diagram of a flow chart of multicasting a message between an OLT and a target sub-gateway in a method for upgrading a sub-gateway according to an embodiment of the present invention;
[0048] Figure 4 This is a message interaction flow chart of the OLT, the main gateway, and the sub-gateway in the first embodiment of the method for upgrading the sub-gateway of the present invention;
[0049] Figure 5 A schematic diagram of the format of an upgrade fragment message according to an embodiment of a method for upgrading a sub-gateway of the present invention;
[0050] Figure 6 A schematic diagram of upgrading the fields of the VXLAN Header in a fragment message according to an embodiment of a method for upgrading a sub-gateway of the present invention.
[0051] The realization of the purpose, functional features and advantages of the present invention will be further explained in conjunction with embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION
[0052] It should be understood that the specific embodiments described herein are only used to explain the present invention, and are not used to limit the present invention.
[0053] In a first aspect, an embodiment of the present invention provides a device for upgrading a sub-gateway.
[0054] Reference Figure 1 , Figure 1 This is a schematic diagram of the hardware structure of the device for upgrading the sub-gateway involved in the embodiment of the present invention. In the embodiment of the present invention, the device for upgrading the sub-gateway may include a processor 1001 (e.g., a central processing unit, CPU), a communication bus 1002, a user interface 1003, a network interface 1004, and a memory 1005. Among them, the communication bus 1002 is used to realize the connection and communication between these components; the user interface 1003 may include a display screen (Display), an input unit such as a keyboard (Keyboard); the network interface 1004 may optionally include a standard wired interface, a wireless interface (such as a wireless fidelity WIreless-FIdelity, WI-FI interface); the memory 1005 may be a high-speed random access memory (random access memory, RAM), or a stable memory (non-volatile memory), such as a disk storage, and the memory 1005 may optionally be a storage device independent of the aforementioned processor 1001. Those skilled in the art will understand that Figure 1 The hardware structure shown in the figure does not constitute a limitation of the present invention, and may include more or less components than those shown in the figure, or combine certain components, or arrange the components differently.
[0055] Continue to refer to Figure 1 , Figure 1The memory 1005 as a computer storage medium may include an operating system, a network communication module, a user interface module, and a sub-gateway upgrade program. The processor 1001 may call the sub-gateway upgrade program stored in the memory 1005 and execute the sub-gateway upgrade method provided in the embodiment of the present invention.
[0056] In a second aspect, an embodiment of the present invention provides a method for upgrading a sub-gateway.
[0057] Reference Figure 2 , Figure 2 The figure is a flow chart of a method for upgrading a sub-gateway according to an embodiment of the present invention.
[0058] In an embodiment of a method for upgrading a sub-gateway of the present invention, the method for upgrading a sub-gateway includes:
[0059] Step S10, the target sub-gateway receives N upgrade fragment messages sent by the OLT in multicast mode through the VXLAN channel;
[0060] Step S20, the target sub-gateway determines whether the received upgrade fragment message has been stored;
[0061] Step S30: If not stored, the target sub-gateway stores the received upgrade fragment message;
[0062] Step S40: If the target sub-gateway stores N upgrade fragment messages, a complete upgrade package is formed based on the N upgrade fragment messages, and the upgrade is performed based on the complete upgrade package.
[0063] In the present embodiment, considering the existing scheme, under the current FTTR networking mode, OLT upgrades the sub-gateway and needs to transmit the message to the main gateway, and then the main gateway upgrades the sub-gateway point-to-point. In the above-mentioned upgrade process, OLT adopts the firmware version of the traditional OMCI channel upgrade sub-gateway, but its transmission message is limited by the OMCI message format, and the message length transmitted each time is limited (28 bytes), and the upgrade is slow. The firmware version of the intelligent gateway is relatively large, and the time-consuming upgrade transmission file under this mode is also relatively long, and the upgrade efficiency is relatively low.
[0064] Therefore, in the scheme of this embodiment, the OLT and the main gateway ONT are managed through the OMCI channel, the main gateway ONT and the sub-gateway ONT are managed through the OMCI channel, and the OLT does not directly manage the sub-gateway. However, each time a sub-gateway is upgraded, the OLT will create a corresponding VXLAN channel for the target sub-gateway that needs to be upgraded. The OLT directly transmits the upgrade message to the target sub-gateway through the VXLAN channel. Compared with the traditional OMCI channel, the length of the message transmitted at a single time is longer (can reach more than 1K bytes), and the OLT can directly upgrade the sub-gateway. The OLT broadcasts the upgrade message through multicast messages on the above-mentioned VXLAN channel, so that the sub-gateways can be upgraded in batches, thereby eliminating the need for point-to-point upgrades of sub-gateways, and the bandwidth occupied is also less. Among them, since the upgraded firmware version is relatively large, the upgrade package is correspondingly fragmented and then encapsulated into N upgrade messages, refer to Figure 3 , fragment messages from the 1st to the Nth are sent one by one through multicast. After the Nth message is sent each time, fragment messages from the 1st to the Nth are sent one by one, and this cycle is repeated.
[0065] Specifically, refer to Figure 3 , the method for upgrading the sub-gateway in the scheme of this embodiment includes: the target sub-gateway receives N upgrade fragment messages sent by the OLT in a multicast manner through the VXLAN channel. Among them, the target sub-gateway is the sub-gateway that needs to be upgraded among the sub-gateways managed by the OLT. For the target sub-gateway, since the upgrade package is divided into N upgrade fragment messages, it is impossible to determine whether the upgrade fragment message received each time has been stored. Therefore, in order to avoid repeatedly receiving the same message, when the target sub-gateway receives the upgrade message transmitted by the OLT through the VXLAN channel, it is necessary to determine whether the received upgrade fragment message has been stored, so as to determine whether it is necessary to store and process the above-mentioned received upgrade message or directly discard it. If the target sub-gateway determines that the above-mentioned received upgrade message is not stored, the above-mentioned received upgrade fragment message is stored. Since the upgrade fragment messages stored each time are inconsistent, the target sub-gateway that stores N upgrade fragment messages can first form a complete upgrade package based on the N upgrade fragment messages, and then upgrade based on the complete upgrade package.
[0066] Among them, because in the multicast mode, it is necessary to determine the number of messages that need to be copied, that is, it is necessary to determine the number of corresponding upgraded sub-gateways, so refer to Figure 4, the target sub-gateway needs to send a corresponding multicast group join request to apply to add the local end to the multicast group member information, and when the target sub-gateway receives the complete upgrade package and completes the upgrade, it sends a multicast group leave request to apply to delete the above target sub-gateway from the multicast group member information to stop multicasting the upgrade fragment message to the above target sub-gateway that has completed the upgrade. Until all the target sub-gateways added to the multicast group leave, the multicast sending of the N upgrade fragment messages corresponding to the upgrade package will be stopped. In addition, after receiving the multicast join request from the first target sub-gateway ONT, the OLT starts to multicast the upgrade fragment message; and after requesting to join the multicast group, each target sub-gateway will enter the multicast upgrade mode, that is, it will start to receive the upgrade fragment message.
[0067] The method for upgrading the sub-gateway in the scheme of this embodiment is used to upgrade the sub-gateway in the FTTR networking mode, which solves the problem of low efficiency of OLT upgrading the sub-gateway through the traditional OMCI channel in the FTTR networking mode, and realizes the direct and batch upgrading of the sub-gateway by the OLT in the FTTR networking mode.
[0068] Furthermore, in one embodiment, before step S10, the following steps are further included:
[0069] OLT sends upgrade information to the main gateway through the OMCI channel;
[0070] The OLT creates a VXLAN channel and cyclically executes the step of sending N upgrade fragment messages corresponding to the upgrade package to the target sub-gateway one by one through the VXLAN channel in multicast mode.
[0071] In this embodiment, before implementing the step of the target sub-gateway receiving N upgrade fragment messages sent by OLT in multicast mode through the VXLAN channel, the OLT needs to create a corresponding VXLAN channel for transmitting the upgrade fragment message and send the upgrade information to the sub-gateway through the OMCI channel.
[0072] Reference Figure 4, the OLT first sends the upgrade information to the main gateway through the traditional OMCI channel. When the main gateway receives the upgrade information sent by the OLT through the OMCI channel, it sends the upgrade information to each sub-gateway through the OMCI channel, so that the sub-gateway determines the target sub-gateway that needs to be upgraded in the sub-gateway managed by the OLT based on the upgrade information. At the same time, the OLT creates a VXLAN channel. In addition, since the upgraded firmware version is relatively large, the upgrade package is fragmented and then encapsulated into N upgrade messages. When the multicast upgrade conditions are met later, the N upgrade fragment messages corresponding to the upgrade package are cyclically executed to send the steps of sending the N upgrade fragment messages corresponding to the upgrade package to the target sub-gateway one by one through the VXLAN channel in a multicast manner. That is, the fragment messages are sent one by one from the 1st to the Nth fragment messages by multicast mode, and each time the Nth message is sent, the fragment messages from the 1st message to the Nth fragment messages are sent one by one, and this cycle is repeated.
[0073] Furthermore, in one embodiment, the upgrade information includes upgrade version information and an IP address of the VXLAN channel, and after the OLT sends the upgrade information to the main gateway through the OMCI channel, the following steps are also included:
[0074] Each sub-gateway receives the upgrade information sent by the main gateway through the OMCI channel;
[0075] Each sub-gateway checks whether the upgraded version information is consistent with the current version information of the local end;
[0076] The target sub-gateway whose upgraded version information is inconsistent with the current version information of the local end joins the VXLAN channel based on the IP address of the VXLAN channel.
[0077] In this embodiment, it is considered that there may be multiple OLTs that need to upgrade sub-gateways in the actual upgrade situation, and each OLT corresponds to multiple sub-gateways, and only some of the sub-gateways may need to be upgraded, while the other parts do not need to be upgraded. Therefore, in order to ensure the accuracy of the upgrade message transmission, it is necessary to filter out the corresponding target sub-gateways that need to be upgraded through the upgrade information, and add them to the VXLAN channel created by the corresponding OLT, connect the target sub-gateway to the OLT through the VXLAN channel, and then complete the message interaction between the OLT and the main gateway and the sub-gateway.
[0078] Specifically, the upgrade information includes upgrade version information, the IP address of the VXLAN channel, the number of upgrade package fragments transmitted through the VXLAN channel, etc. After the above-mentioned OLT sends the upgrade information to the main gateway through the traditional OMCI channel, and before the implementation of the above-mentioned OLT loop execution of the N upgrade fragment messages corresponding to the upgrade package to the target sub-gateway one by one through the VXLAN channel in a multicast manner. After the main gateway receives the upgrade information sent by the OLT through the OMCI channel, it sends the upgrade information to each sub-gateway through the OMCI channel. When each sub-gateway receives the upgrade information sent by the main gateway through the OMCI channel, it will check whether the upgrade version information is consistent with the current version information of the local end based on the upgrade information. Only when the upgrade version information received by the sub-gateway is inconsistent with the current version information of the local end, it is the corresponding target sub-gateway that needs to be upgraded. Then the corresponding target sub-gateway that needs to be upgraded joins the above-mentioned VXLAN channel based on the IP address information of the VXLAN channel included in the upgrade information. In addition, the target sub-gateway can subsequently determine whether to receive all upgrade fragment messages based on the number of upgrade packet fragments transmitted through the VXLAN channel in the upgrade information.
[0079] Furthermore, in one embodiment, the N upgrade fragment messages are formed by fragmenting an upgrade package into N upgrade fragment packets and then encapsulating them using a message encapsulation rule of a VXLAN channel.
[0080] In this embodiment, since the firmware version of the upgrade package is relatively large, the upgrade package needs to be fragmented into N upgrade fragment packages, so as to facilitate the transmission of the upgrade fragment packages through the VXLAN channel. At the same time, since the upgrade fragment package needs to be sent through the VXLAN channel, the N upgrade fragment packages need to be encapsulated into N upgrade fragment messages using the message encapsulation rules of the VXLAN channel.
[0081] Further, in one embodiment, the upgrade fragment message includes a UDP message header, an IP message header, an Ethernet message header, a VXLAN message header, and an upgrade fragment packet as a payload, wherein some fields of the VXLAN message header are extended and multiplexed.
[0082] In this embodiment, the upgrade fragment message format encapsulated by the message encapsulation rule of the VXLAN channel is as follows: Figure 5As shown, it includes a UDP message header, an IP message header, an Ethernet message header, a VXLAN message header (VXLAN Header) and an upgrade fragment packet as a load, wherein, when the message encapsulation rule of the VXLAN channel is adopted to encapsulate N upgrade packet fragments into N upgrade fragment messages, the N upgrade packet fragments are encapsulated in the VXLAN message format. In order to facilitate the target sub-gateway to check the message received through the VXLAN channel, some reserved fields of the VXLAN Header in the original VXLAN fragment message are expanded and reused, and then encapsulated accordingly to obtain the upgrade fragment message.
[0083] Furthermore, in one embodiment, the VXLAN message header in the upgrade fragment message includes a first field for identifying a fragment sequence number of the upgrade fragment message, a second field for identifying the upgrade message, and a third field for identifying a total number of upgrade package fragments.
[0084] In this embodiment, after some fields of the VXLAN message header are expanded and multiplexed, they include a first field for identifying the fragment sequence number of the upgrade fragment message, a second field for identifying the upgrade message, and a third field for identifying the total number of upgrade package fragments.
[0085] Specifically, refer to Figure 6 , the VXLAN Header after the extended multiplexing reserved field includes: (1) The third field used to identify the total number of upgrade package fragments, namely the VNI field (24 bits), which is used to identify the total number of upgrade fragment messages N. When the OLT creates a VXLAN, it needs to be set according to the current total number of fragment packets, so that when multiple OLTs need to upgrade sub-gateways, the sub-gateways that need to be upgraded can be distinguished and connected with the VXLAN channels created by the OLT. Therefore, it is necessary to send it to the target sub-gateway as an upgrade parameter in the upgrade information. (2) VXLAN Flags (8 bits), the value is 00001000, which is consistent with the original field of the VXLAN message header. (3) The second field used to identify the upgrade message, namely the reserved field 1 (8 bits), identifies the upgrade message field, and can take the value of 00000011, which can facilitate the target sub-gateway to determine that the received multicast message is an upgrade message. (4) The first field used to identify the fragment sequence number of the upgrade fragment message, i.e., reserved field 2 (24 bits), identifies the current upgrade fragment packet sequence number n, so that the target sub-gateway can determine whether the corresponding upgrade fragment packet has been stored. In addition, since the first field of the VXLAN Header of the fragment message identifies the upgrade packet fragment sequence number corresponding to each upgrade message, the target sub-gateway does not need to start collecting from the first fragment packet, nor does it need to collect consecutive upgrade fragment packets, so it can realize the out-of-order transmission of the corresponding upgrade fragment message, and it is also convenient for the target sub-gateway to check the message received through the VXLAN channel.
[0086] Furthermore, in one embodiment, step S20 includes:
[0087] The target sub-gateway determines the fragment sequence number of the received upgrade fragment message based on the first field in the received upgrade fragment message used to identify the fragment sequence number of the upgrade fragment message;
[0088] The target sub-gateway determines whether the received upgrade fragment message has been stored based on the fragment sequence number.
[0089] In this embodiment, the step of determining whether the received upgrade fragment message has been stored by the target sub-gateway includes: determining the sequence numbers of all received upgrade fragment messages through the first field of the fragment sequence number used to identify the upgrade fragment message in the received upgrade fragment message. The target sub-gateway can determine whether the received upgrade fragment message has been stored based on the fragment sequence number.
[0090] Furthermore, in one embodiment, the step of the target sub-gateway determining whether the received upgrade fragment message has been stored based on the fragment sequence number includes:
[0091] The target sub-gateway detects whether there is a target stored upgrade fragment message with a fragment sequence number consistent with the fragment sequence number in the stored upgrade fragment message;
[0092] If it exists, it is determined that the received upgrade fragment message has been stored.
[0093] In this embodiment, the step of the target sub-gateway judging whether the received upgrade fragment message has been stored based on the fragment sequence number includes: the target sub-gateway detects whether there is a target stored upgrade fragment message with a fragment sequence number consistent with the fragment sequence number in the stored upgrade fragment message. If there is, it is determined that the received upgrade fragment message has been stored. If not, it is determined that the currently received upgrade fragment message has not been stored.
[0094] In this embodiment, a method for upgrading a sub-gateway is provided, including: the target sub-gateway receives N upgrade fragment messages sent by the OLT in a multicast manner through a VXLAN channel; the target sub-gateway determines whether the received upgrade fragment messages have been stored; if not, the target sub-gateway stores the received upgrade fragment messages; if the target sub-gateway stores N upgrade fragment messages, a complete upgrade package is formed based on the N upgrade fragment messages, and the upgrade is performed based on the complete upgrade package. The present invention uses a VXLAN channel to transmit upgrade messages in a multicast message to correspond to the upgrade sub-gateway, solves the problem that the traditional OMCI takes a long time to transmit upgrade messages, realizes the direct and batch upgrade of sub-gateways by OLT in the FTTR networking mode, and improves the upgrade efficiency of sub-gateways in the FTTR networking mode.
[0095] In a third aspect, an embodiment of the present invention further provides a system for upgrading a sub-gateway.
[0096] In this embodiment, the system for upgrading the sub-gateway includes:
[0097] Target sub-gateway, used for:
[0098] Receive N upgrade fragment messages sent by OLT in multicast mode through the VXLAN channel;
[0099] Determine whether the received upgrade fragment message has been stored;
[0100] If not stored, the target sub-gateway stores the received upgrade fragment message;
[0101] If N upgrade fragment messages are stored, a complete upgrade package is composed based on the N upgrade fragment messages, and the upgrade is performed based on the complete upgrade package.
[0102] Further, in one embodiment, the system for upgrading the sub-gateway also includes an OLT and a main gateway, and the OLT is used to: send upgrade information to the main gateway through an OMCI channel;
[0103] Create a VXLAN channel and cyclically execute the step of sending N upgrade fragment messages corresponding to the upgrade package to the target sub-gateway one by one through the VXLAN channel in multicast mode.
[0104] Furthermore, in one embodiment, the upgrade information includes upgrade version information and an IP address of a VXLAN channel, and the system for upgrading the sub-gateway further includes a plurality of sub-gateways and a main gateway, and each sub-gateway is used to: receive the upgrade information sent by the main gateway through the OMCI channel;
[0105] Check whether the upgraded version information is consistent with the current version information of this end;
[0106] The target sub-gateway whose upgraded version information is inconsistent with the current version information of the local end is used to join the VXLAN channel based on the IP address of the VXLAN channel.
[0107] Furthermore, in one embodiment, the N upgrade fragment messages are formed by fragmenting an upgrade package into N upgrade fragment packets and then encapsulating them using a message encapsulation rule of a VXLAN channel.
[0108] Further, in one embodiment, the upgrade fragment message includes a UDP message header, an IP message header, an Ethernet message header, a VXLAN message header, and an upgrade fragment packet as a payload, wherein some fields of the VXLAN message header are extended and multiplexed.
[0109] Furthermore, in one embodiment, the VXLAN message header in the upgrade fragment message includes a first field for identifying a fragment sequence number of the upgrade fragment message, a second field for identifying the upgrade message, and a third field for identifying a total number of upgrade package fragments.
[0110] Furthermore, in one embodiment, the target sub-gateway is further used to: determine the fragment sequence number of the received upgrade fragment message based on the first field in the received upgrade fragment message used to identify the fragment sequence number of the upgrade fragment message;
[0111] Based on the fragment sequence number, it is determined whether the received upgrade fragment message has been stored.
[0112] Furthermore, in one embodiment, the target sub-gateway is further used to: detect whether there is a target stored upgrade fragment message with a fragment sequence number consistent with the fragment sequence number in the stored upgrade fragment message;
[0113] If it exists, it is determined that the received upgrade fragment message has been stored.
[0114] Among them, the functional implementation of the target sub-gateway, OLT, main gateway and multiple sub-gateways in the above-mentioned sub-gateway upgrading system corresponds to the steps in the above-mentioned sub-gateway upgrading method embodiment, and their functions and implementation processes are not repeated here one by one.
[0115] It should be noted that, in this article, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or system 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, article or system. In the absence of further restrictions, an element defined by the sentence "comprises a ..." does not exclude the existence of other identical elements in the process, method, article or system including the element.
[0116] The serial numbers of the above embodiments of the present invention are only for description and do not represent the advantages or disadvantages of the embodiments.
[0117] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus 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 invention is essentially or the part that contributes to the prior art can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk) as described above, and includes a number of instructions for a terminal device to execute the methods described in each embodiment of the present invention.
[0118] The above are only preferred embodiments of the present invention, and are not intended to limit the patent scope of the present invention. Any equivalent structure or equivalent process transformation made using the contents of the present invention specification and drawings, or directly or indirectly applied in other related technical fields, are also included in the patent protection scope of the present invention.
Claims
1. A method for upgrading a sub-gateway, characterized in that: The method for upgrading the sub-gateway comprises: The target sub-gateway receives N upgrade fragment messages sent by the OLT in multicast mode through the VXLAN channel; The target sub-gateway determines whether the received upgrade fragment message has been stored; If not stored, the target sub-gateway stores the received upgrade fragment message; If the target sub-gateway stores N upgrade fragment messages, a complete upgrade package is formed based on the N upgrade fragment messages, and the upgrade is performed based on the complete upgrade package.
2. The method for upgrading a sub-gateway according to claim 1, characterized in that: Before the step of the target sub-gateway receiving N upgrade fragment messages sent by the OLT in a multicast manner through the VXLAN channel, the step further includes: OLT sends upgrade information to the main gateway through the OMCI channel; The OLT creates a VXLAN channel and cyclically executes the step of sending N upgrade fragment messages corresponding to the upgrade package to the target sub-gateway one by one through the VXLAN channel in multicast mode.
3. The method for upgrading a sub-gateway according to claim 2, characterized in that: The upgrade information includes upgrade version information and an IP address of a VXLAN channel, and after the OLT sends the upgrade information to the main gateway through the OMCI channel, the step further includes: Each sub-gateway receives the upgrade information sent by the main gateway through the OMCI channel; Each sub-gateway checks whether the upgraded version information is consistent with the current version information of the local end; The target sub-gateway whose upgraded version information is inconsistent with the current version information of the local end joins the VXLAN channel based on the IP address of the VXLAN channel.
4. The method for upgrading a sub-gateway according to claim 1, wherein: The N upgrade fragment messages are formed by encapsulating the upgrade package into N upgrade fragment packets using the message encapsulation rules of the VXLAN channel.
5. The method for upgrading a sub-gateway according to claim 1, wherein: The upgrade fragment message includes a UDP message header, an IP message header, an Ethernet message header, a VXLAN message header, and an upgrade fragment packet as a load, wherein some fields of the VXLAN message header are extended and multiplexed.
6. The method for upgrading a sub-gateway according to claim 5, wherein: The VXLAN message header in the upgrade fragment message includes a first field for identifying a fragment sequence number of the upgrade fragment message, a second field for identifying the upgrade message, and a third field for identifying the total number of upgrade packet fragments.
7. The method for upgrading a sub-gateway according to claim 6, characterized in that: The step of the target sub-gateway determining whether the received upgrade fragment message has been stored comprises: The target sub-gateway determines the fragment sequence number of the received upgrade fragment message based on the first field in the received upgrade fragment message used to identify the fragment sequence number of the upgrade fragment message; The target sub-gateway determines whether the received upgrade fragment message has been stored based on the fragment sequence number.
8. The method for upgrading a sub-gateway according to claim 7, characterized in that: The step of the target sub-gateway judging whether the received upgrade fragment message has been stored based on the fragment sequence number comprises: The target sub-gateway detects whether there is a target stored upgrade fragment message with a fragment sequence number consistent with the fragment sequence number in the stored upgrade fragment message; If it exists, it is determined that the received upgrade fragment message has been stored.
9. A system for upgrading a sub-gateway, characterized in that: The system for upgrading the sub-gateway includes: Target sub-gateway, used for: Receive N upgrade fragment messages sent by OLT in multicast mode through the VXLAN channel; Determine whether the received upgrade fragment message has been stored; If not stored, store the received upgrade fragment message; If N upgrade fragment messages are stored, a complete upgrade package is composed based on the N upgrade fragment messages, and the upgrade is performed based on the complete upgrade package.
10. A device for upgrading a sub-gateway, characterized in that: The device for upgrading the sub-gateway includes a processor, a memory, and a program for upgrading the sub-gateway stored in the memory and executable by the processor, wherein when the program for upgrading the sub-gateway is executed by the processor, the steps of the method for upgrading the sub-gateway as described in any one of claims 1 and 3 to 8 are implemented.
Citation Information
Patent Citations
PON terminal upgrading method and system based on OLT scheduling and OLT equipment
CN111836138A
Networking system of P2MP type all-optical network applied to FTTR
CN114071266A