Method for power service based fgotn timeslot allocation
By dividing the backbone data transmission network of the power system into isochronous potential energy zones and elastic buffer zones, optimizing resource allocation, and utilizing discrete quantization models and modulo N congruent addressing algorithms, the problem of resource fragmentation caused by mixed service traffic was solved, achieving low-jitter deterministic transmission of critical services and improving network stability and adaptability.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- NORTHEAST ELECTRIC POWER DESIGN INST CO LTD OF CHINA POWER ENG CONSULTING GRP
- Filing Date
- 2026-05-25
- Publication Date
- 2026-06-19
Smart Images

Figure CN122247550A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of power communication technology, specifically to an fgOTN time slot allocation method based on power services. Background Technology
[0002] In the backbone data transmission network of power systems, to ensure the quality of service for multiple different services, fgOTN technology is typically used to construct transmission channels with deterministic bandwidth guarantees. This technology virtualizes network resources, dividing the total bandwidth into several independent logical resource units to carry constant-rate services such as relay protection and bursty services such as video surveillance. To improve network resource utilization, network controllers typically support dynamic bandwidth adjustment protocols, allowing for flexible scheduling of the amount of resources used by each service flow based on the real-time load characteristics of service traffic.
[0003] However, when handling mixed traffic with highly dynamic characteristics, such as wind power aggregation, the drastic fluctuations in data throughput for non-critical services and frequent resource scaling can lead to highly discontinuous distribution of idle resources in the transmission network, resulting in severe resource fragmentation. Existing resource allocation algorithms mostly focus on numerical statistics of remaining capacity, lacking optimized management of resource topology distribution. When the network needs to access critical control command streams with extremely high requirements for transmission latency stability, using these discretely distributed fragmented resources for transport will lead to uneven packet transmission intervals, resulting in a surge in network jitter and severely impacting the deterministic transmission quality of services. Therefore, how to maintain the flexibility of dynamic network bandwidth scheduling while optimizing resource allocation strategies to suppress network jitter and ensure the service quality of critical data streams is a pressing challenge that needs to be addressed.
[0004] Therefore, this invention proposes an fgOTN time slot allocation method based on power services. Summary of the Invention
[0005] The purpose of this invention is to provide an fgOTN time slot allocation method based on power services, which achieves the suppression of time slot fragmentation and ensures low-jitter deterministic transmission of critical power services through physical partition control and variance-driven lossless migration mechanism.
[0006] To achieve the above objectives, the present invention provides the following technical solution: The fgOTN time slot allocation method based on power services includes: Identify the jitter sensitivity attributes of multiple service data streams on the fgOTN port; based on the jitter sensitivity attributes, divide the full time slot address table in the optical payload unit frame structure into an isochronous potential energy region carrying the first type of service data stream and an elastic buffer carrying the second type of service data stream; The idle time slot data in the optical payload unit frame structure are collected and input into the discrete quantization model. Through differential statistical calculation, the interval variance value is output. When the interval variance exceeds a preset threshold, a topology shaping strategy is triggered, locking the second type of business data flow as the data flow to be migrated. The elastic buffer searches for a continuous free logical address block that can accommodate the data flow to be migrated. A link connection adjustment instruction containing source time slot mapping fields and destination time slot mapping fields is issued, configuring the source time slot mapping field to the current physical address, configuring the destination time slot mapping field to a continuous free logical address block while keeping the number of time slots unchanged, switching the data flow to be migrated to the elastic buffer, and releasing the continuous time slot resources in the isochronous potential energy zone. In response to the connection establishment request of the first type of business data flow, calculate the optimal step size parameter N, run the modulo N congruent addressing algorithm in the continuous time slot resources, and lock the time slot resources for mapping.
[0007] Preferably, the process of identifying the jitter sensitivity attributes of multiple service data streams on the fgOTN port includes: Extract the Virtual LAN Tag Priority field from the Ethernet frame header information of the multi-channel service data stream; extract the Differential Service Code Point (DSC) field from the Internet Protocol (IP) header information of the multi-channel service data stream; if the value of the Virtual LAN Tag Priority field is equal to the highest priority value specified by the protocol, determine that the jitter sensitivity attribute of the corresponding data stream is at the first sensitivity level, and define the data stream as the first type of service data stream; if the value of the DSC field is equal to the default forwarding category value specified by the protocol, determine that the jitter sensitivity attribute of the corresponding data stream is at the second sensitivity level, and define the data stream as the second type of service data stream.
[0008] Preferably, the process of dividing the full time slot address table in the optical payload unit frame structure into an isochronous potential energy region carrying the first type of service data stream and an elastic buffer carrying the second type of service data stream based on the jitter sensitivity attribute includes: The two-dimensional time slot matrix contained in the optical payload unit frame structure is expanded into a one-dimensional linear logical address sequence according to the time domain transmission order; based on the high jitter sensitivity attribute of the first type of service data stream, the starting low address segment in the one-dimensional linear logical address sequence is selected to construct the isochronous potential energy zone, and an equally spaced discrete distribution allocation constraint is applied; the remaining high address segment in the one-dimensional linear logical address sequence is selected to construct the elastic buffer, and a continuously aggregated distribution allocation constraint is applied.
[0009] Preferably, the process of outputting the interval variance value through differential statistical operations includes: The discrete quantification model is run. The discrete quantification model is a statistical calculation logic built based on the differences in physical location of time slots and used to quantify the topological uniformity of physical resource distribution. The operation steps include: performing a first-order difference operation on the physical address index sequence of the idle time slot data to construct a time slot interval vector representing the physical distance between adjacent idle time slots; calculating the arithmetic mean of all values in the time slot interval vector; calculating the square of the difference between each value in the time slot interval vector and the arithmetic mean; and summing all the squared values and dividing by the total number of elements to obtain the interval variance value.
[0010] Preferably, the process of locking the second type of business data stream as the data stream to be migrated includes: Traverse each occupied second-type business data stream within the isochronous potential energy zone and perform a time slot dispersion contribution assessment; calculate the contribution weight of each second-type business data stream to the overall variance growth of the isochronous potential energy zone, lock the second-type business data stream with the highest contribution weight as the data stream to be migrated, and prioritize the removal of data objects that contribute the most to the regional uniformity deviation.
[0011] Preferably, the step of searching for a contiguous free logical address block within the elastic buffer that can accommodate the data stream to be migrated employs a high-order address-first search strategy, specifically including: The high-order address priority search strategy is a resource scheduling logic used to compress the second type of service data flow to the tail of the physical storage space; the bandwidth configuration of the data flow to be migrated is parsed to determine the total number of time slots required; all consecutive free intervals with a capacity greater than the total number of time slots are traversed and searched in the elastic buffer; among all the consecutive free intervals found, the interval with the largest physical address index value is locked as the consecutive free logical address block, and the second type of service data flow is compressed to the physical tail of the optical payload unit frame structure.
[0012] Preferably, the process of issuing the link connection adjustment instruction containing the source timeslot mapping field and the destination timeslot mapping field includes: A link connection adjustment frame structure conforming to the lossless adjustment protocol specification is generated. The set of source physical addresses currently occupied by the data flow to be migrated is encapsulated into the source timeslot mapping field. The set of target physical addresses corresponding to the continuous idle logical address block is encapsulated into the destination timeslot mapping field. A consistency check bit is added to the link connection adjustment frame structure to check whether the number of timeslots contained in the source and destination address sets is equal. Based on the check result, the link connection adjustment frame structure is issued to trigger the network node to activate the lossless switching protocol, switch the bearer channel of the data flow to be migrated to the continuous idle logical address block, release the occupancy lock of the source physical address set, and release the continuous timeslot resources in the isochronous potential energy zone.
[0013] Preferably, the operation of the modulo-N congruent addressing algorithm specifically refers to executing equally spaced discrete mapping logic, including: The modulo-N congruent addressing algorithm is a deterministic resource locking logic built on congruent mathematics theory. Based on the bandwidth requirements of the first type of service data flow and the total available resources of the isochronous potential energy zone, the optimal step size parameter N is calculated. Using the starting physical address of the isochronous potential energy zone as a reference, the modulo-N congruent addressing operation is performed in the continuous time slot resources. The set of physical time slots with constant remainders in the locking operation result is taken as the target resource.
[0014] Preferably, the method further includes the step of constructing a logical resource defense barrier: After locking time slot resources that satisfy the modulo N congruent distribution characteristics, a resource locking mask indicating the time slot resource distribution pattern is generated; the resource locking mask is sent to the global resource allocation table of the network controller; when processing subsequent resource allocation requests for the second type of service data stream, the allocation operation attempting to occupy the discrete time slots of the first type of service data stream is intercepted based on the resource locking mask.
[0015] Compared with the prior art, the beneficial effects of the present invention are as follows: 1. This invention achieves proactive topology shaping of the physical resources of optical payload units by constructing a dual-zone isolation topology model and introducing a discrete quantification model. It accurately quantifies the fragmentation degree of the physical layer using interval variance values and triggers a topology shaping strategy when high entropy risk is detected, dynamically grouping volatile Type II services into an elastic buffer. This physical-layer forced isolation mechanism effectively shields variable-rate services from address erosion of core resources while maintaining the flexibility of dynamic scheduling of network bandwidth resources, reserving continuous, low-entropy physical time slots for critical control services.
[0016] 2. This invention achieves deterministic low-jitter transmission for critical power services by executing a modulo-N congruent addressing algorithm within the isochronous potential energy region and combining it with a logical resource defense barrier mechanism. This strategy forces the data stream to exhibit a strict periodic distribution characteristic in the physical frame structure, achieving optimal mathematical matching with the general mapping procedure filling algorithm. It minimizes the structural phase deviation on the mapping side caused by uneven physical time slot intervals from the source, effectively suppressing the demapping clock recovery jitter defect caused by random address discrepancies, and greatly ensuring the transmission quality of command streams such as relay protection.
[0017] 3. This invention achieves refined control over the physical distribution order of optical payload unit frame structures by employing a high-order address priority search strategy and adaptive dynamic threshold setting. The high-order address priority strategy compresses non-critical services to the physical tail, maximizing the continuous space at the head; while the dynamic threshold logic based on bandwidth characteristics, according to the physical law that smaller bandwidth is more sensitive to jitter, provides stricter uniformity guarantees for low-speed critical services. This control approach, which achieves transmission steady-state by optimizing spatial distribution, significantly improves the adaptability and operational stability of power backbone transmission networks to highly dynamic mixed traffic. Attached Figure Description
[0018] Figure 1 This is a flowchart of the fgOTN time slot allocation method based on power services according to the present invention; Figure 2 This is a flowchart illustrating the process of identifying service jitter sensitivity attributes according to an embodiment of the present invention. Figure 3 This is a block diagram of the discrete quantization model and integer triggering logic of an embodiment of the present invention. Detailed Implementation
[0019] To make the objectives, technical solutions, and advantages of this invention clearer, the invention will be further described in detail below with reference to the accompanying drawings and specific embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the invention and not intended to limit it. Other embodiments obtained by those skilled in the art based on the ideas in this specification without creative effort all fall within the protection scope of this invention.
[0020] Reference Figures 1 to 3 This invention provides an fgOTN time slot allocation method based on power services, and the specific technical solution is as follows.
[0021] Example 1: The fgOTN time slot allocation method based on power services, refer to Figure 1 ,include: Identify the jitter sensitivity attributes of multiple service data streams on the fgOTN port; based on the jitter sensitivity attributes, divide the full time slot address table in the optical payload unit frame structure into an isochronous potential energy region carrying the first type of service data stream and an elastic buffer carrying the second type of service data stream; The idle time slot data in the optical payload unit frame structure are collected and input into the discrete quantization model. Through differential statistical calculation, the interval variance value is output. When the interval variance exceeds a preset threshold, a topology shaping strategy is triggered, locking the second type of business data flow as the data flow to be migrated. The elastic buffer searches for a continuous free logical address block that can accommodate the data flow to be migrated. A link connection adjustment instruction containing source time slot mapping fields and destination time slot mapping fields is issued, configuring the source time slot mapping field to the current physical address, configuring the destination time slot mapping field to a continuous free logical address block while keeping the number of time slots unchanged, switching the data flow to be migrated to the elastic buffer, and releasing the continuous time slot resources in the isochronous potential energy zone. In response to the connection establishment request of the first type of business data flow, calculate the optimal step size parameter N, run the modulo N congruent addressing algorithm in the continuous time slot resources, and lock the time slot resources for mapping.
[0022] Furthermore, the process of identifying the jitter sensitivity attribute of multiple service data streams on the fgOTN port includes: extracting the Virtual LAN Tag Priority field from the Ethernet frame header information of the multiple service data streams; extracting the Differential Service Code Point field from the Internet Protocol header information of the multiple service data streams; when the value of the Virtual LAN Tag Priority field is equal to the highest priority value specified by the protocol, determining that the jitter sensitivity attribute of the corresponding data stream is at a first sensitivity level, and defining the data stream as a first type of service data stream; when the value of the Differential Service Code Point field is equal to the default forwarding category value specified by the protocol, determining that the jitter sensitivity attribute of the corresponding data stream is at a second sensitivity level, and defining the data stream as a second type of service data stream.
[0023] Specifically, the Virtual LAN Tag Priority field of the Ethernet frame header information in the multi-channel service data stream is extracted; refer to Figure 2 The system performs field extraction operations on Ethernet packets received at the fgOTN port on the power backbone network access side. For each frame of input Ethernet data, it locates the Virtual LAN Tag (VLAN) label area conforming to the IEEE 802.1Q standard, and extracts the binary bit stream fixed at bits 1 to 3 within this area to obtain the VLAN tag priority field. This field is defined as a 3-bit binary sequence, which physically represents the service priority identifier of the data link layer, and its value range is mapped to integers 0 to 7.
[0024] Extract the Differential Service Code Point (DSC) field from the Internet Protocol (IP) header information of the multi-channel service data stream; perform deep parsing of the network layer header of the input packet. Locate the Type of Service (Type of Service) field in the IP header, and extract the six consecutive binary bits starting from the most significant bit of this field to obtain the DSC field. The dimension of this field is defined as a 6-bit binary sequence, which physically represents the quality level of the differentiated service at the network layer, and its value range is mapped to integers from 0 to 63.
[0025] If the value of the VLAN tag priority field equals the highest priority value specified in the protocol, the jitter sensitivity attribute of the corresponding data stream is determined to be at the first sensitivity level, and the data stream is defined as the first type of service data stream. For the relay protection trip command stream in the wind power aggregation scenario, a value consistency judgment is performed. The extracted VLAN tag priority field value is subtracted from the preset highest priority value. If the difference is 0, the judgment result is true. The preset highest priority value is 7, which is a hard standard determined according to the power system production control area communication protocol. In this state, an attribute marking operation is performed, assigning a scalar value of 1.0 to the jitter sensitivity coefficient of the data stream, and classifying it as the first type of service data stream.
[0026] If the value of the Differential Service Code Point field equals the default forwarding category value specified in the protocol, the jitter sensitivity attribute of the corresponding data stream is determined to be at the second sensitivity level, and the data stream is defined as the second type of service data stream. For environmental monitoring video streams within the plant, a numerical consistency check is performed. The extracted value of the Differential Service Code Point field is subtracted from the preset default forwarding category value; if the difference is 0, the result is true. The default forwarding category value is preset to 0, which is a standard limit determined based on the best-effort forwarding mode in the general Internet Protocol. In this state, an attribute marking operation is performed, assigning a scalar value of 0.0 to the jitter sensitivity coefficient of the data stream, and classifying it as the second type of service data stream.
[0027] Throughout the attribute recognition process, data normalization is performed to ensure consistency of units. A sensitivity feature tensor with two rows and one column is constructed, where the first row carries the normalized mapping value of the virtual LAN tag priority, and the second row carries the normalized mapping value of the differential service code point. For each field, the current value is scaled by dividing it by the maximum possible value of that field, ensuring that all input data falls within a closed interval of 0 to 1. The boundary between the first and second sensitivity levels is finally determined by calculating the Euclidean norm of the feature tensor.
[0028] This step eliminates the heterogeneity of data formats for different power services by accurately stripping and quantifying fields in the header of cross-protocol layer messages, and achieves objective extraction of service jitter characteristics, providing deterministic classification input for the logical partitioning of the subsequent optical payload unit frame structure.
[0029] Furthermore, the process of dividing the full time slot address table in the optical payload unit frame structure into an isochronous potential energy region carrying the first type of service data stream and an elastic buffer carrying the second type of service data stream based on the jitter sensitivity attribute includes: expanding the two-dimensional time slot matrix contained in the optical payload unit frame structure into a one-dimensional linear logical address sequence according to the time domain transmission order; selecting the starting low-order address segment in the one-dimensional linear logical address sequence to construct the isochronous potential energy region based on the high jitter sensitivity attribute of the first type of service data stream, and applying an equally spaced discrete distribution allocation constraint; selecting the remaining high-order address segment in the one-dimensional linear logical address sequence to construct the elastic buffer, and applying a continuously aggregated distribution allocation constraint.
[0030] Specifically, the two-dimensional time slot matrix contained in the optical payload unit frame structure is expanded into a one-dimensional linear logical address sequence according to the time-domain transmission order; a resource logical reorganization operation is performed on the fgOTN optical payload unit. In the transmission node of the wind power aggregation station, the preset fgOTN frame structure is defined as a two-dimensional mapping matrix containing 20 rows and 480 columns. Each element of this matrix represents a time slot unit of the smallest granularity, with a total dimension of 9,600 units. By executing a row-first traversal algorithm, each time slot unit at the R-th row and C-th column in the two-dimensional matrix is mapped to a one-dimensional linear sequence of length 9,600 according to the transmission order on the time axis. Each index position of the one-dimensional linear logical address sequence represents the physical occupancy order of the time slot in the time domain, and the index value range is defined as from 0 to 9599.
[0031] Based on the high jitter sensitivity attribute of the first type of business data stream, the starting low address segment in the one-dimensional linear logical address sequence is selected to construct the isochronous potential energy region, and an equally spaced discrete distribution allocation constraint is applied.
[0032] The isochronous potential energy zone refers to a logical resource range within the fgOTN frame structure, reserved for production control services with the highest sensitivity level and possessing extremely low jitter carrying characteristics, through physical location fixing and mapping beat synchronization. A slicing operation is performed on the one-dimensional linear logical address sequence, extracting the lower-order interval (accounting for 40% of the total resources) with index values from 0 to 3839 as the address set of the isochronous potential energy zone. A deterministic discrete distribution constraint is applied to this region; specifically, when performing a resource locking action, the difference between adjacent time slot indices must be equal to the step size parameter N, calculated by dividing the total number of indices in the isochronous potential energy zone (3840) by the number of time slots requested by the service flow, thereby forcing service pulses to be transmitted at equal time intervals at the physical layer.
[0033] The remaining high-order address segments in the one-dimensional linear logical address sequence are selected to construct the elastic buffer, and a continuous aggregation distribution allocation constraint is applied.
[0034] The elastic buffer refers to a logical resource range within the fgOTN frame structure, provided for management information services with a second level of sensitivity, characterized by high resource filling efficiency through smooth logical address migration and lossless bandwidth adjustment. A truncation operation is performed on the one-dimensional linear logical address sequence, selecting the remaining high-order intervals from index values 3840 to 9599 as the address set of the elastic buffer. A compact distribution constraint is applied to this region; specifically, when performing resource mapping, the maximum index value of the currently occupied time slot is calculated, and the starting index value of the new service is set to this maximum index value plus 1, ensuring that the service data stream is arranged continuously in physical space, maximizing the length of the remaining continuous free space.
[0035] During the construction process, address values are normalized and aligned. The physical index values of both the isochronous potential energy region and the elastic buffer are divided by the maximum index value of 9599 to obtain standardized address scalars within the closed interval of 0 to 1, ensuring dimensional consistency when the subsequent discrete quantization model processes data at the boundary between the two regions. The preset partition ratio of 4:6 is based on the historical peak traffic load of the wind farm and the disaster recovery redundancy under the worst-case scenario of relay protection services. It is calculated iteratively on the validation set and aims to balance deterministic transmission quality with network resource utilization.
[0036] This step constructs a physical-level business isolation barrier by transforming the dimensions of the fgOTN timeslot matrix and dividing the space with differentiated constraints. It solves the problem of non-critical business fluctuations interfering with the mapping time of critical businesses, and lays the data topology foundation for subsequent microsecond-level low-jitter deterministic transmission.
[0037] Furthermore, the process of outputting the interval variance value through differential statistical operation includes: running the discrete metric model, which is a statistical calculation logic built based on the differences in physical location of time slots and used to quantify the topological uniformity of physical resource distribution. The operation steps include: performing a first-order difference operation on the physical address index sequence of the idle time slot data to construct a time slot interval vector representing the physical distance between adjacent idle time slots; calculating the arithmetic mean of all values in the time slot interval vector; calculating the square of the difference between each value in the time slot interval vector and the arithmetic mean; and summing all the squared values and dividing by the total number of elements to obtain the interval variance value.
[0038] Specifically, the discrete quantification model is run. This discrete quantification model is a statistical calculation logic built based on the differences in physical location across time slots, used to quantify the topological uniformity of physical resource distribution; refer to Figure 3The system performs real-time assessment of the resource health status within the isochronous potential energy zone. The discrete quantification model refers to a statistical analysis logic based on physical address distribution uniformity feature extraction, used to assess the fragmentation degree of the fgOTN frame structure address space. During the model's operation, the input data consists of the physical address indices of all time slots marked as "idle" within the current isochronous potential energy zone. These are defined as a one-dimensional physical address vector containing M elements, where M represents the total number of currently idle time slots. To ensure dimensional consistency, all input physical address indices have undergone normalization preprocessing. Specifically, each original index value is divided by the total length of the isochronous potential energy zone, 3840, to ensure it falls within a closed interval of 0 to 1.
[0039] A first-order difference operation is performed on the physical address index sequence of the idle time slot data to construct a time slot interval vector representing the physical distance between adjacent idle time slots; an extraction operation on address distribution features is then performed. By accessing the overhead processing logic interface of the fgOTN framing module, the time slot occupancy status bitmap in the multi-frame structure assignment overhead is read and parsed into an integer physical address index array; using this array as an input one-dimensional vector, starting from the second element, the current index value is subtracted from the index value of its previous adjacent element to obtain a difference representing the physical span of the time slot. This subtraction operation is performed on the entire input vector to generate a new feature vector, namely the time slot interval vector. This vector is defined as a one-dimensional interval vector containing M-1 elements, where each element represents the jump span between two adjacent idle slots in the physical space, reflecting the temporal distribution rhythm of physical resources.
[0040] The arithmetic mean of all values in the time slot interval vector is calculated. The square of the difference between each value in the time slot interval vector and the arithmetic mean is then calculated. All squared values are summed and divided by the total number of elements to obtain the interval variance value. A quantitative evaluation of topological uniformity is then performed. The specific statistical calculation logic is as follows: All element values in the time slot interval vector are summed, and the sum is divided by the actual number of elements in the time slot interval vector to obtain the arithmetic mean. Then, the arithmetic mean is subtracted from each element value in the time slot interval vector to obtain the corresponding deviation value. Each deviation value is multiplied by itself (squared) to eliminate directional interference. All squared deviation values are summed to obtain the total deviation square sum. Finally, the total deviation square sum is divided by the actual number of elements in the time slot interval vector to output a non-negative scalar value, i.e., the interval variance value. The closer the interval variance value is to 0, the closer the distribution of idle time slots within the isochronous potential region is to the ideal equidistant state.
[0041] During the calculation process, all intermediate variables remain in a normalized dimensionless state. The threshold for determining the interval variance is preset to 0.8. This value is the maximum address offset variance limit that the fgOTN general mapping program can maintain stable mapping cycle and prevent buffer overflow when carrying power relay protection services. It is a statistical determination point obtained by conducting three thousand stress tests on a wind power business dynamic scaling simulation platform.
[0042] This step transforms the abstract physical distribution topology of resources into a precisely quantifiable mathematical indicator, enabling real-time perception of the fragmentation level of fgOTN time slots and providing a statistically deterministic basis for subsequent topology reshaping strategies.
[0043] Furthermore, the process of locking the second type of business data stream as the data stream to be migrated includes: traversing each occupied second type of business data stream within the isochronous potential energy zone and performing a time slot dispersion contribution assessment; calculating the contribution weight of each second type of business data stream to the overall variance growth of the isochronous potential energy zone, locking the second type of business data stream with the highest contribution weight value as the data stream to be migrated, and prioritizing the removal of data objects that contribute the most to the regional uniformity deviation.
[0044] In a preferred implementation, during the output of the interval variance value, a time-series difference operation is performed to obtain the unit-time change rate value of the interval variance value. The weighted sum of the interval variance value and the unit-time change rate value is defined as the topology degradation index. When the topology degradation index exceeds the preset threshold, the topology shaping strategy is immediately triggered to perform forward-looking data migration before the physical resource distribution reaches the maximum disorder threshold.
[0045] Specifically, time-series difference operations are performed to obtain the unit-time rate of change of the interval variance value; a quantitative sensing operation is performed to assess the evolution trend of resource fragmentation. The discreteness acquisition period is set to 10 milliseconds, and the interval variance scalar is read in real time within two consecutive acquisition periods. The interval variance value at the current time t is obtained as 0.6, and the interval variance value at the previous time t-1 is obtained as 0.4. A subtraction operation is performed, subtracting the previous time variance value from the current time variance value of 0.6, resulting in a variance increment of 0.2. A division operation is performed, dividing the variance increment by the time span of 10 milliseconds, outputting a unit-time rate of change value of 20 per second. The physical meaning of this value is to characterize the acceleration of resource topology deterioration within the isochronous potential energy region.
[0046] The weighted sum of the interval variance value and the unit time change rate value is defined as the topology degradation index; a comprehensive assessment of resource health risks is then performed. The topology degradation index is a predictive scoring scalar that comprehensively considers the current degree of fragmentation and future evolution risks. Preset variance weight coefficients and change rate weight coefficients are empirical values obtained based on offline principal component analysis of historical traffic data from the power communication network. The variance weight coefficient is normalized to 1.0, and the change rate weight coefficient is set to 0.01 according to the time window scale. A multiply-add operation is performed to calculate the sum of the variance weight coefficient multiplied by the current variance value of 0.6 and the change rate weight coefficient multiplied by the change rate value of 20, ultimately outputting the topology degradation index as 0.8. During the calculation process, linear scaling of the weight coefficients ensures that two physical quantities with different dimensions are mapped to the same standardized evaluation system, thereby quantifying the deep threat posed by drastic business fluctuations to the physical topology.
[0047] When the topology degradation index exceeds the preset threshold, the topology shaping strategy is immediately triggered to perform forward-looking data migration before the physical resource distribution reaches the maximum disorder threshold. A forward-looking activation operation for the topology shaping action is performed. The calculated topology degradation index value of 0.8 is compared with the preset threshold of 0.8. If the comparison result is true, it is determined that the current resource distribution is in an uncontrollable degradation trend, and the subsequent deep scan and business migration process is then initiated.
[0048] This solution incorporates time-dimensional trend analysis to prevent the fragmentation of time slots, effectively preventing the risk of critical business operations being disrupted due to sudden disruptions in resource topology during peak power business periods.
[0049] Specifically, the process iterates through each occupied second-type business data stream within the isochronous potential energy zone, performing a slot dispersion contribution assessment. Once the interval variance value of the isochronous potential energy zone exceeds a preset threshold of 0.8, a deep scan operation of the heterogeneous business occupancy status within that zone is initiated. For all non-critical production businesses currently located within the index range of 0 to 3839, such as wind farm environmental monitoring streams and office automation data streams, a polling read is performed. The slot dispersion contribution assessment refers to a simulation calculation logic that simulates the removal of a specific set of slots and quantifies the topological regression of resource distribution. In this assessment process, the input data includes the current full set of idle slot physical indexes and the subset of slot indexes occupied by the target business stream; the output data is the contribution weight scalar corresponding to that business stream.
[0050] The contribution weight of each second-type service data flow to the overall variance growth of the isochronous potential energy zone is calculated, and the differential variance calculation logic is executed. First, the overall interval variance value of the current region output in the previous steps is recorded as the baseline variance scalar. Then, for the selected target second-type service data flow, the set of physical indices it occupies is extracted, all index positions in the set are virtually released, and they are merged and sorted with the original idle time slot physical index sequence to generate a simulated idle address sequence. The discrete quantification model is called again to calculate the first-order difference of the simulated idle address sequence and its corresponding variance, which is recorded as the corrected variance scalar. The baseline variance scalar is subtracted from the corrected variance scalar, and the result of the subtraction operation is the contribution weight corresponding to the service flow. This weight represents the quantitative influence of a specific service flow on the degree of topological disorder in the current time slot; the larger the value, the stronger its destructive effect on uniformity.
[0051] The second type of business data flow with the highest contribution weight is locked as the data flow to be migrated, and the data objects that contribute the most to the regional uniformity deviation are prioritized for removal. A descending sort operation is performed on the contribution weight vector to construct a key-value pair list containing business flow IDs and their corresponding weight values. The largest weight value is retrieved from the list, and its corresponding unique business flow identifier is mapped to a label to be processed. For example, if the weight of the environmental monitoring flow is 0.5 and the weight of the office automation data flow is 0.1, then the environmental monitoring flow is locked as the data flow to be migrated. This strategy of prioritizing the highest weight business flow is based on the optimization criterion of achieving maximum equilibrium benefit with minimum migration cost, ensuring that during subsequent link connection adjustment operations, the variance value of the isochronous potential zone can be reduced to a healthy range below 0.8 with the fewest number of business remapping operations.
[0052] During the calculation process, to ensure consistency of dimensions, all variance scalars involved are normalized dimensionless values. This contribution evaluation logic achieves accurate location of interference sources by comparing the dispersion difference of regional topology when the service "exists" and "does not exist," avoiding indiscriminate full migration of all service flows and improving the flexibility of the method.
[0053] This step, by quantifying and ranking the "negative contributions" of specific business flows at the spatial layout level, enables the precise elimination of factors that interfere with the uniformity of mapping of key businesses, providing decision-making logic support for the rapid restoration of a deterministic carrying environment in the isochronous potential energy zone.
[0054] The preset threshold is a variable determined based on a bandwidth and jitter tolerance mapping model. The determination logic includes: parsing the requested bandwidth value of the first type of service data stream; establishing a positive correlation mapping relationship between the requested bandwidth value and the maximum allowable time slot interval variance based on the differences in jitter tolerance at different bandwidth levels according to the characteristics of the power service application layer; deriving the variance limit value corresponding to the current requested bandwidth value through the positive correlation mapping relationship, and setting it as the preset threshold; wherein, the smaller the requested bandwidth value, the lower the corresponding preset threshold is set.
[0055] Specifically, the requested bandwidth value of the first type of service data stream is parsed; a deep feature parsing operation is performed on the access-side service connection request. In the fgOTN access scenario of the wind power aggregation station, when a new relay protection sampling value service access request is received, the declared service rate parameter is extracted from the connection request message. For example, the parsed requested bandwidth value of the relay protection sampling value service is 10Mbps. A quantization unit conversion is performed to convert the Mbps value into the corresponding time slot occupancy value within the fgOTN frame structure. If a single fgOTN time slot represents 10Mbps, the time slot occupancy value of this service is recorded as 1.
[0056] Based on the application-layer buffering mechanisms and real-time requirements of different power service types, a positive correlation mapping relationship is established between the requested bandwidth value and the maximum allowable time slot interval variance; correlation modeling operations for service jitter sensitivity are performed. The bandwidth-jitter tolerance mapping model is a computational model used to quantify the nonlinear dependency between service bandwidth scale and physical distribution deviation tolerance. In the construction of this model, based on the service characteristics of power communication systems: low-bandwidth critical services (such as relay protection signals) typically use hard real-time transmission protocols, and the receiving end lacks application-layer buffer queues; any slight physical layer transmission jitter can lead to data packet overdue loss, thus requiring extremely high uniformity of time slot distribution; while high-bandwidth services (such as high-definition video backhaul) typically have a large jitter buffer pool at the receiving end, which can tolerate a certain degree of transmission jitter caused by time slot distribution dispersion. Based on this application characteristic, a two-dimensional mapping matrix containing "bandwidth value" and "maximum allowable interval variance" is established. In this matrix, it is specified that as the bandwidth value increases, the allowable interval variance value also increases, thus forming a positive correlation mapping logic.
[0057] First, a pre-built bandwidth-variance benchmark data table is constructed. Based on the transmission stability test data of power services at different rates, typical service bandwidths are selected as anchor points and entered into the table. For example, a low-bandwidth anchor point is set to 10Mbps, and the corresponding maximum allowable interval variance is set to 0.2 to meet the stringent requirements of small-granularity services such as relay protection; a high-bandwidth anchor point is set to 1Gbps, and the corresponding maximum allowable interval variance is set to 1.2 to adapt to large-granularity services such as video. This data table stores key-value pairs corresponding to the above-mentioned typical bandwidth values and maximum allowable interval variances, and these key-value pairs are arranged in ascending order of bandwidth value, reflecting the positive correlation gradient that the larger the bandwidth, the larger the allowable variance.
[0058] Subsequently, the currently parsed requested bandwidth value is used as the input index to perform interval positioning in the benchmark data table, searching for a lower bound benchmark point not greater than the requested bandwidth value and an upper bound benchmark point not less than the requested bandwidth value. If the requested bandwidth value exactly matches a benchmark point, the corresponding variance value is directly read. If the requested bandwidth value is between two benchmark points, a weighted numerical extrapolation is performed: specifically, the difference between the current requested bandwidth value and the lower bound benchmark bandwidth value is calculated, the proportion of this difference to the bandwidth difference between the upper and lower bound benchmark points is determined, and then this proportion is applied to the variance difference values corresponding to the upper and lower bounds. The calculated increment is then added to the variance value of the lower bound benchmark point to obtain a preset threshold for smooth transition. This anchor-based linear extrapolation ensures that the output variance limit value can smoothly fit the changing characteristics of the service bandwidth. Finally, the calculated or retrieved variance limit value is parameter locked and assigned as the preset threshold of the discrete quantification model. Taking a 10Mbps relay protection sampling value service as an example, if it directly hits the low-bandwidth anchor point in the reference data table, the corresponding low threshold (such as 0.5) is directly locked, thereby establishing a strict shaping trigger boundary. During the judgment process, standardized comparison logic is executed, and the preset threshold of 0.5 is subtracted from the real-time calculated interval variance value. If the difference is greater than 0, the topology shaping strategy is triggered.
[0059] The smaller the requested bandwidth value, the lower the corresponding preset threshold setting. Deterministic strengthening constraints are applied to extremely low-rate services. For low-bandwidth, highly sensitive services such as relay protection trip command streams, the requested bandwidth value is typically below 5Mbps. According to the logic of this embodiment, since such services lack a buffering fault-tolerance mechanism, an absolutely uniform mapping distribution must be enforced at the physical layer to suppress jitter sources. Therefore, through positive correlation mapping logic, the corresponding preset threshold is lowered to 0.2. In contrast, for a 1Gbps production video stream, the preset threshold is relaxed to 1.2. This differentiated threshold setting ensures that the narrower the bandwidth of the service stream, the closer its physical spatial distribution within the isochronous potential energy region is to perfect equidistance.
[0060] Throughout the threshold determination process, all bandwidth and variance values maintained consistent dimensions. The initial parameter set of the bandwidth-jitter tolerance mapping model was preset based on the mapping buffer depth defined in the fgOTN standard protocol and the service quality level requirements of power services, aiming to ensure that power services of different granularities can achieve lossless transmission within their respective jitter tolerance boundaries.
[0061] This step, by evolving a static threshold into a dynamic adaptive boundary linked to service bandwidth, enables refined control over jitter risks of services of different scales, ensuring that critical services with small granularities can obtain the highest level of topology uniformity guarantee, and improving resource scheduling flexibility and deterministic transmission quality from the source of the algorithm.
[0062] Furthermore, the step of searching for a continuous free logical address block within the elastic buffer that can accommodate the data stream to be migrated, employing a high-order address priority search strategy, specifically includes: the high-order address priority search strategy is a resource scheduling logic used to compress the second type of service data stream towards the tail of the physical storage space; parsing the bandwidth configuration of the data stream to be migrated to determine the total number of time slots required; traversing and searching all continuous free intervals within the elastic buffer whose capacity is greater than the total number of time slots; among all the searched continuous free intervals, locking the interval with the largest physical address index value as the continuous free logical address block, and compressing the second type of service data stream towards the physical tail of the optical payload unit frame structure.
[0063] Specifically, the high-address priority search strategy is a resource scheduling logic used to compress the second type of service data flow to the tail of the physical storage space; it performs a compaction and reorganization operation on the fgOTN logical resource layout. The high-address priority search strategy refers to a resource allocation logic that, within the logical address space, forces non-production control services to be stacked at the end of the optical payload unit frame structure by prioritizing the matching of the largest physical index value. In this strategy, the high-address is defined as the region with an index value close to 9599 in a one-dimensional linear logical address sequence. Its physical significance lies in suppressing dynamically fluctuating service flows at the end of the frame structure, thereby reserving the longest possible continuous and interference-free physical spacetime for the isochronous potential energy region at the front end.
[0064] The bandwidth configuration of the data stream to be migrated is analyzed to determine the total number of time slots required; resource requirement calculation is performed on the locked service stream. Taking a wind farm environmental monitoring video stream as an example, the bandwidth granularity value occupied when the service is currently mapped to the fgOTN frame structure is obtained by reading its link layer mapping control data. For example, if the real-time bandwidth requirement of the video stream corresponds to 250 fgOTN time slot units, then the value 250 is recorded as the total number of time slots. During this process, data unit standardization conversion is performed to ensure that the number of time slots is consistent with the unit of the address index.
[0065] The system iterates through the elastic buffer, searching for all consecutive free intervals with a capacity greater than the total number of time slots. A linear scan of fragments within the elastic buffer is performed. The system locates the interval segment with index values from 3840 to 9599 in the one-dimensional linear logical address sequence. By performing idle state bit connectivity analysis, all consecutive segments consisting of time slots marked "free" are identified. For each consecutive segment, the interval length is calculated by subtracting the starting physical index value from the ending physical index value of the segment, and then adding 1 to the difference to obtain the actual capacity of the interval. The obtained capacity value is compared with the total number of time slots (250), and the set of all intervals with a difference greater than or equal to 0 is recorded.
[0066] Among all the consecutive free intervals found, the interval with the largest physical address index value is locked as the consecutive free logical address block, and the second type of service data flow is compressed to the physical tail of the optical payload unit frame structure. A selection operation is performed on the candidate intervals. In the set of intervals with a difference greater than or equal to 0, the ending physical index value corresponding to each interval is extracted. By executing a maximum value retrieval algorithm, the interval with the largest ending physical index value is selected. For example, if there are interval A (index segment 4000 to 4500) and interval B (index segment 9000 to 9500), since the ending index of interval B, 9500, is greater than the ending index of interval A, interval B is locked as the target bearer address. Subsequently, starting from the ending index 9500 of interval B, 250 units are traced back to determine its starting index as 9251, thereby remapping the video surveillance data flow to be migrated to the physical tail region [9251, 9500].
[0067] In a preferred implementation, when searching for consecutive free logical address blocks within the elastic buffer, the historical bandwidth scaling spectrum of the data stream to be migrated is parsed, the bandwidth variation correlation coefficient between the data stream to be migrated and the adjacent service streams of the target address block is calculated, and the address block with the highest bandwidth variation correlation coefficient is locked as the consecutive free logical address block, so as to minimize the probability of subsequent fragmentation through the same-direction alignment of service scaling features.
[0068] Specifically, the network controller's management plane records service traffic snapshots using low-frequency sampling and analyzes the historical bandwidth scaling spectrum of the data stream to be migrated; it then performs frequency domain profiling to extract the dynamic characteristics of the service. The historical bandwidth scaling spectrum refers to a feature tensor characterizing the changing patterns of service flow time slot demands. For the plant environment monitoring video stream to be migrated, its bandwidth occupancy sequence over the past 1000 fgOTN frame periods is extracted. An existing discrete Fourier transform algorithm is used to convert the time-domain bandwidth sequence into a frequency-domain energy distribution. A spectrum vector with one column and 256 rows is generated, recording the power intensity of the service at different fluctuation frequencies. By performing normalized scaling, the energy peaks are mapped to a closed interval between 0 and 1, thereby quantifying and defining the scaling affinity characteristics of the video stream.
[0069] Calculate the bandwidth variation correlation coefficient between the data stream to be migrated and the adjacent service streams of the target address block; perform a matching calculation operation on the service resonance pattern. Extract the historical bandwidth data of the occupied service streams on both sides of the candidate free block in the elastic buffer, and perform the same discrete Fourier transform and normalization processing as the data stream to be migrated to generate adjacent service spectrum vectors with the same dimension length as the spectrum vector of the data stream to be migrated; then, for each adjacent service stream, use the adjacent service spectrum vector and the spectrum vector of the data stream to be migrated as two sets of equal-length input sequences, perform Pearson correlation statistics, and output the correlation coefficient representing the synchronicity of the fluctuation trends of the two. Specifically, the calculation method is to divide the covariance of the two vectors by the product of their standard deviations, and output a correlation scalar between -1 and 1. The closer the value is to 1, the more consistent the two services are in the time rhythm and amplitude of bandwidth expansion and contraction, that is, they have a high degree of "scaling affinity".
[0070] The address block with the highest correlation coefficient to bandwidth fluctuations is locked as the contiguous idle logical address block, minimizing the probability of subsequent fragmentation through unidirectional alignment of service scaling characteristics. A clustering optimization mapping operation is performed on the physical location. Among all candidate idle blocks that meet capacity requirements and are in a high physical position, a maximum value retrieval algorithm is executed to select the address location with the highest correlation coefficient. For example, if the correlation coefficient between the video stream A to be migrated and the adjacent service stream B is 0.85, while the correlation coefficients with other regional service streams are all below 0.3, then stream A is preferentially placed in the physical block adjacent to stream B, rather than simply performing mechanical stacking at the very end of the physical location. When streams A and B simultaneously contract or expand due to service peaks, the physical space released or occupied by both remains synchronized in the time domain, thereby avoiding the generation of new discrete resource fragments within the elastic buffer.
[0071] This solution reduces the rate of fragmentation evolution of the address space within the elastic buffer by clustering and arranging business behavior patterns, thereby reducing the frequency of triggering network-wide topology reshaping.
[0072] During the search process, a normalized address span check is performed. The start and end indices of the locked address block are both divided by the total length of 9599 to obtain normalized characteristic values in the range of 0.96 to 1.0, verifying that they conform to the topological characteristics of physical tail compression. The preset search range and high-order priority logic are preset based on the power service load balancing strategy, aiming to maximize the continuous idle capacity at the boundary between the isochronous potential energy zone and the elastic buffer, preventing the creation of new resource islands after the migration of elastic services.
[0073] This step, through mandatory high-level filling logic, achieves the orderly arrangement of non-critical business at the physical level, greatly reduces resource fragmentation, and frees up sufficient low-level physical space to ensure the equidistant mapping of the first type of business.
[0074] Furthermore, the process of issuing the link connection adjustment instruction containing the source timeslot mapping field and the destination timeslot mapping field includes: generating a link connection adjustment frame structure that conforms to the lossless adjustment protocol specification; encapsulating the set of source physical addresses currently occupied by the data flow to be migrated into the source timeslot mapping field; encapsulating the set of target physical addresses corresponding to the continuous idle logical address block into the destination timeslot mapping field; adding a consistency check bit to the link connection adjustment frame structure to check whether the number of timeslots contained in the source and destination address sets is equal; issuing the link connection adjustment frame structure according to the check result, triggering the network node to activate the lossless switching protocol, switching the bearer channel of the data flow to be migrated to the continuous idle logical address block, releasing the occupancy lock of the source physical address set, and releasing the continuous timeslot resources in the isochronous potential energy zone.
[0075] Specifically, a link connection adjustment frame structure conforming to the lossless adjustment protocol specification is generated, and the set of source physical addresses currently occupied by the data stream to be migrated is encapsulated into the source timeslot mapping field; the construction operation of the fgOTN service migration control instruction is performed. An existing lossless bandwidth adjustment protocol standard interface is invoked to generate a control plane message, i.e., the link connection adjustment frame structure. In the control load area of this frame structure, a source address field space of capacity N is defined, where N is the total number of timeslots occupied by the data stream to be migrated. All fragmented physical address indices currently occupied by the wind farm monitoring video stream in the isochronous potential energy region identified in the previous steps are arranged in ascending order of value and sequentially filled into the source timeslot mapping field.
[0076] The set of target physical addresses corresponding to the continuous free logical address blocks is encapsulated into the destination timeslot mapping field; a parameter loading operation for the migration target location is performed. In the link connection adjustment frame structure, immediately following the source timeslot mapping field, a target address field space of capacity N is allocated. The set of continuous physical address indices with values ranging from 9251 to 9500, obtained by searching the high-order region of the elastic buffer, is used as the target physical address set. Data format normalization encapsulation is performed, the start and end index values in the set are expanded to generate a sequence containing N deterministic index values, and these are sequentially filled into the destination timeslot mapping field.
[0077] A consistency check bit is added to the link connection adjustment frame structure to verify whether the number of time slots contained in the source and destination address sets are strictly equal. A verification operation is performed to check the logical integrity of the migration instruction. The total number of physical address index elements contained in the source time slot mapping field is counted and recorded as the first count scalar; the total number of physical address index elements contained in the destination time slot mapping field is counted and recorded as the second count scalar. A subtraction operation is performed, subtracting the second count scalar from the first count scalar. If the absolute value of the result is equal to 0, it is determined that the service bandwidth remains strictly consistent before and after the migration. At this time, a "connect first, disconnect later" logical confirmation is performed: a data receiving channel is first established using the physical address corresponding to the destination time slot mapping field; the data sequence numbers of the old and new channels are compared; after confirming that synchronization is correct, a binary bit is flipped from value 0 to value 1 at the check bit offset of the link connection adjustment frame structure as an activation switch indicator, thereby completing the smooth takeover of services before disconnecting the physical connection of the source time slot mapping field.
[0078] During the encapsulation process, boundary checks are performed on all address index values. This ensures that the maximum index value in the source address set is not greater than the boundary value of the isochronous potential zone (3839), and simultaneously ensures that the minimum index value in the destination address set is not less than the boundary value of the elastic buffer (3840), thus eliminating the risk of illegal cross-zone occupation. This consistency verification mechanism is preset based on the reliability requirements of power communication and aims to prevent unexpected reductions in service bandwidth during migration due to software logic anomalies, thereby ensuring that the transmission frame rate of the video surveillance stream remains stable.
[0079] Based on the verification results, the link connection adjustment frame structure is issued, triggering the network node to activate the lossless switching protocol, switching the bearer channel of the data stream to be migrated to a continuous idle logical address block, and releasing the occupancy lock on the source physical address set, releasing the continuous time slot resources in the isochronous potential energy zone.
[0080] Specifically, the instruction distribution operation is performed on the underlying network elements. After confirming that the consistency check has passed and the check bit has been set, the link connection adjustment frame structure is sent to the cross-connection matrix control unit of the fgOTN device through the southbound interface of the network controller. After receiving the instruction, the device triggers the network node to activate the lossless switching protocol, that is, to start the lossless adjustment state machine conforming to the G.7044 standard.
[0081] The transport channel of the data stream to be migrated is switched to a continuous free logical address block; the hardware-level "connect first, disconnect later" switching logic is executed. According to protocol instructions, the device first activates the data reception function of the target physical address within the elastic buffer. At this time, the data stream is in a "dual transmit / receive" state at the physical layer, meaning it exists simultaneously in both the source and target physical addresses. While maintaining data transmission at the source address, frame synchronization and sequence number comparison are performed on the data stream at the target address. After confirming that the synchronization is correct, at the beginning of the next multiframe period, an atomic pointer jump operation is performed, instantly switching the data stream's reception logic to the continuous free logical address block, achieving seamless switching at the millisecond level.
[0082] The system releases the lock on the source physical address set, freeing up continuous time slot resources within the isochronous potential zone; and performs a resource status recovery and update operation. Upon receiving a successful handover confirmation message from the device, the controller immediately accesses the aforementioned global resource allocation table and locates the physical index position recorded in the source time slot mapping field (i.e., the fragmented addresses originally distributed within the isochronous potential zone). It clears the service occupancy IDs of these positions in the table and resets the corresponding status bits to the "idle" flag. Through this operation, the encroachment of the second type of service on the isochronous potential zone is logically and completely cancelled, restoring the physical time slots within this area to a continuous and clean state in terms of both physical connection and logical state, thus preparing the physical environment for the subsequent isochronous mapping of the first type of service.
[0083] This step utilizes link connection adjustment commands to trigger the underlying lossless switching protocol, coupled with a strict source-destination bandwidth consistency verification mechanism, to achieve a smooth "connect-then-disconnect" switchover during the address change of Category II services at the physical layer. This ensures that even during large-scale resource defragmentation, existing monitoring data streams can achieve transparent transmission with zero packet loss and zero damage. At the same time, through the immediate resource unlocking logic after command execution, it ensures that continuous time slots within the isochronous potential energy zone can be quickly and cleanly released back to the resource pool, providing immediate physical resource readiness guarantees for the access of Category I critical services, balancing the security and timeliness of network adjustments.
[0084] Furthermore, the operation of the modulo-N congruent addressing algorithm specifically refers to executing equally spaced discrete mapping logic, including: the modulo-N congruent addressing algorithm is a deterministic resource locking logic constructed based on congruence mathematics theory; calculating the optimal step size parameter N based on the bandwidth requirements of the first type of service data flow and the total available resources of the isochronous potential energy zone; performing modulo-N congruent addressing operation in the continuous time slot resources with the starting physical address of the isochronous potential energy zone as the reference; and locking a set of physical time slots with constant remainders in the operation results as target resources.
[0085] Specifically, the modulo-N congruent addressing algorithm is a deterministic resource locking logic built upon congruent mathematical theory; it enforces standardized physical layer distribution for high-priority power production services. The modulo-N congruent addressing algorithm refers to an addressing logic based on a congruent mathematical model, which constrains physical indices to satisfy equidistant mathematical properties in the time domain, thereby forcing the service mapping clock to exhibit periodic pulse characteristics. The physical significance of this algorithm lies in discretizing the continuous time axis into a set of sampling points with fixed phases, ensuring that the first type of service data streams, such as relay protection signals, obtain absolutely uniform physical occupancy in the fgOTN frame structure, eliminating the mapping clock offset caused by random allocation from the computational source.
[0086] Based on the bandwidth requirements of the first type of service data flow and the total available resources of the isochronous potential energy zone, the optimal step size parameter N is calculated; a quantization derivation operation of the discrete mapping step size is performed. Taking a relay protection service flow with a bandwidth requirement of 1.25Gbps as an example, it is analyzed that the number of time slots it needs to occupy in the fgOTN frame is 120. The total capacity value of the isochronous potential energy zone is extracted, which is 3840 time slots in this scenario. A division operation is performed, dividing the total available resources value of 3840 by the bandwidth requirement value of 120, and the quotient obtained is the optimal step size parameter N, whose specific value is determined to be 32. During the calculation process, all input data uses the fgOTN basic time slot unit as a unified unit to ensure that the step size parameter N represents the logical index span in physical space.
[0087] Using the starting physical address of the isochronous potential energy region as a reference, modulo-N congruent addressing is performed in the continuous time slot resources; congruent feature extraction is performed on all candidate time slots. The starting physical index value of the isochronous potential energy region is determined to be 0 as the reference. For all physical address index sequences marked as "free" within the isochronous potential energy region, each index value i is traversed. A subtraction operation is performed, subtracting the reference value 0 from the index value i to obtain the relative offset. Subsequently, a modulo operation is performed, dividing the relative offset by the step size parameter N (value 32), and the remainder of the division operation is taken. This addressing operation will generate a remainder vector of the same length as the candidate time slot sequence, with dimensions defined as one column and M rows.
[0088] A set of physical time slots with a constant remainder in the lock calculation result is selected as the target resource. A filtering and allocation operation is performed on time slots that conform to deterministic distribution characteristics. The preset constant remainder value is 0. The remainder vector is traversed, and all physical address indices corresponding to calculation results equal to 0 are filtered out. For example, in this embodiment, a set of time slots with physical indices from 0, 32, 64, 96 up to 3808 is locked, forming a one-dimensional target index vector of length 120. To make this logical vector effective at the physical layer, data format conversion and hardware configuration operations are required: the one-dimensional target index vector is converted into a time slot configuration bitmap or time slot allocation table recognizable by the optical payload unit framing chip. In this configuration table, each index position recorded in the vector is marked as the exclusive state of the specified service, and the automatic time slot filling function of the framing chip for that channel is disabled; subsequently, this configuration table is written into the underlying time slot configuration register of the device through the control interface. By sending the hardware configuration parameters corresponding to the index vector to the mapping control logic, the relay protection service flow is forced to occupy the aforementioned equally spaced physical locations at the hardware circuit level. Simultaneously, the controller calculates the corresponding theoretical rate parameters based on the number of locked time slots and inputs them as feedforward values into the general mapping program, ensuring that the mapping output rate is strictly synchronized with the locked physical time slot capacity, preventing buffer overflow caused by forced fixed address allocation. The constant remainder value of 0 is preset based on the start address alignment constraint, ensuring that the service flow starts periodically from the zero-phase point of the frame structure. Specifically, the start address alignment constraint means that, at the hardware mapping level, the first time slot of the periodic time slot sequence must be physically adjacent to the frame positioning signal of the optical payload unit. Setting the constant remainder value to 0 means that the mapping start point of the first type of service data flow is strictly anchored at the physical header of each frame optical payload unit (i.e., the position with physical index 0). This constraint eliminates the initial phase deviation between the service clock and the transmission frame clock. If the remainder is allowed to be non-zero (e.g., starting from physical index 5), although the equal spacing condition is met, the receiving circuit needs to additionally calculate and compensate for the fixed phase difference when restoring the clock at the demapping end. This increases the overhead of the FPGA logic gates and introduces potential computational jitter. Therefore, by forcing the remainder to zero through this constraint, the clock cycle of the service flow and the physical heartbeat of the OTN frame are absolutely synchronized at the start moment, thus laying the physical foundation for subsequent microsecond-level low-jitter transmission.
[0089] This step, by introducing congruential mathematical theory into the fgOTN time slot allocation process, achieves deterministic phase locking of physical resources, ensuring that critical services can maintain a constant clock speed during high-speed mapping, thereby suppressing the jitter of the recovered clock after demapping within the microsecond deviation range and ensuring the synchronous transmission accuracy of production control signals.
[0090] In a preferred implementation, when responding to parallel connection establishment requests from multiple first-type service data streams, the remainder distribution histogram of the currently allocated time slots is obtained. Based on the remainder distribution histogram, the remainder value with the lowest counting frequency is locked as the phase offset parameter S. The addressing formula of the modulo-N congruent addressing algorithm is configured such that the difference between the physical address index and the phase offset parameter S is modulo the optimal step size parameter N and the remainder is zero, so as to realize the physical phase interleaving distribution of multiple first-type service data streams in the time domain.
[0091] Specifically, the remainder distribution histogram of the currently allocated time slots is obtained; the extraction operation of micro-resource occupancy characteristics within the equivalent potential energy region is performed. The remainder distribution histogram is a statistical vector of capacity N, used to record the frequency of occupied time slots corresponding to each remainder phase under modulo-N congruent addressing logic. For the currently accessed three-way merging unit sampled data stream, the step size parameter N is calculated to be 32. All occupied physical indices within the equivalent potential energy region are traversed, and a mathematical operation of dividing by 32 and taking the remainder is performed on each index. A phase counting vector with an index range of 0 to 31 is constructed. If the positions with physical indices of 0, 32, and 64 are occupied, the count at index 0 in the vector is incremented by 1. Through normalization processing, all count values are divided by the total number of occupied time slots to obtain the phase distribution probability scalar.
[0092] Based on the remainder distribution histogram, the remainder value with the lowest counting frequency is selected as the phase offset parameter S; a preferred avoidance operation for the physically mapped phase is performed. In the generated phase counting vector, a minimum value retrieval logic is executed to locate the vector index with the smallest statistical value. For example, if the count values of remainders 0 to 7 are all 10, while the count value of remainder 8 is 0, then remainder 8 is determined to be the phase point with the lowest current occupancy density. An assignment operation is performed, locking the value 8 as the phase offset parameter S. The physical meaning of this parameter is to indicate a starting offset position that does not produce pulse overlap in the time domain, ensuring that the starting transmission times of multiple production control service flows are staggered within the optical frame.
[0093] The addressing formula of the modulo-N congruent addressing algorithm is configured such that the difference between the physical address index and the phase offset parameter S is modulo the optimal step size parameter N, with a remainder of zero. This achieves a physical phase interleaving distribution of multiple Type I service data streams in the time domain. Dynamic correction operations are performed on the deterministic resource locking logic. For a newly accessed sampled signal stream, its intended physical address index is defined as the independent variable i. A subtraction operation is performed, subtracting the phase offset parameter S (value 8) from the index value i to obtain the relative index after phase shift. Then, a modulo operation is performed, dividing the relative index by the step size parameter N (value 32), and determining whether the remainder is always equal to 0. All physical indices satisfying this congruence equation are filtered, i.e., the locked index sequences are positions 8, 40, 72, 104, etc. Through this formula, the service data streams are forced to exhibit an equidistant arrangement at the physical layer, offset from the zero phase point by 8 units. If it is impossible to lock a sufficient number of time slot resources that satisfy the congruent characteristics within the isochronous potential energy region after traversing all possible phase offset parameters S, then the first type of service data stream will be temporarily downgraded and mapped to the high-order idle interval of the elastic buffer. After the isochronous potential energy region releases idle resources that satisfy the modulo N distribution, the topology shaping strategy will be triggered to migrate it back to ensure the continuity of service access.
[0094] This scheme eliminates pulse overlap of multiple deterministic service flows within the optical payload unit frame by extracting features from the remainder space and dynamically avoiding them, smoothing out micro-instantaneous loads and ensuring microsecond-level clock stability during parallel transmission of multiple power production services.
[0095] Furthermore, the method also includes the step of constructing a logical resource defense barrier: after locking time slot resources that satisfy the modulo N congruent distribution characteristics, a resource locking mask indicating the time slot resource distribution pattern is generated; the resource locking mask is sent to the global resource allocation table of the network controller, and when processing subsequent resource allocation requests for the second type of service data stream, the allocation operation attempting to occupy the discrete time slot gaps of the first type of service data stream is intercepted based on the resource locking mask.
[0096] Specifically, a resource locking mask indicating the time slot resource distribution pattern is generated; and the physical boundary fixing operation of the allocated deterministic resources is performed. The logical resource defense barrier refers to a dynamic access control mechanism based on bitmap filtering principles, used to forcibly isolate heterogeneous service mapping areas in the logical address space. The resource locking mask is a binary feature vector of the same length as the total number of time slots in an optical payload unit frame, defined as a one-dimensional linear sequence of length 9600, where each bit corresponds to a physical index in the one-dimensional linear logical address sequence. An initialization operation is performed on the mask vector, setting all bits to 0. Subsequently, the set of physical indices locked by the modulo-N congruent addressing algorithm in the previous steps (such as index positions 0, 32, 64, etc.) is extracted, and the corresponding bits in the mask vector are flipped from 0 to 1. To enhance anti-interference margin, a protection bandwidth extension logic is executed, setting the adjacent bits before and after each locked index (i.e., the positions where the index value is decreased by 1 and increased by 1) to 1, thereby constructing an exclusive resource band with physical gaps.
[0097] The resource locking mask is sent to the global resource allocation table of the network controller; a synchronous update operation is performed on the global resource status bits. The global resource allocation table is a core logical storage structure deployed in the network controller's in-memory database. To adapt to the high-concurrency read / write requirements of the fgOTN frame structure, this table is constructed using bitmap indexing technology and includes a physical index primary key, a mask control field, and a service occupancy ID field. The physical index primary key's value range is defined as 0 to 9599, strictly corresponding to each physical timeslot position in the one-dimensional linear logical address sequence after the optical payload unit frame structure is expanded. During the process of sending the resource locking mask to the network controller, the controller treats the generated 9600-bit binary bitstream as continuous status metadata. Through batch mapping instructions, each binary bit value in the bitstream is sequentially filled into the mask control field of the corresponding row in the global resource allocation table. During this filling process, to prevent misalignment of the defense boundary due to memory pointer offset, real-time quantization alignment verification logic is executed: that is, the bit index coordinates of the currently processed mask vector are extracted in real time, and a subtraction operation is performed with the physical index primary key of the target write row in the global resource allocation table. Only when the difference between the two is always equal to 0 is the alignment verification considered successful and the write operation is executed; if the difference is not 0, the write is immediately terminated and the pointer is reset. The global resource allocation table, as a logical database for maintaining the bandwidth occupancy of the entire network, realizes a "hot snapshot" record of the micro address distribution pattern within the peer potential energy zone through the above strict verification loading mechanism, thereby providing a logically deterministic criterion for the subsequent allocation and interception of the second type of service data stream.
[0098] When processing subsequent resource allocation requests for the second type of business data stream, the allocation operation attempting to occupy the discrete time slots of the first type of business data stream is intercepted based on the resource locking mask. Compliance review logic is executed for non-critical business access requests. When a resource request for the second type of business, such as a newly added office automation data stream from a wind farm, is received, the suggested sequence of physical addresses to be occupied by the request is parsed. This suggested sequence is converted into a request bitmap vector of the same dimension and a bitwise logical AND operation is performed with the resource locking mask. If the vector generated by the operation contains any bit with a value of 1, it is determined that the currently requested resource has a topological conflict with the discrete time slots of the first type of business, such as relay protection. At this time, an allocation interception action is executed to forcibly stop the request from occupying the conflicting address, and the starting mapping address of the request is relocated to the high-order region of the elastic buffer according to the aforementioned high-order address priority search strategy.
[0099] During the fence construction process, normalized monitoring of resource occupancy is performed. The rigid occupancy coefficient of the current deterministic resource is obtained by dividing the total number of bits with a value of 1 in the mask vector by the total length of 9,600, and this coefficient is maintained within a scalar range of 0 to 1. The preset interception logic and mask refresh frequency are determined based on the configuration management cycle of the power communication network, aiming to ensure that even under extremely busy stress test scenarios, the equidistant mapping topology of the first type of service will not be affected by any asymmetric traffic.
[0100] This step effectively prevents nondeterministic services from encroaching on the physical gaps of production control services by constructing an exclusive defensive barrier at the logical layer, maintains the long-term stability of time slot distribution within the isochronous potential energy zone, and ensures the deterministic transmission performance of the fgOTN frame structure under complex operating conditions from the management mechanism level.
[0101] This invention implements differentiated partitioned transport by identifying service jitter sensitivity, introduces a discrete quantization model to achieve real-time closed-loop perception of the physical resource distribution topology within the optical payload unit frame, actively eliminates address fragmentation in the isochronous potential energy region using topology shaping strategies and lossless migration instructions, and forces uniformly spaced mapping of the first type of service at the physical layer using a modulo-N congruent addressing algorithm. This fundamentally overcomes the jitter defect in mapping clock recovery caused by disordered time slot distribution. While ensuring deterministic transmission quality and extremely low clock deviation for critical power services, it significantly improves the topology regularity and elastic scheduling efficiency of physical resources in dynamic mixed traffic scenarios.
[0102] Example 2: This embodiment is set at an fgOTN backbone transmission node of an ultra-high voltage transmission line. The data streams processed are the sampled data streams from the connected 500kV merging unit and the ultra-high-definition video conferencing streams from the dispatch center. This embodiment aims to ensure microsecond-level deterministic transmission of sampled data services under complex traffic conditions through dynamic time-slot reshaping.
[0103] Specifically, the jitter sensitivity attribute of multiple service data streams on the fgOTN port is identified; the Virtual LAN Tag Priority field of the Ethernet frame header information in the multiple service data streams is extracted; the Differential Service Code Point field of the Internet Protocol header information in the multiple service data streams is extracted; if the value of the Virtual LAN Tag Priority field is equal to the highest priority value specified by the protocol, the jitter sensitivity attribute of the corresponding data stream is determined to be of the first sensitivity level, and the data stream is defined as the first type of service data stream; if the value of the Differential Service Code Point field is equal to the default forwarding category value specified by the protocol, the jitter sensitivity attribute of the corresponding data stream is determined to be of the second sensitivity level, and the data stream is defined as the second type of service data stream.
[0104] Feature stripping was performed on 500kV sampled value service streams and video conferencing streams. For sampled value services, the first three bits of the VLAN tag in the Ethernet frame were located, and the PCP field value was extracted to be 7. For video conferencing streams, the DSCP field in the IP header was located, and its value was extracted to be 0. Sampled value services were defined as Class I service data streams, and video conferencing streams were defined as Class II service data streams. A standardized feature vector with two rows and one column was constructed. The PCP value was divided by 7, and the DSCP value was divided by 63 to perform normalization, resulting in sensitivity scalars with values of 1.0 and 0.0, respectively. This step achieved objective classification of service attributes.
[0105] Specifically, based on jitter sensitivity attributes, the full timeslot address table in the optical payload unit frame structure is divided into an isochronous potential energy region carrying the first type of service data stream and an elastic buffer carrying the second type of service data stream; the two-dimensional timeslot matrix contained in the optical payload unit frame structure is expanded into a one-dimensional linear logical address sequence according to the time-domain transmission order; based on the high jitter sensitivity attributes of the first type of service data stream, the starting low-order address segment in the one-dimensional linear logical address sequence is selected to construct the isochronous potential energy region, and an equally spaced discrete distribution allocation constraint is applied; the remaining high-order address segment in the one-dimensional linear logical address sequence is selected to construct the elastic buffer, and a continuously aggregated distribution allocation constraint is applied.
[0106] Perform a reorganization of the fgOTN matrix. Expand the 20-row, 480-column two-dimensional matrix into a one-dimensional logical address sequence of length 9600 in row-major order. Select the lower-order segments from index 0 to 4799 to construct an isochronous potential region, with a default percentage of 50%. Select the higher-order segments from index 4800 to 9599 to construct a flexible buffer. Apply a "constant spacing" constraint to the isochronous potential region and a "sequential beginning and end" constraint to the flexible buffer. Perform normalization by dividing all index values by 9599. This step establishes a differentiated resource layout framework.
[0107] Specifically, idle time slot data in the optical payload unit frame structure is collected and input into a discrete quantization model. Through differential statistical operations, the interval variance value is output. First-order differential operations are performed on the physical address index sequence of the idle time slot data to construct a time slot interval vector representing the physical distance between adjacent idle time slots. The arithmetic mean of all values in the time slot interval vector is calculated. The square of the difference between each value in the time slot interval vector and the arithmetic mean is calculated. The sum of all squared values is divided by the total number of elements to obtain the interval variance value.
[0108] Quantization of the spatial topology is performed. Physical indices of vacant positions within the isochronous potential energy region are extracted to construct a vacancy vector. First-order differencing is performed on the sequence (subtracting the preceding value from the subsequent value) to generate an interval vector. The arithmetic mean of the interval vectors is calculated. The mean is subtracted from each interval value, the result is multiplied by itself, squared, and the sum of squares is divided by the total number of intervals to output the scalar variance. This step transforms the spatial topology into a deterministic mathematical index.
[0109] Specifically, the preset threshold is a variable determined based on a bandwidth and jitter tolerance mapping model. The determination logic includes: parsing the requested bandwidth value of the first type of service data stream, establishing a positive correlation mapping relationship between the requested bandwidth value and the maximum allowable time slot interval variance based on the phase noise characteristics of the general mapping program under different time slot fill rates; deriving the variance limit value corresponding to the current requested bandwidth value through the positive correlation mapping relationship, and setting it as the preset threshold; wherein, the smaller the requested bandwidth value, the lower the corresponding preset threshold is set.
[0110] Dynamic calibration of the threshold is performed. The bandwidth requirement of the current sampled service is determined to be 30Mbps. A preset positive correlation mapping model is invoked, which describes the physical characteristic of the shrinking mapping phase noise tolerance as bandwidth decreases. Based on the relatively small bandwidth value of 30Mbps, the corresponding upper limit of variance tolerance is retrieved from the mapping matrix. Since the bandwidth proportion of this service is low, the variance limit value output by the model is 0.4. This 0.4 is locked as the preset threshold for triggering topology reshaping. This step achieves fine-grained protection for sensitive services.
[0111] Specifically, when the interval variance exceeds a preset threshold, a topology shaping strategy is triggered, locking the second type of business data stream as the data stream to be migrated. A continuous free logical address block capable of accommodating the data stream to be migrated is searched in the elastic buffer. Each occupied second type of business data stream in the isochronous potential energy zone is traversed, and a time slot dispersion contribution assessment is performed. The contribution weight of each second type of business data stream to the overall variance growth of the isochronous potential energy zone is calculated, and the second type of business data stream with the highest contribution weight is locked as the data stream to be migrated. Data objects that contribute the most to the regional uniformity deviation are prioritized for removal.
[0112] Perform interference source removal. When the real-time calculated variance value of 0.7 is greater than the preset threshold of 0.4, reshaping is initiated. The video conference streams within the region are traversed, and the variance reduction after simulated removal is calculated. If removing video stream A reduces the variance from 0.7 to 0.1, the weight is 0.6. This stream is then identified as the target for migration. A high-order priority search is performed within the index range of 4800 to 9599; parsing this stream requires 100 time slots. The contiguous block with indices 9400 to 9499 is located as the destination address. This step achieves optimal cleaning of homogeneity-destroying factors.
[0113] Specifically, a link connection adjustment instruction containing source timeslot mapping fields and destination timeslot mapping fields is issued. The source timeslot mapping field is configured to the current physical address, and the destination timeslot mapping field is configured to a continuous free logical address block while keeping the number of timeslots unchanged. The data stream to be migrated is switched to the elastic buffer and the continuous timeslot resources in the isochronous potential energy zone are released. A link connection adjustment frame structure conforming to the lossless adjustment protocol specification is generated, and a consistency check bit is added to the link connection adjustment frame structure to verify whether the number of timeslots contained in the source and destination address sets is strictly equal.
[0114] Perform lossless remapping. Construct a HAO control frame, with the source field encapsulating the current fragment address index of the video stream and the destination field encapsulating [9400, 9499]. By performing element-count comparison on the source and destination vectors, confirming that both values are 100, set the checksum from 0 to 1. Issue a command to smoothly migrate the video stream, thereby restoring the isochronous potential region to high regularity. This step ensures zero interruption of service adjustments.
[0115] Specifically, in response to the connection establishment request of the first type of business data stream, the optimal step size parameter N is calculated, and the modulo-N congruent addressing algorithm is run in the continuous time slot resources to lock the time slot resources for mapping; based on the starting physical address of the isochronous potential energy region, the modulo-N congruent addressing operation is performed in the continuous time slot resources; and a set of physical time slots with constant remainders in the operation results is locked as the target resources.
[0116] Perform equidistant mapping of sampled value services. Based on the 30Mbps requirement and the total of 4800 time slots in the isochronous potential energy zone, the step size N is calculated to be 1600. Using the starting index 0 as the base point, perform a modulo operation of the index value with 1600. Filter out physical locations with a remainder of 0, locking the index sequence to [0, 1600, 3200]. This step enforces absolutely uniform transmission of sampled value pulses.
[0117] Specifically, the method further includes the step of constructing a logical resource defense barrier: after locking time slot resources that satisfy the modulo N congruent distribution characteristics, a resource locking mask indicating the time slot resource distribution pattern is generated; the resource locking mask is sent to the global resource allocation table of the network controller, and when processing subsequent resource allocation requests for the second type of service data stream, the allocation operation attempting to occupy the discrete time slot gaps of the first type of service data stream is intercepted based on the resource locking mask.
[0118] Resource boundary hardening is performed. A 9,600-bit mask vector is generated, and indices 0, 1600, and 3200, along with their neighboring bits, are set to 1. When processing subsequent video service requests, a bitwise AND operation is performed between the bitmap to be occupied and the mask. If the result is not 0, it is considered an illegal encroachment and a forced redirection is initiated. This step constructs a hard isolation barrier in the temporal domain.
[0119] Example 3: This embodiment is set at the aggregation layer node of a distributed photovoltaic (PV) access station. It processes the remote control command streams of distributed inverters and the 4K high-definition backhaul signals from the station's maintenance robot. This embodiment focuses on ensuring the absolute priority of control commands in a resource-constrained environment through a threshold adaptive strategy for extremely low-bandwidth services.
[0120] Specifically, the jitter sensitivity attribute of multiple service data streams on the fgOTN port is identified; the Virtual LAN Tag Priority field of the Ethernet frame header information in the multiple service data streams is extracted; the Differential Service Code Point field of the Internet Protocol header information in the multiple service data streams is extracted; if the value of the Virtual LAN Tag Priority field is equal to the highest priority value specified by the protocol, the jitter sensitivity attribute of the corresponding data stream is determined to be of the first sensitivity level, and the data stream is defined as the first type of service data stream; if the value of the Differential Service Code Point field is equal to the default forwarding category value specified by the protocol, the jitter sensitivity attribute of the corresponding data stream is determined to be of the second sensitivity level, and the data stream is defined as the second type of service data stream.
[0121] The control command stream and robot video stream are classified. The PCP value of the control command frame is resolved to 7, which meets the first sensitivity level. The DSCP value of the robot video message is resolved to 0, which meets the second sensitivity level. Quantization and normalization are performed by dividing the values by the maximum range to obtain the attribute identifiers for the first and second categories of services. This step establishes the priority boundaries of the services.
[0122] Specifically, based on jitter sensitivity attributes, the full timeslot address table in the optical payload unit frame structure is divided into an isochronous potential energy region carrying the first type of service data stream and an elastic buffer carrying the second type of service data stream; the two-dimensional timeslot matrix contained in the optical payload unit frame structure is expanded into a one-dimensional linear logical address sequence according to the time-domain transmission order; based on the high jitter sensitivity attributes of the first type of service data stream, the starting low-order address segment in the one-dimensional linear logical address sequence is selected to construct the isochronous potential energy region, and an equally spaced discrete distribution allocation constraint is applied; the remaining high-order address segment in the one-dimensional linear logical address sequence is selected to construct the elastic buffer, and a continuously aggregated distribution allocation constraint is applied.
[0123] The logical space is partitioned. The fgOTN time slot matrix is expanded into a one-dimensional linear sequence of length 9600. Considering the low flow rate characteristics of photovoltaic control, segments from index 0 to 2879 are selected to construct an isochronous potential energy region (accounting for 30%). Segments from index 2880 to 9599 are selected to construct a flexible buffer. A "forced congruence" constraint is applied to the lower-order segments, and an "index-maximized fill" constraint is applied to the higher-order segments. This step establishes a highly compact resource storage structure.
[0124] Specifically, idle time slot data in the optical payload unit frame structure is collected and input into a discrete quantization model. Through differential statistical operations, the interval variance value is output. First-order differential operations are performed on the physical address index sequence of the idle time slot data to construct a time slot interval vector representing the physical distance between adjacent idle time slots. The arithmetic mean of all values in the time slot interval vector is calculated. The square of the difference between each value in the time slot interval vector and the arithmetic mean is calculated. The sum of all squared values is divided by the total number of elements to obtain the interval variance value.
[0125] Perform a topology health check. Obtain the index of available physical objects within the area and perform first-order differencing to obtain the physical distance vector. Calculate the arithmetic mean and variance of this vector. The variance reflects the degree of fragmentation in the control area caused by frequent changes in operational video traffic. This step provides the raw driving data for resource shaping.
[0126] Specifically, the preset threshold is a variable determined based on a bandwidth and jitter tolerance mapping model. The determination logic includes: parsing the requested bandwidth value of the first type of service data stream, establishing a positive correlation mapping relationship between the requested bandwidth value and the maximum allowable time slot interval variance based on the phase noise characteristics of the general mapping program under different time slot fill rates; deriving the variance limit value corresponding to the current requested bandwidth value through the positive correlation mapping relationship, and setting it as the preset threshold; wherein, the smaller the requested bandwidth value, the lower the corresponding preset threshold is set.
[0127] Perform sensitivity threshold derivation. The bandwidth requirement for parsing distributed control commands is 10Mbps, occupying only one time slot. Due to the extremely small mapping frequency, its tolerance for address deviation is very low. Using a positive correlation mapping model, an extremely stringent variance limit of 0.2 is derived based on the 10Mbps bandwidth. 0.2 is set as the current preset threshold. This step ensures extreme protection for critical services operating on extremely narrow bandwidths.
[0128] Specifically, when the interval variance exceeds a preset threshold, a topology shaping strategy is triggered, locking the second type of business data stream as the data stream to be migrated. A continuous free logical address block capable of accommodating the data stream to be migrated is searched in the elastic buffer. Each occupied second type of business data stream in the isochronous potential energy zone is traversed, and a time slot dispersion contribution assessment is performed. The contribution weight of each second type of business data stream to the overall variance growth of the isochronous potential energy zone is calculated, and the second type of business data stream with the highest contribution weight is locked as the data stream to be migrated. Data objects that contribute the most to the regional uniformity deviation are prioritized for removal.
[0129] Interference service locking is performed. When the real-time variance of the area exceeds the threshold of 0.2 (0.3), the variance contribution weight of the robot video streams within the area is evaluated. Video stream B is identified as having the highest weight and is locked as the target to be migrated. A free block of 200 consecutive time slots is retrieved from the elastic buffer, locating the target at physical indices 9000 to 9199. This step completes the precise locking of the target location.
[0130] Specifically, a link connection adjustment instruction containing source timeslot mapping fields and destination timeslot mapping fields is issued. The source timeslot mapping field is configured to the current physical address, and the destination timeslot mapping field is configured to a continuous free logical address block while keeping the number of timeslots unchanged. The data stream to be migrated is switched to the elastic buffer and the continuous timeslot resources in the isochronous potential energy zone are released. A link connection adjustment frame structure conforming to the lossless adjustment protocol specification is generated, and a consistency check bit is added to the link connection adjustment frame structure to verify whether the number of timeslots contained in the source and destination address sets is strictly equal.
[0131] Perform lossless HAO migration. Construct an adjustment frame and fill it with the old address set and the new address set [9000, 9199] of video stream B. Perform a bit count comparison to confirm that the counts at both ends are 200. After successful verification, activate remapping. This step frees up a completely continuous control channel space.
[0132] Specifically, in response to the connection establishment request of the first type of business data stream, the optimal step size parameter N is calculated, and the modulo-N congruent addressing algorithm is run in the continuous time slot resources to lock the time slot resources for mapping; based on the starting physical address of the isochronous potential energy region, the modulo-N congruent addressing operation is performed in the continuous time slot resources; and a set of physical time slots with constant remainders in the operation results is locked as the target resources.
[0133] Perform deterministic mapping of the control flow. Since the requirement is one time slot, the calculation step size N is 2880. Perform modulo 2880 operations with the starting address 0 as the reference. Lock the position with a remainder of 0, i.e., physical index 0, as the mapping resource for this instruction flow. This step eliminates the transmission jitter risk caused by random allocation.
[0134] Specifically, the method further includes the step of constructing a logical resource defense barrier: after locking time slot resources that satisfy the modulo N congruent distribution characteristics, a resource locking mask indicating the time slot resource distribution pattern is generated; the resource locking mask is sent to the global resource allocation table of the network controller, and when processing subsequent resource allocation requests for the second type of service data stream, the allocation operation attempting to occupy the discrete time slot gaps of the first type of service data stream is intercepted based on the resource locking mask.
[0135] Perform resource mask blocking. Mark physical index 0 and its protection bit as locked in the global resource table. Block any robot or office operations attempting to occupy this location. This step ensures the physical occupancy security of control operations through logical barriers.
[0136] The above description is merely a specific embodiment of the present invention, but the scope of protection of the present invention is not limited thereto. Any variations or substitutions that can be easily conceived by those skilled in the art within the technical scope disclosed in the present invention should be included within the scope of protection of the present invention. Therefore, the scope of protection of the present invention shall be determined by the scope of protection defined in the claims.
Claims
1. A method for power traffic based fgOTN time slot allocation, characterized in that, include: Identify the jitter sensitivity attributes of multiple service data streams on the fgOTN port; Based on the jitter sensitivity attribute, the full time slot address table in the optical payload unit frame structure is divided into an isochronous potential energy region carrying the first type of service data stream and an elastic buffer carrying the second type of service data stream. The idle time slot data in the optical payload unit frame structure are collected and input into the discrete quantization model. Through differential statistical calculation, the interval variance value is output. When the interval variance exceeds a preset threshold, a topology shaping strategy is triggered, locking the second type of business data flow as the data flow to be migrated. The elastic buffer searches for a continuous free logical address block that can accommodate the data flow to be migrated. A link connection adjustment instruction containing source time slot mapping fields and destination time slot mapping fields is issued, configuring the source time slot mapping field to the current physical address, configuring the destination time slot mapping field to a continuous free logical address block while keeping the number of time slots unchanged, switching the data flow to be migrated to the elastic buffer, and releasing the continuous time slot resources in the isochronous potential energy zone. In response to the connection establishment request of the first type of business data flow, calculate the optimal step size parameter N, run the modulo N congruent addressing algorithm in the continuous time slot resources, and lock the time slot resources for mapping.
2. The power traffic based fgOTN time slot allocation method according to claim 1, wherein, The process of identifying the jitter sensitivity attributes of multiple service data streams on the fgOTN port includes: Extract the Virtual LAN Tag Priority field from the Ethernet frame header information of the multi-channel service data stream; extract the Differential Service Code Point (DSC) field from the Internet Protocol (IP) header information of the multi-channel service data stream; if the value of the Virtual LAN Tag Priority field is equal to the highest priority value specified by the protocol, determine that the jitter sensitivity attribute of the corresponding data stream is at the first sensitivity level, and define the data stream as the first type of service data stream; if the value of the DSC field is equal to the default forwarding category value specified by the protocol, determine that the jitter sensitivity attribute of the corresponding data stream is at the second sensitivity level, and define the data stream as the second type of service data stream.
3. The power traffic based fgOTN time slot allocation method of claim 1, wherein, The process of dividing the full time slot address table in the optical payload unit frame structure into an isochronous potential energy region carrying the first type of service data stream and an elastic buffer carrying the second type of service data stream, based on jitter sensitivity attributes, includes: The two-dimensional time slot matrix contained in the optical payload unit frame structure is expanded into a one-dimensional linear logical address sequence according to the time domain transmission order; based on the high jitter sensitivity attribute of the first type of service data stream, the starting low address segment in the one-dimensional linear logical address sequence is selected to construct the isochronous potential energy zone, and an equally spaced discrete distribution allocation constraint is applied; the remaining high address segment in the one-dimensional linear logical address sequence is selected to construct the elastic buffer, and a continuously aggregated distribution allocation constraint is applied.
4. The power traffic based fgOTN time slot allocation method of claim 1, wherein, The process of outputting the interval variance value through differential statistical operations includes: The discrete quantification model is run. The discrete quantification model is a statistical calculation logic built based on the differences in physical location of time slots and used to quantify the topological uniformity of physical resource distribution. The operation steps include: performing a first-order difference operation on the physical address index sequence of the idle time slot data to construct a time slot interval vector representing the physical distance between adjacent idle time slots; calculating the arithmetic mean of all values in the time slot interval vector; calculating the square of the difference between each value in the time slot interval vector and the arithmetic mean; and summing all the squared values and dividing by the total number of elements to obtain the interval variance value.
5. The power traffic based fgOTN time slot allocation method of claim 1, wherein, The process of identifying the second type of business data stream as the data stream to be migrated includes: Traverse each occupied second-type business data stream within the isochronous potential energy zone and perform a time slot dispersion contribution assessment; calculate the contribution weight of each second-type business data stream to the overall variance growth of the isochronous potential energy zone, lock the second-type business data stream with the highest contribution weight as the data stream to be migrated, and prioritize the removal of data objects that contribute the most to the regional uniformity deviation.
6. The power traffic based fgOTN time slot allocation method of claim 1, wherein, The process of searching for a contiguous free logical address block within the elastic buffer that can accommodate the data stream to be migrated employs a high-order address-first search strategy, specifically including: The high-order address priority search strategy is a resource scheduling logic used to compress the second type of service data flow to the tail of the physical storage space; the bandwidth configuration of the data flow to be migrated is parsed to determine the total number of time slots required; all consecutive free intervals with a capacity greater than the total number of time slots are traversed and searched in the elastic buffer; among all the consecutive free intervals found, the interval with the largest physical address index value is locked as the consecutive free logical address block, and the second type of service data flow is compressed to the physical tail of the optical payload unit frame structure.
7. The power traffic based fgOTN time slot allocation method of claim 1, wherein, The process of issuing the link connection adjustment instruction containing the source timeslot mapping field and the destination timeslot mapping field includes: A link connection adjustment frame structure conforming to the lossless adjustment protocol specification is generated. The set of source physical addresses currently occupied by the data flow to be migrated is encapsulated into the source timeslot mapping field. The set of target physical addresses corresponding to the continuous idle logical address block is encapsulated into the destination timeslot mapping field. A consistency check bit is added to the link connection adjustment frame structure to check whether the number of timeslots contained in the source and destination address sets is equal. Based on the check result, the link connection adjustment frame structure is issued to trigger the network node to activate the lossless switching protocol, switch the bearer channel of the data flow to be migrated to the continuous idle logical address block, release the occupancy lock of the source physical address set, and release the continuous timeslot resources in the isochronous potential energy zone.
8. The power traffic based fgOTN time slot allocation method of claim 1, wherein, The aforementioned modulo-N congruent addressing algorithm specifically refers to executing equally spaced discrete mapping logic, including: The modulo-N congruent addressing algorithm is a deterministic resource locking logic built on congruent mathematics theory. Based on the bandwidth requirements of the first type of service data flow and the total available resources of the isochronous potential energy zone, the optimal step size parameter N is calculated. Using the starting physical address of the isochronous potential energy zone as a reference, the modulo-N congruent addressing operation is performed in the continuous time slot resources. The set of physical time slots with constant remainders in the locking operation result is taken as the target resource.
9. The power traffic based fgOTN time slot allocation method of claim 1, wherein, The method also includes the step of constructing a logical resource defense barrier: After locking time slot resources that satisfy the modulo N congruent distribution characteristics, a resource locking mask indicating the time slot resource distribution pattern is generated; the resource locking mask is sent to the global resource allocation table of the network controller; when processing subsequent resource allocation requests for the second type of service data stream, the allocation operation attempting to occupy the discrete time slots of the first type of service data stream is intercepted based on the resource locking mask.