Data transmission method, nonvolatile storage medium and computer device
By directly modifying the frame structure in the combined path of slice packet network and optical transport network, the problem of long data transmission latency was solved, and faster data transmission was achieved.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- PURPLE MOUNTAIN LAB
- Filing Date
- 2024-08-30
- Publication Date
- 2026-07-07
AI Technical Summary
In the transmission path combining slice packet networks and optical transport networks, data transmission delays are relatively long, and existing technologies have not been able to effectively solve this problem.
By receiving and modifying the fields of the first target frame, a second target frame corresponding to the intermediate device is obtained, and the target data is directly forwarded from the first device to the second device, avoiding the decapsulation and recapsulation process.
It shortens data transmission time, reduces forwarding delays in the transmission path, and improves transmission efficiency and reliability.
Smart Images

Figure CN118944814B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of communication technology, and more specifically, to a data transmission method, a non-volatile storage medium, and a computer device. Background Technology
[0002] Sliced Packet Network (SPN) technology, as a mainstream technology in metropolitan area networks (MANs), uses time-slot cross-connection to achieve physical layer-based forwarding of user service flows, laying the foundation for carrying ultra-low latency services. For long-distance transmission, SPN services can be carried and transmitted using Optical Transport Network (OTN). This means that both ends of the transmission path are SPN devices, with the intermediate OTN acting as the bearer network for data transmission. As SPN technology evolves, it will also become a transport network technology, similar to OTN, carrying and transmitting OTN services, meaning that both ends of the transmission path can be OTN devices, with the intermediate SPN acting as the bearer network for data transmission.
[0003] However, when transmitting data through a transmission path constructed by combining the above two networking methods, a relatively long transmission time is usually required.
[0004] There is currently no effective solution to the above problems. Summary of the Invention
[0005] This invention provides a data transmission method, a non-volatile storage medium, and a computer device to at least solve the technical problem that data transmission requires a long transmission time when transmitted through a transmission path composed of multiple networking methods.
[0006] According to one aspect of the present invention, a data transmission method is provided, comprising: receiving a first target frame sent by a first device, wherein the first target frame carries target data, the first device is located on a path for transmitting the target data, and the first device belongs to a slice packet network or an optical transport network; modifying fields included in the first target frame to obtain a second target frame corresponding to an intermediate device, wherein the intermediate device is located between the first device and the second device, the second device is located on the path for transmitting the target data, the second target frame carries target data, the second device belongs to a slice packet network or an optical transport network, and the first device and the second device belong to different networks; and sending the second target frame to the second device to forward the target data from the first device to the second device.
[0007] Optionally, modifying the fields included in the first target frame to obtain a second target frame corresponding to the intermediate device includes: identifying the first target frame structure of the first target frame; modifying the fields included in the first target frame using a modification method corresponding to the first target frame structure to obtain the second target frame, wherein the modification method corresponding to the first target frame structure is obtained by comparing the second target frame structure used by the intermediate device to transmit data with the first target frame structure.
[0008] Optionally, the modification method corresponding to the first target frame structure is obtained by comparing the second target frame structure used by the intermediate device to transmit data with the first target frame structure to obtain a comparison result; if the comparison result indicates that the second target frame structure includes the first target field, and the first target frame structure does not include the first target field, then the modification method corresponding to the first target frame structure is determined to be adding the first target field to the first target frame; and / or, if the comparison result indicates that the first target frame structure includes the second target field, and the second target frame structure does not include the second target field, then the modification method corresponding to the first target frame structure is determined to be deleting the second target field from the first target frame.
[0009] Optionally, before receiving the first target frame sent by the first device, the method further includes: obtaining a first initial frame structure of the network where the first device is located, and a second initial frame structure of the network where the intermediate device is located; determining a first target frame structure and a second target frame structure based on the first initial frame structure and the second initial frame structure, wherein the payload formats of the first target frame structure and the second target frame structure are matched.
[0010] Optionally, determining the first target frame structure and the second target frame structure based on the first initial frame structure and the second initial frame structure includes: determining the common part of the first initial frame structure and the second initial frame structure; determining the first initial frame structure as the first target frame structure; adjusting the second initial frame structure so that the format of the common part in the second initial frame structure matches the format of the common part in the first initial frame structure, thereby obtaining the second target frame structure; or, determining the second initial frame structure as the second target frame structure; adjusting the first initial frame structure so that the format of the common part in the first initial frame structure matches the format of the common part in the second initial frame structure, thereby obtaining the first target frame structure.
[0011] Optionally, adjusting the second initial frame structure so that the format of the common part in the second initial frame structure matches the format of the common part in the first initial frame structure to obtain the second target frame structure includes: adjusting the byte length of the common part in the second initial frame structure so that the byte length of the common part in the second initial frame structure is the same as the byte length of the common part in the first initial frame structure to obtain the second target frame structure.
[0012] Optionally, adjusting the first initial frame structure so that the format of the common part in the first initial frame structure matches the format of the common part in the second initial frame structure to obtain the first target frame structure includes: adjusting the byte length of the common part in the first initial frame structure so that the byte length of the common part in the first initial frame structure is the same as the byte length of the common part in the second initial frame structure to obtain the first target frame structure.
[0013] According to another aspect of the present invention, a non-volatile storage medium is also provided, the non-volatile storage medium including a stored program, wherein, when the program is running, it controls the device where the non-volatile storage medium is located to execute any of the above-described data transmission methods.
[0014] According to another aspect of the present invention, a computer device is also provided, the computer device including a processor, the processor being configured to run a program, wherein the program executes any of the above-described data transmission methods during runtime.
[0015] According to another aspect of the present invention, a computer program product is also provided, including a computer program that, when executed by a processor, implements any of the above-described data transmission methods.
[0016] In this embodiment of the invention, a method of changing the frame structure of multiple networks is adopted. A first target frame sent by a first device is received, wherein the first target frame carries target data, the first device is located on the path for transmitting the target data, and the first device belongs to a slice packet network or an optical transport network. Fields included in the first target frame are modified to obtain a second target frame corresponding to an intermediate device, wherein the intermediate device is located between the first and second devices, the second device is located on the path for transmitting the target data, the second target frame carries target data, the second device belongs to a slice packet network or an optical transport network, and the first and second devices belong to different networks. The second target frame is then sent to the second device to forward the target data from the first device to the second device. This method directly modifies the first target frame into the second target frame without needing to decapsulate the first target frame to obtain the original data and then recapsulate it to obtain the second target frame. This achieves the purpose of shortening the forwarding time, thereby realizing the technical effect of reducing transmission time and solving the technical problem of long transmission times when data is transmitted in a transmission path composed of multiple network topologies. Attached Figure Description
[0017] The accompanying drawings, which are included to provide a further understanding of the invention and form part of this application, illustrate exemplary embodiments of the invention and, together with their description, serve to explain the invention and do not constitute an undue limitation thereof. In the drawings:
[0018] Figure 1A hardware structure block diagram of a computer terminal for implementing a data transmission method is shown.
[0019] Figure 2 A schematic diagram of a commonly used structure in a communication system is shown;
[0020] Figure 3 This is a schematic diagram of the data processing flow of a forwarding device based on existing technology;
[0021] Figure 4 This is a flowchart illustrating the data transmission method provided according to an embodiment of the present invention;
[0022] Figure 5 This is a schematic diagram of an FGU' frame structure and an OSU' frame structure provided by an optional embodiment of the present invention;
[0023] Figure 6 This is a schematic diagram of another FGU' frame structure and OSU' frame structure provided by an optional embodiment of the present invention;
[0024] Figure 7 This is a schematic diagram of the data processing flow of a forwarding device provided according to an optional embodiment of the present invention;
[0025] Figure 8 This is a structural block diagram of a data transmission device provided according to an embodiment of the present invention. Detailed Implementation
[0026] To enable those skilled in the art to better understand the present invention, the technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings of the embodiments of the present invention. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort should fall within the scope of protection of the present invention.
[0027] It should be noted that the terms "first," "second," etc., in the specification, claims, and accompanying drawings of this invention are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate so that the embodiments of the invention described herein can be implemented in orders other than those illustrated or described herein. Furthermore, the terms "comprising" and "having," and any variations thereof, are intended to cover a non-exclusive inclusion; for example, a process, method, system, product, or apparatus that comprises a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units not explicitly listed or inherent to such processes, methods, products, or apparatus.
[0028] First, some nouns or terms that appear in the description of the embodiments of this application shall be interpreted as follows:
[0029] Sliced Packet Network (SPN) divides network traffic into different slices, enabling more efficient allocation of resources, reducing latency, and meeting the needs of different applications and services.
[0030] Optical Transport Network (OTN) is a high-speed data transmission network based on optical fiber communication. It has advantages such as high speed, high bandwidth and low signal loss, and is widely used in the telecommunications, data center and broadcasting industries.
[0031] Fine granularity units (FGUs) carry fine granularity services. FGU technology transmits FGU frames cyclically at fixed intervals, with each frame containing a strictly fixed number and location of time slots. Each FGU frame includes overhead (OH), payload, and other structural components.
[0032] The Optical Service Unit (OSU) adopts a more flexible payload block partitioning method, which can achieve efficient carrying of customer services at speeds from 2M to 100Gbps, enabling OTN to extend from the backbone core to the access end.
[0033] According to an embodiment of the present invention, a method embodiment for data transmission is provided. It should be noted that the steps shown in the flowchart in the accompanying drawings can be executed in a computer system such as a set of computer-executable instructions. Furthermore, although a logical order is shown in the flowchart, in some cases, the steps shown or described may be executed in a different order than that shown here.
[0034] The method embodiment provided in Embodiment 1 of this application can be executed on a mobile terminal, computer terminal, or similar computing device. Figure 1 A hardware block diagram of a computer terminal for implementing a data transmission method is shown. Figure 1As shown, the computer terminal 10 may include one or more processors (shown as 102a, 102b, ..., 102n in the figure) (the processor may include, but is not limited to, a microprocessor MCU or a programmable logic device FPGA, etc.) and a memory 104 for storing data. In addition, it may also include: a display, an input / output interface (I / O interface), a universal serial bus (USB) port (which may be included as one of the ports of a BUS bus), a network interface, a power supply, and / or a camera. Those skilled in the art will understand that... Figure 1 The structure shown is for illustrative purposes only and does not limit the structure of the aforementioned electronic device. For example, computer terminal 10 may also include... Figure 1 The more or fewer components shown, or having the same Figure 1 The different configurations shown.
[0035] It should be noted that the aforementioned one or more processors and / or other data processing circuits are generally referred to herein as "data processing circuits". These data processing circuits may be implemented wholly or partially as software, hardware, firmware, or any other combination thereof. Furthermore, the data processing circuits may be a single, independent processing module, or may be wholly or partially integrated into any other element in the computer terminal 10. As involved in the embodiments of this application, the data processing circuits serve as processor control (e.g., selection of a variable resistor termination path connected to an interface).
[0036] The memory 104 can be used to store software programs and modules of application software, such as the program instructions / data storage device corresponding to the data transmission method in this embodiment of the invention. The processor executes various functional applications and data processing by running the software programs and modules stored in the memory 104, thereby realizing the data transmission method of the aforementioned application. The memory 104 may include high-speed random access memory, and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some instances, the memory 104 may further include memory remotely located relative to the processor, and these remote memories can be connected to the computer terminal 10 via a network. Examples of such networks include, but are not limited to, the Internet, corporate intranets, local area networks, mobile communication networks, and combinations thereof.
[0037] The display may be, for example, a touchscreen liquid crystal display (LCD) that allows the user to interact with the user interface of the computer terminal 10.
[0038] Figure 2 A schematic diagram of a commonly used structure in a communication system is shown, such as... Figure 2As shown, the communication system may include a communication device PE1, intermediate devices P1, intermediate devices P2 to Pn, and a communication device PE2. Taking the interaction between communication devices PE1 and PE2 as an example, when communication device PE1 (hereinafter referred to as the sending device PE1) sends data to communication device PE2 (hereinafter referred to as the receiving device PE2), the sending device PE1 sends the data to the intermediate device P1 (hereinafter referred to as the forwarding device P1). The forwarding device P1 receives and forwards the data, and transmits the data to the next forwarding device P2, and so on, until the last forwarding device Pn. Finally, the forwarding device Pn receives and forwards the data to the receiving device PE2, and the receiving device PE2 parses the received data.
[0039] When the transceiver devices (PE1 and PE2) are SPN devices and the transport network is OTN, the transmitting device PE1 encapsulates the raw data through an FGU module to obtain an FGU frame. Specifically, the data is first encoded by a 64 / 66B encoding module, then compressed by a 66 / 65B compression module, and finally formed into an FGU frame through an FGU mapping module, which is then transmitted over the SPN network. Correspondingly, the receiving device PE2 receives the FGU frame through the SPN network. The FGU frame needs to be decapsulated by an FGU module to obtain the raw data. Specifically, this involves an FGU demapping module, a 66 / 65B decompression module, and a 64 / 66B decoding module.
[0040] Figure 3 This is a schematic diagram of the data processing flow of a forwarding device based on existing technology, such as... Figure 3 As shown in (a), the forwarding device P1 needs to receive FGU frames based on the SPN network. Then, it uses the FGU module to decapsulate the received data to obtain the original data. Next, it uses the OSU module to encapsulate the original data to obtain OSU frames. Specifically, the OSU frames need to pass through a 64 / 66B encoding module, a 256b / 257b module, and an OSU mapping module in sequence to obtain the OSU frames, which are then transmitted over the OTN network. Figure 3 As shown in (b), the forwarding device Pn needs to receive OSU frames based on the OTN network, decapsulate the OSU frames based on the OSU module, encapsulate them using the FGU module to obtain FGU frames, and then send the FGU frames based on the SPN network.
[0041] Similarly, when the transceiver devices (PE1 and PE2) are OTN devices and the transport network is SPN, the forwarding devices also need to undergo multiple layers of encapsulation and decapsulation to complete the forwarding process, resulting in high forwarding latency. In other words, in the two networking methods mentioned above, SPN and OTN use different service encapsulation technologies. Therefore, during service forwarding, the service must first be decapsulated to restore the original data stream, and then recapsulated using another technology. This increases data forwarding latency and adds redundant encapsulation modules, resulting in a significant waste of resources.
[0042] To solve the above problems, Figure 4 This is a flowchart illustrating the data transmission method provided according to an embodiment of the present invention, as shown below. Figure 4 As shown, the method includes the following steps:
[0043] Step S502: Receive a first target frame sent by the first device, wherein the first target frame carries target data, the first device is located on the path for transmitting the target data, and the first device belongs to a slice packet network or an optical transport network.
[0044] The entity executing this step can be an intermediate device on the transmission link. This intermediate device can be a forwarding device located at the boundary between the SPN and OTN networks. The first device can be the preceding device to the intermediate device, and the following device can be the second device. The networks of the first and second devices can be different; that is, the protocol used by the first device to transmit data and the protocol used by the second device to transmit data are different. For example, the first device may be an SPN device, and the second device may be an OTN device. Of course, the reverse is also possible.
[0045] It should be noted that, in practical applications, the intermediate device, as a forwarding device with an adjusted frame structure, may be in the same network as the first device or the second device; this is not limited. However, the networks of the first and second devices will inevitably be different. Related technologies require complex decapsulation and encapsulation steps to send data from the first device to the second device. Furthermore, in the complete data transmission process, from the sending end to the receiving end, multiple forwarding processes may occur. In each forwarding process, the intermediate forwarding device can use the embodiments provided by this invention to forward data.
[0046] The intermediate device can first receive the first target frame sent by the first device. The format of the first target frame can be predetermined and may include overhead and payload. The payload includes the target data to be transmitted this time.
[0047] As an optional embodiment, before receiving the first target frame sent by the first device, the method further includes: obtaining a first initial frame structure of the network where the first device is located, and a second initial frame structure of the network where the intermediate device is located; determining a first target frame structure and a second target frame structure based on the first initial frame structure and the second initial frame structure, wherein the payload formats of the first target frame structure and the second target frame structure are matched.
[0048] Optionally, the format of the first target frame, i.e., the structure of the first target frame, can be predetermined. Frame structure is a way of organizing data during network transmission; it defines the format of data packets, including how they begin and end, and how data and control information are organized. To ensure that the first target frame can be successfully converted into the second target frame, after obtaining the first and second initial frame structures, these two different frame structures can be compared, and then adjusted to ensure that the payload formats of the adjusted first and second target frame structures match. Matching the payload formats of the first and second target frame structures can mean that the payload formats are identical. In this case, even if the frame structure carrying the data changes during transmission, the data itself can maintain its original structure and content and will not be affected by the difference in frame structure. By ensuring the compatibility of frame structures and the matching of payload formats, the efficiency and reliability of data transmission can be improved.
[0049] Specifically, the first initial frame structure and the second initial frame structure can be an FGU' frame modified from an FGU frame, and an OSU' frame modified from an OSU frame. Specifically, the structures of the FGU frame and the OSU frame can be modified to make the payload format of the two frame structures identical, resulting in modified FGU' frames and OSU' frames, which are then used for data transmission. It should be noted that this is not limited to the first initial frame structure being necessarily an FGU' frame and the second initial frame structure being necessarily an OSU' frame; alternatively, the first initial frame structure can be an OSU' frame, while the second initial frame structure can be an FGU' frame.
[0050] It should be noted that the payload format is the same in both frame structures. Specifically, the number of bytes occupied by the payload is the same, the data in the payload is encoded using the same encoding method, and the data is encapsulated in the same way.
[0051] As an optional embodiment, determining the first target frame structure and the second target frame structure based on the first initial frame structure and the second initial frame structure includes: determining the common part of the first initial frame structure and the second initial frame structure; determining the first initial frame structure as the first target frame structure; adjusting the second initial frame structure so that the format of the common part in the second initial frame structure matches the format of the common part in the first initial frame structure to obtain the second target frame structure; or, determining the second initial frame structure as the second target frame structure; adjusting the first initial frame structure so that the format of the common part in the first initial frame structure matches the format of the common part in the second initial frame structure to obtain the first target frame structure.
[0052] Optionally, the first and second initial frame structures can be compared first to determine their common parts. The common parts refer to identical fields or elements present in both frame structures. Then, their common parts can be adjusted to be consistent, so that during frame structure conversion, the common parts can be directly incorporated into the new frame structure without additional processing, thus improving conversion efficiency.
[0053] The common parts of the first initial frame structure and the second initial frame structure can be adjusted to be consistent in various ways. This optional embodiment provides two implementation methods: the first initial frame structure can be used as the first target frame structure, and the common parts of the second initial frame structure can be adjusted to be consistent with the first target frame structure; or the second initial frame structure can be used as the second target frame structure, and the common parts of the first initial frame structure can be adjusted to be consistent with the second target frame structure. This can ensure data compatibility during the frame structure conversion process.
[0054] As an optional embodiment, adjusting the second initial frame structure so that the format of the common part in the second initial frame structure matches the format of the common part in the first initial frame structure to obtain the second target frame structure includes: adjusting the byte length of the common part in the second initial frame structure so that the byte length of the common part in the second initial frame structure is the same as the byte length of the common part in the first initial frame structure to obtain the second target frame structure.
[0055] As an optional embodiment, adjusting the first initial frame structure so that the format of the common part in the first initial frame structure matches the format of the common part in the second initial frame structure to obtain the first target frame structure includes: adjusting the byte length of the common part in the first initial frame structure so that the byte length of the common part in the first initial frame structure is the same as the byte length of the common part in the second initial frame structure to obtain the first target frame structure.
[0056] Optionally, when adjusting the format matching of the common parts, it is specifically necessary to ensure that the byte length of the common parts is consistent. Throughout the entire process of transmitting data using a frame structure, if the byte length of the common parts is inconsistent, errors may occur during encapsulation or transmission. For example, the receiver may not be able to correctly identify the start and end positions of the frame, or may not be able to correctly parse various fields in the frame, affecting data integrity and transmission quality. Furthermore, if the two frame structures differ in the byte length of the common parts, it may lead to compatibility issues when transmitting data between different devices. Therefore, when the byte length of the common parts in the frame structure is the same, the above problems can be avoided, making the transmission process more accurate and reliable, and improving transmission efficiency.
[0057] Therefore, when adjusting the second initial frame structure, the byte length of the common part in the second initial frame structure can be adjusted to be consistent with the byte length of the common part in the first initial frame structure to obtain the second target frame structure. Similarly, the reverse can be achieved by adjusting the byte length of the common part in the first initial frame structure to be consistent with the byte length of the common part in the second initial frame structure to obtain the first target frame structure.
[0058] As a first specific embodiment, the structure of the FGU frame can be modified from 64 / 66B to 256b / 257b, so that the payload portion of the modified FUG' frame is the same as that of the OSU' frame. Figure 5 This is a schematic diagram of the FGU' frame structure and OSU' frame structure provided according to an optional embodiment of the present invention, as shown below. Figure 5 As shown, every four 64 / 66B blocks in the original data can be converted into one 256b / 257b block. 66b represents a 64 / 66B block. A sub-slot of N bytes actually contains multiple 256b / 257b blocks, and each 256b / 257b block is converted from four 64 / 66B blocks. A 256b / 257b block can be simply referred to as a 257b block. After transcoding, the first bit (1b) of the 257b block is a control bit and is stored in the sub-slot's mapping overhead, specifically in the 257b_IND field of the overhead. Therefore, the mapping overhead carries the first control bit of five 257b blocks. The remaining 256b blocks are stored as transcoded data in the payload area, resulting in an FGU' frame. Figure 5 As shown, the first four fields of the FGU' frame structure and the OSU' frame structure are the same, and the last five fields are also the same. When converting an FGU' frame to an OSU' frame, you only need to add the four fields unique to the OSU' frame to the fixed position of the FGU' frame to obtain the OSU' frame.
[0059] Similarly, as a second specific embodiment, the structure of the OSU frame can be modified from 256b / 257b to 66 / 65B, so that the payload portion of the modified OSU' frame is the same as that of the FUG' frame. Figure 6 This is a schematic diagram of another FGU' frame structure and OSU' frame structure provided by an optional embodiment of the present invention, as shown below. Figure 6 As shown, the same encapsulation method as the FGU' frame can be used to convert every 8 64 / 66B blocks in the original data into 1 65B block, and store multiple 65B blocks in the payload area to obtain an OSU' frame of total M bytes. Figure 6 As shown, the first four fields of the OSU' frame structure and the FGU' frame structure are the same, and the last two fields are also the same.
[0060] As an optional embodiment, the method further includes: determining a first encapsulation step of encapsulating data into the first target frame structure according to the first target frame structure, and determining a first decapsulation step of parsing data from the first target frame structure; configuring the first encapsulation step and the first decapsulation step in a device in the network where the first device is located.
[0061] As an optional embodiment, the method further includes: determining a second encapsulation step of encapsulating data into the second target frame structure according to the second target frame structure, and determining a second decapsulation step of parsing data from the second target frame structure; configuring the second encapsulation step and the second decapsulation step in a device in the network where the second device is located.
[0062] Optionally, to ensure the smooth transition of the frame structure, the frame structure may be modified, especially to ensure that the payload format of the two frame structures is consistent. In this case, the encapsulation and decapsulation steps also need to be modified and configured. For example, in the first specific embodiment, the encapsulation step of the SPN network needs to be modified to use a 64 / 66B encoding module, a 256b / 257b module, and an FGU mapping module for encapsulation, and correspondingly use an FGU demapping module, a 256b / 257b module, and a 64 / 66B decoding module for decapsulation. Similarly, in the second specific embodiment, the encapsulation step of the OTN network needs to be modified to use a 64 / 66B encoding module, a 66 / 65B compression module, and an OSU mapping module for encapsulation, and correspondingly use an OSU demapping module, a 66 / 65B compression module, and a 64 / 66B decoding module for decapsulation.
[0063] Step S504: Modify the fields included in the first target frame to obtain a second target frame corresponding to the intermediate device. The intermediate device is located between the first device and the second device. The second device is located on the path for transmitting target data. The second target frame carries target data. The second device belongs to a slice packet network or an optical transport network. The first device and the second device belong to different networks.
[0064] In this step, the first device can be the device preceding the intermediate device, and the device following the intermediate device can be the second device. The networks of the first and second devices can be different; that is, the protocol used by the first device to transmit data and the protocol used by the second device to transmit data are different. For example, the first device may be an SPN device, and the second device may be an OTN device, or vice versa. As a forwarding device capable of adjusting frame structures, the intermediate device, in practical applications, may be in the same network as the first device or the second device; this is not restricted. After receiving the first target frame, the intermediate device can modify the first target frame according to its own corresponding frame structure to obtain a second target frame corresponding to its own transmission network. The data carried in the second target frame and the first target frame remain unchanged; both are target data.
[0065] As an optional embodiment, modifying the fields included in the first target frame to obtain a second target frame corresponding to the intermediate device includes: identifying the first target frame structure of the first target frame; modifying the fields included in the first target frame using a modification method corresponding to the first target frame structure to obtain the second target frame, wherein the modification method corresponding to the first target frame structure is obtained by comparing the second target frame structure used by the intermediate device to transmit data with the first target frame structure.
[0066] Optionally, the intermediate device can be pre-configured with modification methods. After receiving the first target frame, it can determine the corresponding modification method based on the frame structure of the first target frame, and then modify it according to the corresponding modification method to obtain the second target frame. For example, if the first target frame is an FGU' frame, the corresponding modification method is to add the four fields unique to the OSU' frame; if the first target frame is an OSU' frame, the corresponding modification method is to delete the four fields unique to the OSU' frame.
[0067] As an optional embodiment, the modification method corresponding to the first target frame structure is obtained by comparing the second target frame structure used by the intermediate device to transmit data with the first target frame structure to obtain a comparison result; if the comparison result indicates that the second target frame structure includes the first target field, and the first target frame structure does not include the first target field, the modification method corresponding to the first target frame structure is determined to be adding the first target field to the first target frame; and / or, if the comparison result indicates that the first target frame structure includes the second target field, and the second target frame structure does not include the second target field, the modification method corresponding to the first target frame structure is determined to be deleting the second target field from the first target frame.
[0068] Optionally, when determining the modification method, the first target frame structure and the second target frame structure can be compared to determine the differences between them and obtain a comparison result. If the comparison result shows that the second target frame structure includes a certain field (the first target field), but the first target frame structure does not have this field, then the determined modification method is to add this first target field to the first target frame structure. If the comparison result shows that the first target frame structure includes a certain field (the second target field), but the second target frame structure does not have this field, then the determined modification method is to delete this second target field from the first target frame structure.
[0069] Step S506: Send the second target frame to the second device to forward the target data from the first device to the second device.
[0070] In this step, the intermediate device can directly send the obtained second target frame to the second device to realize the forwarding process of the target data.
[0071] Through the above steps, it is not necessary to decapsulate the first target frame to obtain the original data and then recapsulate it to obtain the second target frame. This achieves the goal of shortening the forwarding time and thus realizes the technical effect of reducing transmission time. In turn, it solves the technical problem that data requires a long transmission time when transmitted in a transmission path composed of multiple networking methods.
[0072] As a specific embodiment, in Figure 2 In the structure shown, when the transceiver devices (PE1 and PE2) are SPN devices and the transport network is OTN, the forwarding device can be the intermediate device mentioned in this invention. Figure 7 This is a schematic diagram of the data processing flow of a forwarding device provided according to an optional embodiment of the present invention, such as... Figure 7 As shown in (a), the forwarding device P1 needs to receive FGU' frames based on the SPN network. It directly uses the FGU' demapping module to demapping the FGU' frames, and then sends them to the OSU' mapping module to add the corresponding fields and perform mapping, thus obtaining the OSU' frames; Figure 7 As shown in (b), the forwarding device Pn only needs the OSU' demapping module and the FGU' mapping module to participate in the frame structure conversion, without the need for additional encapsulation and decapsulation modules. Similarly, when the transceiver devices (PE1 and PE2) are OTN devices and the transport network is SPN, the forwarding device also does not need to go through multiple layers of encapsulation and decapsulation to realize the forwarding process.
[0073] Therefore, firstly, this invention simplifies the encapsulation mapping layer to level 1, resulting in low forwarding latency. Specifically, both the FGU' and OSU' modules have a single encapsulation / decapsulation mapping level, and the overhead and payload portions are identical in both encapsulation / decapsulation technologies. Therefore, it is unnecessary to first decapsulate the service data into the original data stream before encapsulation mapping; instead, the payload portion can be forwarded directly, with only appropriate additions or deletions to the overhead portion. This significantly reduces service forwarding latency. Secondly, this invention eliminates encoding / decoding modules, greatly saving logical resources. Specifically, due to the identical encapsulation / decapsulation technology, the encoding / decoding modules present in the original technology, such as 64 / 66B encoding / decoding modules, 66 / 65B compression / decompression modules, and 256b / 257b encoding / decoding modules, are eliminated during forwarding. This significantly saves logical resources.
[0074] It should be noted that, for the sake of simplicity, the foregoing method embodiments are all described as a series of actions. However, those skilled in the art should understand that the present invention is not limited to the described order of actions, because according to the present invention, some steps can be performed in other orders or simultaneously. Furthermore, those skilled in the art should also understand that the embodiments described in the specification are preferred embodiments, and the actions and modules involved are not necessarily essential to the present invention.
[0075] Through the above description of the embodiments, those skilled in the art can clearly understand that the data transmission method according to the above embodiments can be implemented by means of software plus necessary general-purpose hardware platform. Of course, it can also be implemented by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art, can be embodied in the form of a software product. This computer software product is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk) and includes several instructions to cause a terminal device (which may be a mobile phone, computer, server, or network device, etc.) to execute the methods described in the various embodiments of the present invention.
[0076] According to embodiments of the present invention, a data transmission apparatus for implementing the above-described data transmission method is also provided. Figure 8 This is a structural block diagram of a data transmission device provided according to an embodiment of the present invention, such as... Figure 8As shown, the data transmission device includes a receiving module 82, a modifying module 84, and a sending module 86. The data transmission device will be described below.
[0077] The receiving module 82 is used to receive a first target frame sent by the first device, wherein the first target frame carries target data, the first device is located on the path for transmitting the target data, and the first device belongs to a slice packet network or an optical transport network.
[0078] Modification module 84, connected to receiving module 82, is used to modify the fields included in the first target frame to obtain a second target frame corresponding to the intermediate device. The intermediate device is located between the first device and the second device, the second device is located on the path for transmitting target data, the second target frame carries target data, the second device belongs to a slice packet network or an optical transport network, and the first device and the second device belong to different networks.
[0079] The sending module 86, connected to the modification module 84, is used to send the second target frame to the second device so as to forward the target data from the first device to the second device.
[0080] It should be noted that the receiving module 82, the modifying module 84, and the sending module 86 mentioned above correspond to steps S502 to S506 in the embodiments. Multiple modules implement the same instances and application scenarios as their corresponding steps, but are not limited to the content disclosed in the above embodiments. It should also be noted that the above modules, as part of the device, can run in the computer terminal 10 provided in the embodiments.
[0081] Embodiments of the present invention may provide a computer device. Optionally, in this embodiment, the computer device may be located in at least one of a plurality of network devices in a computer network. The computer device includes a memory and a processor.
[0082] The memory can be used to store software programs and modules, such as the program instructions / modules corresponding to the data transmission method and apparatus in this embodiment of the invention. The processor executes various functional applications and data processing by running the software programs and modules stored in the memory, thereby realizing the aforementioned data transmission method. The memory may include high-speed random access memory, and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some instances, the memory may further include memory remotely located relative to the processor, and these remote memories can be connected to a computer terminal via a network. Examples of such networks include, but are not limited to, the Internet, corporate intranets, local area networks, mobile communication networks, and combinations thereof.
[0083] The processor can invoke information and application programs stored in the memory through the transmission device to perform the following steps: receiving a first target frame sent by a first device, wherein the first target frame carries target data, the first device is located on the path for transmitting the target data, and the first device belongs to a slice packet network or an optical transport network; modifying the fields included in the first target frame to obtain a second target frame corresponding to an intermediate device, wherein the intermediate device is located between the first device and the second device, the second device is located on the path for transmitting the target data, the second target frame carries target data, the second device belongs to a slice packet network or an optical transport network, and the first device and the second device belong to different networks; and sending the second target frame to the second device to forward the target data from the first device to the second device.
[0084] Optionally, modifying the fields included in the first target frame to obtain a second target frame corresponding to the intermediate device includes: identifying the first target frame structure of the first target frame; modifying the fields included in the first target frame using a modification method corresponding to the first target frame structure to obtain the second target frame, wherein the modification method corresponding to the first target frame structure is obtained by comparing the second target frame structure used by the intermediate device to transmit data with the first target frame structure.
[0085] Optionally, the modification method corresponding to the first target frame structure is obtained by comparing the second target frame structure used by the intermediate device to transmit data with the first target frame structure to obtain a comparison result; if the comparison result indicates that the second target frame structure includes the first target field, and the first target frame structure does not include the first target field, then the modification method corresponding to the first target frame structure is determined to be adding the first target field to the first target frame; and / or, if the comparison result indicates that the first target frame structure includes the second target field, and the second target frame structure does not include the second target field, then the modification method corresponding to the first target frame structure is determined to be deleting the second target field from the first target frame.
[0086] Optionally, before receiving the first target frame sent by the first device, the method further includes: obtaining a first initial frame structure of the network where the first device is located, and a second initial frame structure of the network where the intermediate device is located; determining a first target frame structure and a second target frame structure based on the first initial frame structure and the second initial frame structure, wherein the payload formats of the first target frame structure and the second target frame structure are matched.
[0087] Optionally, determining the first target frame structure and the second target frame structure based on the first initial frame structure and the second initial frame structure includes: determining the common part of the first initial frame structure and the second initial frame structure; determining the first initial frame structure as the first target frame structure; adjusting the second initial frame structure so that the format of the common part in the second initial frame structure matches the format of the common part in the first initial frame structure, thereby obtaining the second target frame structure; or, determining the second initial frame structure as the second target frame structure; adjusting the first initial frame structure so that the format of the common part in the first initial frame structure matches the format of the common part in the second initial frame structure, thereby obtaining the first target frame structure.
[0088] Optionally, adjusting the second initial frame structure so that the format of the common part in the second initial frame structure matches the format of the common part in the first initial frame structure to obtain the second target frame structure includes: adjusting the byte length of the common part in the second initial frame structure so that the byte length of the common part in the second initial frame structure is the same as the byte length of the common part in the first initial frame structure to obtain the second target frame structure.
[0089] Optionally, adjusting the first initial frame structure so that the format of the common part in the first initial frame structure matches the format of the common part in the second initial frame structure to obtain the first target frame structure includes: adjusting the byte length of the common part in the first initial frame structure so that the byte length of the common part in the first initial frame structure is the same as the byte length of the common part in the second initial frame structure to obtain the first target frame structure.
[0090] This invention provides a data transmission scheme. By altering the frame structure of multiple networks, a first target frame is received from a first device. This first target frame carries target data, and the first device is located on the data transmission path. The first device belongs to a slice packet network or an optical transport network. Fields in the first target frame are modified to obtain a second target frame corresponding to an intermediate device. This intermediate device is located between the first and second devices, and the second device is located on the data transmission path. The second target frame carries target data, and the second device belongs to a slice packet network or an optical transport network. The first and second devices belong to different networks. The second target frame is then sent to the second device to forward the target data from the first device to the second device. This method directly modifies the first target frame into the second target frame, eliminating the need to decapsulate the first target frame to obtain the original data and then recapsulate it to obtain the second target frame. This shortens the forwarding time and reduces transmission time, thus solving the problem of long transmission times when data is transmitted through transmission paths composed of multiple network configurations.
[0091] Those skilled in the art will understand that all or part of the steps in the various methods of the above embodiments can be implemented by a program instructing the hardware related to the terminal device. The program can be stored in a non-volatile storage medium, which may include: flash drive, read-only memory (ROM), random access memory (RAM), magnetic disk or optical disk, etc.
[0092] Embodiments of the present invention also provide a non-volatile storage medium. Optionally, in this embodiment, the non-volatile storage medium can be used to store the program code executed by the data transmission method provided in the above embodiments.
[0093] Optionally, in this embodiment, the non-volatile storage medium may be located in any computer terminal in a group of computer terminals in a computer network, or in any mobile terminal in a group of mobile terminals.
[0094] Optionally, in this embodiment, the non-volatile storage medium is configured to store program code for performing the following steps: receiving a first target frame sent by a first device, wherein the first target frame carries target data, the first device is located on the path for transmitting the target data, and the first device belongs to a slice packet network or an optical transport network; modifying the fields included in the first target frame to obtain a second target frame corresponding to an intermediate device, wherein the intermediate device is located between the first device and the second device, the second device is located on the path for transmitting the target data, the second target frame carries target data, the second device belongs to a slice packet network or an optical transport network, and the first device and the second device belong to different networks; and sending the second target frame to the second device to forward the target data from the first device to the second device.
[0095] Optionally, modifying the fields included in the first target frame to obtain a second target frame corresponding to the intermediate device includes: identifying the first target frame structure of the first target frame; modifying the fields included in the first target frame using a modification method corresponding to the first target frame structure to obtain the second target frame, wherein the modification method corresponding to the first target frame structure is obtained by comparing the second target frame structure used by the intermediate device to transmit data with the first target frame structure.
[0096] Optionally, the modification method corresponding to the first target frame structure is obtained by comparing the second target frame structure used by the intermediate device to transmit data with the first target frame structure to obtain a comparison result; if the comparison result indicates that the second target frame structure includes the first target field, and the first target frame structure does not include the first target field, then the modification method corresponding to the first target frame structure is determined to be adding the first target field to the first target frame; and / or, if the comparison result indicates that the first target frame structure includes the second target field, and the second target frame structure does not include the second target field, then the modification method corresponding to the first target frame structure is determined to be deleting the second target field from the first target frame.
[0097] Optionally, before receiving the first target frame sent by the first device, the method further includes: obtaining a first initial frame structure of the network where the first device is located, and a second initial frame structure of the network where the intermediate device is located; determining a first target frame structure and a second target frame structure based on the first initial frame structure and the second initial frame structure, wherein the payload formats of the first target frame structure and the second target frame structure are matched.
[0098] Optionally, determining the first target frame structure and the second target frame structure based on the first initial frame structure and the second initial frame structure includes: determining the common part of the first initial frame structure and the second initial frame structure; determining the first initial frame structure as the first target frame structure; adjusting the second initial frame structure so that the format of the common part in the second initial frame structure matches the format of the common part in the first initial frame structure, thereby obtaining the second target frame structure; or, determining the second initial frame structure as the second target frame structure; adjusting the first initial frame structure so that the format of the common part in the first initial frame structure matches the format of the common part in the second initial frame structure, thereby obtaining the first target frame structure.
[0099] Optionally, adjusting the second initial frame structure so that the format of the common part in the second initial frame structure matches the format of the common part in the first initial frame structure to obtain the second target frame structure includes: adjusting the byte length of the common part in the second initial frame structure so that the byte length of the common part in the second initial frame structure is the same as the byte length of the common part in the first initial frame structure to obtain the second target frame structure.
[0100] Optionally, adjusting the first initial frame structure so that the format of the common part in the first initial frame structure matches the format of the common part in the second initial frame structure to obtain the first target frame structure includes: adjusting the byte length of the common part in the first initial frame structure so that the byte length of the common part in the first initial frame structure is the same as the byte length of the common part in the second initial frame structure to obtain the first target frame structure.
[0101] Embodiments of the present invention also provide a computer program product, including a computer program that, when executed by a processor, implements the steps of the data transmission methods in various embodiments of the present application.
[0102] The sequence numbers of the above embodiments of the present invention are for descriptive purposes only and do not represent the superiority or inferiority of the embodiments.
[0103] In the above embodiments of the present invention, the descriptions of each embodiment have different focuses. For parts not described in detail in a certain embodiment, please refer to the relevant descriptions of other embodiments.
[0104] In the several embodiments provided in this application, it should be understood that the disclosed technical content can be implemented in other ways. The device embodiments described above are merely illustrative; for example, the division of units can be a logical functional division, and in actual implementation, there may be other division methods. For instance, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the displayed or discussed mutual coupling, direct coupling, or communication connection may be through some interfaces; the indirect coupling or communication connection between units or modules may be electrical or other forms.
[0105] The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple units. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs.
[0106] Furthermore, the functional units in the various embodiments of the present invention can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated unit can be implemented in hardware or as a software functional unit.
[0107] If the integrated unit is implemented as a software functional unit and sold or used as an independent product, it can be stored in a non-volatile storage medium. Based on this understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art, or all or part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of the present invention. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, read-only memory (ROM), random access memory (RAM), portable hard drives, magnetic disks, or optical disks.
[0108] The above description is only a preferred embodiment of the present invention. It should be noted that for those skilled in the art, several improvements and modifications can be made without departing from the principle of the present invention, and these improvements and modifications should also be considered within the scope of protection of the present invention.
Claims
1. A data transmission method, characterized in that, include: Receive a first target frame sent by a first device, wherein the first target frame carries target data, the first device is located on the path for transmitting the target data, and the first device belongs to a slice packet network or an optical transport network; The fields included in the first target frame are modified to obtain a second target frame corresponding to the intermediate device. The intermediate device is located between the first device and the second device. The second device is located on the path for transmitting the target data. The second target frame carries the target data. The second device belongs to the slice packet network or the optical transport network. The first device and the second device belong to different networks. The second target frame is sent to the second device to forward the target data from the first device to the second device.
2. The method according to claim 1, characterized in that, The step of modifying the fields included in the first target frame to obtain the second target frame corresponding to the intermediate device includes: Identify the structure of the first target frame of the first target frame; The fields included in the first target frame are modified by adopting a modification method corresponding to the first target frame structure to obtain the second target frame. The modification method corresponding to the first target frame structure is obtained by comparing the second target frame structure used by the intermediate device to transmit data with the first target frame structure.
3. The method according to claim 2, characterized in that, The modification method corresponding to the first target frame structure is obtained in the following way: By comparing the second target frame structure used by the intermediate device to transmit data with the first target frame structure, a comparison result is obtained; If the comparison result indicates that the second target frame structure includes the first target field, and the first target frame structure does not include the first target field, then the modification method corresponding to the first target frame structure is determined to be adding the first target field to the first target frame; and / or, if the comparison result indicates that the first target frame structure includes the second target field, and the second target frame structure does not include the second target field, then the modification method corresponding to the first target frame structure is determined to be deleting the second target field from the first target frame.
4. The method according to claim 1, characterized in that, Before receiving the first target frame sent by the first device, the method further includes: Obtain the first initial frame structure of the network where the first device is located, and the second initial frame structure of the network where the intermediate device is located; Based on the first initial frame structure and the second initial frame structure, a first target frame structure and a second target frame structure are determined, wherein the payload formats of the first target frame structure and the second target frame structure are matched.
5. The method according to claim 4, characterized in that, The step of determining the first target frame structure and the second target frame structure based on the first initial frame structure and the second initial frame structure includes: Determine the common portion of the first initial frame structure and the second initial frame structure; The first initial frame structure is determined as the first target frame structure; the second initial frame structure is adjusted so that the format of the common part in the second initial frame structure matches the format of the common part in the first initial frame structure, thereby obtaining the second target frame structure; Alternatively, the second initial frame structure can be determined as the second target frame structure; the first initial frame structure can be adjusted so that the format of the common part in the first initial frame structure matches the format of the common part in the second initial frame structure, thereby obtaining the first target frame structure.
6. The method according to claim 5, characterized in that, The step of adjusting the second initial frame structure so that the format of the common part in the second initial frame structure matches the format of the common part in the first initial frame structure to obtain the second target frame structure includes: Adjust the byte length of the common part in the second initial frame structure so that the byte length of the common part in the second initial frame structure is the same as the byte length of the common part in the first initial frame structure to obtain the second target frame structure.
7. The method according to claim 5, characterized in that, The step of adjusting the first initial frame structure so that the format of the common part in the first initial frame structure matches the format of the common part in the second initial frame structure to obtain the first target frame structure includes: Adjust the byte length of the common part in the first initial frame structure so that the byte length of the common part in the first initial frame structure is the same as the byte length of the common part in the second initial frame structure to obtain the first target frame structure.
8. A non-volatile storage medium, characterized in that, The non-volatile storage medium includes a stored program, wherein, when the program is executed, it controls the device containing the non-volatile storage medium to perform the data transmission method according to any one of claims 1 to 7.
9. A computer device, characterized in that, include: Memory and processor The memory stores computer programs; The processor is configured to execute a computer program stored in the memory, wherein when the computer program is executed, the processor performs the data transmission method according to any one of claims 1 to 7.
10. A computer program product comprising computer instructions, characterized in that, The computer instructions are executed by the processor according to the data transmission method of any one of claims 1 to 7.