Business data transmission method and device, equipment and storage medium
Patent Information
- Application Number
- CN202310834484.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-07-07
- Publication Date
- 2026-10-13
- Estimated Expiration
- 2043-07-07
AI Technical Summary
将导致设备之间的数据不同步,无法实现精确的协同工作
[0038]本申请实施例中,无源光网络的光线路终端(Optical Line Terminal,OLT)与至少一个光网络单元(Optical Network Unit,ONU)连接,通过获取至少一个ONU的传输时延,判断至少一个ONU的传输时延是否均小于预设时延阈值,若均小于预设时延阈值则基于预设时延阈值,确定至少一个ONU的传输时延各自对应的延迟传输时间,基于至少一个ONU各自对应的延迟传输时间,将至少一个ONU的业务数据延迟传输至相应的数据接收端。
Smart Images

Figure CN116866275B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of industrial internet technology, specifically to a business data transmission method, apparatus, device, and storage medium. Background Technology
[0002] To meet the needs of enterprise intelligent transformation, Passive Optical Networks (PONs) are gradually replacing Industrial Ethernet as the bearer network for transmitting service data, in order to improve data transmission rates, network bandwidth, and reduce latency and jitter. However, for many precise business processes in the industrial field, the bearer network also needs to ensure that service data arrives on time. That is, the service data for specific services in the PON network can arrive at the destination uniformly and on time with the required latency, avoiding the impact of latency differences on timing. It cannot arrive late or early.
[0003] For example, on an automated production line, various devices need to transmit production data, control commands, and sensor data in a timely manner via a PON network to collaborate and complete the product manufacturing process, ensuring that processes such as component assembly, welding, and painting can be performed accurately. If there are differences in data transmission latency in the PON network, the time when different devices receive data will vary. This will lead to data asynchrony between devices, making precise collaborative work impossible.
[0004] Therefore, ensuring the timely arrival of service data transmitted over a PON network is an urgent problem to be solved. Summary of the Invention
[0005] This application provides a service data transmission method, apparatus, device, and storage medium to ensure that service data transmitted over a PON network arrives on time.
[0006] Firstly, a method for transmitting business data is provided, the method comprising:
[0007] The transmission delay of the at least one ONU is obtained, wherein the transmission delay represents the data transmission time required for the corresponding ONU to send service data to its corresponding data receiving end;
[0008] Determine whether the transmission delay of at least one ONU is less than a preset delay threshold, wherein the preset delay threshold is determined based on the target service requirements corresponding to the OLT;
[0009] If all are less than the preset delay threshold, then based on the preset delay threshold, the delay transmission time corresponding to the transmission delay of each of the at least one ONU is determined, and the delay transmission time is determined based on the difference between the transmission delay and the preset delay threshold;
[0010] Based on the respective delayed transmission time of each of the at least one ONU, the service data of the at least one ONU is delayed and transmitted to the corresponding data receiving end so that the service data of the at least one ONU arrives at their respective corresponding data receiving ends at the same time.
[0011] Optionally, obtaining the transmission delay of the at least one ONU includes:
[0012] Based on the device identifier corresponding to each of the at least one ONU, the network address of each of the at least one ONU is determined;
[0013] Based on the network address of each of the at least one ONU, a delay acquisition instruction is sent to the corresponding ONU so that the ONU returns the corresponding transmission delay.
[0014] Optionally, the step of delaying the transmission of service data of the at least one ONU to the corresponding data receiving end based on the respective delayed transmission time of the at least one ONU includes:
[0015] Receive service data sent by at least one ONU;
[0016] Based on the reception time of the service data of the at least one ONU and the corresponding delay transmission time of each of the at least one ONU, determine the actual forwarding time of the service data of each of the at least one ONU;
[0017] The service data of the at least one ONU is sent to the data receiving end according to the corresponding actual forwarding time.
[0018] Optionally, after determining whether the transmission delay of at least one ONU is less than a preset delay threshold, the method further includes:
[0019] If it is determined that the transmission delay of at least one ONU is greater than the preset delay threshold, then the target service corresponding to the OLT is determined to be in an abnormal state, and a prompt message is sent to the service control terminal corresponding to the target service.
[0020] Secondly, a business data transmission apparatus is provided, the apparatus comprising:
[0021] The acquisition module is used to acquire the transmission delay of the at least one ONU, wherein the transmission delay represents the data transmission time required for the corresponding ONU to send service data to its corresponding data receiving end;
[0022] The judgment module is used to determine whether the transmission delay of the at least one ONU is less than a preset delay threshold, wherein the preset delay threshold is determined based on the target service requirements corresponding to the OLT;
[0023] The determining module is configured to, if all delays are less than the preset delay threshold, determine the delayed transmission time corresponding to the transmission delay of each of the at least one ONU based on the preset delay threshold, wherein the delayed transmission time is determined based on the difference between the transmission delay and the preset delay threshold.
[0024] The transmission module is used to delay the transmission of the service data of the at least one ONU to the corresponding data receiving end based on the corresponding delay transmission time of each of the at least one ONU, so that the service data of the at least one ONU arrives at their respective corresponding data receiving ends at the same time.
[0025] Optionally, the acquisition module is specifically used for:
[0026] Based on the device identifier corresponding to each of the at least one ONU, the network address of each of the at least one ONU is determined;
[0027] Based on the network address of each of the at least one ONU, a delay acquisition instruction is sent to the corresponding ONU so that the ONU returns the corresponding transmission delay.
[0028] Optionally, the transmission module is specifically used for:
[0029] Receive service data sent by at least one ONU;
[0030] Based on the reception time of the service data of the at least one ONU and the corresponding delay transmission time of each of the at least one ONU, determine the actual forwarding time of the service data of each of the at least one ONU;
[0031] The service data of the at least one ONU is sent to the data receiving end according to the corresponding actual forwarding time.
[0032] Optionally, the determining module is further configured to:
[0033] If it is determined that the transmission delay of at least one ONU is greater than the preset delay threshold, then the target service corresponding to the OLT is determined to be in an abnormal state, and a prompt message is sent to the service control terminal corresponding to the target service.
[0034] Thirdly, a computer device is provided, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the computer program to implement the steps of any of the methods in the first aspect described above.
[0035] Fourthly, a computer storage medium is provided that stores computer program instructions thereon, which, when executed by a processor, implement the steps of any of the methods in the first aspect described above.
[0036] Fifthly, a computer program product or computer program is provided, the computer program product or computer program including computer instructions stored in a computer-readable storage medium. A processor of a computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, causing the computer device to perform the steps of any of the methods in the first aspect described above.
[0037] The beneficial effects of the embodiments of this application are as follows:
[0038] In this embodiment of the application, the optical line terminal (OLT) of the passive optical network is connected to at least one optical network unit (ONU). By obtaining the transmission delay of at least one ONU, it is determined whether the transmission delay of at least one ONU is less than a preset delay threshold. If they are all less than the preset delay threshold, the delayed transmission time corresponding to the transmission delay of at least one ONU is determined based on the preset delay threshold. Based on the delayed transmission time corresponding to each of the at least one ONU, the service data of at least one ONU is transmitted to the corresponding data receiving end with delay.
[0039] In this method, the transmission delay represents the total data transmission time required for the ONU to send service data to the OLT and for the OLT to forward the service data to the corresponding data receiving end of the ONU. The preset delay threshold is determined by the target service requirements corresponding to the OLT in this embodiment. Therefore, by calculating the difference between the transmission delay and the preset delay threshold, the required delay transmission time of each ONU can be determined, thereby delaying the transmission of service data of each ONU to its corresponding data receiving end. This achieves the unified and timely transmission of service data of each ONU to its respective corresponding data receiving end at the same time, meeting the delay requirements of the target service, ensuring the collaborative work of each link in industrial production and the accuracy of the production process, avoiding the impact of delay differences on timing, ensuring the data synchronization and coordination between different devices, and improving product quality and production efficiency.
[0040] Other features and advantages of this application will be set forth in the following description and will be apparent in part from the description or may be learned by practicing the application. The purposes and other advantages of this application may be realized and obtained by means of the structures particularly pointed out in the written description, claims, and drawings. It should be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not intended to limit this disclosure. Attached Figure Description
[0041] To more clearly illustrate the technical solutions in the embodiments of this application or related technologies, the drawings used in the description of the embodiments or related technologies will be briefly introduced below. Obviously, the drawings described below are only embodiments of this application. For those skilled in the art, other drawings can be obtained based on the provided drawings without creative effort.
[0042] Figure 1 This is a schematic diagram of an application scenario provided by an embodiment of this application;
[0043] Figure 2 A flowchart illustrating a business data transmission method provided in an embodiment of this application;
[0044] Figure 3 A schematic diagram illustrating the determination of delayed transmission time, provided as an embodiment of this application;
[0045] Figure 4 A schematic diagram of the interaction flow of another business data transmission method provided in an embodiment of this application;
[0046] Figure 5 This is a schematic diagram of the structure of a business data transmission device provided in an embodiment of this application;
[0047] Figure 6 This is a schematic diagram of the composition structure of a computer device provided in an embodiment of this application. Detailed Implementation
[0048] To make the objectives, technical solutions, and advantages of this application clearer, the technical solutions in the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only a part of the embodiments of this application, and not all of them. Based on the embodiments of this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application. Unless otherwise specified, the embodiments and features in the embodiments of this application can be arbitrarily combined with each other. Furthermore, although a logical order is shown in the flowchart, in some cases, the steps shown or described may be performed in a different order than that shown here.
[0049] The terms "first" and "second" in the specification, claims, and accompanying drawings of this application are used to distinguish different objects, not to describe a specific order. Furthermore, the term "comprising" and any variations thereof are intended to cover non-exclusive protection. For example, a process, method, system, product, or device that includes a series of steps or units is not limited to the listed steps or units, but may optionally include steps or units not listed, or may optionally include other steps or units inherent to these processes, methods, products, or devices. The term "multiple" in this application can mean at least two, for example, two, three, or more, and the embodiments of this application do not impose limitations.
[0050] The data collection, dissemination, and use in this application all comply with relevant national laws and regulations.
[0051] To facilitate understanding of the technical solutions provided in the embodiments of this application, some key terms used in the embodiments of this application will be explained below:
[0052] PON (Passive Optical Network) network: A broadband access network architecture based on optical fiber transmission technology. It uses optical fiber as the transmission medium, transmitting optical signals from multiple OLTs to multiple ONUs through distributed connections in the optical fiber network. The ONUs then transmit the data to terminal devices, realizing the data transmission function of the optical fiber network. Compared to traditional Ethernet, PON offers advantages such as higher bandwidth, longer transmission distance, and lower power consumption. It also supports multiple users sharing optical fiber resources and is widely used in various application scenarios, including broadband access, telecommunications services, and enterprise networks. It can support multiple service types, such as internet access, IP telephony, and video surveillance.
[0053] OLT: The core device in the PON architecture, serving as the starting point of the fiber optic network, is responsible for managing and controlling the data transmission of the entire PON network. The OLT connects to the fiber optic line and transmits data to the connected ONUs via optical signals. The OLT is responsible for processing data from the upper-layer network and distributing it to the appropriate ONUs, while simultaneously receiving data from the ONUs and transmitting it back to the upper-layer network.
[0054] ONU: In a PON architecture, each ONU connects to a user's terminal equipment, such as a computer, router, or telephone. The ONU is responsible for receiving optical signals from the OLT and converting them into a data format suitable for the terminal equipment. Simultaneously, the ONU also converts data from the terminal equipment back into optical signals and transmits them back to the OLT via optical fiber. The ONU acts as the interface between the user equipment and the optical fiber network, performing data forwarding and optical signal conversion.
[0055] Deterministic services refer to service types with extremely high requirements for data transmission latency and timing, such as precision assembly, control systems, and sensor data acquisition in industrial production processes. For deterministic services, ensuring that data arrives with consistent latency is crucial.
[0056] The design concept of the embodiments of this application is briefly introduced below:
[0057] "Smart factories," as one of the three major themes of the Fourth Industrial Revolution led by intelligent manufacturing, focus on the research of intelligent production systems and processes, as well as the realization of networked distributed production facilities. To achieve intelligent transformation, related enterprises are gradually replacing industrial Ethernet with PON networks as the bearer network for transmitting business data, in order to improve data transmission rates, network bandwidth, and reduce latency and jitter. However, many precise business processes in the industrial field typically involve deterministic operations, and deterministic operations require data to arrive on time, rather than just arriving early. For example, on automated production lines, various devices need to transmit production data, control commands, and sensor data on time through the bearer network to work collaboratively and complete the product manufacturing process, ensuring that processes such as component assembly, welding, and painting can be performed accurately. If there are differences in data transmission latency in the PON network, the time when different devices receive data will vary. This will lead to data asynchrony between devices, making precise collaborative work impossible. Therefore, in addition to meeting the characteristics of high bandwidth, high speed, and low latency, the PON network, as the bearer network, also needs to ensure that the service data related to deterministic services can arrive on time. That is, all data can arrive at the destination uniformly and on time within the latency required by the deterministic service, without delay or early arrival, so as to avoid the impact of latency differences on timing.
[0058] However, to ensure real-time data transmission and responsiveness, current PON networks typically forward service data to the appropriate data receiver immediately upon receiving it from the ONU. Due to varying delays across transmission links, different processing times for different service data by the OLT, and factors such as network congestion and scheduling, the transmission time of service data from different ONUs for the same deterministic service can differ. For example, factors such as fiber length and signal transmission speed result in different delay characteristics for the transmission links connecting each ONU to the OLT. Even if three ONUs send service data simultaneously, the arrival time of the service data at the OLT will vary due to the different delays of the transmission links, causing the OLT to forward the service data to the data receiver at different times. Furthermore, the OLT needs to process the received service data and determine which data receiver to forward it to, a process that also takes time, potentially leading to inconsistent arrival times of the service data at the data receiver. Therefore, existing PON networks cannot meet the uniform data transmission delay requirements of deterministic services; that is, they cannot ensure that related service data is transmitted to the data receiver simultaneously and on time, meeting the delay requirements of deterministic services.
[0059] In view of the above problems, this application provides a service data transmission method. In this method, the optical fiber line terminal (OLT) of the passive optical network is connected to at least one optical network unit (ONU). By obtaining the transmission delay of at least one ONU, it is determined whether the transmission delay of at least one ONU is less than a preset delay threshold. If they are all less than the preset delay threshold, the delayed transmission time corresponding to the transmission delay of at least one ONU is determined based on the preset delay threshold. Based on the delayed transmission time corresponding to each of the at least one ONU, the service data of at least one ONU is transmitted to the corresponding data receiving end with delay. In this context, transmission delay represents the total data transmission time required for the ONU to send service data to the OLT and for the OLT to forward the service data to the corresponding data receiving end of the ONU. The preset delay threshold is determined by this application embodiment based on the target service requirements corresponding to the OLT. Therefore, by calculating the difference between the transmission delay and the preset delay threshold, this application embodiment can determine the required delayed transmission time for each ONU, thereby delaying the transmission of service data from each ONU to its corresponding data receiving end. This achieves the unified and timely transmission of service data from each ONU to its respective corresponding data receiving end at the same time, meeting the delay requirements of the target service, ensuring the collaborative work of various links in industrial production and the accuracy of the production process, avoiding the impact of delay differences on timing, ensuring data synchronization and coordination between different devices, and improving product quality and production efficiency.
[0060] The following is a brief introduction to the application scenarios to which the technical solutions of the embodiments of this application are applicable. It should be noted that the application scenarios described below are only for illustrating the embodiments of this application and are not intended to limit the scope. In specific implementation, the technical solutions provided by the embodiments of this application can be flexibly applied according to actual needs.
[0061] The technical solutions provided in this application can be applied to scenarios in various fields such as industrial automation systems and industrial control, where PON networks are used to transmit service data. Figure 1 The diagram shown is an application scenario provided by an embodiment of this application. In this scenario, an optical line terminal (OLT) 100, an optical network unit (ONU) 110, and a data receiver 120 may be included.
[0062] The Optical Line Terminal (OLT) 100 is a fiber optic line terminal in a PON network, responsible for the forwarding and control of optical signals. The OLT connects to the fiber optic network and establishes a communication link with one or more Optical Network Units (ONUs).
[0063] The Optical Network Unit (ONU) 110 is a terminal device in the PON network, connected to the OLT, and receives and transmits data via optical fiber lines. The ONU is responsible for transmitting service data from the data receiver to the OLT and transmitting service data forwarded by the OLT to the data receiver.
[0064] The data receiving end 120 is a computer device with certain computing capabilities that is connected one-to-one with the ONU 110. It can be an industrial control device, such as a programmable logic controller (PLC) and a distributed control system (DCS), a terminal device in industrial control, a terminal device in a smart grid, a terminal device in transportation safety, a terminal device in a smart city, or a terminal device in a smart home, a mobile phone, a personal computer, a server, a mobile internet device (MID), a wearable device, a virtual reality (VR) device, an augmented reality (AR) device, a terminal device in autonomous driving, or any other device that can connect to the PON network through the ONU to achieve network communication and receive service data transmitted from the ONU for corresponding processing and analysis. This embodiment does not impose any specific limitations.
[0065] Specifically, taking a PLC controller as the data receiving end and various industrial devices on the production line as an example, the PLC controller and each industrial device establish communication connections with the OLT through their respective ONUs, enabling the PLC controller to monitor and control the various industrial devices on the production line. The OLT, based on the business data transmission method provided in this application, obtains the transmission delay of each ONU and, combined with the delay requirements of specific services, determines the corresponding delayed transmission time for each ONU. When the PLC controller transmits control commands to the OLT through the ONU, the OLT, according to the delayed transmission time corresponding to that ONU, delays the transmission of the commands to the ONUs corresponding to each industrial device, ensuring that the ONUs send the control commands to the industrial devices at a specified time. This allows all industrial devices on the production line to receive and execute the control commands simultaneously, enabling them to operate according to a unified rhythm and sequence, avoiding asynchronous or misaligned operation due to delay differences, and improving the stability and consistency of the production line. At the same time, each piece of industrial equipment can transmit real-time data to the PLC controller at the same time through the ONU and OLT, ensuring the consistency of data arrival, thereby eliminating time delay differences between data, reducing errors and drift during data transmission, and improving the reliability and accuracy of data. The PLC controller can also perform accurate calculations and judgments based on consistent data, thereby better monitoring and controlling industrial equipment.
[0066] It should be noted that, Figure 1 The examples shown are merely illustrative; in reality, the number of Optical Line Terminals (OLTs), Optical Network Units (ONUs), and data receivers is unlimited and not specifically limited in the embodiments of this application. Figure 1 The components and structures shown are merely exemplary and not restrictive. In real-world scenarios, other components and structures may be used as needed.
[0067] The following describes the business data transmission method provided by the exemplary embodiments of this application in conjunction with the application scenarios described above and with reference to the accompanying drawings. It should be noted that the above application scenarios are only shown to facilitate understanding of the spirit and principles of this application, and the embodiments of this application are not limited in any way in this respect.
[0068] See Figure 2 The diagram shown is a flowchart illustrating the business data transmission method provided in an embodiment of this application. Figure 1 The OLT shown is used as an example to illustrate the execution entity. The specific implementation process of this method is as follows:
[0069] Step 201: Obtain the transmission delay of each ONU.
[0070] In this embodiment, the transmission delay of each ONU represents the data transmission time required for each ONU to send service data to its corresponding data receiving end. Therefore, obtaining the transmission delay of each ONU can provide reference information for subsequent delay transmission time calculation and service data scheduling.
[0071] In one possible implementation, the OLT can periodically acquire the transmission latency of each ONU by setting a timed task or timed event, such as acquiring the transmission latency of all ONUs connected to it every 5 minutes, 10 minutes, and 60 minutes, or setting the occurrence of a specific event to trigger the acquisition of transmission latency, such as network failure or performance threshold exceeding a preset value. Alternatively, the acquisition of transmission latency can be manually initiated by network administrators or other relevant personnel.
[0072] In one possible implementation, the network address of each ONU can be determined according to the device identifier corresponding to each ONU, and a delay acquisition command can be sent to each ONU according to the network address so that the ONU can return the corresponding transmission delay.
[0073] Specifically, each ONU's network address can be an Internet Protocol (IP) address. The OLT internally stores a mapping table that records relevant information for each ONU connected to the OLT, including unique identifiers such as the ONU's identification code or Media Access Control (MAC) address and its corresponding IP address. Therefore, the OLT can retrieve the IP addresses of each connected ONU from the internal mapping table based on each ONU's unique identifier. After obtaining the IP addresses of each ONU, the OLT initiates a latency acquisition command for each ONU to obtain the transmission latency with different ONUs as nodes.
[0074] In one possible implementation, the latency acquisition command can be the ping command. The ping command is a network tool used to test connectivity between hosts and measure network response time. By sending an ICMP (Internet Control Message Protocol) echo request message, the ping command can determine whether the target host is reachable and the time required for data round trip. When the OLT receives reply messages from each ONU to the ping command, it can calculate the time from when the OLT sends the ping command to when the ONU receives and replies, including the time it takes for the ping command to travel through the network and the time it takes for the ONU to receive and reply. In other words, the round-trip time (RTT) between the OLT and the ONU can be measured through the ping command, which is used to estimate the transmission latency at the network layer and measure the delay in data transmission through the network. Since link layer latency includes both packet unpacking and packet repackaging delays, it is difficult to accurately calculate the link layer latency of real-time networks. Therefore, using the Ping command to measure the transmission latency of the network layer to estimate the link layer latency is currently a more accurate method to obtain the link layer latency of real-time networks. Moreover, the link layer latency is usually less than the network layer latency, and deterministic services generally have deterministic requirements on the order of milliseconds, so the equivalence here is reasonable.
[0075] Step 202: Determine whether the transmission delay of each ONU is less than the preset delay threshold. If yes, proceed to step 203; otherwise, proceed to step 205.
[0076] In this embodiment, a preset delay threshold T is determined based on the service requirements of the deterministic service corresponding to the OLT. The preset delay threshold T represents that the transmission delay of the service data related to the deterministic service must be less than T. By timely judging whether the transmission delay of each ONU is less than the preset delay threshold, the control and management of the service data transmission delay is realized, ensuring that the delay requirements of specific services are met.
[0077] In one possible implementation, the preset latency threshold can be determined based on the service's historical operational experience and its tolerance level. Specifically, by analyzing the service's past operational data, historical metrics, and performance indicators, a certain latency reference value can be derived as the preset latency threshold required by the service. Alternatively, different services have different latency requirements and sensitivities; the preset latency threshold can be determined based on the service's tolerance level or acceptable latency range.
[0078] Specifically, taking a particular workflow on a factory production line as an example, this workflow requires transmitting control commands from the PLC controller to the machine. Historical experience shows that the latency for successfully running this workflow has been between 1 and 5 milliseconds. Therefore, based on historical experience, a preset latency threshold of 5 milliseconds can be set for this workflow to ensure its stable operation. Alternatively, the workflow may require real-time transmission of control commands to a robot, ensuring the robot executes the command within 5 milliseconds. Any delay exceeding this range could lead to production line interruptions or malfunctions, negatively impacting production efficiency and product quality. Therefore, based on the workflow's tolerance, a preset latency threshold of 5 milliseconds can be set for this workflow to ensure its stable operation.
[0079] Step 203: Determine the transmission delay time corresponding to each ONU based on the preset delay threshold.
[0080] In this embodiment, after determining the preset delay threshold of the service requirements and the transmission delay of each ONU, the corresponding delayed transmission time of each ONU can be determined according to the difference between the transmission delay of each ONU and the preset delay threshold. By accurately calculating the delayed transmission time, it is ensured that the transmission delay of each ONU meets the delay requirements of the service.
[0081] Specifically, such as Figure 3 As shown, taking the connection between the OLT and four optical network units (ONU1, ONU2, ONU3, and ONU4) responsible for the data transmission of the target service, with a preset transmission delay of T for the target service as an example, the OLT obtains the transmission delays t1, t2, t3, and t4 corresponding to the four optical network units (ONU1, ONU2, ONU3, and ONU4) respectively, and determines that the above transmission delays are all less than the preset delay threshold T. Then, it starts to calculate the delayed transmission time Δ for each ONU, and determines that the delayed transmission times of the four optical network units (ONU1, ONU2, ONU3, and ONU4) are Δ1 = T - t1, Δ2 = T - t2, Δ3 = T - t3, and Δ4 = T - t4 respectively.
[0082] Step 204: Based on the corresponding delay transmission time of each ONU, the service data of each ONU is transmitted to the corresponding data receiving end with delay.
[0083] In this embodiment, after determining the corresponding delayed transmission time for each ONU, the OLT will be responsible for delaying the transmission of the service data transmitted by each ONU to the corresponding data receiving end of each ONU, so that the service data of each ONU arrives at its corresponding data receiving end at the same time, thus meeting the transmission delay requirements of the target service.
[0084] In one possible implementation, the OLT can receive service data sent by each ONU, determine the actual forwarding time of the service data of each ONU based on the reception time of the service data of each ONU and the corresponding delay transmission time of each ONU, and send the service data of each ONU to the data receiving end according to the actual forwarding time.
[0085] For details, please refer to Figure 4 As shown, in the PON network, the OLT is connected to two optical network units, ONU1 and ONU2. ONU1 and ONU2 are connected to data receiver 1 and data receiver 2, respectively. Taking a preset latency threshold T of 10ms required by the target service corresponding to this link as an example, the OLT obtains the transmission latency t1 of ONU1 as 8 milliseconds and the transmission latency t2 of ONU2 as 7ms. This acquisition process can be sequential or simultaneous, and is not limited to this. Figure 4 As shown. The OLT determines that the above transmission delays are all less than the preset delay threshold T, and calculates the corresponding delayed transmission times for ONU1 and ONU2 as Δ1 = 2ms and Δ2 = 3ms, respectively. That is, the service data of ONU1 and ONU2 need to be transmitted with an additional delay of 2 milliseconds and 3 milliseconds, respectively. When the OLT receives service data 1 and service data 2 sent by ONU1 and ONU2, respectively, it determines the reception times of the two service data as t1 and t2, respectively. Based on the delayed transmission times of ONU1 and ONU2, it determines the actual forwarding times of the service data of ONU1 and ONU2 as t1 + 2ms and t2 + 3ms, respectively. Thus, the OLT delays the transmission of service data 1 and service data 2 of ONU1 and ONU2 to their respective data receiving ends at the corresponding actual forwarding times.
[0086] Step 205: When it is determined that there is an ONU with a transmission delay greater than the preset delay threshold, it is determined that the target service corresponding to the OLT is in an abnormal state, and a prompt message is sent to the service control terminal corresponding to the target service.
[0087] In this embodiment, errors, message blocking, or other reasons may cause the ONU's internal processing to be too slow, resulting in the ONU's transmission delay exceeding the preset delay threshold required by the target service, indicating that the target service is in an abnormal state. Therefore, when the OLT determines that there is an ONU among its connected ONUs with a transmission delay exceeding the preset delay threshold, it can send a prompt message to the service control terminal corresponding to the target service, indicating that the ONU is abnormal.
[0088] In one possible implementation, the service control terminal that receives the prompt information sent by the OLT can improve the priority of the abnormal ONU, enable the guaranteed bandwidth mode, enable single-frame multi-Brust, etc., so that the service data stream sent by the abnormal ONU can be sent first when the transmission channel is idle and will not be blocked by other services, thus ensuring the normal transmission of service data. Alternatively, it can notify relevant maintenance personnel to handle the ONU so that the ONU's transmission can be restored to normal.
[0089] Please see Figure 5 Based on the same inventive concept, embodiments of this application also provide a business data transmission device 50, which includes:
[0090] The acquisition module 501 is used to acquire the transmission delay of at least one ONU, where the transmission delay represents the data transmission time required for the corresponding ONU to send service data to its corresponding data receiving end.
[0091] The judgment module 502 is used to determine whether the transmission delay of at least one ONU is less than a preset delay threshold, which is determined based on the target service requirements corresponding to the OLT.
[0092] The determining module 503 is used to determine the delayed transmission time corresponding to the transmission delay of at least one ONU based on the preset delay threshold if all delays are less than the preset delay threshold. The delayed transmission time is determined based on the difference between the transmission delay and the preset delay threshold.
[0093] The transmission module 504 is used to delay the transmission of service data of at least one ONU to the corresponding data receiving end based on the corresponding delay transmission time of each ONU, so that the service data of at least one ONU arrives at their respective data receiving ends at the same time.
[0094] Optionally, module 501 is used for:
[0095] Based on the device identifier corresponding to at least one ONU, determine the network address of at least one ONU;
[0096] Based on the network address of at least one ONU, a delay acquisition command is sent to the corresponding ONU so that the ONU returns the corresponding transmission delay.
[0097] Optional, transmission module 504, specifically used for:
[0098] Receive service data sent by at least one ONU;
[0099] Based on the reception time of the service data of at least one ONU and the corresponding delay transmission time of each of the at least one ONU, determine the actual forwarding time of the service data of each of the at least one ONU;
[0100] Send the service data of at least one ONU to the data receiving end according to the corresponding actual forwarding time.
[0101] Optionally, module 503 is also used for:
[0102] If it is determined that the transmission delay of at least one ONU is greater than the preset delay threshold, then the target service corresponding to the OLT is determined to be in an abnormal state, and a prompt message is sent to the service control terminal corresponding to the target service.
[0103] This device calculates the difference between the transmission delay and a preset delay threshold to determine the required delay transmission time for each ONU. This delays the transmission of each ONU's service data to its corresponding data receiver, ensuring that the service data of each ONU is transmitted to its respective data receiver at the same time and on time. This meets the delay requirements of the target service, ensures the collaborative work of various links in industrial production and the accuracy of the production process, avoids the impact of delay differences on timing, ensures data synchronization and coordination between different devices, and improves product quality and production efficiency.
[0104] For ease of description, the above sections are divided into functional units (or modules) and described separately. Of course, in implementing this application, the functions of each unit (or module) can be implemented in one or more software or hardware components. This device can be used to execute the methods shown in the embodiments of this application; therefore, the functions that each functional module of the device can achieve can be referred to the descriptions of the foregoing embodiments, and will not be repeated here.
[0105] Please see Figure 6 Based on the same technical concept, embodiments of this application also provide a computer device. In one embodiment, the computer device may be, for example, a computer device... Figure 1 The optical line terminal (OLT) shown is an example of this computer equipment. Figure 6 As shown, it may include a memory 601, a communication module 603, and one or more processors 602.
[0106] The memory 601 is used to store computer programs executed by the processor 602. The memory 601 may mainly include a program storage area and a data storage area, wherein the program storage area may store the operating system; and the data storage area may store various operation instruction sets, etc.
[0107] Memory 601 may be volatile memory, such as random-access memory (RAM); memory 601 may also be non-volatile memory, such as read-only memory, flash memory, hard disk drive (HDD), or solid-state drive (SSD); or memory 601 may be any other medium capable of carrying or storing desired program code in the form of instructions or data structures and accessible by a computer, but is not limited thereto. Memory 601 may be a combination of the above-described memories.
[0108] Processor 602 may include one or more central processing units (CPUs) or digital processing units, etc. Processor 602 is used to implement the above-mentioned business data transmission method when calling computer programs stored in memory 601.
[0109] The communication module 603 is used to communicate with the optical network unit (ONU) or other network devices.
[0110] This application embodiment does not limit the specific connection medium between the memory 601, communication module 603, and processor 602 described above. This application embodiment... Figure 6 The memory 601 and the processor 602 are connected via a bus 604, and the bus 604 is in Figure 6 The diagram uses thick lines to describe the connections between other components; these are for illustrative purposes only and should not be considered limiting. The 604 bus can be divided into address bus, data bus, control bus, etc. For ease of description, Figure 6 It is described using only a thick line, but does not indicate that there is only one bus or one type of bus.
[0111] The memory 601 stores a computer storage medium, which stores computer-executable instructions for implementing the business data transmission methods of the embodiments of this application. The processor 602 is used to execute the business data transmission methods of the above embodiments.
[0112] Based on the same inventive concept, embodiments of this application also provide a storage medium storing a computer program, which, when executed on a computer, causes a computer processor to perform the steps in the business data transmission methods according to various embodiments of this application described above.
[0113] In some possible implementations, various aspects of the business data transmission method provided in this application can also be implemented in the form of a program product, which includes program code. When the program product is run on a computer device, the program code is used to cause the computer device to perform the steps in the business data transmission method according to the various exemplary embodiments of this application described above. For example, the computer device can perform the steps of the various embodiments.
[0114] The program product may employ any combination of one or more readable media. A readable medium may be a readable signal medium or a readable storage medium. A readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination thereof. More specific examples (a non-exhaustive list) of readable storage media include: electrical connections having one or more wires, portable disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination thereof.
[0115] The program product of the embodiments of this application may employ a portable compact disc read-only memory (CD-ROM) and include program code, and may run on a computing device. However, the program product of this application is not limited thereto. In this application, the readable storage medium may be any tangible medium that contains or stores a program that may be used by or in conjunction with a command execution system, apparatus, or device.
[0116] A readable signal medium may include a data signal propagated in baseband or as part of a carrier wave, carrying readable program code. This propagated data signal may take various forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination thereof. A readable signal medium may also be any readable medium other than a readable storage medium, capable of sending, propagating, or transmitting a program for use by or in conjunction with a command execution system, apparatus, or device.
[0117] The program code contained on the readable medium may be transmitted using any suitable medium, including but not limited to wireless, wired, optical fiber, RF, etc., or any suitable combination thereof.
[0118] Program code for performing the operations of this application can be written in any combination of one or more programming languages, including object-oriented programming languages such as Java and C++, as well as conventional procedural programming languages such as C or similar languages. The program code can execute entirely on the user's computing device, partially on the user's device, as a standalone software package, partially on the user's computing device and partially on a remote computing device, or entirely on a remote computing device or server. In cases involving remote computing devices, the remote computing device can be connected to the user's computing device via any type of network, including a local area network (LAN) or a wide area network (WAN), or it can be connected to an external computing device (e.g., via the Internet using an Internet service provider).
[0119] It should be noted that although several units or sub-units of the device have been mentioned in the detailed description above, this division is merely exemplary and not mandatory. In fact, according to embodiments of this application, the features and functions of two or more units described above can be embodied in one unit. Conversely, the features and functions of one unit described above can be further divided and embodied by multiple units.
[0120] Furthermore, although the operations of the method of this application are described in a specific order in the accompanying drawings, this does not require or imply that these operations must be performed in that specific order, or that all the operations shown must be performed to achieve the desired result. Additionally or alternatively, certain steps may be omitted, multiple steps may be combined into one step, and / or one step may be broken down into multiple steps.
[0121] Those skilled in the art will understand that embodiments of this application can be provided as methods, systems, or computer program products. Therefore, this application can take the form of a completely hardware embodiment, a completely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, this application can take the form of a computer program product embodied on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0122] Although preferred embodiments of this application have been described, those skilled in the art, upon learning the basic inventive concept, can make other changes and modifications to these embodiments. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments as well as all changes and modifications falling within the scope of this application.
[0123] Obviously, those skilled in the art can make various modifications and variations to this application without departing from the spirit and scope of this application. Therefore, if such modifications and variations fall within the scope of the claims of this application and their equivalents, this application also intends to include such modifications and variations.
Claims
1. A method for transmitting business data, characterized in that, An optical line terminal (OLT) is used in a passive optical network, the OLT being connected to at least one optical network unit (ONU), the method comprising: The transmission delay of the at least one ONU is obtained, wherein the transmission delay represents the data transmission time required for the corresponding ONU to send service data to its corresponding data receiving end; Determine whether the transmission delay of at least one ONU is less than a preset delay threshold, wherein the preset delay threshold is determined based on the target service requirements corresponding to the OLT; If all are less than the preset delay threshold, then based on the preset delay threshold, the delay transmission time corresponding to the transmission delay of each of the at least one ONU is determined, and the delay transmission time is determined based on the difference between the transmission delay and the preset delay threshold; Based on the corresponding delayed transmission time of each of the at least one ONU, the service data of the at least one ONU is transmitted to the corresponding data receiving end with a delay, so that the service data of the at least one ONU arrives at their respective corresponding data receiving ends at the same time. If it is determined that the transmission delay of at least one ONU is greater than the preset delay threshold, then the target service corresponding to the OLT is determined to be in an abnormal state, and a prompt message is sent to the service control terminal corresponding to the target service.
2. The method as described in claim 1, characterized in that, The step of obtaining the transmission delay of the at least one ONU includes: Based on the device identifier corresponding to each of the at least one ONU, the network address of each of the at least one ONU is determined; Based on the network address of each of the at least one ONU, a delay acquisition instruction is sent to the corresponding ONU so that the ONU returns the corresponding transmission delay.
3. The method as described in claim 1, characterized in that, The step of delaying the transmission of service data of the at least one ONU to the corresponding data receiving end based on the respective delay transmission time of the at least one ONU includes: Receive service data sent by at least one ONU; Based on the reception time of the service data of the at least one ONU and the corresponding delay transmission time of each of the at least one ONU, determine the actual forwarding time of the service data of each of the at least one ONU; The service data of the at least one ONU is sent to the data receiving end according to the corresponding actual forwarding time.
4. A business data transmission device, characterized in that, An optical line terminal (OLT) for use in a passive optical network, wherein the OLT is connected to at least one optical network unit (ONU), the device comprising: The acquisition module is used to acquire the transmission delay of the at least one ONU, wherein the transmission delay represents the data transmission time required for the corresponding ONU to send service data to its corresponding data receiving end; The judgment module is used to determine whether the transmission delay of the at least one ONU is less than a preset delay threshold, wherein the preset delay threshold is determined based on the target service requirements corresponding to the OLT; The determination module is configured to, if all delays are less than the preset delay threshold, determine the delayed transmission time corresponding to the transmission delay of each of the at least one ONU, based on the preset delay threshold, wherein the delayed transmission time is determined based on the difference between the transmission delay and the preset delay threshold; if it is determined that the transmission delay of at least one ONU is greater than the preset delay threshold, it is determined that the target service corresponding to the OLT is in an abnormal state, and a prompt message is sent to the service control terminal corresponding to the target service. The transmission module is used to delay the transmission of the service data of the at least one ONU to the corresponding data receiving end based on the corresponding delay transmission time of each of the at least one ONU, so that the service data of the at least one ONU arrives at their respective corresponding data receiving ends at the same time.
5. The apparatus as described in claim 4, characterized in that, The acquisition module is specifically used for: Based on the device identifier corresponding to each of the at least one ONU, the network address of each of the at least one ONU is determined; Based on the network address of each of the at least one ONU, a delay acquisition instruction is sent to the corresponding ONU so that the ONU returns the corresponding transmission delay.
6. The apparatus as claimed in claim 4, characterized in that, The transmission module is specifically used for: Receive service data sent by at least one ONU; Based on the reception time of the service data of the at least one ONU and the corresponding delay transmission time of each of the at least one ONU, determine the actual forwarding time of the service data of each of the at least one ONU; The service data of the at least one ONU is sent to the data receiving end according to the corresponding actual forwarding time.
7. A computer device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that, When the processor executes the computer program, it implements the steps of the method according to any one of claims 1 to 3.
8. A computer storage medium storing computer program instructions thereon, characterized in that, When executed by a processor, the computer program instructions implement the steps of the method according to any one of claims 1 to 3.
9. A computer program product comprising computer program instructions, characterized in that, When executed by a processor, the computer program instructions implement the steps of the method according to any one of claims 1 to 3.
Citation Information
Patent Citations
Optical network data transmission method as well as system and equipment thereof
CN101557539A
Data transmission method, device and system
CN107371071A