Methods, devices, equipment, media, and products for packet loss detection in optoelectronic hybrid networks

By setting data flow identifiers and coloring information for message containers in optoelectronic hybrid networks, the problem of optical switches being unable to forward data in a one-to-many manner is solved, enabling accurate detection of packet loss and improving network management efficiency.

CN122317005APending Publication Date: 2026-06-30CHINA MOBILE COMM LTD RES INST +1

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
CHINA MOBILE COMM LTD RES INST
Filing Date
2024-12-27
Publication Date
2026-06-30

AI Technical Summary

Technical Problem

In a hybrid optoelectronic network, optical switches cannot perform one-to-many routing and forwarding, resulting in data packets being routed around and having disordered message order, making it impossible to determine whether data packets are lost.

Method used

The message container is configured with message container information, including data stream identifier, detection type and coloring information. Packet loss detection is performed on the data stream using this information, the first data stream that meets the packet loss detection conditions is identified, and a packet loss event is sent to the management node.

Benefits of technology

It enables accurate detection of packet loss in optoelectronic hybrid networks, reduces the impact of packet loss on services that rely on continuous data streams, and ensures network service quality.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN122317005A_ABST
    Figure CN122317005A_ABST
Patent Text Reader

Abstract

This disclosure relates to the field of communication technology, and in particular to a method, apparatus, device, medium, and product for packet loss detection in a hybrid optoelectronic network. The method includes: receiving at least one message container, the message container including message container information and at least one data packet; the message container information including a data stream identifier, a detection type, and coloring information; the detection type including a packet loss detection type or a non-packet loss detection type; and the coloring information including the coloring period and coloring identifier of the data packets in the data stream; determining a first data stream that meets the packet loss detection conditions based on the message container information of each message container; and if packet loss occurs in the data packets received by the first data stream, sending a packet loss event to a management node, the packet loss event being used to indicate that packet loss has occurred in the first data stream. The technical solution of this disclosure provides a packet loss detection method for a hybrid optoelectronic network, achieving effective packet loss detection.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This disclosure relates to the field of communication technology, and in particular to a method, apparatus, device, medium and product for packet loss detection in optoelectronic hybrid networks. Background Technology

[0002] A hybrid optoelectronic network is a network architecture that integrates optical and electrical communication technologies. A hybrid optoelectronic network can be built on GSE (Global Scheduling Ethernet) and may include devices such as optical switches and electrical switches to achieve high-speed data transmission using optoelectronic technology.

[0003] Currently, in hybrid optoelectronic networks, data is primarily transmitted in streaming form. To handle larger streaming bandwidths, a per-container load balancing mechanism can be introduced, changing streaming distribution to packet distribution. This involves dividing a data stream into multiple data packets and then using packet containers for multipath propagation. The granularity of this exchange is greater than or equal to per-packet forwarding but less than per-stream forwarding. A packet container can contain one or more data packets.

[0004] However, when transmitting packet containers using a hybrid optical-electrical GSE network, the optical switch can only perform one-to-one port-level switching and cannot perform one-to-many routing forwarding. This causes data packets in a flow to be routed around, resulting in disordered packet order and making it impossible to determine whether data packets have been lost. Therefore, how to perform packet loss detection in a hybrid optical-electrical GSE network is a pressing technical problem that needs to be solved. Summary of the Invention

[0005] This disclosure is made in view of the above-mentioned problems. This disclosure provides a method, apparatus, device, medium, and product for packet loss detection in optoelectronic hybrid networks.

[0006] According to one aspect of this disclosure, a packet loss detection method for an optoelectronic hybrid network is provided, comprising:

[0007] Receive at least one message container, the message container including message container information and at least one data packet, the message container information including data stream identifier, detection type and coloring information, the detection type including packet loss detection type or non-packet loss detection type, the coloring information including the coloring period and coloring identifier of data packets in the data stream;

[0008] Based on the message container information of each message container, determine the first data stream that meets the packet loss detection conditions;

[0009] If there is packet loss in the data packets received by the first data stream, a packet loss event is sent to the management node. The packet loss event is used to indicate that packet loss has occurred in the first data stream.

[0010] According to another aspect of this disclosure, a packet loss detection method for an optoelectronic hybrid network is provided, comprising:

[0011] The system receives configuration information from the management node for the data stream that needs to undergo packet loss detection. The configuration information includes the five-tuple information and coloring information of the data stream.

[0012] Based on the configuration information, message container information for the data stream is generated. The message container information includes a data stream identifier, a detection type, and coloring information. The detection type includes a packet loss detection type or a non-packet loss detection type. The coloring information includes the coloring period and coloring identifier of the data packets in the data stream. The message container information is used to perform packet loss detection.

[0013] The data stream is divided into at least one data packet, and load balancing is performed on the at least one data packet of the data stream using per-packet containers to obtain at least one packet container, the packet container including at least one data packet;

[0014] Send the at least one message container.

[0015] According to another aspect of this disclosure, a packet loss detection method for an optoelectronic hybrid network is provided, comprising:

[0016] The configuration information for the data stream that needs to be packet loss detected is sent to the source node. The configuration information includes the five-tuple information and coloring information of the data stream. The configuration information is used to generate the packet container information of the data stream. The packet container information includes the data stream identifier, detection type and coloring information. The detection type includes packet loss detection type or non-packet loss detection type. The coloring information includes the coloring period and coloring identifier of the data packets in the data stream. The packet container information is used to perform packet loss detection.

[0017] Receive packet loss events, which are used to indicate that packet loss has occurred in the first data stream.

[0018] According to one aspect of this disclosure, an electronic device is provided, including a memory, a processor, and a computer program stored in the memory, wherein the processor executes the computer program to implement the steps of any of the methods described above.

[0019] According to one aspect of this disclosure, a computer-readable storage medium is provided that stores a computer program / instructions thereon, which, when executed by a processor, implements the steps of any of the methods described above.

[0020] According to one aspect of this disclosure, a computer program product is provided, including a computer program that, when executed by a processor, implements the steps of any of the methods described above.

[0021] As will be described in detail below, the packet loss detection method for an optoelectronic hybrid network according to embodiments of this disclosure allows any electronic device in the optoelectronic hybrid network, such as a source node, destination node, or optical switching node, to receive at least one message container. Each message container includes message container information and at least one data packet. The message container information may include a data stream identifier, a detection type, and coloring information. The detection type may include a packet loss detection type or a non-packet loss check type, and the coloring information includes the coloring period and coloring identifier of the data packets in the data stream. Based on the message container information of each message container, packet loss detection is performed on each data stream to obtain a first data stream that meets the packet loss detection conditions. The first data stream needs to undergo packet loss detection. When performing packet loss detection on the first data stream, it is determined whether packet loss exists based on the data packets already received by the first data stream. If packet loss exists, a packet loss event is sent to the management node. The packet loss event is used to indicate that packet loss has occurred in the first data stream. By first determining the first data stream that needs packet loss detection and then performing packet loss detection on the data packets already received by the first data stream, packet loss detection is performed on the entire optoelectronic hybrid network, achieving better network management performance.

[0022] It should be understood that both the foregoing general description and the following detailed description are exemplary and intended to provide further illustration of the claimed technology. Attached Figure Description

[0023] The above and other objects, features, and advantages of this disclosure will become more apparent from the more detailed description of the embodiments thereof in conjunction with the accompanying drawings. The drawings are provided to further illustrate the embodiments of this disclosure and form part of the specification. They are used together with the embodiments of this disclosure to explain the disclosure and do not constitute a limitation thereof. In the drawings, the same reference numerals generally represent the same components or steps.

[0024] Figure 1 This is an example diagram illustrating an application of a hybrid optoelectronic network according to an embodiment of this disclosure;

[0025] Figure 2 This is a flowchart illustrating a packet loss detection method for a hybrid optoelectronic network according to an embodiment of the present disclosure;

[0026] Figure 3 This is a structural example diagram of a message container according to an embodiment of the present disclosure;

[0027] Figure 4 This is an example diagram illustrating the encapsulation structure of a message container according to an embodiment of the present disclosure;

[0028] Figure 5 This is a flowchart illustrating another packet loss detection method for an optoelectronic hybrid network according to an embodiment of the present disclosure;

[0029] Figure 6 This is an example diagram illustrating data stream transmission in a hybrid optoelectronic network according to an embodiment of the present disclosure;

[0030] Figure 7 This is an example diagram illustrating the topology of a hybrid optoelectronic network according to an embodiment of the present disclosure;

[0031] Figure 8 This is a flowchart illustrating a packet loss detection method for a hybrid optoelectronic network according to an embodiment of the present disclosure;

[0032] Figure 9 This is a flowchart illustrating a packet loss detection method for a hybrid optoelectronic network according to an embodiment of the present disclosure;

[0033] Figure 10 This is a schematic diagram illustrating the structure of a packet loss detection device for a hybrid optoelectronic network according to an embodiment of the present disclosure;

[0034] Figure 11 This is a schematic diagram illustrating the structure of a packet loss detection device for a hybrid optoelectronic network according to an embodiment of the present disclosure.

[0035] Figure 12 This is a schematic diagram illustrating the structure of a packet loss detection device for a hybrid optoelectronic network according to an embodiment of the present disclosure.

[0036] Figure 13 This is a hardware block diagram illustrating an electronic device according to an embodiment of the present disclosure. Detailed Implementation

[0037] To make the objectives, technical solutions, and advantages of this disclosure more apparent, exemplary embodiments according to this disclosure will now be described in detail with reference to the accompanying drawings. Obviously, the described embodiments are merely some embodiments of this disclosure, and not all embodiments of this disclosure. It should be understood that this disclosure is not limited to the exemplary embodiments described herein.

[0038] The technical solution disclosed herein can be applied to the scenario of optoelectronic hybrid network. Optoelectronic hybrid network generally includes electrical switching nodes and optical switching nodes. The source node and destination node are generally electrical switching nodes, and the optical switching node is generally a node used for signal forwarding.

[0039] In related technologies, in hybrid optoelectronic networks, data is primarily transmitted in stream form. To handle large stream bandwidths, a per-container load balancing mechanism can be introduced, changing stream distribution to packet distribution. This involves dividing a data stream into multiple data packets and then using packet containers for multipath propagation. The switching granularity is greater than or equal to per-packet forwarding but less than per-stream forwarding. A packet container can contain one or more data packets. However, in hybrid optoelectronic networks, such as GSE (Global Scheduling Ethernet), when transmitting packet containers, optical switches can only perform one-to-one port-level switching and cannot perform one-to-many routing. This results in data packets in a stream experiencing traffic detours, disordered packet order, and an inability to determine whether data packets are lost.

[0040] To address the aforementioned issues, this disclosure sets message container information and at least one data packet for the message container. The message container information may include multiple pieces of information, such as data flow identifier, detection type, and coloring information. The detection type may include a packet loss detection type or a non-packet loss check type, and the coloring information includes the coloring period and coloring identifier of the data packets in the data flow. Thus, based on the relatively complex message container information, packet loss detection can be performed on each data flow to determine the first data flow that meets the packet loss detection conditions, achieving preliminary screening of the data flows requiring packet loss detection. Subsequently, when performing packet loss detection on the detected first data flow, it is determined whether packet loss exists based on the data packets already received by the first data flow. If so, a packet loss event is sent to the management node, indicating that packet loss has occurred in the first data flow. By first identifying the first data flow requiring packet loss detection and then performing packet loss detection on the data packets already received by the first data flow, packet loss detection is achieved across the entire optoelectronic hybrid network, resulting in better network management performance.

[0041] Figure 1 This is an example diagram of a hybrid optoelectronic network provided in an embodiment of this disclosure. The hybrid optoelectronic network may include: a source node 10, at least one optical switching node 20 connected to the source node 10, a destination node 30 connected to the at least one optical switching node 20, and a management node 40. The source node 10 and the destination node 30 may be electrical switching nodes.

[0042] During the operation of the optoelectronic hybrid network, management node 40 can collect configuration information of the data stream input by the user. Management node 40 can send configuration information of the data stream for which packet loss detection needs to be performed to source node 10.

[0043] In one possible design, source node 10 can receive configuration information from management node 40 for data streams that require packet loss detection, the configuration information including the five-tuple information and coloring information of the data stream; generate message container information for the data stream according to the configuration information; divide the data stream into at least one data packet, and perform per-message container load balancing on the at least one data packet of the data stream to obtain at least one message container, the message container including at least one data packet; and send the at least one message container.

[0044] After source node 10 sends at least one message container, each optical switching node can forward the message containers, and destination node 30 can receive the message containers. During the forwarding of one or more message containers, based on... Figure 1 In the illustrated optoelectronic hybrid network, the source node 10, each optical switching node 20, and the destination node 30 can all execute the packet loss detection method of this disclosure, that is, they can all execute:

[0045] The system receives at least one message container, which includes message container information and at least one data packet. The message container information includes a data stream identifier, a detection type, and coloring information. The detection type includes a packet loss detection type or a non-packet loss detection type. The coloring information includes the coloring period and coloring identifier of the data packets in the data stream. Based on the message container information of each message container, a first data stream that meets the packet loss detection conditions is determined. If packet loss occurs in the data packets received by the first data stream, a packet loss event is sent to the management node 40. The packet loss event is used to indicate that packet loss has occurred in the first data stream. Correspondingly, the management node 40 can receive packet loss events.

[0046] Figure 2 This flowchart illustrates a packet loss detection method for a hybrid optoelectronic network according to an embodiment of the present disclosure. This method can be configured as a packet loss detection device for the hybrid optoelectronic network, which can be located in an electronic device (e.g., a source node, any optical switching node, or a destination node). The packet loss detection method for the hybrid optoelectronic network may include the following steps:

[0047] S201. Receive at least one message container, the message container including message container information and at least one data packet, the message container information including data stream identifier, detection type and coloring information, the detection type including packet loss detection type or non-packet loss detection type, the coloring information including the coloring period and coloring identifier of data packets in the data stream.

[0048] Optionally, receiving at least one message container may include receiving at least one message request sent by one or more nodes. The one or more nodes may be any node connected to the electronic device.

[0049] Optionally, the message container information can be part of the message container's header information.

[0050] Optionally, the message container may include at least one data packet (or datagram). For example... Figure 3 The diagram shown is an example of a message container, which includes three data messages: Message 1, Message 2, and Message 3. Each data message has the following structure: GSE header + Ethernet message. The Ethernet message is the original message, and the GSE header is the header information encapsulated within the Ethernet message.

[0051] In this embodiment, in addition to information such as the GSE header and hop number field, a field corresponding to the message container information is added to the message container. For example... Figure 4 The diagram illustrates the encapsulation structure of a message container, which may include existing GSE header fields and hop number fields, as well as message container information. The message container information may be located to the right of the GSE header fields and hop number fields. The message container information may include at least one of the following: HIT (Header Type Indication), FlowMonID (Flow Identifier), DIR (Flow Direction Indicator), MOD (Identifier of Detection Type, including end-to-end detection type and hop-by-hop detection type), P (Coloring Period), L (Coloring Identifier), and RSV (Reserved Field).

[0052] For example, a HIT value of 1 indicates that packet loss detection needs to be performed, while a HIT value of 0 indicates that packet loss detection does not need to be performed. A FlowMonID value of 1 indicates that data flow is flowing in, while a FlowMonID value of 0 indicates that data flow is flowing out. FlowMonID can be considered an identifier for a data flow; each data flow has a unique identifier that can uniquely identify the corresponding data flow. For example, a DIR value of 1 indicates that the data flow direction is: data flow out of the node, while a DIR value of 0 indicates that the data flow direction is: data flow into the node. A MOD value of 1 indicates an end-to-end detection type, while a MOD value of 0 indicates a hop-by-hop detection type. P is the coloring period; within the same coloring period, the coloring is the same. L is the coloring identifier.

[0053] S202. Based on the message container information of each message container, determine the first data stream that meets the packet loss detection conditions.

[0054] Optionally, S202 may include: determining a first data stream that meets the packet loss detection conditions based on the data stream identifier, detection type, and coloring information in the message container information of each message container.

[0055] Furthermore, based on the data stream identifier, detection type, and coloring information in the message container information of each message container, it can be determined whether the data stream in the message container meets the packet loss detection conditions. If it does, the data stream is the first data stream; if it does not, the data stream is the second data stream. The second data stream is the data stream that does not require packet loss detection.

[0056] Meeting the packet loss detection criteria can include at least one of the following:

[0057] The data stream is detected as a packet loss detection type; the coloring information of multiple data packets received by the data stream is the same.

[0058] S203. If there is packet loss in the data packets received by the first data stream, a packet loss event is sent to the management node. The packet loss event is used to indicate that packet loss has occurred in the first data stream.

[0059] Optionally, after obtaining the first data stream, it can be determined whether there is packet loss in the data packets received by the first data stream. If there is, a packet loss event is generated and sent to the management node. If there is no packet loss, the data transmission phenomenon is monitored.

[0060] Optionally, before sending a packet loss event to the management node, the electronic device can generate a packet loss event first. Specifically, the packet loss event can be generated based on the five-tuple information of the first data stream, packet loss information, etc. A packet loss event can refer to an event used to indicate that packet loss has occurred in the first data stream, and can specifically be a message generated according to a certain message structure.

[0061] Optionally, after receiving a packet loss event, the management node can display information about the packet loss event through pop-ups, instant messaging messages, or other means. This information may include the cause of the packet loss and related information about the data packets already received in the first data stream.

[0062] In this embodiment, message container information and at least one data packet are set for the message container. The message container information may include multiple pieces of information, such as data flow identifier, detection type, and coloring information. The detection type may include a packet loss detection type or a non-packet loss check type, and the coloring information includes the coloring period and coloring identifier of the data packets in the data flow. Thus, based on the relatively complex message container information, packet loss detection can be performed on each data flow to obtain a first data flow that meets the packet loss detection conditions, achieving preliminary screening of the data flows that require packet loss detection. Subsequently, when performing packet loss detection on the detected first data flow, it is determined whether packet loss exists based on the data packets already received by the first data flow. If so, a packet loss event is sent to the management node, which is used to indicate that packet loss has occurred in the first data flow. By first determining the first data flow that needs packet loss detection, and then performing packet loss detection on the data packets already received by the first data flow, packet loss detection is performed on the entire optoelectronic hybrid network, achieving better network management performance.

[0063] Figure 5 This is another flowchart of a packet loss detection method for a hybrid optoelectronic network provided in this disclosure. The method includes the following steps:

[0064] S501. Receive at least one message container, the message container includes message container information and at least one data packet, the message container information includes data stream identifier, detection type and coloring information, the detection type includes packet loss detection type or non-packet loss detection type, and the coloring information includes the coloring period and coloring identifier of data packets in the data stream.

[0065] S502. Based on the message container information of each message container, select the first message container with the packet loss detection type from at least one message container.

[0066] Optionally, for a received message container, it can be determined whether the detection type in the message container information is a packet loss detection type. If yes, the message container is the first message container; otherwise, the message container is the second message container. The second message container can be a message container for a data stream that does not require packet loss detection.

[0067] S503. Based on the message container information of the first message container, divide the first message containers with the same data stream identifier into a message group to obtain at least one message group.

[0068] Optionally, the first message container may include one or more, and the first message containers with the same data flow identifier may be divided into the same message group according to the data flow identifier corresponding to at least one first message container.

[0069] The first message container may include multiple data packets, which may be data packets from different data streams. For example... Figure 6 The PKTC2 shown includes pkt3 of Flow1 and pkt1 of Flow2. The data flow identifier in the message container information may include at least one, such as the data flow identifier of Flow1 and the data flow identifier of Flow2.

[0070] When there are multiple first data packets, they can be grouped into one packet group if they have the same data flow identifier. For example, if PKTC1 and PKTC2 both have the data flow identifier Flow1, they can be grouped into the same packet group. If PKTC2 and PKTC3 both have the data flow identifier Flow2, they can be grouped into the same packet group.

[0071] S504. If at least one first message container in at least one message group has the same coloring information, then the data stream corresponding to the first message group is the first data stream that satisfies the packet loss detection condition.

[0072] Optionally, the coloring identifiers are the same for the same detection period. For example, the coloring identifiers for all data streams in detection period i can be 1 or 0.

[0073] S505, determine the data packets belonging to the first data stream in at least one first message container of the first message group as data packets that have been received by the first data stream.

[0074] Understandably, for message containers, data streams plus message identifiers can be used to distinguish data packets from different data streams. For example, Flow1+pkt1 and Flow1+pkt2 in the first message container PKTC1, and Flow1+pkt3 in the second message container PKTC2, can be identified as data packets that Flow1 has received.

[0075] S506. If there is packet loss in the data packets received by the first data stream, a packet loss event is sent to the management node. The packet loss event is used to indicate that packet loss has occurred in the first data stream.

[0076] In this embodiment, after receiving at least one message container, a first message container with packet loss detection can be selected from among numerous message containers to obtain the data stream requiring packet loss detection. Then, the first message container is grouped according to the data stream identifier, allowing messages belonging to the same data stream to be grouped together to obtain at least one message group. After obtaining the message group, the consistency of the coloring information within the same message group can be checked to accurately locate the first data stream that meets the packet loss detection conditions, filtering out data streams that do not meet the packet loss detection requirements. Thus, the data packets corresponding to the first data stream in the first message group are identified as received data packets, and targeted and precise packet loss detection is performed. Timely packet loss alerts are provided for the first data stream exhibiting packet loss, reducing the impact of packet loss on services relying on continuous data streams and ensuring network service quality.

[0077] For ease of understanding, Figure 6 A diagram illustrating an example of data stream transmission in a hybrid optoelectronic network is shown. (Reference) Figure 6The optoelectronic hybrid network may include: a source node (GSP A11), a transmission path consisting of at least one optical switching node (GSF A1, OSC1, OSC2 and OSC3, GSF B2), and a destination node (GSP B22). For data flow 1 (Flow1) and data flow 2 (Flow2), data flow 1 is divided into three data packets, represented as: Flow1 pkt1, Flow1 pkt2, and Flow1pkt3. Data flow 2 is divided into three data packets, represented as: Flow2 pkt1, Flow2 pkt2, and Flow2pkt3. Flow1 pkt1 and Flow1 pkt2 are encapsulated in a first message container PKTC1, Flow1pkt3 and Flow2 pkt1 are encapsulated in a second message container PKTC2, and Flow2 pkt2 and Flow2 pkt3 are encapsulated in a third message container PKTC3. PKTC1 is transmitted to GSF B2 via transmission path OSC1, PKTC2 is transmitted to GSF B2 via transmission path OSC2, and PKTC3 is transmitted to GSF B2 via transmission path OSC3. GSF B2 restores the data streams (Flow1, Flow2) and sends them to the destination node (GSPB22).

[0078] Furthermore, based on any of the above embodiments, the method for determining whether packet loss exists in the first data stream may include:

[0079] Method 1: Determine the first number of data packets received by the first data stream; obtain the second number of data packets received by the first data stream at adjacent nodes or destination nodes; determine whether the first number of data packets and the second number of data packets are the same. If they are different, then the first data stream has packet loss; if they are the same, then the first data stream does not have packet loss.

[0080] Optionally, the number of first data packets can be updated each time a data packet of the first data stream is received. If the number of first data packets corresponding to the data packets of the first data stream no longer changes within a certain period of time, the monitoring of the reception of data packets of the first data stream is terminated.

[0081] Adjacent nodes can refer to the previous or next hop node of the current node during the transmission of the first data stream.

[0082] For any data stream, the number of data packets received by the data stream can be determined, and when it is determined that there is packet loss in the data stream, a new packet loss event can be sent.

[0083] In this method, the actual number of received data packets (the first number of data packets) and the number of data packets received by the adjacent node or the destination node (the second number of data packets) are counted separately, and then these two values ​​are directly compared. The logic is very clear and concise, and the determination efficiency and accuracy are high.

[0084] Method 2: Determine the message sequence number of the data packets received by the first data stream; based on the message sequence number of the received data packets, determine whether there is a missing message sequence number. If so, the first data stream has packet loss; if not, the first data stream has no packet loss.

[0085] Understandably, during the process of dividing a data stream into multiple data packets, the sequence number of each data packet can be determined according to the order in which the packets are divided, and the data packets can be sent in that order. The sequence number can be filled into the reserved field RSV. Of course, the sequence number can also be located in other fields or custom fields; this embodiment does not impose too many restrictions on this.

[0086] In this method, since message sequence numbers are usually continuous, it can accurately identify which sequence number corresponds to the lost data packet if a missing sequence number occurs. Therefore, detection based on message sequence numbers allows for continuous and accurate monitoring of packet loss as the data stream dynamically changes, better meeting the high requirements for data continuity.

[0087] Furthermore, based on any of the above embodiments, the message container information further includes: an identification detection type, wherein the identification detection type is an end-to-end detection type or a hop-by-hop detection type;

[0088] The step of determining the first data stream that meets the packet loss detection conditions based on the packet container information of each packet container includes:

[0089] If the identifier detection type is an end-to-end detection type, and the local node identifier is the same as the destination node identifier in the header information of the message container, then the first data stream that meets the packet loss detection condition is determined according to the message container information of each message container.

[0090] If the identification detection type is a hop-by-hop detection type, then the first data stream that meets the packet loss detection conditions is determined based on the packet container information of each packet container.

[0091] Optionally, when the detection type is identified as end-to-end detection, packet loss and latency in the data stream transmission between the source and target nodes can be detected. Furthermore, in the case of end-to-end detection, the hop count field in the header information can be obtained. The hop count field can include the transmission path between the source and target nodes.

[0092] by Figure 7Taking the topology of the optoelectronic hybrid network shown as an example, in this topology, GSP-A11 and GSP-A12 are respectively connected to GSF-A1; GSP-A21 and GSP-A22 are respectively connected to GSF-A2; GSP-B11 and GSP-B12 are respectively connected to GSF-A3; GSP-B21 and GSP-B22 are respectively connected to GSF-A4; GSF-A1 is connected to OSC1; GSF-A2 is connected to OSC; GSF-A3 is connected to OSC3; and GSF-A4 is connected to OSC4.

[0093] The path table between GSP-A11 and GSP-B22 is as follows:

[0094] GSP-A11->GSF-A1->GSF-B2->GSP-B22 (3 jumps);

[0095] GSP-A11->GSF-A1->GSF-A2->GSF-B2->GSP-B22 (4 hops);

[0096] GSP-A11->GSF-A1->GSF-B1->GSF-B2->GSP-B22 (4 hops);

[0097] GSP-A11->GSF-A1->GSF-A2->GSF-B1->GSF-B2->GSP-B22 (5 hops);

[0098] GSP-A11->GSF-A1->GSF-B1->GSF-A2->GSF-B2->GSP-B22 (5 hops).

[0099] The hop count field can record the hop count of the transmission path, and / or the node identifier of each node in the transmission path. The node identifier of the last node can be read from the node identifiers of the transmission path.

[0100] Alternatively, a global path table can be maintained, and after the transmission path is selected, the node identifier of the destination node can be determined based on the selected transmission path and the number of hops.

[0101] Optionally, when the identification detection type is end-to-end detection, the transmission path of the optoelectronic hybrid network can be divided into multiple sub-transmission paths, each of which is a segment of the transmission path. For each transmission path segment, the packet loss of adjacent nodes can be measured one by one, thereby quickly locating the node where packet loss occurred.

[0102] In this embodiment, an identifier detection type is set in the message container information. This identifier detection type can include end-to-end detection and hop-by-hop detection, broadening the strategy dimensions for packet loss detection. When the identifier detection type is end-to-end detection, packet loss detection is performed on both the source and destination nodes of the data stream. By setting the local node identifier to be the same as the destination node identifier in the message container header, the packet loss detection process is initiated when the data packet arrives at the target node. This avoids unnecessary detection operations in the middle, saves computing resources, and accurately locates the most critical receiving link, ensuring that the detection results are closely linked to the user's actual receiving experience. Hop-by-hop detection allows for real-time packet loss detection, bringing packet loss detection forward. Especially in complex multi-layered network architectures, it facilitates packet loss detection on each layer of the link, promptly identifying data streams with lost packets. By setting multiple detection methods, the detection compatibility of the entire system is improved, enabling accurate and effective packet loss detection in different network environments.

[0103] Furthermore, based on any of the above embodiments, the packet loss detection method provided in this disclosure may further include:

[0104] Based on the at least one message container, network status information is determined, which includes at least one of the following: message sending and receiving information, flow control information, and congestion information. The message sending and receiving information refers to the relevant information of messages received and sent by the current node. The flow control information refers to the message traffic sent and / or the message traffic received. The congestion information refers to the number of message containers marked as congested message containers.

[0105] Send the network status information to the management node.

[0106] Optionally, in addition to packet loss statistics, it is also possible to perform statistics on transmitted and received packets, PFC (Priority-based Flow Control) packets, and ECN (Explicit Congestion Notification) packets. Transmitted and received packet statistics provide information on transmitted and received packets. PFC packet statistics provide flow control information. ENC packet statistics provide congestion information.

[0107] The flow control information may include at least one of the following: the total number of bytes sent through the PFC mechanism, the total number of messages sent through the PFC mechanism, the total number of bytes received through the PFC mechanism, and the total number of messages received through the PFC mechanism.

[0108] The congestion information may include at least one of the following: the number of ECN-tagged message containers sent by the sender, the proportion of ECN-enabled messages in the sent messages, the number of ECN-tagged message containers received by the receiver, and the receiver's response to the received ECN-tagged messages.

[0109] In this embodiment, network status information, including message sending and receiving information, flow control information, and congestion information, is determined by extracting information from at least one message container. Message sending and receiving information reflects the current data interaction activity of nodes, flow control information presents the dynamic changes in message traffic, and congestion information intuitively reveals the degree of network congestion. This allows for a multi-dimensional understanding of the current network operation, resulting in more stable and efficient network operation.

[0110] After obtaining network status information, traffic in the optoelectronic hybrid network can be managed. To avoid excessively large sorting buffers at destination nodes, when the number of packet containers in a container window exceeds a certain threshold, the packet containers are forcibly sent out, releasing the buffer. Furthermore, based on any of the above embodiments, the packet loss detection method of this disclosure may further include:

[0111] Determine the number of message containers to be sent;

[0112] If the number of message containers to be sent is greater than or equal to a preset threshold, the message containers to be sent are forcibly sent to clear the memory occupied by the message containers to be sent.

[0113] Optionally, determining the number of message containers to be sent can refer to obtaining the number of message containers to be sent in the container window. The container window can refer to the storage space used to temporarily store message containers. The message containers to be sent can refer to message containers received by the receiving end or message containers sent by the sending end.

[0114] Optionally, a threshold number of container windows can be preset. When the number of message container data is greater than or equal to the threshold number, the message containers in the container window can be forcibly closed.

[0115] In this embodiment, the number of message containers is monitored. When the number exceeds or equals a preset threshold, the message container to be sent is forcibly sent, preventing excessive data accumulation locally. This maintains stable traffic output, prevents network congestion caused by excessive data backlog and subsequent large-scale transmissions, and ensures the stability of network transmission.

[0116] Furthermore, in order to obtain the message container to be sent, the message container information includes a data flow direction identifier, which is used to identify whether the data flow is inflow or outflow; it also includes:

[0117] Based on the direction identifier in the message container information of each message container, the message container with the direction identifier indicating that the data stream is flowing out is determined to be the message container to be sent.

[0118] Optionally, the message container information can include a field named Dir that indicates the storage direction. If the Dir field is 0, the data flow direction is inflow. If the Dir field is 1, the data flow direction is outflow.

[0119] In this embodiment, a data flow direction identifier is added to the message container information. This direction identifier is used to identify whether the data flow is inflowing or outflowing. Therefore, by utilizing the data flow direction identifier, data flows with different directions can be quickly and accurately distinguished, and message containers with a direction identifier indicating data flow outflow are identified as the message containers to be sent. Classifying message containers by direction identifier provides a clear dimension for network traffic monitoring, enabling a more accurate understanding of data flow transmission.

[0120] In the event of packet loss in the first data stream, the cause of the packet loss can be analyzed. Furthermore, based on any of the above embodiments, it may also include:

[0121] Perform packet loss analysis on the first data stream to obtain the reasons for packet loss in the first data stream. The reasons for packet loss include at least one of the following: authorization issues, packet loss during transmission;

[0122] Based on the cause of packet loss and the relevant information of the data packets already received in the first data stream, the packet loss event is generated. The relevant information of the received data packets includes at least one of the following: the five-tuple information of the data stream where the received data packets are located, the ingress, egress, reception time, the container identifier of the message container where the received data packets are located, the source node identifier, and the destination node identifier.

[0123] Understandably, authorization issues can refer to an electronic device lacking the right to receive a specific data stream, leading to transmission failure. Packet loss during transmission can refer to data packets that have normal receiving authorization but fail to transmit due to network transmission issues.

[0124] In this embodiment of the disclosure, packet loss analysis is performed on the first data stream to categorize the causes of packet loss into types such as authorization issues and packet loss during transmission. This categorization helps to quickly determine whether packet loss is due to insufficient permissions or simply a loss of data packets during network transmission, accurately pinpointing the source of the problem and providing direction for subsequent network repair.

[0125] Figure 8This is another flowchart illustrating a packet loss detection method for a hybrid optoelectronic network provided in this disclosure. The packet loss detection method of this disclosure can be packaged as a packet loss detection device, which can be located in the source node. The method includes the following steps:

[0126] S801: Receive configuration information from the management node for the data stream that needs to perform packet loss detection. The configuration information includes the data stream's quintuple information and coloring information.

[0127] Optionally, the five-tuple information of the data stream may include: source IP address, destination IP address, source port number, destination port number, and protocol number.

[0128] S802. Based on the configuration information, generate message container information for the data stream. The message container information includes the data stream identifier, detection type, and coloring information. The detection type includes packet loss detection type or non-packet loss detection type. The coloring information includes the coloring period and coloring identifier of the data packets in the data stream. The message container information is used to perform packet loss detection.

[0129] S803. Divide the data stream into at least one data packet, and perform per-packet load balancing on at least one data packet of the data stream to obtain at least one packet container, wherein the packet container includes at least one data packet.

[0130] Optionally, performing per-packet load balancing on at least one data packet to obtain at least one packet container may include: sequentially encapsulating each data packet into the corresponding packet container according to the number of data packets that the packet container can contain, thus obtaining at least one packet container. For example, if Flow1 is divided into 3 data packets, and each packet container can contain two data packets, the first two data packets can be encapsulated into the first packet container PKTC1, and the third data packet can be encapsulated into the second packet container PKTC2. Furthermore, data packets from different data flows can be encapsulated into the same packet container. If the current packet container has not reached its maximum capacity, data packets from other data flows can be encapsulated into that packet container. For example, the first data packet of Flow2 can be encapsulated into the second packet container PKTC2.

[0131] S804, Send at least one message container.

[0132] Optionally, S804 may include at least one message container for sending data streams.

[0133] In addition, the source node executes Figure 8 Based on the illustrated embodiment, it is also possible to execute Figure 2 The packet loss detection method shown will not be elaborated further here.

[0134] In this embodiment, the source node can receive configuration information from the management node, where the 5-tuple information uniquely and accurately identifies the data stream requiring packet loss detection. Combining the 5-tuple information and coloring information, packet container information can be generated. The specific packet loss detection is identified through the packet container information. Subsequently, the data stream is split into data packets and then evenly distributed to each packet container. This effectively prevents local network congestion or excessive node load, achieving balanced and efficient data stream transmission. This ensures that at least one sent packet container carries complete detection information and a reasonable load, flowing orderly to the destination node and initiating subsequent detection processes at the receiving end, thus guaranteeing the continuity and integrity of the packet loss detection mechanism.

[0135] Furthermore, based on any of the above embodiments, it also includes:

[0136] Based on the message container information of the data stream, select the target transmission path of the data stream;

[0137] Sending the at least one message container includes:

[0138] At least one message container of the data stream is sent according to the target transmission path.

[0139] Optionally, when the network topology of the optoelectronic hybrid network is known, a global path table can be maintained. The path table can include multiple transmission paths, and each transmission path can include a source node, at least one optical switching node belonging to the path, and a destination node.

[0140] Furthermore, selecting the target transmission path for the data stream based on the message container information of the data stream may include: obtaining a global path table and querying the global path table for a target transmission path that matches the message container information of the data stream.

[0141] The process of querying the global path table for the target transmission path that matches the message container information of the data stream may include: selecting the transmission path with the lower load and / or the shortest transmission path as the target transmission path based on the load of each transmission path in the global path table.

[0142] In this embodiment of the disclosure, the transmission path is selected based on the message container information of the data stream. This enables the selection of the transmission route that best suits the data stream based on its own characteristics, making network scheduling more flexible, thereby optimizing network resource allocation and improving overall transmission efficiency.

[0143] Figure 9 This is another flowchart illustrating a packet loss detection method for a hybrid optoelectronic network provided in this disclosure. The packet loss detection method can be configured as a packet loss detection device, which can be located at a management node. The method includes the following steps:

[0144] S901. Send the configuration information of the data stream for which packet loss detection needs to be performed to the source node. The configuration information includes the five-tuple information and coloring information of the data stream. The configuration information is used to generate the message container information of the data stream. The message container information includes the data stream identifier, detection type and coloring information. The detection type includes packet loss detection type or non-packet loss detection type. The coloring information includes the coloring period and coloring identifier of the data packets in the data stream. The message container information is used to perform packet loss detection.

[0145] Optionally, prior to S901, it may also include: in response to a trigger operation performed by the user, acquiring a data stream determined by the user and configuration information for the data stream input.

[0146] Understandably, an input or selection interface for the data stream can be provided to allow users to specify the data stream for which packet loss detection needs to be performed. An input interface for configuration information can also be provided to allow users to input configuration information for the selected data stream.

[0147] S902, Receive packet loss event. The packet loss event is used to indicate that packet loss has occurred in the first data stream.

[0148] Optionally, after S902, the function may further include: displaying information related to the packet loss event, such as the cause of the packet loss and information related to the data packets received in the first data stream.

[0149] In this embodiment, the management node sends configuration information, including data stream 5-tuple information and coloring information, to the source node. Utilizing the uniqueness of the 5-tuple, the specific data stream requiring packet loss detection can be accurately located in complex network environments, avoiding the blind expansion or narrowing of the detection scope. The source node generates packet container information based on the configuration information, which can be used for packet loss detection. Through packet loss detection, data streams with packet loss can be identified, and targeted alerts can be provided for these data streams, ensuring the consistency and integrity of the packet loss detection mechanism.

[0150] Furthermore, based on any of the above embodiments, it also includes:

[0151] Based on the electronic device or port that sent the packet loss event, a target network area where packet loss occurred is determined, the target network area including at least one electronic device or at least one port where the packet loss event occurred.

[0152] Optionally, packet loss events can be sent by electronic devices through ports. Specifically, packet loss detection has a certain geographical scope; the detection location of a packet loss event can be understood as the location where the packet loss event occurred. Therefore, the specific location of the packet loss event can be determined by obtaining the electronic device or port that sent the event. When there are multiple electronic devices or ports, the target network area where packet loss exists can be determined based on the various locations of the multiple electronic devices or the locations corresponding to the multiple ports. The target network area can include one or more. For example, the locations of multiple electronic devices or the locations corresponding to multiple ports can be clustered, and a clustering algorithm can be used to aggregate the approximate area containing the contours of the electronic device or port locations in each cluster, thus obtaining one or more target network areas.

[0153] Of course, after obtaining the target network area, it is possible to output prompts indicating abnormal transmission status of the target network area, so as to repair the target network area in a timely manner and improve the stability and efficiency of network operation.

[0154] In this embodiment of the disclosure, by tracing the electronic device or port that sent the packet loss event, the scope of the packet loss problem can be accurately pinpointed to the target network area. By quickly identifying the target network area, repair work can be carried out directly on the problem area, ensuring the continuity and stability of network services.

[0155] Figure 10 This is a schematic diagram of a packet loss detection device for a hybrid optoelectronic network provided in an embodiment of this disclosure. The packet loss detection device 1000 for the hybrid optoelectronic network may include:

[0156] The first receiving unit 1001 is configured to receive at least one message container, the message container including message container information and at least one data packet, the message container information including data stream identifier, detection type and coloring information, the detection type including packet loss detection type or non-packet loss detection type, and the coloring information including the coloring period and coloring identifier of data packets in the data stream.

[0157] The detection and judgment unit 1002 is used to determine the first data stream that meets the packet loss detection conditions based on the packet container information of each packet container.

[0158] The first sending unit 1003 is used to send a packet loss event to the management node if there is packet loss in the data packets received by the first data stream. The packet loss event is used to indicate that packet loss has occurred in the first data stream.

[0159] As one embodiment, the detection and determination unit may include:

[0160] The type detection module is used to select a first message container with a packet loss detection type from the at least one message container based on the message container information of each message container.

[0161] The message segmentation module is used to divide the first message containers with the same data flow identifier into a message group based on the message container information of the first message container, and obtain at least one message group.

[0162] The message determination module is configured to determine that if the coloring information corresponding to at least one first message container of the first message group in the at least one message group is the same, then the data stream corresponding to the first message group is the first data stream that satisfies the packet loss detection condition; the data packets received by the first data stream are the data packets belonging to the first data stream in at least one first message container of the first message group.

[0163] As yet another embodiment, it also includes:

[0164] The first processing unit is configured to determine the first number of data packets received by the first data stream; obtain the second number of data packets received by the first data stream at an adjacent node or a destination node; determine whether the first number of data packets and the second number of data packets are the same; if they are different, then the first data stream has packet loss; if they are the same, then the first data stream does not have packet loss.

[0165] Alternatively, the second processing unit is used to determine the message sequence number of the data packets received by the first data stream; based on the message sequence number of the received data packets, it determines whether there is a message sequence number missing phenomenon. If there is, then the first data stream has a packet loss phenomenon; if not, then the first data stream does not have a packet loss phenomenon.

[0166] As another embodiment, the message container information further includes: an identification detection type, wherein the identification detection type is an end-to-end detection type or a hop-by-hop detection type;

[0167] The detection and judgment unit may include:

[0168] The first detection module is used to determine the first data stream that meets the packet loss detection conditions based on the packet container information of each packet container if the identification detection type is an end-to-end detection type and the local node identifier is the same as the destination node identifier in the header information of the packet container.

[0169] The second detection module is used to determine the first data stream that meets the packet loss detection conditions based on the packet container information of each packet container if the identification detection type is a hop-by-hop detection type.

[0170] As yet another embodiment, it also includes:

[0171] A state acquisition unit is used to determine network state information based on the at least one message container. The network state information includes at least one of the following: message receiving and sending information, flow control information, and congestion information. The message receiving and sending information refers to the relevant information of messages received and sent by the current node. The flow control information refers to the message traffic sent and / or the message traffic received. The congestion information refers to the number of message containers marked as congested message containers.

[0172] A status sending unit is used to send the network status information to the management node.

[0173] As yet another embodiment, it also includes:

[0174] The quantity determination unit is used to determine the number of message containers in the message containers to be sent;

[0175] The second sending unit is used to forcibly send the message container to be sent if the number of message containers to be sent is greater than or equal to a preset number threshold, so as to clear the memory occupied by the message container to be sent.

[0176] As another embodiment, the message container information includes a data flow direction identifier, which is used to identify whether the data flow is inflow or outflow; it also includes:

[0177] The flow analysis unit is used to determine, based on the direction identifier in the message container information of each message container, the message container whose direction identifier is the data flow outflow as the message container to be sent.

[0178] As yet another embodiment, it also includes:

[0179] The packet loss analysis unit is used to perform packet loss analysis on the first data stream to obtain the packet loss cause of the first data stream. The packet loss cause includes at least one of the following: authorization problem, packet loss during transmission.

[0180] The event generation unit is used to generate the packet loss event based on the packet loss cause and the relevant information of the data packets received in the first data stream. The relevant information of the received data packets includes at least one of the following: the five-tuple information of the data stream where the received data packets are located, the ingress, egress, reception time, the container identifier of the message container where the received data packets are located, the source node identifier, and the destination node identifier.

[0181] Figure 11 This is a schematic diagram of a packet loss detection device for a hybrid optoelectronic network provided in an embodiment of this disclosure. The packet loss detection device 1100 for the hybrid optoelectronic network may include:

[0182] The second receiving unit 1101 receives configuration information sent by the management node to the data stream for which packet loss detection needs to be performed. The configuration information includes the five-tuple information and coloring information of the data stream.

[0183] The information generation unit 1102 is used to generate message container information of the data stream according to the configuration information. The message container information includes a data stream identifier, a detection type, and coloring information. The detection type includes a packet loss detection type or a non-packet loss detection type. The coloring information includes the coloring period and coloring identifier of the data packets in the data stream. The message container information is used to perform packet loss detection.

[0184] The data partitioning unit 1103 is used to partition the data stream into at least one data packet and perform per-packet container load balancing on the at least one data packet of the data stream to obtain at least one packet container, wherein the packet container includes at least one data packet.

[0185] The third sending unit 1104 is used to send the at least one message container.

[0186] As yet another embodiment, it also includes:

[0187] The path selection unit is used to select the target transmission path of the data stream based on the message container information of the data stream.

[0188] The third transmitting unit may include:

[0189] A path sending module is used to send at least one message container of the data stream according to the target transmission path.

[0190] Figure 12 This is a schematic diagram of a packet loss detection device for a hybrid optoelectronic network provided in an embodiment of this disclosure. The packet loss detection device 1200 for the hybrid optoelectronic network may include:

[0191] The fourth sending unit 1201 is used to send configuration information of the data stream for which packet loss detection needs to be performed to the source node. The configuration information includes the five-tuple information and coloring information of the data stream. The configuration information is used to generate the message container information of the data stream. The message container information includes the data stream identifier, detection type and coloring information. The detection type includes packet loss detection type or non-packet loss detection type. The coloring information includes the coloring period and coloring identifier of the data packets in the data stream. The message container information is used to perform packet loss detection.

[0192] The event receiving unit 1202 is used to receive packet loss events, which are used to indicate that packet loss has occurred in the first data stream.

[0193] As yet another embodiment, it also includes:

[0194] The region determination unit is used to determine the target network region where packet loss occurs based on the electronic device or port that sent the packet loss event, wherein the target network region includes at least one electronic device or at least one port where the packet loss event occurred.

[0195] Figure 13 The present disclosure provides a schematic diagram of the structure of an electronic device, which may include a memory 1301, a processor 1302, and a computer program stored in the memory 1301. The processor 1302 executes the computer program to implement any of the packet loss detection methods for optoelectronic hybrid networks described above. The electronic device may be, for example, a node in an optoelectronic hybrid network, such as a source node, a destination node, or an optical switching node.

[0196] In a hybrid optoelectronic network, each node can perform the following steps: receive at least one message container, the message container including message container information and at least one data packet, the message container information including data stream identifier, detection type, and coloring information, the detection type including packet loss detection type or non-packet loss detection type, the coloring information including the coloring period and coloring identifier of the data packets in the data stream; determine a first data stream that meets the packet loss detection conditions based on the message container information of each message container; if there is packet loss in the data packets received by the first data stream, send a packet loss event to the management node, the packet loss event being used to indicate that packet loss has occurred in the first data stream.

[0197] Furthermore, embodiments of this application also provide a computer-readable storage medium storing a computer program thereon, which, when executed by a processor, implements any of the packet loss detection methods for optoelectronic hybrid networks described above.

[0198] Furthermore, this application also provides a computer program product, including a computer program that, when executed by a processor, implements any of the packet loss detection methods for optoelectronic hybrid networks described above.

[0199] The basic principles of this disclosure have been described above with reference to specific embodiments. However, it should be noted that the advantages, benefits, and effects mentioned in this disclosure are merely examples and not limitations, and should not be considered as essential features of each embodiment of this disclosure. Furthermore, the specific details disclosed above are for illustrative and facilitative purposes only, and are not limitations. These details do not limit the scope of this disclosure to the necessity of employing the aforementioned specific details for implementation.

[0200] The block diagrams of devices, apparatuses, devices, and systems disclosed herein are merely illustrative examples and are not intended to require or imply that they must be connected, arranged, or configured in the manner shown in the block diagrams. As those skilled in the art will recognize, these devices, apparatuses, devices, and systems can be connected, arranged, and configured in any manner. Words such as “comprising,” “including,” “having,” etc., are open-ended terms meaning “including but not limited to,” and are used interchangeably with them. The terms “or” and “and” as used herein refer to the terms “and / or,” and are used interchangeably with them unless the context clearly indicates otherwise. The term “such as” as used herein refers to the phrase “such as but not limited to,” and is used interchangeably with it.

[0201] Additionally, as used herein, the “or” used in a list of items beginning with “at least one” indicates a separate list, such that a list of, for example, “at least one of A, B, or C” means A or B or C, or AB or AC or BC, or ABC (i.e., A and B and C). Furthermore, the word “exemplary” does not imply that the described example is preferred or better than other examples.

[0202] It should also be noted that in the systems and methods of this disclosure, the components or steps can be decomposed and / or recombined. These decompositions and / or recombinations should be considered as equivalent solutions to this disclosure.

[0203] Various changes, substitutions, and modifications can be made to the technology herein without departing from the teachings defined by the appended claims. Furthermore, the scope of the claims of this disclosure is not limited to the specific aspects of the processes, machines, manufactures, events, means, methods, and actions described above. Currently existing or later-developed processes, machines, manufactures, events, means, methods, or actions that perform substantially the same function or achieve substantially the same result as the corresponding aspects herein can be utilized. Therefore, the appended claims include such processes, machines, manufactures, events, means, methods, or actions within their scope.

[0204] The above description of the disclosed aspects is provided to enable any person skilled in the art to make or use this disclosure. Various modifications to these aspects will be readily apparent to those skilled in the art, and the general principles defined herein may be applied to other aspects without departing from the scope of this disclosure. Therefore, this disclosure is not intended to be limited to the aspects shown herein, but rather to be carried out within the widest scope consistent with the principles and novel features disclosed herein.

[0205] The above description has been given for purposes of illustration and description. Furthermore, this description is not intended to limit the embodiments of this disclosure to the forms disclosed herein. Although numerous exemplary aspects and embodiments have been discussed above, those skilled in the art will recognize certain variations, modifications, alterations, additions, and sub-combinations therein.

Claims

1. A method for detecting packet loss in an opto-electric hybrid network, the method comprising: The method includes: Receive at least one message container, the message container including message container information and at least one data packet, the message container information including data stream identifier, detection type and coloring information, the detection type including packet loss detection type or non-packet loss detection type, the coloring information including the coloring period and coloring identifier of data packets in the data stream; Based on the message container information of each message container, determine the first data stream that meets the packet loss detection conditions; If there is packet loss in the data packets received by the first data stream, a packet loss event is sent to the management node. The packet loss event is used to indicate that packet loss has occurred in the first data stream.

2. The method of claim 1, wherein, The step of determining the first data stream that meets the packet loss detection conditions based on the packet container information of each packet container includes: Based on the message container information of each message container, select a first message container whose detection type is packet loss detection from the at least one message container; Based on the message container information of the first message container, the first message containers with the same data flow identifier are divided into a message group to obtain at least one message group. If the coloring information corresponding to at least one first message container in the first message group is the same, then the data stream corresponding to the first message group is the first data stream that satisfies the packet loss detection condition; the data packets received by the first data stream are the data packets belonging to the first data stream in at least one first message container of the first message group.

3. The method of claim 1, wherein, Also includes: Determine the first number of data packets that the first data stream has received; Obtain the number of second data packets received by the first data stream at the adjacent node or the destination node; Determine whether the number of the first data packet and the number of the second data packet are the same. If they are different, then the first data stream has packet loss. If they are the same, then there is no packet loss in the first data stream; Alternatively, determine the message sequence number of the data packets already received by the first data stream; based on the message sequence number of the received data packets, determine whether there is a missing message sequence number phenomenon. If it exists, then the first data stream has packet loss; if it does not exist, then the first data stream has no packet loss phenomenon.

4. The method of claim 1, wherein, The message container information also includes: an identifier detection type, wherein the identifier detection type is an end-to-end detection type or a hop-by-hop detection type; The step of determining the first data stream that meets the packet loss detection conditions based on the packet container information of each packet container includes: If the identifier detection type is an end-to-end detection type, and the local node identifier is the same as the destination node identifier in the header information of the message container, then the first data stream that meets the packet loss detection condition is determined according to the message container information of each message container. If the identification detection type is a hop-by-hop detection type, then the first data stream that meets the packet loss detection conditions is determined based on the packet container information of each packet container.

5. The method of claim 1, wherein, Also includes: Based on the at least one message container, network status information is determined, which includes at least one of the following: message sending and receiving information, flow control information, and congestion information. The message sending and receiving information refers to the relevant information of messages received and sent by the current node. The flow control information refers to the message traffic sent and / or the message traffic received. The congestion information refers to the number of message containers marked as congested message containers. Send the network status information to the management node.

6. The method of claim 5, wherein, Also includes: Determine the number of message containers to be sent; If the number of message containers to be sent is greater than or equal to a preset threshold, the message containers to be sent are forcibly sent to clear the memory occupied by the message containers to be sent.

7. The method of claim 6, wherein, The message container information includes a data flow direction identifier, which is used to identify whether the data flow is inflow or outflow; it also includes: Based on the direction identifier in the message container information of each message container, the message container with the direction identifier indicating that the data stream is flowing out is determined to be the message container to be sent.

8. The method of claim 1, wherein, Also includes: Perform packet loss analysis on the first data stream to obtain the reasons for packet loss in the first data stream. The reasons for packet loss include at least one of the following: authorization issues, packet loss during transmission; Based on the cause of packet loss and the relevant information of the data packets already received in the first data stream, the packet loss event is generated. The relevant information of the received data packets includes at least one of the following: the five-tuple information of the data stream where the received data packets are located, the ingress, egress, reception time, the container identifier of the message container where the received data packets are located, the source node identifier, and the destination node identifier.

9. A method for detecting packet loss in an opto-electric hybrid network, the method comprising: include: The system receives configuration information from the management node for the data stream that needs to undergo packet loss detection. The configuration information includes the five-tuple information and coloring information of the data stream. Based on the configuration information, message container information for the data stream is generated. The message container information includes a data stream identifier, a detection type, and coloring information. The detection type includes a packet loss detection type or a non-packet loss detection type. The coloring information includes the coloring period and coloring identifier of the data packets in the data stream. The message container information is used to perform packet loss detection. The data stream is divided into at least one data packet, and load balancing is performed on the at least one data packet of the data stream using per-packet containers to obtain at least one packet container, the packet container including at least one data packet; Send the at least one message container.

10. The method of claim 9, wherein, Also includes: Based on the message container information of the data stream, select the target transmission path of the data stream; Sending the at least one message container includes: At least one message container of the data stream is sent according to the target transmission path.

11. A method for detecting packet loss in an opto-electric hybrid network, the method comprising: include: The configuration information for the data stream that needs to be packet loss detected is sent to the source node. The configuration information includes the five-tuple information and coloring information of the data stream. The configuration information is used to generate the packet container information of the data stream. The packet container information includes the data stream identifier, detection type and coloring information. The detection type includes packet loss detection type or non-packet loss detection type. The coloring information includes the coloring period and coloring identifier of the data packets in the data stream. The packet container information is used to perform packet loss detection. Receive packet loss events, which are used to indicate that packet loss has occurred in the first data stream.

12. The method of claim 11, wherein, Also includes: Based on the electronic device or port that sent the packet loss event, a target network area where packet loss occurred is determined, the target network area including at least one electronic device or at least one port where the packet loss event occurred.

13. An electronic device, comprising: include: A processor and a memory, the memory being used to store computer programs or instructions, the processor being used to execute the computer programs or instructions to perform the method as described in any one of claims 1-8, 9-10, or 11-12.

14. A computer readable storage medium having stored thereon computer programs / instructions, characterized in that, When executed by a processor, the computer program implements the steps of the method as described in claims 1-8, 9-10, or 11-12.

15. A computer program product comprising a computer program, characterized in that, When executed by a processor, the computer program implements the steps of the method as described in claims 1-8, 9-10, or 11-12.