Mapping method and apparatus, and electronic device and storage medium
By inserting an identifier into the overhead area of the OSU frame and adjusting the number of time slots, the problem of long rate adjustment time in OTN is solved, flexible and rapid rate adjustment in OTN is achieved, and transmission efficiency is improved.
Patent Information
- Application Number
- PCT/CN2024/084177
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2023-03-31
- Filing Date
- 2024-03-27
- Publication Date
- 2024-10-03
AI Technical Summary
The traditional optical transport network (OTN) cannot flexibly and quickly adjust the transmission rate of service data when transmitting small-granularity services, resulting in a long rate adjustment time and a complex lossless bandwidth adjustment mechanism.
Insert the first identifier and/or the second identifier in the overhead area of the OSU frame to indicate rate adjustment. The rate of the first frame can be flexibly and quickly adjusted by adjusting the number of time slots or the number of time slots allocated by the first layer to the second layer. , and maps the first frame into the second frame of the second layer based on the adjusted rate and customer data count (Cm) value.
It realizes the ability to flexibly and quickly adjust the service data transmission rate in OTN, simplifies the rate adjustment process, and improves transmission efficiency and flexibility.
Smart Images

Figure CN2024084177_03102024_PF_FP_ABST
Abstract
Description
Mapping method, device, electronic device and storage medium
[0001] CROSS-REFERENCE TO RELATED APPLICATIONS
[0002] This application is based on the Chinese patent application with application number 202310339447.0 and application date March 31, 2023, and claims the priority of the Chinese patent application. The entire content of the Chinese patent application is hereby introduced into this application as a reference. Technical Field
[0003] The present application relates to the field of communication technology, and in particular to a mapping method, device, electronic device and storage medium. Background Art
[0004] Traditional optical transport networks (OTNs) have introduced optical service units (OSUs) to carry small-granularity services ranging from 10 megabits (M) to 10 gigabits (G). However, related technologies have been unable to flexibly and quickly adjust the transmission rate of service data when transmitting small-granularity services through OTNs.
[0005] Summary of the Invention
[0006] To solve related technical problems, embodiments of the present application provide a mapping method, device, electronic device, and storage medium.
[0007] The technical solution of the embodiment of the present application is implemented as follows:
[0008] This embodiment of the present application provides a mapping method, including:
[0009] Inserting the first identifier and / or the second identifier into the overhead area of the first frame; wherein,
[0010] The first flag is used to instruct to adjust the rate of the first frame, and the second flag is used to instruct to adjust the rate of the first frame from a first rate to a second rate.
[0011] In the above solution, the method further includes:
[0012] When the first identifier is recognized, the rate of the first frame is adjusted after waiting for a first period of time.
[0013] In the above solution, the method further includes:
[0014] When the second identifier is recognized, after waiting for a first period of time, the rate of the first frame is adjusted from the first rate to the second rate.
[0015] In the above solution, adjusting the rate of the first frame includes at least one of the following:
[0016] adjusting the number of time slots allocated from the first layer to the second layer, the second layer being used to carry the first frame;
[0017] Adjust the number of time slots allocated to the first frame in the first layer.
[0018] In the above solution, adjusting the rate of the first frame from the first rate to the second rate includes at least one of the following:
[0019] Change the number of time slots allocated from the first layer to the second layer from M to M+N;
[0020] The number of time slots allocated to the first frame by the first layer is changed from M to M+N; wherein the second layer is used to carry the first frame, and M and N are both integers.
[0021] In the above solution, the method further includes:
[0022] Determining an m-bit client data count (Cm) value based on the adjusted rate of the first frame and a third rate representing a rate allocated by the first layer to the second layer after adjusting the rate of the first frame;
[0023] The first frame is mapped to a second frame of the second layer according to the adjusted rate of the first frame and the Cm value.
[0024] The present application also provides a mapping device, including:
[0025] An inserting unit is used to insert the first identifier and / or the second identifier into the overhead area of the first frame; wherein,
[0026] The first flag is used to instruct to adjust the rate of the first frame, and the second flag is used to instruct to adjust the rate of the first frame from a first rate to a second rate.
[0027] An embodiment of the present application provides an electronic device, including a first processor and a first communication interface, wherein:
[0028] The first processor is configured to insert a first identifier and / or a second identifier into an overhead area of a first frame; wherein,
[0029] The first flag is used to instruct to adjust the rate of the first frame, and the second flag is used to instruct to adjust the rate of the first frame from a first rate to a second rate.
[0030] An embodiment of the present application provides an electronic device, including a first processor and a first memory for storing a computer program that can be run on the first processor.
[0031] Wherein, when the first processor is used to run the computer program, the steps of any of the above methods are performed.
[0032] An embodiment of the present application provides a storage medium on which a computer program is stored. When the computer program is executed by a processor, the steps of any of the above methods are implemented.
[0033] In the mapping method, apparatus, electronic device, and storage medium provided in the embodiments of the present application, the electronic device inserts a first identifier and / or a second identifier into the overhead area of the first frame; wherein the first identifier is used to indicate adjustment of the rate of the first frame, and the second identifier is used to indicate adjustment of the rate of the first frame from the first rate to the second rate. In the above scheme, when the rate of the first frame needs to be adjusted, the first identifier and / or the second identifier is inserted into the overhead area of the first frame, so that the electronic device can flexibly and quickly adjust the rate of the first frame based on the first identifier and / or the second identifier. BRIEF DESCRIPTION OF THE DRAWINGS
[0034] FIG1 is a diagram showing an example of mapping an OSU frame in the related art;
[0035] FIG2 is a schematic diagram of a mapping method flow in an embodiment of the present application;
[0036] FIG3 is a schematic diagram of the first frame structure of an embodiment of the present application;
[0037] FIG4 is a schematic diagram of layer 2 time slot allocation according to an embodiment of the present application;
[0038] FIG5 is a schematic diagram of the structure of a mapping device according to an embodiment of the present application;
[0039] FIG6 is a schematic diagram of the structure of an electronic device according to an embodiment of the present application. DETAILED DESCRIPTION
[0040] OTN includes optical bearer containers of various rates, for example, OPUk, where k = 0, 1, 2, 3, and 4. OPUs of different rates have different k values; the larger the k value, the higher the rate of the OPUk.
[0041] Before transmitting service data over the OTN, it must be mapped into an OSU frame, which is then encapsulated into an optical bearer container. Figure 1 shows an example of OSU frame mapping. As shown in Figure 1, customer data is first mapped into the payload area of the OSU frame. The OSU frame is then encapsulated into an Optical Channel Payload Unit (OPU) frame. Specifically, the OSU frame is first mapped into an Optical Service Tributary Unit (OSTU) frame, which is then multiplexed into the OPU frame. The OSTU frame serves as the payload of the OPU frame. The OPU frame is then encapsulated into an Optical Channel Data Unit (ODU), which is finally encapsulated into an Optical Channel Transport Unit (OTU). In other words, the mapping path for customer data is: customer data – OSU frame – OPUk frame – ODUk – OTUk.
[0042] In related technologies, long OPU multiframe periods and delay indications result in lengthy rate adjustment times. Furthermore, the existing G.HAO lossless bandwidth adjustment mechanism is complex, making it difficult to flexibly and quickly adjust the rate. In summary, when transmitting small-granularity services over OTN, it is impossible to flexibly and quickly adjust the transmission rate of service data.
[0043] Based on this, in various embodiments of the present application, an electronic device inserts a first identifier and / or a second identifier into the overhead area of a first frame; wherein the first identifier is used to indicate adjustment of the rate of the first frame, and the second identifier is used to indicate adjustment of the rate of the first frame from the first rate to the second rate. In the above scheme, when the rate of the first frame needs to be adjusted, the first identifier and / or the second identifier is inserted into the overhead area of the first frame, thereby enabling the electronic device to flexibly and quickly adjust the rate of the first frame based on the first identifier and / or the second identifier.
[0044] The present application will be described in further detail below with reference to the accompanying drawings and embodiments.
[0045] An embodiment of the present application provides a mapping method, which is applied to an electronic device. Referring to FIG. 2 , the method includes:
[0046] Step 201: Insert a first identifier and / or a second identifier into the overhead area of a first frame.
[0047] The first flag is used to indicate adjusting the rate of the first frame, and the second flag is used to indicate adjusting the rate of the first frame from a first rate to a second rate.
[0048] Here, the electronic device maps the customer data into the first frame of the third layer. The customer data is carried in the payload area of the first frame. The customer data can be understood as a customer signal, service data, or customer service. In the process of mapping the first frame to the second frame of the second layer, when the rate of the first frame needs to be adjusted, the first identifier and / or the second identifier are inserted into the overhead (OH) area of the first frame. The rate can be understood as speed (rate), the overhead area can be understood as the overhead area, and insertion can be understood as addition or increase. The rate of the first frame can be the rate at which the first frame is processed, sent, or transmitted. For example, if the frame length of the first frame is M bits and the processing, sending, or transmission time of the first frame is N seconds, then the rate of the first frame is M / N (bits / second).
[0049] The third layer can be understood as the client signal layer; the third layer is the client layer of the second layer, and the second layer is the service layer of the third layer. The second layer may include the OSTU layer, which is used to carry the first frame. The first frame includes, but is not limited to, at least one of the following: an OSU frame, a sub-1G frame, a small-granularity frame, a small-bandwidth frame, and a microchannel (u-channel) frame. The second frame includes an OSTU frame, which serves as the payload of the OPU frame. The second frame can be called a tributary unit of the first frame or an optical service tributary unit (OSTU).
[0050] The terms "identification" and "mark" (indication / indicator) and "indication" can be used interchangeably. The first indicator can be a reconfiguration control overhead (RCOH) indicator or a ROCH indicator; the first indicator can be used to indicate an increase or decrease in the rate of the first frame. The second indicator can be understood as a speed change indicator or a speed change indicator. The first rate is different from the second rate, and the first rate can be greater than or less than the second rate. It should be noted that the second indicator can also be used to indicate the adjusted rate of the first frame (e.g., the second rate).
[0051] For example, when the first frame is an OSU frame, FIG3 shows an example of the structure of the OSU frame. As shown in FIG3, the size of the first frame is 4*1064 bytes (B). The RCOH flag in the i-th first frame indicates that the rate of the first frame will be changed from the first rate R M Changed to R M+NThe RCOH marker is located in the third row of the overhead area of the first frame, corresponding to position x in the OSU signal data stream. The rate change point of the first frame is position y in the OSU signal data stream, which is located at the beginning or starting position of the (i+1)th first frame. That is, position y is located at the starting position of the Frame Alignment Signal (FSA) in the (i+1)th first frame. The interval between the RCOH marker in the (i+1)th first frame and the FSA in the (i+1)th first frame is 133*16 bytes, that is, the interval between positions x and y is 2*1064 bytes.
[0052] It should be noted that the RCOH identifier may include a bandwidth adjustment (BWR, Band Width Resize) identifier, and the BWR identifier may be recorded as BWR_IND, which is used to indicate the rate adjustment state of the first frame; for example, when the value of BWR_IND changes from 0 to 1, it indicates that the rate of the first frame is adjusted, or indicates that the rate of the first frame will be increased from the first rate R M Changed to R M+N , or indicates the adjusted rate of the first frame. When the value of BWR_IND is 0, it indicates to stop adjusting the rate of the first frame, or to keep the rate of the first frame unchanged.
[0053] In the case where the first identifier is inserted into the overhead area of the first frame, in one embodiment, the method further includes:
[0054] When the first identifier is recognized, the rate of the first frame is adjusted after waiting for a first period of time.
[0055] Here, the electronic device transmits the first frame from the third layer to the second layer. When the electronic device recognizes or reads the first identifier, it waits for a first time period and then adjusts the rate of the first frame. The first time period can be understood as a delay or extension period. The delay or extension period can be set according to actual conditions or actual needs.
[0056] The first duration may be a set duration. The first duration corresponds to the electronic device, and the first durations corresponding to different electronic devices may be the same or different. Of course, the first duration may also be set according to actual conditions or actual needs.
[0057] For example, the first duration can be the product of (Y-1) and the slot size, where Y represents the mapping position of the rate change point (position y) of the first frame in the second layer. For example, when the slot size is 16B, the first duration is the duration required to transmit, map, or multiplex (Y-1)*16B of data.
[0058] when hour, Wherein, X represents the mapping position of the first identifier in the second layer; Characterization pair Round up; y represents position y, that is, the position of the rate change point of the first frame in the signal data stream of the first frame; x represents the position of the first identifier or the second identifier of the first frame in the signal data stream of the first frame; P M+N Characterizes the adjusted rate of the first frame; C m (M) represents the Cm value corresponding to the case where the rate of the first frame is not adjusted.
[0059] when hour,
[0060] In one embodiment, adjusting the rate of the first frame includes at least one of the following:
[0061] adjusting the number of time slots allocated from the first layer to the second layer, the second layer being used to carry the first frame;
[0062] Adjust the number of time slots allocated to the first frame in the first layer.
[0063] Here, the electronic device can adjust the rate of the second layer by adjusting the number of time slots allocated by the first layer to the second layer, and then map the first frame to the second frame of the second layer with the adjusted number of time slots, thereby adjusting the rate of the first frame. The electronic device can also adjust the rate of the first frame by adjusting the number of time slots allocated by the first layer to the first frame, and map the first frame to the second frame of the second layer. The second layer is used to carry the first frame, which can be understood as the second layer frame (second frame) being used to encapsulate the first frame.
[0064] The number of time slots can be understood as the number or quantity of time slots. The first layer includes the OPU layer; the first layer is the service layer of the second layer, and the second layer is the client layer of the first layer.
[0065] It should be noted that adjusting the number of time slots allocated from the first layer to the second layer includes increasing or decreasing the number of time slots allocated from the first layer to the second layer based on the current number of time slots in the second layer. Increasing the number of time slots allocated from the first layer to the second layer increases the rate of the first frame. Decreasing the number of time slots allocated from the first layer to the second layer decreases the rate of the first frame.
[0066] Adjust the number of time slots allocated by the first layer to the first frame, including increasing or decreasing the number of time slots allocated by the first layer to the first frame. Increasing the number of time slots allocated by the first layer to the first frame increases the rate of the first frame. Decreasing the number of time slots allocated by the first layer to the first frame decreases the rate of the first frame.
[0067] In the case where the second identifier is inserted into the overhead area of the first frame, in one embodiment, the method further includes:
[0068] When the second identifier is recognized, after waiting for a first period of time, the rate of the first frame is adjusted from the first rate to the second rate.
[0069] Here, the electronic device transmits the first frame from the third layer to the second layer. When the electronic device recognizes or reads the second identifier, it waits for the first time period and then adjusts the rate of the first frame from the first rate to the second rate.
[0070] In one embodiment, adjusting the rate of the first frame from the first rate to the second rate includes at least one of the following:
[0071] Change the number of time slots allocated from the first layer to the second layer from M to M+N;
[0072] The number of time slots allocated to the first frame by the first layer is changed from M to M+N; wherein the second layer is used to carry the first frame, and M and N are both integers.
[0073] Here, before the electronic device adjusts the rate of the first frame, the number of time slots allocated by the first layer to the second layer or the first frame is M, where M is a positive integer. That is, when the rate of the first frame is the first rate, the number of time slots allocated by the first layer to the second layer or the first frame is M; when the rate of the first frame is the second rate, the number of time slots allocated by the first layer to the second layer or the first frame is M+N, where N can be a positive or negative integer. When N is a positive integer, it indicates an increase in the rate of the first frame, with the second rate being greater than the first rate; when N is a negative integer, it indicates a decrease in the rate of the first frame, with the second rate being less than the first rate.
[0074] In order to implement rate adaptation between the first frame and the second layer or the second frame, in one embodiment, the method further includes:
[0075] Determining a Cm value based on the adjusted rate of the first frame and a third rate; wherein the third rate represents the rate allocated from the first layer to the second layer after adjusting the rate of the first frame;
[0076] The first frame is mapped to a second frame of the second layer according to the adjusted rate of the first frame and the Cm value.
[0077] Here, the electronic device determines or obtains the adjusted rate of the first frame and the third rate; determines a Cm value based on the adjusted rate of the first frame and the third rate; and maps the first frame to the second frame of the second layer based on the adjusted rate of the first frame and the determined Cm value. The adjusted rate of the first frame can be understood as the adjusted rate of the first frame or the new rate of the first frame. When the first frame includes a second identifier, the adjusted rate of the first frame is the second rate. The third rate can be understood as the rate assigned by the first layer to the second layer after the rate adjustment of the first frame is completed, such as by adjusting the number of time slots allocated by the first layer to the second layer or the first frame; or the rate assigned by the first layer to the second layer after adjusting the number of time slots allocated by the first layer to the second layer or the first frame. It should be noted that adjusting the rate of the first frame and assigning a rate to the second layer by the third layer can be performed in parallel. In actual applications, these two tasks are performed almost simultaneously, with only circuit processing delay or processing delay.
[0078] It should be noted that before adjusting the rate of the first frame, the electronic device determines a Cm value based on the first rate and the fourth rate, and maps the first frame to the second frame of the second layer based on the first rate and the Cm value. The fourth rate represents the rate that the first layer would allocate to the second layer if the rate of the first frame had not been adjusted.
[0079] It should be noted that the mapping method of the first frame can be Generic Mapping Procedure (GMP). When the rate of the first frame is adjusted, when the mapping from the first frame to the second frame is implemented based on a 128×(M+N) bit granularity, the Cm value can be determined by the following formula:
[0080] Wherein, m represents m bits, Cn represents n-bit client data count, i.e., the number of n-bit data blocks per second frame; f client Characterizes the bit rate or bit rate tolerance of client data; f server Characterizes the bit rate or bit rate tolerance of the second layer payload; B server The number b of bits representing every second frame. It should be noted that 128 in m=128×(M+N) bits can be replaced by a multiple of 8.
[0081] Because only an integer number of n-bit data blocks can be transmitted in each second frame, an integer value of Cm (t) must be used. Since all client data cannot be lost, the rounding process must take into account the truncated portion. For example, a Cm value of 10.25 must be represented as the integer sequence 10, 10, 10, 11. The expression for Cm (t) is as follows:
[0082] If the value of Cm is not an integer, according to the formula or Determine Cm(t). Where, Characterization pair Round down.
[0083] It should be noted that since the client data must fit into the payload area of the second frame, the maximum value of Cm and the maximum client bit rate are limited by the size of the payload area of the second frame. That is, Cm(t)≤P m,server .P m,server Indicates the maximum number or amount of data blocks (n bits) in the payload area of the second frame.
[0084] The following takes the first frame being an OSU frame and the second frame being an OSTU frame as an example, combined with an application example, to further illustrate the embodiment of the present application.
[0085] Application Example 1
[0086] Step 1: The electronic device receives the client data and maps the client data into an OSU frame.
[0087] Step 2: When the electronic device needs to adjust the rate of the OSU frame during the process of mapping the OSU frame to the OSTU frame, the electronic device inserts a first identifier into the overhead area of the OSU frame.
[0088] The first identifier may be an RCOH flag, and the OSTU frame is the payload of the OPU frame.
[0089] Step 3: When the electronic device recognizes the first identifier in the OSU frame, it waits for a first time period and then starts adjusting the rate of the OSU frame.
[0090] For example, when the electronic device recognizes the first identifier in the i-th OSU frame, it waits for a first time period or delays for a period of time, and then adjusts the rates of the (i+1)-th OSU frame and subsequent OSU frames.
[0091] The electronic device can adjust the rate of the OSU frame by adjusting the number of time slots allocated by the OPU layer (first layer) to the second layer (OSTU layer) or OSU frame. The second layer before the time slot number adjustment can be recorded as OSTU.M, and the second layer after the time slot number adjustment can be recorded as OSTU.M+N.
[0092] Exemplarily, the first duration can be the product of (Y-1) and the slot size. As shown in Figure 4, Y represents the mapping position of the rate change point (position y) of the first frame in the second layer OSTU.M+N. The rate change point of the first frame is the FAS in the i+1th OSU frame. For example, when the slot size is 16B, the first duration is the duration required to transmit or map (Y-1)*16B of data.
[0093] when hour,
[0094] Wherein, X represents the mapping position of the first identifier (ROCH identifier) in the i-th OSU frame in the second layer OSTU.M; y represents position y, that is, the position of the FAS in the i+1-th OSU frame in the OSU signal data stream; x represents the position of the first identifier or the second identifier in the i-th OSU frame in the OSU signal data stream; P M+N Characterizes the adjusted rate of the OSU frame; C m (M) represents the Cm value corresponding to the case where the rate of the OSU frame is not adjusted.
[0095] when hour,
[0096] Step 4: The electronic device determines the Cm value according to the adjusted rate of the OSU frame and the third rate.
[0097] The third rate represents the rate assigned by the OPU layer to the second layer after adjusting the rate of the first frame. The third rate can be understood as the rate assigned by the OPU layer to the second layer, OSTU.M+N. The adjusted rate of the OSU frame can be the second rate.
[0098] Step 5: The electronic device maps the OSU frame into the OSTU frame of the second layer according to the adjusted rate of the OSU frame and the Cm value.
[0099] For example, as shown in FIG4 , starting from position Y, the electronic device maps the OSU frame into an OSTU frame of the second layer OSTU.M+N according to the second rate and the determined Cm value.
[0100] It should be noted that before position Y, the electronic device does not adjust the rate of the first frame. At this time, the electronic device determines the Cm value based on the first rate and the fourth rate, and maps the first frame to the second frame of the second-layer OSTU.M based on the first rate and the Cm value. The first rate represents the current rate of the first frame, that is, the unadjusted rate. The fourth rate represents the rate that the OPU layer allocates to the second-layer OSTU.M when the rate of the first frame is not adjusted.
[0101] Application Example 2
[0102] Step 1: The electronic device receives the client data and maps the client data into an OSU frame.
[0103] Step 2: When the electronic device needs to adjust the rate of the OSU frame during the process of mapping the OSU frame to the OSTU frame, the electronic device inserts a second identifier into the overhead area of the OSU frame.
[0104] The second mark can be understood as a speed change mark.
[0105] Step 3: When the electronic device recognizes the second identifier in the OSU frame, it waits for a first period of time and then adjusts the rate of the OSU frame from the first rate to the second rate.
[0106] For example, when the electronic device recognizes the second identifier in the i-th OSU frame, it waits for a first period of time or delays for a period of time, and then adjusts the rate of the (i+1)-th OSU frame and subsequent OSU frames from the first rate to the second rate.
[0107] The step of adjusting the rate of the OSU frame from the first rate to the second rate includes:
[0108] The number of time slots allocated by the OPU layer to the second layer is changed from M to M + N, or the number of time slots allocated by the OPU layer to the OSU frame is changed from M to M + N. The second layer before the time slot number adjustment can be recorded as OSTU.M, and the second layer after the time slot number adjustment can be recorded as OSTU.M+N.
[0109] Step 4: The electronic device determines a Cm value based on the second rate and the third rate; wherein the third rate represents the rate allocated to the second layer after the OPU layer adjusts the number of time slots of the second layer or the OSU frame.
[0110] Since the second layer after adjusting the number of time slots is OSTU.M+N, the third rate can be understood as the rate allocated by the OPU layer to the second layer OSTU.M+N.
[0111] Step 5: The electronic device calls a mapper to map the first frame to a second frame of the second layer according to the second rate and the Cm value.
[0112] Through the above solution, the rate of the second layer can be synchronized with the rate change of the OSU frame.
[0113] In order to implement the mapping method of the embodiment of the present application, the embodiment of the present application further provides a mapping device, which is provided on an electronic device, as shown in FIG5 , and includes:
[0114] Insertion unit 501 is used to insert a first identifier and / or a second identifier into the overhead area of the first frame; wherein the first identifier is used to indicate adjustment of the rate of the first frame, and the second identifier is used to indicate adjustment of the rate of the first frame from the first rate to the second rate.
[0115] In one embodiment, the apparatus further comprises:
[0116] The first adjustment unit is configured to adjust the rate of the first frame after waiting for a first time period when the first identifier is identified.
[0117] In one embodiment, the apparatus further comprises:
[0118] The second adjustment unit is configured to adjust the rate of the first frame from the first rate to the second rate after waiting for a first period of time when the second identifier is identified.
[0119] In one embodiment, the first adjustment unit is specifically configured to perform at least one of the following:
[0120] adjusting the number of time slots allocated from the first layer to the second layer, the second layer being used to carry the first frame;
[0121] Adjust the number of time slots allocated to the first frame in the first layer.
[0122] In one embodiment, the second adjustment unit is specifically configured to perform at least one of the following:
[0123] Change the number of time slots allocated from the first layer to the second layer from M to M+N;
[0124] The number of time slots allocated to the first frame by the first layer is changed from M to M+N; wherein the second layer is used to carry the first frame, and M and N are both integers.
[0125] In one embodiment, the apparatus further comprises:
[0126] a determining unit, configured to determine a Cm value based on the adjusted rate of the first frame and a third rate, wherein the third rate represents a rate allocated from the first layer to the second layer after adjusting the rate of the first frame;
[0127] A mapping unit is configured to map the first frame to a second frame of the second layer according to the adjusted rate of the first frame and the Cm value.
[0128] In actual application, the inserting unit 501, the first adjusting unit, the second adjusting unit, the determining unit and the mapping unit may be implemented by a communication interface in a mapping device.
[0129] It should be noted that the mapping device provided in the above embodiment is illustrated only by the division of the aforementioned program modules. In actual applications, the aforementioned processing can be assigned to different program modules as needed, that is, the internal structure of the device can be divided into different program modules to complete all or part of the aforementioned processing. In addition, the mapping device provided in the above embodiment and the mapping method embodiment are based on the same concept. The specific implementation process is detailed in the method embodiment and will not be repeated here.
[0130] Based on the hardware implementation of the above program modules, and in order to implement the mapping method of the embodiment of the present application, the embodiment of the present application further provides an electronic device, as shown in FIG6 , where the electronic device 600 includes:
[0131] The first communication interface 601 is capable of exchanging information with other network nodes;
[0132] The first processor 602 is connected to the first communication interface 601 to implement information exchange with other network nodes and is used to execute the method provided by one or more of the above technical solutions when running a computer program. The computer program is stored in the first memory 603.
[0133] Specifically, the first processor 602 is used to insert a first identifier and / or a second identifier into the overhead area of the first frame; wherein the first identifier is used to indicate adjustment of the rate of the first frame, and the second identifier is used to indicate adjustment of the rate of the first frame from the first rate to the second rate.
[0134] In one embodiment, the first processor 602 is further configured to adjust the rate of the first frame after waiting for a first period of time when the first identifier is recognized.
[0135] In one embodiment, the first processor 602 is further configured to adjust the rate of the first frame from the first rate to the second rate after waiting for a first period of time when the second identifier is recognized.
[0136] In one embodiment, the first processor 602 is specifically configured to do at least one of the following:
[0137] adjusting the number of time slots allocated from the first layer to the second layer, the second layer being used to carry the first frame;
[0138] Adjust the number of time slots allocated to the first frame in the first layer.
[0139] In one embodiment, the first processor 602 is specifically configured to do at least one of the following:
[0140] Change the number of time slots allocated from the first layer to the second layer from M to M+N;
[0141] The number of time slots allocated by the first layer to the first frame is changed from M to M+N; wherein the second layer is used to carry the first frame, and M and N are both positive integers. In one embodiment, the first processor 602 is further configured to determine a Cm value based on the adjusted rate of the first frame and a third rate; and to map the first frame to a second frame of the second layer based on the adjusted rate of the first frame and the Cm value; wherein the third rate represents the rate allocated by the first layer to the second layer after adjusting the rate of the first frame.
[0142] It should be noted that the specific processing process of the first processor 602 and the first communication interface 601 can be understood by referring to the above method.
[0143] Of course, in actual use, the various components in electronic device 600 are coupled together via bus system 604. It will be appreciated that bus system 604 is used to enable communication between these components. In addition to a data bus, bus system 604 also includes a power bus, a control bus, and a status signal bus. However, for clarity, in FIG6 , all of these buses are labeled as bus system 604.
[0144] The first memory 603 in the embodiment of the present application is used to store various types of data to support the operation of the electronic device 600. Examples of such data include: any computer program used to operate on the electronic device 600.
[0145] The methods disclosed in the above embodiments of the present application can be applied to the first processor 602 or implemented by the first processor 602. The first processor 602 may be an integrated circuit chip with signal processing capabilities. During implementation, each step of the above method can be completed by hardware integrated logic circuits in the first processor 602 or by software instructions. The above first processor 602 may be a general-purpose processor, a digital signal processor (DSP), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. The first processor 602 can implement or execute the various methods, steps, and logic block diagrams disclosed in the embodiments of the present application. A general-purpose processor may be a microprocessor or any conventional processor. The steps of the methods disclosed in the embodiments of the present application can be directly implemented as being executed by a hardware decoding processor, or can be executed by a combination of hardware and software modules in the decoding processor. The software module can be located in a storage medium located in the first memory 603. The first processor 602 reads the information in the first memory 603 and completes the steps of the above method in combination with its hardware.
[0146] In an exemplary embodiment, the electronic device 600 can be implemented by one or more application-specific integrated circuits (ASICs), DSPs, programmable logic devices (PLDs), complex programmable logic devices (CPLDs), field-programmable gate arrays (FPGAs), general-purpose processors, controllers, microcontrollers (MCUs), microprocessors, or other electronic components to perform the aforementioned method.
[0147] It can be understood that the memory (first memory 603) of the embodiment of the present application can be a volatile memory or a non-volatile memory, and can also include both volatile and non-volatile memories. Among them, the non-volatile memory can be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), a magnetic random access memory (FRAM), a flash memory, a magnetic surface memory, an optical disc, or a compact disc read-only memory (CD-ROM); the magnetic surface memory can be a magnetic disk memory or a tape memory. The volatile memory can be a random access memory (RAM), which is used as an external cache. By way of example and not limitation, many forms of RAM are available, such as static random access memory (SRAM), synchronous static random access memory (SSRAM), dynamic random access memory (DRAM), synchronous dynamic random access memory (SDRAM), double data rate synchronous dynamic random access memory (DDRSDRAM), enhanced synchronous dynamic random access memory (ESDRAM), synchronous link dynamic random access memory (SLDRAM), and direct rambus random access memory (DRRAM).The memories described in the embodiments of this application are intended to include, but are not limited to, these and any other suitable types of memories.
[0148] In an exemplary embodiment, the present application also provides a storage medium, namely, a computer storage medium, specifically a computer-readable storage medium, including, for example, a first memory 603 storing a computer program. The computer program can be executed by a first processor 602 of an electronic device 600 to complete the steps of the aforementioned method. The computer-readable storage medium can be a memory such as FRAM, ROM, PROM, EPROM, EEPROM, Flash Memory, magnetic surface storage, optical disk, or CD-ROM.
[0149] It should be noted that: "first", "second" and the like are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. The term "and / or" herein is merely a description of the association relationship of associated objects, indicating that three relationships may exist. For example, A and / or B may represent three situations: A exists alone, A and B exist at the same time, and B exists alone. In addition, the term "at least one" herein represents any combination of at least two of any one or more of a plurality of. For example, including at least one of A, B, and C, may represent any one or more elements selected from the set consisting of A, B, and C. In addition, the technical solutions described in the embodiments of the present application may be arbitrarily combined without conflict.
[0150] The above description is merely a preferred embodiment of the present application and is not intended to limit the scope of protection of the present application.
Claims
1. A mapping method, characterized in that: include: Inserting the first identifier and / or the second identifier in the overhead area of the first frame; wherein, The first flag is used to indicate adjusting the rate of the first frame, and the second flag is used to indicate adjusting the rate of the first frame from a first rate to a second rate.
2. The method according to claim 1, characterized in that The method further comprises: When the first identifier is identified, the rate of the first frame is adjusted after waiting for a first period of time.
3. The method according to claim 1, characterized in that The method further comprises: When the second identifier is identified, after waiting for a first period of time, the rate of the first frame is adjusted from the first rate to the second rate.
4. The method according to claim 2, characterized in that: The adjusting the rate of the first frame includes at least one of the following: adjusting the number of time slots allocated from the first layer to the second layer, where the second layer is used to carry the first frame; or The number of time slots allocated by the first layer to the first frame is adjusted.
5. The method according to claim 3, characterized in that: The adjusting the rate of the first frame from the first rate to the second rate comprises at least one of the following: The number of time slots allocated from the first layer to the second layer is changed from M to M+N; or The number of time slots allocated to the first frame by the first layer is changed from M to M+N; wherein the second layer is used to carry the first frame, and M and N are both integers.
6. The method according to any one of claims 1 to 5, characterized in that: The method further comprises: Determine the m-bit client data count Cm value according to the adjusted rate of the first frame and a third rate; wherein the third rate represents the rate allocated from the first layer to the second layer after adjusting the rate of the first frame; Mapping the first frame to a second frame of the second layer according to the adjusted rate of the first frame and the Cm value.
7. A mapping device, characterized in that: include: An inserting unit is used to insert the first identifier and / or the second identifier into the overhead area of the first frame; wherein, The first flag is used to indicate adjusting the rate of the first frame, and the second flag is used to indicate adjusting the rate of the first frame from a first rate to a second rate.
8. An electronic device, characterized in that: comprising a first processor and a first communication interface, wherein: The first processor is used to insert the first identifier and / or the second identifier into the overhead area of the first frame; The first identifier is used to indicate adjusting the rate of the first frame, and the second identifier is used to indicate adjusting the rate of the first frame from a first rate to a second rate.
9. An electronic device, characterized in that: comprising a first processor and a first memory for storing a computer program capable of being executed on the first processor, Wherein, when the first processor is used to run the computer program, the steps of the method described in any one of claims 1 to 6 are executed.
10. A storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 6 are implemented.
Citation Information
Patent Citations
A method and the corresponding device of low bit rate service signal in optical transport network transmission
CN101217334A
Resizing existing traffic flow in optical transport network
CN103891222A
Method and system for bearing low-speed service in OTN (Optical Transport Network)
CN112788442A
Systems and methods for detecting and propagating resizability information of oduflex connections
US20150365739A1
