CN103889015A - Network switching method - Google Patents

Network switching method Download PDF

Info

Publication number
CN103889015A
CN103889015A CN201410142678.3A CN201410142678A CN103889015A CN 103889015 A CN103889015 A CN 103889015A CN 201410142678 A CN201410142678 A CN 201410142678A CN 103889015 A CN103889015 A CN 103889015A
Authority
CN
China
Prior art keywords
network
pppoe server
broadcast packet
continuous
communicated
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
CN201410142678.3A
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 HUFU COMMUNICATION TECHNOLOGY Co Ltd
Original Assignee
SHANGHAI HUFU 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 HUFU COMMUNICATION TECHNOLOGY Co Ltd filed Critical SHANGHAI HUFU COMMUNICATION TECHNOLOGY Co Ltd
Priority to CN201410142678.3A priority Critical patent/CN103889015A/en
Publication of CN103889015A publication Critical patent/CN103889015A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The invention relates to a network switching method which comprises the following steps that S1, whether a pppoe server is connected or not is detected regularly after a 3G network mode is accessed, if the unconnected state of the pppoe server is detected for five continuous times, the pppoe server is in the serviceable condition; S2, when the serviceable condition of the pppoe server is monitored, the network is automatically switched into a pppoe network model to conduct connecting; S3, a packet pinging mode is adopted to detect whether the 3G network is connected or not after a wan port network model is accessed, packet pinging is conducted every five minutes, and every pinging comprises five packets, if more than two packets are lost, packet pinging is failed, if not, packet pinging is successful; S4, the 3G network is in the unserviceable state when packet pinging is failed for five continuous times, and the network is switched into the wan port mode to conduct connecting. The network switching method has the advantages that the network connecting state can be monitored timely, and the switching between the 3G network model and the wan port mode is flexible.

Description

A kind of method for switching network
Technical field
The present invention relates to a kind of method for switching network.
Background technology
Along with the day by day expansion of people to data traffic requirement, and cable network is universal, current, operator is in providing the wide area Access Network services such as 2G/3G/LTE/4G, also start to lay on a large scale WIFI network, be intended to guide user to carry out data service by WIFI network, thereby slow down the pressure of wide area Access Network.In addition, 3G network and cable network respectively have its pluses and minuses, and 3G networks and has good region coverage property, and mobility is good, but rate are higher; Cable network signal is stable, and speed is fast not as good as 3G network, also accessible cable network of the accessible 3G network of user.
Summary of the invention
In view of the above-mentioned problems in the prior art, main purpose of the present invention is to address the deficiencies of the prior art, the method for switching network that a kind of real time monitoring network connection status is provided and switches flexibly between 3G network pattern and wan mouth pattern.
The invention provides a kind of method for switching network, comprise the following steps: S1: after access 3G network pattern, whether timing detects pppoe server and is communicated with, if continuous the detection all for five times of described pppoe server is communicated with, described pppoe server is up state S2: in the time monitoring described pppoe server and be up state, network automatically switches to pppoe network schemer and connects; S3: after access wan mouth network schemer, whether the next timing of form that adopts ping to wrap detects 3G network and be communicated with, and ping once wrapped in every five minutes, and once comprised five bags, more than bag thought that this ping wraps unsuccessfully if lose 2, otherwise success; S4: after continuous 5 ping wrap unsuccessfully, described 3G network is in up state not, and network is switched to wan mouth pattern and connects.
Optionally, in described step S1, detecting the concrete steps whether described pppoe server be communicated with is: by Ethernet, send specific padi broadcast packet, if there is pppoe server to receive padi bag, can return to corresponding pado bag, program counter adds 1; If there is each time pado bag to return in the padi broadcast packet of continuous five times, counter is added to after 5, and network connection automatically switches into wan mouth pattern and connects; If pado broadcast packet in the padi broadcast packet of continuous five times once does not return, described counter carries out zero clearing, continues to send specific padi broadcast packet.
The present invention has the following advantages and beneficial effect: the present invention can real time monitoring network connection status,
Accompanying drawing explanation
Fig. 1 is the FB(flow block) of the method for switching network of the embodiment of the present invention.
Embodiment
The present invention is further illustrated with specific embodiment below with reference to accompanying drawings.
As shown in Figure 1: a kind of method for switching network of the embodiment of the present invention, comprises the following steps:
Si: after access 3G network pattern, whether timing detects pppoe server and be communicated with, if continuous the detection all for five times of described pppoe server is communicated with, described pppoe server is up state;
S2: in the time monitoring described pppoe server and be up state, network automatically switches to pppoe network schemer and connects;
S3: after access wan mouth network schemer, whether the next timing of form that adopts ping to wrap detects 3G network and be communicated with, and ping once wrapped in every five minutes, and once comprised five bags, more than bag thought that this ping wraps unsuccessfully if lose 2, otherwise success;
S4: after continuous 5 ping wrap unsuccessfully, described 3G network is in up state not, and network is switched to wan mouth pattern and connects.
As the preferred implementation of above-described embodiment, in described step S1, detect the concrete steps whether described pppoe server be communicated with and be:
By Ethernet, send specific padi broadcast packet, if there is pppoe server to receive padi bag, can return to corresponding pado bag, program counter adds 1;
If there is each time pado bag to return in the padi broadcast packet of continuous five times, counter is added to after 5, and network connection automatically switches into wan mouth pattern and connects;
If pado broadcast packet in the padi broadcast packet of continuous five times once does not return, described counter carries out zero clearing, continues to send specific padi broadcast packet.
Finally it should be noted that: above-described each embodiment, only for technical scheme of the present invention is described, is not intended to limit; Although the present invention is had been described in detail with reference to previous embodiment, those of ordinary skill in the art is to be understood that: its technical scheme that still can record previous embodiment is modified, or to wherein partly or entirely technical characterictic be equal to replacement; And these modifications or replacement do not make the essence of appropriate technical solution depart from the scope of various embodiments of the present invention technical scheme.

Claims (2)

1. a method for switching network, is characterized in that: comprise the following steps:
S1: after access 3G network pattern, whether timing detects pppoe server and be communicated with, if continuous the detection all for five times of described pppoe server is communicated with, described pppoe server is up state;
S2: in the time monitoring described pppoe server and be up state, network automatically switches to pppoe network schemer and connects;
S3: after access wan mouth network schemer, whether the next timing of form that adopts ping to wrap detects 3G network and be communicated with, and ping once wrapped in every five minutes, and once comprised five bags, more than bag thought that this ping wraps unsuccessfully if lose 2, otherwise success;
S4: after continuous 5 ping wrap unsuccessfully, described 3G network is in up state not, and network is switched to wan mouth pattern and connects.
2. method for switching network according to claim 1, is characterized in that, detects the concrete steps whether described pppoe server be communicated with to be in described step S1:
By Ethernet, send specific padi broadcast packet, if there is pppoe server to receive padi bag, can return to corresponding pado bag, program counter adds 1;
If there is each time pado bag to return in the padi broadcast packet of continuous five times, counter is added to after 5, and network connection automatically switches into wan mouth pattern and connects;
If pado broadcast packet in the padi broadcast packet of continuous five times once does not return, described counter carries out zero clearing, continues to send specific padi broadcast packet.
CN201410142678.3A 2014-04-11 2014-04-11 Network switching method Pending CN103889015A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410142678.3A CN103889015A (en) 2014-04-11 2014-04-11 Network switching method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410142678.3A CN103889015A (en) 2014-04-11 2014-04-11 Network switching method

Publications (1)

Publication Number Publication Date
CN103889015A true CN103889015A (en) 2014-06-25

Family

ID=50957695

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410142678.3A Pending CN103889015A (en) 2014-04-11 2014-04-11 Network switching method

Country Status (1)

Country Link
CN (1) CN103889015A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105636086A (en) * 2014-10-28 2016-06-01 中兴通讯股份有限公司 Network mode switching processing method, network mode switching processing device and terminal comprising network mode switching processing device

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2005071998A1 (en) * 2004-01-23 2005-08-04 Optimobile Ab Handover for a portable communication device between wireless local and wide area networks
CN1770709A (en) * 2004-11-01 2006-05-10 中兴通讯股份有限公司 ADSL fault diagnosis method
WO2009049620A1 (en) * 2007-10-19 2009-04-23 Novitell A/S Connection handover handling
CN103052144A (en) * 2012-12-14 2013-04-17 北京思特奇信息技术股份有限公司 System and method of mobile terminal for selecting optimal communication network
CN103067997A (en) * 2011-10-19 2013-04-24 中国电信股份有限公司 Method and device capable of judging whether terminal is switched between two wireless networks

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2005071998A1 (en) * 2004-01-23 2005-08-04 Optimobile Ab Handover for a portable communication device between wireless local and wide area networks
CN1770709A (en) * 2004-11-01 2006-05-10 中兴通讯股份有限公司 ADSL fault diagnosis method
WO2009049620A1 (en) * 2007-10-19 2009-04-23 Novitell A/S Connection handover handling
CN103067997A (en) * 2011-10-19 2013-04-24 中国电信股份有限公司 Method and device capable of judging whether terminal is switched between two wireless networks
CN103052144A (en) * 2012-12-14 2013-04-17 北京思特奇信息技术股份有限公司 System and method of mobile terminal for selecting optimal communication network

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105636086A (en) * 2014-10-28 2016-06-01 中兴通讯股份有限公司 Network mode switching processing method, network mode switching processing device and terminal comprising network mode switching processing device

Similar Documents

Publication Publication Date Title
EP2962429B1 (en) Traffic recovery in openflow networks
EP2649752B1 (en) System and method for providing improved failover performance for pseudowires
JP5350461B2 (en) Enhanced traffic indication in connection failure management
CN101557343B (en) Detecting and protecting method of double-layer loop in VRRP topological network
US20120087232A1 (en) Link state relay for physical layer emulation
JP5534006B2 (en) Transmission apparatus, transmission method, and computer program
CN105024836B (en) Method and device for switching primary Service Router (SR) and standby SR and SR
CN103023665B (en) A kind of method of multi-cast service protection, the network equipment and system
CN105227393A (en) A kind of bidirectional forwarding detection (BFD) method
CN104683206A (en) Method and device for coordinating and switching layer 2 and layer 3 virtual private networks in bridging apparatus
CN103200115A (en) Flow control method and device in SPB (Shortest Path Bridging) network
CN104422896B (en) Method and device for detecting direct current crossing in double direct-current power source systems
CN103916270B (en) The system for realizing Link State Pass Through function based on PTN, method and device
CN103889015A (en) Network switching method
JP6494471B2 (en) Network system, communication quality determination method, and analyzer
CN104811324A (en) Pseudo wire protection method, pseudo wire protection device and node
WO2012106872A1 (en) Method, aggregation device and system for implementing continuity check
WO2012122817A1 (en) Method and system for switching p2mp multicast tunnel protection
CN105262682A (en) Software defined network for power data communication and traffic grooming method thereof
CN104468386B (en) Flow equalization method and device in a kind of Ethernet virtualization internet network
CN103929319B (en) L2TP Tunnel state keepalive method and device
CN104901880B (en) A kind of method and device of service operation
CN102404144B (en) Dual-homing access protection method based on Multi-protocol Label Switching-Transport Profile ((MPLS-TP) network
CN104917642A (en) Port mirror image data transmitting method and system
CN104410503A (en) A novel hub

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C53 Correction of patent of invention or patent application
CB02 Change of applicant information

Address after: 200235, room 1, building 100, 810 Qinzhou Road, Shanghai, Xuhui District

Applicant after: Shanghai tiger-shaped tally issued to generals as imperial authorization for loop movement in ancient China communication Science and Technology Co., Ltd.

Address before: 200235, room 1, building 100, No. 810, Qinzhou Road, Shanghai

Applicant before: Shanghai Hufu Communication Technology Co., Ltd.

COR Change of bibliographic data

Free format text: CORRECT: APPLICANT; FROM: SHANGHAI TIGERCEL COMMUNICATION TECHNOLOGY LTD. TO: SHANGHAI TIGERCEL COMMUNICATION TECHNOLOGY CO., LTD.

CB02 Change of applicant information

Address after: 200235, room 1, building 100, 810 Qinzhou Road, Shanghai, Xuhui District

Applicant after: Hufu intelligent Polytron Technologies Inc

Address before: 200235, room 1, building 100, 810 Qinzhou Road, Shanghai, Xuhui District

Applicant before: Shanghai tiger-shaped tally issued to generals as imperial authorization for loop movement in ancient China communication Science and Technology Co., Ltd.

COR Change of bibliographic data
RJ01 Rejection of invention patent application after publication

Application publication date: 20140625

RJ01 Rejection of invention patent application after publication