CN113949622A - Network communication method, system, device and computer readable storage medium - Google Patents

Network communication method, system, device and computer readable storage medium Download PDF

Info

Publication number
CN113949622A
CN113949622A CN202111207991.7A CN202111207991A CN113949622A CN 113949622 A CN113949622 A CN 113949622A CN 202111207991 A CN202111207991 A CN 202111207991A CN 113949622 A CN113949622 A CN 113949622A
Authority
CN
China
Prior art keywords
processor
communication data
switch
communication
board card
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.)
Pending
Application number
CN202111207991.7A
Other languages
Chinese (zh)
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.)
Hunan Xing Tian Electronic Technology Co ltd
Original Assignee
Hunan Xing Tian Electronic 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 Hunan Xing Tian Electronic Technology Co ltd filed Critical Hunan Xing Tian Electronic Technology Co ltd
Priority to CN202111207991.7A priority Critical patent/CN113949622A/en
Publication of CN113949622A publication Critical patent/CN113949622A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/06Management of faults, events, alarms or notifications
    • H04L41/0654Management of faults, events, alarms or notifications using network fault recovery
    • H04L41/0663Performing the actions predefined by failover planning, e.g. switching to standby network elements
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/22Parsing or analysis of headers

Abstract

The embodiment of the invention discloses a network communication method, a system, a device and a computer readable storage medium, wherein a target processor is applied to a first board card of a network communication system, the first board card is internally provided with a first processor and a second processor, the target processor is all processors in a working mode in the first board card, the network communication system also comprises a first switch, and the first board card is used for being in communication connection with a first service end; the method comprises the following steps: receiving multiple groups of communication data sent by the first switch according to a preset multicast forwarding scheduling table; performing redundancy removal processing on all communication data according to the message serial numbers of all groups of communication data to obtain a target communication data packet; and sending the target communication data packet to the first service end. The plurality of processors are arranged in the board card, so that the condition that when one processor in the board card breaks down, the system cannot normally communicate is avoided, and the reliability of the time-triggered Ethernet network system is greatly improved.

Description

Network communication method, system, device and computer readable storage medium
Technical Field
The present invention relates to the field of computer network communication, and in particular, to a network communication method, system, device, and computer-readable storage medium.
Background
The network topology structure of the current Time Triggered Ethernet (TTE for short) mainly includes a single-hop single channel, a single-hop multi-channel, a multi-hop single channel and a multi-hop multi-channel structure.
The TTE network system mainly comprises a terminal processor node and a central switch, and an upper computer configures synchronous parameters and a time scheduling table of each node through a serial port or a network port. And after the system completes synchronization, each terminal processor completes data interaction of the service frame through the central switch according to the time scheduling table information.
In the existing multi-hop multi-channel system, when a processor sends TT data frames, the processor supports the same data frame sent from two redundant network ports at the same time. And after being respectively forwarded by the two TTE switches according to the scheduling table, the target terminal processor can respectively receive the same data frame from the two redundant network ports simultaneously. According to the TTE standard, a receiving end only receives and processes one data frame according to a redundancy removing algorithm. Therefore, the link-level fault protection can be realized, and the service communication is not influenced by the fault of any physical link or switch.
However, when the terminal processor node fails, the application layer of the service end cannot operate normally.
Disclosure of Invention
In order to solve the foregoing technical problem, embodiments of the present application provide a network communication system, a method, an apparatus, and a computer-readable storage medium, and the specific scheme is as follows:
in a first aspect, an embodiment of the present application provides a network communication method, which is applied to a target processor in a first board card of a network communication system, where the first board card is internally provided with a first processor and a second processor, the target processor is all processors in a working mode in the first board card, and the network communication system further includes a first switch, where the first board card is used for being in communication connection with a first service end; the method comprises the following steps:
receiving multiple groups of communication data sent by the first switch according to a preset multicast forwarding scheduling table;
performing redundancy removal processing on all communication data according to the message serial numbers of all groups of communication data to obtain a target communication data packet;
and sending the target communication data packet to the first service end.
According to a specific implementation manner of the embodiment of the present application, the step of performing redundancy removal processing on all communication data according to the packet sequence numbers of each group of communication data to obtain a target communication data packet includes:
comparing whether the message serial numbers of the communication data in each group of communication data are the same;
deriving a target communication data packet from the communication data with the same message serial number;
and respectively exporting the communication data with different message serial numbers to a corresponding target communication data packet.
In a second aspect, an embodiment of the present application provides a network communication method, which is applied to a first switch of a network communication system, where the network communication system further includes a first board card and a second board card, the first board card is in communication connection with a network port at a sending end of the first switch, the second board card is in communication connection with a network port at a receiving end of the network communication system, the first board card includes a first processor and a second processor, the second board card includes a third processor and a fourth processor, and the method includes:
sequentially receiving each group of communication data sent by the third processor and the fourth processor;
and synchronously multicasting each group of communication data to the first processor and the second processor in sequence according to a preset multicast forwarding scheduling table.
According to a specific implementation manner of the embodiment of the present application, the step of synchronously multicasting each group of the communication data to the first processor and the second processor in sequence according to a preset multicast forwarding schedule includes:
generating a multicast forwarding scheduling table corresponding to each group of communication data according to the receiving sequence, wherein the sequence of the sending time of each group of communication data in the multicast forwarding scheduling table is consistent with the receiving sequence;
and according to the multicast forwarding scheduling table, synchronously multicasting each group of communication data to the first processor and the second processor at each sending time in sequence.
In a third aspect, an embodiment of the present application further provides a network communication system, where the system includes: the system comprises a first service end, a second service end, a first board card, a second board card and a first switch, wherein the first board card comprises a first processor and a second processor, and the second board card comprises a third processor and a fourth processor;
the third processor and the fourth processor are respectively in communication connection with the second service end and are used for receiving communication data sent by the second service end;
the third processor and the fourth processor are respectively in communication connection with a receiving end network port of the first switch and used for sending communication data to the first switch;
the first processor and the second processor are respectively in communication connection with a network port of a sending end of the first switch and are used for receiving multiple groups of communication data sent by the first switch according to a preset multicast forwarding scheduling table;
the first processor and the second processor are respectively in communication connection with the first service end and used for sending a target communication data packet to the first service end.
According to a specific implementation manner of the embodiment of the present application, the system further includes a second switch;
the third processor and the fourth processor are respectively in communication connection with a receiving end network port of the second switch and used for sending communication data to the second switch;
the first processor and the second processor are respectively in communication connection with a network port of a sending end of the second switch and are used for receiving multiple groups of communication data sent by the second switch according to a preset multicast forwarding scheduling table;
when the first switches are in a normal mode, the first switches synchronously multicast the communication data of each group to the first processor and the second processor according to a preset multicast forwarding scheduling table, and the second switches are in a standby state;
and when the first switch is in a failure mode, the second switch synchronously multicasts each group of communication data to the first processor and the second processor according to a preset multicast forwarding scheduling table.
According to a specific implementation manner of the embodiment of the application, the system further includes a third board card and a fourth board card, the third board card includes a fifth processor and a sixth processor, and the fourth board card includes a seventh processor and an eighth processor;
the seventh processor and the eighth processor are respectively in communication connection with the second service end, and are configured to receive communication data sent by the second service end;
the seventh processor and the eighth processor are respectively in communication connection with a receiving end network port of the first switch and used for sending communication data to the first switch;
the fifth processor and the sixth processor are respectively in communication connection with a network port of the sending end of the first switch and are used for receiving multiple groups of communication data sent by the first switch according to a preset multicast forwarding scheduling table;
the fifth processor and the sixth processor are respectively in communication connection with the first service end, and are configured to send a target communication data packet to the first service end.
In a fourth aspect, an embodiment of the present application further provides a network communication device, which is applied to a target processor in a first board card of a network communication system, where the first board card is internally provided with a first processor and a second processor, the target processor is all processors in a working mode in the first board card, and the network communication system further includes a first switch, where the first board card is used for being in communication connection with a first service end; the device comprises:
the receiving module is used for receiving a plurality of groups of communication data sent by the first switch according to a preset multicast forwarding scheduling table;
the redundancy removing module is used for performing redundancy removing processing on all communication data according to the message serial numbers of all groups of communication data to obtain a target communication data packet;
and the sending module is used for sending the target communication data packet to the first service end.
In a fifth aspect, an embodiment of the present application further provides a communication service end, including a processor and a memory, where the memory stores a computer program, and the computer program executes the network communication method according to the first aspect and the second aspect when running on the processor.
In a sixth aspect, the present application further provides a computer-readable storage medium, in which a computer program is stored, and the computer program, when executed on a processor, performs the network communication method according to the first aspect and the second aspect.
The embodiment of the application provides a network communication method, a system, a device and a computer readable storage medium, wherein a target processor is applied to a first board card of a network communication system, the first board card is internally provided with a first processor and a second processor, the target processor is all processors in a working mode in the first board card, the network communication system further comprises a first switch, and the first board card is used for being in communication connection with a first service end; the method comprises the following steps: receiving multiple groups of communication data sent by the first switch according to a preset multicast forwarding scheduling table; performing redundancy removal processing on all communication data according to the message serial numbers of all groups of communication data to obtain a target communication data packet; and sending the target communication data packet to the first service end. Through setting up a plurality of treater in the integrated circuit board to when certain treater breaks down in the integrated circuit board, as long as still a treater work in the integrated circuit board is normal, the system just can normally communicate, has promoted time trigger ethernet network system's reliability greatly.
Drawings
In order to more clearly illustrate the technical solution of the present invention, the drawings required to be used in the embodiments will be briefly described below, and it should be understood that the following drawings only illustrate some embodiments of the present invention, and therefore should not be considered as limiting the scope of the present invention. Like components are numbered similarly in the various figures.
Fig. 1 is a schematic block diagram illustrating a system structure of a network communication system according to an embodiment of the present application;
fig. 2 is a schematic method flowchart illustrating a network communication method applied to a target processor in a first board of a network communication system according to an embodiment of the present application;
fig. 3 is a schematic method flow diagram illustrating a network communication method applied to a first switch of a network communication system according to an embodiment of the present application;
fig. 4 is a block diagram illustrating an apparatus of a network communication apparatus according to an embodiment of the present disclosure.
Summary of reference numerals:
a sender board card-110; a central switch-120; a receiver board card-130;
a network communication device-400; a receiving module-401; a de-redundancy module-402; and sending a module-403.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments.
The components of embodiments of the present invention generally described and illustrated in the figures herein may be arranged and designed in a wide variety of different configurations. Thus, the following detailed description of the embodiments of the present invention, presented in the figures, is not intended to limit the scope of the invention, as claimed, but is merely representative of selected embodiments of the invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments of the present invention without making any creative effort, shall fall within the protection scope of the present invention.
Hereinafter, the terms "including", "having", and their derivatives, which may be used in various embodiments of the present invention, are only intended to indicate specific features, numbers, steps, operations, elements, components, or combinations of the foregoing, and should not be construed as first excluding the existence of, or adding to, one or more other features, numbers, steps, operations, elements, components, or combinations of the foregoing.
Furthermore, the terms "first," "second," "third," and the like are used solely to distinguish one from another and are not to be construed as indicating or implying relative importance.
Unless otherwise defined, all terms (including technical and scientific terms) used herein have the same meaning as commonly understood by one of ordinary skill in the art to which various embodiments of the present invention belong. The terms (such as those defined in commonly used dictionaries) should be interpreted as having a meaning that is consistent with their contextual meaning in the relevant art and will not be interpreted in an idealized or overly formal sense unless expressly so defined herein in various embodiments of the present invention.
The time-triggered ethernet network system mainly comprises a terminal system node and a central switch, wherein the terminal system node may be a Central Processing Unit (CPU) deployed in a board. And the upper computer configures synchronous parameters and a time scheduling table of the end system nodes and the switch through a serial port or a network port, and after each terminal system node completes synchronization, each end system node completes data interaction of a data service frame through the central switch according to time scheduling table information, wherein the time scheduling table is scheduled according to the number of virtual link numbers.
Referring to fig. 1 and fig. 2, for a network communication method provided in this embodiment of the present application, the method is applied to a target processor in a first board of a network communication system shown in fig. 1, where the first board is provided with a first processor and a second processor, the target processor is all processors in a working mode in the first board, and the network communication system further includes a first switch, where the first board is used for being in communication connection with a first service end;
as shown in fig. 2, the network communication method includes:
step S201, receiving a plurality of groups of communication data sent by the first switch according to a preset multicast forwarding scheduling table;
in a specific embodiment, the network communication system may be a time triggered ethernet network communication system, and data communication is performed between a communication service end and the communication service end through the time triggered ethernet network system, where the first service end is used as a receiver of data communication, the second service end is used as a sender of data communication, the network communication system further includes a sender board card 110, a receiver board card 130, and a central switch 120, the sender board card 110 includes a second board card and a fourth board card, the receiver board card 130 includes a first board card and a third board card, and the central switch 120 includes a first switch and a second switch.
The first service end is connected with the first board card, a plurality of processors are arranged in the first board card, wherein the processors in the same board card are the same processors, and each processor can be independently used as a terminal system in the time-triggered Ethernet network system and used for interacting with the first switch and the first service end.
In this embodiment, two identical processors are disposed in the first board card, and are the first processor and the second processor. The first processor and the second processor are both used for being in communication connection with a receiving end network port of the first switch, and when the first service end performs data interaction with the second service end, the target processor, namely the processor in the first board card in the working mode, receives multiple groups of communication data sent by the first switch according to a preset multicast forwarding scheduling table.
When the first processor and the second processor are both in the working mode, the first processor and the second processor can simultaneously serve as target processors to receive multiple groups of communication data sent by the first switch, and carry out the same processing process on the communication data.
When the first processor is in a failure mode, the first processor stops receiving the communication data, and the second processor still serves as a target processor to continue receiving the multiple groups of communication data sent by the first switch, and vice versa.
Step S202, according to the message serial number of each group of communication data, redundancy removing processing is carried out on all communication data to obtain a target communication data packet;
in a specific embodiment, each group of communication data received by the target processor has a packet sequence number, and the packet sequence number is a number for identification generated by the second service end for each group of data when sending data.
When the same message serial number exists between different groups of communication data in the multiple groups of communication data received by the target processor, redundancy removal processing is performed on the communication data, so that multiple groups of communication data with different message serial numbers are obtained, and a target communication data packet is formed corresponding to one group of communication data.
Specifically, the step of performing redundancy elimination processing on all communication data according to the packet sequence numbers of each group of communication data to obtain a target communication data packet includes:
comparing whether the message serial numbers of the communication data in each group of communication data are the same;
deriving a target communication data packet from the communication data with the same message serial number;
and respectively exporting the communication data with different message serial numbers to a corresponding target communication data packet.
In a specific embodiment, when the second service end sends the communication data through the sending board 110, the communication data sent by the second service end to the second board and the communication data sent by the fourth board may have the same condition and different conditions.
When the communication data sent by the second service end to the second board card and the communication data sent by the fourth board card are the same, the message serial numbers of the groups of communication data received by the target processor are the same, and then the target processor further performs redundancy removal processing on the communication data with the same message serial number.
When the communication data sent by the second service end to the second board card and the communication data sent by the fourth board card are different, and the message serial numbers of the groups of communication data received by the target processor are different, the target processor further processes the communication data with different message serial numbers respectively.
And after receiving each group of communication data forwarded by the first switch, the target processor performs redundancy removal processing on the communication data with the same message serial number to obtain a target communication data packet. And for the communication data with different message serial numbers, a target communication data packet is led out corresponding to one message serial number respectively.
Step S203, sending the target communication data packet to the first service end.
In a specific embodiment, the target processor sends all the derived target communication data packets to the first service end. After the first service end receives the target communication data packet sent by the target processor, if the same message serial number appears in the received multiple target communication data packets, redundancy removal processing is performed on the multiple target communication data packets with the same message serial number, and finally a communication data packet corresponding to one message serial number is obtained.
For example, when the first processor and the second processor are both in the working state, the first processor and the second processor simultaneously send the same target communication data packet to the first service end. And after receiving the target communication data packet sent by the first processor and the target communication data packet sent by the second processor, the first service end performs redundancy removal processing on the received target data packets with the same message sequence.
According to the network communication method provided by the embodiment, the plurality of processors are arranged in the first board card, and the backup work of the node part of the time-triggered Ethernet system is realized through the plurality of processors, so that the problem that data communication between communication service ends cannot be carried out when the processors of the board cards of the communication service ends are in failure is solved, and the communication reliability of the time-triggered Ethernet system is greatly improved.
Referring to fig. 3, a method flow diagram of a network communication method provided in an embodiment of the present application is applied to a first switch of a network communication system. As shown in fig. 1, the network communication system further includes a first board card and a second board card, the first board card is in communication connection with the transmitting-end network port of the first switch, the second board card is in communication connection with the receiving-end network port of the network communication system, the first board card includes a first processor and a second processor, and the second board card includes a third processor and a fourth processor. As shown in fig. 3, the method includes:
step S301, sequentially receiving each group of communication data sent by the third processor and the fourth processor;
step S302, synchronously and sequentially multicasting each group of the communication data to the first processor and the second processor according to a preset multicast forwarding schedule.
In a specific embodiment, the first switch receives, from a corresponding receiving-end network port, each set of communication data sent by the third processor and the fourth processor, where as shown in fig. 1, the third processor corresponds to a 1 st network port of the first switch, and the fourth processor corresponds to a 2 nd network port of the first switch.
The first switch multicasts each group of received communication data to the first processor and the second processor through corresponding sending end network ports, wherein the first processor corresponds to the 5 th network port of the first switch, and the second processor corresponds to the 6 th network port of the first switch.
The preset multicast forwarding schedule may be a multicast forwarding schedule set in advance, and in this embodiment, the multicast forwarding schedule may be as shown in table 1, where a source end is a terminal system node of a sender, and a target end is a terminal system node of a receiver:
table 1 multicast forwarding schedule
Figure BDA0003307519100000101
According to a specific implementation manner of the embodiment of the present application, the step of synchronously multicasting each group of the communication data to the first processor and the second processor in sequence according to a preset multicast forwarding schedule includes:
generating a multicast forwarding scheduling table corresponding to each group of communication data according to the receiving sequence, wherein the sequence of the sending time of each group of communication data in the multicast forwarding scheduling table is consistent with the receiving sequence;
and synchronously multicasting each group of communication data to the first processor and the second processor at each sending time in sequence according to the multicast forwarding scheduling table.
In a specific embodiment, as shown in table 1, the first switch receives the communication data sent by the third processor first, and then receives the communication data sent by the fourth processor. Then at a first time T1, the communication data sent by the third processor is forwarded to the first processor and the second processor through the preset virtual link number synchronization. And at a second time T2, forwarding the communication data sent by the fourth processor to the first processor and the second processor synchronously through a preset virtual link number.
In addition, if the first switch receives the communication data transmitted by the fourth processor first and then receives the communication data transmitted by the third processor, the switch may also adjust the multicast forwarding schedule in real time, multicast the communication data transmitted by the fourth processor through the virtual link 2 at a first time, and multicast the communication data transmitted by the third processor through the virtual link 1 at a second time.
Different from the traditional unicast virtual link design, the method can reduce the number of virtual links in the time-triggered Ethernet network system in a multicast forwarding mode, thereby accelerating the data transmission speed and improving the communication reliability of the time-triggered Ethernet network system.
Referring to fig. 1, a network communication system provided for the embodiment of the present application includes: the system comprises a first service end, a second service end, a first board card, a second board card and a first switch, wherein the first board card comprises a first processor and a second processor, and the second board card comprises a third processor and a fourth processor;
the third processor and the fourth processor are respectively in communication connection with the second service end and are used for receiving communication data sent by the second service end;
the third processor and the fourth processor are respectively in communication connection with a receiving end network port of the first switch and used for sending communication data to the first switch;
the first processor and the second processor are respectively in communication connection with a network port of a sending end of the first switch and are used for receiving multiple groups of communication data sent by the first switch according to a preset multicast forwarding scheduling table;
the first processor and the second processor are respectively in communication connection with the first service end and used for sending a target communication data packet to the first service end.
In a specific embodiment, the specific implementation process of the network communication system may refer to the specific implementation processes of the target processor and the first switch in the first board, and details are not repeated here.
According to a specific implementation manner of the embodiment of the present application, the system further includes a second switch;
the third processor and the fourth processor are respectively in communication connection with a receiving end network port of the second switch and used for sending communication data to the second switch;
the first processor and the second processor are respectively in communication connection with a network port of a sending end of the second switch and are used for receiving multiple groups of communication data sent by the second switch according to a preset multicast forwarding scheduling table;
when the first switches are in a normal mode, the first switches synchronously multicast the communication data of each group to the first processor and the second processor according to a preset multicast forwarding scheduling table, and the second switches are in a standby state;
and when the first switch is in a failure mode, the second switch synchronously multicasts each group of communication data to the first processor and the second processor according to a preset multicast forwarding scheduling table.
In a specific embodiment, the system further includes a second switch, where the second switch is a backup switch of the first switch, and connection relationships and interaction manners between the second switch and the first processor, the second processor, the third processor, and the fourth processor may refer to connection relationships and interaction manners between the first switch and each processor.
Specifically, when the first switch is in a normal operating mode, the second switch may be in a standby state, that is, the data communication between the first service end and the second service end is only performed through the first switch in a multicast forwarding step, and the second switch receives the communication data sent by the third processor and the fourth processor, but does not perform the multicast forwarding step.
When the first switch cannot realize multicast forwarding or when the first switch makes data have errors in the process of receiving the data, determining that the first switch is in a failure mode. And when the first switch is in a failure mode, the second switch starts to work as a backup switch, and performs multicast forwarding on the received communication data of the third processor and the fourth switch according to a preset multicast forwarding scheduling table.
In an embodiment, the first switch and the second switch may be in an operating mode at the same time, that is, both the first switch and the second switch forward the communication data received from the receiving port according to a preset multicast forwarding schedule.
When the first switch and the second switch are simultaneously in a working mode, the target processor receives the same communication data from the transmitting end network port of the first switch and the transmitting end network port of the second switch at the same time, and the target processor screens the same communication data received from the first switch and the second switch at the same time into one communication data according to a preset redundancy removing algorithm.
According to a specific implementation manner of the embodiment of the application, the system further includes a third board card and a fourth board card, the third board card includes a fifth processor and a sixth processor, and the fourth board card includes a seventh processor and an eighth processor;
the seventh processor and the eighth processor are respectively in communication connection with the second service end, and are configured to receive communication data sent by the second service end;
the seventh processor and the eighth processor are respectively in communication connection with a receiving end network port of the first switch and used for sending communication data to the first switch;
the fifth processor and the sixth processor are respectively in communication connection with a network port of the sending end of the first switch and are used for receiving multiple groups of communication data sent by the first switch according to a preset multicast forwarding scheduling table;
the fifth processor and the sixth processor are respectively in communication connection with the first service end, and are configured to send a target communication data packet to the first service end.
In a specific embodiment, the network communication system may further include a third board card and a fourth board card, where the third board card is a backup board card of the first board card, and the fourth board card is a backup board card of the second board card.
Specifically, the third board card includes a fifth processor and a sixth processor, the fourth board card includes a seventh processor and an eighth processor, in the network communication system, the first processor, the second processor, the fifth processor, and the sixth processor all serve as terminal system nodes of a receiving party, and the third processor, the fourth processor, the seventh processor, and the eighth processor all serve as terminal system nodes of a sending party.
As shown in fig. 1, the third processor corresponds to the 1 st port of the first switch, the fourth processor corresponds to the 2 nd port of the first switch, the seventh processor corresponds to the 3 rd port of the first switch, the eighth processor corresponds to the 4 th port of the first switch, the first processor corresponds to the 5 th port of the first switch, the second processor corresponds to the 6 th port of the first switch, the fifth processor corresponds to the 7 th port of the first switch, and the sixth processor corresponds to the 8 th port of the first switch.
When the network communication system includes the first board, the second board, the third board, and the fourth board, the multicast forwarding schedule preset by the first switch may be a multicast forwarding schedule as shown in table 2:
table 2 multicast forwarding schedule
Figure BDA0003307519100000141
Figure BDA0003307519100000151
As shown in table 2, when the first switch receives the sets of communication data in the order of the third processor, the fourth processor, the seventh processor, and the eighth processor, the first switch synchronously forwards the communication data of the third processor to the first processor, the second processor, the fifth processor, and the sixth processor at a first time T1. And synchronously forwarding the communication data of the fourth processor to the first processor, the second processor, the fifth processor and the sixth processor at a second time T2. At a third time T3, the first processor, the second processor, the fifth processor and the sixth processor forward the communication data of the seventh processor. At a fourth time T4, the first processor, the second processor, the fifth processor, and the sixth processor forward the communication data of the eighth processor.
When the first switch receives each group of communication data according to other sequences, the multicast forwarding schedule changes in real time according to the sequence in which the first switch receives the data, which may refer to the implementation process in the above embodiment specifically, and is not described here again.
When a sending end of the time-triggered ethernet network system has four end system nodes, and a receiving end also has four end system nodes, if a unicast virtual link design is adopted, there are 4 × 4 — 16 virtual links, and forwarding needs to be performed at 16 different times, which makes data communication between the first service end and the second service end complicated and more time-consuming.
In addition, by setting a plurality of processors in the board card as the nodes of the terminal system, the problem that when the processors in the board card are in failure, data communication between the service ends cannot be carried out is avoided, and the reliability of the time-triggered Ethernet network system is greatly improved.
Referring to fig. 4, a block diagram of a network communication device 400 provided in this embodiment of the present application is a target processor applied in a first board of a network communication system, where the first board is provided with a first processor and a second processor, the target processor is all processors in the first board in a working mode, and the network communication system further includes a first switch, and the first board is used for being in communication connection with a first service end. As shown in fig. 4, the network communication apparatus 400 includes:
a receiving module 401, configured to receive multiple sets of communication data sent by the first switch according to a preset multicast forwarding schedule;
a redundancy removing module 402, configured to perform redundancy removing processing on all communication data according to the packet serial numbers of each group of communication data to obtain a target communication data packet;
a sending module 403, configured to send the target communication data packet to the first service end.
In addition, an embodiment of the present application further provides a communication service end, which includes a processor and a memory, where the memory stores a computer program, and the computer program executes the network communication method in the foregoing embodiment when running on the processor.
An embodiment of the present application further provides a computer-readable storage medium, in which a computer program is stored, and when the computer program runs on a processor, the computer program performs the network communication method in the foregoing embodiment.
In summary, the embodiments of the present disclosure provide a network communication method, system, device, and computer-readable storage medium, in which a plurality of identical processors are arranged in a board card of a communication service end, so that a problem that data communication cannot be performed between the communication service ends when the processors in the board card of the communication service end fail is avoided, and reliability of a time-triggered ethernet network system is greatly improved. By using a multicast forwarding mode in the switch, the number of virtual links in a network communication system can be effectively controlled, and the overlong time of data communication between communication service ends is avoided. For specific implementation processes of the network communication device, the communication service end, and the computer-readable storage medium, reference may be made to the specific implementation processes of the above method embodiments, and details are not repeated here.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus and method can be implemented in other ways. The apparatus embodiments described above are merely illustrative and, for example, the flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of apparatus, methods and computer program products according to various embodiments of the present invention. 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 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.
In addition, each functional module or unit in each embodiment of the present invention may be integrated together to form an independent part, or each module may exist separately, or two or more modules may be integrated to form an independent part.
The functions, if implemented in the form of software functional modules and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention or a part of the technical solution that contributes to the prior art in essence can be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a smart phone, a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
The above description is only for the specific embodiments of the present invention, but the scope of the present invention is not limited thereto, and any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present invention, and all the changes or substitutions should be covered within the scope of the present invention.

Claims (10)

1. A network communication method is characterized in that a target processor is applied to a first board card of a network communication system, the first board card is internally provided with a first processor and a second processor, the target processor is all processors in a working mode in the first board card, the network communication system further comprises a first switch, and the first board card is used for being in communication connection with a first service end; the method comprises the following steps:
receiving multiple groups of communication data sent by the first switch according to a preset multicast forwarding scheduling table;
performing redundancy removal processing on all communication data according to the message serial numbers of all groups of communication data to obtain a target communication data packet;
and sending the target communication data packet to the first service end.
2. The method according to claim 1, wherein the step of performing redundancy elimination processing on all communication data according to the packet sequence numbers of each group of communication data to obtain the target communication data packet comprises:
comparing whether the message serial numbers of the communication data in each group of communication data are the same;
deriving a target communication data packet from the communication data with the same message serial number;
and respectively exporting the communication data with different message serial numbers to a corresponding target communication data packet.
3. A network communication method is characterized in that the method is applied to a first switch of a network communication system, the network communication system further comprises a first board card and a second board card, the first board card is in communication connection with a transmitting end network port of the first switch, the second board card is in communication connection with a receiving end network port of the network communication system, the first board card comprises a first processor and a second processor, the second board card comprises a third processor and a fourth processor, and the method comprises the following steps:
sequentially receiving each group of communication data sent by the third processor and the fourth processor;
and synchronously multicasting each group of communication data to the first processor and the second processor in sequence according to a preset multicast forwarding scheduling table.
4. The method of claim 3, wherein the step of synchronously multicasting the sets of communication data to the first processor and the second processor in turn according to a preset multicast forwarding schedule comprises:
generating a multicast forwarding scheduling table corresponding to each group of communication data according to the receiving sequence, wherein the sequence of the sending time of each group of communication data in the multicast forwarding scheduling table is consistent with the receiving sequence;
and according to the multicast forwarding scheduling table, synchronously multicasting each group of communication data to the first processor and the second processor at each sending time in sequence.
5. A network communication system, the system comprising: the system comprises a first service end, a second service end, a first board card, a second board card and a first switch, wherein the first board card comprises a first processor and a second processor, and the second board card comprises a third processor and a fourth processor;
the third processor and the fourth processor are respectively in communication connection with the second service end and are used for receiving communication data sent by the second service end;
the third processor and the fourth processor are respectively in communication connection with a receiving end network port of the first switch and used for sending communication data to the first switch;
the first processor and the second processor are respectively in communication connection with a network port of a sending end of the first switch and are used for receiving multiple groups of communication data sent by the first switch according to a preset multicast forwarding scheduling table;
the first processor and the second processor are respectively in communication connection with the first service end and used for sending a target communication data packet to the first service end.
6. The network communication system of claim 5, wherein the system further comprises a second switch;
the third processor and the fourth processor are respectively in communication connection with a receiving end network port of the second switch and used for sending communication data to the second switch;
the first processor and the second processor are respectively in communication connection with a network port of a sending end of the second switch and are used for receiving multiple groups of communication data sent by the second switch according to a preset multicast forwarding scheduling table;
when the first switches are in a normal mode, the first switches synchronously multicast the communication data of each group to the first processor and the second processor according to a preset multicast forwarding scheduling table, and the second switches are in a standby state;
and when the first switch is in a failure mode, the second switch synchronously multicasts each group of communication data to the first processor and the second processor according to a preset multicast forwarding scheduling table.
7. The network communication system of claim 5, wherein the system further comprises a third board and a fourth board, wherein the third board comprises a fifth processor and a sixth processor, and wherein the fourth board comprises a seventh processor and an eighth processor;
the seventh processor and the eighth processor are respectively in communication connection with the second service end, and are configured to receive communication data sent by the second service end;
the seventh processor and the eighth processor are respectively in communication connection with a receiving end network port of the first switch and used for sending communication data to the first switch;
the fifth processor and the sixth processor are respectively in communication connection with a network port of the sending end of the first switch and are used for receiving multiple groups of communication data sent by the first switch according to a preset multicast forwarding scheduling table;
the fifth processor and the sixth processor are respectively in communication connection with the first service end, and are configured to send a target communication data packet to the first service end.
8. A network communication device is characterized in that the device is applied to a target processor in a first board card of a network communication system, the first board card is internally provided with the first processor and a second processor, the target processor is all processors in a working mode in the first board card, the network communication system further comprises a first switch, and the first board card is used for being in communication connection with a first service end; the device comprises:
the receiving module is used for receiving a plurality of groups of communication data sent by the first switch according to a preset multicast forwarding scheduling table;
the redundancy removing module is used for performing redundancy removing processing on all communication data according to the message serial numbers of all groups of communication data to obtain a target communication data packet;
and the sending module is used for sending the target communication data packet to the first service end.
9. A telecommunications service end comprising a processor and a memory, the memory storing a computer program which, when run on the processor, performs the network communications method of any of claims 1 to 4.
10. A computer-readable storage medium, in which a computer program is stored which, when run on a processor, performs the network communication method of any one of claims 1-4.
CN202111207991.7A 2021-10-18 2021-10-18 Network communication method, system, device and computer readable storage medium Pending CN113949622A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111207991.7A CN113949622A (en) 2021-10-18 2021-10-18 Network communication method, system, device and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111207991.7A CN113949622A (en) 2021-10-18 2021-10-18 Network communication method, system, device and computer readable storage medium

Publications (1)

Publication Number Publication Date
CN113949622A true CN113949622A (en) 2022-01-18

Family

ID=79331075

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111207991.7A Pending CN113949622A (en) 2021-10-18 2021-10-18 Network communication method, system, device and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN113949622A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114745403A (en) * 2022-03-31 2022-07-12 西门子(中国)有限公司 Industrial network communication system and industrial network communication method

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101635646A (en) * 2009-06-24 2010-01-27 中兴通讯股份有限公司 Method and system for switching main/standby board cards
CN106094665A (en) * 2016-08-24 2016-11-09 通号国际控股有限公司 A kind of failure to safety road junction main control unit, switch board and control system
WO2019174390A1 (en) * 2018-03-14 2019-09-19 固高科技(深圳)有限公司 Industrial ethernet-based data transmission system and method, and communication device
CN112565107A (en) * 2020-10-09 2021-03-26 天津大学 TTE scheduling communication method based on self-adaptive dual redundancy

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101635646A (en) * 2009-06-24 2010-01-27 中兴通讯股份有限公司 Method and system for switching main/standby board cards
CN106094665A (en) * 2016-08-24 2016-11-09 通号国际控股有限公司 A kind of failure to safety road junction main control unit, switch board and control system
WO2019174390A1 (en) * 2018-03-14 2019-09-19 固高科技(深圳)有限公司 Industrial ethernet-based data transmission system and method, and communication device
CN112565107A (en) * 2020-10-09 2021-03-26 天津大学 TTE scheduling communication method based on self-adaptive dual redundancy

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114745403A (en) * 2022-03-31 2022-07-12 西门子(中国)有限公司 Industrial network communication system and industrial network communication method
CN114745403B (en) * 2022-03-31 2024-02-06 西门子(中国)有限公司 Industrial network communication system and industrial network communication method

Similar Documents

Publication Publication Date Title
KR101643671B1 (en) Network device and information transmission method
EP2144400A1 (en) Distributed ethernet system and method for detecting fault based thereon
CN101599909B (en) Method and device for forwarding flow rate
EP2555476A1 (en) Method, system and device for protecting multicast in communication network
CN104301141B (en) A kind of method, apparatus and system for preserving configuration information
KR20090030320A (en) Mobile ad-hoc network(manet) and method for implementing mutiple paths for fault tolerance
CN112968836B (en) Cross-device aggregation link configuration method, device, equipment and readable storage medium
EP3257205B1 (en) Discovering links between operating domains in a communication network
CN101909006B (en) BFD (Bidirectional Forwarding Detection) message sending and receiving methods as well as device and communication system thereof
CN103036728A (en) Multi- redundancy ethernet data transmission system and transmission method
CN113949622A (en) Network communication method, system, device and computer readable storage medium
KR101075462B1 (en) Method to elect master nodes from nodes of a subnet
CN109428837A (en) Data transmission method and device
CN109150711B (en) Protection switching method, device and storage medium for point-to-multipoint two-layer multicast service
CN101635671A (en) Method, system and equipment for accelerating multicast convergence
CN107342958B (en) Distributed communication equipment and inter-board communication method
JP2010141845A (en) Communication apparatus including multiple servers and communication method
CN103414591A (en) Method and system for fast converging when port failure is recovered
CN114401324B (en) Message forwarding method, network equipment and system
EP2953299B1 (en) Protection switching method, system and node
CN107210945B (en) Method for operating a computer network and computer network
CN110098967B (en) Communication method, device, equipment and medium
CN114640615A (en) Route notification method, route generation method and equipment
CN104219126A (en) Automatic learning method and equipment for subring protocol VLAN (virtual local area network) in virtual channel mode
CN103546316A (en) OAM message transmission method and device

Legal Events

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