CN111541824B - Method and system for communication information transmission - Google Patents

Method and system for communication information transmission Download PDF

Info

Publication number
CN111541824B
CN111541824B CN202010319204.7A CN202010319204A CN111541824B CN 111541824 B CN111541824 B CN 111541824B CN 202010319204 A CN202010319204 A CN 202010319204A CN 111541824 B CN111541824 B CN 111541824B
Authority
CN
China
Prior art keywords
information
key
communication
field
communication information
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
CN202010319204.7A
Other languages
Chinese (zh)
Other versions
CN111541824A (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.)
Beijing Si Tech Information Technology Co Ltd
Original Assignee
Beijing Si Tech Information Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Si Tech Information Technology Co Ltd filed Critical Beijing Si Tech Information Technology Co Ltd
Priority to CN202010319204.7A priority Critical patent/CN111541824B/en
Publication of CN111541824A publication Critical patent/CN111541824A/en
Application granted granted Critical
Publication of CN111541824B publication Critical patent/CN111541824B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M15/00Arrangements for metering, time-control or time indication ; Metering, charging or billing arrangements for voice wireline or wireless communications, e.g. VoIP
    • H04M15/64On-line charging system [OCS]

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Telephonic Communication Services (AREA)

Abstract

The invention discloses a method and a system for communication information transmission, and belongs to the technical field of online communication. The method comprises the following steps: classifying the historical communication information, and determining each type of historical communication information and key information of reply information of the historical communication information; receiving communication information, and storing key fields of the communication information and the communication information processed in a preset mode into a memory database; storing the key field of the reply information and the reply information processed in a preset mode into a memory database; and acquiring a key field of the reply information in the information middleware, calling the reply information in the memory database according to the key field of the reply information, and feeding back the communication information. The invention can accurately transfer the communication message, avoids the inaccuracy of the communication message charging, reduces the message length in network interaction, achieves the rapid transfer and interaction of the communication message and can avoid the waste of resources caused by processing abnormal messages in time.

Description

Method and system for communication information transmission
Technical Field
The invention relates to the technical field of online communication, in particular to a method and a system for communication information transmission.
Background
With the development of 5G of each large operator, the service characteristics based on the 5G network: the method has the advantages that the requirements for the charging interface are standardized, the original online message DCC interface and the original offline ticket FTP interface are unified into a new Restfu service interface, so that higher requirements are provided for the processing efficiency and performance of a background charging system, online charging interaction mainly depends on network communication, and the current online consumption interaction information means can not meet the requirements for high bandwidth, high speed and high real-time.
Disclosure of Invention
In view of the above problem, the present invention provides a method for communication information delivery, including:
classifying the historical communication information, and determining each type of historical communication information and key information of reply information of the historical communication information;
receiving communication information, extracting a key field of the communication information according to the key information, writing the key field of the communication information into the information middleware, and storing the key field of the communication information and the communication information processed in a preset mode into a memory database;
acquiring a key field of communication information in the information middleware, calling the communication information in the memory database according to the communication key field, generating reply information of the communication information according to the communication information, extracting the key field of the reply information according to the key information, writing the key field of the reply information into the information middleware, and storing the key field of the reply information and the reply information processed in a preset mode into the memory database;
and acquiring a key field of the reply information in the information middleware, calling the reply information in the memory database according to the key field of the reply information, and feeding back the communication information.
Optionally, the preset mode specifically includes: and converting the communication information or the reply information into a binary string, and combining the binary string and the information state.
Optionally, the information state includes: an information unprocessed state and an information processed state;
combining the information unprocessed state and the binary string of the communication information;
and combining the information processed state and the binary string of the reply information, and combining the communication information with the information processed state after the reply information of the communication information is fed back.
Optionally, the in-memory database includes:
the key word field is used for storing the key field of the communication information and the key field of the reply information;
and the binary string field of the communication information and the reply information stores the communication information processed in a preset mode and the reply information processed in the preset mode.
Optionally, the method further includes:
and when the received communication information cannot extract the key field of the communication information according to the key information, feeding back the information exception to the communication information.
The invention also provides a system for communication information transfer, comprising:
the configuration module is used for classifying the historical communication information and determining each type of historical communication information and key information of reply information of the historical communication information;
the information receiving module is used for receiving the communication information, extracting a key field of the communication information according to the key information, writing the key field of the communication information into the information middleware, storing the key field of the communication information and the communication information processed in a preset mode into the memory database, acquiring the key field of the reply information in the information middleware, calling the reply information in the memory database according to the key field of the reply information, and feeding back the communication information;
the information processing module is used for acquiring the key field of the communication information in the information middleware, calling the communication information in the memory database according to the key field of the communication, generating the reply information of the communication information according to the communication information, extracting the key field of the reply information according to the key information, writing the key field of the reply information into the information middleware, and storing the key field of the reply information and the reply information processed in a preset mode into the memory database.
Optionally, the preset mode specifically includes: and converting the communication information or the reply information into a binary string, and combining the binary string and the information state.
Optionally, the information state includes: an information unprocessed state and an information processed state;
combining the information unprocessed state and the binary string of the communication information;
and combining the information processed state and the binary string of the reply information, and combining the communication information with the information processed state after the reply information of the communication information is fed back.
Optionally, the in-memory database includes:
the key word field is used for storing the key field of the communication information and the key field of the reply information;
and the binary string field of the communication information and the reply information stores the communication information processed in a preset mode and the reply information processed in the preset mode.
Optionally, the information receiving module is further configured to determine that the feedback message is abnormal for the communication message when the received communication message cannot extract the key field of the communication message according to the key information.
Compared with the prior art, the invention has the beneficial effects that:
the invention rearranges and organizes the communication information through the message middleware and the memory database, thereby achieving the purposes of accurately circulating the communication messages, avoiding the inaccuracy of the communication message charging, reducing the message length in network interaction, achieving the quick transmission and interaction of the communication messages and avoiding the waste of resources caused by processing abnormal messages in time.
Drawings
FIG. 1 is a flow chart of a method for communication message delivery according to the present invention;
FIG. 2 is a flowchart illustrating an embodiment of a method for communication message delivery according to the present invention;
fig. 3 is a block diagram of a system for communicating information according to the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, but not all, embodiments of the present invention. All other embodiments, which can be obtained by a person skilled in the art without any inventive step based on the embodiments of the present invention, are within the scope of the present invention.
The invention provides a method for communication information transmission, which comprises the following steps:
classifying the historical communication information, and determining each type of historical communication information and key information of reply information of the historical communication information;
receiving communication information, extracting a key field of the communication information according to the key information, writing the key field of the communication information into the information middleware, and storing the key field of the communication information and the communication information processed in a preset mode into a memory database;
when the received communication information cannot extract the key field of the communication information according to the key information, the communication information is fed back to cause the message to be abnormal;
acquiring a key field of communication information in the information middleware, calling the communication information in the memory database according to the communication key field, generating reply information of the communication information according to the communication information, extracting the key field of the reply information according to the key information, writing the key field of the reply information into the information middleware, and storing the key field of the reply information and the reply information processed in a preset mode into the memory database;
and acquiring a key field of the reply information in the information middleware, calling the reply information in the memory database according to the key field of the reply information, and feeding back the communication information.
The preset mode specifically comprises the following steps: and converting the communication information or the reply information into a binary string, and combining the binary string and the information state.
An information state comprising: an information unprocessed state and an information processed state;
combining the information unprocessed state and the binary string of the communication information;
and combining the information processed state and the binary string of the reply information, and combining the communication information with the information processed state after the reply information of the communication information is fed back.
An in-memory database comprising:
the key word field is used for storing the key field of the communication information and the key field of the reply information;
and the binary string field of the communication information and the reply information stores the communication information processed in a preset mode and the reply information processed in the preset mode.
The invention is described in further detail below with reference to the attached drawing figures:
as shown in fig. 2, first, configuration data management is performed, information such as communication information of different histories and reply information of the communication information is acquired, key information of the different histories is extracted, the key information of each category of history information is unique, and the key information is loaded into a module a and a module B;
introducing a distributed memory database as a data persistence layer, wherein the distributed database has the characteristics of high concurrency, low delay and quick response, combines in a KEY field KEY-binary string VALUE mode, combines a unique keyword as a KEY, stores the whole ticket as a VALUE, and adds a state identifier STATUS for identifying the current message circulation position;
the distributed message middleware KAFKA is introduced for storing and transmitting the unique keyword information, and the KAFKA has the characteristics of ensuring the sequence, being highly expandable and recoverable, so that the messages can be quickly transmitted and the sequential processing of the messages can be ensured;
the module A is an upstream module of the online charging system, after the upstream module receives the communication information, the upstream module firstly classifies the communication information, extracts the KEY field of the communication information according to the category and the KEY information, writes the extracted KEY field KEY into the KEY field of the memory database, writes the VALUE and STATUS of the communication information into the VALUE field of the memory database, writes the KEY field KEY into KAFKA and transmits the KEY field KEY to the module B;
the module B is a downstream module of the online charging system, after the downstream module receives the message trigger of KAFKA,
after receiving the trigger of the KAFKA message, the downstream message acquires a KEY field KEY of the communication information, goes to the distributed memory bank to acquire a VALUE field, analyzes and generates a reply message, and updates the memory database according to the message state after the reply message is completed;
and simultaneously replying the message, extracting a KEY field KEY according to the KEY information and generating a VALUE field to be stored in the memory database for being called by the module A.
The present invention also provides a system 200 for communication information delivery, as shown in fig. 3, comprising:
the configuration module 201 is used for classifying the historical communication information and determining each type of historical communication information and key information of reply information of the historical communication information;
the information receiving module 202 is configured to receive the communication information, extract a key field of the communication information according to the key information, write the key field of the communication information into the information middleware, store the key field of the communication information and the communication information processed in a preset manner into the memory database, obtain the key field of the reply information in the information middleware, call the reply information in the memory database according to the key field of the reply information, and feed back the communication information;
the information processing module 203 acquires the key field of the communication information in the information middleware, calls the communication information in the memory database according to the communication key field, generates reply information of the communication information according to the communication information, extracts the key field of the reply information according to the key information, writes the key field of the reply information into the information middleware, and stores the key field of the reply information and the reply information processed in a preset manner into the memory database.
The preset mode specifically comprises the following steps: and converting the communication information or the reply information into a binary string, and combining the binary string and the information state.
An information state comprising: an information unprocessed state and an information processed state;
combining the information unprocessed state and the binary string of the communication information;
and combining the information processed state and the binary string of the reply information, and combining the communication information with the information processed state after the reply information of the communication information is fed back.
An in-memory database comprising:
the key word field is used for storing the key field of the communication information and the key field of the reply information;
and the binary string field of the communication information and the reply information stores the communication information processed in a preset mode and the reply information processed in the preset mode.
The information receiving module 202 determines that the message is abnormal when the received communication information cannot extract the key field of the communication information according to the key information.
Compared with the prior art, the invention has the beneficial effects that:
the invention rearranges and organizes the communication information through the message middleware and the memory database, thereby achieving the purposes of accurately circulating the communication messages, avoiding the inaccuracy of the communication message charging, reducing the message length in network interaction, achieving the quick transmission and interaction of the communication messages and avoiding the waste of resources caused by processing abnormal messages in time.
The above is only a preferred embodiment of the present invention, and is not intended to limit the present invention, and various modifications and changes will occur to those skilled in the art. Any modification, equivalent replacement, or improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims (8)

1. A method for communication information transfer between a module a and a module B, the method comprising:
classifying historical communication information, determining key information of each type of historical communication information and reply information of the historical communication information, and loading the key information into the module A and the module B;
the module A receives communication information, classifies the communication information, extracts a key field of the communication information according to the category and the key information, writes the key field extracted by the communication information into the key field and information middleware of a memory database, and writes a binary string VALUE converted from the communication information and a state identifier STATUS of the information state into the VALUE field of the memory database; the memory database is combined in a KEY field KEY-binary string VALUE mode, the only KEY field is used as the KEY, and the whole ticket is stored as the VALUE; the information state comprises an information unprocessed state and an information processed state;
the module B acquires a key field of communication information in the information middleware, calls a VALUE field in the memory database according to the key field of communication, generates reply information of the communication information according to the communication information in the VALUE field, and updates the information state of the VALUE field in the memory database after the reply information is completed; extracting a key field of the reply information according to the key information, writing the key field of the reply information into the key field and an information middleware of a memory database, and writing a binary string VALUE converted from the reply information and a state identifier STATUS of an information state into the VALUE field of the memory database;
and the module A acquires the key field of the reply information in the information middleware, calls the VALUE field in the memory database according to the key field of the reply information, and feeds back the communication information.
2. The method of claim 1, wherein the first and second light sources are selected from the group consisting of,
the information unprocessed state is combined with the binary string of the communication information;
and combining the information processed state with the binary string of the reply information, and combining the communication information with the information processed state after the reply information of the communication information is fed back.
3. The method of claim 1, the in-memory database, comprising:
the key word field is used for storing the key field of the communication information and the key field of the reply information;
and the binary string field of the communication information and the reply information stores the communication information processed in a preset mode and the reply information processed in the preset mode.
4. The method of claim 1, further comprising:
and when the received communication information cannot extract the key field of the communication information according to the key information, feeding back information abnormality to the communication information.
5. A system for communication information transfer between a module a and a module B, the system comprising:
the configuration module is used for classifying the historical communication information, determining key information of each type of historical communication information and reply information of the historical communication information, and loading the key information into the module A and the module B;
the module A receives communication information, classifies the communication information, extracts a key field of the communication information according to the category and the key information, writes the key field extracted by the communication information into the key field and information middleware of the memory database, and writes a binary string VALUE converted from the communication information and a state identifier STATUS of the information state into the VALUE field of the memory database; acquiring a key field of reply information in the information middleware, calling a VALUE field in a memory database according to the key field of the reply information, and feeding back communication information; the memory database is combined in a KEY field KEY-binary string VALUE mode, the only KEY field is used as the KEY, the whole ticket is stored as the VALUE, and the information state comprises an information unprocessed state and an information processed state;
the module B is used for acquiring a key field of communication information in the information middleware, calling a VALUE field in the memory database according to the key field of communication, generating reply information of the communication information according to the communication information in the VALUE field, and updating the information state of the VALUE field in the memory database after the reply information is completed; and extracting a key field of the reply information according to the key information, writing the key field of the reply information into the key field and an information middleware of the memory database, and writing a binary string VALUE converted from the reply information and a state identifier STATUS of the information state into the VALUE field of the memory database.
6. The system of claim 5, the unprocessed state of information being combined with a binary string of communicated information;
and combining the information processed state with the binary string of the reply information, and combining the communication information with the information processed state after the reply information of the communication information is fed back.
7. The system of claim 5, the in-memory database, comprising:
the key word field is used for storing the key field of the communication information and the key field of the reply information;
and the binary string field of the communication information and the reply information stores the communication information processed in a preset mode and the reply information processed in the preset mode.
8. The system of claim 5, wherein the module a is further configured to determine that the feedback information is abnormal when the received communication information fails to extract the key field of the communication information according to the key information.
CN202010319204.7A 2020-04-21 2020-04-21 Method and system for communication information transmission Active CN111541824B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010319204.7A CN111541824B (en) 2020-04-21 2020-04-21 Method and system for communication information transmission

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010319204.7A CN111541824B (en) 2020-04-21 2020-04-21 Method and system for communication information transmission

Publications (2)

Publication Number Publication Date
CN111541824A CN111541824A (en) 2020-08-14
CN111541824B true CN111541824B (en) 2021-11-26

Family

ID=71976976

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010319204.7A Active CN111541824B (en) 2020-04-21 2020-04-21 Method and system for communication information transmission

Country Status (1)

Country Link
CN (1) CN111541824B (en)

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106055630A (en) * 2016-05-27 2016-10-26 北京小米移动软件有限公司 Log storage method and device
CN106293968A (en) * 2016-08-04 2017-01-04 华中科技大学 A kind of intercommunication system based on Kafka message-oriented middleware and method
CN106357761A (en) * 2016-09-13 2017-01-25 中国电子科技集团公司第三十二研究所 Distributed message communication middleware implementation software system based on real-time operating system
CN107015872A (en) * 2016-12-09 2017-08-04 上海壹账通金融科技有限公司 The processing method and processing device of monitoring data
CN107122252A (en) * 2017-04-21 2017-09-01 京东方科技集团股份有限公司 A kind of interactive method between systems and device
CN109002484A (en) * 2018-06-25 2018-12-14 北京明朝万达科技股份有限公司 A kind of method and system for sequence consumption data
CN110633320A (en) * 2018-05-30 2019-12-31 北京京东尚科信息技术有限公司 Processing method, system, equipment and storage medium of distributed data service
CN110688228A (en) * 2019-10-09 2020-01-14 北京思特奇信息技术股份有限公司 Method, system and electronic equipment for guaranteeing distributed system message time sequence
CN111026725A (en) * 2019-10-21 2020-04-17 北京奇艺世纪科技有限公司 Data processing method and device for consumption data, computer equipment and storage medium

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9558020B2 (en) * 2014-09-17 2017-01-31 International Business Machines Corporation Method of processing javascript (JS) API requests
CN106503468A (en) * 2016-11-05 2017-03-15 深圳市前海安测信息技术有限公司 Electronic health record analysis system and method for the medical information based on coupling keyword
CN106992886A (en) * 2017-04-05 2017-07-28 国家电网公司 A kind of log analysis method and device based on distributed storage
CN109600375B (en) * 2018-12-13 2021-07-16 锐捷网络股份有限公司 Message tracking method and device, electronic equipment and storage medium

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106055630A (en) * 2016-05-27 2016-10-26 北京小米移动软件有限公司 Log storage method and device
CN106293968A (en) * 2016-08-04 2017-01-04 华中科技大学 A kind of intercommunication system based on Kafka message-oriented middleware and method
CN106357761A (en) * 2016-09-13 2017-01-25 中国电子科技集团公司第三十二研究所 Distributed message communication middleware implementation software system based on real-time operating system
CN107015872A (en) * 2016-12-09 2017-08-04 上海壹账通金融科技有限公司 The processing method and processing device of monitoring data
CN107122252A (en) * 2017-04-21 2017-09-01 京东方科技集团股份有限公司 A kind of interactive method between systems and device
CN110633320A (en) * 2018-05-30 2019-12-31 北京京东尚科信息技术有限公司 Processing method, system, equipment and storage medium of distributed data service
CN109002484A (en) * 2018-06-25 2018-12-14 北京明朝万达科技股份有限公司 A kind of method and system for sequence consumption data
CN110688228A (en) * 2019-10-09 2020-01-14 北京思特奇信息技术股份有限公司 Method, system and electronic equipment for guaranteeing distributed system message time sequence
CN111026725A (en) * 2019-10-21 2020-04-17 北京奇艺世纪科技有限公司 Data processing method and device for consumption data, computer equipment and storage medium

Also Published As

Publication number Publication date
CN111541824A (en) 2020-08-14

Similar Documents

Publication Publication Date Title
CN109451072A (en) A kind of message caching system and method based on Kafka
CN108769099B (en) Message de-duplication realization method of message middleware
CN107908680A (en) Management method, electronic device and the computer-readable recording medium of wechat public platform
CN112507029A (en) Data processing system and data real-time processing method
US20110219083A1 (en) Email auto-filing and management
CN112396462B (en) Crowd circling method and device based on click house
CN111209126A (en) Data transmission method and device between microservices and electronic equipment
CN108255621A (en) A kind of MySQL incremental message analytic methods based on binlog
CN111460038A (en) Quasi-real-time data synchronization method and device
CN114490723A (en) Unified retrieval method, device, electronic equipment and storage medium
CN113127564B (en) Parameter synchronization method and device
CN111541824B (en) Method and system for communication information transmission
CN113687958A (en) Data processing method, system, computer device and storage medium
CN116258469B (en) Service data processing method, system, equipment and medium based on communication software
CN113342865A (en) Reimbursement bill examination and approval query method and system
CN111401819A (en) Intersystem data pushing method and system
CN112307126B (en) Batch processing method and system for credit card account management data
CN116089454B (en) Dynamic log analysis method and system
CN116644039B (en) Automatic acquisition and analysis method for online capacity operation log based on big data
CN114265903B (en) Data collection and distribution system and working method
CN114611712B (en) Prediction method based on heterogeneous federated learning, model generation method and device
CN116756243A (en) Data synchronization method, device, equipment, medium and product in financial business system
CN109241007B (en) System and method for preprocessing email big data in network environment
CN117171122A (en) Aggregation management system for log files
CN1276893A (en) Atlribute driven message management device and method

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