Bandwidth adjustment method and device, equipment and medium
By using adjustment signals and filling blocks to adapt to bandwidth differences in optical transport networks, the bandwidth adjustment process is simplified, solving the problems of large cache space and complex adjustment in existing technologies, and achieving simple and easy-to-implement bandwidth adjustment and service data protection.
Patent Information
- Application Number
- CN202410225637.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-02-28
- Publication Date
- 2025-09-05
AI Technical Summary
The existing bandwidth adjustment method in optical transport networks requires a large mapping cache space, the adjustment process is complex, and the bandwidth adjustment time is long. The protocol state machine and bandwidth adjustment overhead processing are complex, which can easily lead to damage to service data.
By using the first and second adjustment signals to indicate the bandwidth adjustment state and using the first and second filling blocks to adapt the bandwidth difference, the bandwidth adjustment process is simplified, mapping cache overflow is avoided, storage resources are saved, and service data loss is avoided.
The bandwidth adjustment overhead is simple and easy to implement, which avoids damage to business data, saves storage resources, and simplifies the mapping mechanism.
Smart Images

Figure CN120602811A_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of optical communication technology, and in particular to a bandwidth adjustment method, apparatus, device, and medium. Background Art
[0002] In an optical transport network (OTN), a transmitting device can map a customer's service data into low-rate frames. It can then map multiple low-rate frames into multiple time slots within a high-rate frame, sending the high-rate frames to a receiving device. The receiving device demaps the high-rate frames into low-rate frames and then demaps the service data from the low-rate frames. When a customer's service data rate needs to increase or decrease, the transmission bandwidth must be adjusted accordingly.
[0003] The International Telecommunication Union Telecommunication Standardization Sector (ITU-T) G.7044 / Y.1347 hitless adjustment of ODUflex (GFP) standard, also known as the G.HAO standard in the communications industry, provides a bandwidth adjustment method for optical transport networks. The bandwidth adjustment method provided by the G.HAO standard includes two processes: the Link Connection Resizing (LCR) protocol and the Bandwidth Resizing (BWR) protocol. The LCR protocol enables communication between all nodes involved in the transmission path from the transmitter to the receiver to negotiate and adjust the allocation of bandwidth (e.g., time slots) occupied by low-rate frames within high-rate frames. The BWR protocol adjusts the bandwidth (e.g., rate) of low-rate frames and switches the occupied bandwidth (e.g., time slots) from the pre-adjustment state to the post-adjustment state when low-rate frames are mapped and multiplexed into high-rate frames.
[0004] The bandwidth adjustment method implemented through the G.HAO standard requires gradual bandwidth adjustment to avoid mapping buffer overflow. During the BWR period, the ODUflex (GFP) clock rate should increase at a rate of 512000 kbit / s² [511897..512102 kbit / s²] with a slope error of ±100 ppm. This rate increase can be achieved by increasing the clock rate by 8 bits every 125 seconds. The bandwidth adjustment method provided by the G.HAO standard requires a larger mapping buffer, complex mapping multiplexing control during the bandwidth adjustment process, and a longer bandwidth adjustment time. Furthermore, the protocol state machine and bandwidth adjustment overhead processing are complex. Summary of the Invention
[0005] The present disclosure provides a bandwidth adjustment method, apparatus, device, and medium for increasing or decreasing transmission bandwidth during the transmission of service data over an optical transport network. The bandwidth adjustment overhead is simple and easy to implement, thereby avoiding service damage during transmission and saving storage resources.
[0006] In a first aspect, an embodiment of the present disclosure provides a bandwidth adjustment method, which is applied to a sending end device, which can be an optical transport network bearer transmission chip, board or device. The method includes: obtaining a first adjustment signal, the first adjustment signal is used to indicate the bandwidth adjustment status of a first rate frame, adjusting the bandwidth of the first rate frame according to the first adjustment signal, mapping the first filling block to the first rate frame after the bandwidth is adjusted to adapt to the current bandwidth of the second rate frame and the adjusted bandwidth of the first rate frame, obtaining a second adjustment signal, the second adjustment signal is used to indicate the bandwidth adjustment status of the second rate frame, adjusting the bandwidth of the second rate frame according to the second adjustment signal, mapping the second filling block to the second rate frame after the bandwidth is adjusted to adapt to the current rate of the service data and the adjusted bandwidth of the second rate frame.
[0007] In a second aspect, an embodiment of the present disclosure provides another bandwidth adjustment method, which is applied to a receiving end device, which may be an optical transport network bearer transmission chip, board or device. The method includes: obtaining a first adjustment signal, the first adjustment signal is used to indicate the bandwidth adjustment status of a first rate frame, obtaining first demapped data, and identifying a first filling block from the first demapped data according to the first adjustment signal, and deleting the first filling block, obtaining a second adjustment signal, the second adjustment signal is used to indicate the bandwidth adjustment status of a second rate frame, obtaining second demapped data, and identifying a second filling block from the second demapped data according to the second adjustment signal, and deleting the second filling block.
[0008] In a third aspect, an embodiment of the present disclosure provides a bandwidth adjustment device, which is applied to a transmitting end device, and the device includes: a first rate frame overhead processing unit, which is used to obtain a first adjustment signal, the first adjustment signal is used to indicate the bandwidth adjustment status of the first rate frame, a mapping multiplexing processing unit, which is used to adjust the bandwidth of the first rate frame according to the first adjustment signal, and map the first filling block to the first rate frame after the bandwidth is adjusted to adapt to the current bandwidth of the second rate frame and the adjusted bandwidth of the first rate frame, a second rate frame overhead processing unit, which is used to obtain a second adjustment signal, the second adjustment signal is used to indicate the bandwidth adjustment status of the second rate frame, a mapping processing unit, which is used to adjust the bandwidth of the second rate frame according to the second adjustment signal, and map the second filling block to the second rate frame after the bandwidth is adjusted to adapt to the current rate of the service data and the adjusted bandwidth of the second rate frame.
[0009] In a fourth aspect, an embodiment of the present disclosure provides another bandwidth adjustment device, which is applied to a receiving end device, and the device includes: a first rate frame overhead processing unit, used to obtain a first adjustment signal, the first adjustment signal is used to indicate the bandwidth adjustment status of the first rate frame; a demapping multiplexing processing unit, used to obtain first demapped data, and identify a first filling block from the first demapped data according to the first adjustment signal, and delete the first filling block; a second rate frame overhead processing unit, used to obtain a second adjustment signal, the second adjustment signal is used to indicate the bandwidth adjustment status of the second rate frame; a demapping processing unit, used to obtain second demapped data, and identify a second filling block from the second demapped data according to the second adjustment signal, and delete the second filling block.
[0010] In a fifth aspect, an embodiment of the present disclosure provides an electronic device, the device comprising:
[0011] one or more processors;
[0012] a memory having one or more programs stored thereon, which, when executed by one or more processors, causes the one or more processors to implement the first aspect and any possible embodiment of the first aspect or implement the second aspect and any possible embodiment of the second aspect;
[0013] One or more I / O interfaces are connected between the processor and the memory and configured to implement information exchange between the processor and the memory.
[0014] In a sixth aspect, an embodiment of the present disclosure provides a computer-readable medium having a computer program stored thereon, which, when executed by a processor, implements the first aspect and any possible embodiment of the first aspect or implements the second aspect and any possible embodiment of the second aspect.
[0015] In the present disclosure, during the transmission of service data, the bandwidth adjustment status is indicated by a first adjustment signal and a second adjustment signal. The bandwidth adjustment status indication overhead is relatively simple and easy to implement. By using the first and second padding blocks to adapt to bandwidth differences during the bandwidth adjustment process, the mapping buffer can be allowed to overflow, eliminating the need to store large amounts of data and conserving storage resources. The mapping mechanism is relatively simple and easy to implement. Furthermore, during the mapping process, insufficient client service data using existing methods can lead to mapping errors and consequently service losses. However, the present disclosure, by adapting through mapping the second padding block, avoids service losses. BRIEF DESCRIPTION OF THE DRAWINGS
[0016] In the accompanying drawings of the embodiments of the present disclosure:
[0017] Figure 1 An optical transmission network system architecture diagram provided by an embodiment of the present disclosure;
[0018] Figure 2 A flow chart of a bandwidth adjustment method provided in an embodiment of the present disclosure;
[0019] Figure 3 A flow chart of another bandwidth adjustment method provided in an embodiment of the present disclosure;
[0020] Figure 4 A flow chart of another bandwidth adjustment method provided in an embodiment of the present disclosure;
[0021] Figure 5 A flow chart of another bandwidth adjustment method provided in an embodiment of the present disclosure;
[0022] Figure 6 A flow chart of another bandwidth adjustment method provided in an embodiment of the present disclosure;
[0023] Figure 7 A schematic diagram of a bandwidth adjustment device provided in an embodiment of the present disclosure;
[0024] Figure 8 A schematic diagram of another bandwidth adjustment device provided in an embodiment of the present disclosure;
[0025] Figure 9 A block diagram of an electronic device according to an embodiment of the present disclosure;
[0026] Figure 10 A block diagram of the composition of a computer-readable medium provided in an embodiment of the present disclosure. DETAILED DESCRIPTION
[0027] To enable those skilled in the art to better understand the technical solution of the present disclosure, a bandwidth adjustment method, apparatus, device, and medium provided by an embodiment of the present disclosure are described in detail below with reference to the accompanying drawings.
[0028] The present disclosure will be described more fully hereinafter with reference to the accompanying drawings, but the illustrated embodiments may be embodied in different forms, and the present disclosure should not be construed as limited to the embodiments set forth below. Rather, these embodiments are provided so that the present disclosure will be thorough and complete and will fully understand the scope of the present disclosure to those skilled in the art.
[0029] The accompanying drawings of the embodiments of the present disclosure are used to provide a further understanding of the embodiments of the present disclosure and constitute a part of the specification. Together with the detailed embodiments, they are used to explain the present disclosure and do not constitute a limitation of the present disclosure. The above and other features and advantages will become more apparent to those skilled in the art by describing the detailed embodiments with reference to the accompanying drawings.
[0030] In the absence of conflict, the various embodiments of the present disclosure and the various features therein may be combined with each other.
[0031] The terms used in this disclosure are only used to describe specific embodiments and are not intended to limit the disclosure. As used in this disclosure, the term "and / or" includes any and all combinations of one or more related enumerated items. As used in this disclosure, the singular forms "a" and "the" are also intended to include plural forms, unless the context clearly indicates otherwise. As used in this disclosure, the terms "comprising" and "made of" specify the presence of the features, wholes, steps, operations, elements and / or components, but do not exclude the presence or addition of one or more other features, wholes, steps, operations, elements, components and / or groups thereof.
[0032] In the description of the present disclosure, words such as “first” and “second” are only used for the purpose of distinguishing the description and cannot be understood as indicating or implying relative importance or order.
[0033] Unless otherwise defined, all terms (including technical and scientific terms) used in this disclosure have the same meanings as those commonly understood by those skilled in the art. It will also be understood that terms such as those defined in commonly used dictionaries should be interpreted as having a meaning consistent with their meaning in the context of the relevant art and this disclosure, and will not be interpreted as having an idealized or overly formal meaning unless expressly defined in this disclosure.
[0034] In this disclosure, unless otherwise specified, the following technical terms should be understood as follows:
[0035] 1) In the present disclosure, the first rate frame and the second rate frame are frames of two different rates, and the rate of the first rate frame is higher than the rate of the second rate frame. In addition, for the first rate frame k, when k takes different values, the rate of the first rate frame k (i.e., the bit rate or transmission rate) is different. For the second rate frame k, when k takes different values, the rate of the second rate frame k is also different. For example, the value of k can be 0, 1, 2, 3, 4, etc. Generally, the larger the value of k, the larger the corresponding frame rate. In the present disclosure, multiple second rate frames can be mapped to multiple time slots of the first rate frame. For example, multiple second rate frames 2 can be mapped to multiple time slots of the first rate frame 4. In the present disclosure, the second rate frame can also be described as a low-rate optical transmission network transmission frame, and the first rate frame can also be described as a high-rate optical transmission network transmission frame, without limitation.
[0036] 2) Service data refers to the services that can be carried by the optical transport network, such as Ethernet services, packet services, and wireless backhaul services.
[0037] 3) In this disclosure, mapping A to B means encapsulating A into B. For example, mapping service data to a second rate frame means encapsulating service data into the second rate frame, and mapping the second rate frame to a first rate frame means encapsulating the second rate frame into the first rate frame.
[0038] 4) In the present disclosure, mapping multiple A's to B simultaneously means encapsulating multiple A's into B by multiplexing. For example, mapping multiple second rate frames to the same first rate frame can be understood as encapsulating multiple second rate frames into different time slots of the first rate frame by multiplexing.
[0039] 5) A binary digit (bit) is the smallest unit of data.
[0040] 6) Byte is the unit of data volume, 1 Byte = 8 bits.
[0041] 7) A cyclic redundancy check (CRC) is a hash function that generates a short, fixed-number checksum based on data such as a packet or computer file. It is primarily used to detect or verify errors that may occur during data transmission or storage. The generated number is calculated and appended to the data before transmission or storage. The receiving end then verifies whether the data has changed.
[0042] 8) In the present disclosure, bandwidth may include time slots and / or rate. For example, the bandwidth of a first-rate frame may include multiple time slots, each of which may carry a data block of a specific length, such as a second-rate frame or other data blocks of a specific length. For another example, the bandwidth of a second-rate frame may refer to the rate of the second-rate frame, each of which may carry a data block of a specific length.
[0043] Reference Figure 1 , is a diagram of an optical transmission network system architecture provided by an embodiment of the present disclosure, combined with the attached Figure 1 The scenarios to which the present disclosure is applicable are described. Figure 1 The optical transport network system may include optical transport network end devices, optical transport network intermediate node devices, and customer service devices. Each optical transport network end device can both receive and send service data from the other end. When sending service data, the optical transport network end device can be considered a sending end device, and when receiving service data, the optical transport network end device can be considered a receiving end device. Figure 1 The optical transport network terminal device may be an optical transport network access device. Figure 1 It is only a schematic diagram and does not constitute a limitation on the applicable scenarios of the technical solution provided in this application.
[0044] Combine Figure 1It can be seen that in OTN, the sending end device can map the customer's service data to the second rate frame, and then map and multiplex multiple second rate frames to multiple time slots of the first rate frame, and then send the first rate frame to the receiving end device through the intermediate node device of the optical transport network. The receiving end device can demap the second rate frame from the received first rate frame, and demap the service data from the second rate frame, thereby realizing the effective transmission of customer services.
[0045] When the customer's service data rate needs to be increased or decreased, the transmission bandwidth needs to be adjusted accordingly. In some related technologies, the bandwidth adjustment method includes two processes: the LCR protocol and the BWR protocol. The LCR protocol can realize communication between all node devices involved in the transmission path from the transmitter to the receiver, and is used to negotiate the adjustment of the allocation of the second-rate frame in the time slot occupied by the first-rate frame. The BWR protocol can realize the rate adjustment of the second-rate frame, and when the second-rate frame is mapped and multiplexed to the first-rate frame, it switches from the occupied time slot before the adjustment to the occupied time slot after the adjustment. Through this bandwidth adjustment method, a larger mapping cache space is required, the mapping multiplexing control during the bandwidth adjustment process is more complicated, the bandwidth adjustment time is longer, and the protocol state machine and bandwidth adjustment overhead processing are more complicated.
[0046] In view of this, the embodiments of the present disclosure provide a bandwidth adjustment method, apparatus, device and medium, which can be applied to the scenarios and Figure 1 The architecture shown is described in detail below with reference to the accompanying drawings.
[0047] First, refer to Figure 2 , is a flow chart of a bandwidth adjustment method provided by an embodiment of the present disclosure, which is applied to a transmitting end device, which may be Figure 1 An optical transmission network terminal device for sending service data, the method comprising:
[0048] S201: Acquire a first adjustment signal, where the first adjustment signal is used to indicate a bandwidth adjustment state of a first rate frame.
[0049] S202: Adjust the bandwidth of the first rate frame according to the first adjustment signal, and map the first filling block to the first rate frame after the bandwidth adjustment to adapt to the current bandwidth of the second rate frame and the adjusted bandwidth of the first rate frame.
[0050] In the embodiment of the present disclosure, after adjusting the bandwidth of the first rate frame, the adjusted bandwidth of the first rate frame will not match the current bandwidth of the second rate frame. By mapping the first filling block to the first rate frame after the bandwidth is adjusted, the current bandwidth of the second rate frame and the adjusted bandwidth of the first rate frame can be adapted, that is, the current bandwidth of the second rate frame and the adjusted bandwidth of the first rate frame are matched.
[0051] In the embodiment of the present disclosure, after the bandwidth of the first rate frame is adjusted, the second rate frame can be mapped to the first rate frame with the adjusted bandwidth through the existing method.
[0052] S203: Acquire a second adjustment signal, where the second adjustment signal is used to indicate a bandwidth adjustment state of a second rate frame.
[0053] S204: Adjust the bandwidth of the second rate frame according to the second adjustment signal, and map the second filling block to the second rate frame with adjusted bandwidth to adapt to the current rate of the service data and the adjusted bandwidth of the second rate frame.
[0054] In an embodiment of the present disclosure, after adjusting the bandwidth of the second-rate frame, the adjusted bandwidth of the second-rate frame will not match the current rate of the business data. By mapping the second filling block to the second-rate frame with adjusted bandwidth, the current rate of the business data and the adjusted bandwidth of the second-rate frame can be adapted, that is, the current rate of the business data and the adjusted bandwidth of the second-rate frame are matched.
[0055] In the embodiment of the present disclosure, the execution order of steps S201-S204 is not limited. When increasing the bandwidth, steps S201-S202 may be executed first and then S203-S204. When decreasing the bandwidth, steps S203-S204 may be executed first and then S201-S202.
[0056] Through the method provided by the embodiments of the present disclosure, during the transmission of service data, the first adjustment signal and the second adjustment signal are used to indicate the status of bandwidth adjustment. The bandwidth adjustment status indication overhead is relatively simple and easy to implement. The first and second padding blocks are used to adapt to the bandwidth difference during the bandwidth adjustment process, allowing for mapping cache overflows, eliminating the need to store large amounts of data and saving storage resources. The mapping mechanism is relatively simple and easy to implement. Furthermore, during the mapping process, insufficient client service data using existing methods can lead to mapping errors and thus cause service damage. However, the present disclosure avoids service damage by adapting through mapping the second padding block.
[0057] In some embodiments, the bandwidth of the first rate frame includes the time slots occupied by the second rate frame in the first rate frame, each time slot is used to map a data block of a first preset length, and the length of the first padding block is N times the first preset length, where N is an integer greater than or equal to 1. The data type, the first preset length, and the value of N of the first padding block can be configured according to the actual application. In the present disclosure, the first preset length can be understood as the size of the granule that can be mapped into each time slot. For example, the first preset length can be X bits, that is, the granule that can be mapped into each time slot is X bits. By designing the length of the first padding block to be N times the first preset length, it is possible to adapt to multiple existing mapping mechanisms without designing a new mapping mechanism. The process of mapping the first padding block to the first rate frame is simple, and this design makes it easy to identify the first padding block from the demapped data.
[0058] In some embodiments, the first preset length is 128 bits, and N is 1. This design can better adapt to the block delimitation process of the data block of the first preset length in the mapping mechanism.
[0059] In some embodiments, the bandwidth of the second rate frame includes the rate of the second rate frame, the second rate frame is used to map data blocks loaded into the second preset length, and the length of the second padding block is the same as the second preset length. The second preset length can be configured according to actual application. In the present disclosure, by designing the length of the second padding block to be the same as the second preset length, it is possible to adapt to various existing mapping mechanisms without designing a new mapping mechanism. The process of mapping the second padding block to the second rate frame is simple, and this design makes it easy to identify the second padding block from the demapped data, which can better adapt to the block delimiting processing of the data block of the second preset length itself in the mapping mechanism.
[0060] In some embodiments, the data block of the second preset length and the second padding block are 66-bit blocks. This design can better adapt to the block delimitation process of the data block of the second preset length in the mapping mechanism.
[0061] In some embodiments, the bandwidth adjustment state includes bandwidth adjustment start or bandwidth adjustment end. In this case,
[0062] Adjusting the bandwidth of the first rate frame according to the first adjustment signal, and mapping the first padding block to the first rate frame after the bandwidth adjustment, comprising: when the first adjustment signal is used to indicate the start of bandwidth adjustment, adjusting the bandwidth of the first rate frame according to the first adjustment signal, and if it is determined that the current bandwidth of the second rate frame and the adjusted bandwidth of the first rate frame do not match, mapping the first padding block to the first rate frame after the bandwidth adjustment; the method further comprises: when the first adjustment signal is used to indicate the end of bandwidth adjustment, stopping mapping the first padding block to the first rate frame after the bandwidth adjustment;
[0063] The bandwidth of the second rate frame is adjusted according to the second adjustment signal, and the second filling block is mapped to the second rate frame after the bandwidth is adjusted, including: when the second adjustment signal is used to indicate the start of bandwidth adjustment, the bandwidth of the second rate frame is adjusted according to the second adjustment signal, and if it is determined that the current rate of the service data and the bandwidth of the second rate frame after the adjustment do not match, the second filling block is mapped to the second rate frame after the bandwidth is adjusted; the method also includes: when the second adjustment signal is used to indicate the end of bandwidth adjustment, stopping mapping the second filling block to the second rate frame after the bandwidth is adjusted.
[0064] In the embodiment of the present disclosure, different values of the first adjustment signal may indicate different states of bandwidth adjustment. For example, a value of 1 indicates the start of bandwidth adjustment, and a value of 0 indicates the end of bandwidth adjustment.
[0065] In some embodiments, the bandwidth adjustment includes bandwidth increase. In this case, mapping the second filling block to the second rate frame after the bandwidth is adjusted further includes: increasing the rate of the service data.
[0066] In some embodiments, the bandwidth adjustment includes bandwidth reduction. In this case, before obtaining the second adjustment signal, the method further includes: reducing the rate of the service data.
[0067] In some embodiments, the first adjustment signal is carried in an overhead of a first rate frame, and / or the second adjustment signal is carried in an overhead of a second rate frame.
[0068] Secondly, refer to Figure 3 , is a flow chart of another bandwidth adjustment method provided by an embodiment of the present disclosure, which is applied to a receiving device. The receiving device may be Figure 1 An optical transmission network terminal device receiving service data, the method comprising:
[0069] S301: Acquire a first adjustment signal, where the first adjustment signal is used to indicate a bandwidth adjustment state of a first rate frame.
[0070] S302: Acquire first demapped data, identify a first padding block from the first demapped data according to a first adjustment signal, and delete the first padding block.
[0071] S303: Acquire a second adjustment signal, where the second adjustment signal is used to indicate a bandwidth adjustment state of a second rate frame.
[0072] S304: Acquire second demapped data, identify a second padding block from the second demapped data according to the second adjustment signal, and delete the second padding block.
[0073] The method provided by the embodiments of the present disclosure utilizes the first and second adjustment signals to indicate the bandwidth adjustment status during service data transmission. The bandwidth adjustment status indication overhead is relatively simple and easy to implement. During the demapping process, the second padding block is identified and deleted, thereby preventing service loss.
[0074] It should be noted that the concepts or steps involved in the second aspect that are the same as those in the first aspect can be found in the description of the first aspect and will not be repeated in the second aspect.
[0075] In some embodiments, the bandwidth adjustment state includes bandwidth adjustment start or bandwidth adjustment end. In this case,
[0076] Identifying a first padding block from the first demapped data according to the first adjustment signal and deleting the first padding block, comprising: when the first adjustment signal is used to indicate the start of bandwidth adjustment, identifying the first padding block from the first demapped data according to the first adjustment signal and deleting the first padding block; the method further comprises: when the first adjustment signal is used to indicate the end of bandwidth adjustment, stopping identifying the first padding block;
[0077] Identifying a second padding block from the second demapped data according to the second adjustment signal and deleting the second padding block includes: when the second adjustment signal is used to indicate the start of bandwidth adjustment, identifying the second padding block from the second demapped data according to the second adjustment signal and deleting the second padding block; the method also includes: when the second adjustment signal is used to indicate the end of bandwidth adjustment, stopping identifying the second padding block.
[0078] In order to enable those skilled in the art to more clearly understand the technical solutions provided by the embodiments of the present disclosure, the technical solutions provided by the embodiments of the present disclosure are further described below through specific examples:
[0079] Reference Figure 4 , is a flow chart of another bandwidth adjustment method provided by an embodiment of the present disclosure, the method is applied to a sending device, the sending end device can be Figure 1 In this embodiment, the bandwidth adjustment is specifically bandwidth increase, where the bandwidth of the first rate frame is the time slot occupied by the second rate frame in the first rate frame, the bandwidth of the second rate frame is the rate, the first adjustment signal has a value of 1, indicating the start of the bandwidth increase of the first rate frame, and has a value of 0, indicating the end of the bandwidth increase of the first rate frame; the second adjustment signal has a value of 1, indicating the start of the rate increase of the second rate frame, and has a value of 0, indicating the end of the rate increase of the second rate frame; and the first preset length is X bits. For illustration, the method includes:
[0080] Step 1:
[0081] (1) Obtain a first adjustment signal, where the value of the first adjustment signal is 1, indicating the start of bandwidth increase of the first rate frame.
[0082] (2) Increasing the number of time slots occupied by the second rate frame in the first rate frame according to the first adjustment signal, and mapping the second rate frame to the first rate frame with the increased time slots.
[0083] (3) It is determined that the current rate of the second rate frame does not match the bandwidth of the first rate frame after the time slot is added. For example, the amount of data to be mapped into the second rate frame is less than X bits. The first filling block is mapped to the first rate frame after the time slot is added to adapt to the current rate of the second rate frame and the bandwidth of the first rate frame after the time slot is added.
[0084] Table 1 shows an example of a first padding block. In this example, X = 128 bits, N = 1. 128 bits total 12 bytes. Bytes 1 to Byte 8 are signatures. NUM is used to indicate the first padding block mapped to the first rate frame. NUM counts starting from 0. Each time a first padding block is mapped, NUM increments by 1 until NUM overflows and restarts from 0. CRC8 checks Bytes 1 to Byte 11, and the check polynomial can be G(x) = x8 + x2 + x+1.
[0085]
[0086] Table 1 is an example of a first filling block
[0087] Step 2:
[0088] (1) Obtaining a second adjustment signal, where the value of the second adjustment signal is 1, indicating the start of rate increase of the second rate frame.
[0089] (2) Increasing the rate of the second rate frame according to the second adjustment signal. The rate of the second rate frame may be quickly switched to the new rate, or may be gradually increased to the new rate over a period of time.
[0090] (3) Determine whether the current rate of the service data and the rate after the second rate frame is increased do not match. For example, the amount of service data to be sent is less than the second preset length, and map the second filling block to the second rate frame after the rate is increased to adapt to the current rate of the service data and the rate after the second rate frame is increased.
[0091] Table 2 is an example of a second filling block. In this example, the second filling block is a 66-bit block.
[0092] 0~1 2~9 10~17 18~25 26~33 34~41 42~49 50~57 58~65 10 8'h1E 7’h05 7’h05 7’h05 7’h05 7’h05 7’h05 7’h05
[0093] Table 2 is an example of a second filling block
[0094] Step 3:
[0095] Increase customer service data rates.
[0096] Step 4:
[0097] (1) Obtaining a first adjustment signal. The value of the first adjustment signal is 0, which is used to indicate that the bandwidth increase of the first rate frame ends and stops mapping the first filling block to the first rate frame after the time slot is increased, that is, stops using the first filling block.
[0098] It should be noted that the first adjustment signal in this step and the first adjustment signal in the first step are two different adjustment signals.
[0099] (2) Obtaining a second adjustment signal. The value of the second adjustment signal is 0, which is used to indicate that the rate increase of the second rate frame ends and stops mapping the second filling block to the second rate frame after the rate increase, that is, stops using the second filling block.
[0100] It should be noted that the second adjustment signal in this step and the second adjustment signal in the first step are two different adjustment signals.
[0101] In this embodiment, after the above steps from the first to the fourth step, the bandwidth of the optical transport network is increased.
[0102] Reference Figure 5 , is a flow chart of another bandwidth adjustment method provided by an embodiment of the present disclosure, the method is applied to a sending device, the sending end device can be Figure 1 An optical transmission network terminal device that sends service data in an optical transmission network. In this embodiment, the bandwidth of the first rate frame is the time slot occupied by the second rate frame in the first rate frame, the bandwidth of the second rate frame is the rate, and the bandwidth adjustment is specifically a bandwidth reduction. When the first adjustment signal takes a value of 1, it indicates the start of the bandwidth reduction of the first rate frame, and when the first adjustment signal takes a value of 0, it indicates the end of the bandwidth reduction of the first rate frame. When the second adjustment signal takes a value of 1, it indicates the start of the rate reduction of the second rate frame, and when the second adjustment signal takes a value of 0, it indicates the end of the rate reduction of the second rate frame. The first preset length is X bits. For illustration, the method includes:
[0103] Step 1:
[0104] Reduce the customer's service data rate.
[0105] Step 2:
[0106] (1) Obtain a second adjustment signal, where the value of the second adjustment signal is 1, indicating the start of rate reduction of the second rate frame.
[0107] (2) Reducing the rate of the second rate frame according to the second adjustment signal. The rate of the second rate frame can be quickly switched to the new rate, or can be gradually reduced to the new rate over a period of time.
[0108] (3) Determine whether the current rate of the service data and the rate after the second rate frame is reduced match. For example, the amount of service data to be sent is less than the second preset length. Map the second filling block to the second rate frame after the rate is reduced to adapt to the current rate of the service data and the rate after the second rate frame is reduced.
[0109] Step 3:
[0110] (1) Obtain a first adjustment signal, where the value of the first adjustment signal is 1, indicating that bandwidth reduction of a first rate frame starts.
[0111] (2) According to the first adjustment signal, the number of time slots occupied by the second rate frame in the first rate frame is reduced, and the second rate frame is mapped to the first rate frame with the reduced time slots.
[0112] (3) It is determined that the current rate of the second rate frame does not match the bandwidth of the first rate frame after the time slot is reduced. For example, the amount of data to be mapped into the second rate frame is less than X bits. The first filling block is mapped to the first rate frame after the time slot is reduced to adapt to the current rate of the second rate frame and the bandwidth of the first rate frame after the time slot is reduced.
[0113] Step 4:
[0114] (1) Obtaining a first adjustment signal. The value of the first adjustment signal is 0, which is used to indicate that the bandwidth reduction of the first rate frame ends and stops mapping the first filling block to the first rate frame after the time slot is reduced, that is, stops using the first filling block.
[0115] It should be noted that the first adjustment signal in this step and the first adjustment signal in the first step are two different adjustment instructions.
[0116] (2) Obtaining a second adjustment signal. The value of the second adjustment signal is 0, which is used to indicate that the rate reduction of the second rate frame is completed and stop mapping the second filling block to the second rate frame after the rate reduction, that is, stop using the second filling block.
[0117] It should be noted that the second adjustment signal in this step and the second adjustment signal in the first step are two different adjustment instructions.
[0118] In this embodiment, after the above steps from the first to the fourth step, the bandwidth reduction of the optical transport network is completed.
[0119] Figure 4 and Figure 5The embodiment described in the embodiment is a bandwidth adjustment method performed by the transmitting end device. Figure 6 The corresponding bandwidth adjustment method performed by the receiving device is described.
[0120] Reference Figure 6 , is a flow chart of another bandwidth adjustment method provided by an embodiment of the present disclosure, the method is applied to a receiving end device, the receiving end device may be Figure 1 In this embodiment, the first adjustment signal indicates the start of bandwidth adjustment for a first rate frame when the value is 1, and indicates the end of bandwidth adjustment for the first rate frame when the value is 0; the second adjustment signal indicates the start of bandwidth adjustment for a second rate frame when the value is 1, and indicates the end of bandwidth adjustment for the second rate frame when the value is 0; the first filling block is in the format shown in Table 1, and the second filling block is in the format shown in Table 2. For illustration, the method includes:
[0121] In the process of demapping the first rate frame, the steps of identifying and deleting the first padding block are as follows:
[0122] (1) Obtain a first adjustment signal, where the value of the first adjustment signal is 1, indicating the start of bandwidth adjustment of the first rate frame.
[0123] (2) Acquire first demapped data, identify a first padding block from the first demapped data according to the first adjustment signal, and delete the first padding block. The first demapped data can be understood as data demapped from the first rate frame.
[0124] In this embodiment, the first filling block is as shown in Table 1. The first filling block can be searched from the first demapped data by retrieving a feature word. The conditions for identifying a first filling block may include: 1. searching for the feature word; 2. NUM is correctly incremented; 3. CRC8 check is correct.
[0125] (3) Obtaining a first adjustment signal. The value of the first adjustment signal is 0, which is used to indicate that the bandwidth adjustment of the first rate frame is completed and the recognition of the first filling block is stopped.
[0126] It should be noted that the first adjustment signal in (3) and the first adjustment signal in (1) are two different adjustment indications.
[0127] In the process of demapping the second rate frame, the steps of identifying and deleting the second padding block are as follows:
[0128] (1) Obtain a second adjustment signal, where the value of the second adjustment signal is 1, indicating the start of bandwidth adjustment of the second rate frame.
[0129] (2) Acquire second demapped data, identify a second padding block from the second demapped data according to the second adjustment signal, and delete the second padding block. The second demapped data can be understood as data demapped from the second rate frame.
[0130] In this embodiment, the second filling block is as shown in Table 2, and the condition for identifying a second filling block is a full match of 66 bits.
[0131] (3) Obtaining a second adjustment signal. The value of the second adjustment signal is 0, which is used to indicate that the bandwidth adjustment of the second rate frame is completed and the recognition of the second filling block is stopped.
[0132] It should be noted that the second adjustment signal in (3) and the second adjustment signal in (1) are two different adjustment indications.
[0133] Thirdly, refer to Figure 7 , an embodiment of the present disclosure provides a bandwidth adjustment device, which is applied to a sending end device, and the sending end device can be Figure 1 An optical transmission network terminal device for transmitting service data, the device comprising:
[0134] The first rate frame overhead processing unit 701 is configured to obtain a first adjustment signal, where the first adjustment signal is used to indicate a bandwidth adjustment state of a first rate frame;
[0135] a mapping and multiplexing processing unit 702, configured to adjust the bandwidth of the first rate frame according to the first adjustment signal obtained by the first rate frame overhead processing unit 701, and map the first padding block to the first rate frame after the bandwidth adjustment to adapt to the current bandwidth of the second rate frame and the adjusted bandwidth of the first rate frame;
[0136] The second rate frame overhead processing unit 703 is configured to obtain a second adjustment signal, where the second adjustment signal is used to indicate a bandwidth adjustment state of the second rate frame;
[0137] The mapping processing unit 704 is used to adjust the bandwidth of the second rate frame according to the second adjustment signal obtained by the second rate frame overhead processing unit 703, and map the second filling block to the second rate frame with adjusted bandwidth to adapt to the current rate of the service data and the adjusted bandwidth of the second rate frame.
[0138] Fourthly, refer to Figure 8 The embodiment of the present disclosure provides another bandwidth adjustment device, which is applied to a receiving end device. The receiving end device can be Figure 1 An optical transmission network terminal device for receiving service data, the device comprising:
[0139] The first rate frame overhead processing unit 801 is configured to obtain a first adjustment signal, where the first adjustment signal is used to indicate a bandwidth adjustment state of a first rate frame;
[0140] a demapping and multiplexing processing unit 802 configured to obtain first demapped data, identify a first padding block from the first demapped data according to the first adjustment signal obtained by the first rate frame overhead processing unit 801, and delete the first padding block;
[0141] The second rate frame overhead processing unit 803 is configured to obtain a second adjustment signal, where the second adjustment signal is used to indicate a bandwidth adjustment state of the second rate frame;
[0142] The demapping processing unit 804 is configured to obtain second demapped data, identify a second padding block from the second demapped data according to the second adjustment signal obtained by the second rate frame overhead processing unit 803, and delete the second padding block.
[0143] It should be noted that when the optical transmission network terminal device can send service data to the opposite end and receive service data from the opposite end, the optical transmission network terminal device can have all the units of the bandwidth adjustment device in the third and fourth aspects.
[0144] Fifth, refer to Figure 9 , an embodiment of the present disclosure provides an electronic device, comprising:
[0145] One or more processors 901;
[0146] a memory 902 storing one or more programs, which, when executed by the one or more processors 901, causes the one or more processors 901 to implement the first aspect and any possible embodiment thereof, the second aspect and any possible embodiment thereof, or the third aspect and any possible embodiment thereof;
[0147] One or more I / O interfaces 903 are connected between the processor 901 and the memory 902 and are configured to implement information exchange between the processor 901 and the memory 902 .
[0148] Among them, the processor 901 is a device with data processing capabilities, including but not limited to a central processing unit (CPU); the memory 902 is a device with data storage capabilities, including but not limited to random access memory (RAM, more specifically SDRAM, DDR, etc.), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), and flash memory (FLASH); the I / O interface (read-write interface) 903 is connected between the processor 901 and the memory 902, and can realize information interaction between the processor 901 and the memory 902, including but not limited to a data bus (Bus), etc.
[0149] In some embodiments, the processor 901 , the memory 902 , and the I / O interface 903 are connected to each other via a bus 904 , and further connected to other components of the computing device.
[0150] Sixth aspect, refer to Figure 10 An embodiment of the present disclosure provides a computer-readable medium on which a computer program is stored. When the program is executed by a processor, the above-mentioned first aspect and any possible embodiment of the first aspect or the second aspect and any possible embodiment of the second aspect is implemented.
[0151] Those skilled in the art will appreciate that all or some of the steps, systems, and functional modules / units in the apparatus disclosed above may be implemented as software, firmware, hardware, or a suitable combination thereof.
[0152] In hardware implementations, the division between functional modules / units mentioned in the above description does not necessarily correspond to the division of physical components; for example, one physical component may have multiple functions, or one function or step may be performed by several physical components in cooperation.
[0153] Some or all of the physical components may be implemented as software executed by a processor, such as a central processing unit (CPU), a digital signal processor, or a microprocessor, or as hardware, or as an integrated circuit, such as an application-specific integrated circuit. Such software may be distributed on a computer-readable medium, which may include a computer storage medium (or non-transitory medium) and a communication medium (or temporary medium). As is well known to those skilled in the art, the term computer storage medium includes volatile and non-volatile, removable and non-removable media implemented in any method or technology for storing information (such as computer-readable instructions, data structures, program modules, or other data). Computer storage media include, but are not limited to, random access memory (RAM, more specifically SDRAM, DDR, etc.), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory (FLASH) or other disk storage; compact disc (CD-ROM), digital versatile disc (DVD) or other optical disc storage; magnetic cassettes, tapes, disk storage or other magnetic storage; any other medium that can be used to store desired information and can be accessed by a computer. Furthermore, as is well known to those skilled in the art, communication media typically embodies computer-readable instructions, data structures, program modules, or other data in a modulated data signal such as a carrier wave or other transport mechanism, and may include any information delivery media.
[0154] The present disclosure has disclosed example embodiments, and although specific terms are employed, they are used and should be interpreted only in a general illustrative sense and not for purposes of limitation. In some instances, it will be apparent to those skilled in the art that, unless otherwise expressly indicated, features, characteristics, and / or elements described in conjunction with a particular embodiment may be used alone or in combination with features, characteristics, and / or elements described in conjunction with other embodiments. Therefore, it will be understood by those skilled in the art that various changes in form and detail may be made without departing from the scope of the present disclosure as set forth in the appended claims.
Claims
1. A bandwidth adjustment method, characterized in that: Applied to a transmitting device, the method includes: Obtaining a first adjustment signal, where the first adjustment signal is used to indicate a bandwidth adjustment state of a first rate frame; Adjusting the bandwidth of the first rate frame according to the first adjustment signal, and mapping the first filling block to the first rate frame after the bandwidth adjustment to adapt to the current bandwidth of the second rate frame and the adjusted bandwidth of the first rate frame; Acquire a second adjustment signal, where the second adjustment signal is used to indicate a bandwidth adjustment state of the second rate frame; The bandwidth of the second rate frame is adjusted according to the second adjustment signal, and the second filling block is mapped to the second rate frame with adjusted bandwidth to adapt to the current rate of the service data and the adjusted bandwidth of the second rate frame.
2. The method according to claim 1, characterized in that The bandwidth of the first rate frame includes the time slot occupied by the second rate frame in the first rate frame, each of the time slots is used to map a data block of a first preset length, and the length of the first filling block is N times the first preset length, where N is an integer greater than or equal to 1.
3. The method according to claim 1, characterized in that The bandwidth of the second rate frame includes the rate of the second rate frame, the second rate frame is used for mapping data blocks loaded with a second preset length, and the length of the second filling block is the same as the second preset length.
4. The method according to any one of claims 1 to 3, characterized in that The bandwidth adjustment status includes bandwidth adjustment start or bandwidth adjustment end; Adjusting the bandwidth of the first rate frame according to the first adjustment signal, and mapping the first filling block to the first rate frame after the bandwidth adjustment, includes: When the first adjustment signal indicates the start of bandwidth adjustment, adjusting the bandwidth of the first rate frame according to the first adjustment signal, and if it is determined that the current bandwidth of the second rate frame does not match the adjusted bandwidth of the first rate frame, mapping the first padding block to the first rate frame after the bandwidth adjustment; The method further comprises: When the first adjustment signal is used to indicate that bandwidth adjustment is completed, stop mapping the first filling block to the first rate frame after bandwidth adjustment; Adjusting the bandwidth of the second rate frame according to the second adjustment signal, and mapping the second filling block to the second rate frame after the bandwidth adjustment, includes: When the second adjustment signal is used to indicate the start of bandwidth adjustment, adjusting the bandwidth of the second rate frame according to the second adjustment signal, and if it is determined that the current rate of the service data does not match the adjusted bandwidth of the second rate frame, mapping the second padding block to the second rate frame after the bandwidth adjustment; The method further comprises: When the second adjustment signal is used to indicate that the bandwidth adjustment is completed, the mapping of the second filling block to the second rate frame after the bandwidth adjustment is stopped.
5. The method according to claim 1, characterized in that The first adjustment signal is carried in an overhead of the first rate frame, and / or the second adjustment signal is carried in an overhead of the second rate frame.
6. A bandwidth adjustment method, characterized in that: Applied to a receiving device, the method includes: Obtaining a first adjustment signal, where the first adjustment signal is used to indicate a bandwidth adjustment state of a first rate frame; Acquire first demapped data, identify a first padding block from the first demapped data according to the first adjustment signal, and delete the first padding block; Acquire a second adjustment signal, where the second adjustment signal is used to indicate a bandwidth adjustment state of a second rate frame; Second demapped data is acquired, and a second filling block is identified from the second demapped data according to the second adjustment signal, and the second filling block is deleted.
7. The method according to claim 6, characterized in that The bandwidth adjustment status includes bandwidth adjustment start or bandwidth adjustment end; Identifying a first padding block from the first demapped data according to the first adjustment signal and deleting the first padding block includes: When the first adjustment signal is used to indicate the start of bandwidth adjustment, identifying a first padding block from the first demapped data according to the first adjustment signal, and deleting the first padding block; The method further comprises: When the first adjustment signal is used to indicate that bandwidth adjustment is complete, stopping identifying the first filling block; Identifying a second padding block from the second demapped data according to the second adjustment signal, and deleting the second padding block, including: When the second adjustment signal is used to indicate the start of bandwidth adjustment, identifying a second padding block from the second demapped data according to the second adjustment signal, and deleting the second padding block; The method further comprises: When the second adjustment signal is used to indicate that bandwidth adjustment is completed, the recognition of the second filling block is stopped.
8. A bandwidth adjustment device, characterized in that: Applicable to the sending end device, including: A first rate frame overhead processing unit, configured to obtain a first adjustment signal, where the first adjustment signal is used to indicate a bandwidth adjustment state of a first rate frame; a mapping and multiplexing processing unit, configured to adjust the bandwidth of the first rate frame according to the first adjustment signal, and map the first filling block to the first rate frame after the bandwidth is adjusted, so as to adapt to the current bandwidth of the second rate frame and the adjusted bandwidth of the first rate frame; a second rate frame overhead processing unit, configured to obtain a second adjustment signal, where the second adjustment signal is used to indicate a bandwidth adjustment state of the second rate frame; A mapping processing unit is used to adjust the bandwidth of the second rate frame according to the second adjustment signal, and map the second filling block to the second rate frame with adjusted bandwidth to adapt to the current rate of the service data and the adjusted bandwidth of the second rate frame.
9. A bandwidth adjustment device, characterized in that: Applied to receiving devices, including: A first rate frame overhead processing unit, configured to obtain a first adjustment signal, where the first adjustment signal is used to indicate a bandwidth adjustment state of a first rate frame; a demapping and multiplexing processing unit, configured to obtain first demapped data, identify a first padding block from the first demapped data according to the first adjustment signal, and delete the first padding block; A second rate frame overhead processing unit, configured to obtain a second adjustment signal, where the second adjustment signal is used to indicate a bandwidth adjustment state of the second rate frame; The demapping processing unit is configured to obtain second demapped data, identify a second padding block from the second demapped data according to the second adjustment signal, and delete the second padding block.
10. An electronic device, characterized in that: include: one or more processors; a memory having one or more programs stored thereon, wherein when the one or more programs are executed by the one or more processors, the one or more processors implement the method according to any one of claims 1 to 7; One or more I / O interfaces are connected between the processor and the memory and are configured to implement information interaction between the processor and the memory.
11. A computer-readable medium having a computer program stored thereon, wherein when the computer program is executed by a processor, the method according to any one of claims 1 to 7 is implemented.