CN115297046B - Gateway information sending method, device, electronic equipment, medium and product - Google Patents

Gateway information sending method, device, electronic equipment, medium and product Download PDF

Info

Publication number
CN115297046B
CN115297046B CN202210743944.2A CN202210743944A CN115297046B CN 115297046 B CN115297046 B CN 115297046B CN 202210743944 A CN202210743944 A CN 202210743944A CN 115297046 B CN115297046 B CN 115297046B
Authority
CN
China
Prior art keywords
gateway
communication information
communication
information
gateway communication
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
CN202210743944.2A
Other languages
Chinese (zh)
Other versions
CN115297046A (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.)
Dakun Zhilian Beijing Technology Co ltd
Original Assignee
Dakun Zhilian Beijing Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Dakun Zhilian Beijing Technology Co ltd filed Critical Dakun Zhilian Beijing Technology Co ltd
Priority to CN202210743944.2A priority Critical patent/CN115297046B/en
Publication of CN115297046A publication Critical patent/CN115297046A/en
Application granted granted Critical
Publication of CN115297046B publication Critical patent/CN115297046B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/70Routing based on monitoring results
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/74Address processing for routing
    • H04L45/745Address table lookup; Address filtering
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/12Applying verification of the received information

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Security & Cryptography (AREA)
  • Computer Hardware Design (AREA)
  • Computing Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The embodiment of the invention discloses a gateway information sending method, a gateway information sending device, electronic equipment, media and products. One embodiment of the method comprises the following steps: determining a gateway communication information sequence corresponding to the gateway node; for each gateway communication in the sequence of gateway communications, performing the steps of: performing anti-counterfeiting verification on the gateway communication information according to the initial identification information set and the communication identification included in the gateway communication information to generate a verification result; responding to the determined verification result to represent that the gateway communication information passes the anti-counterfeiting verification, and determining characteristic parameters corresponding to the gateway communication information according to the communication identifier and the initial node identifier included in the gateway communication information; searching the target routing table according to the characteristic parameters to determine a communication receiving node corresponding to the gateway communication information; and sending the gateway communication information to a communication receiving node. This embodiment improves the transmission efficiency of the gateway information.

Description

Gateway information sending method, device, electronic equipment, medium and product
Technical Field
The embodiment of the disclosure relates to the technical field of computers, in particular to a gateway information sending method, a gateway information sending device, electronic equipment, media and products.
Background
Gateway information transmission is a technique for forwarding information transferred on a vehicle through a gateway. Currently, when gateway information is transmitted, the following methods are generally adopted: first, a receiving node of gateway information is determined. The gateway information is then sent to the receiving node.
However, the inventors found that when the gateway information is transmitted in the above manner, there are often the following technical problems:
firstly, when determining a receiving node of gateway information, traversing the whole routing table is required, and the speed is low, so that the sending efficiency of the gateway information is low;
secondly, the processing sequence of the gateway information is determined in sequence only according to the size of the communication identifier, and the situation that the communication time of part of the gateway information exceeds the communication period possibly occurs, so that communication delay is caused;
thirdly, when the gateway node receives a plurality of gateway information at the same time, forwarding processing is needed to be carried out on each gateway information in sequence according to the processing sequence, the processing speed is low, and the sending efficiency of the gateway information is low;
fourth, in the gateway information sending process, timeliness verification is not performed on the received gateway information, and validity of the gateway information cannot be guaranteed.
The above information disclosed in this background section is only for enhancement of understanding of the background of the inventive concept and, therefore, may contain information that does not form the prior art that is already known to those of ordinary skill in the art in this country.
Disclosure of Invention
The disclosure is in part intended to introduce concepts in a simplified form that are further described below in the detailed description. The disclosure is not intended to identify key features or essential features of the claimed subject matter, nor is it intended to be used to limit the scope of the claimed subject matter.
Some embodiments of the present disclosure propose gateway information sending methods, apparatuses, electronic devices, media, and products to solve one or more of the technical problems mentioned in the background section above.
In a first aspect, some embodiments of the present disclosure provide a gateway information sending method, including: determining a gateway communication information sequence corresponding to the gateway node, wherein the gateway communication information comprises: a communication identifier and a starting node identifier; for each gateway communication in the sequence of gateway communications, performing the steps of: performing anti-counterfeiting verification on the gateway communication information according to the initial identification information set and the communication identification included in the gateway communication information to generate a verification result; responding to the fact that the verification result represents that the gateway communication information passes anti-counterfeiting verification, and determining characteristic parameters corresponding to the gateway communication information according to a communication identifier and a starting node identifier included in the gateway communication information; searching a target routing table according to the characteristic parameters to determine a communication receiving node corresponding to the gateway communication information; and sending the gateway communication information to the communication receiving node.
Optionally, the gateway node includes: a first gateway node and a second gateway node.
Optionally, the determining the gateway communication information sequence corresponding to the gateway node includes: acquiring an initial gateway communication information set, wherein the initial gateway communication information in the initial gateway communication information set comprises: initial communication identification and communication duration; for each initial gateway communication information in the initial gateway communication information set, determining a weight score corresponding to the initial gateway communication information according to an initial communication identifier and a communication duration included in the initial gateway communication information; determining the processing sequence number of the initial gateway communication information corresponding to the weight score in the weight score sequence according to the obtained weight score sequence to obtain an initial gateway communication information sequence; determining the initial gateway communication information in the odd digits in the initial gateway communication information sequence as the gateway communication information corresponding to the first gateway node, so as to obtain a gateway communication information sequence corresponding to the first gateway node; and determining the initial gateway communication information in even number in the initial gateway communication information sequence as the gateway communication information corresponding to the second gateway node to obtain the gateway communication information sequence corresponding to the second gateway node.
Optionally, the initial gateway communication information in the initial gateway communication information set further includes: and (3) a communication period.
Optionally, the determining the weight score corresponding to the initial gateway communication information according to the initial communication identifier and the communication duration included in the initial gateway communication information includes: in response to determining that the communication time length included in the initial gateway communication information is greater than or equal to a preset threshold value of a communication period, determining a preset score as a weight score corresponding to the initial gateway communication information; in response to determining that the communication duration is less than a preset threshold of the communication period, performing the steps of: determining an information processing grade corresponding to the initial gateway communication information according to the initial communication identifier included in the initial gateway communication information; determining a communication duration grade corresponding to the initial gateway communication information according to the communication duration included in the initial gateway communication information; and determining a weight score corresponding to the initial gateway communication information according to the information processing grade, the communication duration grade and a preset weight coefficient.
In a second aspect, some embodiments of the present disclosure provide a gateway information transmitting apparatus, including: an information determining unit configured to determine a gateway communication information sequence corresponding to the gateway node, wherein the gateway communication information includes: a communication identifier and a starting node identifier; an information processing unit configured to perform, for each gateway communication in the gateway communication sequence, the steps of: performing anti-counterfeiting verification on the gateway communication information according to the initial identification information set and the communication identification included in the gateway communication information to generate a verification result; responding to the fact that the verification result represents that the gateway communication information passes anti-counterfeiting verification, and determining characteristic parameters corresponding to the gateway communication information according to a communication identifier and a starting node identifier included in the gateway communication information; searching a target routing table according to the characteristic parameters to determine a communication receiving node corresponding to the gateway communication information; and sending the gateway communication information to the communication receiving node.
In a third aspect, some embodiments of the present disclosure provide an electronic device comprising: one or more processors; a storage device having one or more programs stored thereon, which when executed by one or more processors causes the one or more processors to implement the method described in any of the implementations of the first aspect above.
In a fourth aspect, some embodiments of the present disclosure provide a computer readable medium having a computer program stored thereon, wherein the program, when executed by a processor, implements the method described in any of the implementations of the first aspect above.
In a fifth aspect, some embodiments of the present disclosure provide a computer program product comprising a computer program which, when executed by a processor, implements the method described in any of the implementations of the first aspect above.
The above embodiments of the present disclosure have the following advantages: according to the gateway information sending method, the sending efficiency of the gateway information can be improved. Specifically, the reason why the transmission efficiency of gateway information is low is that: when determining the receiving node of the gateway information, the whole routing table needs to be traversed, and the speed is low, so that the sending efficiency of the gateway information is low. Based on this, the gateway information sending method of some embodiments of the present disclosure first determines a gateway communication information sequence corresponding to a gateway node. Wherein the gateway communication information includes: a communication identity and a starting node identity. Therefore, the communication receiving node corresponding to the gateway communication information can be determined according to the communication identifier and the initial node identifier included in the gateway communication information so as to transmit the gateway communication information. Then, for each gateway communication in the gateway communication sequence, the following steps are performed: and carrying out anti-counterfeiting verification on the gateway communication information according to the initial identification information set and the communication identification included in the gateway communication information so as to generate a verification result. Therefore, the condition that the vehicle is invaded by external information is avoided by carrying out anti-counterfeiting verification on the gateway communication information. And determining characteristic parameters corresponding to the gateway communication information according to the communication identifier and the initial node identifier included in the gateway communication information in response to determining that the verification result represents that the gateway communication information passes anti-counterfeiting verification. Thus, the characteristic parameters corresponding to the gateway communication information are obtained, so that the communication receiving node corresponding to the gateway communication information is determined according to the characteristic parameters. And searching the target routing table according to the characteristic parameters to determine the communication receiving node corresponding to the gateway communication information. Therefore, only the field with the characteristic parameter is needed to be found in the target routing table, and the communication receiving point corresponding to the characteristic parameter is used as the communication receiving point corresponding to the gateway communication information. Therefore, the communication receiving node corresponding to the gateway communication information can be rapidly determined without traversing the whole routing table. And sending the gateway communication information to the communication receiving node. This improves the efficiency of transmitting gateway information.
Drawings
The above and other features, advantages, and aspects of embodiments of the present disclosure will become more apparent by reference to the following detailed description when taken in conjunction with the accompanying drawings. The same or similar reference numbers will be used throughout the drawings to refer to the same or like elements. It should be understood that the figures are schematic and that elements and components are not necessarily drawn to scale.
Fig. 1 is a flow chart of some embodiments of a gateway information transmission method according to the present disclosure;
fig. 2 is a schematic structural diagram of some embodiments of a gateway information sending apparatus according to the present disclosure;
fig. 3 is a schematic structural diagram of an electronic device suitable for use in implementing some embodiments of the present disclosure.
Detailed Description
Embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. While certain embodiments of the present disclosure are shown in the drawings, it should be understood that the present disclosure may be embodied in various forms and should not be construed as limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete. It should be understood that the drawings and embodiments of the present disclosure are for illustration purposes only and are not intended to limit the scope of the present disclosure.
It should be noted that, for convenience of description, only the portions related to the present invention are shown in the drawings. Embodiments of the present disclosure and features of embodiments may be combined with each other without conflict.
It should be noted that the terms "first," "second," and the like in this disclosure are merely used to distinguish between different devices, modules, or units and are not used to define an order or interdependence of functions performed by the devices, modules, or units.
It should be noted that references to "one", "a plurality" and "a plurality" in this disclosure are intended to be illustrative rather than limiting, and those of ordinary skill in the art will appreciate that "one or more" is intended to be understood as "one or more" unless the context clearly indicates otherwise.
The names of messages or information interacted between the various devices in the embodiments of the present disclosure are for illustrative purposes only and are not intended to limit the scope of such messages or information.
The present disclosure will be described in detail below with reference to the accompanying drawings in conjunction with embodiments.
Fig. 1 is a flow 100 of some embodiments of a gateway information transmission method of the present disclosure. The gateway information sending method comprises the following steps:
Step 101, determining a gateway communication information sequence corresponding to the gateway node.
In some embodiments, an executing body (e.g., a computing device) of the gateway information sending method may determine a gateway communication information sequence corresponding to the gateway node. The gateway node may be a node for transmitting data to gateway communication information. The gateway communication may be information communicated over the target network. The gateway communication information may include: a communication identity and a starting node identity. The target network may be a communication network on the target vehicle. The target vehicle may be a vehicle that the user is currently driving. The communication identity may be an identity characterizing the category of the corresponding gateway communication. The originating node identification may be an identification characterizing the originating node to which the gateway communication corresponds. The originating node may be a node that generates gateway communications. The gateway node may be, for example, a CAN (Controller Area Network ) gateway node. The target network may be a CAN network. The communication identity may be 220. The starting node identification may be a. Wherein a may characterize the body control CAN.
In some optional implementations of some embodiments, the gateway node may include: a first gateway node and a second gateway node. The first gateway node and the second gateway node may be two different gateway nodes on the target vehicle.
Optionally, the determining, by the executing body, the gateway communication information sequence corresponding to the gateway node may include the following steps:
first, an initial gateway communication information set is acquired.
The initial gateway communication may be a communication that is not packet processed and is communicated over the target network. The initial gateway communication information in the initial gateway communication information set includes: initial communication identity and communication duration. The communication duration may be a duration during which the initial gateway communication information is communicated over the target network. The target network may be a communication network on the target vehicle described above. The initial communication identity may be an identity characterizing a class of corresponding initial gateway communication information. For example, the target network may be a CAN network.
And a second step of determining a weight score corresponding to the initial gateway communication information according to the initial communication identifier and the communication duration included in the initial gateway communication information for each initial gateway communication information in the initial gateway communication information set.
Wherein the weight score may characterize the order in which the corresponding initial gateway communication information is processed by the gateway node.
Optionally, the initial gateway communication information in the initial gateway communication information set may further include: and (3) a communication period. Wherein the communication period may be used to characterize the time period during which the initiating node generates the initial gateway communication information. The communication period may be 10ms.
In some optional implementations of some embodiments, the determining, by the executing body, a weight score corresponding to the initial gateway communication information according to an initial communication identifier and a communication duration included in the initial gateway communication information may include the following substeps:
and a first sub-step of determining a preset score as a weight score corresponding to the initial gateway communication information in response to determining that the communication time period included in the initial gateway communication information is greater than or equal to a preset threshold of a communication period.
The preset threshold may be a preset threshold for defining a communication duration. The preset score may be a maximum value of a preset weight score. For example, the preset threshold may be 70%. The predetermined score may be 100.
A second sub-step of, in response to determining that the communication duration is less than a preset threshold of the communication period, performing the following processing steps:
and a first processing step of determining an information processing grade corresponding to the initial gateway communication information according to the initial communication identifier included in the initial gateway communication information.
Wherein the information processing level may characterize the size of the initial communication identity. The smaller the initial communication identification, the higher the corresponding information processing level. The executing body can determine the information processing level corresponding to the initial gateway communication information by establishing a mapping relation between the initial communication identification and the information processing level.
As an example, when the initial communication flag is 101, the corresponding information processing level is 20. When the initial communication flag is 201, the corresponding information processing level is 10.
And a second processing step, determining a communication duration grade corresponding to the initial gateway communication information according to the communication duration included in the initial gateway communication information.
The communication duration level may characterize a duration of the communication duration. The larger the value of the communication duration, the higher the corresponding communication duration level. For example, the executing body may determine the communication duration level corresponding to the initial gateway communication information by establishing a mapping relationship between the communication duration and the communication duration level.
As an example, when the communication duration is 10ms, the corresponding communication duration level is 10 levels. When the communication duration is 20ms, the corresponding communication duration level is 20 levels.
And a third processing step of determining a weight score corresponding to the initial gateway communication information according to the information processing grade, the communication duration grade and a preset weight coefficient.
Wherein, the preset weight coefficient comprises: a first weight coefficient and a second weight coefficient. The first weight coefficient may be a weight coefficient corresponding to the information processing level. The second weight coefficient may be a weight coefficient corresponding to the communication duration level.
As an example, the execution body may add a product of the first weight coefficient and the information processing level to a product of the second weight coefficient and the communication duration level to obtain a weight score corresponding to the initial gateway information.
The first substep-the second substep described above are taken as an invention point of an embodiment of the present disclosure, and solve the second technical problem mentioned in the background section, namely that "the processing sequence of the gateway information is sequentially determined only according to the size of the communication identifier, the situation that the communication time of part of the gateway information exceeds the communication period may occur, and further, communication delay is caused. Based on this, in order to avoid the occurrence of a communication delay, first, in response to determining that the initial gateway communication information includes a communication time period greater than or equal to a preset threshold of a communication period, a preset score is determined as a weight score corresponding to the initial gateway communication information. Therefore, the weight score corresponding to the initial gateway communication information with longer communication duration is set to be the preset score with the largest value, so that the priority processing of the initial gateway communication information with longer communication duration is realized, the condition that the communication duration of the gateway communication information exceeds a communication period is avoided, and the condition of communication delay is avoided. Then, in response to determining that the communication duration is less than a preset threshold of the communication period, performing the following processing steps: and a first processing step of determining an information processing grade corresponding to the initial gateway communication information according to the initial communication identifier included in the initial gateway communication information. And a second processing step, determining a communication duration grade corresponding to the initial gateway communication information according to the communication duration included in the initial gateway communication information. And a third processing step of determining a weight score corresponding to the initial gateway communication information according to the information processing grade, the communication duration grade and a preset weight coefficient. The initial communication identifier and the communication duration are combined to determine the weight score, so that the processing sequence of the initial gateway communication information with longer communication duration is advanced, the condition that the communication time of part of gateway information exceeds a communication period due to the fact that the processing sequence of the initial gateway communication information is determined only by the size of the initial communication identifier is avoided, and the condition of communication delay is reduced.
And thirdly, determining the processing sequence number of the initial gateway communication information corresponding to the weight score in the weight score sequence according to the obtained weight score sequence to obtain an initial gateway communication information sequence.
As an example, the executing body may determine, as the processing sequence number of the initial gateway communication information corresponding to the weight score, the position where the weight score in the obtained weight score sequence is located, and obtain the initial gateway communication information sequence.
And step four, determining the initial gateway communication information in the odd digits in the initial gateway communication information sequence as the gateway communication information corresponding to the first gateway node, and obtaining the gateway communication information sequence corresponding to the first gateway node.
As an example, there may be four pieces of initial gateway communication in the initial gateway communication sequence described above. The execution body may determine initial gateway communication information in the first bit and the third bit in the initial gateway communication information sequence as gateway communication information corresponding to the first gateway node.
And fifthly, determining the initial gateway communication information in even number in the initial gateway communication information sequence as the gateway communication information corresponding to the second gateway node, and obtaining the gateway communication information sequence corresponding to the second gateway node.
As an example, there may be four pieces of initial gateway communication in the initial gateway communication sequence described above. The execution body may determine initial gateway communication information in the second bit and the fourth bit in the initial gateway communication information sequence as gateway communication information corresponding to the second gateway node.
The first step-the fifth step are taken as an invention point of some embodiments of the present disclosure, and solve the third technical problem mentioned in the background section, that when a gateway node receives multiple gateway information at the same time, forwarding processing needs to be sequentially performed on each gateway information according to a processing sequence, so that the processing speed is slower, and the sending efficiency of the gateway information is lower. In order to improve the efficiency of transmitting gateway information, first, an initial gateway communication information set is acquired. And secondly, for each initial gateway communication information in the initial gateway communication information set, determining a weight score corresponding to the initial gateway communication information according to an initial communication identifier and a communication duration included in the initial gateway communication information. Thus, the processing order of the initial gateway communication information can be determined according to the weight score. And then, determining the processing sequence number of the initial gateway communication information corresponding to the weight score in the weight score sequence according to the obtained weight score sequence to obtain an initial gateway communication information sequence. Therefore, the processing sequence of each initial gateway communication information in the initial gateway communication information set is determined through the initial communication identifier and the communication duration included in the initial gateway communication information, and the condition of information transmission delay is avoided. And then, determining the initial gateway communication information in the odd digits in the initial gateway communication information sequence as the gateway communication information corresponding to the first gateway node, and obtaining the gateway communication information sequence corresponding to the first gateway node. And finally, determining the initial gateway communication information in even number in the initial gateway communication information sequence as the gateway communication information corresponding to the second gateway node, and obtaining the gateway communication information sequence corresponding to the second gateway node. Therefore, the initial gateway communication information is distributed through the two gateway nodes, so that the two gateway nodes can process the gateway communication information at the same time, the information processing speed is improved, and the sending efficiency of the gateway information is improved.
The computing device may be hardware or software. When the computing device is hardware, the computing device may be implemented as a distributed cluster formed by a plurality of servers or terminal devices, or may be implemented as a single server or a single terminal device. When the computing device is embodied as software, it may be installed in the hardware devices listed above. It may be implemented as a plurality of software or software modules, for example, for providing distributed services, or as a single software or software module. The present invention is not particularly limited herein.
It should be understood that the number of computing devices described above is merely illustrative. There may be any number of computing devices, as desired for an implementation.
Step 102, for each gateway communication in the gateway communication sequence, performing the following steps:
and 1021, performing anti-counterfeiting verification on the gateway communication information according to the initial identification information set and the communication identification included in the gateway communication information to generate a verification result.
In some embodiments, the executing body may perform anti-counterfeit verification on the gateway communication information according to the initial identifier set and the communication identifier included in the gateway communication information, so as to generate a verification result.
In some optional implementations of some embodiments, the executing body performs anti-counterfeit verification on the gateway communication information according to the initial identifier information set and the communication identifier included in the gateway communication information, so as to generate a verification result, and may include the following steps:
and a first step of generating a verification result representing that the gateway communication information passes the anti-counterfeiting verification in response to determining that the initial identification set meets a target condition.
The target condition is that the initial identifier set has the same initial identifier as the communication identifier included in the gateway communication information. The initial set of identifiers may be a set that includes all communication identifiers in the event that the target vehicle is not intruded by foreign information.
And a second step of generating a verification result indicating that the gateway communication information fails the anti-counterfeiting verification in response to determining that the initial identification information set does not meet the target condition.
Optionally, after the initial set of identifiers satisfies the target condition in response to determining that the initial set of identifiers satisfies the target condition, the execution body may further execute the following steps:
first, a time difference between a time when the gateway node receives the gateway communication and a time when the target communication is received is calculated.
The target gateway communication information may be the gateway communication information that is received last by the gateway node and is the same as the communication identifier and the starting node identifier included in the gateway communication information.
And a second step of generating a verification result representing that the gateway communication information passes the anti-counterfeiting verification in response to determining that the time difference is in a preset interval of a communication period corresponding to the gateway communication information.
The preset interval may be an error interval of communication duration corresponding to gateway communication information with the same two communication identifiers and the same starting node identifier. For example, the communication period may be 10ms, and the error interval may be [8ms,12ms ].
The step 1021 is an invention point of some embodiments of the present disclosure, and solves the fourth technical problem mentioned in the background section, that in the process of sending gateway information, the validity of the received gateway information is not guaranteed, which is not performed with time-efficient verification. In order to ensure the validity of the gateway information, first, a time difference between the time when the gateway node receives the above-described gateway communication information and the time when the target communication information is received is calculated. And finally, generating a verification result representing that the gateway communication information passes the time-lapse verification in response to determining that the time difference is in a preset interval of a communication period corresponding to the gateway communication information. Since the communication of gateway communication information has a certain time period, when the time difference between two gateway communication information is large compared with the communication period, there may be a problem that the gateway communication information is invalid. Therefore, the validity of the gateway communication information is determined by generating a verification result of the time-lapse verification.
Optionally, after the step 1021, the execution body may further execute the following steps:
and responding to the fact that the verification result represents that the gateway communication information does not pass the anti-counterfeiting verification, and sending intrusion prompt information to display equipment.
The intrusion prompt information indicates that the target vehicle is intruded. The display device may be a device having a display function in the target vehicle.
Step 1022, in response to determining that the verification result represents that the gateway communication information passes the anti-counterfeit verification, determining the feature parameters corresponding to the gateway communication information according to the communication identifier and the initial node identifier included in the gateway communication information.
In some embodiments, the executing body may determine, in response to determining that the verification result indicates that the gateway communication information passes the anti-counterfeit verification, a feature parameter corresponding to the gateway communication information according to a communication identifier and a start node identifier included in the gateway communication information.
In some optional implementations of some embodiments, the determining, by the executing body, a feature parameter corresponding to the gateway communication information according to a communication identifier and a start node identifier included in the gateway communication information may include the following steps:
The first step is to multiply the number of the communication identifier included in the gateway communication information with the number of the initial node identifier to obtain the target identifier value.
And secondly, carrying out feature processing on the target identification value to obtain the feature parameters corresponding to the gateway communication information.
As an example, the execution body may perform feature processing on the target identification value by using a hash algorithm, to obtain the feature parameter. For example, the hash algorithm may be an MD (Message-Digest) 5 algorithm.
Step 1023, searching the target routing table according to the characteristic parameters to determine the communication receiving node corresponding to the gateway communication information.
In some embodiments, the executing entity may search the target routing table according to the feature parameter to determine a communication receiving node corresponding to the gateway communication information.
As an example, the execution entity may search the target routing table and determine a communication receiving node corresponding to the same value as the feature parameter, which is present in the target routing table, as the communication receiving node corresponding to the gateway communication information.
Optionally, the target routing table may be obtained by:
first, a sample communication information set is acquired.
The sample communication information set may be a set containing all gateway communication information in a case that the target vehicle is not invaded by external information. The sample communication information includes: sample identity, sample start node identity, and sample receive node identity. Wherein the sample identification may be a unique identification identifying the category of the corresponding sample communication 0. The sample start node identification may be an identification characterizing a sample start node to which the sample communication corresponds. The sample start node may be a node that generates sample communications. The sample receiving node identification may be a unique identification of the node that received the corresponding sample communication.
And a second step of determining, for each sample communication in the sample communication set, a sample feature corresponding to the sample communication according to a sample identifier and a sample start node identifier included in the sample communication.
As an example, the execution body may hash the sample identifier and the sample start node identifier by using the same hash algorithm as in the step 1022 to obtain a sample feature corresponding to the sample communication information. For example, the hash algorithm may be an MD5 algorithm.
And thirdly, taking a sample characteristic corresponding to each sample communication information in the sample communication information set as a row and taking a sample receiving node identifier included in the sample communication information as a column to obtain the target routing table.
As an example, the above-mentioned target routing table may be:
Figure BDA0003718969770000131
wherein, the value in the table is 0, and no mapping relation exists between the characteristic sample and the sample receiving point mark. The value in the table is 1, and the mapping relation exists between the characteristic sample and the identification of the sample receiving point. For example, the sample receiving point corresponding to sample feature 1 is identified as B. The sample receiving point corresponding to sample feature 2 is identified as C. Sample reception points corresponding to sample feature 3 are identified as a and B.
Step 1024, send gateway communication information to the communication receiving node.
In some embodiments, the executing entity may send the gateway communication information to the communication receiving node in various ways. The communication receiving node may be a node that receives the gateway communication information.
The above embodiments of the present disclosure have the following advantages: according to the gateway information sending method, the sending efficiency of the gateway information can be improved. Specifically, the reason why the transmission efficiency of gateway information is low is that: when determining the receiving node of the gateway information, the whole routing table needs to be traversed, and the speed is low, so that the sending efficiency of the gateway information is low. Based on this, the gateway information sending method of some embodiments of the present disclosure first determines a gateway communication information sequence corresponding to a gateway node. Wherein the gateway communication information includes: a communication identity and a starting node identity. Therefore, the communication receiving node corresponding to the gateway communication information can be determined according to the communication identifier and the initial node identifier included in the gateway communication information so as to transmit the gateway communication information. Then, for each gateway communication in the gateway communication sequence, the following steps are performed: and carrying out anti-counterfeiting verification on the gateway communication information according to the initial identification information set and the communication identification included in the gateway communication information so as to generate a verification result. Therefore, the condition that the vehicle is invaded by external information is avoided by carrying out anti-counterfeiting verification on the gateway communication information. And determining characteristic parameters corresponding to the gateway communication information according to the communication identifier and the initial node identifier included in the gateway communication information in response to determining that the verification result represents that the gateway communication information passes anti-counterfeiting verification. Thus, the characteristic parameters corresponding to the gateway communication information are obtained, so that the communication receiving node corresponding to the gateway communication information is determined according to the characteristic parameters. And searching the target routing table according to the characteristic parameters to determine the communication receiving node corresponding to the gateway communication information. Therefore, only the field with the characteristic parameter is needed to be found in the target routing table, and the communication receiving point corresponding to the characteristic parameter is used as the communication receiving point corresponding to the gateway communication information. Therefore, the communication receiving node corresponding to the gateway communication information can be rapidly determined without traversing the whole routing table. And sending the gateway communication information to the communication receiving node. This improves the efficiency of transmitting gateway information.
With further reference to fig. 2, as an implementation of the method shown in the foregoing figures, the present disclosure provides some embodiments of a gateway information sending apparatus, where the apparatus embodiments correspond to those method embodiments shown in fig. 1, and the apparatus may be specifically applied in various electronic devices.
As shown in fig. 2, the gateway information transmitting apparatus 200 of some embodiments includes: an information determination unit 201, and an information processing unit 202. Wherein the information determining unit 201 is configured to determine a gateway communication information sequence corresponding to the gateway node, wherein the gateway communication information comprises: a communication identifier and a starting node identifier; the information processing unit 202 is configured to perform the following steps for each gateway communication in the above-described gateway communication sequence: performing anti-counterfeiting verification on the gateway communication information according to the initial identification information set and the communication identification included in the gateway communication information to generate a verification result; responding to the fact that the verification result represents that the gateway communication information passes anti-counterfeiting verification, and determining characteristic parameters corresponding to the gateway communication information according to a communication identifier and a starting node identifier included in the gateway communication information; searching a target routing table according to the characteristic parameters to determine a communication receiving node corresponding to the gateway communication information; and sending the gateway communication information to the communication receiving node.
It will be appreciated that the elements described in the apparatus 200 correspond to the various steps in the method described with reference to fig. 1. Thus, the operations, features and resulting benefits described above for the method are equally applicable to the apparatus 200 and the units contained therein, and are not described in detail herein.
Referring now to FIG. 3, a schematic diagram of an electronic device (e.g., computing device) 300 suitable for use in implementing some embodiments of the present disclosure is shown. The electronic device shown in fig. 3 is merely an example and should not impose any limitations on the functionality and scope of use of embodiments of the present disclosure.
As shown in fig. 3, the electronic device 300 may include a processing means (e.g., a central processing unit, a graphics processor, etc.) 301 that may perform various suitable actions and processes in accordance with a program stored in a Read Only Memory (ROM) 302 or a program loaded from a storage means 308 into a Random Access Memory (RAM) 303. In the RAM303, various programs and data required for the operation of the electronic apparatus 300 are also stored. The processing device 301, the ROM 302, and the RAM303 are connected to each other via a bus 304. An input/output (I/O) interface 305 is also connected to bus 304.
In general, the following devices may be connected to the I/O interface 305: input devices 306 including, for example, a touch screen, touchpad, keyboard, mouse, camera, microphone, accelerometer, gyroscope, etc.; an output device 307 including, for example, a Liquid Crystal Display (LCD), a speaker, a vibrator, and the like; storage 308 including, for example, magnetic tape, hard disk, etc.; and communication means 309. The communication means 309 may allow the electronic device 300 to communicate with other devices wirelessly or by wire to exchange data. While fig. 3 shows an electronic device 300 having various means, it is to be understood that not all of the illustrated means are required to be implemented or provided. More or fewer devices may be implemented or provided instead. Each block shown in fig. 3 may represent one device or a plurality of devices as needed.
In particular, according to some embodiments of the present disclosure, the processes described above with reference to flowcharts may be implemented as computer software programs. For example, some embodiments of the present disclosure include a computer program product comprising a computer program embodied on a computer readable medium, the computer program comprising program code for performing the method shown in the flow chart. In such embodiments, the computer program may be downloaded and installed from a network via communications device 309, or from storage device 308, or from ROM 302. The above-described functions defined in the methods of some embodiments of the present disclosure are performed when the computer program is executed by the processing means 301.
It should be noted that, the computer readable medium described in some embodiments of the present disclosure may be a computer readable signal medium or a computer readable storage medium, or any combination of the two. The computer readable storage medium can be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or a combination of any of the foregoing. More specific examples of the computer-readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In some embodiments of the present disclosure, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. In some embodiments of the present disclosure, however, the computer-readable signal medium may comprise a data signal propagated in baseband or as part of a carrier wave, with the computer-readable program code embodied therein. Such a propagated data signal may take any of a variety of forms, including, but not limited to, electro-magnetic, optical, or any suitable combination of the foregoing. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: electrical wires, fiber optic cables, RF (radio frequency), and the like, or any suitable combination of the foregoing.
In some implementations, the clients, servers may communicate using any currently known or future developed network protocol, such as HTTP (HyperText Transfer Protocol ), and may be interconnected with any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include a local area network ("LAN"), a wide area network ("WAN"), the internet (e.g., the internet), and peer-to-peer networks (e.g., ad hoc peer-to-peer networks), as well as any currently known or future developed networks.
The computer readable medium may be contained in the electronic device; or may exist alone without being incorporated into the electronic device. The computer readable medium carries one or more programs which, when executed by the electronic device, cause the electronic device to: determining a gateway communication information sequence corresponding to the gateway node, wherein the gateway communication information comprises: a communication identifier and a starting node identifier; for each gateway communication in the sequence of gateway communications, performing the steps of: performing anti-counterfeiting verification on the gateway communication information according to the initial identification information set and the communication identification included in the gateway communication information to generate a verification result; responding to the fact that the verification result represents that the gateway communication information passes anti-counterfeiting verification, and determining characteristic parameters corresponding to the gateway communication information according to a communication identifier and a starting node identifier included in the gateway communication information; searching a target routing table according to the characteristic parameters to determine a communication receiving node corresponding to the gateway communication information; and sending the gateway communication information to the communication receiving node.
Computer program code for carrying out operations for some embodiments of the present disclosure may be written in one or more programming languages, including an object oriented programming language such as Java, smalltalk, C ++ and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any kind of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or may be connected to an external computer (for example, through the Internet using an Internet service provider).
The flowcharts and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The units described in some embodiments of the present disclosure may be implemented by means of software, or may be implemented by means of hardware. The described units may also be provided in a processor, for example, described as: a processor includes an information determination unit and an information processing unit. The names of these units do not in any way constitute a limitation of the unit itself, for example the information determining unit may also be described as "unit determining the gateway communication information sequence corresponding to the gateway node".
The functions described above herein may be performed, at least in part, by one or more hardware logic components. For example, without limitation, exemplary types of hardware logic components that may be used include: a Field Programmable Gate Array (FPGA), an Application Specific Integrated Circuit (ASIC), an Application Specific Standard Product (ASSP), a system on a chip (SOC), a Complex Programmable Logic Device (CPLD), and the like.
Some embodiments of the present disclosure also provide a computer program product comprising a computer program which, when executed by a processor, implements any of the gateway information sending methods described above.
The foregoing description is only of the preferred embodiments of the present disclosure and description of the principles of the technology being employed. It will be appreciated by those skilled in the art that the scope of the invention in the embodiments of the present disclosure is not limited to the specific combination of the above technical features, but encompasses other technical features formed by any combination of the above technical features or their equivalents without departing from the spirit of the invention. Such as the above-described features, are mutually substituted with (but not limited to) the features having similar functions disclosed in the embodiments of the present disclosure.

Claims (7)

1. A gateway information sending method includes:
determining a gateway communication information sequence corresponding to the gateway node, wherein the gateway communication information comprises: a communication identifier and a starting node identifier;
for each gateway communication in the sequence of gateway communications, performing the steps of:
performing anti-counterfeiting verification on the gateway communication information according to the initial identification information set and the communication identification included in the gateway communication information to generate a verification result;
determining characteristic parameters corresponding to the gateway communication information according to the communication identifier and the initial node identifier included in the gateway communication information in response to the fact that the verification result represents that the gateway communication information passes anti-counterfeiting verification;
searching a target routing table according to the characteristic parameters to determine a communication receiving node corresponding to the gateway communication information;
transmitting the gateway communication information to the communication receiving node;
wherein, the determining the characteristic parameters corresponding to the gateway communication information according to the communication identifier and the initial node identifier included in the gateway communication information includes:
multiplying the value of the communication identifier included in the gateway communication information by the value of the initial node identifier to obtain a target identifier value;
And carrying out feature processing on the target identification value to obtain feature parameters corresponding to the gateway communication information.
2. The method of claim 1, wherein after performing anti-counterfeit verification on the gateway communication information according to the initial set of identification information and the communication identifier included in the gateway communication information to generate a verification result, the method further comprises:
and responding to the fact that the verification result indicates that the gateway communication information does not pass the anti-counterfeiting verification, and sending intrusion prompt information to display equipment, wherein the intrusion prompt information indicates that the target vehicle is intruded.
3. The method of claim 2, wherein the performing anti-counterfeit verification on the gateway communication information according to the initial set of identification information and the communication identifier included in the gateway communication information to generate a verification result includes:
generating a verification result representing that the gateway communication information passes anti-counterfeiting verification in response to determining that the initial identification information set meets a target condition, wherein the target condition is that an initial identification identical to a communication identification included in the gateway communication information exists in the initial identification set;
And generating a verification result representing that the gateway communication information fails the anti-counterfeiting verification in response to determining that the initial identification information set does not meet the target condition.
4. A method according to claim 3, wherein the target routing table is obtained by:
obtaining a sample communication set, wherein the sample communication includes: a sample identity, a sample start node identity and a sample receive node identity;
for each sample communication information in the sample communication information set, determining a sample characteristic corresponding to the sample communication information according to a sample identifier and a sample starting node identifier included in the sample communication information;
and taking a sample characteristic corresponding to each sample communication information in the sample communication information set as a row and taking a sample receiving node identifier included in the sample communication information as a column to obtain the target routing table.
5. An information transmitting apparatus comprising:
an information determining unit configured to determine a gateway communication information sequence corresponding to the gateway node, wherein the gateway communication information includes: a communication identifier and a starting node identifier;
an information processing unit configured to perform, for each gateway communication in the sequence of gateway communications, the steps of: performing anti-counterfeiting verification on the gateway communication information according to the initial identification information set and the communication identification included in the gateway communication information to generate a verification result; determining characteristic parameters corresponding to the gateway communication information according to the communication identifier and the initial node identifier included in the gateway communication information in response to the fact that the verification result represents that the gateway communication information passes anti-counterfeiting verification; searching a target routing table according to the characteristic parameters to determine a communication receiving node corresponding to the gateway communication information; transmitting the gateway communication information to the communication receiving node; wherein, the determining the characteristic parameters corresponding to the gateway communication information according to the communication identifier and the initial node identifier included in the gateway communication information includes: multiplying the value of the communication identifier included in the gateway communication information by the value of the initial node identifier to obtain a target identifier value; and carrying out feature processing on the target identification value to obtain feature parameters corresponding to the gateway communication information.
6. An electronic device, comprising:
one or more processors;
a storage device having one or more programs stored thereon;
when executed by the one or more processors, causes the one or more processors to implement the method of any of claims 1 to 4.
7. A computer readable medium having stored thereon a computer program, wherein the program when executed by a processor implements the method of any of claims 1 to 4.
CN202210743944.2A 2022-06-28 2022-06-28 Gateway information sending method, device, electronic equipment, medium and product Active CN115297046B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210743944.2A CN115297046B (en) 2022-06-28 2022-06-28 Gateway information sending method, device, electronic equipment, medium and product

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210743944.2A CN115297046B (en) 2022-06-28 2022-06-28 Gateway information sending method, device, electronic equipment, medium and product

Publications (2)

Publication Number Publication Date
CN115297046A CN115297046A (en) 2022-11-04
CN115297046B true CN115297046B (en) 2023-05-26

Family

ID=83820974

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210743944.2A Active CN115297046B (en) 2022-06-28 2022-06-28 Gateway information sending method, device, electronic equipment, medium and product

Country Status (1)

Country Link
CN (1) CN115297046B (en)

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112788060A (en) * 2021-01-29 2021-05-11 北京字跳网络技术有限公司 Data packet transmission method and device, storage medium and electronic equipment

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8130768B1 (en) * 2005-07-14 2012-03-06 Avaya Inc. Enhanced gateway for routing between networks
US10178033B2 (en) * 2017-04-11 2019-01-08 International Business Machines Corporation System and method for efficient traffic shaping and quota enforcement in a cluster environment
CN112333038A (en) * 2020-09-29 2021-02-05 北京软慧科技有限公司 Vehicle gateway detection method and device
CN113014489B (en) * 2020-12-31 2022-02-22 腾讯科技(深圳)有限公司 Data forwarding method and device, server and storage medium

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112788060A (en) * 2021-01-29 2021-05-11 北京字跳网络技术有限公司 Data packet transmission method and device, storage medium and electronic equipment

Also Published As

Publication number Publication date
CN115297046A (en) 2022-11-04

Similar Documents

Publication Publication Date Title
CN111581291A (en) Data processing method and device, electronic equipment and readable medium
CN114598530A (en) Industrial control firewall white list rule matching method and device and related equipment
CN114938395A (en) Service response method, device, equipment and storage medium
CN111858381B (en) Application fault tolerance capability test method, electronic device and medium
CN115297046B (en) Gateway information sending method, device, electronic equipment, medium and product
CN115102992A (en) Data distribution method and device, electronic equipment and computer readable medium
CN113765972A (en) Data request response method, device, system, server and storage medium
CN113240108A (en) Model training method and device and electronic equipment
CN111680754A (en) Image classification method and device, electronic equipment and computer-readable storage medium
CN113535428B (en) Method, device, equipment and medium for processing request message and response message
CN116938598B (en) Information transmission method, apparatus, electronic device, and computer-readable medium
CN113765692B (en) Current limiting method, device, electronic equipment and computer readable medium
CN115118727B (en) Data transmission method, device, equipment and storage medium of distributed computing architecture
CN111582482B (en) Method, apparatus, device and medium for generating network model information
CN117424764B (en) System resource access request information processing method and device, electronic equipment and medium
CN117692672B (en) Snapshot-based video information sending method and device, electronic equipment and medium
CN115309739B (en) Vehicle-mounted data retrieval method and device, electronic equipment, medium and product
CN114697206B (en) Method, device, equipment and computer readable medium for managing nodes of Internet of things
CN113076195B (en) Object shunting method and device, readable medium and electronic equipment
CN113849756A (en) Information generation method and device, electronic equipment and computer readable medium
CN114444064A (en) Account processing method and device, electronic equipment and computer readable medium
CN117149870A (en) Data importing method, device, electronic equipment and computer readable medium
CN113765877A (en) Session identification method and device, electronic equipment and computer readable medium
CN114172946A (en) Request result sending method and device, electronic equipment and computer readable medium
CN117520399A (en) Data storage method, apparatus, electronic device, and computer readable medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant