CN109302436A - Train gateway forwards tactics configuring method and device - Google Patents

Train gateway forwards tactics configuring method and device Download PDF

Info

Publication number
CN109302436A
CN109302436A CN201710612535.8A CN201710612535A CN109302436A CN 109302436 A CN109302436 A CN 109302436A CN 201710612535 A CN201710612535 A CN 201710612535A CN 109302436 A CN109302436 A CN 109302436A
Authority
CN
China
Prior art keywords
information
message
train
gateway
message 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.)
Granted
Application number
CN201710612535.8A
Other languages
Chinese (zh)
Other versions
CN109302436B (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.)
BYD Co Ltd
Original Assignee
BYD 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 BYD Co Ltd filed Critical BYD Co Ltd
Priority to CN201710612535.8A priority Critical patent/CN109302436B/en
Publication of CN109302436A publication Critical patent/CN109302436A/en
Application granted granted Critical
Publication of CN109302436B publication Critical patent/CN109302436B/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/12Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks
    • 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/40Bus networks
    • H04L12/40052High-speed IEEE 1394 serial bus
    • H04L12/40078Bus configuration
    • 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
    • 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/40Bus networks
    • H04L2012/40208Bus networks characterized by the use of a particular bus standard
    • H04L2012/40215Controller Area Network CAN

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)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The present invention proposes a kind of train gateway forwards tactics configuring method and device, wherein method includes: the CAN message forwarding request for receiving the online control area net(CAN) CAN module of train groups and sending, including: CAN message information, destination address information and corresponding forward rule information;The mark of CAN message information is carried in CAN message information;By the mark of CAN message information and the storage of corresponding forward rule information into the forward rule table of the corresponding train gateway of source address information of CAN message information;And the ether network packet for carrying the source address information of CAN message forwarding request and CAN message information is sent to each train gateway on train backbone network, so that each train gateway is updated the forward rule table of itself according to the forward-path of CAN message information, it is adjusted so as to the forwarding strategy to each train gateway and does not need to update gateway program or a liter version is carried out to gateway, be conducive to version pipe control, the management cost for reducing train gateway, improves the efficiency of management.

Description

Train gateway forwards tactics configuring method and device
Technical field
The present invention relates to networked control system of the train technical field more particularly to a kind of train gateway forwards tactics configuring method and Device.
Background technique
It is increasing for the demand of train with the fast development of track industry, also more become abundant to the marshalling of train, There are single-unit vehicle group, two section vehicle groups, four section vehicle groups, eight section vehicle groups, even 16 section vehicle groups, and the compartment number of every section vehicle group There are many types.
Currently, the gateway type of train industry is relatively more, function is irregular, mainly there is WTB-MVB, ETH-MVB, ETH- CAN etc., there are also a series of hybrid combining class gateways, but above-mentioned gateway can only realize fixed forwarding capability, such as need to change corresponding Forwarding strategy, gateway program must be updated or rise version again, be unfavorable for version pipe control in this way, also not smart enoughization, improve The management cost of train gateway, reduces the efficiency of management of train gateway.
Summary of the invention
The present invention is directed to solve at least some of the technical problems in related technologies.
For this purpose, it is an object of the invention to propose a kind of train gateway forwards tactics configuring method and device, for solving Change forwarding strategy in the prior art to need to update gateway program or rise version, caused by management cost it is high, the efficiency of management is low Problem.
In order to achieve the above object, the first aspect of the invention is to provide a kind of train gateway forwards tactics configuring method, packet It includes:
It receives the CAN message that the online control area net(CAN) CAN module of train groups is sent and forwards request, the CAN message forwarding It include: CAN message information, the destination address information of the CAN message information and corresponding forward rule information in request;Institute State the mark that the CAN message information is carried in CAN message information;
The mark of the CAN message information and corresponding forward rule information are stored to the CAN message information In the forward rule table of the corresponding train gateway of source address information;
The ether network packet of the source address information of the CAN message forwarding request and the CAN message information will be carried The each train gateway being sent on train backbone network, so that source address of the train gateway according to the CAN message information Information, destination address information and train network topology information table judge whether wrap in the forward-path of the CAN message information Itself train gateway is included, if including itself train gateway in the forward-path of the CAN message information, by the CAN message The mark of information and the storage of corresponding forward rule information are into the forward rule table of itself train gateway.
Train gateway forwards tactics configuring method provided in this embodiment, by receiving the online control area net(CAN) of train groups The CAN message that CAN module is sent forwards request, includes: CAN message information, CAN message information in CAN message forwarding request Destination address information and corresponding forward rule information;The mark of CAN message information is carried in CAN message information;CAN is reported The mark of literary information and corresponding forward rule information store the corresponding train of source address information to the CAN message information In the forward rule table of gateway;And the Ethernet of the source address information of CAN message forwarding request and CAN message information will be carried Message is sent to each train gateway on train backbone network so that train gateway according to the source address information of CAN message information, Whether destination address information and train network topology information table judge in the forward-path of CAN message information to include itself train Gateway turns the mark of CAN message information and the storage of corresponding forward rule information to itself train gateway if including It sends out in rule list, be adjusted so as to the forwarding strategy to each gateway of train and do not need to update gateway program or to net It puts row into and rises version, be conducive to version pipe control, reduce the management cost of train gateway, improve the efficiency of management of train gateway.
In order to achieve the above object, the second aspect of the invention is to provide a kind of train gateway forwards strategy configuration device, packet It includes:
Receiving module, the CAN message forwarding request sent for receiving the online control area net(CAN) CAN module of train groups, institute Stating in CAN message forwarding request includes: CAN message information, the destination address information of the CAN message information and corresponding turn Send out Rule Information;The mark of the CAN message information is carried in the CAN message information;
Memory module, for storing the mark of the CAN message information and corresponding forward rule information to described In the forward rule table of the corresponding train gateway of the source address information of CAN message information;
Sending module, for the source address information of the CAN message forwarding request and the CAN message information will to be carried Ether network packet be sent to each train gateway on train backbone network so that the train gateway is according to the CAN message Source address information, destination address information and the train network topology information table of information judge the forwarding of the CAN message information It whether include itself train gateway in path, it, will if in the forward-path of the CAN message information including itself train gateway The mark of the CAN message information and the storage of corresponding forward rule information are into the forward rule table of itself train gateway.
Train gateway forwards strategy configuration device provided in this embodiment, by receiving the online control area net(CAN) of train groups The CAN message that CAN module is sent forwards request, includes: CAN message information, CAN message information in CAN message forwarding request Destination address information and corresponding forward rule information;The mark of CAN message information is carried in CAN message information;CAN is reported The mark of literary information and corresponding forward rule information store the corresponding train of source address information to the CAN message information In the forward rule table of gateway;And the Ethernet of the source address information of CAN message forwarding request and CAN message information will be carried Message is sent to each train gateway on train backbone network so that train gateway according to the source address information of CAN message information, Whether destination address information and train network topology information table judge in the forward-path of CAN message information to include itself train Gateway turns the mark of CAN message information and the storage of corresponding forward rule information to itself train gateway if including It sends out in rule list, be adjusted so as to the forwarding strategy to each gateway of train and do not need to update gateway program or to net It puts row into and rises version, be conducive to version pipe control, reduce the management cost of train gateway, improve the efficiency of management of train gateway.
In order to achieve the above object, the third aspect of the invention is to provide a kind of train gateway forwards strategy configuration device, packet Include: memory, processor and storage are on a memory and the computer program that can run on a processor, which is characterized in that institute It states when processor executes described program and realizes train gateway forwards tactics configuring method as described above.
In order to achieve the above object, the fourth aspect of the invention is to provide a kind of computer readable storage medium, store thereon There is computer program, which realizes train gateway forwards tactics configuring method as described above when being executed by processor.
In order to achieve the above object, the fifth aspect of the invention is to provide a kind of computer program product, when the computer When instruction processing unit in program product executes, a kind of train gateway forwards tactics configuring method is executed, which comprises
It receives the CAN message that the online control area net(CAN) CAN module of train groups is sent and forwards request, the CAN message forwarding It include: CAN message information, the destination address information of the CAN message information and corresponding forward rule information in request;Institute State the mark that the CAN message information is carried in CAN message information;
The mark of the CAN message information and corresponding forward rule information are stored to the CAN message information In the forward rule table of the corresponding train gateway of source address information;
The ether network packet of the source address information of the CAN message forwarding request and the CAN message information will be carried The each train gateway being sent on train backbone network, so that source address of the train gateway according to the CAN message information Information, destination address information and train network topology information table judge whether wrap in the forward-path of the CAN message information Itself train gateway is included, if including itself train gateway in the forward-path of the CAN message information, by the CAN message The mark of information and the storage of corresponding forward rule information are into the forward rule table of itself train gateway.
The additional aspect of the present invention and advantage will be set forth in part in the description, and will partially become from the following description Obviously, or practice through the invention is recognized.
Detailed description of the invention
Above-mentioned and/or additional aspect and advantage of the invention will become from the following description of the accompanying drawings of embodiments Obviously and it is readily appreciated that, in which:
Fig. 1 is the flow diagram for the train gateway forwards tactics configuring method that one embodiment of the invention proposes;
Fig. 2 is the flow diagram for the train gateway forwards tactics configuring method that another embodiment of the present invention proposes;
Fig. 3 is the structural schematic diagram for the train gateway forwards strategy configuration device that one embodiment of the invention proposes;
Fig. 4 is the structural schematic diagram for the train gateway forwards strategy configuration device that another embodiment of the present invention proposes;
Fig. 5 is the structural schematic diagram for the train gateway forwards strategy configuration device that another embodiment of the present invention proposes;
Fig. 6 is the structural schematic diagram for the train gateway forwards strategy configuration device that another embodiment of the present invention proposes.
Specific embodiment
The embodiment of the present invention is described below in detail, examples of the embodiments are shown in the accompanying drawings, wherein from beginning to end Same or similar label indicates same or similar element or element with the same or similar functions.Below with reference to attached The embodiment of figure description is exemplary, it is intended to is used to explain the present invention, and is not considered as limiting the invention.On the contrary, The embodiment of the present invention includes all changes fallen within the scope of the spiritual and intension of attached claims, modification and is equal Object.
Fig. 1 is the flow diagram for the train gateway forwards tactics configuring method that one embodiment of the invention proposes.
As shown in Figure 1, the train gateway forwards tactics configuring method the following steps are included:
S101, the CAN message forwarding request that the online control area net(CAN) CAN module of train groups is sent, CAN message forwarding are received It include: CAN message information, the destination address information of CAN message information and corresponding forward rule information in request;CAN report The mark of CAN message information is carried in literary information.
The executing subject of train gateway forwards tactics configuring method provided by the invention is the configuration of train gateway forwards strategy Device, train gateway forwards strategy configuration device are specifically as follows the corresponding networking train gateway of control area net(CAN) CAN module.This In embodiment, train gateway forwards strategy configuration device is specifically as follows the corresponding train gateway of source address information, the train net It closes request and the CAN message information of the control area net(CAN) CAN module of the train gateway is sent to the corresponding column of destination address information Vehicle gateway, or it is sent to the control area net(CAN) CAN module of the corresponding train gateway of destination address information.
In the present embodiment, train can be made of one or more train groups, and each train groups are by a section or more piece compartment Node composition.The present embodiment is suitable for the more pieces train such as single-unit or binodal, four sections, eight sections, 16 sections, for every section train groups Compartment number of nodes is also without limitation.Train network topology is based on Train Communication Network (Train Communication Network, TCN) two layers of hierarchical organization network, wherein two-tier network is respectively train backbone network (Train Backbone ) and ad-hoc network (Consist Network) Network.
The train network topology that the present invention is applicable in, is based on using Ethernet as backbone network and with controller local area network (Controller Area Network, CAN) be ad-hoc network train network topology, while be also applied for be with Ethernet The train network topology of the mixed networking network of backbone network, CAN and Ethernet.Corresponding, train gateway can be Ethernet With the gateway of CAN, wherein may include multichannel CAN network as ad-hoc network, or comprising more using Ethernet as backbone network Road CAN network and multichannel ethernet subnet are as ad-hoc network.
Wherein, train gateway may include train network topology information table, mainly include train backbone network information and train Ad-hoc network information.The train groups number and corresponding compartment node that the train backbone network information includes by current train Number, the group netting index of each compartment node of the train networking network information by current train comprising each train groups, group Net type.
In the present embodiment, control area net(CAN) CAN module is specifically as follows certain road ad-hoc network of some compartment node of train In product module.Control area net(CAN) CAN module can customize CAN message forwarding request according to the demand of itself.In addition, CAN Message forwarding request a point multiframe can be sent in the form of CAN message group.Wherein, message group mainly includes the following letter in table 1 Breath:
Table 1
Wherein, in above-mentioned table, ID is the frame identification information in message information, the i.e. mark of CAN message information.In above-mentioned table Check code be according to CAN message information, the destination address information of CAN message information and corresponding forward rule information carry out The check code generated after verification.
With train for two train groups, every section train groups are to be illustrated for three section compartment nodes, two train groups difference For train groups A and train groups B, compartment node is respectively A1, A2, A3 and B1, B2, B3.There are three CAN respectively for each compartment node Networking, difference CAN1, CAN2 and CAN3, first the first compartment of train groups node is A1CAN1, A1CAN2 and A1CAN3.
For example, the mark of the CAN message information increased newly in CAN module can be 0x223;Frame type in CAN message information For standard frame, data frame;Forward rule information is period forwarding, and wherein the period is 100ms.Wherein, which can be located at First the first compartment of train groups node CAN1 group is online, as A1CAN1, and the destination address information of forwarding is the second train groups the Two compartment node CAN2 networkings, as B2CAN2.
S102, the mark of CAN message information and corresponding forward rule information are stored to the source of CAN message information In the forward rule table of the corresponding train gateway of location information.
In the present embodiment, the train gateway has been pre-saved in the corresponding forward rule table of networking train gateway and has needed to forward CAN message information mark and corresponding forward rule information.
S103, the ether network packet for carrying the source address information of CAN message forwarding request and CAN message information is sent To each train gateway on train backbone network, so that source address information of the train gateway according to CAN message information, destination address Information and train network topology information table judge in the forward-path of CAN message information whether to include itself train gateway, if Include itself train gateway in the forward-path of CAN message information, then advises the mark of CAN message information and corresponding forwarding Then information storage is into the forward rule table of itself train gateway.
Wherein, the source address information of CAN message information can be as shown in the following Table 2:
Table 2
In addition, if in the forward-path of CAN message information not including itself train gateway, train gateway not to it is above-mentioned with Too network packet is handled.
Further, on the basis of embodiment shown in Fig. 1, the method can also include: judgement after step 103 Whether message forwarding request confirmation information that each train gateway return is received;If receiving the report that each train gateway returns Text forwarding request confirmation information, it is determined that CAN message forwarding request is sent successfully;If not receiving what each train gateway returned Message forwards request confirmation information, it is determined that CAN message forwarding request sends failure.
Train gateway forwards tactics configuring method provided in this embodiment, by receiving the online control area net(CAN) of train groups The CAN message that CAN module is sent forwards request, includes: CAN message information, CAN message information in CAN message forwarding request Destination address information and corresponding forward rule information;The mark of CAN message information is carried in CAN message information;CAN is reported The mark of literary information and corresponding forward rule information store the corresponding train gateway of source address information to CAN message information Forward rule table in;And the ether network packet of the source address information of CAN message forwarding request and CAN message information will be carried The each train gateway being sent on train backbone network, so that source address information, purpose of the train gateway according to CAN message information Whether address information and train network topology information table judge in the forward-path of CAN message information to include itself train net It closes, if including, the mark of CAN message information and the storage of corresponding forward rule information is arrived to the forwarding of itself train gateway In rule list, it is adjusted so as to the forwarding strategy to each gateway of train and does not need to update gateway program or to gateway A liter version is carried out, version pipe control is conducive to, reduces the management cost of train gateway, improves the efficiency of management of train gateway.
Fig. 2 is the flow diagram for the train gateway forwards tactics configuring method that another embodiment of the present invention proposes, such as Fig. 2 It is shown, on the basis of embodiment shown in Fig. 1, in CAN message forwarding request further include: information checking code.
Corresponding, before step 102, the method can also include:
S104, to CAN message information, the destination address information of CAN message information and corresponding forward rule information into Row verification generates local check code.
S105, judge whether local check code and information checking code are consistent.
If S106, local check code and information checking code are inconsistent, it is determined that CAN message forwarding request sends failure.
In addition, networking train gateway can send to CAN module and prompt if local check code and information checking code are inconsistent Information prompts CAN module to retransmit CAN message forwarding request.If local check code is consistent with information checking code, continue to hold Row step 103.
Train gateway forwards tactics configuring method provided in this embodiment, by receiving the online control area net(CAN) of train groups The CAN message that CAN module is sent forwards request, includes: CAN message information, CAN message information in CAN message forwarding request Destination address information, corresponding forward rule information and information checking code;CAN message information is carried in CAN message information Mark;CAN message information, the destination address information of CAN message information and corresponding forward rule information are verified, it is raw At local check code;Judge whether local check code and information checking code are consistent;If local check code is consistent with information checking code, It is then that the source address information of the mark of CAN message information and the storage of corresponding forward rule information to CAN message information is corresponding Train gateway forward rule table in;And the source address information of CAN message forwarding request and CAN message information will be carried Ether network packet is sent to each train gateway on train backbone network, so that train gateway is according to the source of CAN message information Location information, destination address information and train network topology information table judge in the forward-path of CAN message information whether include The mark of CAN message information and the storage of corresponding forward rule information are arrived itself train if including by itself train gateway In the forward rule table of gateway, it is adjusted so as to the forwarding strategy to each gateway of train and does not need to update gateway program Or a liter version is carried out to gateway, be conducive to version pipe control, reduce the management cost of train gateway, improves the pipe of train gateway Manage efficiency.
Fig. 3 is the structural schematic diagram for the train gateway forwards strategy configuration device that one embodiment of the invention proposes, such as Fig. 3 institute Show, comprising: receiving module 31, memory module 32 and sending module 33.
Wherein, receiving module 31, the CAN message forwarding sent for receiving the online control area net(CAN) CAN module of train groups Request, include: in the CAN message forwarding request CAN message information, the destination address information of the CAN message information and Corresponding forward rule information;The mark of the CAN message information is carried in the CAN message information;
Memory module 32, for storing the mark of the CAN message information and corresponding forward rule information to CAN In the forward rule table of the corresponding train gateway of the source address information of message information;
Sending module 33, for the source address letter of the CAN message forwarding request and the CAN message information will to be carried The ether network packet of breath is sent to each train gateway on train backbone network, so that the train gateway is reported according to the CAN Source address information, destination address information and the train network topology information table of literary information judge turning for the CAN message information Whether send out in path includes itself train gateway, if in the forward-path of the CAN message information including itself train gateway, The mark of the CAN message information and the storage of corresponding forward rule information are arrived to the forward rule table of itself train gateway In.
It is corresponding that train gateway forwards strategy configuration device provided by the invention is specifically as follows control area net(CAN) CAN module Networking train gateway.In the present embodiment, train gateway forwards strategy configuration device is specifically as follows the corresponding column of source address information The CAN message information of the control area net(CAN) CAN module of the train gateway is sent to destination by vehicle gateway, the train gateway requests The corresponding train gateway of location information, or it is sent to the control area net(CAN) CAN module of the corresponding train gateway of destination address information.
The train network topology that the present invention is applicable in, is based on using Ethernet as backbone network and with controller local area network (Controller Area Network, CAN) be ad-hoc network train network topology, while be also applied for be with Ethernet The train network topology of the mixed networking network of backbone network, CAN and Ethernet.Corresponding, train gateway can be Ethernet With the gateway of CAN, wherein may include multichannel CAN network as ad-hoc network, or comprising more using Ethernet as backbone network Road CAN network and multichannel ethernet subnet are as ad-hoc network.
Wherein, train gateway may include train network topology information table, mainly include train backbone network information and train Ad-hoc network information.The train groups number and corresponding compartment node that the train backbone network information includes by current train Number, the group netting index of each compartment node of the train networking network information by current train comprising each train groups, group Net type.
In the present embodiment, control area net(CAN) CAN module is specifically as follows certain road ad-hoc network of some compartment node of train In product module.Control area net(CAN) CAN module can customize CAN message forwarding request according to the demand of itself.In addition, CAN Message forwarding request a point multiframe can be sent in the form of CAN message group.
With train for two train groups, every section train groups are to be illustrated for three section compartment nodes, two train groups difference For train groups A and train groups B, compartment node is respectively A1, A2, A3 and B1, B2, B3.There are three CAN respectively for each compartment node Networking, difference CAN1, CAN2 and CAN3, first the first compartment of train groups node is A1CAN1, A1CAN2 and A1CAN3.
For example, the mark of the CAN message information increased newly in CAN module can be 0x223;Frame type in CAN message information For standard frame, data frame;Forward rule information is period forwarding, and wherein the period is 100ms.Wherein, which can be located at First the first compartment of train groups node CAN1 group is online, as A1CAN1, and the destination address information of forwarding is the second train groups the Two compartment node CAN2 networkings, as B2CAN2.
Train gateway forwards strategy configuration device provided in this embodiment, by receiving the online control area net(CAN) of train groups The CAN message that CAN module is sent forwards request, includes: CAN message information, CAN message information in CAN message forwarding request Destination address information and corresponding forward rule information;The mark of CAN message information is carried in CAN message information;CAN is reported The mark of literary information and corresponding forward rule information store the corresponding train gateway of source address information to CAN message information Forward rule table in;And the ether network packet of the source address information of CAN message forwarding request and CAN message information will be carried The each train gateway being sent on train backbone network, so that source address information, purpose of the train gateway according to CAN message information Whether address information and train network topology information table judge in the forward-path of CAN message information to include itself train net It closes, if including, the mark of CAN message information and the storage of corresponding forward rule information is arrived to the forwarding of itself train gateway In rule list, it is adjusted so as to the forwarding strategy to each gateway of train and does not need to update gateway program or to gateway A liter version is carried out, version pipe control is conducive to, reduces the management cost of train gateway, improves the efficiency of management of train gateway.
Further, in conjunction with reference Fig. 4, on the basis of embodiment shown in Fig. 3, in the CAN message forwarding request also It include: information checking code.Corresponding, described device further include: correction verification module 34, first judgment module 35 and first determine mould Block 36.
Wherein, correction verification module 34, for the destination address information to the CAN message information, the CAN message information with And corresponding forward rule information is verified, and local check code is generated;
First judgment module 35, for judging whether the local check code and the information checking code are consistent;
First determining module 36, described in determining when the local check code and the information checking code are inconsistent CAN message forwarding request sends failure.
In addition, networking train gateway can send to CAN module and prompt if local check code and information checking code are inconsistent Information prompts CAN module to retransmit CAN message forwarding request.
Train gateway forwards strategy configuration device provided in this embodiment, by receiving the online control area net(CAN) of train groups The CAN message that CAN module is sent forwards request, includes: CAN message information, CAN message information in CAN message forwarding request Destination address information, corresponding forward rule information and information checking code;CAN message information is carried in CAN message information Mark;CAN message information, the destination address information of CAN message information and corresponding forward rule information are verified, it is raw At local check code;Judge whether local check code and information checking code are consistent;If local check code is consistent with information checking code, It is then that the source address information of the mark of CAN message information and the storage of corresponding forward rule information to CAN message information is corresponding Train gateway forward rule table in;And the source address information of CAN message forwarding request and CAN message information will be carried Ether network packet is sent to each train gateway on train backbone network, so that train gateway is according to the source of CAN message information Location information, destination address information and train network topology information table judge in the forward-path of CAN message information whether include The mark of CAN message information and the storage of corresponding forward rule information are arrived itself train if including by itself train gateway In the forward rule table of gateway, it is adjusted so as to the forwarding strategy to each gateway of train and does not need to update gateway program Or a liter version is carried out to gateway, be conducive to version pipe control, reduce the management cost of train gateway, improves the pipe of train gateway Manage efficiency.
Further, in conjunction with reference Fig. 5, on the basis of embodiment shown in Fig. 3, the device further include: second sentences Disconnected module 37 and the second determining module 38.
Wherein, the second judgment module 37, for judging whether that receiving the message that each train gateway returns forwards Request confirmation information;
Second determining module 38, for forwarding request confirmation information in the message for receiving each train gateway return When, determine that the CAN message forwarding request is sent successfully.
Further, on the basis of embodiment shown in Fig. 5, the device can also include: third determining module, use In when not receiving the message forwarding request confirmation information that each train gateway returns, the CAN message forwarding is determined Request sends failure.
It additionally needs and is illustrated, the detailed description of each functions of modules and other parameters or information can in the present embodiment With embodiment referring to fig. 1 and fig. 2, no longer it is described in detail herein.
Fig. 6 is the structural schematic diagram of another train gateway forwards strategy configuration device provided in an embodiment of the present invention, should Train gateway forwards strategy configuration device includes:
Memory 1001, processor 1002 and it is stored in the calculating that can be run on memory 1001 and on processor 1002 Machine program.
Processor 1002 realizes the train gateway forwards strategy configuration side provided in above-described embodiment when executing described program Method.
Further, train gateway forwards strategy configuration device further include:
Communication interface 1003, for the communication between memory 1001 and processor 1002.
Memory 1001, for storing the computer program that can be run on processor 1002.
Memory 1001 may include high speed RAM memory, it is also possible to further include nonvolatile memory (non- Volatile memory), a for example, at least magnetic disk storage.
Processor 1002 realizes that train gateway forwards strategy described in above-described embodiment configures when for executing described program Method.
If memory 1001, processor 1002 and the independent realization of communication interface 1003, communication interface 1003, memory 1001 and processor 1002 can be connected with each other by bus and complete mutual communication.The bus can be industrial standard Architecture (Industry Standard Architecture, referred to as ISA) bus, external equipment interconnection (Peripheral Component, referred to as PCI) bus or extended industry-standard architecture (Extended Industry Standard Architecture, referred to as EISA) bus etc..The bus can be divided into address bus, data/address bus, control Bus processed etc..Only to be indicated with a thick line in Fig. 6, it is not intended that an only bus or a type of convenient for indicating Bus.
Optionally, in specific implementation, if memory 1001, processor 1002 and communication interface 1003, are integrated in one It is realized on block chip, then memory 1001, processor 1002 and communication interface 1003 can be completed mutual by internal interface Communication.
Processor 1002 may be a central processing unit (Central Processing Unit, referred to as CPU), or Person is specific integrated circuit (Application Specific Integrated Circuit, referred to as ASIC) or quilt It is configured to implement one or more integrated circuits of the embodiment of the present invention.
The present embodiment also provides a kind of computer readable storage medium, is stored thereon with computer program, which is characterized in that The program realizes train gateway forwards tactics configuring method as described above when being executed by processor.
The present embodiment also provides a kind of computer program product, when the instruction processing unit in the computer program product is held When row, a kind of train gateway forwards tactics configuring method is executed, comprising:
It receives the CAN message that the online control area net(CAN) CAN module of train groups is sent and forwards request, the CAN message forwarding It include: CAN message information, the destination address information of the CAN message information and corresponding forward rule information in request;Institute State the mark that the CAN message information is carried in CAN message information;
To the source of CAN message information by the mark of the CAN message information and the storage of corresponding forward rule information In the forward rule table of the corresponding train gateway of location information;
The ether network packet of the source address information of the CAN message forwarding request and the CAN message information will be carried The each train gateway being sent on train backbone network, so that source address of the train gateway according to the CAN message information Information, destination address information and train network topology information table judge whether wrap in the forward-path of the CAN message information Itself train gateway is included, if including itself train gateway in the forward-path of the CAN message information, by the CAN message The mark of information and the storage of corresponding forward rule information are into the forward rule table of itself train gateway.
In the description of this specification, reference term " one embodiment ", " some embodiments ", " example ", " specifically show The description of example " or " some examples " etc. means specific features, structure, material or spy described in conjunction with this embodiment or example Point is included at least one embodiment or example of the invention.In the present specification, schematic expression of the above terms are not It must be directed to identical embodiment or example.Moreover, particular features, structures, materials, or characteristics described can be in office It can be combined in any suitable manner in one or more embodiment or examples.In addition, without conflicting with each other, the skill of this field Art personnel can tie the feature of different embodiments or examples described in this specification and different embodiments or examples It closes and combines.
In addition, term " first ", " second " are used for descriptive purposes only and cannot be understood as indicating or suggesting relative importance Or implicitly indicate the quantity of indicated technical characteristic.Define " first " as a result, the feature of " second " can be expressed or Implicitly include at least one this feature.In the description of the present invention, the meaning of " plurality " is at least two, such as two, three It is a etc., unless otherwise specifically defined.
Any process described otherwise above or method description are construed as in flow chart or herein, and expression includes It is one or more for realizing custom logic function or process the step of executable instruction code module, segment or portion Point, and the range of the preferred embodiment of the present invention includes other realization, wherein can not press shown or discussed suitable Sequence, including according to related function by it is basic simultaneously in the way of or in the opposite order, to execute function, this should be of the invention Embodiment person of ordinary skill in the field understood.
Expression or logic and/or step described otherwise above herein in flow charts, for example, being considered use In the order list for the executable instruction for realizing logic function, may be embodied in any computer-readable medium, for Instruction execution system, device or equipment (such as computer based system, including the system of processor or other can be held from instruction The instruction fetch of row system, device or equipment and the system executed instruction) it uses, or combine these instruction execution systems, device or set It is standby and use.For the purpose of this specification, " computer-readable medium ", which can be, any may include, stores, communicates, propagates or pass Defeated program is for instruction execution system, device or equipment or the dress used in conjunction with these instruction execution systems, device or equipment It sets.The more specific example (non-exhaustive list) of computer-readable medium include the following: there is the electricity of one or more wirings Interconnecting piece (electronic device), portable computer diskette box (magnetic device), random access memory (RAM), read-only memory (ROM), erasable edit read-only storage (EPROM or flash memory), fiber device and portable optic disk is read-only deposits Reservoir (CDROM).In addition, computer-readable medium can even is that the paper that can print described program on it or other are suitable Medium, because can then be edited, be interpreted or when necessary with it for example by carrying out optical scanner to paper or other media His suitable method is handled electronically to obtain described program, is then stored in computer storage.
It should be appreciated that each section of the invention can be realized with hardware, software, firmware or their combination.Above-mentioned In embodiment, software that multiple steps or method can be executed in memory and by suitable instruction execution system with storage Or firmware is realized.Such as, if realized with hardware in another embodiment, following skill well known in the art can be used Any one of art or their combination are realized: have for data-signal is realized the logic gates of logic function from Logic circuit is dissipated, the specific integrated circuit with suitable combinational logic gate circuit, programmable gate array (PGA), scene can compile Journey gate array (FPGA) etc..
Those skilled in the art are understood that realize all or part of step that above-described embodiment method carries It suddenly is that relevant hardware can be instructed to complete by program, the program can store in a kind of computer-readable storage medium In matter, which when being executed, includes the steps that one or a combination set of embodiment of the method.
It, can also be in addition, each functional unit in each embodiment of the present invention can integrate in a processing module It is that each unit physically exists alone, can also be integrated in two or more units in a module.Above-mentioned integrated mould Block both can take the form of hardware realization, can also be realized in the form of software function module.The integrated module is such as Fruit is realized and when sold or used as an independent product in the form of software function module, also can store in a computer In read/write memory medium.
Storage medium mentioned above can be read-only memory, disk or CD etc..Although having been shown and retouching above The embodiment of the present invention is stated, it is to be understood that above-described embodiment is exemplary, and should not be understood as to limit of the invention System, those skilled in the art can be changed above-described embodiment, modify, replace and become within the scope of the invention Type.

Claims (11)

1. a kind of train gateway forwards tactics configuring method characterized by comprising
It receives the CAN message that the online control area net(CAN) CAN module of train groups is sent and forwards request, the CAN message forwarding request In include: CAN message information, the destination address information of the CAN message information and corresponding forward rule information;It is described The mark of the CAN message information is carried in CAN message information;
To the source of the CAN message information by the mark of the CAN message information and the storage of corresponding forward rule information In the forward rule table of the corresponding train gateway of location information;
The ether network packet for carrying the source address information of the CAN message forwarding request and the CAN message information is sent To each train gateway on train backbone network so that the train gateway according to the source address information of the CAN message information, Whether destination address information and train network topology information table judge in the forward-path of the CAN message information to include itself Train gateway, if including itself train gateway in the forward-path of the CAN message information, by the CAN message information Mark and the storage of corresponding forward rule information are into the forward rule table of itself train gateway.
2. the method according to claim 1, wherein in CAN message forwarding request further include: information checking Code;
It is described to store the mark of the CAN message information and corresponding forward rule information to the CAN message information Before in the forward rule table of the corresponding train gateway of source address information, further includes:
Destination address information and corresponding forward rule information to the CAN message information, the CAN message information carry out Verification generates local check code;
Judge whether the local check code and the information checking code are consistent;
If the local check code and the information checking code are inconsistent, it is determined that the CAN message forwarding request sends failure.
3. the method according to claim 1, wherein described will carry the CAN message forwarding request and institute The ether network packet for stating the source address information of CAN message information is sent to after each train gateway on train backbone network, also Include:
Judge whether to receive the message forwarding request confirmation information that each train gateway returns;
If receiving the message forwarding request confirmation information that each train gateway returns, it is determined that the CAN message forwarding Request is sent successfully.
4. according to the method described in claim 3, it is characterized in that, described will carry the CAN message forwarding request and institute The ether network packet for stating the source address information of CAN message information is sent to after each train gateway on train backbone network, also Include:
If not receiving the message forwarding request confirmation information that each train gateway returns, it is determined that the CAN message turns Hair request sends failure.
5. the method according to claim 1, wherein the forward rule information includes: forwarding type, forwarding week Phase and each hop count.
6. a kind of train gateway forwards strategy configuration device characterized by comprising
Receiving module, the CAN message forwarding request sent for receiving the online control area net(CAN) CAN module of train groups, the CAN It include: CAN message information, the destination address information of the CAN message information and corresponding forwarding rule in message forwarding request Then information;The mark of the CAN message information is carried in the CAN message information;
Memory module, for reporting the mark of the CAN message information and the storage of corresponding forward rule information to the CAN In the forward rule table of the corresponding train gateway of the source address information of literary information;
Sending module, for will carry CAN message forwarding request and the CAN message information source address information with Too network packet is sent to each train gateway on train backbone network, so that the train gateway is according to the CAN message information Source address information, destination address information and train network topology information table judge the forward-path of the CAN message information In whether include itself train gateway, will be described if in the forward-path of the CAN message information including itself train gateway The mark of CAN message information and the storage of corresponding forward rule information are into the forward rule table of itself train gateway.
7. device according to claim 6, which is characterized in that in the CAN message forwarding request further include: information checking Code;
Corresponding, described device further include:
Correction verification module, for the CAN message information, the CAN message information destination address information and corresponding turn Hair Rule Information is verified, and local check code is generated;
First judgment module, for judging whether the local check code and the information checking code are consistent;
First determining module, for determining the CAN message when the local check code and the information checking code are inconsistent Forwarding request sends failure.
8. device according to claim 6, which is characterized in that further include:
Second judgment module, for judging whether that receiving the message forwarding request confirmation that each train gateway returns believes Breath;
Second determining module, when for forwarding request confirmation information in the message for receiving each train gateway return, really The fixed CAN message forwarding request is sent successfully.
9. a kind of train gateway forwards strategy configuration device characterized by comprising memory, processor and be stored in storage On device and the computer program that can run on a processor, which is characterized in that the processor is realized such as when executing described program Train gateway forwards tactics configuring method as claimed in any one of claims 1 to 5.
10. a kind of computer readable storage medium, is stored thereon with computer program, which is characterized in that the program is by processor Such as train gateway forwards tactics configuring method as claimed in any one of claims 1 to 5 is realized when execution.
11. a kind of computer program product executes a kind of column when the instruction processing unit in the computer program product executes Vehicle gateway forwards tactics configuring method, which comprises
It receives the CAN message that the online control area net(CAN) CAN module of train groups is sent and forwards request, the CAN message forwarding request In include: CAN message information, the destination address information of the CAN message information and corresponding forward rule information;It is described The mark of the CAN message information is carried in CAN message information;
To the source of the CAN message information by the mark of the CAN message information and the storage of corresponding forward rule information In the forward rule table of the corresponding train gateway of location information;
The ether network packet for carrying the source address information of the CAN message forwarding request and the CAN message information is sent To each train gateway on train backbone network so that the train gateway according to the source address information of the CAN message information, Whether destination address information and train network topology information table judge in the forward-path of the CAN message information to include itself Train gateway, if including itself train gateway in the forward-path of the CAN message information, by the CAN message information Mark and the storage of corresponding forward rule information are into the forward rule table of itself train gateway.
CN201710612535.8A 2017-07-25 2017-07-25 Train gateway forwarding strategy configuration method and device Active CN109302436B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710612535.8A CN109302436B (en) 2017-07-25 2017-07-25 Train gateway forwarding strategy configuration method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710612535.8A CN109302436B (en) 2017-07-25 2017-07-25 Train gateway forwarding strategy configuration method and device

Publications (2)

Publication Number Publication Date
CN109302436A true CN109302436A (en) 2019-02-01
CN109302436B CN109302436B (en) 2020-11-06

Family

ID=65167224

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710612535.8A Active CN109302436B (en) 2017-07-25 2017-07-25 Train gateway forwarding strategy configuration method and device

Country Status (1)

Country Link
CN (1) CN109302436B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113067760A (en) * 2021-03-10 2021-07-02 深圳市智莱科技股份有限公司 Communication method, system, equipment and storage medium of power transformation cabinet
CN115022225A (en) * 2022-05-31 2022-09-06 东风电驱动系统有限公司 Message forwarding method, device, equipment and readable storage medium
CN115277289A (en) * 2022-06-27 2022-11-01 重庆长安汽车股份有限公司 Automobile bus message data routing system, method and readable storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1513242A (en) * 2001-06-01 2004-07-14 System and method for building routing tables and for routing signals in automatic system
CN1633107A (en) * 2004-12-17 2005-06-29 中国科学院计算技术研究所 A method of Internet domain name access based on on-demand routing in self-organized network
CN101599923A (en) * 2008-06-06 2009-12-09 比亚迪股份有限公司 A kind of automobile gateway system and control method thereof
US20100246563A1 (en) * 2003-06-20 2010-09-30 Sony Corporation Wireless communication method and apparatus thereof
CN101888338A (en) * 2010-07-01 2010-11-17 中兴通讯股份有限公司 Information forwarding method and gateway
CN104125152A (en) * 2013-04-23 2014-10-29 浙江大学 Vehicle-mounted gateway-based method for improving vehicle-mounted network reliability

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1513242A (en) * 2001-06-01 2004-07-14 System and method for building routing tables and for routing signals in automatic system
US20100246563A1 (en) * 2003-06-20 2010-09-30 Sony Corporation Wireless communication method and apparatus thereof
CN1633107A (en) * 2004-12-17 2005-06-29 中国科学院计算技术研究所 A method of Internet domain name access based on on-demand routing in self-organized network
CN101599923A (en) * 2008-06-06 2009-12-09 比亚迪股份有限公司 A kind of automobile gateway system and control method thereof
CN101888338A (en) * 2010-07-01 2010-11-17 中兴通讯股份有限公司 Information forwarding method and gateway
CN104125152A (en) * 2013-04-23 2014-10-29 浙江大学 Vehicle-mounted gateway-based method for improving vehicle-mounted network reliability

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113067760A (en) * 2021-03-10 2021-07-02 深圳市智莱科技股份有限公司 Communication method, system, equipment and storage medium of power transformation cabinet
CN115022225A (en) * 2022-05-31 2022-09-06 东风电驱动系统有限公司 Message forwarding method, device, equipment and readable storage medium
CN115022225B (en) * 2022-05-31 2023-11-10 东风电驱动系统有限公司 Message forwarding method, device, equipment and readable storage medium
CN115277289A (en) * 2022-06-27 2022-11-01 重庆长安汽车股份有限公司 Automobile bus message data routing system, method and readable storage medium

Also Published As

Publication number Publication date
CN109302436B (en) 2020-11-06

Similar Documents

Publication Publication Date Title
CN105765926B (en) Configurable service broker's mapping method, device and storage medium
CN109383527B (en) Train marshalling list method, marshalling controller and train
CN102204188B (en) Routing computation method and host node device in virtual network element
CN101842779B (en) Bandwidth admission control on link aggregation groups
CN109302436A (en) Train gateway forwards tactics configuring method and device
CN101536427B (en) Link aggregation
TW201038016A (en) Routing method and repair method of routing path in wireless network environment
CN109905251A (en) Network management, device, electronic equipment and storage medium
CN107404436A (en) Communication means and device for virtual expansible LAN
CN107864094A (en) A kind of traffic routing method, device and machinable medium
CN104579966B (en) Method, forward node and the controller that forwarding-table item generates
CN108965134B (en) Message forwarding method and device
CN109688214A (en) Data transmission method, device and storage medium
CN105991435A (en) Method and apparatus of acquiring port path
JP2007251828A (en) In-vehicle database system
CN107453895A (en) Method for flow communication path in Configuration network
CN106713130A (en) Routing table updating method, EVPN control equipment and EVPN system
CN105471599A (en) Protection switching method and network device
CN107896188A (en) Data forwarding method and device
CN107196793A (en) IPTV group network systems, the first forwarding unit and access point apparatus
CN109302347A (en) Train gateway forwards tactics configuring method and device
CN103200095B (en) A kind of across SPB network access achieving method and equipment
CN107332793A (en) A kind of message forwarding method, relevant device and system
CN106921575A (en) For the devices, systems and methods for preventing multicast service from abandoning
CN108092914A (en) Network traffic load equalization scheduling method and device

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