CN106027320A - Method for achieving many-to-one hot standby of Portal gateways - Google Patents
Method for achieving many-to-one hot standby of Portal gateways Download PDFInfo
- Publication number
- CN106027320A CN106027320A CN201610589728.1A CN201610589728A CN106027320A CN 106027320 A CN106027320 A CN 106027320A CN 201610589728 A CN201610589728 A CN 201610589728A CN 106027320 A CN106027320 A CN 106027320A
- Authority
- CN
- China
- Prior art keywords
- gateway
- server
- standby
- primary
- primary gateway
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
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/06—Management of faults, events, alarms or notifications
- H04L41/0654—Management of faults, events, alarms or notifications using network fault recovery
- H04L41/0668—Management of faults, events, alarms or notifications using network fault recovery by dynamic selection of recovery network elements, e.g. replacement by the most appropriate element after failure
-
- 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/06—Management of faults, events, alarms or notifications
- H04L41/0695—Management of faults, events, alarms or notifications the faulty arrangement being the maintenance, administration or management system
Abstract
The invention provides a method for achieving many-to-one hot standby of Portal gateways. The method is characterized in that a server and at least one group field gateway are arranged, wherein the group field gateway is connected with the upper server and lower intermediary equipment of AC equipment, and comprises a plurality of main gateways and a standby gateway which are all in heartbeat communication with the server; under normal circumstances, the standby gateway disables a corresponding lower connection interface, each master gateway enables a corresponding lower connection interface and sends the interface status to the server through a heartbeat packet, the server updates main gateway status information in a memory, and when the standby gateway sends a heartbeat packet to the server, the server notifies the standby gateway to download a configuration file of the abnormal main gateway and enable the corresponding lower connection interface for provision of network access services; the current main gateway uploads a normal heartbeat packet to the server when resuming the normal status, the server notifies the standby gateway to disable the corresponding lower connection interface, and the current main gateway enables the corresponding lower connection interface to resume the provision of the network access services. The method provided by the invention has the advantages that many-to-one real-time hot standby services can be achieved, so that equipment input costs are reduced.
Description
Technical field
The present invention relates to data communication field, particularly relate to a kind of realize the method that Portal gateway many-one is hot standby.
Background technology
Along with mobile Internet develops rapidly, the demand that public WiFi is surfed the Net by user is strong all the more, and Portal gateway is
Serving carrier network, first line of a couplet Portal manages platform, the intermediate equipment of second line of a couplet AC equipment, provides the user personalized WiFi
Portal business, owing to Portal gateway deployment is at Metropolitan Area Network (MAN), the site user of service is numerous, and equipment is stablized by operator will
Asking high, along with the development of business, the quantity of Portal gateway deployment increases, uses the mode of existing two-node cluster hot backup, the most often
One primary gateway arranges a backup gateway, and this mode causes backup gateway redundancy, and increases the purchase cost of operator.
Summary of the invention
The technical problem to be solved in the present invention, is that providing a kind of realizes the method that Portal gateway many-one is hot standby, energy
Enough support many-to-one real-time hot standby service, be effectively reduced the quantity of standby gateway, reduce equipment investment cost.
The present invention is achieved in that and a kind of realizes the method that Portal gateway many-one is hot standby, need to provide a server
And at least one group territory gateway, server described in each group of territory gateway first line of a couplet, the second line of a couplet one switch, each described switch leads to
Cross a plurality of AC equipment to be connected with the Internet, and every described group of territory gateway include a plurality of primary gateway and for gateway, described side
Method includes:
Step 1, when primary gateway is properly functioning, the standby gateway of described group of territory gateway stops second line of a couplet interface, upper connecting port with
Server keeps heart beating communication, and primary gateway enables second line of a couplet interface, and upper connecting port and server keep heart beating communication, and at interval of time
Between monitor its own interfaces state, and upload primary gateway heartbeat packet and to server, server, the heartbeat packet information received carried out
Storage;
Step 2, when primary gateway monitors its own interfaces exception, stop second line of a couplet interface, upload exception by upper connecting port
Heartbeat packet to server, server receives abnormal heartbeat packet or does not receives the heart beating that primary gateway is uploaded within a period of time
Bao Shi, is all updated to exception by primary gateway status information described in internal memory and group territory, described primary gateway place status information, and
Upper once send heartbeat packet for gateway to server time, the response that return state is abnormal is wrapped to standby gateway, and standby gateway is from clothes
The configuration file of abnormal primary gateway downloaded by business device, and uses the configuration file of download to update the configuration file of self, starts the second line of a couplet
Port adapter primary gateway provides service on net;
Step 3, when primary gateway is recovered normal, described primary gateway uploads normal heartbeat packet to server, described service
The status information of primary gateway described in internal memory and the state information updating in group territory, described primary gateway place are normal by device, wait
When sending heartbeat packet for gateway, the state of return is that normal response is wrapped to standby gateway, and standby gateway closes second line of a couplet interface, master next time
Gateways and starting lower link is salty newly takes over service on net.
Further, the gateway being connected for each and described server in advance in described server memory sets up one to set
All configuration files of gateway are stored under this document catalogue by the file directory of standby number name.
Further, described method also includes when step 4, primary gateway configuration file have amendment, by Transmission Control Protocol by up-to-date
Configuration file upload onto the server in real time, port numbers is 8655.
Further, described heartbeat packet include active/standby gateway identification field, status flag field, facility information field and
Data length field.
Further, the concrete mode of described primary gateway monitoring its own interfaces state is: described primary gateway calls ethtool
Order, if Link detected is yes, represents that connection is normal, if Link detected is no, represents that connection is abnormal.
Further, in described step 2 configuration file of abnormal primary gateway " the standby gateway download from server " is particularly as follows: standby
Gateway downloads the primary gateway information of abnormal state in same group of territory gateway to server application, and whois lookup file directory also carries
Take the configuration file of corresponding primary gateway to described standby gateway.
Present invention have the advantage that
1, achieve the corresponding standby gateway real-time online of multiple stage primary gateway hot standby, the service of effective Logistics networks not between
Disconnected run, it is to avoid the network service caused because of equipment fault;
2, reduce the redundancy quantity of standby gateway, reduce equipment investment cost;
3, the networking of gateway many-one hot spare method is simple, disposes convenient and swift, reduces engineering construction and maintenance cost.
Accompanying drawing explanation
The present invention is further illustrated the most in conjunction with the embodiments.
Fig. 1 is that a kind of hot standby method of Portal gateway many-one that realizes of the present invention performs flow chart.
Fig. 2 is a kind of data flow diagram realizing the hot standby method of Portal gateway many-one of the present invention.
Fig. 3 is a kind of network topology realizing the hot standby method of Portal gateway many-one in one embodiment of the present invention
Figure.
Detailed description of the invention
Such as Fig. 1, a kind of realize the method that Portal gateway many-one is hot standby, a server and at least one group need to be provided
Territory gateway, server described in each group of territory gateway first line of a couplet, the second line of a couplet one switch, each described switch passes through a plurality of AC equipment
Be connected with the Internet, and every described group of territory gateway include a plurality of primary gateway and for gateway, in described server memory in advance
The gateway being connected for each and described server sets up a file directory named with device number, by all configuration literary compositions of gateway
Part stores under this document catalogue, and described method includes:
Step 1, when primary gateway is properly functioning, the standby gateway of described group of territory gateway stops second line of a couplet interface, upper connecting port with
Server keeps heart beating communication, and primary gateway enables second line of a couplet interface, and upper connecting port and server keep heart beating communication, and at interval of time
Between (such as 2 minutes) monitoring its own interfaces state, and upload primary gateway heartbeat packet to server, the heart beating that server will receive
Package informatin stores, and described heartbeat packet includes active/standby gateway identification field, status flag field, facility information field and number
According to length field, the concrete mode of described primary gateway monitoring its own interfaces state is: described primary gateway calls ethtool order,
If Link detected is yes, represent that connection is normal, if Link detected is no, represent that connection is abnormal;
Step 2, when primary gateway monitors its own interfaces exception, stop second line of a couplet interface, upload exception by upper connecting port
Heartbeat packet to server, server receives abnormal heartbeat packet or does not receives the heart beating that primary gateway is uploaded within a period of time
Bao Shi, is all updated to exception by primary gateway status information described in internal memory and group territory, described primary gateway place status information, and
Upper once send heartbeat packet for gateway to server time, the response that return state is abnormal is wrapped to standby gateway, and standby gateway is from clothes
The configuration file of abnormal primary gateway downloaded by business device, and uses the configuration file of download to update the configuration file of self, starts the second line of a couplet
Port adapter primary gateway provides service on net, and in described step 2, " configuration that standby gateway downloads abnormal primary gateway from server is civilian
Part " particularly as follows: standby gateway downloads the primary gateway information of abnormal state, whois lookup in same group of territory gateway to server application
File directory also extracts the configuration file of corresponding primary gateway to described standby gateway;
Step 3, when primary gateway is recovered normal, described primary gateway uploads normal heartbeat packet to server, described service
The status information of primary gateway described in internal memory and the state information updating in group territory, described primary gateway place are normal by device, wait
When sending heartbeat packet for gateway, the state of return is that normal response is wrapped to standby gateway, and standby gateway closes second line of a couplet interface, master next time
Gateways and starting lower link is salty newly takes over service on net.
Described method also includes when step 4, primary gateway configuration file have amendment, by Transmission Control Protocol by up-to-date configuration literary composition
Part is uploaded onto the server in real time, and port numbers is 8655.
Below in conjunction with a specific embodiment, the present invention will be further described:
As in figure 2 it is shown, a kind of network topological diagram realizing the hot standby method of Portal gateway many-one, including a service
Device, at least one group territory gateway, at least one switch and a plurality of AC equipment, wherein, every described group of territory gateway includes plural number
Individual primary gateway and a standby gateway, each group of territory gateway first line of a couplet server, the second line of a couplet one switch, and each described switch pass through
A plurality of AC equipment are connected with the Internet, are that the gateway that each and described server is connected is set up in described server memory in advance
All configuration files of gateway, with the file directory of device number name, are stored under this document catalogue by one, described configuration literary composition
Part includes the number information of group territory, described gateway place gateway;
As it is shown on figure 3, described method includes:
When primary gateway is properly functioning, the standby gateway of described group of territory gateway stops second line of a couplet interface, upper connecting port and server
Keeping heart beating communication, primary gateway enables second line of a couplet interface, and upper connecting port keeps heart beating communication with server, and at interval of time supervision
Its own interfaces state, and upload primary gateway heartbeat packet and to server, server, the heartbeat packet information received is stored, institute
State primary gateway and be monitored by calling ethtool order, if Link detected is yes, represent that connection is normal, if Link
Detected is that no then represents that connection is abnormal, if there being an interface abnormal, then this gateway is abnormal, and described heartbeat packet includes main
Standby gateway identification field, status flag field, facility information field and data length field, described heartbeat packet form such as table 1:
Table 1
MainFlag | State | Data len | Data |
Wherein, MainFlag is active/standby gateway mark, takies 1 byte, and 0x00 represents standby gateway, and 0x01 represents major network
Close;
State is status indication, takies 1 byte, and 0x01 represents that state is normal, and 0x02 represents abnormal state;
Data len is data length, takies 4 bytes, and this field represents the length sending Data data;
Data is device data information, including main process equipment number, organizes Field Number, and its form is devid=" GW-00001 ";
Groupid=" 001 ".
When primary gateway monitors its own interfaces exception, stop second line of a couplet interface, upload abnormal heart beating by upper connecting port
Bag is to server, and server receives abnormal heartbeat packet (heartbeat packet that i.e. Interface status is abnormal) or do not receives within a period of time
During the heartbeat packet uploaded to primary gateway, primary gateway state information updating described in internal memory is abnormal by server, and by described
Group territory, primary gateway place state information updating is abnormal, and once sends heartbeat packet inquiry primary gateway for gateway to server upper
During state, the response that return state is abnormal is wrapped to standby gateway, and standby gateway downloads shape in same group of territory gateway to server application
The primary gateway information that state is abnormal, whois lookup file directory also extracts the configuration file of corresponding primary gateway to described standby gateway,
And use the configuration file of download to update the configuration file of self, starting second line of a couplet port adapter primary gateway provides service on net, institute
State response bag and include a status indication, for the status information of standby group territory, gateway place gateway described in labelling, can be 1 word
The field of joint, such as 0x01 represents that state is normal, and 0x02 represents abnormal state;
When primary gateway is recovered normal, described primary gateway uploads normal heartbeat packet to server, and described server is by interior
The state information updating of primary gateway described in depositing is normal, and the state information updating by group territory, described primary gateway place is just simultaneously
Often, when waiting next time for gateway transmission heartbeat packet, the state of return is that response bag is to standby gateway normally, i.e. response bag value is
During 0x02, standby gateway closes second line of a couplet interface, and primary gateway starts that lower link is salty newly takes over service on net;
When primary gateway configuration file has amendment, by Transmission Control Protocol, up-to-date configuration file is uploaded onto the server in real time, end
Slogan is 8655, the such as table 2 of message format when uploading:
Table 2
SendFlag | UpDown | Data len | Data |
Wherein, SendFlag, for sending data markers, takies 1 byte, and what 0x01 represented transmission is filename namely opens
Originating and send, 0x02 represents and sends file data, and 0x03 represents that transmission terminates;
UpDown, for uploading download mark, takies 1 byte, and 0x01 represents and uploads, and 0x02 represents download;
Data len is data length, takies 4 bytes, and this field represents the length sending Data data;
Data is the data sent.
Although the foregoing describing the detailed description of the invention of the present invention, but those familiar with the art should managing
Solving, our described specific embodiment is merely exemplary rather than for the restriction to the scope of the present invention, is familiar with this
The technical staff in field, in the equivalent modification made according to the spirit of the present invention and change, should be contained the present invention's
In scope of the claimed protection.
Claims (6)
1. one kind realizes the method that Portal gateway many-one is hot standby, it is characterised in that: a server and at least need to be provided
Individual group of territory gateway, server described in each group of territory gateway first line of a couplet, the second line of a couplet one switch, each described switch passes through a plurality of AC
Equipment is connected with the Internet, and every described group of territory gateway include a plurality of primary gateway and for gateway, described method includes:
Step 1, when primary gateway is properly functioning, the standby gateway of described group of territory gateway stops second line of a couplet interface, upper connecting port and service
Device keeps heart beating communication, and primary gateway enables second line of a couplet interface, and upper connecting port and server keep heart beating communication, and supervise at interval of the time
Survey its own interfaces state, and upload primary gateway heartbeat packet and to server, server, the heartbeat packet information received is stored;
Step 2, when primary gateway monitors its own interfaces exception, stop second line of a couplet interface, upload the abnormal heart by upper connecting port
Jumping and wrap to server, server receives abnormal heartbeat packet or does not receives the heartbeat packet that primary gateway is uploaded within a period of time
Time, primary gateway status information described in internal memory and group territory, described primary gateway place status information are all updated to exception, and
Next time for gateway when server sends heartbeat packet, the response that return state is abnormal is wrapped to standby gateway, and standby gateway is from service
The configuration file of abnormal primary gateway downloaded by device, and uses the configuration file of download to update the configuration file of self, starts second line of a couplet end
Mouth adapter primary gateway provides service on net;
Step 3, when primary gateway is recovered normal, described primary gateway uploads normal heartbeat packet to server, and described server will
The status information of primary gateway described in internal memory and the state information updating in group territory, described primary gateway place are normal, wait next
When secondary standby gateway sends heartbeat packet, the state of return is that normal bag of responding closes second line of a couplet interface, primary gateway to standby gateway, standby gateway
Start that lower link is salty newly takes over service on net.
The most according to claim 1 a kind of realize the method that Portal gateway many-one is hot standby, it is characterised in that: described clothes
The gateway being connected for each and described server in advance in business device internal memory sets up a file directory named with device number, by net
The all configuration files closed store under this document catalogue.
The most according to claim 1 a kind of realize the method that Portal gateway many-one is hot standby, it is characterised in that: described side
Method also includes when step 4, primary gateway configuration file have amendment, uploads in real time take by up-to-date configuration file by Transmission Control Protocol
Business device, port numbers is 8655.
The most according to claim 1 a kind of realize the method that Portal gateway many-one is hot standby, it is characterised in that: the described heart
Jump bag and include active/standby gateway identification field, status flag field, facility information field and data length field.
The most according to claim 1 a kind of realize the method that Portal gateway many-one is hot standby, it is characterised in that: described master
The concrete mode of gateway monitoring its own interfaces state is: described primary gateway calls ethtool order, if Link detected is
Yes then represents that connection is normal, if Link detected is no, represents that connection is abnormal.
The most according to claim 1 a kind of realize the method that Portal gateway many-one is hot standby, it is characterised in that: described step
" configuration file of abnormal primary gateway is downloaded from server for gateway " particularly as follows: standby gateway is downloaded same to server application in rapid 2
The primary gateway information of abnormal state in one group of territory gateway, whois lookup file directory also extracts the configuration file of corresponding primary gateway
To described standby gateway.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610589728.1A CN106027320B (en) | 2016-07-25 | 2016-07-25 | A method of realizing that Portal gateway many-one is hot standby |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610589728.1A CN106027320B (en) | 2016-07-25 | 2016-07-25 | A method of realizing that Portal gateway many-one is hot standby |
Publications (2)
Publication Number | Publication Date |
---|---|
CN106027320A true CN106027320A (en) | 2016-10-12 |
CN106027320B CN106027320B (en) | 2019-04-02 |
Family
ID=57116605
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610589728.1A Active CN106027320B (en) | 2016-07-25 | 2016-07-25 | A method of realizing that Portal gateway many-one is hot standby |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106027320B (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107152919A (en) * | 2017-05-16 | 2017-09-12 | 千寻位置网络有限公司 | GNSS deformation monitoring systems and implementation method based on hot standby data center |
CN110138584A (en) * | 2019-03-25 | 2019-08-16 | 视联动力信息技术股份有限公司 | A kind of monitoring method and device |
CN112055347A (en) * | 2020-09-14 | 2020-12-08 | 厦门阳光恩耐照明有限公司 | Multi-gateway cooperative work method and system |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101702657A (en) * | 2009-12-04 | 2010-05-05 | 杭州华三通信技术有限公司 | Hot backup method of NAT service and equipment |
CN102255633A (en) * | 2010-05-20 | 2011-11-23 | 中兴通讯股份有限公司 | Method and system for multi-stand user backup |
US8782238B2 (en) * | 2010-11-05 | 2014-07-15 | Verizon Patent And Licensing Inc. | Server clustering in a computing-on-demand system |
-
2016
- 2016-07-25 CN CN201610589728.1A patent/CN106027320B/en active Active
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101702657A (en) * | 2009-12-04 | 2010-05-05 | 杭州华三通信技术有限公司 | Hot backup method of NAT service and equipment |
CN102255633A (en) * | 2010-05-20 | 2011-11-23 | 中兴通讯股份有限公司 | Method and system for multi-stand user backup |
US8782238B2 (en) * | 2010-11-05 | 2014-07-15 | Verizon Patent And Licensing Inc. | Server clustering in a computing-on-demand system |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107152919A (en) * | 2017-05-16 | 2017-09-12 | 千寻位置网络有限公司 | GNSS deformation monitoring systems and implementation method based on hot standby data center |
CN110138584A (en) * | 2019-03-25 | 2019-08-16 | 视联动力信息技术股份有限公司 | A kind of monitoring method and device |
CN110138584B (en) * | 2019-03-25 | 2022-06-14 | 视联动力信息技术股份有限公司 | Monitoring method and device |
CN112055347A (en) * | 2020-09-14 | 2020-12-08 | 厦门阳光恩耐照明有限公司 | Multi-gateway cooperative work method and system |
Also Published As
Publication number | Publication date |
---|---|
CN106027320B (en) | 2019-04-02 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN105099789B (en) | A kind of network element updating method and apparatus | |
CN104205748B (en) | Has redundancy between the frame of coordinated traffic direction | |
CN100531045C (en) | Data management method and system based on simple network management protocol | |
CN105191224B (en) | Dynamic LTE network | |
CN102263667B (en) | Network management system and network management processing method | |
CN101877650A (en) | Method and system for updating software version automatically | |
CN106027320A (en) | Method for achieving many-to-one hot standby of Portal gateways | |
CN103152272B (en) | A kind of BGP neighbours' relationship safeguard method and equipment | |
CN104618255B (en) | A kind of front-collection service system and data processing method | |
CN102195798B (en) | A kind of method and system of optical network unit of upgrading | |
US20160262031A1 (en) | Method, Device and System for Maintaining Wireless Network | |
CN107948027A (en) | One kind carries smart home data safety backup system and method for work | |
CN102387514A (en) | Backup method and backup system of wireless sensor network gateway | |
CN102089749A (en) | Method and apparatus for managing binding information about a bundle installed remotely in an osgi service platform | |
CN105934960A (en) | Mobile device traffic management | |
CN105636241A (en) | M2M node deletion and registration methods and M2M node | |
CN103095587B (en) | A method for registration service, network group center control nodes and system | |
CN104703165A (en) | Wireless access processing method, retransmitting equipment and network controller | |
CN104283802A (en) | Neighbor discovery method and device | |
CN106936729A (en) | Control method, system and broadband access network system that a kind of terminal device is accessed | |
CN104394209B (en) | A kind of real-time database data transmission method for distributed energy management | |
CN201985898U (en) | Communication service load balancing system | |
CN104486193B (en) | A kind of method and device for establishing network node interconnection | |
CN102571383B (en) | Access control method and system | |
CN101119275B (en) | Method, equipment and system for service provider equipment to obtain information |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant | ||
CP01 | Change in the name or title of a patent holder |
Address after: Wufeng Street software Avenue Gulou District of Fuzhou city in Fujian province 350000 No. 89 Building No. 12 Patentee after: China Electric fufu Mdt InfoTech Ltd Address before: Wufeng Street software Avenue Gulou District of Fuzhou city in Fujian province 350000 No. 89 Building No. 12 Patentee before: Fujian Fushitong Information Software Co.,Ltd. |
|
CP01 | Change in the name or title of a patent holder |