CN106357439A - Method and system for updating router time - Google Patents

Method and system for updating router time Download PDF

Info

Publication number
CN106357439A
CN106357439A CN201610810678.5A CN201610810678A CN106357439A CN 106357439 A CN106357439 A CN 106357439A CN 201610810678 A CN201610810678 A CN 201610810678A CN 106357439 A CN106357439 A CN 106357439A
Authority
CN
China
Prior art keywords
time
router
client
webserver
system time
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.)
Pending
Application number
CN201610810678.5A
Other languages
Chinese (zh)
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.)
Shanghai Feixun Data Communication Technology Co Ltd
Original Assignee
Shanghai Feixun Data Communication 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 Shanghai Feixun Data Communication Technology Co Ltd filed Critical Shanghai Feixun Data Communication Technology Co Ltd
Priority to CN201610810678.5A priority Critical patent/CN106357439A/en
Publication of CN106357439A publication Critical patent/CN106357439A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0803Configuration setting
    • H04L41/0813Configuration setting characterised by the conditions triggering a change of settings
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0876Aspects of the degree of configuration automation
    • H04L41/0886Fully automatic configuration
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/08Network architectures or network communication protocols for network security for authentication of entities
    • H04L63/083Network architectures or network communication protocols for network security for authentication of entities using passwords

Abstract

The invention provides a method for updating router time and a system for updating router time, wherein the method comprises steps of obtaining system time of current client when a client logs in a router, and sending the system time of the client and the user login information to a network server; under the condition of correct user login information, if the system time of the router is the same as the preset value of the router, not update the system time of the router synchronously; synchronously updating the system time of the router to the system time of the client. The method and the system for updating the router time shall be able to update the router time under the condition of obstructed network or abnormal time server.

Description

A kind of method and system of more new router time
Technical field
Embodiment of the present invention is related to communication technique field, the method for more particularly, to a kind of more new router time and be System.
Background technology
Router (router), is to connect each LAN, the equipment of wide area network in the Internet, and it can be according to the situation of channel Automatically select and set route, with optimal path, by tandem sending signal.Router is the hinge of internet, is used for Connect multiple logically separate networks, so-called logic network is to represent a single network or a subnet.Work as data When a subnet is transferred to another subnet, can be completed by the routing function of router.
Router is generally supported to update time and automatic synchronization time function manually.The manual renewal time is manual synchronization visitor The time at family end, user often forgets the manual synchronization time, also the pretty troublesome function of going for the manual synchronization time.Router The automatic synchronization time, need Time-Dependent server, generally require that network environment is normal and corresponding time server is normal, If network is obstructed or time server breaks down, can lead to the time cannot normal synchronized, be still the acquiescence of system 1970 initial value time, thus leading to user configured some functions with time correlation, if desired for week several or certain when Between section come into force, the time according to user wants that fails is executed.
Content of the invention
For the problems referred to above, the purpose of embodiment of the present invention is to provide a kind of method of more new router time and is System, though network is obstructed or time server abnormal in the case of it is also possible to the more new router time.
For achieving the above object, embodiment of the present invention provides a kind of method of more new router time to include:
When client logs in router, obtain the system time of active client, and during by the system of described client Between and user login information be sent to the webserver;
In the case of described user login information is correct, if the preset value phase of the system time of router and router With then the system time of described router does not have synchronized update;
The system time synchronization of described router is updated to the system time of described client.
Further, described obtain the system time of active client when client logs in router, and by described visitor The system time at family end and user login information are sent to the webserver, comprising: when user logs in router by client When, obtain the system time of active client, the time variable of the system time of described client is set to cur_time;Visitor The user's request carrying cur_time and username and password is passed to CGI(Common gateway interface) and is sent to net by family end together Network server;The webserver transfers to CGI(Common gateway interface) routine processes after receiving described user's request.
Further, methods described also includes: the CGI(Common gateway interface) program of the webserver is by the use in user's request Name in an account book and password and registered username and password are compared;If identical, user login information is correct;If no With then user login information mistake;CGI(Common gateway interface) program sends the result of user login information to network service Device, described result is transmitted back to client by the webserver again.
Further, methods described also includes: the default initial values that the preset value of setting router is;Judge router System time whether synchronized update;If the time in the system time of described router is default initial values, described road Synchronized update is not had by the system time of device;If the time in the system time of described router is different from default initial values, The then system time of described router synchronized update.
Further, the described system time synchronization by described router is updated to the system time of described client, bag Include: described router adds temporary variable temp_time in advance, described temp_time is used for storage from webserver transmission The time parameter coming over;When receiving the webserver and passing over cur_time time, the system time of described router Synchronized update is the described cur_time time.
For achieving the above object, embodiment of the present invention also provides a kind of system of more new router time, comprising: client End, router and the webserver, wherein, described client, for when end logs in router, obtain active client is The system time, and the system time of described client and user login information are sent to the webserver;The described webserver, For in the case of described user login information is correct, if the system time of router is identical with the preset value of router, Then judge that the system time of described router does not have synchronized update;Described router, for during by the system of described router Between synchronized update be described client system time.
Further, when described client logs in router, obtain the system time of active client, by described client The time variable of system time be set to cur_time;Described client will carry cur_time and username and password User's request pass to CGI(Common gateway interface) together and be sent to the webserver, so that the webserver receives described user CGI(Common gateway interface) routine processes are transferred to after request.
Further, the described webserver includes: the first judge module, for by the universal gateway of the webserver Username and password in user's request and registered username and password are compared by interface routine;If identical, User login information is correct;If it is different, then user login information mistake;By CGI(Common gateway interface) program, User logs in is believed The result of breath sends the webserver to, and described result is transmitted back to client by the webserver again.
Further, the described webserver also includes: setup module, the acquiescence that the preset value for arranging router is Initial value;Whether second judge module, for judging the system time synchronized update of router;If described router is Time in the system time is default initial values, then the system time of described router does not have synchronized update;If described router System time in time different from default initial values, then the system time of described router synchronized update.
Further, described router adds temporary variable temp_time in advance, described temp_time be used for storage from The time parameter that the webserver passes over;When receiving the webserver and passing over cur_time time, described road The described cur_time time is updated to by the system time synchronization of device.
Therefore, a kind of method and system of more new router time that embodiment of the present invention provides, can be more preferable The time helping user's active synchronization router, going to update manually lock in time without user, also ensuring that and the time simultaneously Related function can come into force, even if it is also possible to update route in the case of network is obstructed or time server is abnormal The device time.
Brief description
In order to be illustrated more clearly that embodiment of the present invention or technical scheme of the prior art, below will be to embodiment Or in description of the prior art required use accompanying drawing one by one simply introduce it should be apparent that, drawings in the following description are Some embodiments of the present invention, for those of ordinary skill in the art, on the premise of not paying creative work, also Other accompanying drawings can be obtained according to these accompanying drawings.
A kind of schematic flow sheet of the method for more new router time that Fig. 1 provides for embodiment of the present invention;
A kind of functional block diagram of the system of more new router time that Fig. 2 provides for embodiment of the present invention.
Specific embodiment
Purpose, technical scheme and advantage for making embodiment of the present invention are clearer, implement below in conjunction with the present invention Accompanying drawing in mode, is clearly and completely described the reality it is clear that described to the technical scheme in embodiment of the present invention The mode of applying is a part of embodiment of the present invention, rather than whole embodiments.Based on the embodiment in the present invention, ability The every other embodiment that domain those of ordinary skill is obtained under the premise of not making creative work, broadly falls into the present invention The scope of protection.
Embodiment of the present invention provides a kind of method of more new router time.Refer to Fig. 1, during described more new router Between method may comprise steps of:
Step s1, when client logs in router, obtains the system time of active client, and by described client System time and user login information are sent to the webserver.
In this step, after client normally goes up electricity, client is needed to pass through to log in connection route device.Different with existing It is, in the present embodiment, when user logs in router by client, also will to obtain the system time of active client, And the system time of the active client of acquisition is passed to router together with the log-on message of user.
Preferably, the time variable of the system time of described client is set to cur_time, and the log-on message of user is Username and password.
Specifically, when user logs in router by client, client carries cur_ by internet The user's request of time and username and password passes to CGI(Common gateway interface) (cgi, common gateway together Interface) deliver to network (web) server, web server transfers to cgi routine processes after receiving this user's request.Wherein, Cgi is interface standard and web server between for the external application (cgi program), and this cgi program operates in web server On.
Step s2, judges whether user login information is correct, if it is, carrying out step s3;If not, carrying out step s5.
In this step, the cgi program in web server is by the username and password in user's request and registered use Name in an account book and password are compared, if identical, user login information is correct, if it is different, then user login information mistake.
Whether step s3, judge the system time synchronized update of router, if it is, carrying out step s6;If not, entering Row step s4.
In this step, the default initial values 1970 that the preset value of setting router is are naturally it is also possible to be that other are pre- If the time, here does not limit.
If user login information is correct, cgi program sends web services to correct for user login information result Device, web server sends back to client result.
One step ground, router is to be compared with the preset value of router the time, if router is Time in time be default initial values 1970 then it is assumed that there is no synchronized update, if router is year in the time Part it is not for default initial values 1970 then it is assumed that synchronized update.
Step s4, more new router time.
In this step, if the system time of router has synchronized update, during this cur_time of router synchronization Between.
Specifically, router needs to add temporary variable temp_time, and this variable is used for storage and passes from web front-end The time parameter passed.When receiving the webserver and passing over cur_time time, during the system of described router Between synchronized update be the described cur_time time.
Step s5, points out user login information mistake.
In this step, if user login information is incorrect, cgi program is the result of user login information mistake Send web server to, web server sends back to Client-Prompt user login information mistake this result.
Step s6, assumes request content in client.
The method of more new router time provided in an embodiment of the present invention, though network is obstructed or time server not It is also possible to the more new router time in the case of normal.
Refer to Fig. 2.Embodiment of the present invention provides a kind of system of more new router time, comprising: client, route Device and the webserver, wherein,
Described client, for when end logs in router, obtaining the system time of active client, and by described client The system time at end and user login information are sent to the webserver;
Specifically, when described client logs in router, obtain the system time of active client, by described client The time variable of system time is set to cur_time;Described client will carry cur_time and username and password User's request passes to CGI(Common gateway interface) together and is sent to the webserver, so that the webserver receives described user and asks CGI(Common gateway interface) routine processes are transferred to after asking.
The described webserver, in the case of described user login information is correct, if during the system of router Between identical with the preset value of router, then judge that the system time of described router does not have synchronized update;
Specifically, the described webserver includes: the first judge module, for being connect by the universal gateway of the webserver Username and password in user's request and registered username and password are compared by mouth program;If identical, use Family log-on message is correct;If it is different, then user login information mistake;By CGI(Common gateway interface) program by user login information Result send the webserver to, described result is transmitted back to client by the webserver again.
The described webserver includes also including: setup module (not shown), for arranging the preset value of router Default initial values;Whether second judge module, for judging the system time synchronized update of router;If described router System time in time be default initial values, then the system time of described router there is no synchronized update;If described road Different from default initial values by the time in the system time of device, then the system time of described router synchronized update.
Described router, for being updated to the system time of described client by the system time synchronization of described router.
Specifically, described router adds temporary variable temp_time in advance, and described temp_time is used for storage from net The time parameter that network server passes over;When receiving the webserver and passing over cur_time time, described route The system time synchronization of device is updated to the described cur_time time.
When the above-mentioned particular technique details of the system of more new router time being related to and aforesaid more new router Between method in similar, therefore no longer specifically repeat.
Therefore, the method and system of more new router time provided in an embodiment of the present invention, can preferably help to use Householder moves the time of synchronization routing device, is going to update manually lock in time without user, is also ensuring that and time correlation simultaneously Function can come into force.
Each embodiment in this specification is all described by the way of going forward one by one, identical similar between each embodiment Partly mutually referring to what each embodiment stressed is the difference with other embodiment.
Finally it is noted that the description to the various embodiments of the present invention above is supplied to ability with the purpose describing Field technique personnel.It is not intended to exhaustion or be not intended to limit the invention to single disclosed embodiment.As above institute State, the various replacements of the present invention and change will be apparent from for above-mentioned technology one of ordinary skill in the art.Therefore, Although specifically discuss the embodiment of some alternatives, other embodiment will be apparent from, or ability Field technique personnel relatively easily draw.It is contemplated that include here discussed all replacements of the present invention, modification and Change, and the other embodiment in the spirit and scope of above-mentioned application that falls.

Claims (10)

1. a kind of method of more new router time is it is characterised in that include:
When client logs in router, obtain the system time of active client, and by the system time of described client and User login information is sent to the webserver;
In the case of described user login information is correct, if the system time of router is identical with the preset value of router, Then the system time of described router does not have synchronized update;
The system time synchronization of described router is updated to the system time of described client.
2. the method for more new router time according to claim 1 is it is characterised in that described route when client logs in During device, obtain the system time of active client, and the system time of described client and user login information are sent to net Network server, comprising:
When user logs in router by client, obtain the system time of active client, by the system of described client The time variable of time is set to cur_time;
The user's request carrying cur_time and username and password is passed to CGI(Common gateway interface) and sends out by client together Deliver to the webserver;
The webserver transfers to CGI(Common gateway interface) routine processes after receiving described user's request.
3. the method for more new router time according to claim 2 is it is characterised in that methods described also includes:
The CGI(Common gateway interface) program of the webserver by the username and password in user's request and registered user name and Password is compared;
If identical, user login information is correct;
If it is different, then user login information mistake;
CGI(Common gateway interface) program sends the result of user login information to the webserver, and the webserver is again by institute State result and be transmitted back to client.
4. the method for more new router time according to claim 3 is it is characterised in that methods described also includes: setting The default initial values that the preset value of router is;
Judge the system time whether synchronized update of router;
If the time in the system time of described router is default initial values, the system time of described router is not same Step updates;
If the time in the system time of described router is different from default initial values, the system time of described router is Synchronized update.
5. the method for more new router time according to claim 2 is it is characterised in that described by described router be System time synchronized is updated to the system time of described client, comprising:
Described router adds temporary variable temp_time in advance, and described temp_time is used for storage from webserver transmission The time parameter coming over;
When receiving the webserver and passing over cur_time time, the system time synchronization of described router is updated to institute State the cur_time time.
6. a kind of system of more new router time is it is characterised in that include: client, router and the webserver, its In,
Described client, for when end logs in router, obtaining the system time of active client, and by described client System time and user login information are sent to the webserver;
The described webserver, in the case of described user login information is correct, if the system time of router and The preset value of router is identical, then judge that the system time of described router does not have synchronized update;
Described router, for being updated to the system time of described client by the system time synchronization of described router.
7. the system of more new router time according to claim 6 is it is characterised in that described client logs in router When, obtain the system time of active client, the time variable of the system time of described client is set to cur_time;
The user's request carrying cur_time and username and password is passed to universal gateway and connects by described client together Mouth is sent to the webserver, so that the webserver is transferred at CGI(Common gateway interface) program after receiving described user's request Reason.
8. the system of more new router time according to claim 7 is it is characterised in that the described webserver includes: First judge module, for by the CGI(Common gateway interface) program of the webserver by the username and password in user's request and Registered username and password is compared;
If identical, user login information is correct;
If it is different, then user login information mistake;
The webserver to is sent the result of user login information by CGI(Common gateway interface) program, the webserver is again Described result is transmitted back to client.
9. the system of more new router time according to claim 8 is it is characterised in that the described webserver also wraps Include:
Setup module, the default initial values that the preset value for arranging router is;
Whether second judge module, for judging the system time synchronized update of router;
If the time in the system time of described router is default initial values, the system time of described router is not same Step updates;
If the time in the system time of described router is different from default initial values, the system time of described router is Synchronized update.
10. the system of more new router time according to claim 9 is it is characterised in that described router adds in advance Temporary variable temp_time, described temp_time is used for the time parameter that storage passes over from the webserver;Work as reception To the webserver pass over cur_time time when, the system time synchronization of described router is updated to described cur_time Time.
CN201610810678.5A 2016-09-08 2016-09-08 Method and system for updating router time Pending CN106357439A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610810678.5A CN106357439A (en) 2016-09-08 2016-09-08 Method and system for updating router time

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610810678.5A CN106357439A (en) 2016-09-08 2016-09-08 Method and system for updating router time

Publications (1)

Publication Number Publication Date
CN106357439A true CN106357439A (en) 2017-01-25

Family

ID=57859498

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610810678.5A Pending CN106357439A (en) 2016-09-08 2016-09-08 Method and system for updating router time

Country Status (1)

Country Link
CN (1) CN106357439A (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060242294A1 (en) * 2005-04-04 2006-10-26 Damick Jeffrey J Router-host logging
CN102170461A (en) * 2011-03-10 2011-08-31 深圳创维数字技术股份有限公司 Portable terminal timing method based on set top box, portable terminal and set top box
CN104125263A (en) * 2013-04-28 2014-10-29 广东美的制冷设备有限公司 System for timing household appliance through Internet of Things
CN104284413A (en) * 2014-10-31 2015-01-14 北京元心科技有限公司 Mobile terminal time synchronization method and system
CN105228092A (en) * 2015-10-12 2016-01-06 Tcl集团股份有限公司 A kind of method and system of TV acquisition time

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060242294A1 (en) * 2005-04-04 2006-10-26 Damick Jeffrey J Router-host logging
CN102170461A (en) * 2011-03-10 2011-08-31 深圳创维数字技术股份有限公司 Portable terminal timing method based on set top box, portable terminal and set top box
CN104125263A (en) * 2013-04-28 2014-10-29 广东美的制冷设备有限公司 System for timing household appliance through Internet of Things
CN104284413A (en) * 2014-10-31 2015-01-14 北京元心科技有限公司 Mobile terminal time synchronization method and system
CN105228092A (en) * 2015-10-12 2016-01-06 Tcl集团股份有限公司 A kind of method and system of TV acquisition time

Similar Documents

Publication Publication Date Title
JP4755280B2 (en) Network verification system
US8869236B1 (en) Automatic configuration of a network device
CN108965123B (en) Link switching method and network communication system
CN104009925B (en) Bridge joint method for building up, device and the router of router
EP2739093A1 (en) Restoration of network access
US20030069990A1 (en) Router discovery protocol on a mobile internet protocol based network
CN104796484B (en) A kind of fast search connection method based on display screen control system
CA2782260C (en) System and method for short-range electronic communication
EP1898594A2 (en) A method for providing broadband communication services
US9451457B2 (en) Method to enhance high availability in a secure telecommunications network, and telecommunications network comprising a plurality of remote nodes
CN106304401B (en) Data tunnel establishment method under public WLAN architecture and AP
CN104301449A (en) Method and device for modifying IP address
CN103685398A (en) Communication connection establishment method and communication system
KR101946173B1 (en) Communication device, communication system and communication method
US20240106708A1 (en) Fabric availability and synchronization
JP5009257B2 (en) Relay device and relay method
US9191320B2 (en) Relay server and relay communication system
CN106357439A (en) Method and system for updating router time
CN105052239B (en) Policy control method, related device and system
CN113691591B (en) Data transmission method, device and computer readable storage medium
TWI474731B (en) Wimax client and mothed for setting parameters of wimax client
CN107086958B (en) Data transmission method, wap gateway and system
US6442614B1 (en) Method and apparatus for lost connectivity recovery
CN104270307A (en) Establishing method and device for BGP neighborhood
CN107113230B (en) Method, equipment and system for determining Generic Routing Encapsulation (GRE) tunnel identifier

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20170125

WD01 Invention patent application deemed withdrawn after publication