Mapping method, mapping device, electronic device, and storage medium
The method of inserting identifiers into frame overhead areas to adjust time slot allocation addresses the inflexibility of OTN rate adjustments, enabling rapid and flexible rate changes for improved small particle service transmission.
Patent Information
- Application Number
- JP2025549917
- Authority / Receiving Office
- JP · JP
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2023-03-31
- Filing Date
- 2024-03-27
- Publication Date
- 2026-02-20
AI Technical Summary
Conventional optical transport networks (OTNs) lack the flexibility and speed to adjust the transmission rate of small particle services effectively.
A method involving the insertion of first and second identifiers into the overhead area of a frame to adjust the frame rate, allowing for flexible and rapid rate changes by modifying the number of time slots allocated between layers.
Enables flexible and quick adjustment of frame rates in OTNs, enhancing the adaptability of small particle service transmission.
Smart Images

Figure 2026506216000001_ABST
Abstract
Description
[Technical Field]
[0001] CROSS-REFERENCE TO RELATED APPLICATIONS This application claims priority from Chinese patent application No. 202310339447.0, filed on March 31, 2023, the entire contents of which are incorporated herein by reference.
[0002] The present application relates to the field of communications technology, and in particular to a mapping method, apparatus, electronic device, and storage medium. [Background technology]
[0003] In a conventional optical transport network (OTN), an optical service unit (OSU) is introduced to transmit small particle services ranging from 10 megabits (M) to 10 gigabits (G). However, related technologies do not allow for flexible and rapid adjustment of the transmission rate of service data when transmitting small particle services over an OTN. Summary of the Invention [Problem to be solved by the invention]
[0004] To solve the related technical problems, the embodiments of the present application provide a mapping method, an apparatus, an electronic device and a storage medium. [Means for solving the problem]
[0005] The technical solutions of the embodiments of the present application are realized as follows:
[0006] An embodiment of the present application provides a mapping method, which includes inserting a first identifier and / or a second identifier into an overhead area of a first frame, where 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.
[0007] In the above solution, the method further includes, when identifying the first identifier, adjusting the rate of the first frame after waiting for a first time period.
[0008] In the above solution, the method further includes, when identifying the second identifier, adjusting the rate of the first frame from the first rate to the second rate after waiting for the first time period.
[0009] In the above solution, adjusting the rate of the first frame includes at least one of adjusting the number of time slots allocated from the first layer to the second layer, where the second layer is used to transmit the first frame, and adjusting the number of time slots allocated to the first frame from the first layer.
[0010] In the above solution, adjusting the rate of the first frame from the first rate to the second rate includes at least one of changing the number of time slots allocated from the first layer to the second layer from M to M+N, and changing the number of time slots allocated from the first layer to the first frame from M to M+N, where the second layer is used to transmit the first frame, and M and N are both integers.
[0011] In the above solution, the method includes the steps of: determining an m-bit client data count (Cm) value based on the adjusted rate of the first frame and a third rate, where the third rate characterizes a rate allocated from the first layer to the second layer after adjusting the rate of the first frame; and mapping the first frame to a second frame of the second layer based on the adjusted rate of the first frame and the Cm value.
[0012] An embodiment of the present application further provides a mapping apparatus, which includes an insertion unit, and the insertion unit is used to insert a first identifier and / or a second identifier into an overhead area of a first frame, where the first identifier is used to indicate adjusting a 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.
[0013] In an embodiment of the present application, an electronic device is provided, the electronic device including a first processor and a first communication interface, wherein the first processor is used to insert a first identifier and / or a second identifier into an overhead area of a first frame, wherein the first identifier is used to instruct adjusting a rate of the first frame, and the second identifier is used to instruct adjusting the rate of the first frame from a first rate to a second rate.
[0014] In an embodiment of the present application, an electronic device is provided, the electronic device including a first processor and a first memory for storing a computer program executable on the first processor, wherein the first processor, when executing the computer program, performs the steps of any of the above methods.
[0015] In an embodiment of the present application, a storage medium is provided, which stores a computer program, which when executed by a processor, performs the steps of any of the methods described above. [Effects of the Invention]
[0016] In the mapping method, device, electronic device, and storage medium provided by the embodiments of the present application, the electronic device inserts a first identifier and / or a second identifier into an overhead area of a first frame, where the first identifier is used to indicate that the rate of the first frame is to be adjusted, and the second identifier is used to indicate that the rate of the first frame is to be adjusted from the first rate to a second rate. In the above solutions, 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 explanation of the drawings]
[0017] [Figure 1] FIG. 1 is a diagram illustrating an example of mapping of an OSU frame in the related art. [Figure 2] 1 is a flowchart of a mapping method according to an embodiment of the present application; [Figure 3] FIG. 2 is a schematic diagram of a first frame structure according to an embodiment of the present application. [Figure 4] FIG. 1 is a schematic diagram of time slot allocation for the second layer time in an embodiment of the present application. [Figure 5] 1 is a structural schematic diagram of a mapping device according to an embodiment of the present application; [Figure 6] 1 is a structural schematic diagram of an electronic device according to an embodiment of the present application; DETAILED DESCRIPTION OF THE INVENTION
[0018] The ONT includes optical transmission containers with various rates, such as OPUk, k=0, 1, 2, 3, 4, etc. The k values of OPUs with different rates are different, and the larger the k value, the higher the rate of the OPUk.
[0019] Before service data can be transmitted through the ONT, it must be mapped into an OSU frame and then packaged into an optical transport container. Figure 1 shows an example of OSU frame mapping. As shown in Figure 1, client data is first mapped into the payload area of the OSU frame. The payload is also called a load. The OSU frame is then packaged into an optical channel payload unit (OPU). Specifically, the OSU frame is first mapped into an optical service tributary unit (OSTU), the OSTU frame is then multiplexed into an OPU frame, and the OSTU frame is the payload of the OPU frame. The OPU frame is then packaged into an optical channel data unit (ODU), and finally the ODU is packaged into an optical channel transport unit (OTU). That is, the client data mapping path is client data - OSU frame - OPUk frame - ODUk - OTUk.
[0020] In the related art, the long OPU multi-frame period and delay indication result in a long rate adjustment time. In addition, the conventional G.HAO lossless adjustment bandwidth mechanism is very complicated, which results in the inability to flexibly and quickly adjust the lossless rate. As described above, when transmitting small particle services over OTN, the transmission rate of service data cannot be flexibly and quickly adjusted.
[0021] Based on this, in various embodiments of the present application, the electronic device inserts a first identifier and / or a second identifier into an overhead area of a first frame. The first identifier is used to instruct adjusting the rate of the first frame, and the second identifier is used to instruct adjusting the rate of the first frame from the first rate to a second rate. In the above solution, 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.
[0022] The present application will now be described in more detail with reference to the drawings and embodiments.
[0023] In an embodiment of the present application, a mapping method is provided. The mapping method is applied to an electronic device, and as shown in FIG. 2, the method includes:
[0024] Step (S201): Insert a first identifier and / or a second identifier into an overhead area of a first frame.
[0025] Here, the first identifier is used to instruct adjusting the rate of a first frame, and the second identifier is used to instruct adjusting the rate of the first frame from a first rate to a second rate.
[0026] Here, the electronic device maps client data to a first frame of layer 3, and the client data is transmitted in the payload area of the first frame. The client data can be understood as a client signal, service data, or client service. If the rate of the first frame needs to be adjusted during the process of mapping the first frame to a second frame of layer 2, a first identifier and / or a second identifier is inserted into the overhead (OH) area of the first frame. The term "rate" can be understood as "rate," the term "overhead area," and the term "insertion" can be understood as "addition" or "increase." The rate of the first frame is the rate at which the first frame is processed, transmitted, or transmitted. For example, if the length of the first frame is M bits and the processing time, transmission time, or transmission time of the first frame is N seconds, the rate of the first frame is M / N (bits / second).
[0027] Layer 3 can be understood as the client signal layer, where Layer 3 is the client layer of Layer 2 and Layer 2 is the service layer of Layer 3. Layer 2 can include an OSTU layer and is used to transmit a first frame. The first frame includes, but is not limited to, at least one of 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 is the payload of an OPU frame. The second frame is called a tributary unit of the first frame or an optical service tributary unit (OSTU).
[0028] The terms identifier and indicator, instruction, etc. may be used interchangeably. The first identifier may be a reconfiguration control overhead (RCOH) identifier or an RCOH indicator. The first identifier may be used to indicate increasing or decreasing the rate of the first frame. The second identifier may be understood as a rate change indicator or a rate change identifier. The first rate is different from the second rate, and the first rate may be greater or less than the second rate. It should be noted that the second identifier is also used to indicate the adjusted rate (e.g., the second rate) of the first frame.
[0029] For example, if the first frame is an OSU frame, FIG. 3 shows an example of the structure of the OSU frame. As shown in FIG. 3, the size of the first frame is 4 * The RCOH indicator in the i-th first frame indicates that the rate of the first frame is the first rate R M From R M+N The RCOH indicator is located in the third row of the overhead area of the first frame, which 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, which is at the beginning or start position within the (i+1)th first frame, i.e., position y is located at the start position of the Frame Alignment Signal (FSA) within the (i+1)th first frame. The spacing between the RCOH indicator of the i-th first frame and the FSA of the (i+1)th first frame is 133*16B, i.e., the spacing between position x and position y is 2*1064B.
[0030] The RCOH identifier may include a Bandwidth Resize (BWR) identifier, which may be denoted as BWR_IND and is used to indicate the rate adjustment status of the first frame. For example, if the value of BWR_IND changes from 0 to 1, it indicates that the rate of the first frame should be adjusted, or the rate of the first frame should be set to the first rate R M From R M+N or indicates the adjusted rate of the first frame. If the value of BWR_IND is 0, it indicates that the rate of the first frame should be stopped from being adjusted or that the rate of the first frame should remain unchanged.
[0031] If the first identifier is inserted in the overhead area of the first frame, in one embodiment, the method adjusts the first frame rate after waiting a first time period once the first identifier is identified.
[0032] Here, the electronic device transmits a first frame from the third layer to the second layer, and if the electronic device recognizes, identifies, or reads the first identifier, it waits for a first time period and then adjusts the rate of the first frame. Waiting for the first time period can be understood as delaying or extending a certain period of time, and the certain period of delay or extension can be set according to actual circumstances or actual needs.
[0033] Here, the first time period may be a set time. The first time period corresponds to an electronic device, and the first time periods corresponding to different electronic devices may be the same or different. Of course, the first time period can also be set according to actual circumstances or actual needs.
[0034] For example, the first time period may be the product of (Y-1) and the time 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, if the slot size is 16B, the first time period may be (Y-1) * This is the time period required to transmit, map, or multiplex 16B data.
[0035] JPEG2026506216000002.jpg11170
[0036] JPEG2026506216000003.jpg38170
[0037] JPEG2026506216000004.jpg12170
[0038] In one embodiment, adjusting the rate of the first frame includes at least one of adjusting a number of time slots allocated from layer 1 to layer 2, where layer 2 is used to transmit the first frame, and adjusting a number of time slots allocated to the first frame from layer 1.
[0039] Here, the electronic device can adjust the rate of the second layer by adjusting the number of time slots allocated from the first layer to the second layer, and then map the first frame to a second frame of the second layer with the adjusted number of time slots, thereby adjusting the rate of the first frame. The electronic device also adjusts the rate of the first frame by adjusting the number of time slots allocated to the first frame from the first layer, and maps the first frame to a second frame of the second layer. It can be understood that the second layer is used to transmit the first frame, and the second layer frame (second frame) is used to encapsulate the first frame.
[0040] The number of time slots can be understood as the quantity or number 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.
[0041] It should be noted that adjusting the number of time slots allocated from layer 1 to layer 2 includes increasing or decreasing the number of time slots allocated from layer 1 to layer 2 based on the current number of time slots in layer 2. Increasing the number of time slots allocated from layer 1 to layer 2 is used to increase the rate of the first frame. Decreasing the number of time slots allocated from layer 1 to layer 2 is used to decrease the rate of the first frame.
[0042] Adjusting the number of time slots allocated to the first frame from layer 1 includes increasing or decreasing the number of time slots allocated to the first frame from layer 1. Increasing the number of time slots allocated to the first frame from layer 1 is used to increase the rate of the first frame. Decreasing the number of time slots allocated to the first frame from layer 1 is used to decrease the rate of the first frame.
[0043] When inserting the second identifier in the overhead region of the first frame, in one embodiment, the method includes adjusting the rate of the first frame from the first rate to the second rate after waiting a first time period once the second identifier is identified.
[0044] Here, the electronic device transmits a first frame from the third layer to the second layer, and when the electronic device recognizes, identifies, or reads the second identifier, adjusts the rate of the first frame from the first rate to the second rate after waiting for a first time period.
[0045] In one embodiment, adjusting the rate of the first frame from a first rate to a second rate includes at least one of changing the number of time slots allocated from layer 1 to layer 2 from M to M+N, and changing the number of time slots allocated to the first frame from layer 1 to M+N, where layer 2 is used to transmit the first frame, and M and N are both integers.
[0046] Here, before the electronic device adjusts the rate of the first frame, the first layer allocates M time slots to the second layer or the first frame, where M is a positive integer. That is, when the rate of the first frame is the first rate, the first layer allocates M time slots to the second layer or the first frame. When the rate of the first frame is the second rate, the first layer allocates M+N time slots to the second layer or the first frame, where N may be a positive or negative integer. When N is a positive integer, the rate of the first frame is increased, and the second rate is greater than the first rate. When N is a negative integer, the rate of the first frame is decreased, and the second rate is less than the first rate.
[0047] To achieve rate adaptation between the first frame and the second or third layer, in one embodiment, the method includes: determining a Cm value based on the adjusted rate of the first frame and a third layer, where the third rate characterizes a rate assigned by the first layer to the second layer after adjusting the rate of the first frame; and mapping the first frame to a second frame of the second layer based on the adjusted rate of the first frame and the Cm value.
[0048] Here, the electronic device determines or obtains an adjusted rate and a third rate for the first frame. Based on the adjusted rate and the third rate for the first frame, a Cm value is determined. Based on the adjusted rate and the determined Cm value, the first frame is mapped to a second frame of the second layer. Here, the adjusted rate for the first frame can be understood as the adjusted rate of the first frame or the new rate for the first frame. If the first frame includes a second identifier, the adjusted rate for the first frame is the second rate. The third rate can be understood as the rate that the first layer assigns to the second layer after the rate adjustment for the first frame is completed, for example, after adjusting the number of time slots assigned from the first layer to the second layer or the first frame, or as the rate that the first layer assigns to the second layer after adjusting the number of time slots assigned from the first layer to the second layer or the first frame. The rate adjustment for the first frame and the rate assignment for the third layer to the second layer can be performed in parallel. In practical applications, the two tasks are performed almost simultaneously, and only circuit processing delays or processing delays exist.
[0049] Note 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 a second frame of the second layer based on the first rate and the Cm value. The fourth rate characterizes the rate assigned from the first layer to the second layer without adjusting the rate of the first frame.
[0050] The mapping method of the first frame may be a Generic Mapping Procedure (GMP). When the rate of the first frame is adjusted, the Cm value can be determined by the following formula (1) when the mapping from the first frame to the second frame is performed based on 128×(M+N) bit granularity:
[0051] JPEG2026506216000005.jpg14170
[0052] where m characterizes m bits, and Cn characterizes the n-bit client data count, i.e., the number of n-bit data blocks in each second frame. client characterizes the client data bit rate or bit rate tolerance. server characterizes the bit rate or bit rate tolerance of the layer 2 payload. server characterizes the number of bits b of each second frame, where m=128×(M+N) bits, where 128 can be replaced by a multiple of 8.
[0053] Since only an integer number of n-bit data blocks are transmitted in each second frame, integer values of Cm, Cm(t), must be used. Since all client data is not lost, the rounding process must account for the truncated portion, e.g., a value of Cm of 10.25 must be represented as the integer sequence 10, 10, 10, 11. The formula for Cm(t) is:
[0054] JPEG2026506216000006.jpg15170
[0055] JPEG2026506216000007.jpg20170
[0056] JPEG2026506216000008.jpg15170
[0057] JPEG2026506216000009.jpg15170
[0058] JPEG2026506216000010.jpg28170
[0059] In the following, the first frame is an OSU frame and the second frame is an OSTU frame as an example, and the application example is combined to further describe the embodiment of the present application.
[0060] Application example 1 Step (S1): The electronic device receives client data and maps the client data to an OSU frame.
[0061] Step (S2): In the process of the electronic device mapping the OSU frame to the OSTU frame, if the electronic device needs to adjust the rate of the OSU frame, insert a first identifier into the overhead area of the OSU frame.
[0062] Here, the first identifier may be an RCOH identifier, and the OSTU frame is the payload of the OPU frame.
[0063] Step (S3): When the electronic device identifies the first identifier in the OSU frame, it waits for a first time period and then starts adjusting the rate of the OSU frame.
[0064] For example, if the electronic device identifies a first identifier in the i-th OSU frame, the electronic device adjusts the rate of the i+1-th OSU frame and subsequent OSU frames after waiting for a first time period or after delaying for a certain time.
[0065] Here, the electronic device can adjust the rate of the OSU frame by adjusting the number of time slots allocated from the OPU layer (layer 1) to the second layer (OSTU layer) or the OSU frame. The second layer before adjusting the number of time slots can be denoted as OSTU.M, and the second layer after adjusting the number of time slots can be denoted as OSTU.M+N.
[0066] For example, the first time period may be the product of (Y-1) and the size of the time slot. As shown in FIG. 4, Y represents the mapping position in the second layer OSTU.M+N of the rate change point (position y) of the first frame. The rate change point of the first frame is the FAS in the (i+1)th OSU frame. For example, if the size of the time slot is 16B, the first time period is the time period required to transmit or map (Y-1)*16B of data.
[0067] JPEG2026506216000011.jpg12170
[0068] Here, X characterizes the mapping position of the first identifier (ROCH identifier) in the i-th OSU frame in the second layer OSTU.M. y characterizes the position y, i.e., the position of the FAS in the i+1-th OSU frame in the OSU signal data stream. x characterizes 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) characterizes the corresponding Cm value when the rate of the OSU frame is not adjusted.
[0069] JPEG2026506216000012.jpg11170
[0070] Step (S4): The electronic device determines the Cm value based on the adjusted rate of the OSU frame and the third rate.
[0071] Here, the third rate characterizes the rate assigned from the OPU layer to the second layer after the rate of the first frame is adjusted, and 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 may be the second rate.
[0072] Step (S5): The electronic device maps the OSU frame to an OSTU frame of the second layer based on the adjusted rate of the OSU frame and the Cm value.
[0073] For example, as shown in FIG. 4, starting from position Y, the electronic device maps the OSU frame to an OSTU frame of the second layer OSTU.M+N based on the second rate and the determined Cm value.
[0074] Note that before position Y, the electronic device has not adjusted the rate of the first frame. In this case, the electronic device determines a Cm value based on the first rate and the fourth rate, and maps the first frame to a second frame of the second layer OSTU.M based on the first rate and the Cm value. The first rate characterizes the current rate of the first frame, i.e., the unadjusted rate. The fourth rate characterizes the rate that would be assigned from the OPU layer to the second layer OSTU.M if the rate of the first frame had not been adjusted.
[0075] Application example 2 Step (S1): The electronic device receives client data and maps the client data to an OSU frame.
[0076] Step (S2): In the process of the electronic device mapping the OSU frame to the OSTU frame, if the electronic device needs to adjust the rate of the OSU frame, insert a second identifier into the overhead area of the OSU frame.
[0077] The second identifier can be understood as a gear shift identifier.
[0078] Step (S3): When the electronic device identifies the second identifier in the OSU frame, it waits for the first time period and then adjusts the rate of the OSU frame from the first rate to the second rate.
[0079] For example, if the electronic device identifies a second identifier in the i-th OSU frame, the electronic device adjusts the rate of the i+1-th OSU frame and subsequent OSU frames from a first rate to a second rate after waiting a first amount of time or after delaying a specific time.
[0080] Here, adjusting the rate of the OSU frame from the first rate to the second rate includes changing the number of time slots allocated from the OPU layer to the second layer from M to M+N, or changing the number of time slots allocated from the OPU layer to the OSU frame from M to M+N. The second layer before adjusting the number of time slots can be denoted as OSTU.M, and the second layer after adjusting the number of time slots can be denoted as OSTU.M+N.
[0081] Step (S4): The electronic device determines a Cm value based on the second rate and the third rate, where the third rate characterizes the rate allocated to the second layer after the OPU layer adjusts the number of time slots in the second layer or OSU frame.
[0082] Since the second layer after adjusting the number of time slots is OSTU.M+N, the third rate can be understood as the rate that the OPU layer assigns to the second layer OSTU.M+N.
[0083] Step (S5): The electronic device invokes the mapper to map the first frame to a second frame of the second layer based on the second rate and the Cm value.
[0084] The above solution allows the rate of Layer 2 to be synchronized with the rate change of the OSU frame.
[0085] To realize the mapping method of the embodiment of the present application, the embodiment of the present application further provides a mapping device. The mapping device is installed in an electronic device, and as shown in Fig. 5, the device includes an insertion unit 501. The insertion unit 501 is used to insert a first identifier and / or a second identifier into the overhead area of a first frame. The first identifier is used to indicate that the rate of the first frame is to be adjusted, and the second identifier is used to indicate that the rate of the first frame is to be adjusted from the first rate to the second rate.
[0086] In one embodiment, the apparatus further includes a first adjusting unit, which is used to adjust the rate of the first frame after waiting for a first time period upon identifying the first identifier.
[0087] In one embodiment, the apparatus further includes a second adjusting unit, which is used to adjust the rate of the first frame from the first rate to the second rate after waiting for a first time period upon identifying the second identifier.
[0088] In one embodiment, the first adjustment unit specifically adjusts the number of time slots allocated from the first layer to the second layer, where the second layer is used to transmit the first frame, and adjusts the number of time slots allocated to the first frame from the first layer.
[0089] In one embodiment, the second adjustment unit is specifically used for at least one of: changing the number of time slots allocated from the first layer to the second layer from M to M+N; and changing the number of time slots allocated from the first layer to the first frame from M to M+N, where the second layer is used to transmit the first frame, and M and N are both integers.
[0090] In one embodiment, the apparatus further includes a determining unit and a mapping unit.
[0091] The determination unit is used to determine a Cm value based on the adjusted rate of the first frame and a third rate, where the third rate characterizes a rate allocated from the first layer to the second layer after adjusting the rate of the first frame.
[0092] The mapping unit is used 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.
[0093] In practical application, the insertion unit 501, the first adjusting unit, the second adjusting unit, the determining unit and the mapping unit can be realized by a communication interface in a mapping device.
[0094] It should be noted that the mapping device provided in the above embodiment only takes the division of the above program modules as an example when performing mapping, and in actual application, the above processes can be completed by allocating them 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 above processes.In addition, the mapping device provided in the above embodiment belongs to the same concept as the mapping method embodiment, and its specific implementation process is detailed in the method embodiment, so it will not be further described here.
[0095] Based on the hardware implementation of the above program modules, and to realize the mapping method of the embodiment of the present application, an electronic device is further provided in the embodiment of the present application. As shown in Figure 6, the electronic device 600 includes a first communication interface 601 and a first processor 602.
[0096] The first communication interface 601 is capable of exchanging information with other network nodes.
[0097] The first processor 602 is connected to the first communication interface 601, and is used to exchange information with other network nodes, and to execute the methods provided by the one or more technical solutions when executing a computer program. The computer program is stored in the first memory 603.
[0098] Specifically, the first processor 602 is configured to insert a first identifier and / or a second identifier into an overhead area of a first frame, where the first identifier is used to indicate that the rate of the first frame is to be adjusted, and the second identifier is used to indicate that the rate of the first frame is to be adjusted from the first rate to a second rate.
[0099] In one embodiment, the first processor 602 is used to adjust the rate of a first frame after waiting a first time period upon identifying a first identifier.
[0100] In one embodiment, the first processor 602 is used to adjust the rate of the first frame from a first rate to a second rate after waiting a first time period upon identifying the second identifier.
[0101] In one embodiment, the first processor 602 is specifically used to at least one of: adjust the number of time slots allocated from layer 1 to layer 2, where layer 2 is used to transmit the first frame; and adjust the number of time slots allocated to the first frame from layer 1.
[0102] In one embodiment, the first processor 602 is specifically used for at least one of: changing the number of time slots allocated from layer 1 to layer 2 from M to M+N; and changing the number of time slots allocated from layer 1 to the first frame from M to M+N, where layer 2 is used to transmit the first frame, and M and N are both integers.
[0103] In one embodiment, the first processor 602 is used 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, where the third rate represents the rate assigned from the first layer to the second layer after the rate of the first frame is adjusted.
[0104] It should be noted that the specific processing processes of the first processor 602 and the first communication interface 601 can be understood with reference to the above methods.
[0105] Of course, in practice, the various components within the electronic device 600 are coupled to one another via a bus system 604. As will be appreciated, the bus system 604 is used to realize communication connections between these components. The bus system 604 may include a power bus, a control bus, and a status signal bus in addition to a data bus. However, for clarity of explanation, the various buses are labeled as the bus system 604 in FIG. 6.
[0106] The first memory 603 in an 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 for operating on the electronic device 600.
[0107] The methods disclosed in the above-described embodiments of the present application may be applied to or implemented by the first processor 602. The first processor 602 may be an integrated circuit chip having signal processing capabilities. In the implementation process, each step of the above method may be completed by an integrated logic circuit of hardware or instructions in software form in the first processor 602. The first processor 602 may be a general-purpose processor, a digital signal processor (DSP), or other programmable logic device, a discrete gate or transistor logic device, a discrete hardware component, etc. The first processor 602 may implement or execute the methods, steps, and logic blocks disclosed in the embodiments of the present application. The general-purpose processor may be a microprocessor or any conventional processor, etc. The steps of the methods disclosed in the embodiments of the present application may be directly performed by a hardware decoding processor or 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 combines with its hardware to complete the steps of the above method.
[0108] In an exemplary embodiment, electronic device 600 is 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, Micro Controller Units (MCUs), microprocessors, or other electronic components to perform the methods described above.
[0109] As can be understood, the memory (first memory 603) in the embodiments of the present application may be volatile or nonvolatile memory, or may include both volatile and nonvolatile memory. Here, the nonvolatile memory may be read-only memory (ROM), programmable read-only memory (PROM), erasable programmable read-only memory (EPROM), electrically erasable programmable read-only memory (EEPROM), magnetic random access memory (FRAM), flash memory, magnetic surface memory, optical disk, or compact disc read-only memory (CD-ROM). The magnetic surface memory may be magnetic disk memory or magnetic tape memory. The volatile memory may be random access memory (RAM) and used as an external cache.Many forms of RAM are available, including, but not limited to, 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 memory bus random access memory (DRRAM). Memory as described in embodiments of this application is intended to include, but is not limited to, these and any other suitable types of memory.
[0110] In an exemplary embodiment, the embodiment of the present application provides a storage medium. The storage medium is a computer storage medium, specifically a computer-readable storage medium, for example, a first memory 603 storing a computer program. The computer program can be executed by the first processor 602 of the electronic device 600 to complete the steps of the method. The computer-readable storage medium may be a memory such as FRAM, ROM, PROM, EPROM, EEPROM, Flash Memory, magnetic surface memory, optical disk, or CD-ROM.
[0111] It should be noted that terms such as "first," "second," etc. are used to distinguish similar things and do not necessarily describe a particular order or priority. The term "and / or" used herein merely describes a relationship between related objects and indicates that three types of relationships may exist. For example, A and / or B can represent the cases where A exists alone, where A and B exist simultaneously, and where B exists alone. In addition, in this specification, "at least one" means any combination of at least two of any one or more of a plurality of elements. For example, "including at least one of A, B, and C" can 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 can be arbitrarily combined without contradiction.
[0112] The above only describes the preferred embodiments of the present application, and is not intended to limit the protection scope of the present application.
Claims
1. 1. A mapping method comprising inserting a first identifier and / or a second identifier into an overhead area of a first frame, wherein the first identifier is used to instruct adjusting the rate of a first frame, and the second identifier is used to instruct adjusting the rate of the first frame from a first rate to a second rate.
2. The mapping method of claim 1 , further comprising: adjusting the first frame rate after waiting for a first time period when the first identifier is identified.
3. The mapping method of claim 1 , further comprising: adjusting a rate of the first frame from the first rate to the second rate after waiting a first time period if the second identifier is identified.
4. Adjusting the rate of the first frame includes: adjusting the number of time slots allocated from layer 1 to layer 2, wherein the layer 2 is used to transmit the first frame; or adjusting the number of time slots allocated to the first frame from the first layer; The mapping method of claim 2 , comprising at least one of:
5. Adjusting the rate of the first frame from the first rate to the second rate includes: changing the number of time slots allocated from the first layer to the second layer from M to M+N; or changing the number of time slots allocated to the first frame from M to M+N from the first layer, where the second layer is used to transmit the first frame, and M and N are both integers; The mapping method of claim 3 , comprising at least one of:
6. The mapping method includes: determining an m-bit client data count Cm value based on the adjusted rate of the first frame and a third rate, where the third rate characterizes a rate allocated from layer 1 to layer 2 after adjusting the rate of the first frame; mapping the first frame to a second frame of the second layer based on the adjusted rate of the first frame and the Cm value; The mapping method according to any one of claims 1 to 5, comprising:
7. 1. A mapping device including an insertion unit, the insertion unit is used to insert a first identifier and / or a second identifier into an overhead area of a first frame; wherein the first identifier is used to instruct adjusting the rate of a first frame, and the second identifier is used to instruct adjusting the rate of the first frame from a first rate to a second rate.
8. 1. An electronic device including a first processor and a first communication interface, wherein the first processor is adapted to insert a first identifier and / or a second identifier into an overhead area of a first frame; wherein the first identifier is used to instruct adjusting a rate of a first frame, and the second identifier is used to instruct adjusting the rate of the first frame from a first rate to a second rate.
9. 1. An electronic device comprising a first processor and a first memory for storing a computer program executable on said first processor, 7. An electronic device, wherein the first processor is used to perform the steps of the mapping method according to any one of claims 1 to 6 when executing the computer program.
10. A storage medium having stored thereon a computer program that, when executed by a processor, performs the steps of the mapping method according to any one of claims 1 to 6.