CN116708481B - Railway service system data synchronization method and system - Google Patents

Railway service system data synchronization method and system Download PDF

Info

Publication number
CN116708481B
CN116708481B CN202310980133.9A CN202310980133A CN116708481B CN 116708481 B CN116708481 B CN 116708481B CN 202310980133 A CN202310980133 A CN 202310980133A CN 116708481 B CN116708481 B CN 116708481B
Authority
CN
China
Prior art keywords
station
data
control mode
service
database
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
CN202310980133.9A
Other languages
Chinese (zh)
Other versions
CN116708481A (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.)
CRSC Research and Design Institute Group Co Ltd
Original Assignee
CRSC Research and Design Institute Group 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 CRSC Research and Design Institute Group Co Ltd filed Critical CRSC Research and Design Institute Group Co Ltd
Priority to CN202310980133.9A priority Critical patent/CN116708481B/en
Publication of CN116708481A publication Critical patent/CN116708481A/en
Application granted granted Critical
Publication of CN116708481B publication Critical patent/CN116708481B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/1095Replication or mirroring of data, e.g. scheduling or transport for data synchronisation between network nodes
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/08Protocols specially adapted for terminal emulation, e.g. Telnet
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/12Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Health & Medical Sciences (AREA)
  • Computing Systems (AREA)
  • General Health & Medical Sciences (AREA)
  • Medical Informatics (AREA)
  • Train Traffic Observation, Control, And Security (AREA)

Abstract

The invention provides a railway service system data synchronization method and a system, wherein the method comprises the following steps: acquiring a current station control mode, wherein the control mode comprises the following steps: a center control mode and a station control mode; determining data synchronization operation of a station database and a corresponding center database according to the control mode; the central station is used for controlling railway service business of the corresponding local station in a central control mode; the local station can independently control railway service business of the station in a station control mode. The data synchronization method and system of the railway service system provide a center-station data synchronization mechanism, avoid the influence of data transmission on system function execution, and improve the safety and controllability of data synchronization.

Description

Railway service system data synchronization method and system
Technical Field
The invention belongs to the technical field of railway information service, and particularly relates to a railway service system data synchronization method and system.
Background
The passenger service system adopts a center-station two-stage control mode. The central control mode is adopted under normal use conditions. When the central control fails or other reasons require station autonomous control, the system needs to be converted into a station control mode, and the passenger service system of each station monitors and manages the equipment such as broadcasting, guiding and the like of the station. In order to ensure that the passenger service system of each station can normally operate after being converted into a station control mode, the data related to the station in the central control mode needs to be directionally synchronized to the station.
The system data synchronization method widely adopted at present is that when data in a database of a pushing party is changed, the pushing party sends a change message to a receiving party in the modes of serial numbers, message IDs, data packets and the like, and the receiving party carries out incremental update on the data. Or the pushing party adopts a mode of periodically pushing the whole data to the receiving party. When one push aspect is applied to a plurality of receivers, both data synchronization modes do not support configurable personalized data push according to different receiver requirements. Meanwhile, the existing data synchronization scheme does not consider the influence on the system function execution caused by the change of data in the execution process and the corresponding solution. Thereby bringing a certain hidden trouble to the normal operation of the passenger service system center, namely the station control mode after switching.
The passenger service system needs data of all stations in the whole line in a central control mode, and each station along the railway only needs to control the own station equipment in a station control mode, and functions to be executed are different, so that only the necessary data of the own station needs to be stored. The development of the passenger service business is based on various data such as the environment, equipment, passenger condition, business type and the like of each station, so the data required by the passenger service of each station are different. If the data of each station is consistent with the central data, the data quantity required to be synchronized is greatly increased, and meanwhile, a large amount of unnecessary data is stored in each station system, so that the data storage space is wasted. Meanwhile, frequent data synchronization operation may have a certain influence on normal execution of various functions in a station control mode.
How to realize high-efficiency and safe data synchronization under the condition of supporting a center-station control mode becomes a technical problem to be solved in the field.
Disclosure of Invention
In view of the above problems, the present invention provides a method for synchronizing data of a railway service system, including:
acquiring a current station control mode, wherein the control mode comprises the following steps: a center control mode and a station control mode;
determining data synchronization operation of a station database and a corresponding center database according to the control mode;
the central station is used for controlling railway service business of the corresponding local station in a central control mode;
the local station can independently control railway service business of the station in a station control mode.
Further, the method comprises the steps of:
and determining the control mode of the current station according to the login state of the client of the railway service system.
Further, when the client logs in the center service of the railway service system in the center control mode, the control center database synchronizes data to the corresponding station database.
Further, when the client logs in the station service of the railway service system in the station control mode, the center database stops synchronizing data to the station database of the current station.
Further, when the client logs out of the station service of the railway service system logged in the station control mode, the control center database synchronizes data to the station database of the current station.
Further, the data synchronization includes:
the data synchronization period is set according to the station control mode frequency of use.
Further, setting the data synchronization period according to the station control mode use frequency includes:
for stations with the station control mode using frequency lower than a first frequency threshold value, configuring a data synchronization period larger than a first time threshold value;
configuring a data synchronization period smaller than a second time threshold for stations with the station control mode using frequency larger than the second frequency threshold;
the first frequency threshold is less than or equal to the second frequency threshold and the first time threshold is greater than or equal to the second time threshold.
Further, the data synchronization includes configuring a synchronization period according to the data table rate of change:
for a static data configuration table with the change rate lower than a first change rate threshold value, configuring a data synchronization period larger than a third time threshold value;
for the dynamic data table with the change rate larger than the second change rate threshold value, configuring a data synchronization period smaller than a fourth time threshold value;
wherein the first rate of change threshold is less than or equal to the second rate of change threshold and the third time threshold is greater than or equal to the fourth time threshold.
Further, the data synchronization includes:
determining a data table which needs to be updated in the station database;
respectively setting updating periods for the data tables to be updated;
and acquiring corresponding data from the central database according to the data table and the updating period to perform data synchronization.
Further, corresponding data are obtained from the central database, and new data, data to be modified and data to be deleted are determined according to data tag comparison.
Further, data synchronization is performed according to station configuration items, wherein,
the station configurable items include: the table name and/or station code and/or service type corresponds to the table name.
Further, performing data synchronization according to the station configuration item includes:
according to the table names in the local configuration files, the station service synchronizes the data in the corresponding tables of the central database to the local station database; and/or
According to the configuration of the service types and the corresponding table names in the local configuration file, the station service screens out the related table of the appointed service types in the central database, and synchronizes the data in the related table to the local; and/or
The station service is configured according to the local station code and the table name in the configuration file, or the station service is configured according to the local station code and the service type, the data in the corresponding table of the central database are screened, and the data carrying the local station code in the corresponding table are synchronized to the local.
The invention also provides a railway service system data synchronization system, which comprises:
the mode determining module is used for acquiring a current station control mode, and the control mode comprises the following steps: a center control mode and a station control mode;
the synchronous control module is used for determining the data synchronous operation of the station database and the corresponding center database according to the control mode;
the central station is used for controlling railway service business of the corresponding local station in a central control mode;
the local station can independently control railway service business of the station in a station control mode.
Further, the mode determining module is configured to determine a control mode of the current station according to the acquired client login state of the railway service system.
Further, when the client logs in the center service of the railway service system in a center control mode, the synchronous control module controls the center database to synchronize data with the corresponding station database;
when the client logs in the station service of the railway service system in a station control mode, the synchronous control module controls the stop center database to synchronize data to the station database of the current station.
Further, when the client logs out of the station service of the railway service system logged in the station control mode, the synchronous control module controls the control center database to synchronize data with the station database of the current station.
Further, the synchronization control module is further configured to set a data synchronization period according to a frequency of use of the station control mode.
The data synchronization method and system of the railway service system provide a center-station data synchronization mechanism, avoid the influence of data transmission on system function execution, and improve the safety and controllability of data synchronization. The data synchronization scheme supporting personalized configuration of each station realizes the minimization of data transmission quantity on the basis of ensuring the normal operation of each function of a station control mode of a station system.
Additional features and advantages of the invention will be set forth in the description which follows, and in part will be obvious from the description, or may be learned by practice of the invention. The objectives and other advantages of the invention may be realized and attained by the structure particularly pointed out in the written description and claims hereof as well as the appended drawings.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings that are required in the embodiments or the description of the prior art will be briefly described, and it is obvious that the drawings in the following description are some embodiments of the present invention, and other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
FIG. 1 is a schematic diagram of data synchronization at the time of central control mode login according to an embodiment of the present invention;
fig. 2 is a schematic diagram showing a data synchronization situation when a station control mode is logged in according to an embodiment of the present invention;
FIG. 3 is a schematic diagram showing data synchronization after logging out station control mode according to an embodiment of the present invention;
FIG. 4 shows a schematic diagram of a process for synchronizing data according to a configuration according to an embodiment of the invention;
FIG. 5 shows a schematic diagram of a data synchronization process according to an embodiment of the invention;
fig. 6 is a schematic diagram showing the construction of a railway service system data synchronization system according to an embodiment of the present invention.
Detailed Description
For the purpose of making the objects, technical solutions and advantages of the embodiments of the present invention more apparent, the technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention, and it is apparent that the described embodiments are some embodiments of the present invention, but not all embodiments of the present invention. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
Aiming at the problems of the existing data synchronization method, the embodiment of the invention provides a railway service system data synchronization method and a railway service system data synchronization system, which are optimized and improved in the aspects of data synchronization personalized configuration, a service system center, a station control mode switching data protection mechanism and the like, and realize the data synchronization supporting personalized configuration.
The railway service system data synchronization method of the embodiment of the invention adopts a unidirectional data synchronization control scheme from the center to the station. In order to avoid data flushing, the data synchronization can only be one-way synchronized from the central database to the station database, and the station data cannot be reversely written back.
In order to protect the normal function of the station control mode system and avoid data conflict caused by data synchronization, the following data protection mechanism is adopted during the switching of the control modes. The control modes of the station service include a center control mode (abbreviated as center mode) and a station control mode (abbreviated as station control mode).
The mode switching synchronous control of the embodiment of the invention aims at a railway service system, and a railway server can provide two services including center service and station service according to different login modes (such as account number or option distinction). When operating in the central control mode, the central service is provided, and when operating in the station control mode, the station service is provided. Without loss of generality, the railway service system is a railway passenger service system. The embodiments of the present invention are not limited to the type of railway service system in which the method and system are employed.
In the central control mode, the service center controls the services of all relevant stations, and the service center can acquire the data of all relevant stations in the whole line, specifically, the data required by the control of the relevant stations can be acquired from a central database. In the station control mode, the current station is based on the data of the station database, and the service of the station is independently controlled.
The mode switching synchronous control mechanism of the embodiment of the invention comprises the following steps:
(1) Center mode scene
As shown in fig. 1, in a normal operation scenario, stations operate in a central control mode, and a central service operating in one station manages railway service businesses of all relevant stations. Specifically, in a center station in a group of stations, a client logs in to a center service in a center mode. The central database synchronizes data to the station database. Specifically, two modes of periodic synchronization and real-time synchronization are adopted to synchronize data to other local stations, and the other local stations do not log in a railway service system. The central station and the local station belong to a group of stations on a same line, wherein the central station is a station for running central service and can be any station in the group of stations, and other stations in the same group are local stations. The client is an interactive terminal of the railway service system and provides an interactive operation control interface for a user.
(2) Station control mode scene
As shown in fig. 2, when a client logs in to a station service in a station mode, the railway service system starts the station mode. In the station control mode, the station can generate data conflict with the station control mode operation if the station is synchronous with the central data, so that when the station starts the station control mode, the central database stops synchronizing the data to the current station database.
(3) Station control mode cancellation scene
As shown in fig. 3, after the client logs in the station control mode, the station service ends the station control mode, and the data synchronization between the station database and the central database of the current station is restored.
In order to ensure the real-time performance, the integrity and the consistency of the synchronization of the center and the station data, the data synchronization method comprises the steps of periodic data synchronization and real-time data synchronization.
The periodic data synchronization scheme supports picklist data synchronization. That is, the whole database data is not needed to be synchronized, and only the data table needed by the station control function is needed to be synchronized.
The data synchronization method of the embodiment of the invention supports personalized configurable data synchronization, station service only needs to centrally synchronize the data required by the current station according to the local configuration file, the data transmission and processing efficiency is high, and the bandwidth occupation is reduced.
The station configurable items include: table name, station code, service type corresponds to table name.
The synchronizing data according to the configuration includes:
table name screening synchronization: the station service can synchronize the data in the corresponding table of the central database to the local according to the configuration of the table names in the local configuration file.
Service type screening synchronization: and the station service screens out a relevant table of the appointed service type from the central database according to the service type in the local configuration file and the configuration of the corresponding table name, and synchronizes the data in the relevant table to the local. Illustratively, the service types include: "guide service", "broadcast service", "video monitoring", "fire alarm", "entrance guard management", "ticket management", etc.
Station code screening and synchronizing: the station service is configured according to the local station code and the table name in the configuration file, or the station service is configured according to the local station code and the service type, the data in the corresponding table of the central database are screened, and the data carrying the local station code in the corresponding table are synchronized to the local.
Illustratively, as shown in fig. 4, the station service reads the local service type configuration and determines whether the local service type is configured.
If the service type is configured, the local table name configuration is ignored, and the table name configuration corresponding to the service type is read; and reading whether the local station code is configured or not, synchronizing the data with the local station code in the corresponding table of the central database to the local station database according to the corresponding table name of the service type if the local station code is configured, and synchronizing all the data in the corresponding table of the central database to the local station database according to the corresponding table name of the service type if the local station code is not configured.
And if the local service type is not configured, reading the local table name configuration. And judging whether the local table name is configured or not.
If the local table name is not configured, reading whether the local station code is configured or not. If the local station code is not configured, synchronizing all data of the central database to the local station database, and if the local station code is configured, considering that the station code configuration is invalid, and synchronizing all data of the central database to the local.
If the local table name is configured, continuing to read whether the local station code is configured. If the station code is configured, synchronizing the data with the local station code in the corresponding table of the central database to the local. If the station code is not configured, all data of the corresponding table of the central database are synchronized to the local.
Through corresponding table names and service types, the data synchronization range can be flexibly specified, and the synchronization data can be set according to service requirements, so that the data synchronization process can be managed conveniently. The data to be synchronized in the corresponding table is defined through the station codes, so that the data synchronization quantity is further reduced.
Further, configuring different data synchronization periods for each table in each station database is supported, including setting the data synchronization periods according to the station control mode frequency of use.
For example, for stations whose station-control mode use frequency is lower than the first frequency threshold, a data synchronization period greater than the first time threshold is configured, i.e., for stations whose station-control mode use frequency is lower, a longer data synchronization period is configured; in contrast, a station with a frequency greater than the second frequency threshold is configured with a data synchronization period less than the second time threshold, i.e., a station with frequent use of the station mode is configured with a shorter data synchronization period. Wherein the first frequency threshold is less than or equal to the second frequency threshold and the first time threshold is greater than or equal to the second time threshold.
The synchronization period may also be configured according to a data table change rate, with a static data configuration table having a change rate lower than a first change rate threshold, a data synchronization period greater than a third time threshold being configured, i.e. with a static data configuration table having less change (a longer data synchronization period may be configured; with a dynamic data table having a change rate greater than a second change rate threshold, a data synchronization period less than a fourth time threshold being configured, and with a dynamic data table having more change rate, a shorter data synchronization period being configured.
The embodiment of the invention determines the data updating period according to the using frequency and the data change rate of the station control mode, can adaptively reduce the system traffic, improve the efficiency and reduce the cost while ensuring that the service management needs are met.
Dividing synchronous data into two types, wherein one type is data with a time stamp label and the other type is data without the time stamp label;
as shown in fig. 5, each station data synchronization adopts a periodic mode, and the station service reads the local data synchronization configuration information and determines the data table to be synchronized and the data synchronization period of each table. And reading the data to be synchronized from the central database according to the configuration information, comparing the data with the local data, and determining the modification operation according to the comparison result. Modification operations are classified into three categories: newly added data, data to be modified and data to be deleted. And respectively processing the three types of data, inserting the newly added data into a local station database, updating the data needing to be modified in the station database and deleting the data to be deleted.
The data were compared as follows:
and comparing the data of the central database with the (local) data of the station, judging whether the local data are consistent with the central data, and if the data are not contained in the center, deleting the data locally.
Sequentially judging whether the data exists in the local database according to a pre-designated field for judging the data uniqueness and data acquired from the central database, and if the data does not exist, calibrating the data as newly added data;
if so, continuing to compare whether the comparison is modified or not, wherein the comparison mode is divided into two types according to whether the comparison is provided with a timestamp or not:
if the data are provided with the time stamps, directly comparing whether the time stamps are the same or not, if the time stamps of the data of the central databases are different and the time stamp time of the data of the central databases is newer, marking the data of the corresponding station databases as to be updated, otherwise marking the data as consistent in state.
And if the attribute is different, marking the data as to-be-updated, otherwise marking the data as consistent in state.
And screening the tags of the data of the station database, wherein the local data without the corresponding tag is marked to be deleted in the acquired data of the central database.
The real-time data synchronization mode is used for synchronizing the related data of the system functions with higher real-time requirements. Marking a data table which needs to be synchronized in real time in a central database, and marking a data change time stamp for each piece of data in the table. When the data is newly added, modified or deleted, the central database pushes the data with the changed table to each station in real time in a broadcasting mode. Each station database receives the data change information, and correspondingly changes the data in the local station database to complete the data real-time synchronization function.
The embodiment of the invention combines two modes of periodic updating and real-time updating, thereby not only meeting the real-time requirement of data updating, but also avoiding the data synchronization consumption caused by frequent updating. The specific scheme of controllable quantity updating is provided for periodic updating and real-time updating, the local control updating range of the station is realized through configuration information, and then data to be updated is accurately acquired, compared and updated, the data transmission quantity is reduced, and the efficiency is improved. The data to be updated and deleted can be determined quickly and efficiently through the time stamp.
Based on the same inventive concept, the embodiment of the present invention further provides a railway service system data synchronization system, as shown in fig. 6, including:
the mode determining module is used for acquiring a current station control mode, and the control mode comprises the following steps: a center control mode and a station control mode;
the synchronous control module is used for determining the data synchronous operation of the station database and the corresponding center database according to the control mode;
the central station is used for controlling railway service business of the corresponding local station in a central control mode;
the local station can independently control railway service business of the station in a station control mode.
Further, the mode determining module is used for determining the control mode of the current station according to the login state of the client of the railway service system.
When the client logs in the center service of the railway service system in a center control mode, the synchronous control module controls the center database to synchronize data with the corresponding station database;
when the client logs in the station service of the railway service system in a station control mode, the synchronous control module controls the stop center database to synchronize data to the station database of the current station.
When the client side logs out of the station service of the railway service system logged in the station control mode, the synchronous control module controls the control center database to synchronize data with the station database of the current station.
The synchronous control module is also used for setting a data synchronous period according to the station control mode using frequency.
The specific processing logic of each module of the railway service system data synchronization system in the embodiment of the invention can be realized according to the description of the railway service system data synchronization method in the embodiment of the invention, and the description is omitted.
Although the invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical scheme described in the foregoing embodiments can be modified or some technical features thereof can be replaced by equivalents; such modifications and substitutions do not depart from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims (6)

1. A method for synchronizing data of a railway service system, comprising:
acquiring a current station control mode, wherein the control mode comprises the following steps: a center control mode and a station control mode;
determining data synchronization operation of a station database and a corresponding center database according to the control mode;
the central station is used for controlling railway service business of the corresponding local station in a central control mode;
the local station can independently control railway service business of the station in a station control mode;
determining a control mode of a current station according to the acquired client login state of the railway service system;
when a client logs in the central service of the railway service system in a central control mode, the control center database synchronizes data with the corresponding station database;
stopping the synchronous data of the central database to the station database of the current station when the client logs in the station service of the railway service system in a station control mode;
when the client side logs out of station service of the railway service system logged in a station control mode, the control center database synchronizes data to the station database of the current station;
the data synchronization includes:
setting a data synchronization period according to the station control mode using frequency;
setting the data synchronization period according to the station control mode use frequency includes:
for stations with the station control mode using frequency lower than a first frequency threshold value, configuring a data synchronization period larger than a first time threshold value;
configuring a data synchronization period smaller than a second time threshold for stations with the station control mode using frequency larger than the second frequency threshold;
the first frequency threshold is less than or equal to the second frequency threshold, and the first time threshold is greater than or equal to the second time threshold;
data synchronization is carried out according to station configuration items, wherein the station configuration items comprise: table names, station codes, service types and corresponding table names of the service types;
data synchronization is performed according to station configuration items, including: according to the configuration of the service types and the corresponding table names in the local configuration file, the station service screens out the related table of the appointed service types in the central database, and synchronizes the data in the related table to the local; the station service is configured according to the local station code and the table name in the configuration file, or the station service is configured according to the local station code and the service type, the data in the corresponding table of the central database are screened, and the data carrying the local station code in the corresponding table are synchronized to the local.
2. The method of claim 1, wherein synchronizing the data comprises configuring the synchronization period according to a rate of change of the data table:
for a static data configuration table with the change rate lower than a first change rate threshold value, configuring a data synchronization period larger than a third time threshold value;
for the dynamic data table with the change rate larger than the second change rate threshold value, configuring a data synchronization period smaller than a fourth time threshold value;
wherein the first rate of change threshold is less than or equal to the second rate of change threshold and the third time threshold is greater than or equal to the fourth time threshold.
3. The railway service system data synchronization method according to claim 1 or 2, wherein the data synchronization comprises:
determining a data table which needs to be updated in the station database;
respectively setting updating periods for the data tables to be updated;
and acquiring corresponding data from the central database according to the data table and the updating period to perform data synchronization.
4. A method of synchronizing railway service system data according to claim 3, wherein the corresponding data is obtained from a central database and the new data, the data to be modified and the data to be deleted are determined based on a data tag comparison.
5. The railway service system data synchronization method according to claim 4, wherein performing data synchronization according to the station configuration item comprises:
according to the table names in the local configuration file, the station service synchronizes the data in the corresponding table of the central database to the local station database.
6. A railway service system data synchronization system, comprising:
the mode determining module is used for acquiring a current station control mode, and the control mode comprises the following steps: a center control mode and a station control mode;
the synchronous control module is used for determining the data synchronous operation of the station database and the corresponding center database according to the control mode;
the central station is used for controlling railway service business of the corresponding local station in a central control mode;
the local station can independently control railway service business of the station in a station control mode;
the mode determining module is used for determining the control mode of the current station according to the login state of the client of the railway service system;
when the client logs in the center service of the railway service system in a center control mode, the synchronous control module controls the center database to synchronize data with the corresponding station database;
when the client logs in the station service of the railway service system in a station control mode, the synchronous control module controls the stop center database to synchronize data to the station database of the current station;
when the client side logs out of station service of the railway service system logged in a station control mode, the synchronous control module controls the central database to synchronize data to the station database of the current station;
the synchronous control module is also used for setting a data synchronous period according to the use frequency of the station control mode;
the system is used for setting a data synchronization period according to the station control mode using frequency, and comprises the following steps:
for stations with the station control mode using frequency lower than a first frequency threshold value, configuring a data synchronization period larger than a first time threshold value; configuring a data synchronization period smaller than a second time threshold for stations with the station control mode using frequency larger than the second frequency threshold; the first frequency threshold is less than or equal to the second frequency threshold, and the first time threshold is greater than or equal to the second time threshold;
the system is used for carrying out data synchronization according to station configuration items, wherein the station configuration items comprise: table names, station codes, service types and corresponding table names of the service types;
the data synchronization according to the station configuration item comprises the following steps: according to the configuration of the service types and the corresponding table names in the local configuration file, the station service screens out the related table of the appointed service types in the central database, and synchronizes the data in the related table to the local; the station service is configured according to the local station code and the table name in the configuration file, or the station service is configured according to the local station code and the service type, the data in the corresponding table of the central database are screened, and the data carrying the local station code in the corresponding table are synchronized to the local.
CN202310980133.9A 2023-08-07 2023-08-07 Railway service system data synchronization method and system Active CN116708481B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310980133.9A CN116708481B (en) 2023-08-07 2023-08-07 Railway service system data synchronization method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310980133.9A CN116708481B (en) 2023-08-07 2023-08-07 Railway service system data synchronization method and system

Publications (2)

Publication Number Publication Date
CN116708481A CN116708481A (en) 2023-09-05
CN116708481B true CN116708481B (en) 2023-10-27

Family

ID=87832603

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310980133.9A Active CN116708481B (en) 2023-08-07 2023-08-07 Railway service system data synchronization method and system

Country Status (1)

Country Link
CN (1) CN116708481B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107402626A (en) * 2017-07-31 2017-11-28 广东欧珀移动通信有限公司 Using cycle synchronisation management method, device, storage medium and electronic equipment
WO2018120940A1 (en) * 2016-12-30 2018-07-05 广州华多网络科技有限公司 Distributive business service system, centralized service control method and corresponding device thereof
CN114880404A (en) * 2022-07-13 2022-08-09 南瑞轨道交通技术有限公司 Group model quasi-delay synchronization method of rail transit distributed database
CN116466613A (en) * 2022-01-12 2023-07-21 北京全路通信信号研究设计院集团有限公司 Execution method of control instruction, controlled equipment, station server and execution device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2018120940A1 (en) * 2016-12-30 2018-07-05 广州华多网络科技有限公司 Distributive business service system, centralized service control method and corresponding device thereof
CN107402626A (en) * 2017-07-31 2017-11-28 广东欧珀移动通信有限公司 Using cycle synchronisation management method, device, storage medium and electronic equipment
CN116466613A (en) * 2022-01-12 2023-07-21 北京全路通信信号研究设计院集团有限公司 Execution method of control instruction, controlled equipment, station server and execution device
CN114880404A (en) * 2022-07-13 2022-08-09 南瑞轨道交通技术有限公司 Group model quasi-delay synchronization method of rail transit distributed database

Also Published As

Publication number Publication date
CN116708481A (en) 2023-09-05

Similar Documents

Publication Publication Date Title
CN1321535C (en) Origination time and update lifetime with updatable messages
CN106777308A (en) The synchronous method and device of civil aviaton's sequence information
CN103092959A (en) Processing method and device for task time zone
EP1626526B1 (en) Method and device for configuring data in communication device
CN101043318B (en) Method for synchronizing front-background data and apparatus thereof
KR20060053955A (en) Differential update for data broadcasting
CN102752834A (en) Method and system for optimizing power resources in wireless devices
US8244670B2 (en) System and method for reliable symmetric data synchronization
CN101127640B (en) A method for improving data synchronization efficiency via the incremental mode
CN112241437A (en) Loop control method, device and equipment for multi-master synchronization of database and storage medium
US10397125B2 (en) Method of cross-regional data transmission and system thereof
CN116708481B (en) Railway service system data synchronization method and system
CN103686300A (en) Service guide synchronization method and system
CN101877653A (en) Method and system for judging whether alarm variable information is lost or not as well as master control board
CN115473858A (en) Data transmission method and streaming data transmission system
CN115102862A (en) Automatic synchronization method and device for SDN equipment
CN105117423B (en) A kind of autonomous Response to selection method of databases comparison based on intelligent body
CN111737348B (en) Aging synchronization method and device based on database table
CN103593369B (en) Inquiry and update method and processing system of HSS (home subscriber server) data
KR100274848B1 (en) Network management method for network management system
CN113722401B (en) Data caching method and device, computer equipment and readable storage medium
CN115150317B (en) Routing table entry issuing method and device, electronic equipment and computer readable medium
CN111865464B (en) Automatic mounting method and device for multi-slot communication system clock channel
CN114254040A (en) CDC-based heterogeneous data source quasi-real-time data synchronization method and system
CN113961538A (en) Method and system for supporting automatic data synchronization of multi-source heterogeneous database

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant