CN111124445A - Home gateway upgrading method and home gateway - Google Patents

Home gateway upgrading method and home gateway Download PDF

Info

Publication number
CN111124445A
CN111124445A CN201811297090.XA CN201811297090A CN111124445A CN 111124445 A CN111124445 A CN 111124445A CN 201811297090 A CN201811297090 A CN 201811297090A CN 111124445 A CN111124445 A CN 111124445A
Authority
CN
China
Prior art keywords
home gateway
home
authentication information
gateways
instruction
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201811297090.XA
Other languages
Chinese (zh)
Other versions
CN111124445B (en
Inventor
程剑
李峰
李坤艳
张海
雷鹏
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
China Mobile Communications Group Co Ltd
China Mobile Hangzhou Information Technology Co Ltd
Original Assignee
China Mobile Communications Group Co Ltd
China Mobile Hangzhou Information Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by China Mobile Communications Group Co Ltd, China Mobile Hangzhou Information Technology Co Ltd filed Critical China Mobile Communications Group Co Ltd
Priority to CN201811297090.XA priority Critical patent/CN111124445B/en
Publication of CN111124445A publication Critical patent/CN111124445A/en
Application granted granted Critical
Publication of CN111124445B publication Critical patent/CN111124445B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/66Arrangements for connecting between networks having differing types of switching systems, e.g. gateways
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/56Routing software
    • H04L45/563Software download or update

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Security & Cryptography (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Stored Programmes (AREA)

Abstract

The invention discloses an upgrading method of a home gateway and the home gateway, which are used for reducing the upgrading failure rate of the home gateway as much as possible and improving the upgrading efficiency. The upgrading method is applied to a distributed home gateway system comprising a plurality of home gateways, and comprises the following steps: after receiving the first instruction, the target home gateway sends the consensus authentication information to other home gateways in communication with the target home gateway; the consensus authentication information carries a first instruction, the target home gateway is a trusted home gateway determined by M home gateways in the current round, and M is a positive integer; the target home gateway receives a plurality of feedback authentication information from other home gateways, and the feedback authentication information comprises instructions received by the other home gateways; the target home gateway determines trusted home gateways in the other home gateways according to the plurality of feedback authentication information; and the target home gateway acquires a software upgrading package according to the upgrading instruction from the trusted home gateway so as to upgrade.

Description

Home gateway upgrading method and home gateway
Technical Field
The invention relates to the technical field of software upgrading, in particular to an upgrading method of a home gateway and the home gateway.
Background
A home gateway is mainly a device that an operator issues to a user for accessing the internet via a fixed line, such as a digital subscriber line or an ethernet.
The existing home gateway software upgrading generally has two modes: the first is that the server sends an upgrading instruction to upgrade a plurality of home gateways; the second is that the user uses the interfaces of U disk, serial port, etc. to combine with the upgrade file on the data card to carry on the local upgrade. In the first mode, once the server fails, the home gateway software upgrading can be failed. In the second mode, only one home gateway can be upgraded at a time, and when a plurality of home gateways are upgraded, each home gateway needs to be upgraded independently, so that the time consumption is long, and the upgrading efficiency is low.
Disclosure of Invention
The embodiment of the invention provides an upgrading method of a home gateway and the home gateway, which are used for reducing the upgrading failure rate of the home gateway as much as possible and improving the upgrading efficiency.
In a first aspect, an upgrading method for a home gateway is provided, where the upgrading method is applied to a distributed home gateway system, where the distributed home gateway system includes multiple home gateways, and the multiple home gateways receive a first instruction sent by a specific device at the same time, and the upgrading method includes:
after receiving the first instruction, the target home gateway sends the consensus authentication information to other home gateways in communication with the target home gateway; the consensus authentication information carries the first instruction, the target home gateway is a trusted home gateway determined by M home gateways in the current round, and M is a positive integer;
the target home gateway receives a plurality of feedback authentication information from other home gateways, wherein the feedback authentication information comprises instructions received by the other home gateways; the other home gateways are home gateways except the target home gateway in the M home gateways;
the target home gateway determines a trusted home gateway in the rest home gateways according to the plurality of feedback authentication information;
the target home gateway acquires a software upgrading package according to the upgrading instruction from the trusted home gateway so as to upgrade; and the upgrading instruction carries a downloading address of the software upgrading packet.
In the embodiment of the invention, the target home gateway is a trusted home gateway which is confirmed for M times, and after receiving the first instruction sent by the specific device, the target home gateway can send the consensus authentication information to the other home devices and receive the feedback authentication information from the other home devices. The consensus authentication information and the feedback authentication information both carry instructions, so that the consensus authentication information and the feedback authentication information can be compared to determine a trusted home gateway in the distributed home gateway system, and other home gateways can acquire a software upgrading package from an upgrading instruction of the trusted home gateway to upgrade. This reduces the dependency on the server and thus reduces the failure rate of the upgrade of the home gateway. Compared with the upgrading of each home gateway through the external interface equipment, the upgrading efficiency is improved.
Optionally, the determining, by the target home gateway, the trusted home gateways in the other home gateways according to the multiple pieces of feedback authentication information includes:
the target home gateway compares the instruction carried by the consensus authentication information with the instructions carried by the feedback authentication information;
and if the instruction carried by the consensus authentication information is consistent with the instruction carried by the first feedback authentication information, determining that the home gateway corresponding to the first feedback authentication information is a trusted home gateway.
In the embodiment of the invention, after receiving the first instruction sent by the specific device, the trusted home gateway can send the consensus authentication information to the other home gateways, wherein the consensus authentication information carries the first instruction. And after receiving the consensus authentication information, the other home gateways can send feedback authentication information to the trusted home gateway, the feedback authentication information informs the trusted home gateway that the trusted home gateway receives the instruction sent by the specific device, and if the feedback authentication information is consistent, the other home gateway can be considered as the trusted home gateway.
Optionally, the method further includes:
the target home gateway determines an untrusted home gateway in the rest home gateways according to the plurality of feedback authentication information;
and after receiving the upgrading instruction again, the target home gateway sends the upgrading instruction to other home gateways except the untrusted home gateway.
Optionally, the method further includes:
the target home gateway determines an untrusted home gateway in the rest home gateways according to the plurality of feedback authentication information;
and the target home gateway sends a request message to a server, wherein the request message is used for requesting the server to close the untrusted home gateway.
After the untrusted home gateway, that is, the possibly attacked home gateway is determined, in order to ensure the smooth upgrade of other home gateways, the target home gateway may only send the untrusted home gateway to the trusted home gateway after receiving the upgrade instruction in the following. Alternatively, the target home gateway may request the server to close the communication of the untrusted home gateway.
Optionally, the download address includes a uniform resource locator URL; alternatively, the first and second electrodes may be,
the download address comprises a storage path of the software upgrade package.
In the embodiment of the invention, the download address can be a URL (uniform resource locator), namely the software upgrading package is obtained from a remote end. The download address can also be a storage path of the software upgrading package, namely the software upgrading package is obtained from the local, and the possibility of upgrading failure of the home gateway caused by the failure of the remote server is reduced as much as possible.
In a second aspect, a home gateway is provided, where the home gateway is located in a distributed home gateway system, the distributed home gateway system includes a plurality of home gateways, and the plurality of home gateways simultaneously receive a first instruction sent by a specific device, and the home gateway includes:
the sending unit is used for sending the consensus authentication information to other home gateways in communication with the target home gateway after receiving the first instruction; the consensus authentication information carries the first instruction, the home gateway is a trusted home gateway determined by M home gateways in the current round, and M is a positive integer;
the receiving unit is used for receiving a plurality of feedback authentication information from other home gateways, and the feedback authentication information comprises instructions received by the other home gateways; the other home gateways are home gateways except the home gateway in the M home gateways;
a determining unit, configured to determine, according to the multiple pieces of feedback authentication information, a trusted home gateway in the remaining home gateways;
the upgrading unit is used for acquiring a software upgrading package according to the upgrading instruction from the trusted home gateway so as to upgrade; and the upgrading instruction carries a downloading address of the software upgrading packet.
Optionally, the determining unit is specifically configured to:
comparing the instruction carried by the consensus authentication information with the instructions carried by the plurality of feedback authentication information;
and if the instruction carried by the consensus authentication information is consistent with the instruction carried by the first feedback authentication information, determining that the home gateway corresponding to the first feedback authentication information is a trusted home gateway.
Optionally, the determining unit is further configured to:
determining an untrusted home gateway among the other home gateways according to the plurality of feedback authentication information;
and after the upgrading instruction is received again, the upgrading instruction is sent to other home gateways except the untrusted home gateway.
Optionally, the determining unit is further configured to:
determining an untrusted home gateway among the other home gateways according to the plurality of feedback authentication information;
sending a request message to a server, wherein the request message is used for requesting the server to close the untrusted home gateway.
Optionally, the download address includes a uniform resource locator URL; alternatively, the first and second electrodes may be,
the download address comprises a storage path of the software upgrade package.
In a third aspect, a home gateway is provided, which includes:
at least one processor, and
a memory coupled to the at least one processor;
wherein the memory stores instructions executable by the at least one processor, the at least one processor implementing the method of any one of the first aspect by executing the instructions stored by the memory.
In a fourth aspect, there is provided a computer storage medium having stored thereon a computer program which, when executed by a processor, implements the method of any of the first aspects.
In the embodiment of the invention, the target home gateway is a trusted home gateway which is confirmed for M times, and after receiving the first instruction sent by the specific device, the target home gateway can send the consensus authentication information to the other home devices and receive the feedback authentication information from the other home devices. The consensus authentication information and the feedback authentication information both carry instructions, so that the consensus authentication information and the feedback authentication information can be compared to determine a trusted home gateway in the distributed home gateway system, and other home gateways can acquire a software upgrading package from an upgrading instruction of the trusted home gateway to upgrade. This reduces the dependency on the server and thus reduces the failure rate of the upgrade of the home gateway. Compared with the upgrading of each home gateway through the external interface equipment, the upgrading efficiency is improved.
Drawings
Fig. 1 is a schematic structural diagram of a distributed home gateway system provided in an embodiment of the present invention;
fig. 2 is a schematic flowchart of an upgrading method for a home gateway according to an embodiment of the present invention;
fig. 3 is a schematic diagram of determining an untrusted home gateway according to an embodiment of the present invention;
fig. 4 is a schematic structural diagram of a home gateway according to an embodiment of the present invention;
fig. 5 is a schematic structural diagram of a home gateway according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more clearly and completely understood, the technical solutions in the embodiments of the present invention will be described below with reference to the accompanying drawings in the embodiments of the present invention.
The existing home gateway software upgrading is to download a software upgrading package from a server or to locally upgrade by combining interfaces such as a U disk and a serial port with upgrading files on a data card. But once the server fails, the home gateway software upgrading can be failed. The local upgrading of the data card can only be carried out for each home gateway independently, the time consumption is long, and the upgrading efficiency is low.
In view of this, an embodiment of the present invention provides an upgrading method for a home gateway, in which a target home gateway is a trusted home gateway that is confirmed M times, and after receiving a first instruction sent by a specific device, the target home gateway may send common identification authentication information to other home devices and receive feedback authentication information from the other home devices. The consensus authentication information and the feedback authentication information both carry instructions, so that the consensus authentication information and the feedback authentication information can be compared to determine a trusted home gateway in the distributed home gateway system, and other home gateways can acquire a software upgrading package from an upgrading instruction of the trusted home gateway to upgrade. This reduces the dependency on the server and thus reduces the failure rate of the upgrade of the home gateway. Compared with the upgrading of each home gateway through the external interface equipment, the upgrading efficiency is improved.
The method for upgrading a home gateway provided in the embodiment of the present invention is applied to a distributed home gateway system, as shown in fig. 1, fig. 1 is a schematic structural diagram of the distributed home gateway system, where the distributed home gateway system includes a plurality of home gateways, and each home gateway can communicate with other home gateways. Fig. 1 illustrates an example of a distributed home gateway system including 4 home gateways, namely, a home gateway a, a home gateway B, a home gateway C, and a home gateway D.
The technical scheme provided by the embodiment of the invention is described in the following with the accompanying drawings of the specification.
Referring to fig. 2, an embodiment of the present invention provides an upgrading method for a home gateway, where the upgrading method may be performed by any one of the home gateways shown in fig. 1, and for convenience of description, a gateway performing upgrading is referred to as a target home gateway in the embodiment of the present invention. The specific flow of the upgrading method is described as follows.
S201, after receiving the first instruction, the target home gateway sends the consensus authentication information to other home gateways in communication with the target home gateway; the consensus authentication information carries a first instruction, the target home gateway is a trusted home gateway determined by M home gateways in the current round, and M is a positive integer.
When the home gateway needs to be upgraded, an upgrade instruction can be sent to any home gateway in the distributed home gateway system through a specific device, such as a mobile phone and other terminals, so as to instruct the home gateway to perform software upgrade. And after receiving the upgrading instruction, the home gateway can send the received upgrading instruction to the other home gateways to instruct the other home gateways to upgrade the software. However, not every home gateway in the plurality of home gateways in the distributed home gateway system is trusted, i.e. not attacked. If a certain home gateway is attacked, the upgrading instruction forwarded by the home gateway to other home gateways is wrong, which may cause interference to upgrading of other home gateways or cause upgrading failure of other home gateways.
Therefore, in the embodiment of the present invention, after receiving the upgrade instruction, any one of the home gateways may send a first instruction to the remaining home gateways to verify whether an untrusted home gateway exists. Specifically, in the embodiment of the present invention, taking the target home gateway as an example, after receiving the first instruction, the target home gateway may send the consensus authentication information to the other home gateways in communication with the target home gateway. The consensus authentication information carries a first instruction. The target home gateway is a trusted home gateway determined by M home gateways in the current round, wherein M is a positive integer.
For example, one of the scenarios of the embodiment of the present invention may be applied to the scenario shown in fig. 1. Assume that the target home gateway is a home gateway a, and the remaining home gateways are a home gateway B, a home gateway C, and a home gateway D. The user can send a first instruction to the home gateway A through the mobile phone, and after receiving the first instruction, the home gateway A can respectively send consensus authentication information to the home gateway B, the home gateway C and the home gateway D, wherein the consensus authentication information carries the first instruction.
S202, the target home gateway receives a plurality of feedback authentication information from other home gateways, and the feedback authentication information comprises instructions received by the other home gateways; and the rest home gateways are the home gateways except the target home gateway in the M home gateways.
After the target home gateway sends the consensus authentication information to the other home gateways, for example, the home gateway B, the home gateway C, and the home gateway D, may send feedback authentication information to each other and send feedback authentication information to the home gateway a after receiving the consensus authentication information, where the feedback authentication information includes instructions received by the other home gateways, so as to determine each other which home gateway device is attacked, that is, not trusted.
Specifically, the target home gateway may compare an instruction carried by the consensus authentication information with instructions carried by the multiple pieces of feedback authentication information, and if the instruction carried by the consensus authentication information is consistent with the instruction carried by the first piece of feedback authentication information, determine that the home gateway corresponding to the first piece of feedback authentication information is the trusted home gateway.
For easy understanding, please refer to fig. 3, following the above example, after receiving the consensus authentication information, the home gateway B, the home gateway C, and the home gateway D send feedback authentication information to each other. For example, the home gateway B sends feedback consensus information to the home gateway a, the home gateway C sends feedback consensus information to the home gateway a, the home gateway D sends feedback consensus information to the home gateway C, and the home gateway C sends feedback consensus information to the home gateway B. Any home gateway can determine the non-trusted home gateway among the home gateway B, the home gateway C and the home gateway D according to the consensus authentication information and the plurality of feedback authentication information received by the home gateway itself.
And S203, the target home gateway determines the credible home gateways in the rest home gateways according to the plurality of feedback authentication information.
In the above example, for example, the command carried in the consensus authentication information transmitted by the home gateway a to the home gateways B, C, and D is "1". The feedback consensus information sent by the home gateway B to the home gateway A indicates that the instruction sent by the home gateway A to the home gateway B is '1'; the feedback consensus information sent by the home gateway B to the home gateway D indicates that "the instruction sent by the home gateway a to itself is" 1 "; the feedback consensus information sent by the home gateway C to the home gateway a indicates that the instruction sent by the home gateway a to the home gateway C is "1"; the feedback consensus information sent by the home gateway C to the home gateway D indicates that the instruction sent by the home gateway a to itself is "1"; the feedback consensus information sent by the home gateway D to the home gateway C indicates that "the instruction sent by the home gateway a to itself is" 0 "; the feedback consensus information sent by the home gateway D to the home gateway B indicates that "the instruction sent by the home gateway a to itself is" 0 ", so that it can be determined that the home gateway D is an attacked gateway, i.e., an untrusted gateway, and the home gateway B and the home gateway C are trusted home gateways.
S204, the target home gateway obtains a software upgrading package according to an upgrading instruction from the trusted home gateway so as to upgrade; wherein, the upgrading instruction carries the download address of the software upgrading packet.
After the home gateway in the distributed home gateway system determines the trusted home gateway, a software upgrade package can be obtained from an upgrade instruction of the trusted home gateway for upgrading. In a possible implementation manner, the download address may include a Uniform Resource Locator (URL), so that the home gateway may obtain the software upgrade package from the website indicated by the URL, that is, obtain the software upgrade package from a remote end. The download address can comprise a storage path of the software upgrading package, namely the software upgrading package is acquired from the local, and the possibility that the home gateway is failed in upgrading due to the failure of a remote server is reduced as much as possible.
After the untrusted home gateway, that is, the possibly attacked home gateway is determined, in order to ensure the smooth upgrade of other home gateways, the target home gateway may only send the untrusted home gateway to the trusted home gateway after receiving the upgrade instruction in the following. Alternatively, the target home gateway may request the server to close the communication of the untrusted home gateway.
Specifically, after the trusted home gateway, for example, the target home gateway receives the upgrade instruction again, the upgrade instruction is sent to the other home gateways except the untrusted home gateway, that is, the upgrade instruction is not sent to the untrusted home gateway. Or, the target home gateway may send a request message to the server, where the request message is used to request the server to close the untrusted home gateway, and the server may determine whether to close the communication of the untrusted home gateway according to the actual demand of the terminal device connected to the untrusted home gateway.
In summary, in the embodiment of the present invention, the target home gateway is a trusted home gateway that is confirmed M times, and after receiving the first instruction sent by the specific device, the target home gateway may send the consensus authentication information to the other home devices, and receive the feedback authentication information from the other home devices. The consensus authentication information and the feedback authentication information both carry instructions, so that the consensus authentication information and the feedback authentication information can be compared to determine a trusted home gateway in the distributed home gateway system, and other home gateways can acquire a software upgrading package from an upgrading instruction of the trusted home gateway to upgrade. This reduces the dependency on the server and thus reduces the failure rate of the upgrade of the home gateway. Compared with the upgrading of each home gateway through the external interface equipment, the upgrading efficiency is improved.
The technical scheme provided by the embodiment of the invention is described in the following with the accompanying drawings of the specification.
Referring to fig. 4, based on the same inventive concept, an embodiment of the present invention provides a home gateway in a distributed home gateway system, where the distributed home gateway system includes a plurality of home gateways, the plurality of home gateways receive a first instruction sent by a specific device at the same time, and the home gateway includes a sending unit 401, a receiving unit 402, a determining unit 404, and an upgrading unit 404. Wherein:
the sending unit 401 is configured to send the consensus authentication information to the other home gateways in communication with the target home gateway after receiving the first instruction; the common identification authentication information carries a first instruction, the home gateway is a trusted home gateway determined by M home gateways in the current round, and M is a positive integer;
the receiving unit 402 is configured to receive multiple pieces of feedback authentication information from other home gateways, where the feedback authentication information includes instructions received by the other home gateways; the other home gateways are the home gateways except the home gateway in the M home gateways;
the determining unit 404 is configured to determine, according to the multiple pieces of feedback authentication information, trusted home gateways among the other home gateways;
the upgrading unit 404 is configured to obtain a software upgrading package according to an upgrading instruction from the trusted home gateway to perform upgrading; wherein, the upgrading instruction carries the download address of the software upgrading packet.
Optionally, the determining unit 404 is specifically configured to:
comparing the instruction carried by the consensus authentication information with the instructions carried by the plurality of feedback authentication information;
and if the instruction carried by the consensus authentication information is consistent with the instruction carried by the first feedback authentication information, determining that the home gateway corresponding to the first feedback authentication information is the trusted home gateway.
Optionally, the determining unit 404 is further configured to:
determining an untrusted home gateway among the other home gateways according to the plurality of feedback authentication information;
and after receiving the upgrading instruction again, sending the upgrading instruction to other home gateways except the untrusted home gateway.
Optionally, the determining unit 404 is further configured to:
determining an untrusted home gateway among the other home gateways according to the plurality of feedback authentication information;
and sending a request message to the server, wherein the request message is used for requesting the server to close the non-trusted home gateway.
Optionally, the download address includes a uniform resource locator URL; alternatively, the first and second electrodes may be,
the download address includes a storage path of the software upgrade package.
Referring to fig. 5, based on the same inventive concept, an embodiment of the present invention provides a home gateway in a distributed home gateway system, where the distributed home gateway system includes a plurality of home gateways, and the plurality of home gateways receive a first instruction sent by a specific device at the same time. The home gateway may include: at least one processor 501, where the processor 501 is configured to execute the computer program stored in the memory to implement the steps of the method for upgrading a home gateway as shown in fig. 2 according to the embodiment of the present invention.
Alternatively, the processor 501 may be a central processing unit, an Application Specific Integrated Circuit (ASIC), or one or more Integrated circuits for controlling program execution.
Optionally, the home gateway further includes a Memory 502 connected to the at least one processor, where the Memory 502 may include a Read Only Memory (ROM), a Random Access Memory (RAM), and a disk Memory. The memory 502 is used for storing data required by the processors 501 during operation, that is, storing instructions executable by at least one of the processors 501, and the at least one of the processors 501 executes the instructions stored in the memory 502 to perform the method shown in fig. 2. The number of the memories 502 is one or more. The memory 502 is shown in fig. 5, but it should be understood that the memory 502 is not an optional functional block, and is shown in fig. 5 by a dotted line.
The entity devices corresponding to the sending unit 401, the receiving unit 402, the determining unit 404 and the upgrading unit 404 may be the aforementioned processor 501. The home gateway may be adapted to perform the method provided by the embodiment shown in fig. 2. Therefore, regarding the functions that can be realized by each functional module in the device, reference may be made to the corresponding description in the embodiment shown in fig. 2, which is not repeated herein.
Embodiments of the present invention also provide a computer storage medium, where the computer storage medium stores computer instructions, and when the computer instructions are executed on a computer, the computer is caused to execute the method shown in fig. 2.
It will be clear to those skilled in the art that, for convenience and simplicity of description, the foregoing division of the functional modules is merely used as an example, and in practical applications, the above function distribution may be performed by different functional modules according to needs, that is, the internal structure of the device is divided into different functional modules to perform all or part of the above described functions. For the specific working processes of the system, the apparatus and the unit described above, reference may be made to the corresponding processes in the foregoing method embodiments, and details are not described here again.
In the embodiments provided in the present invention, it should be understood that the disclosed apparatus and method may be implemented in other ways. For example, the above-described apparatus embodiments are merely illustrative, and for example, a module or a unit may be divided into only one logical function, and may be implemented in other ways, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
Units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present application may be substantially implemented or contributed to by the prior art, or all or part of the technical solution may be embodied in a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, a network device, or the like) or a processor (processor) to execute all or part of the steps of the method of the embodiments of the present application. And the aforementioned storage medium includes: various media capable of storing program codes, such as a universal serial Bus flash disk (usb flash disk), a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk, and an optical disk.
It will be apparent to those skilled in the art that various changes and modifications may be made in the present invention without departing from the spirit and scope of the invention. Thus, if such modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include such modifications and variations.

Claims (10)

1. An upgrading method of a home gateway is applied to a distributed home gateway system, the distributed home gateway system comprises a plurality of home gateways, the plurality of home gateways receive a first instruction sent by a specific device at the same time, and the upgrading method comprises the following steps:
after receiving the first instruction, the target home gateway sends the consensus authentication information to other home gateways in communication with the target home gateway; the consensus authentication information carries the first instruction, the target home gateway is a trusted home gateway determined by M home gateways in the current round, and M is a positive integer;
the target home gateway receives a plurality of feedback authentication information from other home gateways, wherein the feedback authentication information comprises instructions received by the other home gateways; the other home gateways are home gateways except the target home gateway in the M home gateways;
the target home gateway determines a trusted home gateway in the rest home gateways according to the plurality of feedback authentication information;
the target home gateway acquires a software upgrading package according to the upgrading instruction from the trusted home gateway so as to upgrade; and the upgrading instruction carries a downloading address of the software upgrading packet.
2. The method of claim 1, wherein the determining, by the target home gateway, the trusted home gateway among the remaining home gateways based on the plurality of feedback authentication information comprises:
the target home gateway compares the instruction carried by the consensus authentication information with the instructions carried by the feedback authentication information;
and if the instruction carried by the consensus authentication information is consistent with the instruction carried by the first feedback authentication information, determining that the home gateway corresponding to the first feedback authentication information is a trusted home gateway.
3. The method of claim 1, further comprising:
the target home gateway determines an untrusted home gateway in the rest home gateways according to the plurality of feedback authentication information;
and after receiving the upgrading instruction again, the target home gateway sends the upgrading instruction to other home gateways except the untrusted home gateway.
4. The method of claim 1, further comprising:
the target home gateway determines an untrusted home gateway in the rest home gateways according to the plurality of feedback authentication information;
and the target home gateway sends a request message to a server, wherein the request message is used for requesting the server to close the untrusted home gateway.
5. The method of any of claims 1-4, wherein the download address comprises a Uniform Resource Locator (URL); alternatively, the first and second electrodes may be,
the download address comprises a storage path of the software upgrade package.
6. A home gateway, wherein the home gateway is located in a distributed home gateway system, the distributed home gateway system includes a plurality of home gateways, and the plurality of home gateways simultaneously receive a first instruction sent by a specific device, and the home gateway includes:
the sending unit is used for sending the consensus authentication information to other home gateways in communication with the target home gateway after receiving the first instruction; the consensus authentication information carries the first instruction, the home gateway is a trusted home gateway determined by M home gateways in the current round, and M is a positive integer;
the receiving unit is used for receiving a plurality of feedback authentication information from other home gateways, and the feedback authentication information comprises instructions received by the other home gateways; the other home gateways are home gateways except the home gateway in the M home gateways;
a determining unit, configured to determine, according to the multiple pieces of feedback authentication information, a trusted home gateway in the remaining home gateways;
the upgrading unit is used for acquiring a software upgrading package according to the upgrading instruction from the trusted home gateway so as to upgrade; and the upgrading instruction carries a downloading address of the software upgrading packet.
7. The home gateway according to claim 6, wherein the determining unit is specifically configured to:
comparing the instruction carried by the consensus authentication information with the instructions carried by the plurality of feedback authentication information;
and if the instruction carried by the consensus authentication information is consistent with the instruction carried by the first feedback authentication information, determining that the home gateway corresponding to the first feedback authentication information is a trusted home gateway.
8. The home gateway of claim 6, wherein the determining unit is further configured to:
determining an untrusted home gateway among the other home gateways according to the plurality of feedback authentication information;
and after the upgrading instruction is received again, the upgrading instruction is sent to other home gateways except the untrusted home gateway.
9. A home gateway, comprising:
at least one processor, and
a memory coupled to the at least one processor;
wherein the memory stores instructions executable by the at least one processor, the at least one processor implementing the method of any one of claims 1-5 by executing the instructions stored by the memory.
10. A computer storage medium on which a computer program is stored, which computer program, when being executed by a processor, carries out the method according to any one of claims 1-5.
CN201811297090.XA 2018-11-01 2018-11-01 Home gateway upgrading method and home gateway Active CN111124445B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811297090.XA CN111124445B (en) 2018-11-01 2018-11-01 Home gateway upgrading method and home gateway

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811297090.XA CN111124445B (en) 2018-11-01 2018-11-01 Home gateway upgrading method and home gateway

Publications (2)

Publication Number Publication Date
CN111124445A true CN111124445A (en) 2020-05-08
CN111124445B CN111124445B (en) 2023-08-15

Family

ID=70494543

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811297090.XA Active CN111124445B (en) 2018-11-01 2018-11-01 Home gateway upgrading method and home gateway

Country Status (1)

Country Link
CN (1) CN111124445B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114172739A (en) * 2021-12-14 2022-03-11 杭州数梦工场科技有限公司 Gateway communication method, device, electronic equipment and storage medium

Citations (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030055926A1 (en) * 2001-09-05 2003-03-20 Kwok Raymond Wai-Man Method and apparatus for performing a software upgrade of a router while the router is online
CN1925425A (en) * 2006-10-08 2007-03-07 北京启明星辰信息技术有限公司 Distributed upgrading method for centralization management mode
KR20090041687A (en) * 2007-10-24 2009-04-29 에스케이 텔레콤주식회사 Home network system and method for remote up-grading program applied to the same
CN102055785A (en) * 2009-11-09 2011-05-11 杭州华三通信技术有限公司 Online upgrade method for distributed system, distributed system and equipment
CN103188144A (en) * 2011-12-29 2013-07-03 中兴通讯股份有限公司 System and method for achieving distributed gateway intercommunication
CN103281373A (en) * 2013-05-30 2013-09-04 烽火通信科技股份有限公司 Home gateway intelligent upgrading device and upgrading method
US20130311982A1 (en) * 2012-05-15 2013-11-21 Oracle International Corporation Automated upgrade for an operating system using a gateway server
CN103607447A (en) * 2013-11-15 2014-02-26 中国联合网络通信集团有限公司 A software upgrade processing method and an apparatus
US20140123123A1 (en) * 2012-11-01 2014-05-01 Cooper Technologies Company Distribution of software updates in wireless multihop networks
CN105553684A (en) * 2015-09-24 2016-05-04 上海斐讯数据通信技术有限公司 Communication system and applied router upgrading method thereof
CN106973046A (en) * 2017-03-16 2017-07-21 中国联合网络通信集团有限公司 Data transmission method, source gateway and purpose gateway between gateway
CN107329741A (en) * 2017-06-12 2017-11-07 北京北信源软件股份有限公司 A kind of software distribution upgrade method and device based on fingerprint recognition
CN107329784A (en) * 2017-06-27 2017-11-07 广东美的暖通设备有限公司 Firmware upgrade method and Distributed-tier system
CN108376078A (en) * 2018-02-26 2018-08-07 广东美的制冷设备有限公司 Upgrade method, device and the household appliance of equipment
CN108491222A (en) * 2018-03-27 2018-09-04 青岛海信智慧家居系统股份有限公司 Gateway device upgrade method, device, gateway device and storage medium

Patent Citations (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030055926A1 (en) * 2001-09-05 2003-03-20 Kwok Raymond Wai-Man Method and apparatus for performing a software upgrade of a router while the router is online
CN1925425A (en) * 2006-10-08 2007-03-07 北京启明星辰信息技术有限公司 Distributed upgrading method for centralization management mode
KR20090041687A (en) * 2007-10-24 2009-04-29 에스케이 텔레콤주식회사 Home network system and method for remote up-grading program applied to the same
CN102055785A (en) * 2009-11-09 2011-05-11 杭州华三通信技术有限公司 Online upgrade method for distributed system, distributed system and equipment
CN103188144A (en) * 2011-12-29 2013-07-03 中兴通讯股份有限公司 System and method for achieving distributed gateway intercommunication
US20130311982A1 (en) * 2012-05-15 2013-11-21 Oracle International Corporation Automated upgrade for an operating system using a gateway server
US20140123123A1 (en) * 2012-11-01 2014-05-01 Cooper Technologies Company Distribution of software updates in wireless multihop networks
CN103281373A (en) * 2013-05-30 2013-09-04 烽火通信科技股份有限公司 Home gateway intelligent upgrading device and upgrading method
CN103607447A (en) * 2013-11-15 2014-02-26 中国联合网络通信集团有限公司 A software upgrade processing method and an apparatus
CN105553684A (en) * 2015-09-24 2016-05-04 上海斐讯数据通信技术有限公司 Communication system and applied router upgrading method thereof
CN106973046A (en) * 2017-03-16 2017-07-21 中国联合网络通信集团有限公司 Data transmission method, source gateway and purpose gateway between gateway
CN107329741A (en) * 2017-06-12 2017-11-07 北京北信源软件股份有限公司 A kind of software distribution upgrade method and device based on fingerprint recognition
CN107329784A (en) * 2017-06-27 2017-11-07 广东美的暖通设备有限公司 Firmware upgrade method and Distributed-tier system
CN108376078A (en) * 2018-02-26 2018-08-07 广东美的制冷设备有限公司 Upgrade method, device and the household appliance of equipment
CN108491222A (en) * 2018-03-27 2018-09-04 青岛海信智慧家居系统股份有限公司 Gateway device upgrade method, device, gateway device and storage medium

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
DEJUN WANG: "Dynamic Software Upgrading for Distributed System Based on R-OSGI", 2008 INTERNATIONAL CONFERENCE ON COMPUTER SCIENCE AND SOFTWARE ENGINEERING *
张丰哲;陈鹏;: "基于分布式数通设备的软件升级的设计与实现", 光通信研究, no. 01 *

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114172739A (en) * 2021-12-14 2022-03-11 杭州数梦工场科技有限公司 Gateway communication method, device, electronic equipment and storage medium
CN114172739B (en) * 2021-12-14 2024-01-26 杭州数梦工场科技有限公司 Gateway communication method, device, electronic equipment and storage medium

Also Published As

Publication number Publication date
CN111124445B (en) 2023-08-15

Similar Documents

Publication Publication Date Title
EP3975503A1 (en) Esim card replacement method and related device
CN107832329B (en) Page resource obtaining method and terminal equipment
JP6603311B2 (en) Method, device and system for invoking a local service assembly by a browser
CN109428773B (en) Communication method and device
EP3163946A1 (en) Information transmission method and apparatus, device, computer program and recording medium
CN108429739B (en) Method, system and terminal equipment for identifying honeypots
CN109831779B (en) Upgrade package downloading method, device, server, terminal and system
CN105592083A (en) Method and device for terminal to have access to server by using token
CN111124445B (en) Home gateway upgrading method and home gateway
CN112597406A (en) File transmission method and device, terminal equipment and storage medium
US10979287B2 (en) Method and apparatus for receiving a solution when configuration function verification fails in a terminal
CN115080068A (en) Resource file transmission method, device, equipment and storage medium
CN112637106B (en) Method and device for terminal to access website
CN112131146B (en) Method and device for acquiring equipment information, storage medium and electronic equipment
CN109150810B (en) Set top box convergence gateway and starting method, device and storage medium thereof
CN112511441A (en) Message processing method and device
CN112383617A (en) Method, device, terminal equipment and medium for long connection
CN111064675A (en) Access flow control method, device, network equipment and storage medium
CN107231244B (en) System, method and device for initializing encryption machine
US12035416B2 (en) ESIM card change method and related device
CN116886463B (en) Cascade communication method, device, equipment and medium
CN112235784B (en) vSIM-based code number management method, device and equipment
CN113422772B (en) Private network terminal access processing method and device and electronic equipment
CN110278271B (en) Network request control method and device and terminal equipment
CN111107663B (en) Data transmission method and device, storage medium and electronic device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant