WO2020207105A1 - Procédé et appareil de détermination de message de destination, support de stockage et appareil électronique - Google Patents
Procédé et appareil de détermination de message de destination, support de stockage et appareil électronique Download PDFInfo
- Publication number
- WO2020207105A1 WO2020207105A1 PCT/CN2020/074225 CN2020074225W WO2020207105A1 WO 2020207105 A1 WO2020207105 A1 WO 2020207105A1 CN 2020074225 W CN2020074225 W CN 2020074225W WO 2020207105 A1 WO2020207105 A1 WO 2020207105A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- message
- conversion
- data model
- conversion template
- general data
- 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.)
- Ceased
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F17/00—Digital computing or data processing equipment or methods, specially adapted for specific functions
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F40/00—Handling natural language data
- G06F40/10—Text processing
- G06F40/166—Editing, e.g. inserting or deleting
- G06F40/186—Templates
Definitions
- the present disclosure relates to the field of computers, and in particular to a method and device for determining a target message, a storage medium, and an electronic device.
- SDN Software Defined Network
- the core component is the controller.
- the controllers are developed by different manufacturers, and network technology is also evolving improperly.
- the message conversion is completely implemented by hard coding at the service level, which leads to a large workload and can only be applied in a small range. There is no effective solution at present.
- the embodiments of the present disclosure provide a method and device for determining a target message, a storage medium, and an electronic device to solve the problem that the message conversion in the related technology is completely implemented by hard coding at the service level, which results in a large workload and can only be applied in a small range And other issues.
- a method for determining a destination message including: obtaining a data message of business data, and parsing the data message into a general data model; and according to the data message to be converted Select the conversion template corresponding to the destination message; process the general data model according to the conversion template to obtain the destination message.
- a controller including: an acquisition module configured to acquire a data message of service data; an analysis module configured to parse the data message into a general data model; selection The module is set to select the conversion template corresponding to the destination message according to the destination message to be converted by the data message; the determining module is set to process the general data model according to the conversion template to obtain the The stated message.
- a storage medium in which a computer program is stored, wherein the computer program is configured to execute the steps in any one of the above method embodiments when running.
- an electronic device including a memory and a processor, the memory stores a computer program, and the processor is configured to run the computer program to execute any one of the foregoing Steps in the method embodiment.
- the acquired data message can be parsed into a general data model, and the general data model can be processed according to the conversion template corresponding to the target message to obtain the target message.
- the above technical solution is adopted to solve the related technology.
- the message conversion is completely implemented by hard coding at the service level, which leads to problems such as a large workload and can only be applied in a small range.
- the embodiments of the present disclosure provide a simple message conversion method with a simple process and a small workload in the conversion process.
- FIG. 1 is a hardware structure block diagram of a controller of a method for determining a destination message according to an embodiment of the present disclosure
- FIG. 2 is a flowchart of a method for determining a destination message according to an embodiment of the present disclosure
- Fig. 3 is a structural block diagram of a controller according to an embodiment of the present disclosure.
- FIG. 4 is a schematic diagram of processing of an SDN controller according to an embodiment of the present disclosure.
- Fig. 5 is a schematic diagram of processing of message conversion according to an embodiment of the present disclosure.
- FIG. 1 is a hardware structure block diagram of a controller of a method for determining a destination message in an embodiment of the present disclosure.
- the controller 10 may include one or more (only one is shown in FIG. 1) processor 102 (the processor 102 may include, but is not limited to, a processing device such as a microprocessor MCU or a programmable logic device FPGA. ) And a memory 104 for storing data.
- the aforementioned terminal may also include a transmission device 106 and an input/output device 108 for communication functions.
- the structure shown in FIG. 1 is only for illustration, and does not limit the structure of the foregoing terminal.
- the controller 10 may also include more or fewer components than those shown in FIG. 1, or have a different configuration with equivalent functions or more functions than those shown in FIG. 1.
- the memory 104 may be used to store computer programs, for example, software programs and modules of application software, such as the computer programs corresponding to the navigation method of online car-hailing in the embodiments of the present disclosure.
- the processor 102 runs the computer programs stored in the memory 104, Thereby, various functional applications and data processing are executed, that is, the above-mentioned method is realized.
- the memory 104 may include a high-speed random access memory, and may also include a non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory.
- the memory 104 may further include a memory remotely provided with respect to the processor 102, and these remote memories may be connected to the controller 10 through a network. Examples of the aforementioned networks include, but are not limited to, the Internet, corporate intranets, local area networks, mobile communication networks, and combinations thereof.
- the transmission device 106 is used to receive or send data via a network.
- the aforementioned specific example of the network may include a wireless network provided by the communication provider of the controller 10.
- the transmission device 106 includes a network adapter (Network Interface Controller, NIC for short), which can be connected to other network devices through a base station to communicate with the Internet.
- the transmission device 106 may be a radio frequency (Radio Frequency, referred to as RF) module, which is used to communicate with the Internet in a wireless manner.
- RF Radio Frequency
- FIG. 2 is a flowchart of the method for determining a target message according to an embodiment of the present disclosure. As shown in FIG. 2, the process includes the following step:
- Step S202 Obtain a data message of business data, and parse the data message into a general data model
- Step S204 selecting a conversion template corresponding to the destination message according to the destination message to be converted in the data message
- the conversion template includes at least one of the following grammars: conversion grammar, loop grammar, and conditional derivation grammar.
- Step S206 Process the general data model according to the conversion template to obtain the destination message.
- the obtained data message can be parsed into a general data model, and the general data model can be processed according to the conversion template corresponding to the target message to obtain the target message.
- the above technical solution is adopted to solve the problem in related technologies.
- the message conversion is completely implemented by hard coding at the service level, which leads to problems such as heavy workload and limited application in a small range.
- the embodiments of the present disclosure provide a simple message conversion method, the process is simple, and the workload of the conversion process is small. .
- the following technical solution is provided: calling the function set in the conversion template, and processing the general data model according to the called function to obtain The destination message also uses a function to execute the above conversion template processing process, which speeds up the conversion.
- the specific implementation process of S206 may be: replacing the placeholders in the conversion template with the data of the general data model Analyze and process the conversion template containing the general data model to obtain the target message, which is not limited in the embodiment of the present disclosure.
- the method further includes: verifying the selected conversion template, wherein, after the verification is passed, according to The conversion template processes the general data model to obtain the destination message.
- a simple method for converting templates is provided, and the conversion between different message protocols can be quickly realized with minimal intrusion to the original system, and the development workload of the conversion is small.
- the process is simple, and in actual projects, whether it is an old system or a newly developed system, the black box of the module can be realized, which solves the problem of system protocol compatibility.
- the implementation module applying the above method for determining the objective message may be deployed at the northbound entrance or the southbound exit of the controller.
- the message is processed first, and then a suitable conversion template is selected according to the target.
- the data equivalent to the data message obtained in step S202 of the foregoing embodiment
- the conversion template the message protocol can be converted.
- Step 1 Intercept the message receiving and sending points of the original system, analyze the message structure, and enable the message parsing module. If it is Xml, enable the Xml parsing module, if it is Json, enable the Json parsing module, if it is Yaml, enable the Yaml parsing module, as shown in Figure 5.
- Step 2 After parsing the above message, no matter which format it is, it will be parsed into a general data model. And call the data processing module to process the data: reconstruct existing data, delete unnecessary data, and supplement insufficient data. The data from the source of the shareholding is sufficient, and the data processing process of step 2 is not necessary.
- Step 3 Select the corresponding conversion template according to the message target and message type. If there is no syntax error after the conversion template is verified, the conversion can be performed in combination with the data. During the conversion, the control statement of the conversion template is analyzed and processed.
- Step 4 After completing the control analysis of the conversion template, replace the placeholders in the conversion template with the data in the general data model, and export the target message as the final result message. Send the result message to the target system.
- the method according to the above embodiment can be implemented by means of software plus the necessary general hardware platform, of course, it can also be implemented by hardware, but in many cases the former is Better implementation.
- the technical solution of the present disclosure essentially or the part that contributes to the existing technology can be embodied in the form of a software product, and the computer software product is stored in a storage medium (such as ROM/RAM, magnetic disk, The optical disc) includes several instructions to enable a terminal device (which can be a mobile phone, a computer, a server, or a network device, etc.) to execute the method described in each embodiment of the present disclosure.
- a controller is also provided, and the controller is used to implement the above-mentioned embodiments and preferred implementation manners, and what has been described will not be repeated.
- the term "module” can implement a combination of software and/or hardware with predetermined functions.
- the devices described in the following embodiments are preferably implemented by software, hardware or a combination of software and hardware is also possible and conceived.
- Fig. 3 is a structural block diagram of a controller according to an embodiment of the present disclosure, as shown in Fig. 3, including:
- the obtaining module 30 is set to obtain a data message of business data
- the parsing module 32 is configured to parse the data message into a general data model
- the selection module 34 is configured to select a conversion template corresponding to the destination message according to the destination message to be converted in the data message;
- the determining module 36 is configured to process the general data model according to the conversion template to obtain the destination message.
- the obtained data message can be parsed into a general data model, and the general data model can be processed according to the conversion template corresponding to the target message to obtain the target message.
- the above technical solution is adopted to solve the problem in related technologies.
- the message conversion is completely implemented by hard coding at the service level, which leads to problems such as heavy workload and limited application in a small range.
- the embodiments of the present disclosure provide a simple message conversion method, the process is simple, and the workload of the conversion process is small. .
- the conversion template includes at least one of the following grammars: conversion grammar, loop grammar, and conditional derivation grammar.
- the determining module 36 is further configured to call a function set in the conversion template, and process the general data model according to the called function to obtain the target message.
- FIG. 4 is a processing schematic diagram of the SDN controller according to an embodiment of the present disclosure. Based on FIG. 4, the following technical solutions are also provided in the embodiment of the present disclosure.
- the source message It is the collection point that receives the source message data, because the format of the source message may be: xml, json, Yaml, or even Java Bean. After receiving the above messages, they are all converted into a general data model, that is, a tree-like structure model, or other structure models. The embodiment of the present disclosure does not limit this, and this model structure can fully express the meaning of the original business data .
- the source message may be in the following format:
- Data Process Manager It is a sub-process of data processing customized by the business module and optimized based on the data module (Data Module). This module does not have to be provided. Only when the source protocol data model and the target model are significantly different, manual coding is required for processing. During development, plug-ins should be developed in accordance with the specifications of this disclosure, and the system of this disclosure can automatically manage and schedule data processing modules. After the above source message is processed, the general data model structure is as follows:
- Template Manager It is equivalent to the core component in Figure 4. Template management is the core processing component that implements the conversion of different protocols. Use text editing to directly edit the target format to be converted, which can be xml, json or Yaml. Use placeholders to replace key data output positions, like the following:
- $ ⁇ ... ⁇ is a placeholder for data variables
- $ ⁇ pseudowire.name ⁇ is the PW:HL5_HL4-1 in the tree model above.
- ⁇ #...> is the conversion syntax
- ⁇ #list...> is the loop, which can be used to export the data of the loop structure.
- ⁇ #if...> is a conditional export, which supports export according to certain conditions.
- ⁇ #include...> is a nested template, which can better manage templates.
- Function Manager In order to better support template conversion, the present disclosure supports calling functions during template conversion. To make more complex format conversion simple, the function in the template is similar to the $ ⁇ to_service_endpoint() ⁇ in the above example, which functionalizes the complex conversion process and simplifies the template design.
- each of the above modules can be implemented by software or hardware.
- it can be implemented in the following manner, but not limited to this: the above modules are all located in the same processor; or, the above modules are combined in any combination The forms are located in different processors.
- the embodiment of the present disclosure also provides a storage medium in which a computer program is stored, wherein the computer program is configured to execute the steps in any of the foregoing method embodiments when running.
- the foregoing storage medium may be configured to store a computer program for executing the following steps:
- S3 Process the general data model according to the conversion template to obtain the destination message.
- the foregoing storage medium may include, but is not limited to: U disk, Read-Only Memory (Read-Only Memory, ROM for short), Random Access Memory (Random Access Memory, RAM for short), Various media that can store computer programs, such as mobile hard disks, magnetic disks, or optical disks.
- An embodiment of the present disclosure also provides an electronic device, including a memory and a processor, the memory stores a computer program, and the processor is configured to run the computer program to execute the steps in any one of the foregoing method embodiments.
- the aforementioned electronic device may further include a transmission device and an input-output device, wherein the transmission device is connected to the aforementioned processor, and the input-output device is connected to the aforementioned processor.
- the foregoing processor may be configured to execute the following steps through a computer program:
- S5 Select a conversion template corresponding to the destination packet according to the destination packet to be converted in the data packet;
- modules or steps of the present disclosure can be implemented by a general computing device, and they can be concentrated on a single computing device or distributed in a network composed of multiple computing devices.
- they can be implemented with program codes executable by the computing device, so that they can be stored in the storage device for execution by the computing device, and in some cases, can be executed in a different order than here.
- the obtained data message can be parsed into a general data model, and the general data model can be processed according to the conversion template corresponding to the target message to obtain the target message.
- the above technical solution is adopted to solve the problem in related technologies.
- the message conversion is completely implemented by hard coding at the service level, which leads to problems such as heavy workload and limited application in a small range.
- the embodiments of the present disclosure provide a simple message conversion method, the process is simple, and the workload of the conversion process is small. .
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- Computational Linguistics (AREA)
- General Health & Medical Sciences (AREA)
- Health & Medical Sciences (AREA)
- Audiology, Speech & Language Pathology (AREA)
- Artificial Intelligence (AREA)
- Data Mining & Analysis (AREA)
- Databases & Information Systems (AREA)
- Mathematical Physics (AREA)
- Software Systems (AREA)
- Information Transfer Between Computers (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
La présente invention concerne un procédé et un appareil de détermination de message de destination, un support de stockage et un appareil électronique. Le procédé comprend les étapes consistant à : acquérir un message de données comprenant des données de service et analyser le message de données pour obtenir un modèle de données universel (S202) ; sélectionner, selon un message de destination dans lequel le message de données doit être converti, un modèle de conversion correspondant au message de destination (S204) ; et traiter, selon le modèle de conversion, le modèle de données universel pour obtenir le message de destination (S206). Le procédé permet de résoudre les problèmes posés par l'état de la technique associé, à savoir une charge de travail élevée et l'application du procédé à uniquement une petite plage en raison de la réalisation complète de la conversion de message par un codage dur de niveau de service.
Applications Claiming Priority (2)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201910286488.1A CN111832273A (zh) | 2019-04-10 | 2019-04-10 | 目的报文的确定方法及装置、存储介质、电子装置 |
| CN201910286488.1 | 2019-04-10 |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| WO2020207105A1 true WO2020207105A1 (fr) | 2020-10-15 |
Family
ID=72750597
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| PCT/CN2020/074225 Ceased WO2020207105A1 (fr) | 2019-04-10 | 2020-02-03 | Procédé et appareil de détermination de message de destination, support de stockage et appareil électronique |
Country Status (2)
| Country | Link |
|---|---|
| CN (1) | CN111832273A (fr) |
| WO (1) | WO2020207105A1 (fr) |
Families Citing this family (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN113612862B (zh) * | 2021-10-09 | 2021-12-21 | 树根互联股份有限公司 | 物联网数据报文的转换方法、装置和电子设备 |
| CN114020965A (zh) * | 2021-11-05 | 2022-02-08 | 光大科技有限公司 | 数据转换方法、装置及存储介质 |
| CN114741082A (zh) * | 2022-04-21 | 2022-07-12 | 光大科技有限公司 | Yaml文件的转换方法及装置 |
| CN115103034B (zh) * | 2022-06-27 | 2024-12-10 | 京东科技信息技术有限公司 | 一种报文协议转换的方法和装置 |
Citations (6)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN104378298A (zh) * | 2013-08-16 | 2015-02-25 | 中兴通讯股份有限公司 | 一种流表条目生成方法及相应设备 |
| CN105516196A (zh) * | 2016-01-19 | 2016-04-20 | 国家计算机网络与信息安全管理中心江苏分中心 | 基于http报文数据的并行化网络异常检测方法与系统 |
| CN106068628A (zh) * | 2014-03-17 | 2016-11-02 | 华为技术有限公司 | 用于管理用于配置网络的策略和/或资源的装置和方法 |
| CN106100996A (zh) * | 2016-05-30 | 2016-11-09 | 上海斐讯数据通信技术有限公司 | 基于软件定义网络的交换机、控制器及检查系统 |
| CN107453884A (zh) * | 2016-05-30 | 2017-12-08 | 华为技术有限公司 | 一种网络设备的服务质量检测方法和装置 |
| CN108989066A (zh) * | 2017-05-31 | 2018-12-11 | 中兴通讯股份有限公司 | 设备管理方法及装置 |
Family Cites Families (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN108183892B (zh) * | 2017-12-22 | 2021-08-06 | 新华三大数据技术有限公司 | 报文处理方法及装置 |
| CN109361628B (zh) * | 2018-10-16 | 2022-04-12 | 深圳壹账通智能科技有限公司 | 报文组装方法、装置、计算机设备和存储介质 |
| CN109561104A (zh) * | 2018-12-28 | 2019-04-02 | 深圳市创梦天地科技有限公司 | 一种通信协议转换方法及装置 |
-
2019
- 2019-04-10 CN CN201910286488.1A patent/CN111832273A/zh active Pending
-
2020
- 2020-02-03 WO PCT/CN2020/074225 patent/WO2020207105A1/fr not_active Ceased
Patent Citations (6)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN104378298A (zh) * | 2013-08-16 | 2015-02-25 | 中兴通讯股份有限公司 | 一种流表条目生成方法及相应设备 |
| CN106068628A (zh) * | 2014-03-17 | 2016-11-02 | 华为技术有限公司 | 用于管理用于配置网络的策略和/或资源的装置和方法 |
| CN105516196A (zh) * | 2016-01-19 | 2016-04-20 | 国家计算机网络与信息安全管理中心江苏分中心 | 基于http报文数据的并行化网络异常检测方法与系统 |
| CN106100996A (zh) * | 2016-05-30 | 2016-11-09 | 上海斐讯数据通信技术有限公司 | 基于软件定义网络的交换机、控制器及检查系统 |
| CN107453884A (zh) * | 2016-05-30 | 2017-12-08 | 华为技术有限公司 | 一种网络设备的服务质量检测方法和装置 |
| CN108989066A (zh) * | 2017-05-31 | 2018-12-11 | 中兴通讯股份有限公司 | 设备管理方法及装置 |
Also Published As
| Publication number | Publication date |
|---|---|
| CN111832273A (zh) | 2020-10-27 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| EP3595244B1 (fr) | Procédé, unité et système de gestion de tranche de réseau | |
| CN110474794B (zh) | 一种sdn架构的信息转换方法和系统 | |
| US20150128103A1 (en) | System and method for automating application programming interface integration | |
| US10187272B2 (en) | Interface management service entity, function service entity, and element management method | |
| WO2018006789A1 (fr) | Procédé et appareil de vérification de paramètres, serveur de gestion de réseau, et support de stockage informatique | |
| CN107222324B (zh) | 网络服务的业务配置方法和装置 | |
| CN111832273A (zh) | 目的报文的确定方法及装置、存储介质、电子装置 | |
| CN107864053B (zh) | 基于zookeeper的动态配置方法和装置 | |
| CN105577463B (zh) | 一种基于通信协议的测试方法及其装置 | |
| CN113342503B (zh) | 实时进度反馈方法、装置、设备及存储介质 | |
| US10802955B2 (en) | Test bundling and batching optimizations | |
| EP3379771B1 (fr) | Procédé, dispositif et système de traitement de messages | |
| EP4142238A1 (fr) | Procédé et appareil de configuration de pico-station de base, et support de stockage et appareil électronique | |
| CN108076017A (zh) | 一种数据包的协议解析方法及装置 | |
| CN101997721B (zh) | 一种电信网络管理系统、方法及相应的装置 | |
| CN110620754A (zh) | Nf所需资源的部署方法、装置、存储介质及电子装置 | |
| RU2604983C2 (ru) | Способ синтаксического анализа сервиса, гибко адаптированный к тегу ims системы | |
| WO2017016386A1 (fr) | Procédé et dispositif permettant de mettre en œuvre une analyse de défaillance d'unité radio distante | |
| CN106254271A (zh) | 一种用于软件定义网络的可编程队列配置方法及装置 | |
| CN106130787B (zh) | 一种基于软件定义网络的业务处理系统 | |
| CN113938391A (zh) | 一种网关设备配网方法、系统和电子设备 | |
| JP4800310B2 (ja) | リンクを伴うクライアントプロビジョニング | |
| EP3573306B1 (fr) | Procédé et dispositif de traitement de données utilisés dans un terminal client | |
| CN114285908B (zh) | 网元适配方法、装置、设备和计算机可读存储介质 | |
| CN113282862A (zh) | 网页的发布方法及装置、存储介质、电子装置 |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| 121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 20787748 Country of ref document: EP Kind code of ref document: A1 |
|
| NENP | Non-entry into the national phase |
Ref country code: DE |
|
| 32PN | Ep: public notification in the ep bulletin as address of the adressee cannot be established |
Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 07.03.2022) |
|
| 122 | Ep: pct application non-entry in european phase |
Ref document number: 20787748 Country of ref document: EP Kind code of ref document: A1 |