CN113346980B - Method, electronic device and computer storage medium for message forwarding - Google Patents

Method, electronic device and computer storage medium for message forwarding Download PDF

Info

Publication number
CN113346980B
CN113346980B CN202110878158.9A CN202110878158A CN113346980B CN 113346980 B CN113346980 B CN 113346980B CN 202110878158 A CN202110878158 A CN 202110878158A CN 113346980 B CN113346980 B CN 113346980B
Authority
CN
China
Prior art keywords
message
port
header portion
forwarding
physical address
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
CN202110878158.9A
Other languages
Chinese (zh)
Other versions
CN113346980A (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.)
Zhejiang Guoli Xin'an Technology Co ltd
Original Assignee
Zhejiang Guoli Xin'an 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 Zhejiang Guoli Xin'an Technology Co ltd filed Critical Zhejiang Guoli Xin'an Technology Co ltd
Priority to CN202110878158.9A priority Critical patent/CN113346980B/en
Publication of CN113346980A publication Critical patent/CN113346980A/en
Application granted granted Critical
Publication of CN113346980B publication Critical patent/CN113346980B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L1/00Arrangements for detecting or preventing errors in the information received
    • H04L1/004Arrangements for detecting or preventing errors in the information received by using forward error control
    • H04L1/0056Systems characterized by the type of code used
    • H04L1/0061Error detection codes
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L51/00User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail

Abstract

Embodiments of the present disclosure relate to a method for message forwarding, an electronic device, and a storage medium, and relate to the field of communications. According to the method, determining whether a header portion having a predetermined length and a check field for the header portion in a message are received via a first port; if it is determined that a header portion having a predetermined length and a check field for the header portion in the message received via the first port, determining whether the source physical address in the header portion is the same as the local physical address; if it is determined that the source physical address is different from the local physical address, determining whether the header portion passes the verification based on the verification field; and forwarding the message via the second port if the header portion is determined to pass the check. Thus, different messages can be forwarded according to a fixed forwarding delay and the forwarded messages are checked.

Description

Method, electronic device and computer storage medium for message forwarding
Technical Field
Embodiments of the present disclosure relate generally to the field of communications, and more particularly, to a method, electronic device, and computer storage medium for message forwarding.
Background
The EPA_SRB bus is a real-time Ethernet based on the EPA bus, and is characterized in that periodic communication is adopted when the system is in communication, and each communication period is one macro period. The macrocycle includes a cycle time and a non-cycle time. All devices in the system are synchronized under one time reference, i.e. all nodes are synchronized on the same time reference leg. One node in the system is a master clock node for providing a time reference, and the other nodes are slave clock nodes. All slave clock nodes need to carry out clock synchronous communication with the master clock node so as to realize the synchronization of the whole network.
There are three topologies in the epa_srb network: ring topology, star topology, linear topology. The ring topology structure is that all nodes in the system form a ring structure, and each node and the main node perform time synchronization and data communication through forwarding information. In the network transmission process, error codes exist due to the environment, and the traditional message forwarding scheme does not perform forwarding safety detection, so that the message forwarding process is unreliable. And the traditional store-and-forward mode generates different forwarding delays for different messages. Thus, a large error may be caused in time synchronization, so that data errors are caused in information transmission.
Disclosure of Invention
A method, an electronic device, and a computer storage medium for message forwarding are provided that are capable of forwarding different messages with a fixed forwarding delay and the forwarded messages are verified.
According to a first aspect of the present disclosure, a method for message forwarding is provided. The method comprises the following steps: determining whether a header portion having a predetermined length and a check field for the header portion in a message are received via the first port; if it is determined that a header portion having a predetermined length and a check field for the header portion in the message received via the first port, determining whether the source physical address in the header portion is the same as the local physical address; if it is determined that the source physical address is different from the local physical address, determining whether the header portion passes the verification based on the verification field; and forwarding the message via the second port if the header portion is determined to pass the check.
According to a second aspect of the present disclosure, a method for message forwarding is provided. The method comprises the following steps: if it is determined that the source physical address in the message is received via the first port, determining whether the source physical address is the same as the local physical address; if it is determined that the source physical address is different from the local physical address, determining whether a header portion of a predetermined length and a check field for the header portion in the message are received via the first port, the header portion including at least the source physical address; if it is determined that the header portion and the check field are received via the first port, determining whether the header portion passes the check based on the check field; and forwarding the message via the second port if the header portion is determined to pass the check.
According to a third aspect of the present disclosure, an electronic device is provided. The electronic device includes: at least one processor; and a memory communicatively coupled to the at least one processor; wherein the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the method according to the first or second aspect of the present disclosure.
In a fourth aspect of the present disclosure, there is provided a computer readable storage medium having stored thereon a computer program which when executed by a processor implements a method according to the first or second aspect of the present disclosure.
It should be understood that the description in this section is not intended to identify key or critical features of the embodiments of the disclosure, nor is it intended to be used to limit the scope of the disclosure. Other features of the present disclosure will become apparent from the following specification.
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. In the drawings, the same or similar reference numerals denote the same or similar elements.
Fig. 1 is a schematic block diagram of a communication system 100 according to an embodiment of the present disclosure.
Fig. 2 is a schematic diagram of a method 200 for message forwarding according to an embodiment of the present disclosure.
Fig. 3 is a schematic diagram of a method 300 for message forwarding according to an embodiment of the present disclosure.
Fig. 4 is a schematic diagram of a message 400 according to an embodiment of the present disclosure.
Fig. 5 is a schematic diagram of a method 500 for forwarding a message via a second port according to an embodiment of the disclosure.
Fig. 6 is a schematic block diagram of an electronic device for implementing a method for message forwarding in accordance with an embodiment of the present disclosure.
Detailed Description
Exemplary embodiments of the present disclosure are described below in conjunction with the accompanying drawings, which include various details of the embodiments of the present disclosure to facilitate understanding, and should be considered as merely exemplary. Accordingly, one of ordinary skill in the art will recognize that various changes and modifications of the embodiments described herein can be made without departing from the scope and spirit of the present disclosure. Also, descriptions of well-known functions and constructions are omitted in the following description for clarity and conciseness.
The term "comprising" and variations thereof as used herein means open ended, i.e., "including but not limited to. The term "or" means "and/or" unless specifically stated otherwise. The term "based on" means "based at least in part on". The terms "one example embodiment" and "one embodiment" mean "at least one example embodiment. The term "another embodiment" means "at least one additional embodiment". The terms "first," "second," and the like, may refer to different or the same object. Other explicit and implicit definitions are also possible below.
As described above, the conventional forwarding message scheme does not perform forwarding security detection, making the forwarding message process unreliable. And the traditional store-and-forward mode generates different forwarding delays for different messages.
To at least partially address one or more of the above problems, as well as other potential problems, example embodiments of the present disclosure propose a solution for message forwarding. In this scheme, it is determined whether a header portion having a predetermined length and a check field for the header portion in a message are received via a first port; if it is determined that a header portion having a predetermined length and a check field for the header portion in the message received via the first port, determining whether the source physical address in the header portion is the same as the local physical address; if it is determined that the source physical address is different from the local physical address, determining whether the header portion passes the verification based on the verification field; and forwarding the message via the second port if the header portion is determined to pass the check.
Example embodiments of the present disclosure also provide another approach for message forwarding. In this scheme, if it is determined that the source physical address in the message is received via the first port, it is determined whether the source physical address is identical to the local physical address; if it is determined that the source physical address is different from the local physical address, determining whether a header portion of a predetermined length and a check field for the header portion in the message are received via the first port, the header portion including at least the source physical address; if it is determined that the header portion and the check field are received via the first port, determining whether the header portion passes the check based on the check field; and forwarding the message via the second port if the header portion is determined to pass the check.
In this way, the forwarding decision is made after the header portion having the predetermined length and the check field for the header portion in the message are received, the forwarding is not required until all the messages are received, different messages can be forwarded according to the fixed forwarding delay, and the forwarded messages are checked.
Hereinafter, specific examples of the present scheme will be described in more detail with reference to the accompanying drawings.
Fig. 1 shows a schematic block diagram of a communication system 100 according to an embodiment of the present disclosure. The communication system 100 may include a plurality of electronic devices 110-1 through 110-4 (hereinafter collectively referred to as 110). It should be appreciated that while fig. 1 shows 4 electronic devices 110, this is merely illustrative and the number of electronic devices 110 may be greater or lesser.
As shown in fig. 1, electronic devices 110 each include two ports a and B. The electronic device 110 forms a ring topology via the two ports a and B. It should be understood that this is by way of example only, and that other topologies, such as linear topologies and the like, may be employed.
Electronic device 110 may include, but is not limited to, an EPA device, such as an EPA_SRB device. The communication system 100 may be an EPA system or a network.
The electronic device 110 may be configured to determine whether a header portion of a predetermined length and a check field for the header portion in a message is received via the first port; if it is determined that a header portion having a predetermined length and a check field for the header portion in the message received via the first port, determining whether the source physical address in the header portion is the same as the local physical address; if it is determined that the source physical address is different from the local physical address, determining whether the header portion passes the verification based on the verification field; and forwarding the message via the second port if the header portion is determined to pass the check.
Alternatively, the electronic device 110 may be configured to determine if the source physical address is the same as the local physical address if it is determined that the source physical address in the message was received via the first port; if it is determined that the source physical address is different from the local physical address, determining whether a header portion of a predetermined length and a check field for the header portion in the message are received via the first port, the header portion including at least the source physical address; if it is determined that the header portion and the check field are received via the first port, determining whether the header portion passes the check based on the check field; and forwarding the message via the second port if the header portion is determined to pass the check.
Therefore, the forwarding decision is made after the header part with the preset length and the check field aiming at the header part in the message are received, the forwarding is performed without waiting until all the messages are received, different messages can be forwarded according to fixed forwarding delay, and the forwarded messages are checked.
Fig. 2 illustrates a flow chart of a method 200 for message forwarding according to an embodiment of the present disclosure. For example, the method 200 may be performed by the electronic device 110 as shown in fig. 1. It should be understood that method 200 may also include additional blocks not shown and/or that the blocks shown may be omitted, the scope of the disclosure being not limited in this respect.
At block 202, the electronic device 110 determines whether a header portion of a predetermined length and a check field for the header portion in a message is received via the first port.
Fig. 4 shows a schematic diagram of a message 400 according to an embodiment of the present disclosure. As shown in fig. 4, a message 400 may include a header portion 410, a check field 420 for the header portion 410, and other data 430. It should be understood that other suitable structures may be employed for the messages of the present disclosure, and the scope of the present disclosure is not limited in this respect.
Header portion 410 may include a 6-byte destination physical address, a 6-byte source physical address, a 2-byte protocol TYPE, a 0.5-byte protocol version number, a 0.5-byte message header length HL, a 0.5-byte service sequence number SID, and a 0.5-byte service sequence number correspondence TYPE of 16 bytes total.
The check field 420 may have, for example, 2 bytes, which may be implemented using a CRC check, hash, parity, or the like.
If the electronic device 110 determines at block 202 that a header portion of a predetermined length and a check field for the header portion in a message were received via the first port, a determination is made at block 204 as to whether the source physical address and the local physical address in the header portion are the same.
If the electronic device 110 determines at block 204 that the source physical address is different from the local physical address, then at block 206, a determination is made as to whether the header portion passes the check based on the check field.
For example, if the check field is a CRC check field, then it is assumed whether the CRC check header portion is identical to the check field, if so, then the check is passed, and if not, then the check is not passed.
Also, if the check field is a hash check field, a hash result is calculated for the header portion, it is determined whether the hash result is the same as the check field, if so, the check is passed, and if not, the check is not passed.
If the electronic device 110 determines that the header portion passes the check at block 206, the message is forwarded via the second port at block 208.
If the electronic device 110 determines at block 204 that the source physical address is the same as the local physical address or that the header portion fails verification at block 206, the message is not forwarded.
For example, an ethernet message is illustrated with a frame gap of 12 bytes, a preamble of 7 bytes, a start code of 1 byte, a header portion of 16 bytes and a check field of 2 bytes, and the total forwarding delay is the receive delay and the processing delay for 38 (12+7+1+16+2) bytes, so that the forwarding delay is fixed.
Therefore, the forwarding decision is made after the header part with the preset length and the check field aiming at the header part in the message are received, the forwarding is performed without waiting until all the messages are received, different messages can be forwarded according to fixed forwarding delay, and the forwarded messages are checked. Different messages have fixed forwarding delay, so that the time synchronization precision is higher, further, network storm caused by address errors of the traditional ring network is restrained, and the traditional direct forwarding or the fragment-free forwarding is performed before, and if the source physical address transmission process is wrong in the ring network, the network storm is formed due to the fact that verification is not performed. In addition, since the message is not forwarded when the source physical address is the same as the local physical address, message collision or network storm caused by message circulation in the network is avoided.
Fig. 3 illustrates a flow chart of a method 300 for message forwarding according to an embodiment of the present disclosure. For example, the method 300 may be performed by the electronic device 110 as shown in fig. 1. It should be understood that method 300 may also include additional blocks not shown and/or that the blocks shown may be omitted, the scope of the disclosure being not limited in this respect.
At block 302, the electronic device 110 determines whether a source physical address in a message is received via a first port.
The source physical address is located, for example, at a predetermined location in the message.
If the electronic device 110 determines at block 302 that the source physical address in the message was received via the first port, then a determination is made at block 304 as to whether the source physical address is the same as the local physical address.
If the electronic device 110 determines at block 304 that the source physical address is different from the local physical address, then at block 306 it is determined whether a header portion of a predetermined length and a check field for the header portion in the message is received via the first port, the header portion including at least the source physical address.
If electronic device 110 determines at block 306 that the header portion and the check field are received via the first port, then at block 308, a determination is made as to whether the header portion passes the check based on the check field.
The verification method can be referred to above, and will not be described herein.
If electronic device 110 determines that the header portion passes the check at block 308, the message is forwarded via the second port at block 310.
Therefore, the forwarding decision is made after the header part with the preset length and the check field aiming at the header part in the message are received, the forwarding is performed without waiting until all the messages are received, different messages can be forwarded according to fixed forwarding delay, and the forwarded messages are checked. Different messages have fixed forwarding delay, so that the time synchronization precision is higher, further, network storm caused by address errors of the traditional ring network is restrained, and the traditional direct forwarding or the fragment-free forwarding is performed before, and if the source physical address transmission process is wrong in the ring network, the network storm is formed due to the fact that verification is not performed. In addition, since the message is not forwarded when the source physical address is the same as the local physical address, message collision or network storm caused by message circulation in the network is avoided. In addition, before the header part and the check field are received, whether the local physical address is judged to be the local physical address or not is judged to carry out forwarding decision after the source physical address in the message is received, so that the processing efficiency can be improved, and the forwarding delay can be further reduced.
Fig. 5 illustrates a flow chart of a method 500 for forwarding a message via a second port according to an embodiment of the present disclosure. For example, the method 500 may be performed by the electronic device 110 as shown in fig. 1. It should be understood that method 500 may also include additional blocks not shown and/or that the blocks shown may be omitted, the scope of the disclosure being not limited in this respect.
At block 502, the electronic device 110 determines whether the current time is within a period time within the EPA macrocycle.
If the electronic device 110 determines at block 502 that the current time is within a period time within the EPA macrocycle, then a determination is made at block 504 as to whether the message is an EPA message.
If the electronic device 110 determines that the message is an EPA message at block 504 or if the electronic device 110 determines that the current time is not within a period time within the EPA macrocycle at block 502, the message is forwarded via the second port at block 506.
Thus, the EPA message can be forwarded within the period time of the EPA macrocycle, and the non-EPA message is prevented from being forwarded, so that the forwarding efficiency of the EPA message within the period time is improved. In addition, the influence of other messages on the real-time data in the EPA system is eliminated, and the real-time performance of the EPA system in the EPA cycle time is ensured.
The message also typically includes a preamble, such as an ethernet preamble, for receipt by the recipient. During the process of receiving the message, there may be a situation that the preamble is lost, which results in packet loss of the forwarded message.
In some embodiments, the electronic device 110 may determine whether the number of preambles of the message is less than a predetermined number. The predetermined number includes, for example, but is not limited to, 7.
If the electronic device 110 determines that the number of preambles of the message is less than the predetermined number, the preamble of the message is complemented to the predetermined number to generate a preamble-complemented message. The electronic device 110 then forwards the preamble-complemented message via the second port.
Therefore, the missing preamble in the message is filled up and then the message is forwarded, and the problem of message packet loss caused by the missing preamble is avoided.
Alternatively, the electronic device 110 may replace the preamble of the message with a predetermined number of preambles to generate a preamble replaced message. Subsequently, the electronic device 110 forwards the preamble replaced message via the second port.
Therefore, the message is forwarded after the preamble of the message is directly replaced, and the problem of packet loss of the message caused by the lack of the preamble is avoided.
Fig. 6 shows a schematic block diagram of an example device 600 that may be used to implement embodiments of the present disclosure. For example, electronic device 110 as shown in FIG. 1 may be implemented by device 600. As shown, the device 600 includes a Central Processing Unit (CPU) 601 that can perform various suitable actions and processes in accordance with computer program instructions stored in a Read Only Memory (ROM) 602 or loaded from a storage unit 608 into a Random Access Memory (RAM) 603. In the random access memory 603, various programs and data required for the operation of the device 600 may also be stored. The central processing unit 601, the read only memory 602, and the random access memory 603 are connected to each other through a bus 604. An input/output (I/O) interface 605 is also connected to bus 604.
The various components in the device 600 are connected to an input/output interface 605, including: an input unit 606 such as a keyboard, mouse, microphone, etc.; an output unit 607 such as various types of displays, speakers, and the like; a storage unit 608, such as a magnetic disk, optical disk, or the like; and a communication unit 609 such as a network card, modem, wireless communication transceiver, etc. The communication unit 609 allows the device 600 to exchange information/data with other devices via a computer network, such as the internet, and/or various telecommunication networks.
The various processes and treatments described above, such as methods 200, 300, 500, may be performed by the central processing unit 601. For example, in some embodiments, the methods 200, 300, 500 may be implemented as a computer software program tangibly embodied on a machine-readable medium, such as the storage unit 608. In some embodiments, part or all of the computer program may be loaded and/or installed onto device 600 via read only memory 602 and/or communication unit 609. One or more of the acts of the methods 200, 300, 500 described above may be performed when a computer program is loaded into the random access memory 603 and executed by the central processing unit 601.
The present disclosure relates to methods, apparatus, systems, electronic devices, computer readable storage media, and/or computer program products. The computer program product may include computer readable program instructions for performing various aspects of the present disclosure.
The computer readable storage medium may be a tangible device that can hold and store instructions for use by an instruction execution device. The computer readable storage medium may be, for example, but not limited to, an electronic storage device, a magnetic storage device, an optical storage device, an electromagnetic storage device, a semiconductor storage device, or any suitable combination of the foregoing. More specific examples (a non-exhaustive list) of the computer-readable storage medium would include the following: portable computer disks, hard disks, random Access Memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), static Random Access Memory (SRAM), portable compact disk read-only memory (CD-ROM), digital Versatile Disks (DVD), memory sticks, floppy disks, mechanical coding devices, punch cards or in-groove structures such as punch cards or grooves having instructions stored thereon, and any suitable combination of the foregoing. Computer-readable storage media, as used herein, are not to be construed as transitory signals per se, such as radio waves or other freely propagating electromagnetic waves, electromagnetic waves propagating through waveguides or other transmission media (e.g., optical pulses through fiber optic cables), or electrical signals transmitted through wires.
The computer readable program instructions described herein may be downloaded from a computer readable storage medium to a respective computing/processing device or to an external computer or external storage device over a network, such as the internet, a local area network, a wide area network, and/or a wireless network. The network may include copper transmission cables, fiber optic transmissions, wireless transmissions, routers, firewalls, switches, gateway computers and/or edge servers. The network interface card or network interface in each computing/processing device receives computer readable program instructions from the network and forwards the computer readable program instructions for storage in a computer readable storage medium in the respective computing/processing device.
Computer program instructions for performing the operations of the present disclosure can be assembly instructions, instruction Set Architecture (ISA) instructions, machine-related instructions, microcode, firmware instructions, state setting data, or source or object code written in any combination of one or more programming languages, including an object oriented programming language such as Smalltalk, c++ or the like and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The computer readable program instructions may be executed 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). In some embodiments, aspects of the present disclosure are implemented by personalizing electronic circuitry, such as programmable logic circuitry, field Programmable Gate Arrays (FPGAs), or Programmable Logic Arrays (PLAs), with state information of computer readable program instructions, which can execute the computer readable program instructions.
Various aspects of the present disclosure are described herein with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems) and computer program products according to embodiments of the disclosure. It will be understood that each block of the flowchart illustrations and/or block diagrams, and combinations of blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer-readable program instructions.
These computer readable program instructions may be provided to a processing unit of a general purpose computer, special purpose computer, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processing unit of the computer or other programmable data processing apparatus, create means for implementing the functions/acts specified in the flowchart and/or block diagram block or blocks. These computer readable program instructions may also be stored in a computer readable storage medium that can direct a computer, programmable data processing apparatus, and/or other devices to function in a particular manner, such that the computer readable medium having the instructions stored therein includes an article of manufacture including instructions which implement the function/act specified in the flowchart and/or block diagram block or blocks.
The computer readable program instructions may also be loaded onto a computer, other programmable data processing apparatus, or other devices to cause a series of operational steps to be performed on the computer, other programmable apparatus or other devices to produce a computer implemented process such that the instructions which execute on the computer, other programmable apparatus or other devices implement the functions/acts specified in the flowchart and/or block diagram block or blocks.
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 instructions, which comprises one or more executable instructions for implementing the specified logical function(s). 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 foregoing description of the embodiments of the present disclosure has been presented for purposes of illustration and description, and is not intended to be exhaustive or limited to the embodiments disclosed. Many modifications and variations will be apparent to those of ordinary skill in the art without departing from the scope and spirit of the various embodiments described. The terminology used herein was chosen in order to best explain the principles of the embodiments, the practical application, or the technical improvement of the technology in the marketplace, or to enable others of ordinary skill in the art to understand the embodiments disclosed herein.

Claims (8)

1. A method for message forwarding, comprising:
determining whether a header portion of a predetermined length and a check field for the header portion in a message have been received via a first port, but not all messages have been received;
if it is determined that a header portion of a predetermined length and a check field for the header portion in the message are received via the first port and that all messages have not been received, determining whether a source physical address in the header portion is the same as a local physical address;
if it is determined that the source physical address is different from the local physical address, determining whether the header portion passes a check based on the check field; and
forwarding the message via a second port if it is determined that the header portion passes the check;
wherein forwarding the message via the second port comprises:
determining whether the number of preambles of the message is less than a predetermined number;
if it is determined that the number of preambles of the message is less than a predetermined number, complementing the preamble of the message to the predetermined number to generate a preamble-complemented message; and
and forwarding the message with the complemented preamble through the second port.
2. A method for message forwarding, comprising:
if it is determined that the source physical address in the message is received via the first port, determining whether the source physical address is the same as the local physical address;
if it is determined that the source physical address is different from the local physical address, determining whether a header portion of the message having a predetermined length and a check field for the header portion, including at least the source physical address, are received via the first port, and not all messages have been received;
if it is determined that the header portion and the check field are received via the first port but not all messages have been received, determining whether the header portion passes a check based on the check field; and
forwarding the message via a second port if it is determined that the header portion passes the check;
wherein forwarding the message via the second port comprises:
determining whether the number of preambles of the message is less than a predetermined number;
if it is determined that the number of preambles of the message is less than a predetermined number, complementing the preamble of the message to the predetermined number to generate a preamble-complemented message; and
and forwarding the message with the complemented preamble through the second port.
3. The method of claim 1 or 2, wherein forwarding the message via the second port comprises:
determining whether the current time is within a period time within the EPA macrocycle;
if it is determined that the current time is within the period time within the EPA macrocycle, determining whether the message is an EPA message;
forwarding the message via the second port if it is determined that the message is an EPA message; and
if it is determined that the current time is not within the period time within the EPA macrocycle, the message is forwarded via the second port.
4. The method of claim 1 or 2, wherein forwarding the message via the second port comprises:
replacing the preamble of the message with a predetermined number of preambles to generate a preamble replaced message; and
forwarding the preamble replaced message via the second port.
5. The method of claim 1 or 2, wherein the first port and the second port are connected to a ring topology network or a linear topology network.
6. The method of claim 5, wherein the ring topology network or the linear topology network is an EPA network.
7. An electronic device, comprising:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein, the liquid crystal display device comprises a liquid crystal display device,
the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the method of any one of claims 1-6.
8. A non-transitory computer readable storage medium storing computer instructions for causing the computer to perform the method of any one of claims 1-6.
CN202110878158.9A 2021-08-02 2021-08-02 Method, electronic device and computer storage medium for message forwarding Active CN113346980B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110878158.9A CN113346980B (en) 2021-08-02 2021-08-02 Method, electronic device and computer storage medium for message forwarding

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110878158.9A CN113346980B (en) 2021-08-02 2021-08-02 Method, electronic device and computer storage medium for message forwarding

Publications (2)

Publication Number Publication Date
CN113346980A CN113346980A (en) 2021-09-03
CN113346980B true CN113346980B (en) 2023-08-11

Family

ID=77480536

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110878158.9A Active CN113346980B (en) 2021-08-02 2021-08-02 Method, electronic device and computer storage medium for message forwarding

Country Status (1)

Country Link
CN (1) CN113346980B (en)

Citations (18)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2005117246A (en) * 2003-10-06 2005-04-28 Matsushita Electric Works Ltd Packet-discriminating apparatus
CN1728750A (en) * 2004-07-27 2006-02-01 邓里文 Method of packet voice communication
CN101631080A (en) * 2009-08-14 2010-01-20 重庆邮电大学 Industrial Ethernet switch based on EPA protocol and message forwarding method
CN101907882A (en) * 2010-06-08 2010-12-08 浙江中控电气技术有限公司 Multi-shaft DC servo motor control system and method based on EPA (Ethernet for Plant Automation) field bus
CN101989943A (en) * 2009-07-31 2011-03-23 Abb研究有限公司 Data transmission in a ring-type communication network
CN102006231A (en) * 2010-11-23 2011-04-06 北京华环电子股份有限公司 Method and device for establishing intelligent route of data service network element as well as data service transmission apparatus
CN103532854A (en) * 2013-10-22 2014-01-22 迈普通信技术股份有限公司 Storage and forwarding method and device of message
CN103891233A (en) * 2011-08-15 2014-06-25 马维尔国际贸易有限公司 Long range WLAN data unit format
CN105471861A (en) * 2015-11-19 2016-04-06 上海应用技术学院 Dynamic message packaging method and dynamic tunnel construction method
CN106254381A (en) * 2016-09-12 2016-12-21 全球能源互联网研究院 Protocol analysis method, device and comprise the Layer2 switching system of protocol analysis device
USRE46439E1 (en) * 1997-03-10 2017-06-13 Dropbox, Inc. Distributed administration of access to information and interface for same
CN106850143A (en) * 2013-11-04 2017-06-13 上海数字电视国家工程研究中心有限公司 The method for packing and method of calibration of packet
CN107370674A (en) * 2016-05-13 2017-11-21 华为技术有限公司 A kind of method, apparatus and system of data transfer
CN109617813A (en) * 2017-09-29 2019-04-12 费希尔-罗斯蒙特系统公司 The intelligent process control switch port of enhancing locks
CN109951425A (en) * 2017-12-21 2019-06-28 张家界航空工业职业技术学院 TCP flow state integrity detection method based on FPGA
CN111133701A (en) * 2017-07-31 2020-05-08 三菱电机株式会社 Reliable cut-through switching for time sensitive networks
CN111131085A (en) * 2019-12-10 2020-05-08 苏州浪潮智能科技有限公司 Method, equipment and medium for detecting network loop based on SONiC
CN112764407A (en) * 2021-04-09 2021-05-07 浙江国利信安科技有限公司 Distributed control non-periodic communication method

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8306060B2 (en) * 2006-11-07 2012-11-06 Samsung Electronics Co., Ltd. System and method for wireless communication of uncompressed video having a composite frame format
SG183883A1 (en) * 2010-03-04 2012-10-30 Amarin Pharma Inc Compositions and methods for treating and/or preventing cardiovascular disease
DE102019210226A1 (en) * 2019-07-10 2021-01-14 Robert Bosch Gmbh Device and method for attack detection in a communications network

Patent Citations (18)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
USRE46439E1 (en) * 1997-03-10 2017-06-13 Dropbox, Inc. Distributed administration of access to information and interface for same
JP2005117246A (en) * 2003-10-06 2005-04-28 Matsushita Electric Works Ltd Packet-discriminating apparatus
CN1728750A (en) * 2004-07-27 2006-02-01 邓里文 Method of packet voice communication
CN101989943A (en) * 2009-07-31 2011-03-23 Abb研究有限公司 Data transmission in a ring-type communication network
CN101631080A (en) * 2009-08-14 2010-01-20 重庆邮电大学 Industrial Ethernet switch based on EPA protocol and message forwarding method
CN101907882A (en) * 2010-06-08 2010-12-08 浙江中控电气技术有限公司 Multi-shaft DC servo motor control system and method based on EPA (Ethernet for Plant Automation) field bus
CN102006231A (en) * 2010-11-23 2011-04-06 北京华环电子股份有限公司 Method and device for establishing intelligent route of data service network element as well as data service transmission apparatus
CN103891233A (en) * 2011-08-15 2014-06-25 马维尔国际贸易有限公司 Long range WLAN data unit format
CN103532854A (en) * 2013-10-22 2014-01-22 迈普通信技术股份有限公司 Storage and forwarding method and device of message
CN106850143A (en) * 2013-11-04 2017-06-13 上海数字电视国家工程研究中心有限公司 The method for packing and method of calibration of packet
CN105471861A (en) * 2015-11-19 2016-04-06 上海应用技术学院 Dynamic message packaging method and dynamic tunnel construction method
CN107370674A (en) * 2016-05-13 2017-11-21 华为技术有限公司 A kind of method, apparatus and system of data transfer
CN106254381A (en) * 2016-09-12 2016-12-21 全球能源互联网研究院 Protocol analysis method, device and comprise the Layer2 switching system of protocol analysis device
CN111133701A (en) * 2017-07-31 2020-05-08 三菱电机株式会社 Reliable cut-through switching for time sensitive networks
CN109617813A (en) * 2017-09-29 2019-04-12 费希尔-罗斯蒙特系统公司 The intelligent process control switch port of enhancing locks
CN109951425A (en) * 2017-12-21 2019-06-28 张家界航空工业职业技术学院 TCP flow state integrity detection method based on FPGA
CN111131085A (en) * 2019-12-10 2020-05-08 苏州浪潮智能科技有限公司 Method, equipment and medium for detecting network loop based on SONiC
CN112764407A (en) * 2021-04-09 2021-05-07 浙江国利信安科技有限公司 Distributed control non-periodic communication method

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
"A design of self-authenticated Internet Protocol for Network Access Control";Parinya Thamthawornsakul et al;《2016 13th International Conference on Electrical Engineering/Electronics, Computer, Telecommunications and Information Technology (ECTI-CON)》;全文 *

Also Published As

Publication number Publication date
CN113346980A (en) 2021-09-03

Similar Documents

Publication Publication Date Title
US9578141B2 (en) Packet flow modification
CN113364638B (en) Method, electronic device and storage medium for EPA networking
EP4304149A2 (en) Method and network device for routing processing
CN111614580A (en) Data forwarding method, device and equipment
EP4044529A1 (en) Detnet data packet processing method and apparatus
CN113572560B (en) Method, electronic device, and storage medium for determining clock synchronization accuracy
US10673697B2 (en) Bridging configuration changes for compliant devices
CN107181689B (en) Message interaction method and device between routers
CN113346980B (en) Method, electronic device and computer storage medium for message forwarding
US10284336B2 (en) Error detection for wormhole routing
US11343153B2 (en) BGP logical topology generation method, and device
CN115882996B (en) Clock synchronization method, device and medium
CN113346974B (en) Method, apparatus, communication system and storage medium for clock synchronization
US20230367734A1 (en) Securing network access using dynamically generated baud-rates
EP3107231A1 (en) Data processing method and device
US20070299963A1 (en) Detection of inconsistent data in communications networks
CN109995603B (en) Method and device for measuring packet loss under Tag model and electronic equipment
US10454715B1 (en) Virtual private wire service interworking
CN113556414B (en) Method, gateway device and storage medium for inter-network communication
US10237083B2 (en) RBridge for routing and forwarding a data packet
EP3550785B1 (en) Message processing method and network device
CN111510384B (en) Method, electronic device and computer-readable medium for processing data generated by a service
WO2019149280A1 (en) Method for generating synchronization message, synchronization apparatus, and computer readable storage medium
WO2018130139A1 (en) Potn service processing method, device and system
CN114257508B (en) Method, gateway, communication system and storage medium for equipment maintenance locking

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