CN114124702B - Automatic upgrade control method for household network equipment based on flow statistics - Google Patents
Automatic upgrade control method for household network equipment based on flow statistics Download PDFInfo
- Publication number
- CN114124702B CN114124702B CN202111398250.1A CN202111398250A CN114124702B CN 114124702 B CN114124702 B CN 114124702B CN 202111398250 A CN202111398250 A CN 202111398250A CN 114124702 B CN114124702 B CN 114124702B
- Authority
- CN
- China
- Prior art keywords
- network equipment
- automatic
- upgrading
- flow
- control method
- 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.)
- Active
Links
- 238000000034 method Methods 0.000 title claims abstract description 33
- 230000009191 jumping Effects 0.000 claims description 6
- 230000003111 delayed effect Effects 0.000 claims description 2
- 238000012423 maintenance Methods 0.000 abstract description 2
- 230000001360 synchronised effect Effects 0.000 description 2
- 230000009286 beneficial effect Effects 0.000 description 1
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L41/08—Configuration management of networks or network elements
- H04L41/0803—Configuration setting
- H04L41/0813—Configuration setting characterised by the conditions triggering a change of settings
- H04L41/082—Configuration setting characterised by the conditions triggering a change of settings the condition being updates or upgrades of network functionality
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/60—Software deployment
- G06F8/65—Updates
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L43/00—Arrangements for monitoring or testing data switching networks
- H04L43/08—Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L43/00—Arrangements for monitoring or testing data switching networks
- H04L43/08—Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
- H04L43/0876—Network utilisation, e.g. volume of load or congestion level
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L43/00—Arrangements for monitoring or testing data switching networks
- H04L43/16—Threshold monitoring
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/34—Network arrangements or protocols for supporting network services or applications involving the movement of software or configuration parameters
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Environmental & Geological Engineering (AREA)
- Software Systems (AREA)
- General Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Computer Security & Cryptography (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
- Small-Scale Networks (AREA)
Abstract
The invention discloses an automatic upgrade control method of household network equipment based on flow statistics, which is characterized in that the household network equipment determines whether to start an automatic upgrade process by judging the flow of an interface and the size relation between NAT session number and a set threshold value. The method of the invention can be widely applied to equipment such as home gateway, router, expander, etc., has the characteristics of good stability, low maintenance cost, simple and convenient operation, flexibility and convenience, wide application range and 0 configuration, and has the advantage of affecting user experience as little as possible.
Description
Technical Field
The invention belongs to the technical field of remote automatic upgrading of software, and particularly relates to an automatic upgrading control method of household network equipment based on flow statistics.
Background
In home network devices, remote upgrades to their software are often required. The society now gets rid of the work and rest law of 'sunrise, sunset and rest', some people are night shifts, some people are white shifts, and therefore, different work and rest laws can lead to different use demands of the people on the home router, and at a certain time point, the use peak of the people can be possibly the use valley of the people, so that the traditional timing is used for upgrading at a certain time point, the services such as game video and the like which are operated by the people are likely to be influenced, and the home gateway is inevitably interrupted in the upgrading process, and the interruption does not have a good way to inform the following users, so that in some environments, the normal use of the people is influenced when the equipment is remotely upgraded at fixed time, bad use experience is brought, and if the equipment is upgraded in batches based on flow judgment, the load of the server can be reduced.
Disclosure of Invention
The invention aims to solve the technical problem of providing an automatic upgrade control method for household network equipment based on flow statistics, which can improve the use experience of users and is applicable to various household network equipment.
In order to solve the problems, the invention adopts the following technical scheme:
The invention relates to an automatic upgrade control method of household network equipment based on flow statistics, which is characterized in that the household network equipment determines whether to start an automatic upgrade process by judging the flow of an interface and the size relation between NAT session number and a set threshold value.
Further, the automatic upgrade process is started without considering whether the system is already in a state of successful synchronization.
Further, the automatic upgrade process is started not at a fixed certain point in time, but at a point in time when the home network device is most idle in service.
Further, the method for judging whether the home network device service is idle is to synchronously judge the flow of the device out interface and the number of NAT sessions, and when the flow of the device out interface and the number of NAT sessions are smaller than a set threshold, the device is considered to be idle, and the judgment is not carried out by adopting the number of online devices.
Further, a home network device automatic upgrade control method based on flow statistics comprises the following steps:
s1, starting an automatic upgrading daemon, and detecting whether an available upgrading version exists on a server at intervals;
S2, if an available upgrade version is available, downloading an upgrade file to a local place and decrypting;
S3, checking whether the flow condition of the current interface of the gateway and the session number of the NAT are smaller than a threshold value, and if so, jumping to the step S4; if the threshold value is greater than the threshold value, jumping to the step S5;
s4, immediately starting upgrading;
s5, postponing a certain time to jump to the step S3 again.
Preferably, the preset value in the step S1 is one day at intervals, so as to avoid that the upgrade daemon brings extra burden to the home network device with less abundant resources.
Preferably, the threshold values in the step S3 are the selected output interface flow value and NAT session number when the network device with the typical home is idle.
Preferably, the preset value delayed for a certain period of time in the step S5 is one day.
The beneficial effects of adopting above-mentioned technical scheme to produce lie in:
The method of the invention can be widely applied to equipment such as home gateway, router, expander, etc., has the characteristics of good stability, low maintenance cost, simple and convenient operation, flexibility and convenience, wide application range and 0 configuration, and has the advantage of affecting user experience as little as possible.
Drawings
Fig. 1 is a flow chart of the method of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the technical solutions of the present invention will be clearly and completely described below with reference to specific embodiments of the present invention and corresponding drawings. It will be apparent that the described embodiments are only some, but not all, embodiments of the invention. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
The invention relates to an automatic upgrade control method of household network equipment based on flow statistics, which is characterized in that the household network equipment determines whether to start an automatic upgrade process by judging the flow of an interface and the size relation between NAT session number and a set threshold value.
The invention starts the automatic upgrading process without considering whether the system is in a successful synchronous state, and if the synchronous time source has a problem, the invention also has no method for judging whether the current time is accurate. The invention does not adopt a timing mode for upgrading, namely, the upgrading time selected by the invention is not timed at a certain time point, but is selected to be the most idle time point of the household network equipment service for upgrading. The method for judging whether the service of the household network equipment is idle is to synchronously judge the flow of the equipment outlet interface and the number of NAT sessions, and when the flow of the equipment outlet interface and the number of NAT sessions are smaller than a set threshold, the equipment outlet interface and the number of NAT sessions are considered to be idle instead of adopting the number of online equipment to judge.
As shown in fig. 1, the method of the present invention comprises the steps of:
s1, starting an automatic upgrading daemon, and detecting whether an available upgrading version exists on a server at intervals;
S2, if an available upgrade version is available, downloading an upgrade file to a local place and decrypting;
S3, checking whether the flow condition of the current interface of the gateway and the session number of the NAT are smaller than a threshold value, and if so, jumping to the step S4; if the threshold value is greater than the threshold value, jumping to the step S5;
s4, immediately starting upgrading;
s5, postponing a certain time to jump to the step S3 again.
As a preferred embodiment of the present invention, the preset value at intervals in the step S1 may be one day, so as to avoid the upgrade daemon from placing an additional burden on the home router that is not so resource-efficient.
As a preferred embodiment of the present invention, the setting of the threshold in the step S3 is specifically as follows: during the development process, the use condition (the output interface flow and the NAT session number) of some home devices with typical characteristics when idle is selected, and an initial threshold value is set according to the investigated result, wherein the values can also be selected for the user.
In a preferred embodiment of the present invention, the predetermined time delay in step S5 may be one day.
Claims (3)
1. An automatic upgrade control method for household network equipment based on flow statistics is characterized in that: the automatic upgrading method is that the household network equipment decides whether to start the automatic upgrading process by judging the flow of the interface and the size relation between the NAT session number and the set threshold value;
Starting an automatic upgrading process without considering whether the system time is in a state of successful synchronization;
starting an automatic upgrading process not at a fixed certain time point but selecting the time point when the service of the household network equipment is most idle;
the method for judging whether the household network equipment service is idle is to synchronously judge the flow of the equipment outlet interface and the number of NAT sessions, and when the flow of the equipment outlet interface and the number of NAT sessions are smaller than a set threshold, the method considers idle and does not adopt the number of online equipment to judge;
The automatic upgrading control method comprises the following steps:
s1, starting an automatic upgrading daemon, and detecting whether an available upgrading version exists on a server at intervals;
S2, if an available upgrade version is available, downloading an upgrade file to a local place and decrypting;
S3, checking whether the flow condition of the current interface of the gateway and the session number of the NAT are smaller than a threshold value, and if so, jumping to the step S4; if the threshold value is greater than the threshold value, jumping to the step S5;
s4, immediately starting upgrading;
s5, postponing a certain time to jump to the step S3 again.
2. The automatic upgrade control method of home network equipment based on traffic statistics according to claim 1, wherein: the preset value at intervals in the step S1 is one day, so as to avoid that the upgrading daemon brings extra burden to the home network equipment with less abundant resources.
3. The automatic upgrade control method of home network equipment based on traffic statistics according to claim 1, wherein: in the step S5, the preset value delayed for a certain period of time is one day.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111398250.1A CN114124702B (en) | 2021-11-19 | 2021-11-19 | Automatic upgrade control method for household network equipment based on flow statistics |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111398250.1A CN114124702B (en) | 2021-11-19 | 2021-11-19 | Automatic upgrade control method for household network equipment based on flow statistics |
Publications (2)
Publication Number | Publication Date |
---|---|
CN114124702A CN114124702A (en) | 2022-03-01 |
CN114124702B true CN114124702B (en) | 2024-06-14 |
Family
ID=80440464
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202111398250.1A Active CN114124702B (en) | 2021-11-19 | 2021-11-19 | Automatic upgrade control method for household network equipment based on flow statistics |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN114124702B (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN116055318B (en) * | 2022-06-10 | 2023-11-07 | 荣耀终端有限公司 | Router upgrading method and device, router and readable storage medium |
Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105721203A (en) * | 2016-01-26 | 2016-06-29 | 北京小米移动软件有限公司 | Upgrade processing method and device |
Family Cites Families (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN100452724C (en) * | 2006-10-19 | 2009-01-14 | 杭州华三通信技术有限公司 | Method and apparatus for automatic selecting staging time |
CN106911576A (en) * | 2017-02-17 | 2017-06-30 | 上海斐讯数据通信技术有限公司 | The shunting method for pushing and system of a kind of router firmware upgrading |
CN107769966A (en) * | 2017-10-12 | 2018-03-06 | 上海斐讯数据通信技术有限公司 | A kind of method and system for determining the router upgrade time |
-
2021
- 2021-11-19 CN CN202111398250.1A patent/CN114124702B/en active Active
Patent Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105721203A (en) * | 2016-01-26 | 2016-06-29 | 北京小米移动软件有限公司 | Upgrade processing method and device |
Also Published As
Publication number | Publication date |
---|---|
CN114124702A (en) | 2022-03-01 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US11310730B2 (en) | Method of connecting to network for home appliance, home appliance, and method of connecting to network for home appliance system | |
CN102291373B (en) | The update method of meta data file, device and system | |
CN114124702B (en) | Automatic upgrade control method for household network equipment based on flow statistics | |
CN104902316B (en) | Method, device, intelligent sound box and the mobile terminal of synchronous reproduction time | |
CN106440203A (en) | Method for pre-appointing starting of intelligent air conditioner | |
CN101635916A (en) | Method and system for loading resources based on multi-mode mobile terminal | |
WO2000069144A1 (en) | Cable modems that block data transfers during safe mode of operation and related methods | |
CN110557448A (en) | Control method and system for smart home | |
CN105872604B (en) | Live video stream method for pushing and system based on different user state | |
CN107567107B (en) | Data transmission method and device | |
EP3709664A1 (en) | Stream pushing method, system and server | |
CN104092714B (en) | The player method of files in stream media and device | |
WO2011143867A1 (en) | Method and system for implementing interaction between set-top box (stb) and home gateway | |
CN104038845A (en) | Method and device for transmitting message | |
WO2021103619A1 (en) | Network configuration terminal, network configuration method for household appliance, and computer-readable storage medium | |
CN108650310B (en) | Service discovery method | |
CN109214895A (en) | A kind of game resource promotion method, apparatus and system | |
US6834305B1 (en) | System and method for automatically connecting local and remote data processing systems | |
CN111491351A (en) | Method and system for sensing online of WiFi terminal based on authentication information | |
CN114745740B (en) | Intelligent household appliance upgrading system and method | |
CN113825191B (en) | Subscription method and device for equipment information | |
CN113727152A (en) | Method, device and storage medium for adjusting code rate | |
CN107483224A (en) | Wireless routing version upgrading method based on DR election | |
CN110572703A (en) | Multimedia data synchronous playing method, system, terminal and storage medium | |
WO2007146455A2 (en) | Content downloading in communication terminals |
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 |