Data transmission method, nonvolatile storage medium and computer equipment
By modifying the network frame structure in the transmission path, the first target frame is directly converted into a second target frame suitable for the intermediate device, the problem of long transmission time in the combined transmission path is solved, and the transmission efficiency and resource optimization is achieved.
Patent Information
- Application Number
- CN202411220855.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-30
- Publication Date
- 2024-11-12
- Estimated Expiration
- 2044-08-30
AI Technical Summary
In the transmission path composed of a combination of multiple networking methods, data transmission requires a long transmission time, and the prior art has not effectively solved this problem.
By receiving the target frame sent by the first device, modifying its fields to adapt to the structure of the intermediate device, generating the second target frame, and sending it to the second device, directly modifying the frame structure without decapsulating and re-encapsulating, simplifying the forwarding process .
It shortens the data forwarding time, reduces transmission time, improves data transmission efficiency, and avoids resource waste and delay caused by multi-layer packaging and decapsulation.
Smart Images

Figure CN118944814A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of communication technology, and in particular to a data transmission method, a non-volatile storage medium and a computer device. Background Art
[0002] As the mainstream technology of metropolitan area networks, Sliced Packet Network (SPN) technology realizes the forwarding of user service flows based on the physical layer through time slot crossover technology, laying the foundation for carrying ultra-low latency services. For long-distance transmission, SPN services can be carried and transmitted through the Optical Transport Network (OTN), that is, the two ends of the transmission path are SPN devices, and the middle OTN is used as the bearer network to achieve data transmission. With the evolution of SPN technology, SPN will also be used as a transmission network technology like OTN, carrying and transmitting OTN services through SPN, that is, the two ends of the transmission path can be OTN devices, and the middle SPN is used as the bearer network to achieve data transmission.
[0003] However, when transmitting data through a transmission path formed by combining the above two networking modes, it usually takes a long transmission time.
[0004] To address the above-mentioned problems, no effective solution has been proposed yet. Summary of the invention
[0005] The embodiments of the present invention provide a data transmission method, a non-volatile storage medium and a computer device, so as to at least solve the technical problem that a long transmission time is required when data is transmitted in a transmission path composed of a combination of multiple networking modes.
[0006] According to one aspect of an embodiment of the present invention, a data transmission method is provided, including: 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 sliced packet network or an optical transport network; modifying a field 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 the sliced packet network or the optical transport network, and the first device and the second device belong to different networks; sending the second target frame to the second device to forward the target data from the first device to the second device.
[0007] Optionally, the fields included in the first target frame are modified to obtain a second target frame corresponding to the intermediate device, including: identifying a first target frame structure of the first target frame; using a modification method corresponding to the first target frame structure to modify the fields included in the first target frame to obtain a 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; when 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, determining that the modification method corresponding to the first target frame structure is to add the first target field to the first target frame; and / or, when 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, determining that the modification method corresponding to the first target frame structure is to delete the second target field in the first target frame.
[0009] Optionally, before receiving the first target frame sent by the first device, it also includes: obtaining a first initial frame structure of a network in which the first device is located, and a second initial frame structure of a network in which 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 formats of the payloads of the first target frame structure and the second target frame structure match.
[0010] Optionally, determining a first target frame structure and a second target frame structure according to a first initial frame structure and a second initial frame structure includes: determining a common part between 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 a format of the common part in the second initial frame structure matches a format of a common part in the first initial frame structure, to obtain a 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 a format of the common part in the first initial frame structure matches a format of a common part in the second initial frame structure, to obtain a first target frame structure.
[0011] Optionally, 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 to obtain a second target frame structure, including: 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, the first initial frame structure is 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 to obtain a first target frame structure, including: 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 an embodiment of the present invention, a non-volatile storage medium is provided, the non-volatile storage medium including a stored program, wherein when the program is running, the device where the non-volatile storage medium is located is controlled to execute any one of the above-mentioned data transmission methods.
[0014] According to yet another aspect of an embodiment of the present invention, a computer device is provided. The computer device includes a processor, and the processor is used to run a program. When the program is run, any one of the above data transmission methods is executed.
[0015] According to yet another aspect of an embodiment of the present invention, a computer program product is provided, including a computer program, and when the computer program is executed by a processor, any one of the above-mentioned data transmission methods is implemented.
[0016] In an embodiment of the present invention, a method of changing the frame structure of multiple networks is adopted, by 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 sliced 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 an intermediate device, wherein the intermediate device is located between the first device and the second device, the second device is located on a path for transmitting the target data, the second target frame carries target data, the second device belongs to a sliced packet network or an optical transport network, and 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, and the first target frame can be directly modified to the second target frame, without decapsulating the first target frame to obtain the original data, and then re-capsulating to obtain the second target frame, thereby achieving the purpose of shortening the forwarding time, thereby achieving the technical effect of reducing the transmission time, and further solving the technical problem that a long transmission time is required when data is transmitted in a transmission path composed of a combination of multiple networking modes. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] The drawings described herein are used to provide a further understanding of the present invention and constitute a part of this application. The exemplary embodiments of the present invention and their descriptions are used to explain the present invention and do not constitute an improper limitation of the present invention. 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 showing a commonly used structure of a communication system;
[0020] Figure 3 It is a schematic diagram of the data processing flow of a forwarding device provided according to the prior art;
[0021] Figure 4 is a flow chart of a data transmission method provided according to an embodiment of the present invention;
[0022] Figure 5 is a schematic diagram of an FGU' frame structure and an OSU' frame structure provided according to an optional embodiment of the present invention;
[0023] Figure 6 is a schematic diagram of another FGU' frame structure and an OSU' frame structure provided according to an optional embodiment of the present invention;
[0024] Figure 7 is a schematic diagram of a data processing flow of a forwarding device provided according to an optional embodiment of the present invention;
[0025] Figure 8 is a structural block diagram of a data transmission device provided according to an embodiment of the present invention. DETAILED DESCRIPTION
[0026] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work 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 and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0028] First, some nouns or terms that appear in the description of the embodiments of the present application are subject to the following interpretations:
[0029] Sliced Packet Network (SPN) can achieve more efficient resource allocation, reduce latency, and meet the needs of different applications and services by dividing network traffic into different slices.
[0030] Optical Transport Network (OTN) is a high-speed data transmission network based on optical fiber communication. It has the advantages of high speed, high bandwidth and low signal loss. It is widely used in telecommunications, data centers and broadcasting industries.
[0031] Fine granularity unit (FGU) carries fine granular services. Fine granularity technology sends FGU frames in a fixed cycle, and the number and position of time slots contained in each frame are strictly fixed. Each FGU frame consists of overhead (OH), payload, and other structures.
[0032] The Optical Service Unit (OSU) adopts a more flexible payload block division method, which can achieve efficient carrying of customer services at rates from 2M to 100Gbps, enabling OTN to have the ability to sink from the backbone core to the access terminal.
[0033] According to an embodiment of the present invention, a method embodiment of data transmission is provided. It should be noted that the steps shown in the flowchart of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and although a logical order is shown in the flowchart, in some cases, the steps shown or described can be executed in an order different from that shown here.
[0034] The method embodiment provided in the first embodiment of the present application can be executed in a mobile terminal, a computer terminal or a similar computing device. Figure 1 FIG. 1 shows a hardware structure block diagram of a computer terminal for implementing a data transmission method. Figure 1As shown, the computer terminal 10 may include one or more (102a, 102b, ..., 102n are used to illustrate) processors (the processor may include but is not limited to a processing device such as a microprocessor MCU or a programmable logic device FPGA), 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 the BUS bus), a network interface, a power supply and / or a camera. It can be understood by those skilled in the art that Figure 1 The structure shown is only for illustration and does not limit the structure of the above electronic device. Figure 1 More or fewer components as shown, or with Figure 1 Different configurations are shown.
[0035] It should be noted that the one or more processors and / or other data processing circuits described above may generally be referred to herein as "data processing circuits". The data processing circuits may be embodied in whole or in part as software, hardware, firmware, or any other combination thereof. In addition, the data processing circuit may be a single independent processing module, or may be incorporated in whole or in part into any of the other components in the computer terminal 10. As described in the embodiments of the present application, the data processing circuit acts as a processor control (e.g., selection of a variable resistor terminal path connected to an interface).
[0036] The memory 104 can be used to store software programs and modules of application software, such as program instructions / data storage devices corresponding to the data transmission method in the embodiment of the present invention. The processor executes various functional applications and data processing by running the software programs and modules stored in the memory 104, that is, realizing the data transmission method of the above-mentioned application program. The memory 104 may include a high-speed random access memory, and may also include a non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, the memory 104 may further include a memory remotely arranged relative to the processor, and these remote memories may be connected to the computer terminal 10 via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.
[0037] The display may be, for example, a touch screen liquid crystal display (LCD) that enables a user to interact with a user interface of the computer terminal 10 .
[0038] Figure 2 A schematic diagram showing a commonly used structure of a communication system is shown in FIG. Figure 2As shown, the communication system may include a communication device PE1, an intermediate device P1, intermediate devices P2 to intermediate devices Pn, and a communication device PE2. Taking the interaction between the communication device PE1 and the communication device PE2 as an example, when the communication device PE1 (hereinafter referred to as the sending device PE1) sends data to the 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, until the last forwarding device Pn, and 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 sending device PE1 will encapsulate the original data through the FGU module to obtain the FGU frame. Specifically, it is first encoded through the 64 / 66B encoding module, then compressed through the 66 / 65B compression module, and finally formed into an FGU frame through the FGU mapping module, and the FGU frame is transmitted based on the SPN network. Correspondingly, the receiving device PE2 receives the FGU frame through the SPN network, and needs to decapsulate the FGU frame through the FGU module to obtain the original data. Specifically, it needs to pass through the FGU demapping module, the 66 / 65B decompression module and the 64 / 66B decoding module.
[0040] Figure 3 It is a schematic diagram of the data processing flow of the forwarding device provided according to the prior art, such as Figure 3 As shown in (a), the forwarding device P1 needs to receive FGU frames based on the SPN network, and then use the FGU module to decapsulate the received data to obtain the original data; then use the OSU module to encapsulate the original data to obtain the OSU frame. Specifically, it needs to pass through the 64 / 66B encoding module, 256b / 257b module and OSU mapping module in sequence to obtain the OSU frame, and transmit the OSU frame based on the OTN network. Figure 3 As shown in (b), the forwarding device Pn needs to receive the OSU frame based on the OTN network, decapsulate the OSU frame based on the OSU module, and then encapsulate it using the FGU module to obtain the FGU frame, and then send the FGU frame based on the SPN network.
[0041] Similarly, when the transceiver equipment (PE1 and PE2) is an OTN device and the transport network is an SPN, the forwarding device also needs to go through multiple layers of encapsulation and decapsulation to realize the forwarding process, resulting in high forwarding delay. In other words, in the above two networking modes, SPN and OTN have different service encapsulation technologies, so in the service forwarding process, the service needs to be decapsulated first to restore the original data stream, and then re-encapsulated according to another technology, which increases the data forwarding delay and redundant encapsulation modules, resulting in a large waste of resources.
[0042] To solve the above problems, Figure 4 is a flow chart of a data transmission method according to an embodiment of the present invention. Figure 4 As shown, the method comprises the following steps:
[0043] Step S502, 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 sliced packet network or an optical transport network.
[0044] The execution subject of this step may be an intermediate device on the transmission link, and the intermediate device may be a forwarding device located at the junction of the SPN and OTN networks. The first device may be the previous device of the intermediate device, and the subsequent device of the intermediate device may be the second device. The networks in which the first device and the second device are located may be different, that is, the protocol used by the first device to transmit data is different from the protocol used by the second device to transmit data. For example, the first device is an SPN device, and the second device is an OTN device. Of course, it can also be the other way around.
[0045] It should be noted that the intermediate device, as a forwarding device with an adjustable frame structure, may be in the same network as the first device or in the same network as the second device during actual application, and there is no limitation on this. However, the networks in which the first device and the second device are located must be different. In the related technology, complicated decapsulation and encapsulation steps are required to send data from the first device to the second device. In addition, in the complete data transmission process, from the front-end sending end to the end receiving end, multiple forwarding processes may be experienced. In each forwarding process, the forwarding device as an intermediate device can use the embodiments provided by the present invention to forward data.
[0046] The intermediate device may first receive the first target frame sent by the first device. The format of the first target frame may 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, it also includes: obtaining a first initial frame structure of a network in which the first device is located, and a second initial frame structure of a network in which 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 formats of the payloads of the first target frame structure and the second target frame structure match.
[0048] Optionally, the format of the first target frame can be predetermined, that is, the first target frame structure is determined. The frame structure is a way of organizing data when it is transmitted in the network, which defines the format of the data packet, including how to start, end, and how to organize data and control information. In order to enable the first target frame to be smoothly converted to the second target frame, after obtaining the first initial frame structure and the second initial frame structure, the two different frame structures can be compared, and then the two initial frame structures can be adjusted to ensure that the adjusted first target frame structure and the second target frame structure have matching payload formats. Among them, the first target frame structure and the second target frame structure can match the payload format. In this case, even if the frame structure carrying the data changes during the transmission process, the data itself can maintain the original structure and content, and will not be affected by the difference in the frame structure. By ensuring the compatibility of the frame structure and the matching of the payload format, 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 a FGU' frame modified on the basis of the FGU frame, and an OSU' frame modified on the basis of the OSU frame. Specifically, the structures of the FGU frame and the OSU frame can be modified so that the payload formats of the two frame structures are the same, and the modified FGU' frame and OSU' frame are obtained, and the FGU' frame and the OSU' frame are used for data transmission. It should be noted that it is not limited here that the first initial frame structure must be an FGU' frame and the second initial frame structure must be an OSU' frame. The first initial frame structure can also be an OSU' frame, and the second initial frame structure can be an FGU' frame.
[0050] It should be noted that the payload formats in the two frame structures are the same, 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 using the same method.
[0051] As an optional embodiment, determining a first target frame structure and a second target frame structure according to a first initial frame structure and a second initial frame structure includes: determining a 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 a format of the common part in the second initial frame structure matches a format of the common part in the first initial frame structure, to obtain a 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 a format of the common part in the first initial frame structure matches a format of the common part in the second initial frame structure, to obtain a first target frame structure.
[0052] Optionally, the first initial frame structure and the second initial frame structure may be compared to determine the common parts between them, wherein the common parts refer to the same fields or elements existing in both frame structures. Then, the common parts may be adjusted to be consistent, so that when performing frame structure conversion, the common parts can be directly used as part of the new frame structure without additional processing, thereby improving conversion efficiency.
[0053] A variety of methods can be used to adjust the common parts of the first initial frame structure and the second initial frame structure to be consistent. 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 in the second initial frame structure are adjusted to be consistent with the first target frame structure; or conversely, the second initial frame structure can be used as the second target frame structure, and the common parts in the first initial frame structure are adjusted to be consistent with the second target frame structure, thereby ensuring the compatibility of data during the frame structure conversion process.
[0054] As an optional embodiment, 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 to obtain a second target frame structure, including: 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, the first initial frame structure is 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 to obtain the first target frame structure, including: 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 part, it is specifically necessary to adjust the byte length of the common part to be consistent. In the whole process of transmitting data using the frame structure, if the byte length of the common part is inconsistent, it may cause errors in encapsulation or transmission. For example, the receiver may not be able to correctly identify the start and end positions of the frame, or cannot correctly parse the various fields in the frame, which will affect the integrity and transmission quality of the data. In addition, if there is a difference in the byte length of the common part between the two frame structures, it may cause compatibility issues when transmitting data between different devices. Therefore, when the byte length of the common part 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 byte length of the common part in the first initial frame structure can be adjusted 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 may be modified by transcoding from 64 / 66B to 256b / 257b, so that the payload part of the modified FUG' frame is the same as that of the OSU' frame. Figure 5 is a schematic diagram of a FGU' frame structure and an OSU' frame structure provided according to an optional embodiment of the present invention, such as Figure 5 As shown, every 4 64 / 66B blocks in the original data can be converted into 1 256b / 257b block, 66b represents a 64 / 66B block, and a sub-time slot of N bytes actually contains multiple 256b / 257b blocks, and each 256b / 257b block is converted from 4 64 / 66B blocks. The 256b / 257b block can be referred to as a 257b block. After transcoding, the first bit 1b in the 257b block is the control bit, which is stored in the mapping overhead of the sub-time slot, that is, in the 257b_IND field of the overhead, that is, the mapping overhead carries the first bit control bit of 5 257b blocks, and the remaining 256b is stored in the payload area as transcoded data to obtain an FGU' frame. As shown 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 the FGU' frame to the OSU' frame, it is only necessary to add the four fields unique to the OSU' frame at 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 may be modified by transcoding from 256b / 257b to 66 / 65B, so that the payload part of the modified OSU' frame is the same as that of the FUG' frame. Figure 6 is a schematic diagram of another FGU' frame structure and an OSU' frame structure provided according to an optional embodiment of the present invention, such as 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 one 65B block, and multiple 65B blocks are stored in the payload area to obtain a total of M bytes of OSU' frames. 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 also 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 also includes: determining a second encapsulation step of encapsulating the data into a second target frame structure according to the second target frame structure, and determining a second decapsulation step of parsing the 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, in order to ensure that the conversion process of the frame structure proceeds smoothly, the frame structure will be modified, especially to ensure that the payload formats of the two frame structures are consistent. In this case, the encapsulation step and the decapsulation step also need to be re-modified and configured. For example, in the case of the first specific embodiment, it is necessary to modify the encapsulation step of the SPN network, and use the 64 / 66B encoding module, 256b / 257b module and FGU mapping module for encapsulation, and use the FGU demapping module, 256b / 257b module and 64 / 66B decoding module for decapsulation; similarly, in the case of the second specific embodiment, it is necessary to modify the encapsulation step of the OTN network, and use the 64 / 66B encoding module, 66 / 65B compression module and OSU mapping module for encapsulation, and use the OSU demapping module, 66 / 65B compression module and 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, wherein the intermediate device is located between the first device and the second device, the second device is located on the path of transmitting target data, the second target frame carries the target data, the second device belongs to a sliced packet network or an optical transport network, and the first device and the second device belong to different networks.
[0064] In this step, the first device may be the previous device of the intermediate device, and the subsequent device of the intermediate device may be the second device. The networks in which the first device and the second device are located may be different, that is, the protocol used by the first device to transmit data is different from the protocol used by the second device to transmit data. For example, the first device is an SPN device, and the second device is an OTN device. Of course, it may also be the other way around. As a forwarding device with an adjustable frame structure, the intermediate device may be in the same network as the first device or the second device in actual application, and there is no restriction on this. After receiving the first target frame, the intermediate device may modify the first target frame according to its corresponding frame structure to obtain a second target frame corresponding to its own transmission network, wherein the data carried by the second target frame and the first target frame remain unchanged and are both target data.
[0065] As an optional embodiment, the fields included in the first target frame are modified to obtain a second target frame corresponding to the intermediate device, including: identifying a first target frame structure of the first target frame; using a modification method corresponding to the first target frame structure to modify the fields included in the first target frame to obtain a 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 may be pre-configured with a modification method, and after receiving the first target frame, the corresponding modification method may be determined according to the frame structure of the first target frame, and then the second target frame may be modified according to the corresponding modification method. For example, if the first target frame is an FGU' frame, the corresponding modification method is to add four fields unique to the OSU' frame; if the first target frame is an OSU' frame, the corresponding modification method is to delete 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; when 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, determining that the modification method corresponding to the first target frame structure is to add the first target field to the first target frame; and / or, when 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, determining that the modification method corresponding to the first target frame structure is to delete the second target field in 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 difference between the two and obtain a comparison result. If the comparison result shows that the second target frame structure includes a certain field (first target field), and the first target frame structure does not have this field, the determined modification method is to add the first target field to the first target frame structure. If the comparison result shows that the first target frame structure includes a certain field (second target field), and the second target frame structure does not have this field, the determined modification method is to delete the second target field in 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 may send the obtained second target frame directly to the second device to implement the forwarding process of the target data.
[0071] Through the above steps, there is no need to decapsulate the first target frame to obtain the original data and then re-capsulate it to obtain the second target frame, thereby achieving the purpose of shortening the forwarding time, thereby achieving the technical effect of reducing the transmission time, and further solving the technical problem that a long transmission time is required when data is transmitted in a transmission path composed of a combination of multiple networking methods.
[0072] As a specific embodiment, 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 the present invention. Figure 7 is a schematic diagram of a data processing flow of a forwarding device according to an optional embodiment of the present invention, such as Figure 7 As shown in (a), the forwarding device P1 needs to receive the FGU' frame based on the SPN network, directly use the FGU' demapping module to demap the FGU' frame, and then send it to the OSU' mapping module to directly add the corresponding fields and map it to obtain the OSU' frame; Figure 7 As shown in (b), the forwarding device Pn also only needs the OSU' demapping module and the FGU' mapping module to participate in the conversion of the frame structure, without more encapsulation modules and decapsulation modules. Similarly, when the transceiver devices (PE1 and PE2) are OTN devices and the transport network is SPN, the forwarding device does not need to go through multiple layers of encapsulation and decapsulation to achieve the forwarding process.
[0073] Therefore, firstly, the present invention simplifies the encapsulation mapping level to 1 layer, and the forwarding delay is low. Specifically, the encapsulation / decapsulation mapping level of the FGU' and OSU' modules is both level 1, and the overhead part is the same in the two encapsulation / decapsulation technologies, and the payload part is exactly the same. Therefore, there is no need to first decapsulate the service data into the original data stream and then perform encapsulation mapping. Secondly, the payload part can be forwarded directly, and the overhead part can be appropriately added or deleted. The forwarding delay of the service is greatly reduced. Secondly, the present invention has no encoding and decoding modules, which greatly saves logical resources. Specifically, due to the same encapsulation / decapsulation technology, the encoding and decoding modules existing in the original technology, such as 64 / 66B encoding and decoding modules, 66 / 65B compression / decompression modules, and 256b / 257b encoding and decoding modules, are eliminated during the forwarding process. Thereby greatly saving logical resources.
[0074] It should be noted that, for the above-mentioned method embodiments, for the sake of simplicity, they are all described as a series of action combinations, but those skilled in the art should know that the present invention is not limited by the described action sequence, because according to the present invention, certain steps can be performed in other sequences or simultaneously. Secondly, those skilled in the art should also know that the embodiments described in the specification are all preferred embodiments, and the actions and modules involved are not necessarily required by the present invention.
[0075] Through the description of the above implementation methods, those skilled in the art can clearly understand that the data transmission method according to the above embodiment can be implemented by means of software plus a necessary general hardware platform, and of course it can also be implemented by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present invention, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, a magnetic disk, or an optical disk), and includes a number of instructions for enabling a terminal device (which can be a mobile phone, a computer, a server, or a network device, etc.) to execute the methods described in each embodiment of the present invention.
[0076] According to an embodiment of the present invention, a data transmission device for implementing the above data transmission method is also provided. Figure 8 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 is described below.
[0077] The receiving module 82 is used to receive 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.
[0078] The modification module 84 is connected to the receiving module 82, and is used to modify the fields included in the first target frame to obtain a second target frame corresponding to the intermediate device, wherein the intermediate device is located between the first device and the second device, the second device is located on the path of transmitting target data, the second target frame carries the target data, the second device belongs to a sliced packet network or an optical transport network, and the first device and the second device belong to different networks.
[0079] The sending module 86 is connected to the modifying module 84, and is used to send the second target frame to the second device 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 correspond to steps S502 to S506 in the embodiment, and the examples and application scenarios implemented by the multiple modules and the corresponding steps are the same, but are not limited to the contents disclosed in the above embodiment. It should be noted that the above modules, as part of the device, can be run in the computer terminal 10 provided in the embodiment.
[0081] An embodiment of the present invention may provide a computer device. Optionally, in this embodiment, the computer device may be located in at least one network device among multiple network devices of a computer network. The computer device includes a memory and a processor.
[0082] Among them, the memory can be used to store software programs and modules, such as the program instructions / modules corresponding to the data transmission method and device in the embodiment of the present invention. The processor executes various functional applications and data processing by running the software programs and modules stored in the memory, that is, realizing the above-mentioned data transmission method. The memory may include a high-speed random access memory, and may also include a 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 a memory remotely arranged relative to the processor, and these remote memories can be connected to the computer terminal via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.
[0083] The processor can call the information and application stored in the memory through the transmission device to perform the following steps: 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; modify the fields included in the first target frame to obtain a second target frame corresponding to the 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; send the second target frame to the second device to forward the target data from the first device to the second device.
[0084] Optionally, the fields included in the first target frame are modified to obtain a second target frame corresponding to the intermediate device, including: identifying a first target frame structure of the first target frame; using a modification method corresponding to the first target frame structure to modify the fields included in the first target frame to obtain a 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; when 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, determining that the modification method corresponding to the first target frame structure is to add the first target field to the first target frame; and / or, when 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, determining that the modification method corresponding to the first target frame structure is to delete the second target field in the first target frame.
[0086] Optionally, before receiving the first target frame sent by the first device, it also includes: obtaining a first initial frame structure of a network in which the first device is located, and a second initial frame structure of a network in which 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 formats of the payloads of the first target frame structure and the second target frame structure match.
[0087] Optionally, determining a first target frame structure and a second target frame structure according to a first initial frame structure and a second initial frame structure includes: determining a common part between 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 a format of the common part in the second initial frame structure matches a format of a common part in the first initial frame structure, to obtain a 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 a format of the common part in the first initial frame structure matches a format of a common part in the second initial frame structure, to obtain a first target frame structure.
[0088] Optionally, 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 to obtain a second target frame structure, including: 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, the first initial frame structure is 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 to obtain a first target frame structure, including: 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] According to an embodiment of the present invention, a data transmission scheme is provided. By changing the frame structure of multiple networks, 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 slicing packet network or an optical transmission network; the 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 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 slicing packet network or an optical transmission network, and 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, and the first target frame can be directly modified to the second target frame, without decapsulating the first target frame to obtain the original data, and then re-capsulating to obtain the second target frame, thereby achieving the purpose of shortening the forwarding time, thereby achieving the technical effect of reducing the transmission time, and further solving the technical problem that a long transmission time is required when data is transmitted in a transmission path composed of a combination of multiple networking modes.
[0091] A person of ordinary skill in the art can understand that all or part of the steps in the various methods of the above embodiments can be completed by instructing the hardware related to the terminal device through a program, and the program can be stored in a non-volatile storage medium, and the storage medium may include: a flash drive, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, etc.
[0092] The embodiment of the present invention further provides 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 embodiment.
[0093] Optionally, in this embodiment, the non-volatile storage medium may be located in any computer terminal in a computer terminal group in a computer network, or in any mobile terminal in a mobile terminal group.
[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 a path for transmitting the target data, and the first device belongs to a sliced 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 sliced packet network or an optical transport network, and the first device and the second device belong to different networks; sending the second target frame to the second device to forward the target data from the first device to the second device.
[0095] Optionally, the fields included in the first target frame are modified to obtain a second target frame corresponding to the intermediate device, including: identifying a first target frame structure of the first target frame; using a modification method corresponding to the first target frame structure to modify the fields included in the first target frame to obtain a 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; when 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, determining that the modification method corresponding to the first target frame structure is to add the first target field to the first target frame; and / or, when 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, determining that the modification method corresponding to the first target frame structure is to delete the second target field in the first target frame.
[0097] Optionally, before receiving the first target frame sent by the first device, it also includes: obtaining a first initial frame structure of a network in which the first device is located, and a second initial frame structure of a network in which 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 formats of the payloads of the first target frame structure and the second target frame structure match.
[0098] Optionally, determining a first target frame structure and a second target frame structure according to a first initial frame structure and a second initial frame structure includes: determining a common part between 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 a format of the common part in the second initial frame structure matches a format of a common part in the first initial frame structure, to obtain a 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 a format of the common part in the first initial frame structure matches a format of a common part in the second initial frame structure, to obtain a first target frame structure.
[0099] Optionally, 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 to obtain a second target frame structure, including: 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, the first initial frame structure is 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 to obtain a first target frame structure, including: 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] An embodiment of the present invention further provides a computer program product, including a computer program, which implements the steps of the data transmission method in each embodiment of the present application when the computer program is executed by a processor.
[0102] The serial numbers of the above embodiments of the present invention are only for description and do not represent the advantages or disadvantages of the embodiments.
[0103] In the above embodiments of the present invention, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, reference can be made 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. Among them, the device embodiments described above are only schematic. For example, the division of the units can be a logical function division. There may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of units or modules, which can be electrical or other forms.
[0105] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple units. Some or all of the units may be selected according to actual needs to achieve the purpose of the present embodiment.
[0106] In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.
[0107] If the integrated unit is implemented in the form of 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, 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. The computer software product is stored in a storage medium, including a number of instructions to enable a computer device (which can be a personal computer, server or network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), mobile hard disk, magnetic disk or optical disk and other media that can store program codes.
[0108] The above is only a preferred embodiment of the present invention. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principle of the present invention. These improvements and modifications should also be regarded as the scope of protection of the present invention.
Claims
1. A data transmission method, characterized in that: include: 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; Modify the fields included in the first target frame to obtain a second target frame corresponding to the intermediate device, wherein the intermediate device is located between the first device and the second device, the second device is located on a path for transmitting the target data, the second target frame carries the target data, the second device belongs to the sliced packet network or the optical transport network, and 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 a second target frame corresponding to the intermediate device includes: identifying a first target frame structure of the first target frame; The fields included in the first target frame are modified 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.
3. The method according to claim 2, characterized in that The modification method corresponding to the first target frame structure is obtained by: Comparing a second target frame structure used by the intermediate device to transmit data with the first target frame structure to obtain a comparison result; When 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, it is determined that the modification method corresponding to the first target frame structure is to add the first target field to the first target frame; and / or, when 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, it is determined that the modification method corresponding to the first target frame structure is to delete the second target field in 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: Acquire a first initial frame structure of a network in which the first device is located, and a second initial frame structure of a network in which the intermediate device is located; A first target frame structure and a second target frame structure are determined according to the first initial frame structure and the second initial frame structure, wherein formats of payloads of the first target frame structure and the second target frame structure match.
5. The method according to claim 4, characterized in that The determining, according to the first initial frame structure and the second initial frame structure, a first target frame structure and a second target frame structure, comprises: Determining a common portion of the first initial frame structure and the second initial frame structure; Determine the first initial frame structure as the first target frame structure; adjust 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, and obtain the second target frame structure; Or, determine the second initial frame structure as the second target frame structure; adjust 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, and obtain the first target frame structure.
6. The method according to claim 5, characterized in that The adjusting the second initial frame structure so that a format of a common part in the second initial frame structure matches a format of a common part in the first initial frame structure, and obtaining the second target frame structure includes: The byte length of the common part in the second initial frame structure is adjusted 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, thereby obtaining the second target frame structure.
7. The method according to claim 5, characterized in that The adjusting the first initial frame structure so that a format of a common part in the first initial frame structure matches a format of a common part in the second initial frame structure to obtain the first target frame structure includes: The byte length of the common part in the first initial frame structure is adjusted 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, thereby obtaining 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, the device where the non-volatile storage medium is located is controlled to execute 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 a computer program; The processor is used to execute the computer program stored in the memory, and when the computer program is run, the processor executes 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 a processor to execute the data transmission method according to any one of claims 1 to 7.
Citation Information
Patent Citations
Flexible Ethernet overhead multiframe receiving method, device, equipment and medium
CN112994839A
Communication method and device
CN117254871A
Data frame verification method and related equipment
CN117354647A
Field position adjusting method and device, medium and equipment
CN118233513A
System and method for transport overhead and header field cybersecurity
US20230261992A1
