CN103841104B - Automatically the method and device to network - Google Patents

Automatically the method and device to network Download PDF

Info

Publication number
CN103841104B
CN103841104B CN201410073142.0A CN201410073142A CN103841104B CN 103841104 B CN103841104 B CN 103841104B CN 201410073142 A CN201410073142 A CN 201410073142A CN 103841104 B CN103841104 B CN 103841104B
Authority
CN
China
Prior art keywords
networking
suspension
actual
layer
cushion
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
Application number
CN201410073142.0A
Other languages
Chinese (zh)
Other versions
CN103841104A (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.)
Nubia Technology Co Ltd
Original Assignee
Nubia 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 Nubia Technology Co Ltd filed Critical Nubia Technology Co Ltd
Priority to CN201410073142.0A priority Critical patent/CN103841104B/en
Publication of CN103841104A publication Critical patent/CN103841104A/en
Application granted granted Critical
Publication of CN103841104B publication Critical patent/CN103841104B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Small-Scale Networks (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The present invention is applied to the communications field, there is provided a kind of method and device to network automatically, methods described comprise the following steps:After the trigger signal for receiving manual suspension, trigger actual networking layer and perform suspension;After suspension, operation cushion judges whether to need to start networking;When needing to start networking, trigger actual networking layer and start networking process.The method and device of the embodiment of the present invention can realize the automatic networking under manual suspension.

Description

Automatically the method and device to network
Technical field
The invention belongs to the communications field, more particularly to a kind of method and device to network automatically.
Background technology
Router is substantially controlled using webpage at present, passes through ppp protocol(Point to Point Protocol)Dial Number online, during Web vector graphic, Auto-reconnect function is the technology that must be realized, this Auto-reconnect technology include two Aspect:
(1)Network oneself disconnects, and then connects automatically.
(2)Equipment user active suspension, but if there is provided actively connecting, then require that network can connect again.
Current many technologies can realize the function of first aspect mentioned immediately above, but in second aspect, almost only realize single Suspension technology during secondary suspension, if within a period of time, when triggering suspension event manually has multiple, how to handle networking process Then seldom refer to, it is particularly even more so when multiple users operate the control interfaces such as router.
The content of the invention
The purpose of the embodiment of the present invention is to provide a kind of method and device to network automatically, it is intended to solves existing craft The problem of can not being networked automatically under offline condition.
The embodiment of the present invention is achieved in that a kind of method to network automatically, and methods described comprises the following steps:
After the trigger signal for receiving manual suspension, the actual networking layer of operation cushion triggering performs suspension operation;
After the actual networking layer performs suspension operation, the operation cushion judges whether to need to start to connect automatically Net;
When needing to start networking, the operation cushion triggering actual networking layer starts automatic networking process.
Further, the operation cushion judges whether to need startup networking to include:
When meeting default entry condition, judge to need to start networking, otherwise need not start networking.
Further, the entry condition is:Manual suspension exceedes the default very first time, and/or user is arranged to hand Start networking after work suspension.
Further, after the actual networking layer of the triggering starts networking process, in addition to:
The feedback for operating the cushion reception actual networking layer, the feedback are successfully or automatic including networking automatically Network failure;
The operation cushion judges whether networking succeeds according to the actual feedback for networking layer;
When the operation cushion judges networking failure, the operation cushion judges whether to need to start again to connect Net, or,
When the operation cushion judges to network successfully, the operation cushion enters thread block state.
Further, the operation cushion enters after thread block, in addition to:
Judge whether to obtain the suspension signal that actual networking layer is sent, if having obtained the suspension signal, Then the operation cushion returns from thread block state, and judges whether to need to start networking again, otherwise lasting thread Obstruction.
The present invention also proposes a kind of device to network automatically, and described device includes:
Suspension module is triggered, after the trigger signal for receiving manual suspension, the actual networking layer is triggered and performs suspension Operation;
Judge module, for after the actual networking layer performs suspension operation, judging whether to need to start automatic networking;
Triggering networking module, start automatic networking process for when needing to start networking, triggering the actual networking layer.
Further, the judge module is specifically used for:
When meeting default entry condition, judge to need to start networking, otherwise need not start networking.
Further, the entry condition is that manual suspension is arranged to hand more than a default very first time, and/or user Start networking after work suspension.
Further, described device also includes:
Feedback module, sentence for receiving the feedback of the actual networking module, and according to the actual feedback for networking layer Whether disconnection net succeeds, and the feedback includes the automatic failure that successfully or automatically networks that networks;
When judging networking failure, judge whether to need to start networking again, or,
When judging to network successfully, into thread block state.
Further, the judge module is additionally operable to, and judges whether to obtain the suspension signal that actual networking layer is sent, If having obtained the suspension signal, whether the judge module judges to need to start again to network, otherwise lasting line Journey is blocked..
In embodiments of the present invention, realize and networked automatically as needed after user's craft suspension, use and provide to user Convenience.The embodiment of the present invention networks automatically after can also realizing automatic suspension simultaneously, has taken into account manual suspension and automatic suspension Processing.Further, the embodiment of the present invention uses hierarchical design so that and networking function modularization, develop and safeguard after being easy to, It provide the user good experience.
Brief description of the drawings
Fig. 1 is the flow chart of the method for the automatic networking that the embodiment of the present invention one provides;
Fig. 2 is the operational flowchart of layer of actually being networked in the method for the automatic networking that the embodiment of the present invention one provides;
Fig. 3 is the structure chart for the network structure that the device for the automatic networking that the embodiment of the present invention two provides is applicable;
Fig. 4 is the structure chart of the device for the automatic networking that the embodiment of the present invention two provides;
Fig. 5 is another structure chart of the device for the automatic networking that the embodiment of the present invention two provides.
Embodiment
In order to make the purpose , technical scheme and advantage of the present invention be clearer, it is right below in conjunction with drawings and Examples The present invention is further elaborated.It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, and It is not used in the restriction present invention.
Embodiment one
The embodiment of the present invention one provides a kind of method to network automatically.As shown in figure 1, the method for the embodiment of the present invention one Comprise the following steps:
S1, after receiving the trigger signal of manual suspension, the actual networking layer of operation cushion triggering performs suspension operation;
The operation cushion of the embodiment of the present invention one is responsible for receiving the signal of manual suspension, and then the actual networking layer of triggering is held Automatic networking after the manual suspension of row and manual suspension is carried out, after the actual layer that networks specifically performs manual suspension, manual suspension Automatic networking after automatic networking and automatic suspension.
Operate cushion and start a thread, the thread is an endless loop.Such as the manual suspension operation of operator's progress, then grasp Make cushion and send one " exiting networking process signals ", into the operating process of the actual networking layer shown in Fig. 2, by actually connecting Stratum reticulare performs suspension operation, after the actual layer that networks performs suspension operation, can send suspension signal to operating cushion.
S2, after the actual networking layer performs suspension operation, operation cushion judges whether to need to start automatic networking;
After operation cushion receives suspension signal, judge whether to need to start networking, it is necessary to when perform step S3.Sentence It is disconnected whether to need to start the entry condition to network and be arranged as required to, such as manual suspension more than a default very first time, And/or user is arranged to startup networking after manual suspension.
S3, the actual networking layer of triggering start networking process, and operation cushion is sent to actual networking layer " starts network letter Number ", into the operating process of the actual networking layer shown in Fig. 2, automatic networking operation is performed by the layer that actually networks, and feed back networking The message of success or failure is operated to operating cushion;
S4, operation cushion judge whether networking succeeds according to the actual feedback for networking layer.When networking failure, step is returned Rapid S2, network and successfully then enter step S5;
Step S5, operate the thread block of cushion, operation cushion judge whether to obtain actual networking layer sends " Through suspension signal ", it is then return to step S2, otherwise operates cushion and continue thread block.
Step S1 to S5 is completed by operation cushion, and " networking process is exited for what operation cushion in step S1 was sent Signal ", the specific steps that the actual layer that networks performs suspension operation include:
Step S10, actual networking layer enters armed state, waits new signal to arrive.
Step S11, after receiving " exiting networking process signals ", networking process is killed.
Step S12, judge whether to terminate networking, what it is due to execution is suspension operation, therefore performs step S13.
Step S13, suspension is terminated.
Step S14, one " suspension signal " is sent to operation cushion, return to step S10.
The triggering networking signal sent for operating cushion in step S3, the actual layer that networks perform the automatic operation that networks Specific steps include:
Step S10, actual networking layer enters armed state, waits new signal to arrive.
Step S21, receive " startup network signal ".
Step S22, automatic networking.
Step S23, judge whether networking succeeds, successful then enter step S24, otherwise progress step S25.
Step S24, feed back " networking pass signal " and give operation cushion, return to step S10.
Step S25, feed back " networking failure signal " and give operation cushion, return to step S10.
After connecting to network, if long-time does not have to or other reasonses, the actual layer that networks can receive " automatic from server Suspension signal ", it is that server disconnects automatically due to no manual suspension, so performing:
Step S10, actual networking layer enters armed state, waits new signal to arrive.
Step S31, receive " automatic suspension signal ".
Step S12, judge whether to terminate networking, due to being automatic suspension, it is necessary to network automatically, therefore perform step S32.
Step S32, automatic networking, return to step S10.
In the embodiment of the present invention one, realize and networked automatically as needed after user's craft suspension, carried to user's use Convenience is supplied.The embodiment of the present invention networks automatically after can also realizing automatic suspension simultaneously, has taken into account manual suspension and automatic suspension Processing.Further, the embodiment of the present invention uses hierarchical design, and operation cushion plays one to networking event and suspension thing The caching effect of part, the actual layer that networks are responsible for specific networking and suspension operation, and they ensure that multiple users to network together Carry out the function of suspension and networking operation.
Embodiment two
The embodiment of the present invention two proposes a kind of device to network automatically, and suitable for the system shown in Fig. 3, the system includes Cushion 10 and actual networking layer 20 are operated, wherein, operation cushion 10 is used for after manual suspension, judges whether to need to start Networking;And when needing to start networking, trigger actual networking layer 20 and start networking process.
As shown in figure 4, the device of the embodiment of the present invention two can be in order to operate cushion 10 itself, or built-in operation cushion A device in 10, including triggering suspension module 11, judge module 12 and triggering networking module 13.
Wherein, after triggering trigger signal of the suspension module 11 for receiving manual suspension, trigger actual networking layer 20 and perform Suspension.Trigger the signal that suspension module 11 is responsible for receiving manual suspension, then the actual networking layer 20 of triggering perform manual suspension and Automatic networking after manual suspension is carried out, the actual layer 20 that networks specifically perform the automatic networking after manual suspension, manual suspension with And the automatic networking after automatic suspension.In actual mechanical process.When operator's craft suspension operation, then suspension module 11 is triggered Send one " exiting networking process signals " and give reality networking layer 20, suspension is performed by the layer 20 that actually networks and operated, actual networking After layer performs suspension operation, suspension signal can be sent and extremely operate cushion 10.
After judge module 12 is used for suspension, judge whether to need to start networking.Judge whether to need the startup for starting networking Condition can be arranged as required to, after manual suspension is more than a default very first time, and/or user is arranged to manual suspension Start networking.
Triggering networking module 13 is used for when needing to start networking, triggers actual networking layer 20 and starts networking process.Grasp Make cushion 10 and send " startup network signal " to actual networking layer 20, automatic networking operation is performed by the layer 20 that actually networks, touched Hair networking module 13 etc. actual networking layer to be received networks the feedback of success or failure automatically.
As shown in figure 5, the device of the embodiment of the present invention two also includes feedback module 14.Actual networking layer 20 performs to be connected automatically After net operation, feedback module 14 judges whether networking succeeds according to the actual feedback for networking layer.When networking failure, return and judge Module 12 judges whether to need to start networking, is that then notification triggers networking module 13 sends " startup network signal " to actual again Networked layer 20, and the thread block of cushion 10 is operated if networking successfully.Judge module 12 judges whether to obtain suspension letter Number, it is to return, judges whether to need to start networking again, it is not necessary to which startup networking then operates cushion 10 and continues thread resistance Plug.
And the layer 20 that actually networks performs following three kinds of operations respectively:
(1)When receiving " exiting networking process signals " of triggering suspension module 11, networking process is killed.Judge whether to terminate Networking, what it is due to execution is suspension operation, it is therefore desirable to terminates networking, after the actual layer 20 that networks terminates suspension, is buffered to operation Layer 10 sends one " suspension signal ", and the actual layer 20 that networks enters thread block.
(2)Networked automatically when " the startup network signal " that receives triggering networking module 13, and judge whether networking succeeds, into Work(then sends " networking pass signal " to cushion is operated, and otherwise sends " networking failure signal ", and then actual networking layer 20 enters Enter thread block.
(3)After connecting to network, if long-time does not have to or other reasonses, the actual layer 20 that networks can be received from server " automatic suspension signal ", it is that server disconnects automatically due to no manual suspension, so actual execution level 20 networks automatically, and Into thread block.
It is automatic as needed after the device of the embodiment of the present invention two is realized when user's craft suspension to network, give user to use Provide conveniently.The embodiment of the present invention networks automatically after can also realizing automatic suspension simultaneously, has taken into account manual suspension and from dynamic circuit breaker The processing of net.Further, the embodiment of the present invention uses hierarchical design, is played one to networking event by operation cushion and is broken The caching effect of net event, specific networking is responsible for by the layer that actually networks and suspension operates, they ensure that multiple users together The function of suspension and networking operation is carried out to network.
The foregoing is merely illustrative of the preferred embodiments of the present invention, is not intended to limit the invention, all essences in the present invention All any modification, equivalent and improvement made within refreshing and principle etc., should be included in the scope of the protection.

Claims (6)

  1. A kind of 1. method to network automatically, it is characterised in that methods described comprises the following steps:
    After the trigger signal for receiving manual suspension, the actual networking layer of operation cushion triggering performs suspension operation;
    After the actual networking layer performs suspension operation, the operation cushion judges whether to need to start automatic networking;
    When needing to start networking, the operation cushion triggering actual networking layer starts automatic networking process;
    After the actual networking layer of the triggering starts automatic networking process, in addition to:
    The operation cushion receives the feedback of the actual networking layer, and the feedback includes automatic network and successfully or automatically networked Failure;
    The operation cushion judges whether networking succeeds according to the actual feedback for networking layer;
    When the operation cushion judges networking failure, the operation cushion judges whether to need to start networking again, or, When the operation cushion judges to network successfully, the operation cushion enters thread block state.
  2. 2. the method as described in claim 1, it is characterised in that the operation cushion enters after thread block state, also Including:
    Judge whether to obtain the suspension signal that actual networking layer is sent, if having obtained the suspension signal, institute State operation cushion to return from thread block state, and judge whether to need to start networking again, otherwise lasting thread block.
  3. 3. the method as described in any one of claim 1 to 2, it is characterised in that the operation cushion judges whether that needs open Dynamic automatic networking, including:
    When meeting default entry condition, judge to need to start networking, otherwise need not start networking, the entry condition For:Manual suspension exceedes the default time, and/or user is arranged to startup networking after manual suspension.
  4. 4. a kind of device to network automatically, it is characterised in that described device includes:
    Suspension module is triggered, after the trigger signal for receiving manual suspension, actual networking layer is triggered and performs suspension operation;
    Judge module, for after the actual networking layer performs suspension operation, judging whether to need to start automatic networking;
    Triggering networking module, start automatic networking process for when needing to start networking, triggering the actual networking layer;
    Described device also includes:
    Feedback module, judge networking for receiving the feedback of the actual networking layer, and according to the feedback of the actual layer that networks Whether succeed, the feedback includes the automatic failure that successfully or automatically networks that networks;
    When judging networking failure, judge whether to need to start networking again, or,
    When judging to network successfully, into thread block state.
  5. 5. device as claimed in claim 4, it is characterised in that the judge module is additionally operable to, and judges whether actually to be connected The suspension signal that stratum reticulare is sent, if having obtained the suspension signal, the judge module judge again whether Need to start and network, otherwise lasting thread block.
  6. 6. the device as any one of claim 4 to 5, it is characterised in that the judge module is specifically used for:
    When meeting default entry condition, judge to need to start networking, otherwise need not start networking, the entry condition is Manual suspension starts networking after being arranged to manual suspension more than a default very first time, and/or user.
CN201410073142.0A 2014-02-28 2014-02-28 Automatically the method and device to network Active CN103841104B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410073142.0A CN103841104B (en) 2014-02-28 2014-02-28 Automatically the method and device to network

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410073142.0A CN103841104B (en) 2014-02-28 2014-02-28 Automatically the method and device to network

Publications (2)

Publication Number Publication Date
CN103841104A CN103841104A (en) 2014-06-04
CN103841104B true CN103841104B (en) 2017-12-22

Family

ID=50804236

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410073142.0A Active CN103841104B (en) 2014-02-28 2014-02-28 Automatically the method and device to network

Country Status (1)

Country Link
CN (1) CN103841104B (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102611589A (en) * 2012-04-12 2012-07-25 南京物联传感技术有限公司 Automatic detection device of disconnection of router and working method thereof
CN202475778U (en) * 2012-02-29 2012-10-03 杭州巨松科技有限公司 Industrial grade 3rd generation (3G) wireless router

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7058059B1 (en) * 2001-02-20 2006-06-06 At&T Corp. Layer-2 IP networking method and apparatus for mobile hosts

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN202475778U (en) * 2012-02-29 2012-10-03 杭州巨松科技有限公司 Industrial grade 3rd generation (3G) wireless router
CN102611589A (en) * 2012-04-12 2012-07-25 南京物联传感技术有限公司 Automatic detection device of disconnection of router and working method thereof

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
《详解如何实现路由器设置自动拨号上网》;无;《计算机与网络》;20100108;第28页 *

Also Published As

Publication number Publication date
CN103841104A (en) 2014-06-04

Similar Documents

Publication Publication Date Title
CN104202799B (en) A kind of method of WIFI smart machines zero configuration access wireless network
CN103812823B (en) Configuration information is migrated during live migration of virtual machine method, equipment and system
CN103841111B (en) A kind of method for preventing Data duplication from submitting and server
CN104081297B (en) The method and system of data communication between housed device and subscriber terminal equipment
CN110120931B (en) Information interaction method and device and storage medium
CN105721318B (en) The method and apparatus of network topology are found in a kind of software defined network SDN
CN104869057B (en) Open flow switch Graceful Restart processing method, device and open flow controller
CN104219705B (en) VoLTE terminal re-registration method and device
CN107517136A (en) The implementation method of heartbeat keep-alive, apparatus and system
CN107819874A (en) A kind of method of remote control fire wall terminal
CN108632808A (en) Core network control surface device selection method and device
CN102624584A (en) Link detection method and link detection device
CN106453124A (en) Traffic scheduling method and device
CN105898786A (en) Access point escape method and access point escape system
CN104156258A (en) Application program sharing operation method, related equipment and system
CN103441897A (en) Method and device for locating failure node in virtual network
CN106162640A (en) A kind of portal authentication method and system
US10298487B2 (en) Method and device for transmitting data
CN110166406A (en) Manage method, system and the relevant device of media transmission access
CN106656648A (en) Application flow dynamic protection method and system based on household gateway, and household gateway
CN106341249A (en) Redundant port switching method and device
CN108268228A (en) Screen projective techniques, device and terminal
CN103841104B (en) Automatically the method and device to network
CN107294830A (en) A kind of data transmission method and system
CN102892171B (en) A kind of seamless handover method and device based on individual's net

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information

Address after: A District No. 9018 Han innovation building in Nanshan District high tech Zone in Shenzhen city of Guangdong Province, North Central Avenue, 518000 floor 10

Applicant after: Nubian Technologies Ltd.

Address before: A District No. 9018 Han innovation building in Nanshan District high tech Zone in Shenzhen city of Guangdong Province, North Central Avenue, 518000 floor 10

Applicant before: Shenzhen ZTE Mobile Tech Co., Ltd.

CB02 Change of applicant information
GR01 Patent grant
GR01 Patent grant