Data transmission method, device, electronic device and storage medium
By generating a bandwidth time slot allocation map in the PON system and adjusting the authorized time slots, the problem of service frame delay caused by the staggered authorized time slots of ONU and OLT is solved, and the real-time performance of periodic services is improved.
Patent Information
- Application Number
- CN202410045039.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-01-11
- Publication Date
- 2024-10-18
- Estimated Expiration
- 2044-01-11
AI Technical Summary
In the PON system, the service data packets sent by the ONU may be staggered with the authorized time slot allocated by the OLT, resulting in a large delay of the data frame. Especially in periodic services, the requirements for delay and jitter are high, and the existing technology is difficult to Effectively reduce the sending delay of such service frames.
By receiving the physical layer burst sent by the ONU, it determines the first byte length of the periodic service frame and the second byte length of the interval between two adjacent service frames, generates a bandwidth time slot allocation map, and adjusts the authorized time slot to match the service Frame transmission requirements and reduce the transmission delay of service frames.
It effectively reduces the transmission delay of periodic service frames, improves the real-time nature of service frames, and meets the increased requirements for delay and jitter.
Smart Images

Figure CN117675079B_ABST
Abstract
Description
Background Art
[0002] In the field of communication technology, the ONU (Optical Network Unit) in a PON (Passive Optical Network) system needs to send data frames within the authorized time slot specified by the OLT (Optical Line Terminal). If the time when the ONU receives the service data packet is staggered with the authorized time slot allocated by the OLT, the OLT will need to wait until the specified authorized time slot before sending the service frame carrying the service data packet (data frame carrying the service data packet) to the OLT, resulting in a large delay in the transmission of the data frame.
[0003] For some periodic services, the requirements for latency are higher. For example, in periodic services in industrial scenarios, control signaling has very high requirements for latency and jitter, and cannot tolerate large latency and jitter. Therefore, a method that can reduce the transmission latency of service frames of periodic services is urgently needed.
[0004] It should be noted that the information disclosed in the above background technology section is only used to enhance the understanding of the background of the present disclosure, and therefore may include information that does not constitute the prior art known to ordinary technicians in the field. Summary of the invention
[0005] The present disclosure provides a data transmission method, device, electronic device and storage medium, and at least proposes a solution that can reduce the transmission delay of service frames of periodic services.
[0006] Other features and advantages of the present disclosure will become apparent from the following detailed description, or may be learned in part by the practice of the present disclosure.
[0007] According to one aspect of the present disclosure, a data sending method is provided, comprising: receiving a physical layer burst sent by an optical network unit (ONU), the physical layer burst comprising at least two service frames of a periodic service carried by the ONU, and the byte lengths of different service frames being the same; determining a first byte length of a service frame and a second byte length of an interval between two adjacent service frames; generating a bandwidth time slot allocation map according to the first byte length and the second byte length; and sending the bandwidth time slot allocation map to the ONU, so that the ONU sends the service frames of the periodic service according to the bandwidth time slot allocation map.
[0008] In one embodiment of the present disclosure, the physical layer burst includes multiple data frames, each data frame includes a header and a payload, the length of the header is a third byte length, and the type of each data frame is a service frame or an empty frame; the determination of the first byte length of the service frame and the second byte length of the interval between two adjacent service frames includes: determining the length of the payload of the service frame to obtain a fourth byte length; calculating the sum of the third byte length and the fourth byte length to obtain the first byte length; determining the number of empty frames between two adjacent service frames in the multiple data frames; determining the fifth byte length of the empty frame; calculating the product of the fifth byte length and the number to obtain the second byte length.
[0009] In one embodiment of the present disclosure, determining the length of the payload of the service frame to obtain the fourth byte length includes: determining the value of the payload length indicator PLI in the packet header of the service frame, and using the byte length indicated by the value of the PLI as the fourth byte length.
[0010] In one embodiment of the present disclosure, the packet header of each data frame includes a port number Port-Id, and further includes: determining the type of each data frame one by one according to the value of Port-Id in the packet header of each data frame in the multiple data frames.
[0011] In one embodiment of the present disclosure, the method further includes: sending a detection window to the ONU, so that the ONU sends the physical layer burst within the detection window.
[0012] In one embodiment of the present disclosure, the passive optical network PON port corresponding to the ONU has a dynamic bandwidth allocation DBA scheduling period; generating a bandwidth time slot allocation diagram according to the first byte length and the second byte length includes: determining a first start time of any one of the at least two service frames; predicting a second start time of each service frame to be sent according to the first start time, the first byte length, the second byte length and the DBA scheduling period; generating the bandwidth time slot allocation diagram according to the first byte length and the second start time of each service frame to be sent.
[0013] In one embodiment of the present disclosure, the bandwidth time slot allocation map is generated according to the first byte length and the second start time of each service frame to be sent, including: determining the authorized time slot of each service frame to be sent according to the first byte length and the second start time of each service frame to be sent, each authorized time slot includes a third start time and an authorized length, and the authorized length is greater than the first byte length; performing the following cross-DBA scheduling cycle adjustment for each authorized time slot: determining the sixth byte length between the third start time and the end time of the DBA scheduling cycle where the third start time is located; determining a first size relationship between the sixth byte length and the authorized length; when the first size relationship is that the authorized length is greater than the sixth byte length, adjusting the third start time to the start time of the next DBA scheduling cycle; generating the bandwidth time slot allocation map according to the authorized time slots of each service frame to be sent.
[0014] The grant length is used to indicate the number of bytes included in the grant time slot.
[0015] In one embodiment of the present disclosure, the authorized length of each authorized time slot in the bandwidth time slot allocation diagram is the sum of the first byte length and the margin length; further comprising: receiving at least one service frame sent by the ONU according to the bandwidth time slot allocation diagram; determining the byte length of the time interval between the start time of each service frame in the at least one service frame and the start time of the corresponding authorized time slot to obtain at least one byte length; performing the following drift adjustment on each authorized time slot according to the at least one byte length: determining the second size relationship between each byte length in the at least one byte length and the first length threshold, and the third size relationship between each byte length and the second length threshold, respectively; The first length threshold is greater than 0.5×the margin length and less than the margin length, and the second length threshold is less than 0.5×the margin length; when the second size relationship is that the byte length is greater than the first length threshold, the start time of the authorized time slot is delayed by a first preset length; when the third size relationship is that the byte length is less than the second length threshold, the start time of the authorized time slot is advanced by a second preset length; according to the drift-adjusted authorized time slot, the bandwidth time slot allocation map is updated; the updated bandwidth time slot allocation map is sent to the ONU, so that the ONU sends the service frame of the periodic service according to the updated bandwidth time slot allocation map.
[0016] In one embodiment of the present disclosure, updating the bandwidth time slot allocation map according to the drift-adjusted authorized time slots includes: adjusting the drift-adjusted authorized time slots across the DBA scheduling cycle; and generating an updated bandwidth time slot allocation map according to the drift-adjusted authorized time slots across the DBA scheduling cycle.
[0017] According to another aspect of the present disclosure, a data sending device is provided, including: a receiving module, used to receive a physical layer burst sent by an optical network unit (ONU), wherein the physical layer burst includes at least two service frames of a periodic service carried by the ONU, and the byte lengths of different service frames are the same; a first determining module, used to determine a first byte length of a service frame and a second byte length of an interval between two adjacent service frames; a generating module, used to generate a bandwidth time slot allocation map according to the first byte length and the second byte length; and a first sending module, used to send the bandwidth time slot allocation map to the ONU, so that the ONU sends the service frame of the periodic service according to the bandwidth time slot allocation map.
[0018] According to another aspect of the present disclosure, an electronic device is provided, comprising: a processor; and a memory for storing executable instructions of the processor; wherein the processor is configured to execute any of the above-mentioned data sending methods by executing the executable instructions.
[0019] According to another aspect of the present disclosure, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, any of the above-mentioned data sending methods is implemented.
[0020] According to another aspect of the present disclosure, a computer program product is provided, wherein the computer program product comprises a computer program or computer instructions, wherein the computer program or the computer instructions are loaded and executed by a processor so that a computer implements any of the above-mentioned data sending methods.
[0021] The technical solution provided by the embodiments of the present disclosure includes at least the following beneficial effects:
[0022] The technical solution provided by the embodiment of the present disclosure can determine the period (period in bytes, the sum of the first byte length and the second byte length) of the periodic service by receiving the physical layer burst sent by the ONU and determining the first byte length of the service frame of the periodic service from the physical layer burst, and the second byte length of the interval between two adjacent service frames. The bandwidth time slot allocation diagram is generated according to the first byte length and the second byte length, so that the bandwidth time slot allocation diagram is generated based on the period of the periodic service, so that the authorized time slot allocated to the ONU in the bandwidth time slot allocation diagram can well match the transmission demand of the periodic service, reduce the transmission delay of the service frame, and improve the real-time transmission of the service frame.
[0023] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS
[0024] The accompanying drawings herein are incorporated into the specification and constitute a part of the specification, illustrate embodiments consistent with the present disclosure, and together with the specification are used to explain the principles of the present disclosure. Obviously, the accompanying drawings described below are only some embodiments of the present disclosure, and for ordinary technicians in this field, other accompanying drawings can be obtained based on these accompanying drawings without creative work.
[0025] Figure 1 A schematic diagram showing a data transmission system in one embodiment of the present disclosure;
[0026] Figure 2 A flow chart of a data sending method in one embodiment of the present disclosure is shown;
[0027] Figure 3 A schematic diagram showing sending a data frame in an authorized time slot in one embodiment of the present disclosure is shown;
[0028] Figure 4 A schematic diagram showing a detection window in one embodiment of the present disclosure;
[0029] Figure 5 A schematic diagram showing the meaning of parameters of the first service frame to be sent in one embodiment of the present disclosure;
[0030] Figure 6 A schematic diagram showing an authorization time slot in one embodiment of the present disclosure;
[0031] Figure 7 A flowchart showing generation of a bandwidth time slot allocation diagram in one embodiment of the present disclosure
[0032] Figure 8 A schematic diagram showing an authorization time slot and a DBA scheduling period in one embodiment of the present disclosure;
[0033] Fig. 9 A flow chart of a data sending method in another embodiment of the present disclosure is shown;
[0034] Fig.10 A schematic diagram showing an authorization time slot and a service frame in an embodiment of the present disclosure is shown;
[0035] Fig.11 A flow chart of a data sending method in another embodiment of the present disclosure is shown;
[0036] Fig.12 A schematic diagram of a data sending device in one embodiment of the present disclosure is shown;
[0037] Fig.13 A structural block diagram of an electronic device in one embodiment of the present disclosure is shown. DETAILED DESCRIPTION
[0038] Example embodiments will now be described more fully with reference to the accompanying drawings. However, example embodiments can be implemented in a variety of forms and should not be construed as limited to the examples set forth herein; rather, these embodiments are provided so that the disclosure will be more comprehensive and complete and to fully convey the concepts of the example embodiments to those skilled in the art. The described features, structures, or characteristics may be combined in any suitable manner in one or more embodiments.
[0039] In addition, the accompanying drawings are only schematic illustrations of the present disclosure and are not necessarily drawn to scale. The same reference numerals in the figures represent the same or similar parts, and their repeated description will be omitted. Some of the block diagrams shown in the accompanying drawings are functional entities and do not necessarily correspond to physically or logically independent entities. These functional entities can be implemented in software form, or implemented in one or more hardware modules or integrated circuits, or implemented in different networks and / or processor devices and / or microcontroller devices.
[0040] It should be understood that the various steps described in the method embodiments of the present disclosure may be performed in different orders and / or in parallel. In addition, the method embodiments may include additional steps and / or omit the steps shown. The scope of the present disclosure is not limited in this respect.
[0041] It should be noted that the concepts such as "first" and "second" mentioned in the present disclosure are only used to distinguish different devices, modules or units, and are not used to limit the order or interdependence of the functions performed by these devices, modules or units.
[0042] It should be noted that the modifications of "one", "at least one" and "a plurality of" mentioned in the present disclosure are illustrative rather than restrictive, and those skilled in the art should understand that, unless otherwise clearly indicated in the context, they should be understood as "one or more".
[0043] Figure 1 A schematic diagram of a data sending system in an embodiment of the present disclosure is shown, and the system can apply the data sending method or data sending device in various embodiments of the present disclosure.
[0044] like Figure 1 As shown, the data transmission system may include: an OLT 11, a first ONU 12, a second ONU 13, a transmission device 14, and a reception device 15.
[0045] The sending device 14 can generate and send a service data packet to the first ONU 12. The first ONU 12 can receive the service data packet sent by the sending device 14, and encapsulate the service data packet to obtain a service frame. The first ONU 12 can also send the service frame (a data frame carrying the service data packet) to the OLT 11.
[0046] The OLT 11 may receive data frames (including service frames and empty frames) sent by the first ONU 12 and the second ONU 13 , and may also send data frames to the first ONU 12 and the second ONU 13 .
[0047] The OLT 11 can also parse the received data frame to obtain various parameters in the data frame. For example, the value of PLI (Payload Length Indication) in the packet header of the data frame can be obtained by parsing the data frame, and the byte length of the effective load in the data frame can be determined according to the value of PLI.
[0048] The OLT 11 may also generate a bandwidth time slot allocation map (BWmap) for each ONU and send the BWmap to the corresponding ONU. For example, the OLT 11 may generate a BWmap for the first ONU 12 and send the BWmap to the first ONU 12.
[0049] For example, the service data packet sent by the sending device 14 needs to be sent to the receiving device 15, and the second ONU 13 is used to serve the receiving device 15. After receiving the service frame sent by the first ONU 12, the OLT 11 can send the service frame to the second ONU 13, and the second ONU 13 parses the service data packet from the service frame and sends the service data packet to the receiving device 15.
[0050] The OLT 11, the first ONU 12, the second ONU 13, the sending device 14, and the receiving device 15 are connected to each other through a network, which may be a wired network or a wireless network.
[0051] Optionally, the wireless network or wired network described above uses standard communication technology and / or protocol. The network is usually the Internet, but it can also be any network, including but not limited to a local area network (LAN), a metropolitan area network (MAN), a wide area network (WAN), a mobile, wired or wireless network, a dedicated network or any combination of a virtual private network). In some embodiments, technologies and / or formats including Hyper Text Mark-up Language (HTML), Extensible Markup Language (XML), etc. are used to represent data exchanged through the network. In addition, conventional encryption technologies such as Secure Socket Layer (SSL), Transport Layer Security (TLS), Virtual Private Network (VPN), Internet Protocol Security (IPsec) can also be used to encrypt all or some links. In other embodiments, customized and / or dedicated data communication technologies can also be used to replace or supplement the above data communication technologies.
[0052] Both the sending device 14 and the receiving device 15 can be various electronic devices, including but not limited to industrial terminals (including control devices, I / O (Input / Output) devices), smart phones, tablet computers, laptop computers, desktop computers, wearable devices, augmented reality devices, virtual reality devices, etc. The sending device 14 can be a control device, and the receiving device can be an I / O device.
[0053] The sending device 14 and the receiving device 15 can also be servers that provide various services. The server can be an independent physical server, or a server cluster or distributed system composed of multiple physical servers. It can also be a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, CDN (Content Delivery Network), as well as big data and artificial intelligence platforms.
[0054] The present exemplary implementation is described in detail below with reference to the accompanying drawings and embodiments.
[0055] The present disclosure provides a data transmission method, which can be executed by any electronic device with computing and processing capabilities. For example, the electronic device is an OLT.
[0056] Figure 2 A flow chart of a data transmission method in one embodiment of the present disclosure is shown as follows: Figure 2 As shown, the data sending method provided in the embodiment of the present disclosure includes the following S201 to S204.
[0057] S201, receiving a physical layer burst sent by an ONU, where the physical layer burst includes at least two service frames of a periodic service carried by the ONU, and different service frames have the same byte length.
[0058] The service carried by the ONU is a periodic service, that is, the service terminal connected to the ONU sends service data packets to the ONU according to a certain period. The period of the periodic service needs to be determined according to the specific service, and the present disclosure does not limit this.
[0059] ONU can send data frames to OLT in the time slot specified by OLT. The type of data frame can be service frame or empty frame. In some cases, the time slot authorized by OLT to ONU is larger and exceeds the time slot required for ONU to send service frame. In this case, ONU will send empty frames to OLT in other time slots except the time slot required for sending service frame in the authorized time slot. It should be noted that the data frames sent by ONU to OLT in the time slot authorized by OLT are continuous.
[0060] It should be noted that the data frame is a data packet that meets the encapsulation format requirements for data transmission between the ONU and the OLT. For example, if the encapsulation method for data transmission between the ONU and the OLT is XGEM (XGPON Encapsulation Method, XGPON (10Gigabit-capable Passive Optical Network, 10G transmission rate passive optical network) encapsulation method), then the data frame is an XGEM frame.
[0061] like Figure 3 As shown, the time slot authorized by the OLT to the ONU is t31-t32, and the time slot occupied by the ONU to send a service frame is t33-t34. Then, in the time slot t31-t33 and the time slot t34-t32, the ONU will send an empty frame to the OLT.
[0062] A physical layer burst (PHY burst) consists of multiple data frames sent by the ONU in the time slot authorized by the OLT. For example, see Figure 3 , the physical layer burst sent by the ONU to the OLT during the time slot t31-t32 includes a service frame and multiple empty frames.
[0063] The multiple data frames included in the physical layer burst include at least two service frames of the periodic service carried by the ONU, and the byte lengths of different service frames in the at least two service frames are the same. Since the service corresponding to the service frame is a periodic service, the number of empty frames between any two adjacent service frames is the same. By determining the byte length of the service frame and the byte length of the interval between two adjacent service frames (the product of the byte length of the empty frame and the number of empty frames between two adjacent service frames), the period of the periodic service can be calculated.
[0064] It should be noted that in the PON system where the OLT and ONU are located, the data transmission rate between the ONU and the OLT is fixed. For example, in a PON system that applies the GPON (Gigabit-Capable PON, Gigabit Passive Optical Network) standard, the transmission rate V = 1244.16Mbps (megabit). In a PON system that applies the XGSPON (10Gigabit Symmetrical Passive Optical Network, symmetrical 10Gbps passive optical network) standard, V = 9953.28Mbps.
[0065] Therefore, the number of bytes sent by the ONU to the OLT within a certain time is determined, and the time length is converted into the byte length as shown in the following formula 1.
[0066] N=V×T×125000 (Formula 1)
[0067] Among them, V is the data transmission rate between ONU and OLT, in Mbps; T is the duration, in s (seconds); N is the byte length.
[0068] In the embodiment of the present disclosure, the period of the periodic service is expressed in bytes. In addition, each authorized time slot in the BWmap allocated by the OLT to the ONU is also expressed in bytes. The time slot used to send the data frame is the byte length occupied by the sent data frame. In the embodiment of the present disclosure, the start time of the authorized time slot and the start time of the service frame are used to indicate the position of the first occupied byte.
[0069] In one embodiment, before receiving the physical layer burst sent by the ONU, the method further includes: sending a detection window to the ONU so that the ONU sends the physical layer burst within the detection window. In the detection window, only the ONU that receives the detection window can send data frames to the OLT.
[0070] The interval between the start time of two adjacent service frames (the start time is the start time of sending the service frame) is the period of the periodic service. The time slot authorized to the ONU is usually less than the period. Therefore, it is difficult for the ONU to send two consecutive service frames to the OLT. By sending a detection window to the ONU, the ONU can send at least two consecutive service frames to the OLT within the detection window.
[0071] The embodiments of the present disclosure do not limit the specific byte length of the detection window, and it can be set based on experience. In one embodiment, the byte length of the detection window is not less than the period of the periodic service. For example, the byte length of the detection window can be twice the DBA (Dynamic Bandwidth Allocation) scheduling period, or 1.5 times the DBA scheduling period, and so on. The byte length of the detection window is the number of bytes included in the detection window. The number of bytes included in the DBA scheduling period is determined and can be determined based on the transmission rate in the PON system where the OUN and OLT are located and the length of the DBA scheduling period in time. In some embodiments, the length of the DBA scheduling period in time is 125μs (microseconds).
[0072] like Figure 4 As shown in the figure, the byte length of the detection window sent by the OLT to the ONU is t41-t42, and the time slot occupied by the physical layer burst is t41-t42, where t43-t44 is the time slot occupied by a service frame, and t45-t46 is the time slot occupied by another service frame. The time slots t41-t43, t44-t45, and t46-t42 are filled with empty frames. The byte length of the periodic service cycle is t43-t45. It should be noted that Figure 4 The figure is drawn by taking the physical layer burst including two service frames as an example.
[0073] The same byte length of different service frames means that the number of bytes included in different service frames is the same. For example, in an industrial scenario, an ONU is used to serve industrial terminals, and the service corresponding to the industrial terminal served by the ONU is a periodic service, then the number of bytes included in different service frames sent by the ONU to the OLT is the same.
[0074] S202, determining a first byte length of a service frame and a second byte length of an interval between two adjacent service frames.
[0075] The first byte length is used to indicate the number of bytes included in the service frame, and the second byte length is used to indicate the number of bytes between two adjacent service frames.
[0076] In one embodiment, the physical layer burst includes multiple data frames, and the header of each data frame includes Port-Id (port number). Before determining the first byte length of the service frame and the second byte length of the interval between two adjacent service frames, it may also include: determining the type of each data frame one by one according to the value of Port-Id in the header of each data frame in the multiple data frames.
[0077] After receiving the physical layer burst sent by the ONU, the OLT can parse each data frame included in the physical layer burst. The parsing can obtain the value of the Port-Id in the header of each data frame, and determine whether the corresponding data frame is an empty frame according to the value of the Port-Id. The data frame that is not an empty frame is a service frame.
[0078] When the value of Port-Id is a predetermined empty frame value, it can be determined that the data frame is an empty frame. On the contrary, if the value of Port-Id is not a predetermined empty frame value, the data frame is a service frame. The embodiment of the present disclosure does not limit the specific value of the predetermined empty frame value, and it can be determined according to the standard applied by the ONU and the OLT. For example, taking the G.987 standard (a standard for a passive optical network with a transmission rate of 10 Gbps developed by the International Telecommunication Union) applied by the ONU and the OLT as an example, the predetermined empty frame value is 0xffff.
[0079] In one embodiment, a physical layer burst includes multiple data frames, each data frame includes a header and a payload, the length of the header is a third byte length, and the type of each data frame is a service frame or an empty frame. Determining the first byte length of the service frame and the second byte length of the interval between two adjacent service frames may include: determining the length of the payload of the service frame to obtain a fourth byte length; calculating the sum of the third byte length and the fourth byte length to obtain the first byte length; determining the number of empty frames between two adjacent service frames in multiple data frames; determining the fifth byte length of the empty frames; and calculating the product of the fifth byte length and the number to obtain the second byte length.
[0080] The third byte length is used to indicate the number of bytes included in the packet header. The fourth byte length is used to indicate the number of bytes included in the effective load of the service frame. The fifth byte length is used to indicate the number of bytes included in the empty frame.
[0081] The specific value of the third byte length can be determined according to the standards used by the ONU and the OLT. For example, in a PON system using the XGPON standard, the third byte length is 8 bytes. For another example, in a PON system using the XGSPON standard, the third byte length is 8 bytes. For another example, in a PON system using the GPON standard, the third byte length is 5 bytes.
[0082] The header of each data frame includes a parameter for indicating the length of the effective load in the data frame, and the parameter is PLI. In one embodiment, determining the length of the effective load of the service frame to obtain the fourth byte length may include: determining the value of PLI in the header of the service frame, and using the byte length indicated by the value of PLI as the fourth byte length.
[0083] After determining the fourth byte length of the effective load of the service frame, the fourth byte length is added to the third byte length to obtain the first byte length of the service frame.
[0084] In one embodiment, determining the fifth byte length of the empty frame may include: determining the value of PLI in the header of the empty frame; adding the value of PLI in the header of the empty frame to the third byte length to obtain the fifth byte length of the empty frame.
[0085] By determining the first byte length of the service frame and the second byte length between two adjacent service frames, the period of the periodic service (the sum of the first byte length and the second byte length) and the time slot size (first byte length) required for the ONU to send the service frame can be obtained.
[0086] S203: Generate a bandwidth time slot allocation diagram according to the first byte length and the second byte length.
[0087] In one embodiment, generating a bandwidth time slot allocation diagram based on a first byte length and a second byte length may include: determining a first start time of any one of at least two service frames; predicting a second start time of each service frame to be sent based on the first start time, the first byte length, the second byte length and the DBA scheduling period; generating a bandwidth time slot allocation diagram based on the first byte length and the second start time of each service frame to be sent.
[0088] The DAB scheduling period is the DBA scheduling period of the PON port corresponding to the ONU.
[0089] The first start time is used to indicate the position of the first byte occupied by the arbitrary service frame in the corresponding DBA scheduling period. The DBA scheduling period corresponding to the arbitrary service frame is the DBA scheduling period in which the time slot used to send the arbitrary service frame is located. Different DBA scheduling periods correspond to different cycle numbers, and each DBA scheduling period corresponds to a time slot with the same byte length.
[0090] The service frame to be sent is the service frame that the ONU needs to send after sending the physical layer burst (that is, the service frame that the OLT needs to receive later). The second start time of the service frame to be sent is the time when the ONU needs to send the service frame to be sent to the OLT, and the second start time is used to indicate the position of the first byte that the service frame to be sent needs to use.
[0091] Taking the first start time as the starting point, the sum of the first byte length and the second byte length as the period of the periodic service, and combining with the DBA scheduling period, the start time of the next service frame can be determined, and then according to the first byte length, the specific time slot occupied by the next service frame can be determined. After that, it can be predicted in turn which time slot of which DBA scheduling period each service frame occupies, and then the corresponding bandwidth time slot allocation diagram can be generated.
[0092] In one embodiment, the second start time of each service frame to be sent is predicted according to the first start time, the first byte length, the second byte length and the DBA scheduling period, which can be performed according to the following formulas 2, 3 and 4.
[0093] t n =t0+nT1 (Formula 2)
[0094]
[0095] st n =t n -DBA n T2 (Formula 4)
[0096] Wherein: t0 is the first start time; T1 is the sum of the first byte length and the second byte length; n is the sequence number of the nth service frame to be sent after the service frame corresponding to the first start time; t n is the start time of the nth service frame to be sent relative to t0; T2 is the DBA scheduling period; The floor operator; DBA n Indicates the DBA scheduling period in which the time slot required for sending the nth service frame to be sent is located, and is the number of DBA scheduling periods after the DBA scheduling period in which the first start time is located; st n It is the second start time of the nth service frame to be sent, and is used to indicate the position of the first byte occupied by the nth service frame to be sent in the DBA scheduling cycle.
[0097] To facilitate understanding of the above formulas 2 to 4, the following will be combined with Figure 5 Provide explanation. Figure 5 In the figure, t0 is the first start time, t1 is the start time of the first service frame to be sent relative to t0, st1 is the second start time of the first service frame to be sent, and DBA1 of the first service frame to be sent is 1. T1 is the period of the periodic service, and T2 is the DBA scheduling period.
[0098] In one embodiment, generating a bandwidth time slot allocation map based on the first byte length and the second start time of each service frame to be sent may include: determining the authorized time slot of each service frame to be sent based on the first byte length and the second start time of each service frame to be sent; generating a bandwidth time slot allocation map based on the authorized time slot of each service frame to be sent.
[0099] The authorization time slot is usually expressed by starttime (start time) and grantsize (grant length). In one embodiment, the authorization time slot of each service frame to be sent is determined based on the first byte length and the second start time of each service frame to be sent, which can be done according to the following formulas 5 and 6.
[0100]
[0101] grantsize = first byte length + G (Formula 6)
[0102] Among them, st n is st in formula 4 n ; G is the preset margin length; starttime n is the start time of the grant slot corresponding to the nth service frame to be sent; grantsize is the grant length of the grant slot, and the grant lengths of grant slots of different service frames to be sent are the same. The service frames of periodic services have the same length, and grant slots of the same grant length can be allocated to each service frame to be sent.
[0103] The embodiments of the present disclosure do not limit the byte length of G, and it can be set based on experience. For example, the byte length of G is 0.5 times the first byte length, or the byte length of G is the first byte length.
[0104] To facilitate the understanding of the above formula 5 and formula 6, the following will be combined with Figure 6 Provide explanation. Figure 6 In, st n The second start time of the nth service frame to be sent, the first byte length is the byte length of the nth service frame to be sent, starttime n is the start time of the grant time slot of the nth service frame to be sent, G / 2 is half of the margin length, and the grant length is the grantsize of the grant time slot corresponding to the nth service frame to be sent. T2 is the DBA scheduling period.
[0105] S204: Send a bandwidth time slot allocation map to the ONU, so that the ONU sends a service frame of the periodic service according to the bandwidth time slot allocation map.
[0106] The bandwidth time slot allocation map includes the start time and the authorized length of each authorized time slot. The ONU can determine the authorized time slot designated by the OLT according to the bandwidth allocation map, and then send the service frame of the periodic service according to the authorized time slot.
[0107] By receiving a physical layer burst sent by an ONU, and determining the first byte length of a service frame of a periodic service from the physical layer burst, and the second byte length of an interval between two adjacent service frames, the period of the periodic service (a period in bytes, the size of which is the sum of the first byte length and the second byte length) can be determined. By generating a bandwidth time slot allocation diagram according to the first byte length and the second byte length, a bandwidth time slot allocation diagram is generated based on the period of the periodic service, so that the authorized time slot allocated to the ONU in the bandwidth time slot allocation diagram can well match the service frame sending requirement of the periodic service, reduce the sending delay of the service frame, and improve the real-time performance of the service frame sending.
[0108] In another embodiment, each grant time slot includes a third start time and a grant length, and the grant length is greater than the first byte length, such as Figure 7 As shown, the process of generating a bandwidth time slot allocation diagram according to the first byte length and the second start time of each service frame to be sent may include the following S701 to S703.
[0109] S701, determining an authorized time slot of each service frame to be sent according to the first byte length and the second start time of each service frame to be sent.
[0110] The specific implementation of determining the authorized time slot of each service frame to be sent according to the first byte length and the second start time of each service frame to be sent can be referred to. Figure 2 S203 in the corresponding embodiment will not be described in detail here.
[0111] S702, performing cross-DBA scheduling cycle adjustment for each granted time slot, the cross-DBA scheduling cycle adjustment process includes S7021 to S7023.
[0112] S7021, determine the sixth byte length between the third start time and the end time of the DBA scheduling period in which the third start time is located.
[0113] Each authorized time slot is a time slot in a DBA scheduling cycle, and the DBA scheduling cycle in which the third start time of the authorized time slot is located is the DBA scheduling cycle in which the authorized time slot is located. Figure 8 As shown, t81 is the start time of the grant time slot, and t82 is the end time of the DBA scheduling period. Then t81-t82 is the sixth byte length. T2 is the DBA scheduling period.
[0114] S7022, determine a first size relationship between the sixth byte length and the authorized length.
[0115] Still Figure 8 For example, if the authorized length is t81-t83, the length of the sixth byte is greater than the authorized length; if the authorized length is t81-t84, the length of the sixth byte is less than the authorized length. Figure 8 The authorization length of t81-t84 is only used to illustrate the relationship between the authorization length and the length of the sixth byte.
[0116] S7023: When the first size relationship is that the authorization length is greater than the sixth byte length, the third start time is adjusted to the start time of the next DBA scheduling cycle.
[0117] When the first size relationship is that the authorization length is greater than the sixth byte length, it indicates that the authorization time slot needs to cross the DBA scheduling cycle. The third start time of the authorization time slot that crosses the DBA scheduling cycle is adjusted to the next DBA scheduling cycle, so that the adjusted authorization time slot does not have the problem of crossing the DBA scheduling cycle.
[0118] Still Figure 8 For example, if the authorized duration is t81-t84, the sixth byte length is less than the authorized length. After the third start time of the authorized time slot is adjusted to the next DBA scheduling cycle, the start time of the authorized time slot is t82, and the authorized duration is t82-t85, wherein the byte lengths of t81-t84 and t82-t85 are the same.
[0119] If the first size relationship is that the authorization length is not greater than the sixth byte length, the third start time of the authorization time slot is not processed.
[0120] S703, generating a bandwidth time slot allocation diagram according to the authorized time slots of each service frame to be sent.
[0121] The authorized time slots adjusted across the DBA scheduling cycle can all be included in the corresponding DBA scheduling cycle, so that when the ONU sends a service frame according to the authorized time slot, the problem of being unable to send a complete service frame in one DBA scheduling cycle can be avoided.
[0122] The device that generates the service data packet of the periodic service periodically sends the service data packet according to the clock frequency in its own system, and the clock frequency in its own system may be insufficient in accuracy, resulting in a time offset for sending the service data packet, which in turn causes a time offset for sending the service frame carrying the service data packet to the OLT after the ONU receives the service data packet. In this regard, the data sending method in the embodiment of the present disclosure may also include a drift adjustment process.
[0123] In yet another embodiment, the grant length of each grant time slot in the bandwidth time slot allocation diagram is the sum of the first byte length and the margin length. Fig. 9 As shown, the data sending method in the embodiment of the present disclosure may further include S901 to S905.
[0124] S901, receiving at least one service frame sent by an ONU according to a bandwidth time slot allocation diagram.
[0125] The embodiments of the present disclosure do not limit the number of service frames that at least one service frame specifically includes. At least one service frame may include one service frame, or may include two, three, four, or other service frames.
[0126] Each service frame in at least one service frame may be a continuous service frame, or each service frame in at least one service frame may be a discontinuous continuous frame, which is not limited in the embodiments of the present disclosure.
[0127] In one embodiment, the at least one service frame can be updated in real time, and when the OLT receives a new service frame, the first received service frame in the at least one service frame can be removed. For example, if the at least one service frame is 5 service frames, when the OLT receives the sixth service frame, the first received service frame in the 5 service frames can be removed, thereby maintaining the at least one service frame as 5 service frames.
[0128] S902, determine the byte length of the time interval between the start time of each service frame in at least one service frame and the start time of the corresponding grant time slot, and obtain at least one byte length.
[0129] The start time of the service frame is used to indicate the position of the first byte occupied by the service frame in the DBA scheduling cycle. The start time of the authorized time slot is used to indicate the position of the first byte of the authorized time slot in the DBA scheduling cycle. The bandwidth time slot allocation diagram is stored in the OLT, and the bandwidth time slot allocation diagram includes the start time of each authorized time slot. The OLT can directly obtain the start time of each service frame and the start time of the authorized time slot corresponding to the service frame from the stored data, and calculate the byte length of the time interval between the start time of each service frame in at least one service frame and the start time of the corresponding authorized time slot, and obtain at least one byte length.
[0130] Take one of the at least one service frame as an example, Fig.10 As shown, the start time of the service frame is t102, the start time of the grant time slot corresponding to the service frame is t101, and the byte length between the start time of the grant time slot and the start time of the service frame is t102-t101. T2 is the DBA scheduling period.
[0131] S903, performing drift adjustment on each granted time slot according to at least one byte length, and the drift adjustment may include S9031 to S9033.
[0132] S9031, determine the second size relationship between each byte length in at least one byte length and the first length threshold, and the third size relationship between each byte length and the second length threshold, the first length threshold is greater than 0.5×the margin length and less than the margin length, and the second length threshold is less than 0.5×the margin length.
[0133] If each byte length in the at least one byte length is greater than the first length threshold, it means that the start time of the service frame is shifted backward, and the start time of the authorized time slot needs to be delayed backward to balance the shift in the start time of the service frame. If each byte length in the at least one byte length is less than the second length threshold, it means that the start time of the service frame is shifted forward, and the start time of the authorized time slot needs to be advanced to balance the shift in the start time of the service frame.
[0134] The embodiments of the present disclosure do not limit the specific values of the first length threshold and the second length threshold. For example, the first length threshold is 0.7 times the residual length, and the second length threshold is 0.3 times the residual length. For another example, the first length threshold is 0.8 times the residual length, and the second length threshold is 0.2 times the residual length.
[0135] S9032: When the byte length of the second size relationship is greater than the first length threshold, delay the start time of the authorization time slot by a first preset length.
[0136] Among them, when the second size relationship is that the byte length is greater than the first length threshold, it can be considered that the start time of the service frame has a problem of backward offset, and the offset has reached a certain degree. When at least one service frame is multiple service frames, at least one byte length is also multiple byte lengths, and when the multiple byte lengths are all greater than the first length threshold, the method of considering that the start time of the service frame has a problem of backward offset has higher reliability.
[0137] In one embodiment, the first preset length is less than the first length threshold. The embodiment of the present disclosure does not limit the specific value of the first preset length. For example, the first preset length is 0.5 times the margin length. For another example, the first preset length is 0.4 times the margin length.
[0138] S9033: When the byte length of the third size relationship is less than the second length threshold, advance the start time of the authorized time slot by a second preset length.
[0139] Among them, when the third size relationship is that the byte length is less than the second length threshold, it can be considered that the start time of the service frame has a problem of shifting backward and forward, and the offset has reached a certain degree. When at least one service frame is multiple service frames, at least one byte length is also multiple byte lengths, and when the multiple byte lengths are all less than the second length threshold, the method of considering that the start time of the service frame has a problem of shifting forward has higher reliability.
[0140] In one embodiment, the second preset length is less than the value obtained by subtracting the second length threshold from the margin length. The embodiment of the present disclosure does not limit the specific value of the second preset length. For example, the second preset length is 0.5 times the margin length. For another example, the second preset length is 0.4 times the margin length.
[0141] The first preset length may be the same as or different from the second preset length, and the embodiments of the present disclosure are not limited to this.
[0142] S904: Update the bandwidth time slot allocation map according to the drift-adjusted authorized time slots.
[0143] In one embodiment, updating the bandwidth time slot allocation map according to the drift-adjusted authorized time slots may include: updating the start time of the corresponding authorized time slot in the bandwidth time slot map according to the drift-adjusted authorized time slots to obtain an updated bandwidth time slot allocation map.
[0144] In another embodiment, updating the bandwidth time slot allocation map according to the drift-adjusted authorized time slots may include: adjusting the drift-adjusted authorized time slots across DBA scheduling cycles; and generating an updated bandwidth time slot allocation map according to the drift-adjusted authorized time slots across DBA scheduling cycles.
[0145] For the specific implementation of cross-DBA scheduling cycle adjustment, please refer to the above Figure 7 The cross-DBA scheduling cycle adjustment in the corresponding embodiment will not be described in detail here.
[0146] S905: Send the updated bandwidth time slot allocation map to the ONU, so that the ONU sends service frames of the periodic service according to the updated bandwidth time slot allocation map.
[0147] In yet another embodiment, Fig.11 As shown, the data sending method in the embodiment of the present disclosure may include S1101 to S1113. For the specific implementation of S1101 to S1113, please refer to the above Figure 1 , Figure 2 , Figure 7 and Fig. 9 The corresponding embodiments will not be described in detail here.
[0148] S1101, the OLT sends a detection window to the ONU, so that the ONU sends a physical layer burst within the detection window.
[0149] For example, the byte length of the detection window is 2 DBA scheduling cycles.
[0150] S1102, the OLT receives a physical layer burst sent by the ONU, where the physical layer burst includes at least two service frames of a periodic service carried by the ONU, and different service frames have the same byte length.
[0151] For example, the at least two service frames are 3 service frames.
[0152] S1103, the OLT determines a first byte length of a service frame and a second byte length of an interval between two adjacent service frames.
[0153] S1104: The OLT determines a first start time of any one of at least two service frames.
[0154] S1105: The OLT predicts the second start time of each service frame to be sent according to the first start time, the first byte length, the second byte length, and the DBA scheduling period.
[0155] S1106, the OLT determines the authorized time slot of each service frame to be sent according to the first byte length and the second start time of each service frame to be sent, each authorized time slot includes a third start time and an authorized length, and the authorized length is greater than the first byte length.
[0156] S1107, the OLT adjusts each authorized time slot in the bandwidth time slot allocation diagram across the DBA scheduling cycle.
[0157] S1108, the OLT sends a bandwidth time slot allocation map to the ONU, so that the ONU sends a service frame of the periodic service according to the bandwidth time slot allocation map.
[0158] S1109, the OLT receives at least one service frame sent by the ONU according to the bandwidth time slot allocation diagram.
[0159] S1110, the OLT determines the byte length of the time interval between the start time of each service frame in at least one service frame and the start time of the corresponding granted time slot, and obtains at least one byte length.
[0160] S1111, the OLT performs drift adjustment on each authorized time slot in the bandwidth time slot allocation diagram according to at least one byte length.
[0161] S1112, the OLT adjusts the drift-adjusted authorized time slot across the DBA scheduling period to obtain an updated bandwidth time slot allocation diagram.
[0162] S1113, the OLT sends the updated bandwidth time slot allocation map to the ONU, so that the ONU sends service frames of the periodic service according to the updated bandwidth time slot allocation map.
[0163] It should be noted that the ONU can determine, based on the bandwidth time slot allocation diagram, in which DBA scheduling period the authorized time slot designated by the OLT is located, and send data frames based on the authorized time slot.
[0164] by Figure 1 In the example, the sending device 14 is a PLC (Programmable Logic Controller) and the receiving device 15 is an I / O device, and the PLC periodically sends a fixed period and byte length control signaling (service data packet) to the first ONU.
[0165] The OLT 11 may send a detection window to the first ONU 12, so that the first ONU 12 may send a physical layer burst to the OLT 11 within the detection window, wherein the physical layer burst may include at least two service frames, and each service frame includes a control signaling sent by a PCL. Afterwards, the OLT 11 may determine the period for sending the control signaling by the PCL according to the physical layer burst, and then may generate a bandwidth time slot allocation diagram for the period, and send the bandwidth time slot allocation diagram to the first ONU 12, so that the first ONU 12 may send a service frame carrying the control signaling according to the bandwidth time slot allocation diagram.
[0166] After receiving the service frame sent by the first ONU 12 , the OLT 11 may send the control signaling carried in the service frame to the I / O device through the second ONU 12 .
[0167] Based on the same inventive concept, the present disclosure also provides a data sending device in the following embodiments. Since the principle of solving the problem in the device embodiment is similar to that in the above method embodiment, the implementation of the device embodiment can refer to the implementation of the above method embodiment, and the repeated parts will not be repeated.
[0168] Fig.12 A schematic diagram of a data sending device in one embodiment of the present disclosure is shown. Fig.12As shown, the device includes: a receiving module 1201, used to receive a physical layer burst sent by an optical network unit ONU, the physical layer burst includes at least two service frames of a periodic service carried by the ONU, and the byte lengths of different service frames are the same; a first determining module 1202, used to determine a first byte length of a service frame and a second byte length of an interval between two adjacent service frames; a generating module 1203, used to generate a bandwidth time slot allocation diagram according to the first byte length and the second byte length; a first sending module 1204, used to send the bandwidth time slot allocation diagram to the ONU, so that the ONU sends the service frame of the periodic service according to the bandwidth time slot allocation diagram.
[0169] In one embodiment of the present disclosure, a physical layer burst includes multiple data frames, each data frame includes a header and a payload, the length of the header is a third byte length, and the type of each data frame is a service frame or an empty frame; a first determination module 1202 is used to determine the length of the payload of the service frame to obtain a fourth byte length; calculate the sum of the third byte length and the fourth byte length to obtain a first byte length; determine the number of empty frames between two adjacent service frames in multiple data frames; determine the fifth byte length of the empty frame; calculate the product of the fifth byte length and the number to obtain a second byte length.
[0170] In one embodiment of the present disclosure, the first determining module 1202 is used to determine the value of the effective load length indicator PLI in the packet header of the service frame, and use the byte length indicated by the value of the PLI as the fourth byte length.
[0171] In one embodiment of the present disclosure, the header of each data frame includes a port number Port-Id, and the device also includes: a second determination module, used to determine the type of each data frame one by one according to the value of Port-Id in the header of each data frame in multiple data frames.
[0172] In one embodiment of the present disclosure, the device further includes: a second sending module, configured to send a detection window to the ONU, so that the ONU sends a physical layer burst within the detection window.
[0173] In one embodiment of the present disclosure, the passive optical network PON port corresponding to the ONU has a dynamic bandwidth allocation DBA scheduling period; a generation module 1203 is used to determine the first start time of any one of at least two service frames; based on the first start time, the first byte length, the second byte length and the DBA scheduling period, the second start time of each service frame to be sent is predicted; based on the first byte length and the second start time of each service frame to be sent, a bandwidth time slot allocation diagram is generated.
[0174] In one embodiment of the present disclosure, a generation module 1203 is used to determine the authorized time slot of each service frame to be sent based on the first byte length and the second start time of each service frame to be sent, each authorized time slot includes a third start time and an authorized length, and the authorized length is greater than the first byte length; the following cross-DBA scheduling cycle adjustment is performed for each authorized time slot: determine the sixth byte length between the third start time and the end time of the DBA scheduling cycle where the third start time is located; determine a first size relationship between the sixth byte length and the authorized length; when the first size relationship is that the authorized length is greater than the sixth byte length, adjust the third start time to the start time of the next DBA scheduling cycle; generate a bandwidth time slot allocation map based on the authorized time slots of each service frame to be sent.
[0175] In one embodiment of the present disclosure, the authorized length of each authorized time slot in the bandwidth time slot allocation diagram is the sum of the first byte length and the margin length; the receiving module 1201 is also used to receive at least one service frame sent by the ONU according to the bandwidth time slot allocation diagram; the device also includes: a third determination module, used to determine the byte length of the time interval between the start time of each service frame in at least one service frame and the start time of the corresponding authorized time slot, and obtain at least one byte length; a drift adjustment module, used to perform the following drift adjustment on each authorized time slot according to at least one byte length: determine the second size relationship between each byte length in at least one byte length and the first length threshold, and respectively with the second length The third size relationship of the threshold, the first length threshold is greater than 0.5×the margin length and less than the margin length, and the second length threshold is less than 0.5×the margin length; when the second size relationship is that the byte length is greater than the first length threshold, the start time of the authorized time slot is delayed by the first preset length; when the third size relationship is that the byte length is less than the second length threshold, the start time of the authorized time slot is advanced by the second preset length; the generation module 1203 is also used to update the bandwidth time slot allocation diagram according to the drift-adjusted authorized time slot; the first sending module is also used to send the updated bandwidth time slot allocation diagram to the ONU, so that the ONU sends the service frame of the periodic service according to the updated bandwidth time slot allocation diagram.
[0176] In one embodiment of the present disclosure, the generating module 1203 is used to adjust the drift-adjusted authorized time slots across the DBA scheduling cycle; and generate an updated bandwidth time slot allocation map according to the drift-adjusted authorized time slots across the DBA scheduling cycle.
[0177] Those skilled in the art will appreciate that various aspects of the present disclosure may be implemented as systems, methods or program products. Therefore, various aspects of the present disclosure may be specifically implemented in the following forms, namely: complete hardware implementation, complete software implementation (including firmware, microcode, etc.), or a combination of hardware and software, which may be collectively referred to herein as "circuits", "modules" or "systems".
[0178] Refer to the following Fig.13 1300 according to this embodiment of the present disclosure is described. Fig.13 The electronic device 1300 shown is merely an example and should not bring any limitation to the functions and scope of use of the embodiments of the present disclosure.
[0179] like Fig.13 As shown, the electronic device 1300 is in the form of a general computing device. The components of the electronic device 1300 may include but are not limited to: at least one processing unit 1310, at least one storage unit 1320, and a bus 1330 connecting different system components (including the storage unit 1320 and the processing unit 1310).
[0180] The storage unit stores program codes, which can be executed by the processing unit 1310, so that the processing unit 1310 executes the steps of various exemplary embodiments of the present disclosure described in the above “Specific Implementation Methods” section of this specification.
[0181] The storage unit 1320 may include a readable medium in the form of a volatile storage unit, such as a random access memory unit (RAM) 1321 and / or a cache memory unit 1322 , and may further include a read-only memory unit (ROM) 1323 .
[0182] The storage unit 1320 may also include a program / utility 1324 having a set (at least one) of program modules 1325, such program modules 1325 including but not limited to: an operating system, one or more application programs, other program modules, and program data, each of which or some combination may include an implementation of a network environment.
[0183] Bus 1330 may represent one or more of several types of bus structures, including a memory unit bus or memory unit controller, a peripheral bus, an accelerated graphics port, a processing unit, or a local bus using any of a variety of bus architectures.
[0184] The electronic device 1300 may also communicate with one or more external devices 1340 (e.g., keyboards, pointing devices, Bluetooth devices, etc.), one or more devices that enable a user to interact with the electronic device 1300, and / or any device that enables the electronic device 1300 to communicate with one or more other computing devices (e.g., routers, modems, etc.). Such communication may be performed through an input / output (I / O) interface 1350. Furthermore, the electronic device 1300 may also communicate with one or more networks (e.g., a local area network (LAN), a wide area network (WAN), and / or a public network, such as the Internet) through a network adapter 1360. Fig.13 As shown, the network adapter 1360 communicates with other modules of the electronic device 1300 via the bus 1330. It should be understood that, although not shown in the figure, other hardware and / or software modules can be used in conjunction with the electronic device 1300, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems.
[0185] Through the description of the above implementation, it is easy for those skilled in the art to understand that the example implementation described here can be implemented by software, or by software combined with necessary hardware. Therefore, the technical solution according to the implementation of the present disclosure can be embodied in the form of a software product, which can be stored in a non-volatile storage medium (which can be a CD-ROM, a USB flash drive, a mobile hard disk, etc.) or on a network, including several instructions to enable a computing device (which can be a personal computer, a server, a terminal device, or a network device, etc.) to execute the method according to the implementation of the present disclosure.
[0186] In an exemplary embodiment of the present disclosure, a computer-readable storage medium is also provided, which may be a readable signal medium or a readable storage medium. A program product capable of implementing the above-mentioned method of the present disclosure is stored thereon. In some possible implementations, various aspects of the present disclosure may also be implemented in the form of a program product, which includes a program code, and when the program product is run on a terminal device, the program code is used to cause the terminal device to execute the steps according to various exemplary implementations of the present disclosure described in the above “Specific Implementation Methods” section of this specification.
[0187] More specific examples of computer-readable storage media in the present disclosure may include, but are not limited to, an electrical connection having one or more conductors, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
[0188] In the present disclosure, a computer readable storage medium may include a data signal propagated in baseband or as part of a carrier wave, wherein a readable program code is carried. Such propagated data signals may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. A readable signal medium may also be any readable medium other than a readable storage medium, which may send, propagate, or transmit a program for use by or in conjunction with an instruction execution system, apparatus, or device.
[0189] Alternatively, the program code contained on the computer-readable storage medium may be transmitted using any appropriate medium, including but not limited to wireless, wired, optical cable, RF, etc., or any suitable combination of the foregoing.
[0190] In a specific implementation, the program code for performing the operations of the present disclosure may be written in any combination of one or more programming languages, including object-oriented programming languages such as Java, C++, etc., and conventional procedural programming languages such as "C" or similar programming languages. The program code may be executed entirely on the user computing device, partially on the user device, as a separate software package, partially on the user computing device and partially on a remote computing device, or entirely on a remote computing device or server. In the case of a remote computing device, the remote computing device may be connected to the user computing device through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computing device (e.g., using an Internet service provider to connect through the Internet).
[0191] In an exemplary embodiment of the present disclosure, a computer program product is also provided, which includes a computer program or computer instructions, and the computer program or computer instructions are loaded and executed by a processor to enable a computer to implement the steps of various exemplary embodiments of the present disclosure described in the above "Specific Implementation" section of this specification.
[0192] It should be noted that, although several modules or units of the device for action execution are mentioned in the above detailed description, this division is not mandatory. In fact, according to the embodiments of the present disclosure, the features and functions of two or more modules or units described above can be embodied in one module or unit. On the contrary, the features and functions of one module or unit described above can be further divided into multiple modules or units to be embodied.
[0193] In addition, although the steps of the method in the present disclosure are described in a specific order in the drawings, this does not require or imply that the steps must be performed in this specific order, or that all the steps shown must be performed to achieve the desired results. Additionally or alternatively, some steps may be omitted, multiple steps may be combined into one step, and / or one step may be decomposed into multiple steps, etc.
[0194] Through the description of the above implementation, it is easy for those skilled in the art to understand that the example implementation described here can be implemented by software, or by software combined with necessary hardware. Therefore, the technical solution according to the implementation of the present disclosure can be embodied in the form of a software product, which can be stored in a non-volatile storage medium (which can be a CD-ROM, a USB flash drive, a mobile hard disk, etc.) or on a network, including several instructions to enable a computing device (which can be a personal computer, a server, a mobile terminal, or a network device, etc.) to execute the method according to the implementation of the present disclosure.
[0195] Those skilled in the art will readily appreciate other embodiments of the present disclosure after considering the specification and practicing the invention disclosed herein. The present disclosure is intended to cover any variations, uses or adaptations of the present disclosure, which follow the general principles of the present disclosure and include common knowledge or customary technical means in the art that are not disclosed in the present disclosure. The description and examples are to be regarded as exemplary only, and the true scope of the present disclosure is indicated by the appended claims.
Claims
1. A data transmission method, characterized in that: The method is applied to an optical line terminal OLT, comprising: Receiving a physical layer burst sent by an optical network unit ONU, wherein the physical layer burst includes at least two service frames of a periodic service carried by the ONU, and the byte lengths of different service frames are the same; Determine the first byte length of the service frame and the second byte length of the interval between two adjacent service frames; Generate a bandwidth time slot allocation graph according to the first byte length and the second byte length; Sending the bandwidth time slot allocation map to the ONU, so that the ONU sends the service frame of the periodic service according to the bandwidth time slot allocation map; The passive optical network PON port corresponding to the ONU has a dynamic bandwidth allocation DBA scheduling period; and generating a bandwidth time slot allocation diagram according to the first byte length and the second byte length includes: Determining a first start time of any one of the at least two service frames; Predicting a second start time of each service frame to be sent according to the first start time, the first byte length, the second byte length, and the DBA scheduling period; The bandwidth time slot allocation diagram is generated according to the first byte length and the second start time of each service frame to be sent.
2. The method according to claim 1, characterized in that The physical layer burst includes a plurality of data frames, each data frame includes a header and a valid load, the length of the header is the third byte length, and the type of each data frame is a service frame or a null frame; The determining of the first byte length of the service frame and the second byte length of the interval between two adjacent service frames comprises: Determine the length of the effective load of the service frame to obtain a fourth byte length; calculate the sum of the third byte length and the fourth byte length to obtain the first byte length; Determine the number of empty frames between two adjacent service frames in the multiple data frames; determine the fifth byte length of the empty frames; calculate the product of the fifth byte length and the number to obtain the second byte length.
3. The method according to claim 2, characterized in that The determining the length of the effective load of the service frame to obtain a fourth byte length includes: Determine the value of the effective load length indication PLI in the packet header of the service frame, and use the byte length indicated by the value of the PLI as the fourth byte length.
4. The method according to claim 2, characterized in that: The header of each data frame includes the port number Port-Id and also includes: The type of each data frame is determined one by one according to the value of Port-Id in the packet header of each data frame in the multiple data frames.
5. The method according to claim 1, characterized in that Also includes: A detection window is sent to the ONU, so that the ONU sends the physical layer burst within the detection window.
6. The method according to claim 1, characterized in that The step of generating the bandwidth time slot allocation diagram according to the first byte length and the second start time of each service frame to be sent includes: Determine, according to the first byte length and the second start time of each service frame to be sent, an authorization time slot of each service frame to be sent, each authorization time slot includes a third start time and an authorization length, and the authorization length is greater than the first byte length; The following cross-DBA scheduling cycle adjustments are made for each authorized time slot: Determine a sixth byte length between the third start time and the end time of the DBA scheduling period in which the third start time is located; Determine a first size relationship between the sixth byte length and the authorized length; When the first size relationship is that the authorized length is greater than the sixth byte length, adjusting the third start time to the start time of the next DBA scheduling period; The bandwidth time slot allocation diagram is generated according to the authorized time slots of each service frame to be sent.
7. The method according to any one of claims 1 to 6, characterized in that: The authorization length of each authorization time slot in the bandwidth time slot allocation diagram is the sum of the first byte length and the margin length; and further comprising: Receiving at least one service frame sent by the ONU according to the bandwidth time slot allocation diagram; Determine the byte length of the time interval between the start time of each service frame in the at least one service frame and the start time of the corresponding grant time slot to obtain at least one byte length; The drift adjustment is performed on each granted time slot according to the at least one byte length as follows: Determine a second size relationship between each byte length of the at least one byte length and a first length threshold, and a third size relationship between each byte length and a second length threshold, wherein the first length threshold is greater than 0.5×the margin length and less than the margin length, and the second length threshold is less than 0.5×the margin length; When the byte length of the second size relationship is greater than the first length threshold, delaying the start time of the authorization time slot by a first preset length; When the byte length of the third size relationship is less than the second length threshold, advancing the start time of the authorization time slot by a second preset length; updating the bandwidth time slot allocation map according to the drift-adjusted authorized time slots; The updated bandwidth time slot allocation diagram is sent to the ONU, so that the ONU sends the service frame of the periodic service according to the updated bandwidth time slot allocation diagram.
8. The method according to claim 7, characterized in that The updating of the bandwidth time slot allocation map according to the drift-adjusted authorized time slots includes: Adjust the drift-adjusted authorized time slot across DBA scheduling cycles; An updated bandwidth time slot allocation graph is generated according to the authorized time slots adjusted across the DBA scheduling period.
9. A data sending device, characterized in that: The device is applied to an OLT side and includes: A receiving module, used for receiving a physical layer burst sent by an optical network unit ONU, wherein the physical layer burst includes at least two service frames of a periodic service carried by the ONU, and the byte lengths of different service frames are the same; A first determining module, used to determine a first byte length of a service frame and a second byte length of an interval between two adjacent service frames; A generating module, configured to generate a bandwidth time slot allocation diagram according to the first byte length and the second byte length; A first sending module, configured to send the bandwidth time slot allocation diagram to the ONU, so that the ONU sends the service frame of the periodic service according to the bandwidth time slot allocation diagram; Among them, the passive optical network PON port corresponding to the ONU has a dynamic bandwidth allocation DBA scheduling cycle; the first sending module is used to: determine the first start time of any one of the at least two service frames; predict the second start time of each service frame to be sent according to the first start time, the first byte length, the second byte length and the DBA scheduling cycle; generate the bandwidth time slot allocation diagram according to the first byte length and the second start time of each service frame to be sent.
10. An electronic device, characterized in that: include: processor; as well as A memory, configured to store executable instructions of the processor; The processor is configured to execute the data sending method according to any one of claims 1 to 8 by executing the executable instructions.
11. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the data transmission method according to any one of claims 1 to 8 is implemented.
Citation Information
Patent Citations
Dynamic bandwidth allocation method of network slice and OLT
CN111464890A
