CN110098967B - Communication method, device, equipment and medium - Google Patents

Communication method, device, equipment and medium Download PDF

Info

Publication number
CN110098967B
CN110098967B CN201910398911.7A CN201910398911A CN110098967B CN 110098967 B CN110098967 B CN 110098967B CN 201910398911 A CN201910398911 A CN 201910398911A CN 110098967 B CN110098967 B CN 110098967B
Authority
CN
China
Prior art keywords
message
port
sent
time
network
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
CN201910398911.7A
Other languages
Chinese (zh)
Other versions
CN110098967A (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 Network Security Technology Co ltd
Original Assignee
Zhejiang Guoli Network Security 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 Network Security Technology Co ltd filed Critical Zhejiang Guoli Network Security Technology Co ltd
Priority to CN201910398911.7A priority Critical patent/CN110098967B/en
Publication of CN110098967A publication Critical patent/CN110098967A/en
Application granted granted Critical
Publication of CN110098967B publication Critical patent/CN110098967B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/42Loop networks
    • H04L12/437Ring fault isolation or reconfiguration
    • 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/08Configuration management of networks or network elements
    • H04L41/0803Configuration setting
    • H04L41/0823Configuration setting characterised by the purposes of a change of settings, e.g. optimising configuration for enhancing reliability
    • H04L41/0836Configuration setting characterised by the purposes of a change of settings, e.g. optimising configuration for enhancing reliability to enhance reliability, e.g. reduce downtime
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/28Routing or path finding of packets in data switching networks using route fault recovery

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The application discloses a communication method, comprising: receiving a first message sent by a first device through a second port of the first device through a first port of a second device; forwarding the first message from a second port of the second device to a third device; and after the first message is forwarded, sending a second message of the third device to the third device through a second port of the second device. The scheduling mode enables the next device to obtain the time slice externally-sent message without waiting for the channel clearance through device sequencing and time control, greatly reduces the time slice length required by a single device on the premise of realizing time slicing and time-sharing scheduling to ensure real-time performance and certainty, enables the link utilization rate not to be reduced along with the enlargement of the looped network scale, ensures the communication performance of the network, and enlarges the available range of the real-time network. The application also discloses a corresponding device, equipment and a storage medium.

Description

Communication method, device, equipment and medium
Technical Field
The present application relates to the field of communications, and in particular, to a communication method, apparatus, device, and computer storage medium.
Background
With the development of communication technology, ethernet has emerged and is currently the most common communication protocol standard for local area networks. In the Ethernet communication network, all the devices carry out periodic communication according to a specified time slice, the time slice of each device comprises the sending time Tsend of the message and the gap Tgap between the time slices of the adjacent devices, the sum of the time slices of each device is the periodic time, and the sum of the periodic time and the non-periodic time is the macrocycle time, namely a complete communication period.
In this scheduling mode, each device simultaneously sends communication messages from the channel a and the channel B to the outside in its own time slice, and in order to prevent collision of messages reported by the link, it is necessary to wait for the messages in the two directions to flow back to itself after sending the messages, and the channel is cleared, and the next device can obtain the time slice to send the messages to the outside. Therefore, the Tgap includes the minimum frame gap specified by the ethernet, and also needs to account for the delay of forwarding the message on the ring network step by step, and for the ring network composed of N devices, it needs to be forwarded N-1 times, that is, the Tgap also needs to account for the forwarding delay N × N-1 times.
This results in a significant reduction in ethernet link utilization, below 50% even without taking into account aperiodic overhead, and with T gap As the number of network nodes increases and linearly increases, link utilization exhibits explosive degradation as the linear network increases.
Disclosure of Invention
In view of this, the present application provides a communication method, which enables a device to send its own message after forwarding other device messages through device sequencing and time control, without waiting for a channel clearance, thereby greatly reducing the degree of time slice required by a single device, enabling the link utilization rate not to be reduced along with the enlargement of the ring network scale, ensuring the communication performance of the network, and enlarging the usable range of the real-time network. Correspondingly, the application also provides a communication device, equipment, a computer readable storage medium and a computer program product.
A first aspect of the present application provides a communication method, including:
receiving a first message sent by a first device through a second port of the first device through a first port of a second device;
forwarding the first message from a second port of the second device to a third device;
after the first message is forwarded, sending a second message of the first message to the third device through a second port of the second device;
the first device, the second device and the third device are devices in an active forwarding communication network.
Optionally, the method further includes:
receiving a message sent by a third device through a second port of the second device, wherein the message at least comprises the first message and a third message of the third device;
forwarding a message sent by the third device to the first device through a first port of the second device;
and after the forwarding is finished, sending a second message of the second device to the first device through the first port of the second device.
Optionally, the method further includes:
and stopping the message after receiving the second message sent by the second equipment through the second port of the second equipment through the first port of the second equipment.
Optionally, the method further includes:
and stopping the message after receiving the second message sent by the second device through the first port of the second device through the second port of the second device.
Optionally, the length of the packet is not less than 512 bytes.
A second aspect of the present application provides a communication apparatus, the apparatus comprising:
a receiving unit, configured to receive, through a first port of a second device, a first packet sent by a first device through a second port of the first device;
a sending unit, configured to forward the first packet from a second port of the second device to a third device;
the sending unit is further configured to send a second message of the sending unit to the third device through a second port of the second device after the first message is completely forwarded;
the first device, the second device and the third device are devices in an active forwarding communication network.
Optionally, the receiving unit is further configured to receive, through a second port of the second device, a packet sent by a third device, where the packet at least includes the first packet and a third packet of the third device;
the sending unit is further configured to forward, to the first device, a packet sent by the third device through a first port of the second device;
and the sending unit is further configured to send a second message of the sending unit to the first device through the first port of the second device after the forwarding is completed.
Optionally, the apparatus further comprises:
and the first stopping unit is used for stopping the self message after the first port of the second device receives the second message sent by the second device through the second port of the second device.
Optionally, the apparatus further comprises:
and the second stopping unit is used for stopping the self message after the second message sent by the second equipment through the first port of the second equipment is received through the second port of the second equipment.
Optionally, the length of the packet is not less than 512 bytes.
A third aspect of the application provides an apparatus comprising a processor and a memory:
the memory is used for storing a computer program;
the processor is configured to execute the communication method according to the first aspect of the present application according to the computer program.
A fourth aspect of the present application provides a computer-readable storage medium for storing a computer program for executing the communication method according to the first aspect of the present application.
A fifth aspect of the present application provides a computer program product comprising instructions which, when run on a computer, cause the computer to perform the communication method of the first aspect of the present application.
According to the technical scheme, the embodiment of the application has the following advantages:
the embodiment of the present application provides a communication method, which provides a scheduling policy of an active forwarding-type communication network, where the communication network at least includes a first device, a second device, and a third device, where the second device receives, through a first port of the second device, a first packet sent by the first device through a second port of the first device, forwards the first packet to the third device from the second port of the second device, and sends, after the forwarding of the first packet is completed, a second packet of its own to the third device through the second port of the second device. The scheduling mode enables the next device to obtain the time slice externally-sent message without waiting for the channel clearance through device sequencing and time control, greatly reduces the time slice length required by a single device on the premise of realizing time slicing and time-sharing scheduling to ensure real-time performance and certainty, enables the link utilization rate not to be reduced along with the enlargement of the looped network scale, ensures the communication performance of the network, and enlarges the available range of the real-time network.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings needed to be used in the description of the embodiments or the prior art will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art that other drawings can be obtained according to the drawings without inventive exercise.
Fig. 1 is a flowchart of a communication method in an embodiment of the present application;
fig. 2 is a flowchart of a communication method in an embodiment of the present application;
fig. 3 is a schematic view of an application scenario of a communication method in an embodiment of the present application;
FIG. 4 is a schematic diagram of a ring network cycle in an embodiment of the present application;
fig. 5 is a schematic structural diagram of a communication device in an embodiment of the present application;
fig. 6 is a schematic structural diagram of an apparatus in an embodiment of the present application.
Detailed Description
In order to make the technical solutions of the present application better understood, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
The terms "first," "second," "third," "fourth," and the like in the description and in the claims of the present application and in the drawings described above, if any, are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the application described herein are, for example, capable of operation in sequences other than those illustrated or otherwise described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
Aiming at the problem that the link utilization rate is reduced because the next device can obtain the message sent by the time slice to the outside without waiting for the channel clearance through device sequencing and time control, the communication method greatly reduces the time slice length required by the single device on the premise of realizing time slicing and time sharing scheduling to ensure real-time performance and certainty, ensures the communication performance of the network and enlarges the available range of the real-time network.
Wherein the scheduling policy may be applicable to any active forwarding type communication network. For ease of understanding, the following description will use ethernet as an example.
It can be understood that the communication method provided by the present application may be applied to any network device having a data forwarding function, where the network device may specifically be a switch, a router, and the like, and this is not limited in this embodiment of the present application.
In a specific implementation, the communication method may be stored in a form of a computer program in a network device, and the network device implements the communication method of the present application by executing the application program. The computer program may be a stand-alone program, or may be a functional module, a plug-in, an applet, or the like, which is integrated with other programs.
In order to make the technical solution of the present application clearer and easier to understand, the following describes a communication method of the present application from the perspective of a network device.
Referring to the flow chart of the communication method shown in fig. 1, the method includes:
s101: and receiving a first message sent by a first device through a second port of the first device through a first port of a second device.
The first device, the second device, and the third device are devices in an ethernet, where the first device and the third device are adjacent devices of the second device in the ring network of the ethernet, and it needs to be described that one of the first device, the second device, and the third device is an adjacent device in a clockwise direction, and the other is an adjacent device in a counterclockwise direction.
The device in the ethernet includes the first device, the second device, and the third device, which have two ports, specifically, a first port and a second port, for respectively receiving and transmitting messages in different directions, where one port is used for receiving and transmitting a clockwise message and the other port is used for receiving and transmitting a counterclockwise message.
In a specific implementation, the second device receives, through the first port of the second device, a first packet sent by the first device through the second port of the first device.
S102: and forwarding the first message to a third device from a second port of the second device.
In order to propagate the first packet through the entire ethernet, the second device forwards the first packet to the third device from its own second port, so that the third device can receive, through its own first port, the second packet forwarded by the second device through its second port, and forward the second packet to a next device of the third device with reference to the processing measurement of the second device.
S103: and after the first message is forwarded, sending a second message of the third device to the third device through a second port of the second device.
For the second device, after the first message is forwarded, the second device may send its second message to the third device through its own second port without waiting for the message of the first device to flow back to itself and send the message after the channel is cleared.
Therefore, in the method, a second device receives, through a first port of the second device, a first packet sent by a first device through a second port of the first device, forwards the first packet to a third device from a second port of the second device, and sends, through the second port of the second device, a second packet of its own to the third device after the first packet is forwarded. The scheduling mode enables the next device to obtain the time slice externally-sent message without waiting for the channel clearance through device sequencing and time control, greatly reduces the time slice length required by a single device on the premise of realizing time slicing and time-sharing scheduling to ensure real-time performance and certainty, enables the link utilization rate not to be reduced along with the enlargement of the looped network scale, ensures the communication performance of the network, and enlarges the available range of the real-time network.
In view of the possibility of channel failure, the present application provides an implementation manner of a redundant network, and the following describes a communication method based on the redundant network provided by the present application with reference to the accompanying drawings.
Referring to the flow chart of the communication method shown in fig. 2, the method includes:
s201: and receiving a first message sent by a first device through a second port of the first device through a first port of a second device.
S202: and forwarding the first message to a third device from a second port of the second device.
S203: and after the first message is forwarded, sending a second message of the third device to the third device through a second port of the second device.
Specific implementations of S201 to S203 may refer to S101 to S103 in the embodiment shown in fig. 1, and are not described herein again.
S204: and receiving a message sent by a third device through a second port of the second device, wherein the message at least comprises the first message and a third message of the third device.
In a specific implementation, the second device receives, through the first port thereof, not only the packet sent by the first device, but also the packet sent by the third device through the second port thereof, where the packet sent by the third device at least includes the first packet and a third packet of the third device itself. Therefore, the first message is sent from two directions, specifically, a clockwise direction and a counterclockwise direction, respectively, and when a link failure occurs in one of the directions, the first message can be sent and received from the other direction.
Similarly, the second message, the third message and the like are also sent along the clockwise direction and the anticlockwise direction, and the transmission reliability is ensured by carrying out redundancy on message transmission.
S205: and forwarding the message sent by the third equipment to the first equipment through the first port of the second equipment.
Similar to S202, after receiving the packet sent by the third device, the second device forwards the packet sent by the third device to a next device in the direction, specifically, the first device, where the packet at least includes the first packet of the first device and the third packet of the third device itself.
Certainly, when other devices are further included between the first device and the third device, for example, when the fourth device is included, the message sent by the third device also includes a message of the other device, such as a fourth message.
S206: and after the forwarding is finished, sending a second message of the second device to the first device through the first port of the second device.
After the second device completes the message forwarded by the third device, the second device sends a second message of the second device to the first device through the first port of the second device without waiting for the message of the third device to flow back to the second device and sending the message after the channel is cleared.
It should be noted that the sequence of S204 to S206 and S201 to S203 is not fixed, and in some cases, S204 to S206 may be executed first, and then S201 to S203 may be executed, or executed simultaneously, which is not limited in this embodiment.
Therefore, the communication method provided by the application not only greatly reduces the time slice length required by a single device through device sequencing and time control on the premise of realizing time slicing and time-sharing scheduling to ensure real-time performance and certainty, so that the link utilization rate is not reduced along with the enlargement of the looped network scale, the communication performance of the network is ensured, and the available range of the real-time network is enlarged.
Moreover, through the 1:1 hot redundant network, when one link fails, the other link can still receive and transmit messages, so that the transmission reliability is guaranteed, the method has no switching time, and self-healing when the failure occurs can be realized.
In addition, the method is realized based on simple logic, does not need complex link detection and routing protocols, can be realized by a Field-Programmable Gate Array (FPGA), has low expenditure of software and hardware resources, hardly has processing delay, and does not influence a system.
It should be noted that, in order to avoid forming a ring network storm, after the network device in the network sends its own message through one port, when receiving its own message through another port, it stops its own message to prevent the message from being repeatedly sent and received in the network, so as to form the ring network storm.
Taking the second device as an example, after the second device receives the second message sent by the second device through the second port of the second device through the first port of the second device, the message of the second device is terminated.
In some possible implementation manners, after the second device receives the second packet sent by the second device through the first port of the second device through the second port of the second device, the self packet is terminated.
In order to make the technical solution of the present application easier to understand, the following describes the communication method of the present application with reference to a specific scenario.
Referring to an application scenario diagram of the communication method shown in fig. 3, the scenario includes a device 1, a device 2, a device 3, and a device 4, where the device 1 and the device 2 are equivalent to the first device and the second device described above, the device 4 is equivalent to the third device described above, and the device 3 is equivalent to the fourth device described above, each device has two ports, specifically, ports a and B, which are equivalent to the first port and the second port described above.
In the optimized ring network scheduling mode, each network device does not simultaneously transmit data from two channels to the outside, but the two channels are independently scheduled, so that the reported messages of the links are connected end to end, the complete clearance of the links is not needed, and the self message transmission can be started after the message forwarding of adjacent nodes is completed.
Taking the diagram as an example, after each device of the system completes and accurately time-synchronizes, the periodic communication scheduling is started, and the process of each period is as follows:
firstly, starting from the device 1, starting communication scheduling in both clockwise and counterclockwise directions simultaneously, and sending a message from an A, B port to the outside;
after receiving the message sent by the port B of the device 1, the port A of the device 2 immediately forwards the message from the port B, and after the message forwarding of the device 1 is completed, the port A of the device 2 immediately sends the message of the device 2; meanwhile, the port B of the device 3 receives the message of the device 1 and immediately forwards the message from the port A, and the message of the device 3 is immediately sent after the message of the device 1 is forwarded;
in a similar way, after receiving the messages of the device 1 and the device 3 from the port B, the device 4 sequentially forwards the messages from the port a, and immediately sends the messages of the device 4 after the forwarding is completed; after receiving the messages of the equipment 1 and the equipment 2 from the port A, sequentially forwarding the messages from the port A, and immediately sending the messages of the equipment 4 after the forwarding is finished;
the device 2 sequentially sends messages of the devices 1, 3, 4 and 2 from the port A to the device 1; the device 3 sequentially sends messages of the devices 1, 2, 4 and 3 from the port B to the device 1;
the device 1 stops the message and sequentially forwards the messages of other devices;
and (4) each device stops the message thereof in sequence, and the ring network periodic communication is finished.
Based on the scenario, the present application further provides a ring network cycle schematic diagram, as shown in fig. 4, in the scheduling mode, the next device can send a message without waiting for the current device to receive a self-loop back message, and the link headroom is not needed, so that the forwarding delay that must be accounted in the Tgap is reduced from (N-1) times of forwarding of each device to single forwarding, and for a hundred mega ethernet, the Tgap is approximately equal to 3.4 us; under the gigabit Ethernet, Tgap is approximately equal to 660 ns; at this time, the Tgap does not increase linearly with the enlargement of the network size, so the network size has little influence on the overall link utilization.
The following description is made with reference to specific examples.
The channel utilization of the ethernet, also called link utilization, should be the ratio of the transmission duration Σ Tsend of all devices in one macro cycle to the macro cycle duration Tmacrocycle. The sending time length of each device is related to the message length of the device, and for the device with the data message length of L, the sending time length actually occupied by the device is
T send =(L+12)*8/speed (1)
Wherein, L is the message length, 12 is the 8-byte preamble and 4-byte CRC, speed is the link line rate (commonly including 100Mbps and 1000Mbps), and since the link rate is usually counted as bits per second, the data length needs 8 to complete conversion from bytes to bits.
The Tgap comprises three parts, the first part is the frame gap specified by ethernet, which depends only on the link rate, 960ns in a hundred mega network and 96ns in a giga network; the second part is transmission delay, namely, single forwarding delay (which is designed according to the device type and the forwarding rule) is multiplied by the number of forwarding times; the third part is the synchronization precision among the devices, namely the margin reserved for preventing message collision.
The aperiodic timeslot needs to support transmission of at least one sync packet, including the sending duration Tsync of the sync packet and a frame gap Tgap. If the sync message is 60 bytes in the shortest length, Tsync is only related to the network rate, and is 5.76us when using hundred mega ethernet and 0.576us when using giga ethernet; tgap is the same as the cycle time, 960ns at hundred million and 96ns at giga.
Since Tsend > Tsync > Tgap, the utilization of the star topology is:
Figure BDA0002059092520000101
based on the method, when a hundred-million network system is formed, for message lengths with different bytes from 60 to 1514, the Tsend ranges from 5.76us to 122.08 us; tgap is approximately equal to 3.4 us; under normal conditions, Tsend > Tgap.
When a gigabit network system is formed, for message lengths of 60-1514 bytes, the Tsend ranges from 576ns to 12.208 us; tgap is approximately equal to 660 ns; if the length of the communication message is too short, Tsend is approximately equal to Tgap, and the link utilization rate is less than 50%; when the message length is large enough, Tsend is greater than Tgap, and the link utilization rate is higher. In fact, the gigabit ethernet standard requires that the packet is not lower than 512 bytes at the data link layer, and the link utilization limit tends to 86.4% if calculated as 512 bytes.
Based on this, when the message length is not less than 512 bytes, the ethernet has a higher link utilization rate.
Based on the foregoing specific implementation manners of the communication method provided in the embodiments of the present application, the embodiments of the present application also provide a corresponding communication device, and the device provided in the embodiments of the present application will be described below from the perspective of function modularization.
Referring to the schematic structural diagram of the communication device shown in fig. 5, the communication device 500 specifically includes:
a receiving unit 510, configured to receive, through a first port of a second device, a first packet sent by a first device through a second port of the first device;
a sending unit 520, configured to forward the first packet from the second port of the second device to a third device;
the sending unit 520 is further configured to send a second message of its own to the third device through the second port of the second device after the first message is completely forwarded;
the first device, the second device and the third device are devices in an Ethernet.
Optionally, the receiving unit 510 is further configured to receive, through the second port of the second device, a message sent by a third device, where the message at least includes the first message and a third message of the third device;
the sending unit 520 is further configured to forward the packet sent by the third device to the first device through the first port of the second device;
the sending unit 520 is further configured to send a second message of its own to the first device through the first port of the second device after the forwarding is completed.
Optionally, the apparatus 500 further includes:
and the first stopping unit is used for stopping the self message after the first port of the second device receives the second message sent by the second device through the second port of the second device.
Optionally, the apparatus further comprises:
and the second stopping unit is used for stopping the self message after the second message sent by the second equipment through the first port of the second equipment is received through the second port of the second equipment.
Optionally, the length of the packet is not less than 512 bytes.
The foregoing is a specific implementation manner of the communication method and apparatus provided in the embodiment of the present application, and an apparatus is further provided in the embodiment of the present application, and the apparatus provided in the embodiment of the present application will be introduced from the perspective of hardware implementation.
Referring to the schematic structural diagram of the device shown in fig. 6, the device 600 includes a processor 601 and a memory 602, where the memory 602 is used for storing a computer program, and the processor 601 is used for calling the computer program in the memory to execute the communication method provided in fig. 2 or fig. 3.
In particular implementations, the processor 601 is configured to implement the following operations:
receiving a first message sent by a first device through a second port of the first device through a first port of a second device;
forwarding the first message from a second port of the second device to a third device;
after the first message is forwarded, sending a second message of the first message to the third device through a second port of the second device;
the first device, the second device and the third device are devices in an Ethernet.
Optionally, the processor 601 is further configured to implement the following operations:
receiving a message sent by a third device through a second port of the second device, wherein the message at least comprises the first message and a third message of the third device;
forwarding a message sent by the third device to the first device through a first port of the second device;
and after the forwarding is finished, sending a second message of the second device to the first device through the first port of the second device.
Optionally, the processor 601 is further configured to implement the following operations:
and stopping the message after receiving the second message sent by the second equipment through the second port of the second equipment through the first port of the second equipment.
Optionally, the processor 601 is further configured to implement the following operations:
and stopping the message after receiving the second message sent by the second device through the first port of the second device through the second port of the second device.
Optionally, the length of the packet is not less than 512 bytes.
The embodiment of the present application further provides a computer-readable storage medium, which is used for storing a computer program, and the computer program is used for executing the communication method described in the present application.
Embodiments of the present application also provide a computer program product including instructions, which when run on a computer, cause the computer to perform the communication method described herein.
It is clear to those skilled in the art that, for convenience and brevity of description, the specific working processes of the above-described systems, apparatuses and units may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the several embodiments provided in the present application, it should be understood that the disclosed apparatus and method may be implemented in other ways. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the units is only one logical division, and other divisions may be realized in practice, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
It should be understood that in the present application, "at least one" means one or more, "a plurality" means two or more. "and/or" for describing an association relationship of associated objects, indicating that there may be three relationships, e.g., "a and/or B" may indicate: only A, only B and both A and B are present, wherein A and B may be singular or plural. The character "/" generally indicates that the former and latter associated objects are in an "or" relationship. "at least one of the following" or similar expressions refer to any combination of these items, including any combination of single item(s) or plural items. For example, at least one (one) of a, b, or c, may represent: a, b, c, "a and b", "a and c", "b and c", or "a and b and c", wherein a, b, c may be single or plural.
The above embodiments are only used for illustrating the technical solutions of the present application, and not for limiting the same; although the present application has been described in detail with reference to the foregoing embodiments, it should be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions in the embodiments of the present application.

Claims (10)

1. A method of communication, the method comprising:
receiving a first message sent by a first device through a second port of the first device through a first port of a second device;
forwarding the first message from a second port of the second device to a third device;
after the first message is forwarded, sending a second message of the first message to the third device through a second port of the second device;
the first device, the second device, and the third device are devices in an active forwarding-type communication network, the first device, the second device, and the third device are devices in an ethernet, and the first device and the third device are adjacent devices of the second device in a ring network of the ethernet.
2. The method of claim 1, further comprising:
receiving a message sent by a third device through a second port of the second device, wherein the message at least comprises the first message and a third message of the third device;
forwarding a message sent by the third device to the first device through a first port of the second device;
and after the forwarding is finished, sending a second message of the second device to the first device through the first port of the second device.
3. The method according to claim 1 or 2, characterized in that the method further comprises:
and stopping the message after receiving the second message sent by the second equipment through the second port of the second equipment through the first port of the second equipment.
4. The method of claim 2, further comprising:
and stopping the message after receiving the second message sent by the second device through the first port of the second device through the second port of the second device.
5. The method according to claim 1 or 2, wherein the length of the packet is not less than 512 bytes.
6. A communications apparatus, the apparatus comprising:
a receiving unit, configured to receive, through a first port of a second device, a first packet sent by a first device through a second port of the first device;
a sending unit, configured to forward the first packet from a second port of the second device to a third device;
the sending unit is further configured to send a second message of the sending unit to the third device through a second port of the second device after the first message is completely forwarded;
the first device, the second device, and the third device are devices in an active forwarding-type communication network, the first device, the second device, and the third device are devices in an ethernet, and the first device and the third device are adjacent devices of the second device in a ring network of the ethernet.
7. The apparatus of claim 6,
the receiving unit is further configured to receive, through a second port of the second device, a message sent by a third device, where the message at least includes the first message and a third message of the third device;
the sending unit is further configured to forward, to the first device, a packet sent by the third device through a first port of the second device;
and the sending unit is further configured to send a second message of the sending unit to the first device through the first port of the second device after the forwarding is completed.
8. The apparatus of claim 6 or 7, further comprising:
and the first stopping unit is used for stopping the self message after the first port of the second device receives the second message sent by the second device through the second port of the second device.
9. A communication device, the device comprising a processor and a memory:
the memory is used for storing a computer program;
the processor is configured to perform the communication method of any one of claims 1 to 5 in accordance with the computer program.
10. A computer-readable storage medium for storing a computer program for executing the communication method according to any one of claims 1 to 5.
CN201910398911.7A 2019-05-14 2019-05-14 Communication method, device, equipment and medium Active CN110098967B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910398911.7A CN110098967B (en) 2019-05-14 2019-05-14 Communication method, device, equipment and medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910398911.7A CN110098967B (en) 2019-05-14 2019-05-14 Communication method, device, equipment and medium

Publications (2)

Publication Number Publication Date
CN110098967A CN110098967A (en) 2019-08-06
CN110098967B true CN110098967B (en) 2022-08-12

Family

ID=67447954

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910398911.7A Active CN110098967B (en) 2019-05-14 2019-05-14 Communication method, device, equipment and medium

Country Status (1)

Country Link
CN (1) CN110098967B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111865825A (en) * 2020-06-19 2020-10-30 广西电网有限责任公司电力科学研究院 Intelligent high-voltage switch network message sending method and system based on priority

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2008089614A1 (en) * 2007-01-17 2008-07-31 Huawei Technologies Co., Ltd. A method, system and device for ring link protection
CN101778030A (en) * 2009-12-31 2010-07-14 中控科技集团有限公司 Ring network-based communication method and ring network
CN107547430A (en) * 2017-08-30 2018-01-05 新华三信息安全技术有限公司 A kind of file transmitting method and device
CN108933720A (en) * 2017-05-25 2018-12-04 中兴通讯股份有限公司 Information processing method, device, system and the storage medium of loop system
CN109600326A (en) * 2018-12-24 2019-04-09 华为技术有限公司 Data or method, node and the system of message forwarding

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107786441B (en) * 2016-08-30 2020-09-11 迈普通信技术股份有限公司 Communication method, OpenFlow switch and communication system

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2008089614A1 (en) * 2007-01-17 2008-07-31 Huawei Technologies Co., Ltd. A method, system and device for ring link protection
CN101778030A (en) * 2009-12-31 2010-07-14 中控科技集团有限公司 Ring network-based communication method and ring network
CN108933720A (en) * 2017-05-25 2018-12-04 中兴通讯股份有限公司 Information processing method, device, system and the storage medium of loop system
CN107547430A (en) * 2017-08-30 2018-01-05 新华三信息安全技术有限公司 A kind of file transmitting method and device
CN109600326A (en) * 2018-12-24 2019-04-09 华为技术有限公司 Data or method, node and the system of message forwarding

Also Published As

Publication number Publication date
CN110098967A (en) 2019-08-06

Similar Documents

Publication Publication Date Title
CN107241179B (en) Method for generating time-triggered service static scheduling table
CN110324242B (en) Message sending method, network node and system
US11134029B2 (en) Communication method, communications device, and storage medium
US8654798B2 (en) Barrier synchronization apparatus, barrier synchronization system, and barrier synchronization method
US5042032A (en) Packet route scheduling in a packet cross connect switch system for periodic and statistical packets
EP2684321B1 (en) Data blocking system for networks
US4962498A (en) Multi-length packet format including check sequence(s)
US5020055A (en) Multi-length packet format including fixed length information words
EP0022170A2 (en) Method of attaining communication of data packets on a local shared bus network and local shared bus network
EP2721770B1 (en) Integrated circuit device and method of performing cut-through forwarding of packet data
CN115714742A (en) Message sending method, network node and system
CN109672560B (en) Flexible Ethernet management channel expansion method and device
EP3029883B1 (en) Network protection method and apparatus, next-ring node, and system
CN113438161B (en) Method and network device for generating segment identification SID
CN110098967B (en) Communication method, device, equipment and medium
CN110417761A (en) Communication means and device based on dual-computer redundancy
CN102144376A (en) Band control method and band control device for node device
CN113315668A (en) Method, node device and storage medium for adaptively adjusting network configuration
US5003535A (en) Packet synchronization utilizing a multi-length packet format including check sequences
CN111756588B (en) Communication link detection method and related device
CN112511919A (en) OAM information sending method, device, equipment and storage medium
CN115882996A (en) Clock synchronization method, apparatus and medium
EP3232617B1 (en) Protection switching method and system, and nodes
CN113346974B (en) Method, apparatus, communication system and storage medium for clock synchronization
Ra et al. Implementation of FPGA‐based MPLS‐TP linear protection switching for 4000+ tunnels in packet transport network for optical carrier Ethernet

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