CN103037459A - Method and apparatus of data synchronization - Google Patents

Method and apparatus of data synchronization Download PDF

Info

Publication number
CN103037459A
CN103037459A CN2011102911528A CN201110291152A CN103037459A CN 103037459 A CN103037459 A CN 103037459A CN 2011102911528 A CN2011102911528 A CN 2011102911528A CN 201110291152 A CN201110291152 A CN 201110291152A CN 103037459 A CN103037459 A CN 103037459A
Authority
CN
China
Prior art keywords
address
sgsn
residential quarter
corresponding relation
dns
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
Application number
CN2011102911528A
Other languages
Chinese (zh)
Other versions
CN103037459B (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

Images

Abstract

The invention discloses a method and an apparatus of data synchronization. The method includes reading the correspondence between all of the cell numbers and the private IP (Internet Protocol) address of the Gn interface from the DNS (Domain Name System) device, reading the correspondence between all of the cell numbers and the private IP address of the Gn interface from each of the SGSN (Service GPRS Supporting Node) respectively, and for any cell number, updating the private IP address of the Gn interface on the DNS device with the private IP address of the Gn interface read from the SGSN, if the private IP address of the Gn interface corresponding to the cell number read from the DNS device is different from that from the SGSN. According to the method and apparatus of data synchronization, the data synchronization between the DNS device and the SGSN is achieved.

Description

Method of data synchronization and device
Technical field
The present invention relates to the mobile management technical field, be specifically related to method of data synchronization and device.
Background technology
In Mobile Communication Development swift and violent today, general packet radio service (GPRS, General Packet Radio Service) use has presented explosive growth, how to allow the user use continuity, high-quality network, is the subject matter that will face now.
A very important process is to switch in the GPRS network mobile management, and this can guarantee the user when carrying out the data field business experience, really accomplishes continuous, continuous.
At existing network, when portable 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 occur.Fig. 1 has provided the message flow chart that existing MS switches between SGSN, as shown in Figure 1, suppose that the residential quarter 1 of MS in the overlay area of SGSN1 carry out the data field business experience, MS user profile leaves among the SGSN1, when MS has been moved under the overlay area of SGSN2 by the covering domain of SGSN1, and SGSN2 is during this MS user profile, and message flow is as follows:
Step 101:MS sends old residential quarter number namely to SGSN2, the Route Area identification code of residential quarter 1 (RAC, Routing Area Coding)+lane place identification code (LAC, Location Area Coding).
Step 102~103:SGSN2 is by the domain name system (DNS of old residential quarter number to appointment, Domain Name System) on the equipment, find and obtain the GN-GPRS tunnel protocol corresponding with this old residential quarter number (GTP, GPRS Tunneling Protocol)-C address.
Step 104~106:SGSN2 finds SGSN1 with the GN-GTP-C address that obtains, and obtains the user profile of MS from SGSN1, and the terminal use just can communicate by letter like this.
In actual applications, because a variety of causes, can adjust the covering domain of SGSN, need after the adjustment in time the residential quarter number that records on the DNS equipment and the corresponding relation of GN-GTP-C address are upgraded, otherwise, MS handoff failure between SGSN will be caused.For example: comprise residential quarter 11 and residential quarter 12 in the covering domain of SGSN1, comprise residential quarter 21 and residential quarter 22 in the covering domain of SGSN2, because residential quarter 11, user in 12 is too much, over-burden for SGSN1, cause user's networking speed excessively slow, therefore, residential quarter 12 is moved on under the covering domain of SGSN2, at this moment, if the number of residential quarter 12 on the DNS equipment and the corresponding relation of GN-GTP-C address are not upgraded, if then MS from the residential quarter the 12 lower times of covering domain that move to SGSN3, according to the number of residential quarter 12 to the GN-GTP-C address that remains SGSN1 that DNS equipment finds, then will obtain MS user profile to SGSN1, and delete this MS user profile on the SGSN1, will cause the SGSN handoff failure like this.
Present stage, data field equipment of the core network quantity is more, and has the daily record of various kinds of equipment operation conditions on the equipment, and a large amount of information dispersion even is dispersed on the dissimilar equipment in these daily records.And, all be that simple dependence manually checks to obtain network operation situation, changed if find the covering domain of SGSN, searched the journal file that has recorded residential quarter number and GN-GTP-C address corresponding relation at DNS equipment again, then made amendment in corresponding GN-GTP-C address.Like this, inefficiency expends a large amount of manpower and materials on the one hand; On the other hand, the subjective situation such as there are manual amendment's data to misunderstand to correct mistakes, affect the existing network user awareness.
Summary of the invention
The invention provides method of data synchronization and device, keep synchronously with the corresponding relation of GN mouth private ip address and this corresponding relation on each SGSN to realize the residential quarter number on the DNS equipment.
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 residential quarter numbers and GN mouth private ip address from DNS equipment, read respectively the corresponding relation of all residential quarter numbers and GN mouth private ip address from each SGSN; For arbitrary residential quarter number, if the GN mouth private ip address that GN mouth private ip address corresponding to this residential quarter number that reads from DNS equipment and this residential quarter number that reads from SGSN are corresponding is different, then upgrade GN mouth private ip address on the DNS equipment with the GN mouth private ip address that reads from SGSN.
Described method further comprises:
When a mobile terminal MS switches to the overlay area of the 2nd SGSN from the overlay area of a SGSN, to send to the 2nd SGSN at the old residential quarter number of the overlay area of a SGSN, the 2nd SGSN gets access to corresponding GN mouth private ip address according to this old residential quarter number from DNS equipment, gets access to MS user profile according to this address from a SGSN.
Described residential quarter number is Route Area number RAC+ lane place number LAC.
The described corresponding relation that reads all residential quarter numbers and GN mouth private ip address from DNS equipment comprises:
Send download request to ftp server, this request comprises: the DNS device address, include the store path of journal file of the corresponding relation of residential quarter number and GN mouth private ip address, FTP receives this download request, sign in on the 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 that reads all residential quarter numbers and GN mouth private ip address from each SGSN comprises:
For arbitrary SGSN, read the corresponding relation of all residential quarter numbers and GN mouth private ip address from this SGSN, if read failure, judge then whether reading times equals preset times, if abandon reading; Otherwise, return and carry out described action of reading the corresponding relation of all residential quarter numbers 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 that reads all residential quarter numbers and GN mouth private ip address from DNS equipment;
SGSN data processing module: the corresponding relation that reads respectively all residential quarter numbers and GN mouth private ip address from each SGSN;
Data simultaneous module: the residential quarter number in each the bar corresponding relation that reads for the DNS data processing module, in all corresponding relations that the SGSN data processing module reads, search the corresponding relation of coupling, if the GN mouth private ip address in two corresponding relations is different, the corresponding relation that then the SGSN data processing module is read sends to DNS equipment.
Described residential quarter number is Route Area number RAC+ lane place number LAC.
Described DNS data processing module comprises:
Download module: send download request to ftp server, this request comprises: the DNS device address, include the store path of journal file of the corresponding relation of residential quarter 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, from journal file, read the corresponding relation of all residential quarter numbers and GN mouth private ip address.
Described SGSN data processing module is further used for,
When reading the corresponding relation failure of residential quarter number and GN mouth private ip address from arbitrary SGSN, judge whether reading times equals preset times, if abandon reading; Otherwise the corresponding relation of residential quarter number and GN mouth private ip address is read in continuation from this SGSN.
Described device is independent of outside DNS equipment and each SGSN.
Compared with prior art, the present invention can when network is adjusted, so that the corresponding relation of the residential quarter number on the DNS equipment and GN mouth private ip address and this corresponding relation on each SGSN keep synchronous, thereby guarantee the handover success of MS between SGSN.
Description of drawings
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 invention;
The composition schematic diagram of the data synchronization unit that Fig. 3 provides for the embodiment of the invention.
Embodiment
The present invention is further described in more detail below in conjunction with drawings and the specific embodiments.
The method of data synchronization flow chart that Fig. 2 provides for the embodiment of the invention, as shown in Figure 2, its concrete steps are as follows:
Step 200: preset data synchronizing cycle.
Data synchronizing cycle can be according to the situation adjustment of network adjustment.When the network adjustment is more frequent, can arrange littlely synchronizing cycle data; When the network adjustment is not frequent, data can be increased synchronizing cycle again.
Step 201: in each data in synchronizing cycle, the DNS data processing module is to file transfer protocol (FTP) (FTP, File Transfer Protocol) server sends download request, carries the DNS device address in this request, comprises the store path of journal file on DNS equipment of the corresponding relation of residential quarter number and GN mouth private ip address.
The residential quarter number can represent by RAC+LAC.GN mouth private ip address is such as the GN-GTP-C address.
Step 202:FTP server receives this download request, DNS device address according in the request signs in on the DNS equipment, according to the store path in the request, find corresponding journal file at DNS equipment, this journal file is downloaded on the DNS data processing module.
Here, DNS equipment can arrange account and password for the DNS data processing module in advance.The DNS data processing module will be carried at this account and password and send to ftp server in the download request, and ftp server is when login DNS equipment, and input this account and password if DNS device authentication this account and password are correct, then allow the ftp server login; Otherwise, the login of refusal ftp server.
If ftp server does not find corresponding journal file at DNS equipment according to the store path in the request, then according to the journal file name in the store path, the file of traversal DNS equipment is searched corresponding journal file.
Step 203:DNS data processing module receives journal file, reads the corresponding relation of each residential quarter number and GN mouth private ip address from journal file, and this corresponding relation is stored in the first database with default form.
Step 204: in each data in synchronizing cycle, for each SGSN, the SGSN data processing module is according to the address of this SGSN, sign in on this SGSN, the store path of journal file on this SGSN according to the corresponding relation that includes residential quarter number and GN mouth private ip address, read corresponding journal file from this SGSN, the corresponding relation of all the residential quarter numbers in this journal file and GN mouth private ip address is stored in the second database to preset form.
Here, each SGSN can arrange account and password for the SGSN data processing module in advance.The SGSN data processing module is when a SGSN of login, and account and password that input is corresponding if this SGSN checking this account and password are correct, then allow the login of SGSN data processing module; Otherwise, the login of refusal SGSN data processing module.
For various reasons, the SGSN data processing module possibly can't once just read journal file from SGSN, for this situation, the SGSN data processing module can preset data reading times m, if still can't read corresponding journal file from a SGSN m time continuously, then think and read failure, abandon continuing to read.
Step 205: in synchronizing cycle, data simultaneous module reads the data that this cycle internal memory enters respectively in the first database, the second database in each data; For each the bar data A in the first database, according to the residential quarter number in these data, in the second database, search the data A ' of coupling, after finding, the GN mouth private ip address among these two data A, A ' relatively, if both are different, then upgrade GN mouth private ip address among the data A of the first database with the GN mouth private ip address among the data A ' of the second database, the data A after will upgrading simultaneously sends to DNS equipment.
Step 206:DNS equipment is according to the residential quarter number among the data A, in the corresponding relation of the residential quarter number of self preserving and GN mouth private ip address, find the residential quarter number of coupling, upgrade GN mouth private ip address in this corresponding relation with the GN mouth private ip address among the data A.
By embodiment illustrated in fig. 2, the corresponding relation of the residential quarter number on the DNS equipment and GN mouth private ip address can with each SGSN on residential quarter number and the corresponding relation of GN mouth private ip address keep synchronously, like this, when the overlay area of SGSN changes, when if MS moves to the overlay area of another SGSN from the overlay area of a SGSN, can guarantee that a rear SGSN gets access to correct GN mouth private ip address according to the old residential quarter number of MS from DNS equipment, thereby guarantee handover success.
Need to prove that embodiment illustrated in fig. 2 what provide is periodically DNS equipment and each SGSN to be carried out the synchronous situation of data.In actual applications, also can be according to actual needs, when the data synchronisation requirement was arranged, instant to the data between DNS equipment and each SGSN, namely the corresponding relation of residential quarter number and GN mouth private ip address carried out synchronously.
According to same inventive concept, a kind of data synchronization unit also is provided in the embodiment of the invention, below be elaborated.
The composition schematic diagram of the data synchronization unit that Fig. 3 provides for the embodiment of the 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 and store the corresponding relation of all residential quarter numbers and GN private ip address from DNS equipment, and stored position information is sent to data simultaneous module 33.
SGSN data processing module 32: read and store respectively the corresponding relation of all residential quarter numbers and GN mouth private ip address from each SGSN, and stored position information is sent to data simultaneous module 33.
Data simultaneous module 33: the stored position information of sending according to DNS data processing module 31, obtain each bar corresponding relation that DNS data processing module 31 reads in this cycle, according to the stored position information that SGSN data processing module 32 is sent, obtain each bar corresponding relation that SGSN data processing module 32 reads in this cycle; Each the bar corresponding relation that reads for DNS data processing module 31, in all corresponding relations that SGSN data processing module 32 reads, search the corresponding relation of coupling according to the residential quarter number in this corresponding relation, if the GN mouth private ip address in two corresponding relations is different, the corresponding relation that then SGSN data processing module 31 is read sends to DNS equipment, so that DNS equipment according to the residential quarter number in this corresponding relation, upgrades 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: the DNS device address, include the store path of journal file of the corresponding relation of residential quarter 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 that download module 311 is sent, from journal file, read and store the corresponding relation of all residential quarter numbers and GN mouth private ip address, and stored position information is sent to data simultaneous module 33.
SGSN data processing module 32 is further used for, and when reading the corresponding relation failure of residential quarter number and GN mouth private ip address from arbitrary SGSN, judges whether reading times equals preset times, if abandon reading; Otherwise the corresponding relation of residential quarter number and GN mouth private ip address is read in continuation from this SGSN.
In order to guarantee the reliability of device shown in Figure 3, for example: be not subjected to DNS equipment or SGSN fault effects, this device preferably is independent of outside DNS equipment and each SGSN.
The above only is preferred embodiment of the present invention, and is in order to limit the present invention, within the spirit and principles in the present invention not all, any modification of making, is equal to replacement, improvement etc., all should be included within the scope of protection of the invention.

Claims (10)

1. method of data synchronization is characterized in that the method comprises:
Read the corresponding relation of all residential quarter numbers and GN mouth private ip address from domain name system DNS equipment, read respectively the corresponding relation of all residential quarter numbers and GN mouth private ip address from each GPRS serving GPRS support node SGSN;
For arbitrary residential quarter number, if the GN mouth private ip address that GN mouth private ip address corresponding to this residential quarter number that reads from DNS equipment and this residential quarter number that reads from SGSN are corresponding is different, then upgrade GN mouth private ip address on the DNS equipment with the GN mouth private ip address that reads from SGSN.
2. method according to claim 1 is characterized in that, described method further comprises:
When a mobile terminal MS switches to the overlay area of the 2nd SGSN from the overlay area of a SGSN, to send to the 2nd SGSN at the old residential quarter number of the overlay area of a SGSN, the 2nd SGSN gets access to corresponding GN mouth private ip address according to this old residential quarter number from DNS equipment, gets access to MS user profile according to this address from a SGSN.
3. method according to claim 1 is characterized in that, described residential quarter number is Route Area number RAC+ lane place number LAC.
4. method according to claim 1 is characterized in that, the described corresponding relation that reads all residential quarter numbers and GN mouth private ip address from DNS equipment comprises:
Send download request to the file transfer protocol (FTP) ftp server, this request comprises: the DNS device address, include the store path of journal file of the corresponding relation of residential quarter number and GN mouth private ip address, FTP receives this download request, sign in on the 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 that reads all residential quarter numbers and GN mouth private ip address from each SGSN comprises:
For arbitrary SGSN, read the corresponding relation of all residential quarter numbers and GN mouth private ip address from this SGSN, if read failure, judge then whether reading times equals preset times, if abandon reading; Otherwise, return and carry out described action of reading the corresponding relation of all residential quarter numbers 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: the corresponding relation that reads all residential quarter numbers and GN mouth private ip address from DNS equipment;
SGSN data processing module: the corresponding relation that reads respectively all residential quarter numbers and GN mouth private ip address from each SGSN;
Data simultaneous module: the residential quarter number in each the bar corresponding relation that reads for the DNS data processing module, in all corresponding relations that the SGSN data processing module reads, search the corresponding relation of coupling, if the GN mouth private ip address in two corresponding relations is different, the corresponding relation that then the SGSN data processing module is read sends to DNS equipment.
7. device according to claim 6 is characterized in that, described residential quarter number is Route Area number RAC+ lane place 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: the DNS device address, include the store path of journal file of the corresponding relation of residential quarter 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, from journal file, read the corresponding relation of all residential quarter numbers and GN mouth private ip address.
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 residential quarter number and GN mouth private ip address from arbitrary SGSN, judge whether reading times equals preset times, if abandon reading; Otherwise the corresponding relation of residential quarter number and GN mouth private ip address is read in continuation 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 true CN103037459A (en) 2013-04-10
CN103037459B 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)

Cited By (2)

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

Citations (3)

* 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
US20080189436A1 (en) * 2007-02-02 2008-08-07 Raj Vaswani Method and system of providing IP-based packet communications in a utility network
WO2011046348A2 (en) * 2009-10-12 2011-04-21 Lg Electronics Inc. Mobile terminated communication method and related devices

Patent Citations (3)

* 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
US20080189436A1 (en) * 2007-02-02 2008-08-07 Raj Vaswani Method and system of providing IP-based packet communications in a utility network
WO2011046348A2 (en) * 2009-10-12 2011-04-21 Lg Electronics Inc. Mobile terminated communication method and related devices

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104767773A (en) * 2014-01-02 2015-07-08 中兴通讯股份有限公司 Information intelligent synchronization method and information intelligent synchronization device
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

Also Published As

Publication number Publication date
CN103037459B (en) 2015-08-19

Similar Documents

Publication Publication Date Title
CN102422600B (en) Method provided in mixed nodes, network thereof and network units thereof
CN102638797A (en) Method and terminal for accessing wireless network, access network node and authentication server
CN1929497B (en) Method and system for obtaining moving nodes local proxy information
CN101572855B (en) Method and device for selecting gateway for terminal
CN104853430A (en) Vehicle-mounted device, mobile terminal and connection method of vehicle-mounted device and mobile terminal
AU9740398A (en) Method and arrangement for finding information
CN102710777A (en) Advertisement push-delivery method and system, as well as advertisement pusher
CN103916277B (en) The method and apparatus that realization does not interrupt forwarding service when restarting
FI20001877A (en) Handover in a wireless telecommunication system
CN104995902A (en) Methods and systems for seamless network communication between IPV4 and IPV6 devices
CN101299868B (en) Method and device for supporting subscriber terminal to access network in fixed access network
EP2724262A1 (en) Caching support for visual search and augmented reality in mobile networks
CN102014368A (en) Method, system and device for acquiring position information of user equipment
CN106413045B (en) A kind of wireless wifi and the method and system of mobile communication synchronous operation
CN105007310A (en) Information synchronization method, device and system
CN103037459B (en) Method of data synchronization and device
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
CN107105425B (en) Network access method and network access device
CN106792643A (en) A kind of international roaming realization method and system based on card number switching
KR101744307B1 (en) Method for registering mobile ip using time information synchronization and wireless internet modem therefor
CN102438228B (en) Method and system for associating user information through data of GPRS (General Packet Radio Service) backbone network
CN101883419A (en) Synchronization method of client-side information and system
CN101287096A (en) Card for implementing identification conversion and converting method

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