CN109302436B - Train gateway forwarding strategy configuration method and device - Google Patents

Train gateway forwarding strategy configuration method and device Download PDF

Info

Publication number
CN109302436B
CN109302436B CN201710612535.8A CN201710612535A CN109302436B CN 109302436 B CN109302436 B CN 109302436B CN 201710612535 A CN201710612535 A CN 201710612535A CN 109302436 B CN109302436 B CN 109302436B
Authority
CN
China
Prior art keywords
information
message
train
forwarding
gateway
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
CN201710612535.8A
Other languages
Chinese (zh)
Other versions
CN109302436A (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

Images

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 invention provides a train gateway forwarding strategy configuration method and a train gateway forwarding strategy configuration device, wherein the method comprises the following steps: receiving a CAN message forwarding request sent by a CAN module of a control area network on a train group, wherein the CAN message forwarding request comprises the following steps: CAN message information, destination address information and corresponding forwarding rule information; the CAN message information carries an identifier of the CAN message information; storing the identification of the CAN message information and the corresponding forwarding rule information into a forwarding rule table of the train gateway corresponding to the source address information of the CAN message information; and the Ethernet message carrying the CAN message forwarding request and the source address information of the CAN message information is sent to each train gateway on the train backbone network, so that each train gateway updates the forwarding rule table of the train gateway according to the forwarding path of the CAN message information, the forwarding strategy of each train gateway CAN be adjusted without updating a gateway program or upgrading the gateway, version control is facilitated, the management cost of the train gateway is reduced, and the management efficiency is improved.

Description

Train gateway forwarding strategy configuration method and device
Technical Field
The invention relates to the technical field of train network control, in particular to a train gateway forwarding strategy configuration method and device.
Background
With the rapid development of the rail industry, the demand on trains is getting larger and larger, the marshalling of the trains is more and more abundant, and the trains comprise a single train set, two train sets, four train sets, eight train sets and even sixteen train sets, and the number of carriages of each train set is also various.
At present, the types of gateways in the train industry are more, the functions are different, the gateways mainly comprise WTB-MVB, ETH-CAN and the like, and a series of mixed combination type gateways are also provided, but the gateways CAN only realize the fixed forwarding function, if the corresponding forwarding strategy needs to be changed, the gateway program needs to be updated or upgraded again, so that the version control is not facilitated, the intellectualization is not enough, the management cost of the train gateway is improved, and the management efficiency of the train gateway is reduced.
Disclosure of Invention
The present invention is directed to solving, at least to some extent, one of the technical problems in the related art.
Therefore, the invention aims to provide a method and a device for configuring a train gateway forwarding strategy, which are used for solving the problems of high management cost and low management efficiency caused by the fact that a gateway program needs to be updated or upgraded when the forwarding strategy is changed in the prior art.
To achieve the above object, a first aspect of the present invention provides a train gateway forwarding policy configuration method, including:
receiving a CAN message forwarding request sent by a CAN module of a control area network on a train group, wherein the CAN message forwarding request comprises: CAN message information, destination address information of the CAN message information and corresponding forwarding rule information; the CAN message information carries an identifier of the CAN message information;
storing the identification of the CAN message information and the corresponding forwarding rule information into a forwarding rule table of the train gateway corresponding to the source address information of the CAN message information;
and sending the Ethernet message carrying the CAN message forwarding request and the source address information of the CAN message information to each train gateway on a train backbone network, so that the train gateway judges whether a forwarding path of the CAN message information comprises the train gateway according to the source address information, the destination address information and a train network topology information table of the CAN message information, and if the forwarding path of the CAN message information comprises the train gateway, storing the identifier of the CAN message information and corresponding forwarding rule information into a forwarding rule table of the train gateway.
In the configuration method for the train gateway forwarding strategy provided in this embodiment, a CAN message forwarding request sent by a CAN module of a control area network on a train group is received, where the CAN message forwarding request includes: CAN message information, destination address information of the CAN message information and corresponding forwarding rule information; the CAN message information carries an identifier of the CAN message information; storing the identification of the CAN message information and the corresponding forwarding rule information into a forwarding rule table of the train gateway corresponding to the source address information of the CAN message information; and the Ethernet message carrying the CAN message forwarding request and the source address information of the CAN message information is sent to each train gateway on a train backbone network, so that the train gateway judges whether the forwarding path of the CAN message information comprises the train gateway according to the source address information, the destination address information and a train network topology information table of the CAN message information, if so, the identifier of the CAN message information and the corresponding forwarding rule information are stored in the forwarding rule table of the train gateway, thereby being capable of adjusting the forwarding strategy of each train gateway without updating a gateway program or upgrading the gateway, being beneficial to version control, reducing the management cost of the train gateway and improving the management efficiency of the train gateway.
To achieve the above object, a second aspect of the present invention provides a train gateway forwarding policy configuration apparatus, including:
the receiving module is used for receiving a CAN message forwarding request sent by a CAN module of a control area network on a train group network, wherein the CAN message forwarding request comprises: CAN message information, destination address information of the CAN message information and corresponding forwarding rule information; the CAN message information carries an identifier of the CAN message information;
the storage module is used for storing the identifier of the CAN message information and the corresponding forwarding rule information into a forwarding rule table of the train gateway corresponding to the source address information of the CAN message information;
and the sending module is used for sending the Ethernet message carrying the CAN message forwarding request and the source address information of the CAN message information to each train gateway on a train backbone network so that the train gateway judges whether the forwarding path of the CAN message information comprises the train gateway according to the source address information, the destination address information and a train network topology information table of the CAN message information, and if the forwarding path of the CAN message information comprises the train gateway, the identifier of the CAN message information and the corresponding forwarding rule information are stored in the forwarding rule table of the train gateway.
The train gateway forwarding policy configuration device provided in this embodiment receives a CAN message forwarding request sent by a CAN module of a control area network on a train group, where the CAN message forwarding request includes: CAN message information, destination address information of the CAN message information and corresponding forwarding rule information; the CAN message information carries an identifier of the CAN message information; storing the identification of the CAN message information and the corresponding forwarding rule information into a forwarding rule table of the train gateway corresponding to the source address information of the CAN message information; and the Ethernet message carrying the CAN message forwarding request and the source address information of the CAN message information is sent to each train gateway on a train backbone network, so that the train gateway judges whether the forwarding path of the CAN message information comprises the train gateway according to the source address information, the destination address information and a train network topology information table of the CAN message information, if so, the identifier of the CAN message information and the corresponding forwarding rule information are stored in the forwarding rule table of the train gateway, thereby being capable of adjusting the forwarding strategy of each train gateway without updating a gateway program or upgrading the gateway, being beneficial to version control, reducing the management cost of the train gateway and improving the management efficiency of the train gateway.
To achieve the above object, a third aspect of the present invention provides a train gateway forwarding policy configuration apparatus, including: the system comprises a memory, a processor and a computer program stored on the memory and capable of running on the processor, wherein the processor implements the train gateway forwarding strategy configuration method when executing the program.
To achieve the above object, a fourth aspect of the present invention provides a computer-readable storage medium, on which a computer program is stored, which when executed by a processor, implements the train gateway forwarding policy configuration method as described above.
To achieve the above object, a fifth aspect of the present invention provides a computer program product, wherein when executed by an instruction processor of the computer program product, the computer program product executes a method for configuring a train gateway forwarding policy, the method comprising:
receiving a CAN message forwarding request sent by a CAN module of a control area network on a train group, wherein the CAN message forwarding request comprises: CAN message information, destination address information of the CAN message information and corresponding forwarding rule information; the CAN message information carries an identifier of the CAN message information;
storing the identification of the CAN message information and the corresponding forwarding rule information into a forwarding rule table of the train gateway corresponding to the source address information of the CAN message information;
and sending the Ethernet message carrying the CAN message forwarding request and the source address information of the CAN message information to each train gateway on a train backbone network, so that the train gateway judges whether a forwarding path of the CAN message information comprises the train gateway according to the source address information, the destination address information and a train network topology information table of the CAN message information, and if the forwarding path of the CAN message information comprises the train gateway, storing the identifier of the CAN message information and corresponding forwarding rule information into a forwarding rule table of the train gateway.
Additional aspects and advantages of the invention will be set forth in part in the description which follows and, in part, will be obvious from the description, or may be learned by practice of the invention.
Drawings
The foregoing and/or additional aspects and advantages of the present invention will become apparent and readily appreciated from the following description of the embodiments, taken in conjunction with the accompanying drawings of which:
fig. 1 is a schematic flowchart of a configuration method of a train gateway forwarding policy according to an embodiment of the present invention;
fig. 2 is a schematic flowchart of a method for configuring a train gateway forwarding policy according to another embodiment of the present invention;
fig. 3 is a schematic structural diagram of a train gateway forwarding policy configuration apparatus according to an embodiment of the present invention;
fig. 4 is a schematic structural diagram of a train gateway forwarding policy configuration apparatus according to another embodiment of the present invention;
fig. 5 is a schematic structural diagram of a train gateway forwarding policy configuration apparatus according to another embodiment of the present invention;
fig. 6 is a schematic structural diagram of a train gateway forwarding policy configuration apparatus according to another embodiment of the present invention.
Detailed Description
Reference will now be made in detail to embodiments of the present invention, examples of which are illustrated in the accompanying drawings, wherein like or similar reference numerals refer to the same or similar elements or elements having the same or similar function throughout. The embodiments described below with reference to the drawings are illustrative and intended to be illustrative of the invention and are not to be construed as limiting the invention. On the contrary, the embodiments of the invention include all changes, modifications and equivalents coming within the spirit and terms of the claims appended hereto.
Fig. 1 is a schematic flowchart of a configuration method of a train gateway forwarding policy according to an embodiment of the present invention.
As shown in fig. 1, the train gateway forwarding policy configuration method includes the following steps:
s101, receiving a CAN message forwarding request sent by a CAN module of a control area network on a train set, wherein the CAN message forwarding request comprises: CAN message information, destination address information of the CAN message information and corresponding forwarding rule information; the CAN message information carries the identification of the CAN message information.
The execution main body of the train gateway forwarding strategy configuration method provided by the invention is a train gateway forwarding strategy configuration device, and the train gateway forwarding strategy configuration device CAN be specifically a networking train gateway corresponding to a control area network CAN module. In this embodiment, the train gateway forwarding policy configuration device may specifically be a train gateway corresponding to source address information, where the train gateway requests to send the CAN message information of the CAN module of the control area network of the train gateway to the train gateway corresponding to destination address information, or to send the CAN message information to the CAN module of the control area network of the train gateway corresponding to destination address information.
In this embodiment, the train may be comprised of one or more train consists, each train consist being comprised of one or more car nodes. The embodiment is suitable for single-section or double-section, four-section, eight-section, sixteen-section and other multi-section trains, and the number of the carriage nodes of each train set is also not limited. The Train Network topology is a two-layer hierarchical Network based on Train Communication Network (TCN), wherein the two layers of networks are a Train backbone Network (Train backbone Network) and a networking Network (Train Network), respectively.
The train Network topology applicable to the invention is based on the train Network topology which takes the Ethernet as a backbone Network and a Controller Area Network (CAN) as a networking Network, and is also applicable to the train Network topology which takes the Ethernet as a hybrid networking Network of the backbone Network and the CAN and the Ethernet. Correspondingly, the train gateway CAN be a gateway of ethernet and CAN, wherein the ethernet is used as a backbone network, and the train gateway CAN include multiple CAN networks as a networking network, or include multiple CAN networks and multiple ethernet subnets as a networking network.
The train gateway may include a train network topology information table, which mainly includes train backbone network information and train networking network information. The train backbone network information is the number of train groups and the number of corresponding carriage nodes contained in the current train, and the train networking network information is the networking number and the networking type of each carriage node of each train group contained in the current train.
In this embodiment, the control area network CAN module may be a product module in a certain path networking network of a certain carriage node of a train. The CAN module of the control area network CAN customize a CAN message forwarding request according to the self requirement. In addition, the CAN message forwarding request CAN be sent in a form of CAN message groups in multiple frames. The packet group mainly includes the following information in table 1:
TABLE 1
Figure BDA0001359854240000051
Figure BDA0001359854240000061
In the table, the ID is frame identification information in the message information, that is, an identifier of the CAN message information. The check code in the table is generated after the CAN message information, the destination address information of the CAN message information and the corresponding forwarding rule information are checked.
The description is given by taking the train as a two-train set, each train set is three carriage nodes, the two-train set is a train set a and a train set B, and the carriage nodes are a1, a2, A3, B1, B2 and B3. Each carriage node is respectively provided with three CAN networks, namely CAN1, CAN2 and CAN3, and the first carriage node of the first train set is A1CAN1, A1CAN2 and A1CAN 3.
For example, the identifier of the newly added CAN message information on the CAN module may be 0x 223; the frame type in the CAN message information is a standard frame and a data frame; the forwarding rule information is a periodic forwarding, wherein the period is 100 ms. The CAN module CAN be located on a first carriage node CAN1 networking of a first train set, namely A1CAN1, and the forwarded destination address information is a second carriage node CAN2 networking of a second train set, namely B2CAN 2.
S102, storing the identification of the CAN message information and the corresponding forwarding rule information into a forwarding rule table of the train gateway corresponding to the source address information of the CAN message information.
In this embodiment, the forwarding rule table corresponding to the networking train gateway pre-stores the identifier of the CAN message information that needs to be forwarded by the train gateway and the corresponding forwarding rule information.
S103, sending the Ethernet message carrying the CAN message forwarding request and the source address information of the CAN message information to each train gateway on a train backbone network, so that the train gateway judges whether the forwarding path of the CAN message information comprises the train gateway according to the source address information, the destination address information and the train network topology information table of the CAN message information, and if the forwarding path of the CAN message information comprises the train gateway, storing the identifier of the CAN message information and the corresponding forwarding rule information into the forwarding rule table of the train gateway.
The source address information of the CAN message information may be as shown in table 2 below:
TABLE 2
Figure BDA0001359854240000071
In addition, if the forwarding path of the CAN message information does not include the train gateway of the CAN message information, the train gateway does not process the ethernet message.
Further, on the basis of the embodiment shown in fig. 1, the method after step 103 may further include: judging whether message forwarding request confirmation information returned by each train gateway is received or not; if message forwarding request confirmation information returned by each train gateway is received, determining that the CAN message forwarding request is successfully sent; and if the message forwarding request confirmation information returned by each train gateway is not received, determining that the CAN message forwarding request fails to be sent.
In the configuration method for the train gateway forwarding strategy provided in this embodiment, a CAN message forwarding request sent by a CAN module of a control area network on a train group is received, where the CAN message forwarding request includes: CAN message information, destination address information of the CAN message information and corresponding forwarding rule information; the CAN message information carries an identifier of the CAN message information; storing the identification of the CAN message information and the corresponding forwarding rule information into a forwarding rule table of the train gateway corresponding to the source address information of the CAN message information; and the Ethernet message carrying the CAN message forwarding request and the source address information of the CAN message information is sent to each train gateway on a train backbone network, so that the train gateway judges whether the forwarding path of the CAN message information comprises the train gateway according to the source address information, the destination address information and a train network topology information table of the CAN message information, if so, the identifier of the CAN message information and the corresponding forwarding rule information are stored in the forwarding rule table of the train gateway, thereby being capable of adjusting the forwarding strategy of each train gateway without updating a gateway program or upgrading the gateway, being beneficial to version control, reducing the management cost of the train gateway and improving the management efficiency of the train gateway.
Fig. 2 is a schematic flow chart of a configuration method of a train gateway forwarding policy according to another embodiment of the present invention, and as shown in fig. 2, on the basis of the embodiment shown in fig. 1, a CAN message forwarding request further includes: and (5) information check codes.
Correspondingly, before step 102, the method may further include:
and S104, verifying the CAN message information, the destination address information of the CAN message information and the corresponding forwarding rule information to generate a local verification code.
And S105, judging whether the local check code is consistent with the information check code.
And S106, if the local check code is inconsistent with the information check code, determining that the transmission of the CAN message forwarding request fails.
In addition, if the local check code is inconsistent with the information check code, the networking train gateway CAN send prompt information to the CAN module to prompt the CAN module to resend the CAN message forwarding request. If the local check code is consistent with the information check code, the step 103 is continuously executed.
In the configuration method for the train gateway forwarding strategy provided in this embodiment, a CAN message forwarding request sent by a CAN module of a control area network on a train group is received, where the CAN message forwarding request includes: CAN message information, destination address information of the CAN message information, corresponding forwarding rule information and an information check code; the CAN message information carries an identifier of the CAN message information; the CAN message information, the destination address information of the CAN message information and the corresponding forwarding rule information are verified, and a local verification code is generated; judging whether the local check code is consistent with the information check code; if the local check code is consistent with the information check code, storing the identification of the CAN message information and the corresponding forwarding rule information into a forwarding rule table of the train gateway corresponding to the source address information of the CAN message information; and the Ethernet message carrying the CAN message forwarding request and the source address information of the CAN message information is sent to each train gateway on a train backbone network, so that the train gateway judges whether the forwarding path of the CAN message information comprises the train gateway according to the source address information, the destination address information and a train network topology information table of the CAN message information, if so, the identifier of the CAN message information and the corresponding forwarding rule information are stored in the forwarding rule table of the train gateway, thereby being capable of adjusting the forwarding strategy of each train gateway without updating a gateway program or upgrading the gateway, being beneficial to version control, reducing the management cost of the train gateway and improving the management efficiency of the train gateway.
Fig. 3 is a schematic structural diagram of a train gateway forwarding policy configuration apparatus according to an embodiment of the present invention, and as shown in fig. 3, the train gateway forwarding policy configuration apparatus includes: a receiving module 31, a storage module 32 and a transmitting module 33.
The receiving module 31 is configured to receive a CAN message forwarding request sent by a control area network CAN module on a train networking, where the CAN message forwarding request includes: CAN message information, destination address information of the CAN message information and corresponding forwarding rule information; the CAN message information carries an identifier of the CAN message information;
the storage module 32 is configured to store the identifier of the CAN message information and the corresponding forwarding rule information into a forwarding rule table of the train gateway corresponding to the source address information of the CAN message information;
the sending module 33 is configured to send an ethernet packet carrying the CAN packet forwarding request and the source address information of the CAN packet information to each train gateway on a train backbone network, so that the train gateway determines whether a forwarding path of the CAN packet information includes its own train gateway according to the source address information, the destination address information, and a train network topology information table of the CAN packet information, and if the forwarding path of the CAN packet information includes its own train gateway, stores an identifier of the CAN packet information and corresponding forwarding rule information in a forwarding rule table of its own train gateway.
The train gateway forwarding strategy configuration device provided by the invention CAN be specifically a networking train gateway corresponding to a CAN module of a control area network. In this embodiment, the train gateway forwarding policy configuration device may specifically be a train gateway corresponding to source address information, where the train gateway requests to send the CAN message information of the CAN module of the control area network of the train gateway to the train gateway corresponding to destination address information, or to send the CAN message information to the CAN module of the control area network of the train gateway corresponding to destination address information.
The train Network topology applicable to the invention is based on the train Network topology which takes the Ethernet as a backbone Network and a Controller Area Network (CAN) as a networking Network, and is also applicable to the train Network topology which takes the Ethernet as a hybrid networking Network of the backbone Network and the CAN and the Ethernet. Correspondingly, the train gateway CAN be a gateway of ethernet and CAN, wherein the ethernet is used as a backbone network, and the train gateway CAN include multiple CAN networks as a networking network, or include multiple CAN networks and multiple ethernet subnets as a networking network.
The train gateway may include a train network topology information table, which mainly includes train backbone network information and train networking network information. The train backbone network information is the number of train groups and the number of corresponding carriage nodes contained in the current train, and the train networking network information is the networking number and the networking type of each carriage node of each train group contained in the current train.
In this embodiment, the control area network CAN module may be a product module in a certain path networking network of a certain carriage node of a train. The CAN module of the control area network CAN customize a CAN message forwarding request according to the self requirement. In addition, the CAN message forwarding request CAN be sent in a form of CAN message groups in multiple frames.
The description is given by taking the train as a two-train set, each train set is three carriage nodes, the two-train set is a train set a and a train set B, and the carriage nodes are a1, a2, A3, B1, B2 and B3. Each carriage node is respectively provided with three CAN networks, namely CAN1, CAN2 and CAN3, and the first carriage node of the first train set is A1CAN1, A1CAN2 and A1CAN 3.
For example, the identifier of the newly added CAN message information on the CAN module may be 0x 223; the frame type in the CAN message information is a standard frame and a data frame; the forwarding rule information is a periodic forwarding, wherein the period is 100 ms. The CAN module CAN be located on a first carriage node CAN1 networking of a first train set, namely A1CAN1, and the forwarded destination address information is a second carriage node CAN2 networking of a second train set, namely B2CAN 2.
The train gateway forwarding policy configuration device provided in this embodiment receives a CAN message forwarding request sent by a CAN module of a control area network on a train group, where the CAN message forwarding request includes: CAN message information, destination address information of the CAN message information and corresponding forwarding rule information; the CAN message information carries an identifier of the CAN message information; storing the identification of the CAN message information and the corresponding forwarding rule information into a forwarding rule table of the train gateway corresponding to the source address information of the CAN message information; and the Ethernet message carrying the CAN message forwarding request and the source address information of the CAN message information is sent to each train gateway on a train backbone network, so that the train gateway judges whether the forwarding path of the CAN message information comprises the train gateway according to the source address information, the destination address information and a train network topology information table of the CAN message information, if so, the identifier of the CAN message information and the corresponding forwarding rule information are stored in the forwarding rule table of the train gateway, thereby being capable of adjusting the forwarding strategy of each train gateway without updating a gateway program or upgrading the gateway, being beneficial to version control, reducing the management cost of the train gateway and improving the management efficiency of the train gateway.
Further, with reference to fig. 4, on the basis of the embodiment shown in fig. 3, the CAN packet forwarding request further includes: and (5) information check codes. Correspondingly, the device further comprises: a verification module 34, a first judgment module 35 and a first determination module 36.
The verification module 34 is configured to verify the CAN message information, the destination address information of the CAN message information, and the corresponding forwarding rule information, and generate a local verification code;
a first judging module 35, configured to judge whether the local check code is consistent with the information check code;
a first determining module 36, configured to determine that the sending of the CAN packet forwarding request fails when the local check code is inconsistent with the information check code.
In addition, if the local check code is inconsistent with the information check code, the networking train gateway CAN send prompt information to the CAN module to prompt the CAN module to resend the CAN message forwarding request.
The train gateway forwarding policy configuration device provided in this embodiment receives a CAN message forwarding request sent by a CAN module of a control area network on a train group, where the CAN message forwarding request includes: CAN message information, destination address information of the CAN message information, corresponding forwarding rule information and an information check code; the CAN message information carries an identifier of the CAN message information; the CAN message information, the destination address information of the CAN message information and the corresponding forwarding rule information are verified, and a local verification code is generated; judging whether the local check code is consistent with the information check code; if the local check code is consistent with the information check code, storing the identification of the CAN message information and the corresponding forwarding rule information into a forwarding rule table of the train gateway corresponding to the source address information of the CAN message information; and the Ethernet message carrying the CAN message forwarding request and the source address information of the CAN message information is sent to each train gateway on a train backbone network, so that the train gateway judges whether the forwarding path of the CAN message information comprises the train gateway according to the source address information, the destination address information and a train network topology information table of the CAN message information, if so, the identifier of the CAN message information and the corresponding forwarding rule information are stored in the forwarding rule table of the train gateway, thereby being capable of adjusting the forwarding strategy of each train gateway without updating a gateway program or upgrading the gateway, being beneficial to version control, reducing the management cost of the train gateway and improving the management efficiency of the train gateway.
Further, with reference to fig. 5, on the basis of the embodiment shown in fig. 3, the apparatus further includes: a second decision module 37 and a second determination module 38.
The second judging module 37 is configured to judge whether a message forwarding request acknowledgement message returned by each train gateway is received;
and a second determining module 38, configured to determine that the CAN message forwarding request is successfully sent when receiving the message forwarding request acknowledgement information returned by each train gateway.
Further, on the basis of the embodiment shown in fig. 5, the apparatus may further include: and the third determining module is used for determining that the CAN message forwarding request fails to be sent when the message forwarding request confirmation information returned by each train gateway is not received.
It should be noted that, in the embodiment, reference may be made to the embodiment shown in fig. 1 and fig. 2 for detailed description of functions of each module and other parameters or information, and a detailed description thereof is omitted here.
Fig. 6 is a schematic structural diagram of another train gateway forwarding policy configuration device according to an embodiment of the present invention, where the train gateway forwarding policy configuration device includes:
memory 1001, processor 1002, and computer programs stored on memory 1001 and executable on processor 1002.
The processor 1002 implements the train gateway forwarding policy configuration method provided in the above embodiment when executing the program.
Further, the train gateway forwarding policy configuration device further includes:
a communication interface 1003 for communicating between the memory 1001 and the processor 1002.
A memory 1001 for storing computer programs that may be run on the processor 1002.
Memory 1001 may include high-speed RAM memory and may also include non-volatile memory (e.g., at least one disk memory).
The processor 1002 is configured to implement the train gateway forwarding policy configuration method according to the foregoing embodiment when executing the program.
If the memory 1001, the processor 1002, and the communication interface 1003 are implemented independently, the communication interface 1003, the memory 1001, and the processor 1002 may be connected to each other through a bus and perform communication with each other. The bus may be an Industry Standard Architecture (ISA) bus, a Peripheral Component Interconnect (PCI) bus, an Extended ISA (Extended Industry Standard Architecture) bus, or the like. The bus may be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, only one thick line is shown in FIG. 6, but this is not intended to represent only one bus or type of bus.
Optionally, in a specific implementation, if the memory 1001, the processor 1002, and the communication interface 1003 are integrated on one chip, the memory 1001, the processor 1002, and the communication interface 1003 may complete communication with each other through an internal interface.
The processor 1002 may be a Central Processing Unit (CPU), an Application Specific Integrated Circuit (ASIC), or one or more Integrated circuits configured to implement embodiments of the present invention.
The present embodiment also provides a computer-readable storage medium, on which a computer program is stored, wherein the program is executed by a processor to implement the train gateway forwarding policy configuration method as described above.
The embodiment also provides a computer program product, wherein when an instruction processor in the computer program product executes, a method for configuring a train gateway forwarding policy is executed, and the method includes:
receiving a CAN message forwarding request sent by a CAN module of a control area network on a train group, wherein the CAN message forwarding request comprises: CAN message information, destination address information of the CAN message information and corresponding forwarding rule information; the CAN message information carries an identifier of the CAN message information;
storing the identification of the CAN message information and the corresponding forwarding rule information into a forwarding rule table of the train gateway corresponding to the source address information of the CAN message information;
and sending the Ethernet message carrying the CAN message forwarding request and the source address information of the CAN message information to each train gateway on a train backbone network, so that the train gateway judges whether a forwarding path of the CAN message information comprises the train gateway according to the source address information, the destination address information and a train network topology information table of the CAN message information, and if the forwarding path of the CAN message information comprises the train gateway, storing the identifier of the CAN message information and corresponding forwarding rule information into a forwarding rule table of the train gateway.
In the description herein, references to the description of the term "one embodiment," "some embodiments," "an example," "a specific example," or "some examples," etc., mean that a particular feature, structure, material, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the invention. In this specification, the schematic representations of the terms used above are not necessarily intended to refer to the same embodiment or example. Furthermore, the particular features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples. Furthermore, various embodiments or examples and features of different embodiments or examples described in this specification can be combined and combined by one skilled in the art without contradiction.
Furthermore, the terms "first", "second" and "first" are used for descriptive purposes only and are not to be construed as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include at least one such feature. In the description of the present invention, "a plurality" means at least two, e.g., two, three, etc., unless specifically limited otherwise.
Any process or method descriptions in flow charts or otherwise described herein may be understood as representing modules, segments, or portions of code which include one or more executable instructions for implementing steps of a custom logic function or process, and alternate implementations are included within the scope of the preferred embodiment of the present invention in which functions may be executed out of order from that shown or discussed, including substantially concurrently or in reverse order, depending on the functionality involved, as would be understood by those reasonably skilled in the art of the present invention.
The logic and/or steps represented in the flowcharts or otherwise described herein, e.g., an ordered listing of executable instructions that can be considered to implement logical functions, can be embodied in any computer-readable medium for use by or in connection with an instruction execution system, apparatus, or device, such as a computer-based system, processor-containing system, or other system that can fetch the instructions from the instruction execution system, apparatus, or device and execute the instructions. For the purposes of this description, a "computer-readable medium" can be any means that can contain, store, communicate, propagate, or transport the program for use by or in connection with the instruction execution system, apparatus, or device. More specific examples (a non-exhaustive list) of the computer-readable medium would include the following: an electrical connection (electronic device) having one or more wires, a portable computer diskette (magnetic device), a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber device, and a portable compact disc read-only memory (CDROM). Additionally, the computer-readable medium could even be paper or another suitable medium upon which the program is printed, as the program can be electronically captured, via for instance optical scanning of the paper or other medium, then compiled, interpreted or otherwise processed in a suitable manner if necessary, and then stored in a computer memory.
It should be understood that portions of the present invention may be implemented in hardware, software, firmware, or a combination thereof. In the above embodiments, the various steps or methods may be implemented in software or firmware stored in memory and executed by a suitable instruction execution system. If implemented in hardware, as in another embodiment, any one or combination of the following techniques, which are known in the art, may be used: a discrete logic circuit having a logic gate circuit for implementing a logic function on a data signal, an application specific integrated circuit having an appropriate combinational logic gate circuit, a Programmable Gate Array (PGA), a Field Programmable Gate Array (FPGA), or the like.
It will be understood by those skilled in the art that all or part of the steps carried by the method for implementing the above embodiments may be implemented by hardware related to instructions of a program, which may be stored in a computer readable storage medium, and when the program is executed, the program includes one or a combination of the steps of the method embodiments.
In addition, functional units in the embodiments of the present invention may be integrated into one processing module, or each unit may exist alone physically, or two or more units are integrated into one module. The integrated module can be realized in a hardware mode, and can also be realized in a software functional module mode. The integrated module, if implemented in the form of a software functional module and sold or used as a stand-alone product, may also be stored in a computer readable storage medium.
The storage medium mentioned above may be a read-only memory, a magnetic or optical disk, etc. Although embodiments of the present invention have been shown and described above, it is understood that the above embodiments are exemplary and should not be construed as limiting the present invention, and that variations, modifications, substitutions and alterations can be made to the above embodiments by those of ordinary skill in the art within the scope of the present invention.

Claims (10)

1. A train gateway forwarding strategy configuration method is characterized by comprising the following steps:
receiving a CAN message forwarding request sent by a CAN module of a control area network on a train group, wherein the CAN message forwarding request comprises: CAN message information, destination address information of the CAN message information and corresponding forwarding rule information; the CAN message information carries an identifier of the CAN message information;
storing the identification of the CAN message information and the corresponding forwarding rule information into a forwarding rule table of the train gateway corresponding to the source address information of the CAN message information;
and sending the Ethernet message carrying the CAN message forwarding request and the source address information of the CAN message information to each train gateway on a train backbone network, so that the train gateway judges whether a forwarding path of the CAN message information comprises the train gateway according to the source address information, the destination address information and a train network topology information table of the CAN message information, and if the forwarding path of the CAN message information comprises the train gateway, storing the identifier of the CAN message information and corresponding forwarding rule information into a forwarding rule table of the train gateway.
2. The method of claim 1, wherein the CAN packet forwarding request further comprises: an information check code;
before storing the identifier of the CAN message information and the corresponding forwarding rule information into the forwarding rule table of the train gateway corresponding to the source address information of the CAN message information, the method further includes:
verifying the CAN message information, the destination address information of the CAN message information and the corresponding forwarding rule information to generate a local verification code;
judging whether the local check code is consistent with the information check code;
and if the local check code is inconsistent with the information check code, determining that the transmission of the CAN message forwarding request fails.
3. The method according to claim 1, wherein after sending the ethernet packet carrying the CAN packet forwarding request and the source address information of the CAN packet information to each train gateway on a train backbone network, the method further comprises:
judging whether message forwarding request confirmation information returned by each train gateway is received or not;
and if message forwarding request confirmation information returned by each train gateway is received, determining that the CAN message forwarding request is successfully sent.
4. The method according to claim 3, wherein after sending the ethernet packet carrying the CAN packet forwarding request and the source address information of the CAN packet information to each train gateway on the train backbone network, further comprising:
and if the message forwarding request confirmation information returned by each train gateway is not received, determining that the CAN message forwarding request fails to be sent.
5. The method of claim 1, wherein the forwarding rule information comprises: forwarding type, forwarding period and forwarding times per time.
6. A train gateway forwarding policy configuration device is characterized by comprising:
the receiving module is used for receiving a CAN message forwarding request sent by a CAN module of a control area network on a train group network, wherein the CAN message forwarding request comprises: CAN message information, destination address information of the CAN message information and corresponding forwarding rule information; the CAN message information carries an identifier of the CAN message information;
the storage module is used for storing the identifier of the CAN message information and the corresponding forwarding rule information into a forwarding rule table of the train gateway corresponding to the source address information of the CAN message information;
and the sending module is used for sending the Ethernet message carrying the CAN message forwarding request and the source address information of the CAN message information to each train gateway on a train backbone network so that the train gateway judges whether the forwarding path of the CAN message information comprises the train gateway according to the source address information, the destination address information and a train network topology information table of the CAN message information, and if the forwarding path of the CAN message information comprises the train gateway, the identifier of the CAN message information and the corresponding forwarding rule information are stored in the forwarding rule table of the train gateway.
7. The apparatus of claim 6, wherein the CAN packet forwarding request further comprises: an information check code;
correspondingly, the device further comprises:
the verification module is used for verifying the CAN message information, the destination address information of the CAN message information and the corresponding forwarding rule information to generate a local verification code;
the first judgment module is used for judging whether the local check code is consistent with the information check code;
and the first determining module is used for determining that the sending of the CAN message forwarding request fails when the local check code is inconsistent with the information check code.
8. The apparatus of claim 6, further comprising:
the second judgment module is used for judging whether message forwarding request confirmation information returned by each train gateway is received or not;
and the second determining module is used for determining that the CAN message forwarding request is successfully sent when receiving the message forwarding request confirmation information returned by each train gateway.
9. A train gateway forwarding policy configuration device is characterized by comprising: memory, processor and computer program stored on the memory and executable on the processor, characterized in that the processor implements the train gateway forwarding policy configuration method according to any one of claims 1 to 5 when executing the program.
10. A computer-readable storage medium, on which a computer program is stored, the program, when being executed by a processor, implementing the train gateway forwarding policy configuration method according to any one of claims 1 to 5.
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 CN109302436A (en) 2019-02-01
CN109302436B true 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)

Families Citing this family (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
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

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6879806B2 (en) * 2001-06-01 2005-04-12 Zensys A/S System and a method for building routing tables and for routing signals in an automation system
JP2005012710A (en) * 2003-06-20 2005-01-13 Sony Corp Radio communication method and apparatus
CN100334861C (en) * 2004-12-17 2007-08-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
CN101888338B (en) * 2010-07-01 2016-06-22 中兴通讯股份有限公司 information forwarding method and gateway
CN104125152B (en) * 2013-04-23 2018-04-10 浙江大学 A kind of method that In-vehicle networking reliability is improved based on car borne gateway

Also Published As

Publication number Publication date
CN109302436A (en) 2019-02-01

Similar Documents

Publication Publication Date Title
CN111835627B (en) Communication method of vehicle-mounted gateway, vehicle-mounted gateway and intelligent vehicle
CN109302436B (en) Train gateway forwarding strategy configuration method and device
WO2015170452A1 (en) In-car network system, electronic control unit and update processing method
CN104125152B (en) A kind of method that In-vehicle networking reliability is improved based on car borne gateway
US10749738B2 (en) Method and apparatus for diagnosing network
CN111886576A (en) Method and apparatus for updating remote network device
CN103428045A (en) Connectivity detection method, device and system
US20200396180A1 (en) Communication method of ethernet network for vehicle
US20240031199A1 (en) Anomaly determination method, anomaly determination device, and recording medium
WO2023077968A1 (en) On-board communication method, apparatus and device, and storage medium
CN114143283A (en) Tunnel self-adaptive configuration method and device, center-end equipment and communication system
WO2021005875A1 (en) On-vehicle communication system, on-vehicle device, and vehicle communication method
KR20170011826A (en) Security method for ethernet based network
CN109302347B (en) Train gateway forwarding strategy configuration method and device
CN102761626B (en) A kind of In-vehicle networking node address and upgrade method
US10484280B2 (en) Operation method of a communication node in network
US10778586B2 (en) System and method for traffic steering and analysis
CN106921575A (en) For the devices, systems and methods for preventing multicast service from abandoning
CN109302298B (en) Train gateway forwarding strategy configuration method, device and system
CN109600247B (en) Train topology management method and system
CN105785977A (en) Data storage method of electric control system of vehicle and the electric control system
KR20180038970A (en) Operation method of communication node for selective wakeup in vehicle network
CN107113230A (en) Determine the method, apparatus and system of generic route encapsulation gre tunneling mark
CN105207911A (en) IS-IS protocol message authentication method and system
CN101494587A (en) Method for processing packet network tunnel and communication system as well as relevant equipment

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