CN112769700B - Routing method and routing system based on application method number - Google Patents

Routing method and routing system based on application method number Download PDF

Info

Publication number
CN112769700B
CN112769700B CN202011597465.1A CN202011597465A CN112769700B CN 112769700 B CN112769700 B CN 112769700B CN 202011597465 A CN202011597465 A CN 202011597465A CN 112769700 B CN112769700 B CN 112769700B
Authority
CN
China
Prior art keywords
routing
protocol
service
interface
processing
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
CN202011597465.1A
Other languages
Chinese (zh)
Other versions
CN112769700A (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.)
Hozon New Energy Automobile Co Ltd
Original Assignee
Hozon New Energy Automobile 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 Hozon New Energy Automobile Co Ltd filed Critical Hozon New Energy Automobile Co Ltd
Priority to CN202011597465.1A priority Critical patent/CN112769700B/en
Publication of CN112769700A publication Critical patent/CN112769700A/en
Application granted granted Critical
Publication of CN112769700B publication Critical patent/CN112769700B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/74Address processing for routing
    • H04L45/745Address table lookup; Address filtering
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/46Interconnection of networks
    • H04L12/4633Interconnection of networks using encapsulation techniques, e.g. tunneling
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/14Routing performance; Theoretical aspects
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/22Parsing or analysis of headers

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Security & Cryptography (AREA)
  • Small-Scale Networks (AREA)

Abstract

The invention provides a routing method and a routing system based on application method numbering. The routing method comprises the following steps: the routing controller acquires a protocol template according to the service ID and the interface ID in the service protocol message; the routing controller calls a protocol analyzer, the protocol analyzer analyzes the service protocol message according to the protocol template, and the analysis result is packaged into a JAVA object; and the routing controller inquires a routing configuration table according to the service ID and the interface ID, acquires a route corresponding to a processing class and a method, and calls a specific application and an interface to realize route distribution.

Description

Routing method and routing system based on application method number
Technical Field
The invention relates to a vehicle networking system, in particular to a routing implementation for the vehicle networking system.
Background
The vehicle networking system comprises four parts, namely a host, a vehicle-mounted T-BOX (telematics BOX), a mobile phone end APP and a background system. The host is mainly used for video entertainment in the vehicle and vehicle information display; the vehicle-mounted T-BOX is mainly used for communicating with a background system/mobile phone end APP, and vehicle information display and control of the mobile phone end APP are achieved.
After a user sends a control command through a mobile phone end APP, a TSP (vehicle remote service provider) background sends a monitoring request command to a vehicle-mounted T-BOX, after a vehicle obtains the control command, a control message is sent through a CAN bus and control over the vehicle is achieved, and finally an operation result is fed back to the mobile phone APP of the user, so that the function CAN help the user to remotely start the vehicle, open an air conditioner, adjust a seat to a proper position and the like.
With the intelligent networking of automobiles, internet-based services such as remote vehicle control, remote vehicle configuration, vehicle state and the like have come into existence, and the functions are becoming mature and complicated. The host factory develops a communication protocol with the vehicle T-Box, and how to divide each service on the protocol is the key of the integrity of protocol encapsulation and the micro-service of each service.
Disclosure of Invention
In order to solve the problems in the prior art, the invention provides a routing method based on application method numbering. The routing method comprises the following steps:
the routing controller acquires a protocol template according to the service ID and the interface ID in the service protocol message;
the routing controller calls a protocol analyzer, the protocol analyzer analyzes the service protocol message according to the protocol template, and the analysis result is packaged into a JAVA object;
and the routing controller inquires a routing configuration table according to the service ID and the interface ID, acquires a route corresponding to a processing class and a method, and calls a specific application and an interface to realize route distribution.
In one embodiment, the routing controller instantiates the processing class and method through a reflection mechanism, sends the parsed JAVA object, and processes it.
In one embodiment, the routing configuration table defines a processing class and a processing method corresponding to each service ID and interface ID, and provides a configuration service for the routing controller reflection mechanism.
In one embodiment, the traffic protocol messages are based on the TCP protocol.
In one embodiment, the routing method is applied to communications between the vehicle T-Box and the TSP platform.
The invention also provides a routing system based on the application method number, and the routing system comprises: a routing controller, a protocol parser, and a routing configuration table. Wherein:
the routing controller acquires a protocol template according to the service ID and the interface ID in the service protocol message and calls a protocol analyzer;
the protocol analyzer analyzes the service protocol message according to the protocol template and packages the analysis result into a JAVA object;
and the routing controller inquires the routing configuration table according to the service ID and the interface ID, acquires a route corresponding to a processing class and a processing method, and calls a specific application and an interface to realize route distribution.
In one embodiment, the routing controller instantiates the processing class and method through a reflection mechanism, sends the parsed JAVA object, and processes it.
In one embodiment, the routing configuration table defines a processing class and a processing method corresponding to each service ID and interface ID, and provides a configuration service for the routing controller reflection mechanism.
In one embodiment, the traffic protocol messages are based on the TCP protocol.
In one embodiment, the routing system is applied to communications between the vehicle T-Box and the TSP platform.
Drawings
The foregoing summary, as well as the following detailed description of the invention, will be better understood when read in conjunction with the appended drawings. It is to be noted that the appended drawings are intended as examples of the claimed invention. In the drawings, like reference characters designate the same or similar elements.
Fig. 1 is a schematic diagram illustrating a processing method when a service protocol packet arrives at a route according to an embodiment of the present invention;
fig. 2 illustrates a scenario in which an on-board T-Box sends a message (i.e., an upstream message) to a TSP platform, according to an embodiment of the present invention;
figure 3 illustrates a scenario in which a TSP platform sends a message (i.e., a downstream message) to an in-vehicle T-Box, according to an embodiment of the present invention;
FIG. 4 illustrates a program fragment of an incoming version configuration item according to an embodiment of the invention;
fig. 5 is a flowchart illustrating a routing method based on application method numbers according to an embodiment of the present invention.
Detailed Description
The detailed features and advantages of the present invention are described in detail in the detailed description which follows, and will be sufficient for anyone skilled in the art to understand the technical content of the present invention and to implement the present invention, and the related objects and advantages of the present invention will be easily understood by those skilled in the art from the description, claims and drawings disclosed in the present specification.
The invention divides and configures each service and method in a mode of number (ID), and analyzes, distributes and encapsulates the service and method and the result protocol by using a JAVA reflection mechanism. Meanwhile, the invention also introduces a concept of version for simultaneously supporting and being compatible with multiple T-Box software versions.
The T-Box gateway module is connected with the platform, the communication protocol generally adopts a TCP protocol, and a service protocol message is defined on the basis of the TCP protocol.
The service protocol message contains content data, a service id (aid) and an interface id (mid).
Fig. 1 is a schematic diagram illustrating a processing method when a service protocol packet arrives at a route according to an embodiment of the present invention. The method comprises the following steps:
the routing controller acquires a protocol template according to the service ID and the interface ID; the service ID (e.g., AID A, AID B in fig. 1) corresponds to a corresponding application or service (e.g., application a, application B), and the interface ID (e.g., MID 1, MID 2 in fig. 1) corresponds to a corresponding method (e.g., interface 1, interface 2).
The routing controller calls a protocol analyzer to analyze a service protocol message (TCP message) according to a protocol template, and an analysis result is packaged into a JAVA object;
and the routing controller inquires a routing configuration table according to the service ID and the interface ID to acquire a routing processing class and a routing processing method. In the processing class and method, specific applications and interfaces are called to realize route distribution.
And the routing controller instantiates a processing class and a method through a JAVA reflection mechanism, sends the analyzed JAVA object and processes the JAVA object.
The invention also provides a routing system based on the application method number, which comprises a routing controller, a protocol resolver and a routing configuration table.
The routing controller is the core of the routing device of the invention and is used for controlling the whole life cycle of one session. According to the scene division of the platform and the vehicle T-Box communication, the communication can be divided into an uplink message and a downlink message, and the respective schemes are shown in figures 2 and 3.
Wherein fig. 2 shows a scenario where a T-Box sends a message (i.e., an upstream message) to the platform. FIG. 3 shows a scenario where the platform sends a message to the T-Box (i.e., a downstream message).
The protocol analyzer analyzes the service protocol message according to the protocol template. Specifically, each host factory defines a corresponding protocol template according to different protocol definition modes, such as protocols based on asn.1 or GOOGLE buffer, and the like. The protocol parser decodes a service protocol message (TCP message) according to a specified protocol template and encapsulates the decoded service protocol message into a JAVA object. In addition, the protocol analyzer also encodes the JAVA object to form a TCP message.
The routing configuration table defines the processing classes and methods corresponding to the service IDs (AIDs) and the interface IDs (MIDs), and provides configuration services for the controller reflection mechanism. For ease of reading and configuration, the configuration table is configured based on an XML file.
Meanwhile, in order to distinguish the T-Box software protocol versions, a version configuration item is introduced, as shown in FIG. 4.
The invention has the following beneficial technical effects:
1. the routing configuration readability is strong, the interface method level is achieved accurately, and the control is more accurate;
2. version control is introduced, so that the compatibility is stronger;
3. the embedded protocol analyzer can control the protocol analysis
4. Based on reflection generation processing class and processing method, service clustering calling can be realized by utilizing feign, rest and the like in the processing method
5. The routing system is stateless, can be transversely expanded and realizes high throughput.
Fig. 5 is a flowchart illustrating a routing method based on application method numbers according to an embodiment of the present invention. The method comprises the following steps:
step 501: the routing controller acquires a protocol template according to the service ID and the interface ID in the service protocol message;
step 502: the routing controller calls a protocol analyzer, the protocol analyzer analyzes the service protocol message according to the protocol template, and the analysis result is packaged into a JAVA object;
step 503: and the routing controller inquires a routing configuration table according to the service ID and the interface ID, acquires a route corresponding to a processing class and a method, and calls a specific application and an interface to realize route distribution.
In one embodiment, the routing controller instantiates the processing class and method through a reflection mechanism, sends the parsed JAVA object, and processes it.
In one embodiment, the routing configuration table defines a processing class and a processing method corresponding to each service ID and interface ID, and provides a configuration service for the routing controller reflection mechanism.
In one embodiment, the traffic protocol messages are based on the TCP protocol.
In one embodiment, the routing method is applied to communication between the vehicle T-Box and the TSP platform.
The invention also provides a routing system based on the application method number, and the routing system comprises: a routing controller, a protocol parser, and a routing configuration table. Wherein:
the routing controller acquires a protocol template according to the service ID and the interface ID in the service protocol message and calls a protocol analyzer;
the protocol analyzer analyzes the service protocol message according to the protocol template and packages the analysis result into a JAVA object;
and the routing controller inquires the routing configuration table according to the service ID and the interface ID, acquires a route corresponding to a processing class and a processing method, and calls a specific application and an interface to realize route distribution.
In one embodiment, the routing controller instantiates the processing class and method through a reflection mechanism, sends the parsed JAVA object, and processes it.
In one embodiment, the routing configuration table defines a processing class and a processing method corresponding to each service ID and interface ID, and provides a configuration service for the routing controller reflection mechanism.
In one embodiment, the traffic protocol message is based on the TCP protocol.
In one embodiment, the routing system is applied to communications between the vehicle T-Box and the TSP platform.
The terms and expressions which have been employed herein are used as terms of description and not of limitation. The use of such terms and expressions is not intended to exclude any equivalents of the features shown and described (or portions thereof), and it is recognized that various modifications may be made within the scope of the claims. Other modifications, variations, and alternatives are also possible. Accordingly, the claims should be looked to in order to cover all such equivalents.
Also, it should be noted that although the present invention has been described with reference to the current specific embodiments, it should be understood by those skilled in the art that the above embodiments are merely illustrative of the present invention, and various equivalent changes or substitutions may be made without departing from the spirit of the present invention, and therefore, it is intended that all changes and modifications to the above embodiments be included within the scope of the claims of the present application.

Claims (10)

1. A routing method based on application method numbering is characterized in that the method comprises the following steps:
the routing controller acquires a protocol template according to the service ID and the interface ID in the service protocol message;
the routing controller calls a protocol analyzer, the protocol analyzer analyzes the service protocol message according to the protocol template, and the analysis result is packaged into a JAVA object;
and the routing controller inquires a routing configuration table according to the service ID and the interface ID, acquires a route corresponding to a processing class and a method, and calls a specific application and an interface to realize route distribution.
2. The routing method according to claim 1, wherein the routing controller instantiates the processing class and method by a reflection mechanism, sends the parsed JAVA object for processing.
3. The routing method according to claim 1, wherein the routing configuration table defines a processing class and a processing method corresponding to each service ID and interface ID for providing configuration services for the reflection mechanism of the routing controller.
4. The application-method-number-based routing method of claim 1, wherein the traffic protocol packet is based on a TCP protocol.
5. The application-method-number-based routing method of claim 1, applied to communications between a vehicle T-Box and a TSP platform.
6. A routing system based on application method numbering, the routing system comprising:
a routing controller, a protocol parser and a routing configuration table;
the routing controller acquires a protocol template according to the service ID and the interface ID in the service protocol message and calls a protocol analyzer;
the protocol analyzer analyzes the service protocol message according to the protocol template and encapsulates the analysis result into a JAVA object;
and the routing controller inquires the routing configuration table according to the service ID and the interface ID, acquires a route corresponding to a processing class and a processing method, and calls a specific application and an interface to realize route distribution.
7. The routing system of claim 6, wherein the routing controller instantiates the processing classes and methods via a reflection mechanism, sends the parsed JAVA objects for processing.
8. The routing system of claim 6, wherein the routing configuration table defines a processing class and a method corresponding to each service ID and interface ID for providing configuration services for the routing controller reflection mechanism.
9. The application-method-number-based routing system of claim 6, wherein the traffic protocol packets are based on the TCP protocol.
10. The application-method-number-based routing system of claim 6, applied to communications between a vehicle T-Box and a TSP platform.
CN202011597465.1A 2020-12-29 2020-12-29 Routing method and routing system based on application method number Active CN112769700B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011597465.1A CN112769700B (en) 2020-12-29 2020-12-29 Routing method and routing system based on application method number

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011597465.1A CN112769700B (en) 2020-12-29 2020-12-29 Routing method and routing system based on application method number

Publications (2)

Publication Number Publication Date
CN112769700A CN112769700A (en) 2021-05-07
CN112769700B true CN112769700B (en) 2022-07-05

Family

ID=75697054

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011597465.1A Active CN112769700B (en) 2020-12-29 2020-12-29 Routing method and routing system based on application method number

Country Status (1)

Country Link
CN (1) CN112769700B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113760582B (en) * 2021-09-09 2024-05-24 北京京东振世信息技术有限公司 Document reporting method and device
US20230379391A1 (en) * 2022-05-19 2023-11-23 Oracle International Corporation Systems and methods for header processing in a server computing environment

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107645413A (en) * 2017-09-15 2018-01-30 国网山东省电力公司信息通信公司 Intelligent switched telephone network core side accesses the full-automatic configuration platform in side and method
CN107918562A (en) * 2016-10-11 2018-04-17 北京京东尚科信息技术有限公司 A kind of unified interface management method and system
CN109582472A (en) * 2018-10-19 2019-04-05 华为技术有限公司 A kind of micro services processing method and equipment
CN110083088A (en) * 2019-03-29 2019-08-02 上海赫千电子科技有限公司 Signal controls conversion equipment and signal controls conversion method
CN110460621A (en) * 2019-09-10 2019-11-15 上海怿星电子科技有限公司 A kind of industry ethernet based on SOME/IP agreement and CAN bus data transfer device and system
CN110891023A (en) * 2019-10-31 2020-03-17 上海赫千电子科技有限公司 Signal routing conversion method and device based on priority strategy
CN111026797A (en) * 2019-12-02 2020-04-17 卫盈联信息技术(深圳)有限公司 Service data processing method, server and storage medium
CN111309474A (en) * 2020-01-19 2020-06-19 北京恒华伟业科技股份有限公司 Communication method, communication device and distributed service registration center

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
DE102015215480A1 (en) * 2015-08-13 2017-02-16 Robert Bosch Gmbh Method and device for transmitting a message in a vehicle

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107918562A (en) * 2016-10-11 2018-04-17 北京京东尚科信息技术有限公司 A kind of unified interface management method and system
CN107645413A (en) * 2017-09-15 2018-01-30 国网山东省电力公司信息通信公司 Intelligent switched telephone network core side accesses the full-automatic configuration platform in side and method
CN109582472A (en) * 2018-10-19 2019-04-05 华为技术有限公司 A kind of micro services processing method and equipment
CN110083088A (en) * 2019-03-29 2019-08-02 上海赫千电子科技有限公司 Signal controls conversion equipment and signal controls conversion method
CN110460621A (en) * 2019-09-10 2019-11-15 上海怿星电子科技有限公司 A kind of industry ethernet based on SOME/IP agreement and CAN bus data transfer device and system
CN110891023A (en) * 2019-10-31 2020-03-17 上海赫千电子科技有限公司 Signal routing conversion method and device based on priority strategy
CN111026797A (en) * 2019-12-02 2020-04-17 卫盈联信息技术(深圳)有限公司 Service data processing method, server and storage medium
CN111309474A (en) * 2020-01-19 2020-06-19 北京恒华伟业科技股份有限公司 Communication method, communication device and distributed service registration center

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
SOME_IP报文格式-Message ID_思佳科技的博客-CSDN博客;思佳科技;《https://blog.csdn.net/weixin_41757621/article/details/102844198》;20191031;第1-4页 *
基于车载以太网的智能网联汽车网信安全防护技术研究;王建等;《智能网联汽车》;20200131;第1-4页 *

Also Published As

Publication number Publication date
CN112769700A (en) 2021-05-07

Similar Documents

Publication Publication Date Title
CN114553873B (en) SOA-based vehicle-cloud cooperative control system, method and readable storage medium
CN112438038B (en) Method and device for transmitting data
WO2019114732A1 (en) Method for remotely controlling vehicle on the basis of smart apparatus
CN112769700B (en) Routing method and routing system based on application method number
KR101664734B1 (en) System and method for interworking between vehicle controller and external resource
EP2571224B1 (en) Method for processing messages on m2m platform and m2m platform system
CN113037603A (en) Remote control method and device and vehicle
CN112637198B (en) Multi-protocol self-adaption module design method based on OPC UA PubSub
CN111601285B (en) Communication method, apparatus, system, and computer-readable storage medium
CN113938858B (en) Communication method of V2X protocol stack
CN113114706A (en) Multichannel Ethernet message processing method based on power chip
CN113453176A (en) Method for enabling satellite terminal to support NAS signaling to achieve 5G core network management and control
WO2012155449A1 (en) Positioning method and system
CN110166485B (en) Protocol scheduling and using method and device
CN114815782A (en) Remote diagnosis method, apparatus, device and medium
CN113595966B (en) Serial port communication control, configuration and test method, device, electronic equipment and storage medium
CN112640564A (en) Data transmission method and device
CN114915555B (en) Gateway drive communication method, device, equipment and storage medium
US20230064935A1 (en) Data transmission method, apparatus, and system
EP2876830A1 (en) Data transmission method and device
CN113543216B (en) Method, device and system for transmitting media message
CN113766458A (en) IOT-based method for realizing internet connection of vehicle-end afterloading equipment and method and system for interacting with vehicle remote control terminal
CN118317005A (en) Message conversion method, network equipment and storage medium
EP4301006A1 (en) Communication method and apparatus, and device
CN116760866A (en) Electric automobile communication method, device, equipment, system and medium

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
CP01 Change in the name or title of a patent holder
CP01 Change in the name or title of a patent holder

Address after: 314500 988 Tong Tong Road, Wu Tong Street, Tongxiang, Jiaxing, Zhejiang

Patentee after: United New Energy Automobile Co.,Ltd.

Address before: 314500 988 Tong Tong Road, Wu Tong Street, Tongxiang, Jiaxing, Zhejiang

Patentee before: Hozon New Energy Automobile Co., Ltd.

Address after: 314500 988 Tong Tong Road, Wu Tong Street, Tongxiang, Jiaxing, Zhejiang

Patentee after: Hozon New Energy Automobile Co., Ltd.

Address before: 314500 988 Tong Tong Road, Wu Tong Street, Tongxiang, Jiaxing, Zhejiang

Patentee before: Hozon New Energy Automobile Co., Ltd.