Resource scheduling method, communication device, storage medium and passive optical network system
By dynamically dividing and allocating time slot resources of passive optical network systems, the uplink delay and jitter problems in traditional systems are solved, and the coordinated transmission with service data is realized, the delay and jitter are reduced, and the stability of the system is improved. Resource utilization rate.
Patent Information
- Application Number
- CN202411232503.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-04
- Publication Date
- 2024-12-31
AI Technical Summary
In traditional passive optical network systems, the uplink delay is large and the jitter is severe, especially in industrial control scenarios, and the timing of the transmission of service data cannot be effectively coordinated, resulting in serious problems with delay and jitter.
Provide a resource scheduling method, by obtaining the time slot allocation request message of the external system, dividing and allocating the time slot resources of the passive optical network port, and generating a bandwidth time slot allocation map to ensure coordination with the sending time of service data and reducing delays and jitter.
By dynamically allocating time slot resources, it supports the use of specified time slots in external systems, minimizing delay and jitter, and improving the resource utilization rate and system stability of optical network units.
Smart Images

Figure CN119233132A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of communication technology, and in particular to a resource scheduling method, communication equipment, computer-readable storage medium and passive optical network system. Background Art
[0002] The upstream and downstream delays of the Passive Optical Network (PON) system are asymmetric. The downstream delay is small and the jitter is small. Due to the TDMA (Time Division Multiple Access) and DBA (Dynamic Bandwidth Allocation) scheduling in the upstream, the ONU (Optical Network Unit) device can only send data in the time slot specified by the OLT (Optical Line Terminal). If the service data packet received by the ONU is staggered in time with the time slot allocated by the OLT, it will cause a large end-to-end delay and jitter.
[0003] The uplink of TDM PON (time division multiplexing passive optical network) adopts time division multiplexing. OLT allocates time slots to ONU through BWMAP (BandwidthMap, bandwidth time slot allocation map). Specific ONU turns on the light and sends data in a specific time period, and turns off the light in other time periods to avoid affecting other devices.
[0004] There are two types of traditional DBA mechanisms: static bandwidth time slot allocation mechanism and dynamic time slot allocation mechanism based on actual data transmission. In industrial control scenarios, control signaling has high requirements for latency and jitter, and the traditional DBA mechanism cannot allocate time slots at the right time due to the lack of coordination with the transmission timing of external business data, resulting in large latency and jitter, which may cause business errors. Summary of the invention
[0005] Based on this, it is necessary to provide a resource scheduling method, communication equipment, computer-readable storage medium and passive optical network system to address the above technical problems, support external systems to specify the use of time slot resources, and reduce delay and jitter.
[0006] In a first aspect, the present application provides a resource scheduling method, which is applied to an optical line terminal, including:
[0007] Obtaining a time slot allocation request message sent by an external system; the time slot allocation request message carries a transmission container identifier and time slot slicing information;
[0008] Determine the time slot resources to be allocated; the time slot resources to be allocated are N slice resources and N reserved protection resources obtained by dividing the time slot resources of the passive optical network port within the scheduling period; the optical network unit corresponding to the transmission container identifier is connected to the passive optical network port;
[0009] Determine the target time slot resource corresponding to the time slot fragmentation information from the time slot resources to be allocated;
[0010] Generate a bandwidth time slot allocation diagram according to the target time slot resources;
[0011] The bandwidth time slot allocation map is sent to the optical network unit corresponding to the transmission container identifier.
[0012] In one embodiment, before obtaining the time slot allocation request message sent by the external system, the method further includes:
[0013] Obtaining a time slot allocation application message sent by an external system; the time slot allocation application message carries a port identifier and a device identifier;
[0014] Permission authentication based on device identification;
[0015] After the authority authentication is passed, the resource prompt information of the passive optical network port corresponding to the port identifier is obtained; the resource prompt information includes the length of the slice resource in the time slot resource to be allocated, the length of the reserved protection resource and the total number of slice resources;
[0016] The resource hint information is fed back to the external system to instruct the external system to perform resource scheduling based on the resource hint information.
[0017] In one embodiment, the resource prompt information also includes a scheduling period corresponding to the time slot resource to be allocated; the time slot allocation request message also carries a service period, which is an integer multiple of the scheduling period;
[0018] The method further comprises:
[0019] The effective period of the control bandwidth time slot allocation diagram is consistent with the service period.
[0020] In one of the embodiments, the target time slot resource is a single slice resource, or the target time slot resource includes a plurality of adjacent slice resources and reserved protection resources between adjacent slice resources;
[0021] In the case where the target time slot resources include a plurality of adjacent slice resources and reserved protection resources between the adjacent slice resources, a bandwidth time slot allocation diagram is generated according to the target time slot resources, including:
[0022] Merge multiple adjacent slice resources and reserved protection resources between adjacent slice resources;
[0023] A bandwidth time slot allocation diagram is generated based on the merged time slot resources.
[0024] In one of the embodiments, before generating the bandwidth time slot allocation map according to the target time slot resources, the method further includes:
[0025] Detect whether the target time slot resource is an allocated resource, and perform permission authentication based on the transmission container identifier;
[0026] If the target time slot resource is an unallocated resource and the authority authentication is passed, the step of generating a bandwidth time slot allocation diagram according to the target time slot resource is executed.
[0027] In one of the embodiments, after sending the bandwidth time slot allocation map to the optical network unit corresponding to the transmission container identifier, the method further includes:
[0028] Get the set allocation strategy; set the sharding strategy to a static bandwidth allocation strategy or a dynamic bandwidth sharding strategy;
[0029] Based on the set allocation strategy, the surplus time slot resources are allocated to the transmission containers of each optical network unit connected to the passive optical network port; wherein the surplus time slot resources are unallocated resources in the time slot resources to be allocated.
[0030] In a second aspect, the present application further provides a resource scheduling method, which is applied to an external system, the external system is communicatively connected to an optical line terminal, and includes:
[0031] A time slot allocation application message is sent to the optical line terminal to instruct the optical line terminal to feedback resource prompt information; the time slot allocation application message carries a port identifier and a device identifier; wherein the optical line terminal performs authority authentication based on the device identifier, and after the authority authentication is passed, obtains resource prompt information of the passive optical network port corresponding to the port identifier; the resource prompt information includes the length of the slice resource in the time slot resource to be allocated, the length of the reserved protection resource, and the total number of slice resources; the time slot resource to be allocated is the N slice resources and N reserved protection resources obtained by dividing the time slot resources of the passive optical network port in the scheduling period by the optical line terminal;
[0032] Based on the resource prompt information, a time slot allocation request message is sent to the optical line terminal; the time slot allocation request message carries a transmission container identifier and time slot slicing information; wherein the time slot allocation request message is used to instruct the optical line terminal to determine the time slot resources to be allocated; from the time slot resources to be allocated, a target time slot resource corresponding to the time slot slicing information is determined; according to the target time slot resource, a bandwidth time slot allocation map is generated; and the bandwidth time slot allocation map is sent to the optical network unit corresponding to the transmission container identifier.
[0033] In a third aspect, the present application further provides a communication device, including a memory and a processor, wherein the memory stores a computer program, and when the processor executes the computer program, the steps of the method described in the first aspect or the second aspect are implemented.
[0034] In a fourth aspect, the present application further provides a computer-readable storage medium having a computer program stored thereon, and when the computer program is executed by a processor, the steps of the method described in the first aspect or the second aspect above are implemented.
[0035] In a fifth aspect, the present application also provides a passive optical network system, which includes an optical line terminal and an optical network unit, and the optical line terminal is communicatively connected to an external system; the optical line terminal is used to execute the steps of the method described in the first aspect above; the external system is used to execute the steps of the method described in the second aspect above.
[0036] The resource scheduling method, communication device, computer-readable storage medium and passive optical network system described above obtain a time slot allocation request message sent by an external system; the time slot allocation request message carries a transmission container identifier and time slot slicing information; determines the time slot resources to be allocated; the time slot resources to be allocated are N slicing resources and N reserved protection resources obtained by dividing the time slot resources of the passive optical network port within the scheduling period; the optical network unit corresponding to the transmission container identifier is connected to the passive optical network port; from the time slot resources to be allocated, the target time slot resources corresponding to the time slot slicing information are determined; according to the target time slot resources, a bandwidth time slot allocation diagram is generated; and the bandwidth time slot allocation diagram is sent to the optical network unit corresponding to the transmission container identifier. Through the above method, the time slot resources within the scheduling period are divided, and a channel for time slot allocation requests is provided, so that the external system can apply for time slot resources according to the business requirements of periodic messages and the rules of message interaction; supports the external system to specify the use of time slot resources, can coordinate with the external system to send business data, and allocate appropriate time slot resources to the optical network unit, thereby minimizing delay and jitter. BRIEF DESCRIPTION OF THE DRAWINGS
[0037] In order to more clearly illustrate the technical solutions in the embodiments of the present application or related technologies, the drawings required for use in the embodiments of the present application or related technical descriptions will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without paying creative work.
[0038] FIG1 is an application environment diagram of a resource scheduling method in one embodiment;
[0039] FIG2 is a schematic diagram of a flow chart of a resource scheduling method in one embodiment;
[0040] FIG3 is a schematic diagram of time slot resource division in one embodiment;
[0041] FIG4 is a schematic flow chart of a time slot allocation application step in one embodiment;
[0042] FIG5 is a schematic diagram of interaction between an external system and an OLT in one embodiment;
[0043] Figure 6 A schematic diagram of time slot allocation in one embodiment;
[0044] Figure 7 is a flow chart of a resource scheduling method in another embodiment;
[0045] FIG8 is a diagram showing the internal structure of a communication device in one embodiment. DETAILED DESCRIPTION
[0046] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.
[0047] The resource scheduling method provided in the embodiment of the present application can be applied in the application environment shown in Figure 1. Among them, the passive optical network system includes an optical line terminal (OLT) 104 and an optical network unit (ONU) 106, the external system 102 is connected to the optical line terminal 104 in communication, and the optical line terminal 104 is connected to at least one optical network unit 106 in communication. It can be understood that the OLT can be connected to more or fewer ONUs. Figure 1 is only an example and does not constitute a limitation on the passive optical network system to which the present application scheme is applied. In an optional implementation, the optical line terminal 104 provides an external interface, and the external system 102 can specify the slice resources that need to be applied for to the optical line terminal 104 through the external interface. The optical line terminal 104 allocates appropriate time slot resources to the optical network unit 106 based on the request of the external system 102, thereby minimizing delay and jitter.
[0048] In an exemplary embodiment, as shown in FIG. 2 , a resource scheduling method is provided. The method is applied to the optical line terminal 104 as shown in FIG. 1 , and the method includes:
[0049] Step 202: Acquire a time slot allocation request message sent by an external system; the time slot allocation request message carries a transmission container identifier and time slot fragmentation information.
[0050] Among them, the optical line terminal (OLT) provides an external interface for use by the external system, and the external system sends a time slot allocation request message to the optical line terminal through the external interface. It can be understood that the external system refers to a system that carries business data. Optionally, the business data carried by the external system can be voice business data, video business data, industrial control business data, etc. These business data are transmitted to the user end through the passive optical network system to realize functions such as voice calls, video on demand, and industrial control. The embodiments of this application do not limit the specific services carried by the external system. Among them, the industrial control business has a certain control cycle, and the message interaction in the industrial control business also has a certain periodicity. If the external system applies for the time slot resources of the passive optical network (PON) according to the rules of message interaction, the effect of reducing latency can be achieved.
[0051] The transmission container identifier is used to indicate the transmission container (TransmissionContainer, T-CONT) specified by the external system and allocated with the time slot, and the time slot fragment information is used to indicate the fragment number specified by the external system and required to be allocated to the transmission container.
[0052] It is understandable that the external system can specify the allocation of time slots to a certain transmission container, or can specify the allocation of time slots to multiple transmission containers at the same time. For example, the external system specifies that the slice resource F1 is allocated to T-CONT1, and specifies that the slice resources F2-F3 are allocated to T-CONT2. The optical line terminal performs steps 204-210 for each group of transmission container identifiers and time slot slice information to implement time slot resource allocation for one or more optical network units.
[0053] Step 204, determine the time slot resources to be allocated; the time slot resources to be allocated are N slice resources and N reserved protection resources obtained by dividing the time slot resources of the passive optical network port within the scheduling period; the optical network unit corresponding to the transmission container identifier is connected to the passive optical network port.
[0054] Among them, the passive optical network port refers to the PON port set on the OLT, which is connected to at least one optical network unit (ONU). The scheduling period refers to the shortest scheduling period supported by the OLT, which can be understood as the DBA scheduling period, for example, 125us. The time slot resource is used to characterize the bandwidth resource of the passive optical network interface, which is in bytes and can be understood as the length of bytes sent through the passive optical network interface per unit time. In an optional implementation method, according to the transmission rate of the passive optical network interface, the shortest scheduling period supported by the OLT is converted into a byte length to obtain the time slot resource of the passive optical network port within the scheduling period.
[0055] It is understandable that the OLT divides the time slot resources of the passive optical network port in a scheduling cycle into N slice resources and N reserved protection resources. It is understandable that, referring to Figure 3, Figure 3 is a schematic diagram of time slot resource division in one embodiment; assuming that the length of the time slot resources of the passive optical network port in a scheduling cycle is H, N slice resources are divided therefrom, numbered F1-Fn; to avoid conflicts, a protection band (overhead) is reserved between adjacent slice resources, that is, reserved protection resources are divided. Among them, the length of the slice resource is L, and the length of the reserved protection resource is g. Since H may not be divisible by (g+L), the length k of the last slice resource may be less than L. That is, the time slot resources of length H are divided into N-1 slice resources of length L, a slice resource of length k, and N reserved protection resources of length g. It can be expressed by the following formula: H=(N-1)(g+L)+g+k.
[0056] In an optional implementation, the OLT stores the correspondence between each transmission container, optical network unit and passive optical network interface. According to the transmission container identifier, the passive optical network interface to be used can be determined, thereby determining the time slot resources to be allocated corresponding to the passive optical network interface.
[0057] In an optional implementation, the time slot allocation request message also carries a port identifier, and the passive optical network interface to be used can be determined according to the port identifier, thereby determining the time slot resources to be allocated corresponding to the passive optical network interface.
[0058] Step 206: Determine the target time slot resource corresponding to the time slot fragmentation information from the time slot resources to be allocated.
[0059] The fragment number to be allocated to the transmission container can be determined according to the time slot fragment information. Optionally, the time slot fragment information includes a starting fragment number and an ending fragment number. Optionally, the time slot fragment information includes a starting fragment number and the number of fragments.
[0060] The target time slot resource is a single slice resource, or the target time slot resource includes multiple adjacent slice resources and reserved protection resources between adjacent slice resources. It is understandable that if the time slot slice information specifies a single slice number, the slice resource corresponding to the slice number in the time slot resource to be allocated is determined as the target time slot resource. If the time slot slice information specifies multiple adjacent slice numbers, multiple adjacent slice resources corresponding to multiple slice numbers in the time slot resource to be allocated and the reserved protection resources between the adjacent slice resources are determined as the target time slot resource.
[0061] Step 208: Generate a bandwidth time slot allocation diagram according to the target time slot resources.
[0062] Step 210: Send the bandwidth time slot allocation map to the optical network unit corresponding to the transmission container identifier.
[0063] Among them, the bandwidth time slot allocation map (Bandwidth Map, BWMAP) is a specific data structure used to identify the bandwidth allocation of each optical network unit (ONU). The OLT translates the target time slot resources into BWMAP and sends it to the ONU, thereby notifying the ONU of the bandwidth allocation and realizing effective management and scheduling of the bandwidth of the passive optical network. It can be understood that the ONU sends data within its own time slot according to the requirements of the BWMAP, which can avoid data conflicts. The OLT allocates BWMAP to the ONU in collaboration with the external system, so that the ONU can process the service data at the appropriate time of transmission.
[0064] Optionally, after step 210, the method further includes: sending a time slot allocation request response message to an external system.
[0065] In the above resource scheduling method, a time slot allocation request message sent by an external system is obtained; the time slot allocation request message carries a transmission container identifier and time slot slicing information; the time slot resources to be allocated are determined; the time slot resources to be allocated are N slicing resources and N reserved protection resources obtained by dividing the time slot resources of the passive optical network port within the scheduling period; the optical network unit corresponding to the transmission container identifier is connected to the passive optical network port; the target time slot resources corresponding to the time slot slicing information are determined from the time slot resources to be allocated; a bandwidth time slot allocation map is generated according to the target time slot resources; and the bandwidth time slot allocation map is sent to the optical network unit corresponding to the transmission container identifier. In the above manner, the time slot resources within the scheduling period are divided, and a channel for time slot allocation requests is provided, so that the external system can apply for time slot resources according to the business requirements of periodic messages and the rules of message interaction; the external system is supported to specify the use of time slot resources, and the timing of sending business data can be coordinated with the external system to allocate appropriate time slot resources to the optical network unit, thereby minimizing delay and jitter.
[0066] In an exemplary embodiment, as shown in FIG4 , before step 202, the method further includes:
[0067] Step 402: Acquire a time slot allocation request message sent by an external system; the time slot allocation request message carries a port identifier and a device identifier.
[0068] The port identifier is used to represent the PON port that is set by the external system and needs to be allocated, and the device identifier is used to indicate the identity information of the external system.
[0069] Step 404: perform permission authentication based on the device identification.
[0070] Among them, the external system is checked for the permission to apply for custom time slot fragmentation according to the device identification (DeviceId). If it is determined that the external system has the permission to apply for custom time slot fragmentation, the permission authentication is passed; if it is determined that the external system does not have the permission to apply for custom time slot fragmentation, the permission authentication fails. Optionally, the OLT stores a permission list, which includes multiple device identifications with the permission to apply for custom time slot fragmentation. When receiving the time slot allocation application message, the device identification of the external system is matched with the permission list. If the device identification of the external system is recorded in the permission list, the permission authentication is passed.
[0071] Step 406, after the authority authentication is passed, the resource prompt information of the passive optical network port corresponding to the port identifier is obtained; the resource prompt information includes the length of the slice resource in the time slot resource to be allocated, the length of the reserved protection resource and the total number of slice resources.
[0072] The resource prompt information is used to indicate the current time slot division scheme of the PON port, including the length of the slice resources in the time slot resources to be allocated (ie, the aforementioned L and k), the length of the reserved protection resources (ie, the aforementioned g), and the total number of slice resources (ie, the aforementioned N).
[0073] Step 408: Feedback the resource prompt information to the external system to instruct the external system to perform resource scheduling based on the resource prompt information.
[0074] Among them, the OLT feeds back the resource prompt information to the external system, so that the external system can know the current time slot division scheme of the PON port and perform resource scheduling based on the resource prompt information. It can be understood that according to the length L and k of the slice resource and the length g of the reserved protection resource, the starting position X1-Xn of each slice can be determined, and the time slot start time of the specified slice number can be determined: Xi=(g+L)(i-1)+g.
[0075] In an optional implementation, refer to FIG5 , which is a schematic diagram of the interaction between the external system and the OLT in an embodiment; wherein the external system sends a time slot allocation request message to the OLT, and the OLT feeds back a time slot allocation request response message to the external system after processing, i.e., the resource prompt information of the embodiment of the present application. The external system sends a time slot allocation request message to the OLT, and the OLT feeds back a time slot allocation request response message to the external system after processing.
[0076] In this embodiment, the security of resource allocation and the stability of the passive optical network system can be improved through authority authentication. By feeding back resource prompt information to the external system, the external system can be informed of the current time slot division scheme of the PON port, so that the external system can perform resource scheduling more accurately, thereby improving the coordination efficiency between the external system and the optical line terminal.
[0077] In an exemplary embodiment, the resource prompt information also includes the scheduling period corresponding to the time slot resources to be allocated; the time slot allocation request message also carries a service period, which is an integer multiple of the scheduling period; the method also includes: controlling the effective period of the bandwidth time slot allocation diagram to be consistent with the service period.
[0078] 5 and the following Tables 1 to 5, in the embodiment of the present application, the external system and the OLT transmit information through the defined interfaces, including: a time slot allocation application message, a slot allocation application response message, a time slot allocation request message, and a time slot allocation request response message.
[0079] Table 1 shows an interface of a time slot allocation request message, through which an external system sends a time slot allocation request message to the OLT.
[0080] Table 1:
[0081]
[0082] Table 2 shows an interface of a time slot allocation application response message, through which the OLT sends the time slot allocation application response message to the external system.
[0083] Table 2:
[0084]
[0085] Among them, Result=0 indicates success; Result=1 indicates permission denied; Result=2 indicates capability denied. If the value of Result is not 0, the subsequent fields do not need to be filled in.
[0086] Table 3 shows an interface of a time slot allocation request message, through which an external system sends a time slot allocation request message to the OLT. The value of Cycle in Table 3 needs to be an integer multiple of the number of MinCycleBlock in Table 2.
[0087] Table 3:
[0088]
[0089] Table 4 shows a record in the time slot application table (TimeSlot Application).
[0090] Table 4:
[0091]
[0092] Table 5 shows an interface of a time slot allocation request response message, through which the OLT sends the time slot allocation request response message to the external system.
[0093] Table 5:
[0094]
[0095] It is understandable that the resource prompt information also includes the scheduling cycle corresponding to the time slot resources to be allocated (refer to MinCycleBlock in Table 2 above). By feeding back the resource prompt information to the external system, the external system can know the duration of each scheduling cycle and allocate resources according to the actual periodic business needs. The time slot allocation request message also carries the business cycle (refer to Cycle in Table 3 above). The business cycle is an integer multiple of the scheduling cycle. The external system can apply to the OLT for the time slot segment number and cycle required to be used according to the desired business cycle, time slot start time, and the length of the message to be sent.
[0096] OLT sets the effective period of the bandwidth time slot allocation map according to the service cycle to ensure that the effective period of the bandwidth time slot allocation map is consistent with the service cycle. In this way, the external system can apply for time slot resources in multiple scheduling cycles by providing the service cycle. For example, the scheduling cycle of OLT is 125us, and the service cycle applied by the external system is 250us. OLT sends BWMAP to ONU, so that ONU sends data within its own time slot range according to the requirements of BWMAP within two scheduling cycles, so that the effective period of BWMAP is consistent with the service cycle.
[0097] In an exemplary embodiment, the target time slot resource is a single slice resource, or the target time slot resource includes a plurality of adjacent slice resources and reserved protection resources between adjacent slice resources;
[0098] In the case where the target time slot resources include multiple adjacent slice resources and reserved protection resources between the adjacent slice resources, step 208 includes: merging the multiple adjacent slice resources and the reserved protection resources between the adjacent slice resources; and generating a bandwidth time slot allocation map according to the merged time slot resources.
[0099] Among them, a guard band needs to be reserved between time slots of different ONUs, but if time slots are allocated to the same ONU or the same T-CONT, no guard band needs to be reserved. In this embodiment, by merging multiple adjacent slice resources and reserved protection resources between adjacent slice resources, the protection resources reserved in advance are used as part of the time slot resources, thereby improving the resource utilization of the passive optical network.
[0100] It can be understood that, referring to FIG. 3 and Figure 6 , Figure 6The diagram is a time slot allocation diagram in an embodiment; the external system specifies that slice resource F1 is allocated to T-CONT1, and specifies that slice resource F2-F3 is allocated to T-CONT2. Since no guard band needs to be reserved between F2 and F3, OLT merges F2-F3 and sends them together in BWMAP. The start time allocated to T-CONT1 in BWMAP is X1, and the authorized time slot size is L. The start time allocated to T-CONT2 in BWMAP is X2, and the authorized time slot size is 2L+g, that is, F2 with a length of L, F3 with a length of L, and the reserved guard band with a length of g between F2 and F3 are merged.
[0101] In an exemplary embodiment, before step 208, the method further includes: detecting whether the target time slot resource is an allocated resource, and performing authority authentication based on the transmission container identifier; if the target time slot resource is an unallocated resource and the authority authentication passes, executing step 208.
[0102] Among them, the OLT checks whether the time slot allocation request of the external system can be met according to the current time slot resource allocation situation. Specifically, it checks whether the target time slot resource that the external system needs to use is an allocated resource. If other requests have applied to use the target time slot resource, the target time slot resource is characterized as an allocated resource; if other requests have not applied to use the target time slot resource, the target time slot resource is characterized as an unallocated resource. The OLT manages the authority of each transmission container. It can be understood that among the transmission containers managed by the OLT, some have the authority to apply for custom time slot fragments, and the other part may not have the authority to apply for custom time slot fragments. Based on the managed authority information, the OLT can determine whether the T-CONT corresponding to the transmission container identifier has the authority to apply for custom time slot fragments. If the target time slot resource is an unallocated resource and the T-CONT corresponding to the transmission container identifier has the authority to apply for custom time slot fragments, the subsequent steps are continued. If the target time slot resource is an allocated resource or the authority authentication fails, the OLT feeds back a time slot allocation request response message carrying a failure result code to the external system.
[0103] In this embodiment, by detecting resource allocation and authenticating the authority of the transmission container, the security of resource allocation and the stability of the passive optical network system can be improved.
[0104] In an exemplary embodiment, after step 210, the method further includes: obtaining a set allocation strategy; setting the slicing strategy to a static bandwidth allocation strategy or a dynamic bandwidth slicing strategy; based on the set allocation strategy, allocating surplus time slot resources to the transmission containers of each optical network unit connected to the passive optical network port; wherein the surplus time slot resources are unallocated resources in the time slot resources to be allocated.
[0105] After step 210, the target time slot resource is marked as an allocated resource. The priority of the resource scheduling method for the custom time slot provided in the embodiment of the present application is higher than the set allocation strategy. The resource scheduling method provided in the embodiment of the present application is used to allocate time slots to the optical network unit first. If there are surplus time slot resources within the scheduling period, they are allocated to the transmission containers of other optical network units that apply for static bandwidth allocation strategy or dynamic bandwidth slicing strategy.
[0106] It can be understood that in the static bandwidth allocation strategy, different ONUs or T-CONTs have different sizes of fixed bandwidth configurations on the OLT. The OLT calculates the time slot size allocated to each T-CONT in each DBA scheduling cycle based on the fixed bandwidth configuration. The size and order of this allocation are specified by the OLT, and are relatively fixed and unchanged in each cycle. After allocating time slots to the optical network unit through the resource scheduling method provided in the embodiment of the present application, time slot resources are allocated to other T-CONTs through the static bandwidth allocation strategy.
[0107] In the dynamic bandwidth slicing strategy, the OLT allocates more time slot resources to the ONU with large traffic and less time slot resources to the ONU with small traffic based on the level of service data traffic on the ONU side. The ways in which the OLT understands the service data traffic on the ONU side include: cache reporting and traffic monitoring. In the cache reporting method, the ONU actively reports the cache situation, and the OLT judges whether there are accumulated data packets based on this. In the traffic monitoring method, the OLT judges whether the ONU has accumulated data packets based on the usage of the ONU for each allocated time slot. The dynamic allocation method can make full use of bandwidth resources and avoid waste, but the mechanism of the previous cycle report-next cycle feedback it uses has a lag in itself and cannot achieve the best delay effect. In this embodiment, after allocating time slots to the optical network unit through the resource scheduling method provided in the embodiment of the present application, the dynamic bandwidth slicing strategy is used to allocate time slot resources to other T-CONTs, which can ensure that the time slot resources specified by the external system are allocated first to reduce the transmission delay of important business data.
[0108] It should be understood that, although the various steps in the flowcharts involved in the above-mentioned embodiments are displayed in sequence according to the indication of the arrows, these steps are not necessarily executed in sequence according to the order indicated by the arrows. Unless there is a clear explanation in this article, the execution of these steps does not have a strict order restriction, and these steps can be executed in other orders. Moreover, at least a part of the steps in the flowcharts involved in the above-mentioned embodiments can include multiple steps or multiple stages, and these steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these steps or stages is not necessarily to be carried out in sequence, but can be executed in turn or alternately with other steps or at least a part of the steps or stages in other steps.
[0109] Based on the same inventive concept, the embodiment of the present application also provides a resource scheduling method applied to an external system. The implementation scheme for solving the problem provided by the method is similar to the implementation scheme recorded in the above method, so the specific limitations in one or more resource scheduling method embodiments provided below can refer to the limitations on the resource scheduling method above, and will not be repeated here.
[0110] In an exemplary embodiment, Figure 7 As shown, a resource scheduling method is provided, and the resource scheduling method is applied to the external system 102 shown in FIG. 1, and the external system is communicatively connected with the optical line terminal, including:
[0111] Step 702, sending a time slot allocation application message to the optical line terminal to instruct the optical line terminal to feedback resource prompt information; the time slot allocation application message carries a port identifier and a device identifier; wherein the optical line terminal performs authority authentication based on the device identifier, and after the authority authentication is passed, obtains the resource prompt information of the passive optical network port corresponding to the port identifier; the resource prompt information includes the length of the slice resource in the time slot resource to be allocated, the length of the reserved protection resource and the total number of slice resources; the time slot resource to be allocated is the N slice resources and N reserved protection resources obtained by dividing the time slot resources of the passive optical network port within the scheduling period by the optical line terminal.
[0112] Step 704, based on the resource prompt information, sending a time slot allocation request message to the optical line terminal; the time slot allocation request message carries a transmission container identifier and time slot slicing information; wherein the time slot allocation request message is used to instruct the optical line terminal to determine the time slot resources to be allocated; from the time slot resources to be allocated, determine the target time slot resources corresponding to the time slot slicing information; generate a bandwidth time slot allocation map according to the target time slot resources; and send the bandwidth time slot allocation map to the optical network unit corresponding to the transmission container identifier.
[0113] In this embodiment, the optical line terminal divides the time slot resources within the scheduling cycle and provides a channel for time slot allocation requests. The external system can apply for time slot resources based on the business requirements of periodic messages and the rules of message interaction. It supports the external system to specify the use of time slot resources, and can coordinate with the external system to send business data. The timing can allocate appropriate time slot resources to the optical network unit, thereby minimizing latency and jitter.
[0114] In an exemplary embodiment, a communication device is provided, which may be a server, and its internal structure diagram may be shown in FIG8. The communication device includes a processor, a memory, an input / output interface (Input / Output, referred to as I / O) and a communication interface. The processor, the memory and the input / output interface are connected via a system bus, and the communication interface is connected to the system bus via the input / output interface. The processor of the communication device is used to provide computing and control capabilities. The memory of the communication device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The input / output interface of the communication device is used to exchange information between the processor and an external device. The communication interface of the communication device is used to communicate with an external terminal via a network connection. When the computer program is executed by the processor, a resource scheduling method is implemented.
[0115] Those skilled in the art will understand that the structure shown in FIG. 8 is merely a block diagram of a partial structure related to the scheme of the present application, and does not constitute a limitation on the communication device to which the scheme of the present application is applied. The specific communication device may include more or fewer components than shown in the figure, or combine certain components, or have a different arrangement of components.
[0116] In an exemplary embodiment, a communication device is provided, including a memory and a processor, wherein a computer program is stored in the memory, and the processor implements the following steps when executing the computer program: obtaining a time slot allocation request message sent by an external system; the time slot allocation request message carries a transmission container identifier and time slot slicing information; determining time slot resources to be allocated; the time slot resources to be allocated are N slicing resources and N reserved protection resources obtained by dividing the time slot resources of a passive optical network port within a scheduling period; an optical network unit corresponding to the transmission container identifier is connected to the passive optical network port; from the time slot resources to be allocated, a target time slot resource corresponding to the time slot slicing information is determined; according to the target time slot resource, a bandwidth time slot allocation map is generated; and the bandwidth time slot allocation map is sent to the optical network unit corresponding to the transmission container identifier.
[0117] In one embodiment, when the processor executes the computer program, the following steps are also implemented: obtaining a time slot allocation application message sent by an external system; the time slot allocation application message carries a port identifier and a device identifier; performing authority authentication based on the device identifier; after the authority authentication is passed, obtaining resource prompt information of the passive optical network port corresponding to the port identifier; the resource prompt information includes the length of the slice resources in the time slot resources to be allocated, the length of the reserved protection resources, and the total number of slice resources; and feeding back the resource prompt information to the external system to instruct the external system to perform resource scheduling based on the resource prompt information.
[0118] In one embodiment, when the processor executes the computer program, the following steps are further implemented: controlling the validity period of the bandwidth time slot allocation map to be consistent with the service period.
[0119] In one embodiment, when the processor executes the computer program, the following steps are also implemented: when the target time slot resources include multiple adjacent slice resources and reserved protection resources between adjacent slice resources, the multiple adjacent slice resources and the reserved protection resources between adjacent slice resources are merged; based on the merged time slot resources, a bandwidth time slot allocation map is generated.
[0120] In one embodiment, when the processor executes the computer program, the following steps are also implemented: detecting whether the target time slot resource is an allocated resource, and performing authority authentication based on the transmission container identifier; if the target time slot resource is an unallocated resource and the authority authentication passes, then executing the step of generating a bandwidth time slot allocation map based on the target time slot resource.
[0121] In one embodiment, when the processor executes the computer program, the following steps are also implemented: obtaining a set allocation strategy; setting the slicing strategy to a static bandwidth allocation strategy or a dynamic bandwidth slicing strategy; based on the set allocation strategy, allocating surplus time slot resources to the transmission containers of each optical network unit connected to the passive optical network port; wherein the surplus time slot resources are unallocated resources in the time slot resources to be allocated.
[0122] In one embodiment, when the processor executes the computer program, the following steps are also implemented: sending a time slot allocation application message to the optical line terminal to instruct the optical line terminal to feedback resource prompt information; the time slot allocation application message carries a port identifier and a device identifier; wherein the optical line terminal performs authority authentication based on the device identifier, and after the authority authentication is passed, obtains the resource prompt information of the passive optical network port corresponding to the port identifier; the resource prompt information includes the length of the slice resource in the time slot resource to be allocated, the length of the reserved protection resource, and the total number of slice resources; the time slot resource to be allocated is the N slice resources and N reserved protection resources obtained by dividing the time slot resource of the passive optical network port within the scheduling period by the optical line terminal; based on the resource prompt information, sending a time slot allocation request message to the optical line terminal; the time slot allocation request message carries a transmission container identifier and time slot slicing information; wherein the time slot allocation request message is used to instruct the optical line terminal to determine the time slot resource to be allocated; from the time slot resource to be allocated, determine the target time slot resource corresponding to the time slot slicing information; generate a bandwidth time slot allocation map according to the target time slot resource; and send the bandwidth time slot allocation map to the optical network unit corresponding to the transmission container identifier.
[0123] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored, and when the computer program is executed by a processor, the following steps are implemented: obtaining a time slot allocation request message sent by an external system; the time slot allocation request message carries a transmission container identifier and time slot slicing information; determining time slot resources to be allocated; the time slot resources to be allocated are N slicing resources and N reserved protection resources obtained by dividing the time slot resources of a passive optical network port within a scheduling period; an optical network unit corresponding to the transmission container identifier is connected to the passive optical network port; from the time slot resources to be allocated, a target time slot resource corresponding to the time slot slicing information is determined; according to the target time slot resource, a bandwidth time slot allocation map is generated; and the bandwidth time slot allocation map is sent to the optical network unit corresponding to the transmission container identifier.
[0124] In one embodiment, when the computer program is executed by the processor, the following steps are also implemented: obtaining a time slot allocation application message sent by an external system; the time slot allocation application message carries a port identifier and a device identifier; performing authority authentication based on the device identifier; after the authority authentication is passed, obtaining resource prompt information of the passive optical network port corresponding to the port identifier; the resource prompt information includes the length of the slice resources in the time slot resources to be allocated, the length of the reserved protection resources, and the total number of slice resources; and feeding back the resource prompt information to the external system to instruct the external system to perform resource scheduling based on the resource prompt information.
[0125] In one embodiment, when the computer program is executed by the processor, the following steps are further implemented: controlling the validity period of the bandwidth time slot allocation map to be consistent with the service period.
[0126] In one embodiment, when the computer program is executed by the processor, the following steps are also implemented: when the target time slot resources include multiple adjacent slice resources and reserved protection resources between adjacent slice resources, the multiple adjacent slice resources and the reserved protection resources between adjacent slice resources are merged; based on the merged time slot resources, a bandwidth time slot allocation map is generated.
[0127] In one embodiment, when the computer program is executed by the processor, the following steps are also implemented: detecting whether the target time slot resource is an allocated resource, and performing authority authentication based on the transmission container identifier; if the target time slot resource is an unallocated resource and the authority authentication passes, executing the step of generating a bandwidth time slot allocation map based on the target time slot resource.
[0128] In one embodiment, when the computer program is executed by the processor, the following steps are also implemented: obtaining a set allocation strategy; setting the slicing strategy to a static bandwidth allocation strategy or a dynamic bandwidth slicing strategy; based on the set allocation strategy, allocating surplus time slot resources to the transmission containers of each optical network unit connected to the passive optical network port; wherein the surplus time slot resources are unallocated resources in the time slot resources to be allocated.
[0129] In one embodiment, when the computer program is executed by the processor, the following steps are also implemented: sending a time slot allocation application message to the optical line terminal to instruct the optical line terminal to feedback resource prompt information; the time slot allocation application message carries a port identifier and a device identifier; wherein the optical line terminal performs authority authentication based on the device identifier, and after the authority authentication is passed, obtains the resource prompt information of the passive optical network port corresponding to the port identifier; the resource prompt information includes the length of the slice resource in the time slot resource to be allocated, the length of the reserved protection resource, and the total number of slice resources; the time slot resource to be allocated is the N slice resources and N reserved protection resources obtained by dividing the time slot resource of the passive optical network port within the scheduling period by the optical line terminal; based on the resource prompt information, sending a time slot allocation request message to the optical line terminal; the time slot allocation request message carries a transmission container identifier and time slot slicing information; wherein the time slot allocation request message is used to instruct the optical line terminal to determine the time slot resource to be allocated; from the time slot resource to be allocated, determine the target time slot resource corresponding to the time slot slicing information; generate a bandwidth time slot allocation map according to the target time slot resource; and send the bandwidth time slot allocation map to the optical network unit corresponding to the transmission container identifier.
[0130] In one embodiment, a passive optical network system is provided, the passive optical network system comprising an optical line terminal and an optical network unit, the optical line terminal being communicatively connected to an external system; the optical line terminal being used to execute the steps of the resource scheduling method as described above and applied to the optical line terminal; the external system being used to execute the steps of the resource scheduling method as described above and applied to the external system.
[0131] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data must comply with relevant regulations.
[0132] A person of ordinary skill in the art can understand that all or part of the processes in the above-mentioned embodiment method can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to the memory, database or other medium used in the embodiments provided in the present application can include at least one of non-volatile memory and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetic random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM). The database involved in each embodiment provided in this application may include at least one of a relational database and a non-relational database. Non-relational databases may include distributed databases based on blockchains, etc., but are not limited to this. The processor involved in each embodiment provided in this application may be a general-purpose processor, a central processing unit, a graphics processor, a digital signal processor, a programmable logic device, a data processing logic device based on quantum computing, an artificial intelligence (AI) processor, etc., but are not limited to this.
[0133] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this application.
[0134] The above-described embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the present application. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the attached claims.
Claims
1. A resource scheduling method, characterized in that: The resource scheduling method is applied to an optical line terminal, and the method comprises: Acquire a time slot allocation request message sent by an external system; the time slot allocation request message carries a transmission container identifier and time slot fragmentation information; Determine the time slot resources to be allocated; the time slot resources to be allocated are N slice resources and N reserved protection resources obtained by dividing the time slot resources of the passive optical network port within the scheduling period; the optical network unit corresponding to the transmission container identifier is connected to the passive optical network port; Determine, from the time slot resources to be allocated, a target time slot resource corresponding to the time slot fragmentation information; Generate a bandwidth time slot allocation diagram according to the target time slot resources; The bandwidth time slot allocation map is sent to the optical network unit corresponding to the transmission container identifier.
2. The method according to claim 1, characterized in that Before acquiring the time slot allocation request message sent by the external system, the method further includes: Acquire a time slot allocation application message sent by an external system; the time slot allocation application message carries a port identifier and a device identifier; Performing authority authentication based on the device identification; After the authority authentication is passed, the resource prompt information of the passive optical network port corresponding to the port identifier is obtained; the resource prompt information includes the length of the slice resource in the time slot resource to be allocated, the length of the reserved protection resource and the total number of slice resources; The resource prompt information is fed back to the external system to instruct the external system to perform resource scheduling based on the resource prompt information.
3. The method according to claim 2, characterized in that The resource prompt information also includes the scheduling period corresponding to the time slot resource to be allocated; the time slot allocation request message also carries a service period, which is an integer multiple of the scheduling period; The method further comprises: The effective period of the bandwidth time slot allocation diagram is controlled to be consistent with the service period.
4. The method according to claim 1, characterized in that The target time slot resource is a single slice resource, or the target time slot resource includes a plurality of adjacent slice resources and reserved protection resources between adjacent slice resources; In a case where the target time slot resources include a plurality of adjacent slice resources and reserved protection resources between the adjacent slice resources, generating a bandwidth time slot allocation graph according to the target time slot resources includes: Merge multiple adjacent slice resources and reserved protection resources between adjacent slice resources; A bandwidth time slot allocation diagram is generated based on the merged time slot resources.
5. The method according to claim 1, characterized in that Before generating a bandwidth time slot allocation diagram according to the target time slot resources, the method further includes: Detecting whether the target time slot resource is an allocated resource, and performing authority authentication based on the transmission container identifier; If the target time slot resource is an unallocated resource and the authority authentication is passed, the step of generating a bandwidth time slot allocation map according to the target time slot resource is performed.
6. The method according to any one of claims 1 to 5, characterized in that: After sending the bandwidth time slot allocation map to the optical network unit corresponding to the transmission container identifier, the method further includes: Acquire a set allocation strategy; the set slicing strategy is a static bandwidth allocation strategy or a dynamic bandwidth slicing strategy; Based on the set allocation strategy, surplus time slot resources are allocated to the transmission containers of each optical network unit connected to the passive optical network port; wherein the surplus time slot resources are unallocated resources in the time slot resources to be allocated.
7. A resource scheduling method, characterized in that: The resource scheduling method is applied to an external system, the external system is communicatively connected with an optical line terminal, and the method comprises: A time slot allocation application message is sent to the optical line terminal to instruct the optical line terminal to feedback resource prompt information; the time slot allocation application message carries a port identifier and a device identifier; wherein the optical line terminal performs authority authentication based on the device identifier, and after the authority authentication is passed, obtains resource prompt information of the passive optical network port corresponding to the port identifier; the resource prompt information includes the length of the slice resource in the time slot resource to be allocated, the length of the reserved protection resource, and the total number of slice resources; the time slot resource to be allocated is the N slice resources and N reserved protection resources obtained by the optical line terminal dividing the time slot resources of the passive optical network port in the scheduling period; Based on the resource prompt information, a time slot allocation request message is sent to the optical line terminal; the time slot allocation request message carries a transmission container identifier and time slot slicing information; wherein the time slot allocation request message is used to instruct the optical line terminal to determine the time slot resources to be allocated; from the time slot resources to be allocated, a target time slot resource corresponding to the time slot slicing information is determined; according to the target time slot resource, a bandwidth time slot allocation map is generated; and the bandwidth time slot allocation map is sent to the optical network unit corresponding to the transmission container identifier.
8. A communication device, comprising a memory and a processor, wherein the memory stores a computer program, characterized in that: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 7 are implemented.
9. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 7 are implemented.
10. A passive optical network system, characterized in that: The passive optical network system includes an optical line terminal and an optical network unit, the optical line terminal is communicatively connected to an external system; the optical line terminal is used to execute the steps of the method as described in any one of claims 1 to 7; the external system is used to execute the steps of the method as described in claim 8.
