Mapping method and device, electronic equipment and storage medium
By inserting a mark in the overhead area of the first frame in OTN to indicate rate adjustment, the problem of long rate adjustment time in traditional OTN is solved, flexible and rapid rate adjustment is achieved, and transmission efficiency is improved.
Patent Information
- Application Number
- CN202310339447.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-03-31
- Publication Date
- 2024-10-01
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 a first identifier and/or a second identifier into the overhead area of the first frame to indicate adjusting the rate of the first frame, so that after recognizing these identifiers and waiting for a period of time, the rate of the first frame is adjusted, including adjusting the rate of the first frame. The number of time slots or time slots allocated by one layer to the second layer to achieve flexible and rapid adjustment of the rate.
It realizes flexible and rapid adjustment of service data transmission rate in OTN, simplifies the rate adjustment process, reduces rate adjustment time, and improves transmission efficiency.
Smart Images

Figure CN118740310A_ABST
Abstract
Description
Technical Field
[0001] 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
[0002] The traditional optical transport network (OTN) has introduced optical service units / optical service units (OSUs) to carry small-granularity services of 10 megabits (M) to 10 gigabits (G). However, in related technologies, when transmitting small-granularity services through OTN, it is impossible to flexibly and quickly adjust the transmission rate of service data. Summary of the invention
[0003] To solve related technical problems, embodiments of the present application provide a mapping method, device, electronic device and storage medium.
[0004] The technical solution of the embodiment of the present application is implemented as follows:
[0005] The present application embodiment provides a mapping method, including:
[0006] Inserting the first identifier and / or the second identifier in the overhead area of the first frame; wherein,
[0007] 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.
[0008] In the above scheme, the method further comprises:
[0009] When the first identifier is identified, the rate of the first frame is adjusted after waiting for a first period of time.
[0010] In the above scheme, the method further comprises:
[0011] 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.
[0012] In the above solution, adjusting the rate of the first frame includes at least one of the following:
[0013] 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;
[0014] Adjust the number of time slots allocated to the first frame by the first layer.
[0015] 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:
[0016] The number of time slots allocated from the first layer to the second layer is changed from M to M+N;
[0017] 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.
[0018] In the above scheme, the method further comprises:
[0019] Determining an m-bit client data count (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;
[0020] 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.
[0021] The present application also provides a mapping device, including:
[0022] An inserting unit is used to insert the first identifier and / or the second identifier into the overhead area of the first frame; wherein,
[0023] 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.
[0024] An embodiment of the present application provides an electronic device, including a first processor and a first communication interface, wherein:
[0025] The first processor is used to insert a first identifier and / or a second identifier into an overhead area of a first frame; wherein,
[0026] 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.
[0027] 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.
[0028] Wherein, when the first processor is used to run the computer program, the steps of any of the above methods.
[0029] 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.
[0030] In the mapping method, device, 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 in 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 in the overhead area of the first frame, so that the electronic device can flexibly and quickly adjust the rate of the first frame according to the first identifier and / or the second identifier. BRIEF DESCRIPTION OF THE DRAWINGS
[0031] Figure 1 This is a mapping example diagram of an OSU frame in the related art;
[0032] Figure 2 This is a flowchart of a mapping method according to an embodiment of the present application;
[0033] Figure 3 This is a schematic diagram of the first frame structure of an embodiment of the present application;
[0034] Figure 4 This is a schematic diagram of layer 2 time slot allocation in an embodiment of the present application;
[0035] Figure 5 This is a schematic diagram of the structure of a mapping device according to an embodiment of the present application;
[0036] Figure 6 This is a schematic diagram of the structure of an electronic device according to an embodiment of the present application. DETAILED DESCRIPTION
[0037] OTN includes optical bearer containers of multiple rates, for example, OPUk, where k = 0, 1, 2, 3, and 4. OPUs of different rates have different k values, and the larger the k value, the higher the rate of OPUk.
[0038] Before transmitting service data through OTN, the service data needs to be mapped into OSU frames and then encapsulated into optical bearer containers. Figure 1 An example of OSU frame mapping is given, such as Figure 1As shown, first, the customer data is mapped into the payload area of the OSU frame, and the payload is also called load; then the OSU frame is encapsulated into the Optical Channel Payload Unit (OPU) frame. Specifically, the OSU frame is first mapped into the Optical Service Tributary Unit (OSTU) frame, and then the OSTU frame is multiplexed into the OPU frame, and the OSTU frame is the payload of the OPU frame; then the OPU frame is encapsulated into the Optical Channel Data Unit (ODU), and finally the ODU is encapsulated into the Optical Channel Transport Unit (OTU). In other words, the mapping path of customer data is: customer data—OSU frame—OPUk frame—ODUk—OTUk.
[0039] In the related art, the long OPU multiframe period and delay indication result in a long rate adjustment time. In addition, the existing G.HAO lossless bandwidth adjustment mechanism is very complex, which makes it impossible to flexibly and quickly adjust the lossless rate. In summary, when transmitting small-granular services through OTN, the transmission rate of service data cannot be adjusted flexibly and quickly.
[0040] Based on this, in various embodiments of the present application, the electronic device inserts a first identifier and / or a second identifier in 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 in the overhead area of the first frame, so that the electronic device can flexibly and quickly adjust the rate of the first frame according to the first identifier and / or the second identifier.
[0041] The present application is further described in detail below in conjunction with the accompanying drawings and embodiments.
[0042] The present application embodiment provides a mapping method applied to an electronic device, referring to Figure 2 , the method comprising:
[0043] Step 201: insert a first identifier and / or a second identifier into an overhead area of a first frame.
[0044] 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.
[0045] Here, the electronic device maps the customer data to the first frame of the third layer, and the customer data is carried in the payload area of the first frame. The customer data can be understood as a customer signal or 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 is 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 an overhead area, and insertion can be understood as adding or increasing.
[0046] The third layer can be understood as a 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 an OSTU layer for carrying a 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 particle frame, a small bandwidth frame, and a microchannel (u-channel) frame. The second frame includes an OSTU frame, and the OSTU frame serves as the payload of the OPU frame; the second frame may be referred to as a tributary unit or an optical service tributary unit (OSTU) of the first frame.
[0047] Identification and sign (indication / indicator), indication, etc. can be used interchangeably. The first indication can be a reconfiguration control overhead (RCOH) indication or a ROCH indication; the first indication can be used to indicate an increase or decrease in the rate of the first frame. The second indication can be understood as a speed change sign or a speed change indication. The first rate is different from the second rate, and the first rate can be greater than the second rate or less than the second rate. It should be noted that the second indication can also be used to indicate the adjusted rate of the first frame (for example, the second rate).
[0048] For example, when the first frame is an OSU frame, Figure 3 An example of the structure of an OSU frame is shown in FIG. Figure 3 As shown, 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 Change to R M+N , the RCOH mark is located in the third row of the overhead area of the first frame, and the third row corresponds 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, and position y is located at the start position or starting position in the i+1th first frame, that is, position y is located at the starting position of the frame alignment signal (FSA, Frame AlignmentSignal) in the i+1th first frame. The interval between the RCOH mark in the i-th first frame and the FSA in the i+1th first frame is 133*16B, that is, the interval between position x and position y is 2*1064B.
[0049] It should be noted that the RCOH identifier may include a bandwidth adjustment (BWR, Band Width Resize) identifier, which may be recorded as BWR_IND, and 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 Change 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.
[0050] In the case where the first identifier is inserted into the overhead area of the first frame, in one embodiment, the method further includes:
[0051] When the first identifier is identified, the rate of the first frame is adjusted after waiting for a first period of time.
[0052] Here, the electronic device transmits the first frame from the third layer to the second layer, and when the electronic device recognizes or reads the first identifier, it waits for the first time and then adjusts the rate of the first frame. Waiting for the first time can be understood as delaying or delaying for a period of time, and the delay or delay period of time can be set according to actual conditions or actual needs.
[0053] The first duration may be a set duration. The first duration corresponds to an 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.
[0054] For example, the first duration may be the product of (Y-1) and the time slot size; Y represents the mapping position of the rate change point (position y) of the first frame in the second layer. For example, when the time slot size is 16B, the first duration is the duration required to transmit or map or multiplex (Y-1)*16B of data.
[0055] when hour,
[0056] Wherein, X represents the mapping position of the first identifier in the second layer; Characterization 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.
[0057] when hour,
[0058] In one embodiment, adjusting the rate of the first frame includes at least one of the following:
[0059] 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;
[0060] Adjust the number of time slots allocated to the first frame by the first layer.
[0061] 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, so that the rate of the first frame can be adjusted. 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 frame of the second layer (the second frame) is used to encapsulate the first frame.
[0062] 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.
[0063] 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 of the second layer. Increasing the number of time slots allocated from the first layer to the second layer is used to increase the rate of the first frame. Decreasing the number of time slots allocated from the first layer to the second layer is used to decrease the rate of the first frame.
[0064] Adjusting the number of time slots allocated by the first layer to the first frame includes 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 is used to increase the rate of the first frame. Decreasing the number of time slots allocated by the first layer to the first frame is used to decrease the rate of the first frame.
[0065] In the case where the second identifier is inserted into the overhead area of the first frame, in one embodiment, the method further includes:
[0066] 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.
[0067] Here, the electronic device transmits the first frame from the third layer to the second layer. When the electronic device recognizes or identifies or reads the second identifier, it waits for a first period of time and then adjusts the rate of the first frame from the first rate to the second rate.
[0068] In one embodiment, adjusting the rate of the first frame from the first rate to the second rate comprises at least one of the following:
[0069] The number of time slots allocated from the first layer to the second layer is changed from M to M+N;
[0070] 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.
[0071] 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 integer or a negative number. When N is a positive integer, it indicates that the rate of the first frame is increased, and the second rate is greater than the first rate; when N is a negative integer, it indicates that the rate of the first frame is reduced, and the second rate is less than the first rate.
[0072] In order to achieve rate adaptation between the first frame and the second layer or the second frame, in one embodiment, the method further includes:
[0073] Determine the Cm value according to the adjusted rate of the first frame and the 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;
[0074] 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.
[0075] Here, the electronic device determines or obtains the adjusted rate and the third rate of the first frame; determines the Cm value according to the adjusted rate and the third rate of the first frame; maps the first frame to the second frame of the second layer according to the adjusted rate of the first frame and the determined Cm value. Among them, 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 contains the second identifier, the adjusted rate of the first frame is the second rate. The third rate can be understood as the rate assigned to the second layer by the first layer when the rate adjustment of the first frame is completed, for example, the number of time slots assigned to the second layer or the first frame by the first layer is adjusted; or the rate assigned to the second layer by the first layer when the number of time slots assigned to the second layer or the first frame by the first layer is adjusted. It should be noted that the two tasks of adjusting the rate of the first frame and allocating the rate of the third layer to the second layer can be performed in parallel; in actual application, the two tasks are almost performed at the same time, with only circuit processing delay or processing delay.
[0076] It should be noted that before adjusting the rate of the first frame, the electronic device determines the Cm value according to the first rate and the fourth rate, and maps the first frame to the second frame of the second layer according to the first rate and the Cm value. The fourth rate represents the rate at which the first layer is allocated to the second layer when the rate of the first frame is not adjusted.
[0077] It should be noted that the mapping method of the first frame may be a 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 may be determined by the following formula:
[0078]
[0079] Wherein, m represents m bits, Cn represents n-bit client data count, that is, the number of n-bit data blocks per second frame; f client Characterizes the bit rate or bit rate tolerance of the client data; f server Characterizes the bit rate or bit rate tolerance of the second layer payload; B server The number of bits b representing every second frame. It should be noted that 128 in m=128×(M+N) bits can be replaced by a multiple of 8.
[0080] Since only an integer number of n-bit data blocks can be transmitted in each second frame, an integer value of Cm (t) is required. Since all client data cannot be lost, the rounding process needs to take into account the truncated part. For example, the value of Cm of 10.25 needs to be represented as the integer sequence 10, 10, 10, 11. The expression of Cm (t) is as follows:
[0081]
[0082] If the value of Cm is not an integer, according to the formula or Determine Cm(t). Where, Characterization 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 (n-bit) data blocks 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 the 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 identifies the first identifier in the OSU frame, it waits for a first period of time and then starts to adjust 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 the OSU frame. The second layer before adjusting the number of time slots can be recorded as OSTU.M, and the second layer after adjusting the number of time slots can be recorded as OSTU.M+N.
[0092] Exemplarily, the first duration may be the product of (Y-1) and the time slot size. Figure 4 As shown, Y represents the mapping position of the rate change point (position y) of the first frame in the second layer OSTU.M+N, and the rate change point of the first frame is the FAS in the i+1th OSU frame. For example, when the time 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 the 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 that the OPU layer allocates to the second layer after adjusting the rate of the first frame. The third rate can be understood as the rate that the OPU layer allocates 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, Figure 4 As shown, starting from position Y, the electronic device maps the OSU frame into the 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 according to the first rate and the fourth rate, and maps the first frame to the second frame of the second layer OSTU.M according to 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 assigned by the OPU layer 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 the 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 identifies 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, after waiting for a first period of time or delaying for a period of time, the rate of the (i+1)-th OSU frame and subsequent OSU frames is adjusted 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 adjustment of the number of time slots can be recorded as OSTU.M, and the second layer after the adjustment of the number of time slots can be recorded as OSTU.M+N.
[0109] Step 4: The electronic device determines the Cm value according to 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 also provides a mapping device, which is arranged on an electronic device, such as Figure 5 As shown, the device comprises:
[0114] Insertion unit 501 is used to insert a first identifier and / or a second identifier in 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 a first rate to a second rate.
[0115] In one embodiment, the device further comprises:
[0116] The first adjustment unit is used to adjust the rate of the first frame after waiting for a first period of time when the first identifier is identified.
[0117] In one embodiment, the device further comprises:
[0118] The second adjustment unit is used 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 used for 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 by the first layer.
[0122] In one embodiment, the second adjustment unit is specifically used for at least one of the following:
[0123] The number of time slots allocated from the first layer to the second layer is changed 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 device further comprises:
[0126] A determination unit, configured to determine a Cm value according to 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 used 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: when the mapping device provided in the above embodiment performs mapping, only the division of the above program modules is used as an example. In actual applications, the above processing can be assigned to different program modules as needed, that is, the internal structure of the device is divided into different program modules to complete all or part of the processing described above. In addition, the mapping device provided in the above embodiment and the mapping method embodiment belong to the same concept, and the specific implementation process is detailed in the method embodiment, which 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 also provides an electronic device, such as Figure 6 As shown, 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 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 in 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 a first rate to a 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 identified.
[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 identified.
[0136] In one embodiment, the first processor 602 is specifically configured to:
[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 by the first layer.
[0139] In one embodiment, the first processor 602 is specifically configured to:
[0140] The number of time slots allocated from the first layer to the second layer is changed 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 used to determine the Cm value according to the adjusted rate of the first frame and the third rate; and to map the first frame to the second frame of the second layer according to 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 application, the various components in the electronic device 600 are coupled together through the bus system 604. It can be understood that the bus system 604 is used to realize the connection and communication between these components. In addition to the data bus, the bus system 604 also includes a power bus, a control bus, and a status signal bus. However, for the sake of clarity, Figure 6 Various 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 method disclosed in the above embodiment 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. In the implementation process, each step of the above method can be completed by the hardware integrated logic circuit or software instructions in the first processor 602. The above-mentioned first processor 602 may be a general-purpose processor, a digital signal processor (DSP, Digital Signal Processor), or other programmable logic devices, discrete gates 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, etc. In combination with the steps of the method disclosed in the embodiment of the present application, it can be directly embodied as a hardware decoding processor to execute, or it 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, which is located in the first memory 603, and 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 (ASIC), DSP, programmable logic device (PLD), complex programmable logic device (CPLD), field programmable gate array (FPGA), general processor, controller, microcontroller (MCU), microprocessor, or other electronic components to execute 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 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, SyncLink Dynamic Random Access Memory), and direct RAMbus random access memory (DRRAM, Direct Rambus Random Access Memory).The memories described in the embodiments of the present 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, for example, including a first memory 603 storing a computer program, and 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", etc. 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: 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 recorded in the embodiments of the present application may be arbitrarily combined without conflict.
[0150] The above description is only a preferred embodiment of the present application and is not intended to limit the protection scope 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, the second layer being used to carry the first frame; Adjust the number of time slots allocated to the first frame by the first layer.
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; 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; 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.
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
Cited By
Mapping method and apparatus, and electronic device and storage medium
EP4694451A1
