CN103037459B - Method of data synchronization and device - Google Patents

Method of data synchronization and device Download PDF

Info

Publication number
CN103037459B
CN103037459B CN201110291152.8A CN201110291152A CN103037459B CN 103037459 B CN103037459 B CN 103037459B CN 201110291152 A CN201110291152 A CN 201110291152A CN 103037459 B CN103037459 B CN 103037459B
Authority
CN
China
Prior art keywords
address
sgsn
corresponding relation
dns
private
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
CN201110291152.8A
Other languages
Chinese (zh)
Other versions
CN103037459A (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.)
China Mobile Group Jiangsu Co Ltd
Original Assignee
China Mobile Group Jiangsu 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 China Mobile Group Jiangsu Co Ltd filed Critical China Mobile Group Jiangsu Co Ltd
Priority to CN201110291152.8A priority Critical patent/CN103037459B/en
Publication of CN103037459A publication Critical patent/CN103037459A/en
Application granted granted Critical
Publication of CN103037459B publication Critical patent/CN103037459B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The invention discloses method of data synchronization and device.Method comprises: the corresponding relation reading all communities number and GN mouth private ip address from DNS equipment, reads the corresponding relation of all communities number and GN mouth private ip address respectively from each SGSN; For arbitrary community number, if the GN mouth private ip address that the GN mouth private ip address that this community number read from DNS equipment is corresponding is corresponding from this community number read from SGSN is different, then upgrade the GN mouth private ip address on DNS equipment with the GN mouth private ip address read from SGSN.Present invention achieves the data syn-chronization between DNS equipment and each SGSN.

Description

Method of data synchronization and device
Technical field
The present invention relates to mobile management technical field, be specifically related to method of data synchronization and device.
Background technology
In today that Mobile Communication Development is swift and violent, general packet radio service (GPRS, General PacketRadio Service) use present explosive growth, how to allow user use continuity, high-quality network, be now will faced by subject matter.
In GPRS network mobile management, a very important process switches, and this can ensure that user is when carrying out data field business experience, really accomplishes continuous, continuous.
At existing network, when mobile terminal (MS, Mobile Station) enters in the process of another SGSN from a GPRS serving GPRS support node (SGSN, Serving GPRS Support Node), the switching between SGSN will be there is.Fig. 1 gives the existing MS message flow chart switched between SGSN, as shown in Figure 1, suppose that data field business experience is carried out in the community 1 of MS in the overlay area of SGSN1, MS user profile leaves in SGSN1, under MS has been moved to the overlay area of SGSN2 by the covering domain of SGSN1, and SGSN2 not this MS user profile time, message flow is as follows:
Namely step 101:MS sends old community number to SGSN2, routing area identifier (RAC, Routing Area the Coding)+lane place identification code (LAC, Location Area Coding) of community 1.
Step 102 ~ 103:SGSN2 by old community number to the domain name system (DNS specified, Domain Name System) on equipment, find and obtain GN-GPRS tunnel protocol corresponding to the community number old with this (GTP, GPRS Tunneling Protocol)-C address.
Step 104 ~ 106:SGSN2 finds SGSN1 in the GN-GTP-C address obtained, and from SGSN1, obtain the user profile of MS, such terminal use just can communicate.
In actual applications, due to a variety of causes, can adjust the covering domain of SGSN, need after adjustment to upgrade the corresponding relation of the community number that DNS equipment records and GN-GTP-C address in time, otherwise, MS handoff failure between SGSN will be caused.Such as: in the covering domain of SGSN1, comprise community 11 and community 12, community 21 and community 22 is comprised in the covering domain of SGSN2, due to community 11, user in 12 is too much, over-burden for SGSN1, cause user's networking speed excessively slow, therefore, under community 12 being moved on to the covering domain of SGSN2, now, if do not upgrade the number of community 12 on DNS equipment and the corresponding relation of GN-GTP-C address, if when then a GeMSCong community 12 moves under the covering domain of SGSN3, according to the GN-GTP-C address remaining SGSN1 that the number of community 12 finds to DNS equipment, then will obtain MS user profile to SGSN1, and SGSN1 has deleted this MS user profile, SGSN handoff failure will be caused like this.
Present stage, data field equipment of the core network quantity is more, and equipment exists the daily record of various kinds of equipment operation conditions, and a large amount of information dispersion, in these daily records, is even dispersed on dissimilar equipment.And, all that simple dependence is manually checked to obtain network operation situation, if find, the covering domain of SGSN has changed, then on DNS equipment, search the journal file that have recorded community number and GN-GTP-C address corresponding relation, then modifies to corresponding GN-GTP-C address.Like this, inefficiency on the one hand, at substantial manpower and materials; On the other hand, there are manual amendment's data and misunderstand subjective situations such as correcting mistakes, affect existing network user awareness.
Summary of the invention
The invention provides method of data synchronization and device, keep synchronous with this corresponding relation realized on the corresponding relation of the community number on DNS equipment and GN mouth private ip address and each SGSN.
Technical scheme of the present invention is achieved in that
A kind of method of data synchronization, the method comprises:
Read the corresponding relation of all communities number and GN mouth private ip address from DNS equipment, read the corresponding relation of all communities number and GN mouth private ip address respectively from each SGSN; For arbitrary community number, if the GN mouth private ip address that the GN mouth private ip address that this community number read from DNS equipment is corresponding is corresponding from this community number read from SGSN is different, then upgrade the GN mouth private ip address on DNS equipment with the GN mouth private ip address read from SGSN.
Described method comprises further:
When a mobile terminal MS is switched to the overlay area of the 2nd SGSN from the overlay area of a SGSN, the old community number of the overlay area at a SGSN is sent to the 2nd SGSN, 2nd SGSN gets corresponding GN mouth private ip address according to this old community number from DNS equipment, gets MS user profile according to this address from a SGSN.
Described community number is number RAC+ lane place, Route Area number LAC.
The described corresponding relation reading all communities number and GN mouth private ip address from DNS equipment comprises:
Download request is sent to ftp server, this request comprises: DNS device address, include the store path of the journal file of the corresponding relation of community number and GN mouth private ip address, FTP receives this download request, sign in on DNS equipment according to the DNS device address in this request, according to the store path in this request, read journal file from DNS equipment, download this journal file.
The described corresponding relation reading all communities number and GN mouth private ip address from each SGSN comprises:
For arbitrary SGSN, read the corresponding relation of all communities number and GN mouth private ip address from this SGSN, if read unsuccessfully, then judge whether reading times equals preset times, if so, abandon reading; Otherwise, return and perform described action of reading the corresponding relation of all communities number and GN mouth private ip address from this SGSN.
A kind of data synchronization unit, this device comprises:
DNS data processing module: the corresponding relation reading all communities number and GN mouth private ip address from DNS equipment;
SGSN data processing module: the corresponding relation reading all communities number and GN mouth private ip address respectively from each SGSN;
Data simultaneous module: for the community number in each corresponding relation that DNS data processing module reads, the corresponding relation of coupling is searched in all corresponding relations that SGSN data processing module reads, if the GN mouth private ip address in two corresponding relations is different, then the corresponding relation that SGSN data processing module reads is sent to DNS equipment.
Described community number is number RAC+ lane place, Route Area number LAC.
Described DNS data processing module comprises:
Download module: send download request to ftp server, this request comprises: DNS device address, include the store path of the journal file of the corresponding relation of community number and GN mouth private ip address, receive the journal file that ftp server is sent, journal file is sent to data extraction module;
Data extraction module: receive journal file, read the corresponding relation of all communities number and GN mouth private ip address from journal file.
Described SGSN data processing module is further used for,
When reading the corresponding relation failure of community number and GN mouth private ip address from arbitrary SGSN, judge whether reading times equals preset times, if so, abandon reading; Otherwise, continue the corresponding relation reading community number and GN mouth private ip address from this SGSN.
Described device is independent of outside DNS equipment and each SGSN.
Compared with prior art, the present invention can when network adjusts, and makes this corresponding relation on the corresponding relation of the community number on DNS equipment and GN mouth private ip address and each SGSN keep synchronous, thus ensure that the handover success of MS between SGSN.
Accompanying drawing explanation
Fig. 1 is the message flow chart that existing MS switches between SGSN;
The method of data synchronization flow chart that Fig. 2 provides for the embodiment of the present invention;
The composition schematic diagram of the data synchronization unit that Fig. 3 provides for the embodiment of the present invention.
Embodiment
Below in conjunction with drawings and the specific embodiments, the present invention is further described in more detail.
The method of data synchronization flow chart that Fig. 2 provides for the embodiment of the present invention, as shown in Figure 2, its concrete steps are as follows:
Step 200: preset data synchronizing cycle.
The data syn-chronization cycle can according to the situation adjustment of network adjustment.When network adjustment is more frequent, can the data syn-chronization cycle be arranged less; When network adjusts infrequently, the data syn-chronization cycle can be increased again.
Step 201: within each data syn-chronization cycle, DNS data processing module is to file transfer protocol (FTP) (FTP, File Transfer Protocol) server transmission download request, carry DNS device address in this request, comprise the store path of journal file on DNS equipment of the corresponding relation of community number and GN mouth private ip address.
Community number can represent by RAC+LAC.GN mouth private ip address is as GN-GTP-C address.
Step 202:FTP server receives this download request, according to the DNS device address in request, sign in on DNS equipment, according to the store path in request, DNS equipment finds corresponding journal file, this journal file is downloaded on DNS data processing module.
Here, DNS equipment can in advance for DNS data processing module arranges account and password.This account and password will be carried in download request and send to ftp server by DNS data processing module, and ftp server is when logging in DNS equipment, and input this account and password, if DNS device authentication this account and password are correctly, then allow ftp server to log in; Otherwise refusal ftp server logs in.
If ftp server does not find corresponding journal file according to the store path in request on DNS equipment, then according to the journal file name in store path, corresponding journal file searched by the file of traversal DNS equipment.
Step 203:DNS data processing module receives journal file, reads the corresponding relation of each community number and GN mouth private ip address, be stored in the first database by this corresponding relation with preset format from journal file.
Step 204: within each data syn-chronization cycle, for each SGSN, SGSN data processing module is according to the address of this SGSN, sign in on this SGSN, according to the store path of journal file on this SGSN of corresponding relation including community number and GN mouth private ip address, read corresponding journal file from this SGSN, the corresponding relation of all communities number in this journal file and GN mouth private ip address is stored in the second database with preset format.
Here, each SGSN can in advance for SGSN data processing module arranges account and password.SGSN data processing module is when a login SGSN, and the account that input is corresponding and password, if this SGSN verifies this account and password correctly, then allow SGSN data processing module to log in; Otherwise refusal SGSN data processing module logs in.
For various reasons, SGSN data processing module possibly once just cannot read journal file from SGSN, for this situation, SGSN data processing module can preset data reading times m, if still corresponding journal file cannot be read from a SGSN m time continuously, then think and read unsuccessfully, abandon continuing to read.
Step 205: within each data syn-chronization cycle, data simultaneous module reads the data that this cycle memory enters respectively in the first database, the second database; For each the data A in the first database, according to the community number in these data, the data A ' of coupling is searched in the second database, after finding, GN mouth private ip address relatively in these two data A, A ', if both are different, then upgrade the GN mouth private ip address in the data A of the first database with the GN mouth private ip address in the data A ' of the second database, the data A after renewal is sent to DNS equipment simultaneously.
Step 206:DNS equipment is according to the community number in data A, in self community number of preservation and the corresponding relation of GN mouth private ip address, find the community number of coupling, upgrade the GN mouth private ip address in this corresponding relation with the GN mouth private ip address in data A.
By embodiment illustrated in fig. 2, community number on DNS equipment can keep synchronous with the corresponding relation of the community number on each SGSN and GN mouth private ip address with the corresponding relation of GN mouth private ip address, like this, when the overlay area of SGSN changes, if when MS moves to the overlay area of another SGSN from the overlay area of a SGSN, can ensure that a rear SGSN gets correct GN mouth private ip address according to the old community number of MS from DNS equipment, thus ensure that handover success.
It should be noted that, embodiment illustrated in fig. 2 what provide is the situation of periodically DNS equipment and each SGSN being carried out to data syn-chronization.In actual applications, also can according to actual needs, when there being data syn-chronization demand, immediately to the data between DNS equipment and each SGSN, namely community number carries out synchronous with the corresponding relation of GN mouth private ip address.
According to same inventive concept, additionally provide a kind of data synchronization unit in the embodiment of the present invention, be below described in detail.
The composition schematic diagram of the data synchronization unit that Fig. 3 provides for the embodiment of the present invention, as shown in Figure 3, it mainly comprises: DNS data processing module 31, SGSN data processing module 32 and data simultaneous module 33, wherein:
DNS data processing module 31: read from DNS equipment and store the corresponding relation of all communities number and GN private ip address, and stored position information is sent to data simultaneous module 33.
SGSN data processing module 32: read from each SGSN respectively and store the corresponding relation of all communities number and GN mouth private ip address, and stored position information is sent to data simultaneous module 33.
Data simultaneous module 33: the stored position information sent according to DNS data processing module 31, obtain each corresponding relation that in this cycle, DNS data processing module 31 reads, according to the stored position information that SGSN data processing module 32 is sent, obtain each corresponding relation that in this cycle, SGSN data processing module 32 reads; For each corresponding relation that DNS data processing module 31 reads, the corresponding relation of coupling is searched in all corresponding relations read at SGSN data processing module 32 according to the community number in this corresponding relation, if the GN mouth private ip address in two corresponding relations is different, then the corresponding relation that SGSN data processing module 31 reads is sent to DNS equipment, so that DNS equipment is according to the community number in this corresponding relation, upgrade the coupling corresponding relation of self with this corresponding relation.
In actual applications, DNS data processing module 31 can comprise: download module 311 and data extraction module 312, wherein:
Download module 311: send download request to ftp server, this request comprises: DNS device address, include the store path of the journal file of the corresponding relation of community number and GN mouth private ip address, receive the journal file that ftp server is sent, journal file is sent to data extraction module 312.
Data extraction module 312: receive the journal file sent of download module 311, reads and stores the corresponding relation of all communities number and GN mouth private ip address, and stored position information is sent to data simultaneous module 33 from journal file.
SGSN data processing module 32 is further used for, and when reading the corresponding relation failure of community number and GN mouth private ip address from arbitrary SGSN, judges whether reading times equals preset times, if so, abandons reading; Otherwise, continue the corresponding relation reading community number and GN mouth private ip address from this SGSN.
In order to ensure the reliability of Fig. 3 shown device, such as: not by DNS equipment or SGSN fault effects, this device is preferably independent of outside DNS equipment and each SGSN.
The foregoing is only preferred embodiment of the present invention, not in order to limit the present invention, within the spirit and principles in the present invention all, any amendment made, equivalent replacement, improvement etc., all should be included within the scope of protection of the invention.

Claims (10)

1. a method of data synchronization, is characterized in that, the method comprises:
Within each data syn-chronization cycle, read the corresponding relation of all communities number and GN mouth private ip address from domain name system DNS equipment, read the corresponding relation of all communities number and GN mouth private ip address respectively from each GPRS serving GPRS support node SGSN;
For arbitrary community number, if the GN mouth private ip address that the GN mouth private ip address that this community number read from DNS equipment is corresponding is corresponding from this community number read from SGSN is different, then upgrade the GN mouth private ip address on DNS equipment with the GN mouth private ip address read from SGSN.
2. method according to claim 1, is characterized in that, described method comprises further:
When a mobile terminal MS is switched to the overlay area of the 2nd SGSN from the overlay area of a SGSN, the old community number of the overlay area at a SGSN is sent to the 2nd SGSN, 2nd SGSN gets corresponding GN mouth private ip address according to this old community number from DNS equipment, gets MS user profile according to this address from a SGSN.
3. method according to claim 1, is characterized in that, described community number is number RAC+ lane place, Route Area number LAC.
4. method according to claim 1, is characterized in that, the described corresponding relation reading all communities number and GN mouth private ip address from DNS equipment comprises:
Download request is sent to file transfer protocol (FTP) ftp server, this request comprises: DNS device address, include the store path of the journal file of the corresponding relation of community number and GN mouth private ip address, FTP receives this download request, sign in on DNS equipment according to the DNS device address in this request, according to the store path in this request, read journal file from DNS equipment, download this journal file.
5. method according to claim 1, is characterized in that, the described corresponding relation reading all communities number and GN mouth private ip address from each SGSN comprises:
For arbitrary SGSN, read the corresponding relation of all communities number and GN mouth private ip address from this SGSN, if read unsuccessfully, then judge whether reading times equals preset times, if so, abandon reading; Otherwise, return and perform described action of reading the corresponding relation of all communities number and GN mouth private ip address from this SGSN.
6. a data synchronization unit, is characterized in that, this device comprises:
DNS data processing module: within each data syn-chronization cycle, reads the corresponding relation of all communities number and GN mouth private ip address from DNS equipment;
SGSN data processing module: within each data syn-chronization cycle, reads the corresponding relation of all communities number and GN mouth private ip address respectively from each SGSN;
Data simultaneous module: within each data syn-chronization cycle, for the community number in each corresponding relation that DNS data processing module reads, the corresponding relation of coupling is searched in all corresponding relations that SGSN data processing module reads, if the GN mouth private ip address in two corresponding relations is different, then the corresponding relation that SGSN data processing module reads is sent to DNS equipment.
7. device according to claim 6, is characterized in that, described community number is number RAC+ lane place, Route Area number LAC.
8. device according to claim 6, is characterized in that, described DNS data processing module comprises:
Download module: send download request to ftp server, this request comprises: DNS device address, include the store path of the journal file of the corresponding relation of community number and GN mouth private ip address, receive the journal file that ftp server is sent, journal file is sent to data extraction module;
Data extraction module: receive journal file, read the corresponding relation of all communities number and GN mouth private ip address from journal file.
9. device according to claim 6, is characterized in that, described SGSN data processing module is further used for,
When reading the corresponding relation failure of community number and GN mouth private ip address from arbitrary SGSN, judge whether reading times equals preset times, if so, abandon reading; Otherwise, continue the corresponding relation reading community number and GN mouth private ip address from this SGSN.
10. device according to claim 6, is characterized in that, described device is independent of outside DNS equipment and each SGSN.
CN201110291152.8A 2011-09-29 2011-09-29 Method of data synchronization and device Active CN103037459B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201110291152.8A CN103037459B (en) 2011-09-29 2011-09-29 Method of data synchronization and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201110291152.8A CN103037459B (en) 2011-09-29 2011-09-29 Method of data synchronization and device

Publications (2)

Publication Number Publication Date
CN103037459A CN103037459A (en) 2013-04-10
CN103037459B true CN103037459B (en) 2015-08-19

Family

ID=48023825

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201110291152.8A Active CN103037459B (en) 2011-09-29 2011-09-29 Method of data synchronization and device

Country Status (1)

Country Link
CN (1) CN103037459B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104767773B (en) * 2014-01-02 2019-07-16 中兴通讯股份有限公司 A kind of information intelligent synchronous method and device
CN106649311A (en) * 2015-10-28 2017-05-10 阿里巴巴集团控股有限公司 Service data symbolization method and device

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101009864A (en) * 2007-01-08 2007-08-01 华为技术有限公司 The method and system for access to the home packet data network
WO2011046348A2 (en) * 2009-10-12 2011-04-21 Lg Electronics Inc. Mobile terminated communication method and related devices

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8953610B2 (en) * 2007-02-02 2015-02-10 Silver Spring Networks, Inc. Method and system for transit between two IPV6 nodes of a utility network connected VIA an IPV4 network using encapsulation technique

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101009864A (en) * 2007-01-08 2007-08-01 华为技术有限公司 The method and system for access to the home packet data network
WO2011046348A2 (en) * 2009-10-12 2011-04-21 Lg Electronics Inc. Mobile terminated communication method and related devices

Also Published As

Publication number Publication date
CN103037459A (en) 2013-04-10

Similar Documents

Publication Publication Date Title
CN103179228B (en) Internet Protocol address analytic method and fringe node
CN1937541B (en) Network performance test method
US7568071B2 (en) Data-cache apparatus and a data-cache method used by a radio communications system
CN101217633B (en) A method and system realizing stream media interaction
CN1929497B (en) Method and system for obtaining moving nodes local proxy information
CN105100832A (en) Multimedia resource pushing method and device
CN105207867A (en) Equipment connecting method and equipment connecting device
CN102316416A (en) Access method for terminal and wireless communication network
CN102325347A (en) Transport stream template coupling method in LTE system and apparatus thereof
CN101427277A (en) Quality of service for transmission of digital content
CN102474456A (en) Association update message and method for updating associations in a mesh network
CN103037459B (en) Method of data synchronization and device
CN105007310A (en) Information synchronization method, device and system
CN101969654B (en) Method and system for correlating flow and user information in general packet radio service (GRPS) network
CN103491120A (en) System and method for user information transferring based on cloud storage
CN104639976A (en) Method for synchronizing programs of set top box and mobile terminal, set top box and mobile terminal
CN101287096B (en) Card for implementing identification conversion and converting method
CN110519791B (en) Vehicle-mounted wireless terminal device, system and method
CN102780617A (en) Method and apparatus for dividing provider-defined network location identifier (PID), and application-layer traffic optimization (ALTO) server
CN102355360A (en) Binding system of equipment object, gateway and database and binding method
KR101744307B1 (en) Method for registering mobile ip using time information synchronization and wireless internet modem therefor
CN101465887A (en) Method, system and device for obtaining mobile access gateway address
CN105682080A (en) Information updating method, information updating device and terminal
KR20120067529A (en) Smart dmb service system, apparatus and method to provide/receive of ip streaming service for smart dmb service
CN102546713B (en) Method, system and equipment for distributing distributed contents under roaming scenarios

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant