A phase adjustment method for data transmission and related equipment

By acquiring the data phase difference value of the device in the communication network and adjusting the transmission phase, the problem of data transmission frequency deviation between devices is solved, resource occupation is reduced, and communication efficiency is improved.

CN116055269BActive Publication Date: 2025-06-20HUAWEI TECH CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202111266372.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-10-28
Publication Date
2025-06-20
Estimated Expiration
2041-10-28

AI Technical Summary

Technical Problem

In the multi-port multi-service flow cross scenario, there is a frequency offset in data transmission between devices, resulting in frequent insertion or deletion of cache resources to adjust the sending time, thereby increasing the resource usage of the service flow.

Method used

By obtaining the data phase difference value of each device in the target network and adjusting the transmission phase of the target device according to the phase difference value deviation, frequency deviation adjustment is completed and the use of cache resources is reduced.

Benefits of technology

By adjusting the transmission delay on the device transmission side, frequency offset adjustment is realized, resource utilization of service flow is reduced, and the efficiency of the communication network is improved.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116055269B_ABST
    Figure CN116055269B_ABST
Patent Text Reader

Abstract

The embodiment of the present application discloses a phase adjustment method for data transmission and related devices, which can be implemented on a communication network and is used to reduce the resource occupancy of service flows during frequency offset adjustment. The method specifically includes: obtaining the time difference between the data received by the sending port and the receiving port of each device in the target network, and then obtaining the relative deviation of the data phase difference between the target device and other devices. When the phase difference deviation of the target device does not meet the preset requirements, the sending delay of the target device can be adjusted according to the relative deviation.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] Embodiments of the present application relate to the field of communications, and in particular, to a method for phase adjustment of data transmission and related devices. Background Art

[0002] With the gradual maturity of the 5th generation mobile communication technology (5G), the end-to-end logical "private network" that optimally adapts to various needs of industry users has become a development trend.

[0003] Currently, in the scenario of multi-port and multi-service flow cross, there is a frequency offset in data transmission between devices. For example, the transmission frequency of the sending end is inconsistent with the receiving frequency of the receiving end. Then, it is necessary to perform frequency offset adjustment based on each service flow. When a frequency offset occurs, it is necessary to insert or delete buffer resources (buffer), such as idle code blocks, so as to adjust the transmission time and complete the frequency offset adjustment of the service flow.

[0004] However, when using the above solution to complete the frequency offset adjustment, in order to prevent the message from being pulled apart, it is necessary to allocate enough buffer for each service flow. The required buffer is positively correlated with the service flow data of the port, that is, the more service flow data, the more buffer is required, thus occupying the buffer resources of the service flow. Summary of the Invention

[0005] Embodiments of the present application provide a method for phase adjustment of data transmission and related devices, which is used to reduce the resource occupation of service flows during the frequency offset adjustment of a communication network. Embodiments of the present application also provide corresponding devices for phase adjustment of data transmission, computer devices, computer-readable storage media, chip systems, computer program products, etc.

[0006] In a first aspect of the present application, a method for phase adjustment of data transmission is provided. The method includes: obtaining the data phase difference of each device in the target network according to a preset period, where the data phase difference is the time difference between the sending port and the receiving port of each device for receiving data; determining the phase difference deviation of each device according to the data phase difference, where the phase difference deviation is the deviation between the data phase differences obtained by each device in multiple preset periods; when the phase difference deviation of the target device does not meet the preset requirement, adjusting the sending phase of the target device according to the phase difference deviation.

[0007] The preset period in the present application can be predefined by the user. The target network can be composed of multiple devices. Specifically, the target network can be a network that provides smaller-granularity pipeline bandwidth on a flexible Ethernet.

[0008] The data phase difference in this application is the time that the data stays in each device. The phase difference deviation is the deviation between multiple data phase differences of each device itself. The phase difference deviation of the target device not meeting the preset requirement may mean that the phase difference deviation of the target device deviates too much from the preset value.

[0009] In this first aspect, the time difference between the data received by the sending port and the receiving port of each device in the target network is obtained, and then the relative deviation of the data phase difference between the target device and other devices is obtained. When there is a target device whose phase difference deviation does not meet the preset requirement, the sending delay of the target device can be adjusted according to the relative deviation. Thus, the frequency offset adjustment is completed by adjusting the sending delay on the sending side of the device, reducing the use of cache resources and the resource occupancy of the service flow.

[0010] In a possible implementation manner of the first aspect, the data phase difference includes a reference data phase difference and other data phase differences, and the phase difference deviation is the difference between the other data phase differences and the reference data phase difference.

[0011] In this possible implementation manner, the phase difference deviation is the difference between the other data phase differences and the reference data phase difference, which improves the feasibility of the solution.

[0012] In a possible implementation manner of the first aspect, the reference data phase difference is the data phase difference obtained in the first preset period.

[0013] In this possible implementation manner, the reference data phase difference is determined as the data phase difference obtained in the first preset period, that is, the first obtained data phase difference, which improves the feasibility of the solution.

[0014] In a possible implementation manner of the first aspect, before the above step: obtaining the data phase difference of each device in the target network according to a preset period, the method further includes: determining the phase tracking relationship of each device in the target network; after the above step: adjusting the sending phase of the target device according to the phase difference deviation, the method further includes: adjusting the sending phase of each device in the target network based on the phase tracking relationship and the sending phase of the target device.

[0015] In this possible implementation manner, before performing phase adjustment on the data transmission of the target network, the network-level tracking relationship of the target network can be determined first to ensure the phase stability of the target network. When a device in the target network adjusts its phase, the remaining devices can track and adjust to maintain stability, improving the phase stability of the target network.

[0016] In a possible implementation of the first aspect, the above step of determining the phase tracking relationship of each device in the target network includes: receiving the phase tracking relationship of each device in the target network specified by the user.

[0017] In this possible implementation, the user can specify the phase tracking relationship, which improves the feasibility of the solution.

[0018] In a possible implementation of the first aspect, the above step of determining the phase tracking relationship of each device in the target network includes: specifying a reference device in the target network and setting the phase identifier of the reference device; updating the phase identifiers of other devices in the target network based on the phase tracking negotiation message sent by the reference device; and determining the phase tracking relationship of the target network based on the phase identifiers.

[0019] In this possible implementation, the phase tracking relationship can be determined through protocol interaction, which improves the feasibility of the solution.

[0020] In a possible implementation of the first aspect, the above step of obtaining the data phase difference of each device in the target network according to a preset period includes: obtaining the sending time and receiving time of the data at the sending port and receiving port according to a preset period; and determining the data phase difference, where the data phase difference is the difference between the sending time and the receiving time.

[0021] In this possible implementation, the data phase difference can be obtained by accurately timestamping, which improves the feasibility of the solution.

[0022] In a possible implementation of the first aspect, the above step of obtaining the data phase difference of each device in the target network according to a preset period includes: starting counting when data is received at the sending port and receiving port according to a preset period, and stopping counting when data is received next time to obtain the sending count value and the receiving count value; and determining the data phase difference, where the data phase difference is the difference between the sending count value and the receiving count value.

[0023] In this possible implementation, the data phase difference can be obtained by using a counter, which improves the feasibility of the solution.

[0024] In a possible implementation of the first aspect, the above step: when the phase difference deviation of the target device does not meet the preset requirement, adjusting the transmission phase of the target device according to the phase difference deviation includes: obtaining the preset value of the counter used by the target device to trigger the data transmission operation; when the phase difference deviation of the target device is greater than the preset time value, updating the preset value of the counter to the difference between the preset value of the counter and the phase adjustment value, where the phase adjustment value is the difference between the data phase difference and the preset time value; when the phase difference deviation of the target device is less than the negative of the preset time value, updating the preset value of the counter to the sum of the preset value of the counter and the phase adjustment value.

[0025] In this possible implementation, for the phase difference deviation of the target device being greater than the preset time value or less than the negative of the preset time value, the adjustment of the phase deviation can be completed by updating the preset value of the counter, improving the feasibility of the solution.

[0026] In a possible implementation of the first aspect, the preset time value is determined based on the transmission time for the target device to send data and the timestamp accuracy of the target device.

[0027] In this possible implementation, the preset time value is determined based on the transmission time for the target device to send data and the timestamp accuracy of the target device, improving the feasibility of the solution.

[0028] In a possible implementation of the first aspect, the above step: when the phase difference deviation of the target device does not meet the preset requirement, adjusting the transmission phase of the target device according to the phase difference deviation includes: when the phase difference deviation of the target device does not meet the preset requirement, adjusting the transmission flow rate of the target device according to the phase difference deviation to adjust the transmission phase of the target device.

[0029] In this possible implementation, the transmission phase of the target device can be indirectly adjusted by adjusting the transmission flow rate of the target device, improving the feasibility of the solution.

[0030] In the second aspect of the present application, a phase adjustment device for data transmission is provided, which is used to execute the method in the above first aspect or any possible implementation of the first aspect. Specifically, the phase adjustment device for data transmission includes modules or units for executing the method in the above first aspect or any possible implementation of the first aspect, such as: an acquisition unit, a first determination unit, a second determination unit, and an adjustment unit.

[0031] A third aspect of this application provides a computer device, which includes a processor and a memory. The processor is coupled to the memory. The memory is used to store programs or instructions executed by the processor, or input data required for the processor to run instructions, or data generated after the processor runs instructions. When the program or instructions are executed by the processor, the computer device is enabled to execute the method according to the first aspect or any possible implementation manner of the first aspect described above.

[0032] A fourth aspect of this application provides a computer-readable storage medium storing instructions. When the instructions run on a computer, the method according to the first aspect or any possible implementation manner of the first aspect described above is executed.

[0033] A fifth aspect of this application provides a chip system, which includes at least one processor and an interface. The interface is used to receive data and / or signals. The at least one processor is used to support a computer device to implement the functions involved in the first aspect or any possible implementation manner of the first aspect described above. In a possible design, the chip system may further include a memory, which is used to store necessary program instructions and data of the computer device. The chip system may be composed of chips or may include chips and other discrete devices.

[0034] A sixth aspect of this application provides a computer program product storing a computer program. When the computer program is executed, the method according to the first aspect or any possible implementation manner of the first aspect described above is implemented.

[0035] In the embodiments of this application, the time difference between the data received by the sending port and the receiving port of each device in the target network is obtained, and then the relative deviation of the data phase difference between the target device and other devices is obtained. When the phase difference deviation of the target device does not meet the preset requirements, the sending delay of the target device can be adjusted according to the relative deviation. Thus, the frequency offset adjustment is completed by adjusting the sending delay on the sending side of the device, reducing the use of cache resources and the resource occupation of the service flow. Description of the Drawings

[0036] Figure 1 Schematic diagram of a 5Gbps large-granularity pipeline carrying small-granularity services;

[0037] Figure 2 Schematic diagram of the fixed-length encapsulation format of the small-granularity fgBU of the Ethernet hard dedicated line provided by the embodiments of this application;

[0038] Figure 3 Schematic diagram of the general format of the fgBU overhead of the Ethernet hard dedicated line provided by the embodiments of this application;

[0039] Figure 4An exemplary schematic diagram of the multiplexing cycle of the Ethernet dedicated line provided by the embodiment of the present application;

[0040] Figure 5 A topological schematic diagram of the target network provided by the embodiment of the present application;

[0041] Figure 6 A schematic diagram of an embodiment of the phase adjustment method for data transmission provided by the embodiment of the present application;

[0042] Figure 7 A schematic diagram of another embodiment of the phase adjustment method for data transmission provided by the embodiment of the present application;

[0043] Figure 8 A schematic diagram of the manually specified phase tracking relationship provided by the embodiment of the present application;

[0044] Figure 9 A schematic diagram of the phase tracking relationship of protocol interaction provided by the embodiment of the present application;

[0045] Figure 10 A schematic diagram of the protocol interaction message format provided by the embodiment of the present application;

[0046] Figure 11 A schematic diagram of obtaining the data phase difference in an accurate timestamping manner provided by the embodiment of the present application;

[0047] Figure 12 A schematic diagram of obtaining the data phase difference in a counter manner provided by the embodiment of the present application;

[0048] Figure 13 A schematic diagram of the principle of adaptively adjusting the phase provided by the embodiment of the present application;

[0049] Figure 14 A schematic diagram of the application of adaptively adjusting the phase provided by the embodiment of the present application;

[0050] Figure 15A A schematic diagram of adaptively adjusting the phase by adding or deleting code blocks provided by the embodiment of the present application;

[0051] Figure 15B A schematic diagram of adaptively adjusting the phase by adjusting the sending traffic provided by the embodiment of the present application;

[0052] Figure 16 A schematic diagram of an embodiment of the phase adjustment device for data transmission provided by the embodiment of the present application

[0053] Figure 17 A schematic diagram of an embodiment of a computer device provided by the embodiment of the present application. Detailed implementation manners

[0054] The embodiments of the present application will be described below in conjunction with the accompanying drawings. Obviously, the described embodiments are only a part of the embodiments of the present application, rather than all the embodiments. Those of ordinary skill in the art will understand that with the development of technology and the emergence of new scenarios, the technical solutions provided by the embodiments of the present application are equally applicable to similar technical problems.

[0055] Terms such as "first" and "second" in the specification, claims and the above-mentioned drawings of the present application 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 under appropriate circumstances so that the embodiments described herein can be implemented in an order different from that shown or described herein. In addition, the terms "comprising" and "having" and any variations thereof are intended to cover non-exclusive inclusion. For example, a process, method, system, product or device that includes a series of steps or units does not necessarily have to be limited to those steps or units clearly listed, but may include other steps or units not clearly listed or inherent to these processes, methods, products or devices.

[0056] The embodiments of the present application provide a phase adjustment method for data transmission and related devices, which are used to reduce the resource occupancy of service flows during the frequency offset adjustment of a communication network. The embodiments of the present application also provide corresponding phase adjustment devices for data transmission, computer devices, computer-readable storage media, chip systems, computer program products, etc. These will be described in detail below respectively.

[0057] Flexible Ethernet (FlexE) is a standard protocol defined by the Optical Internetworking Forum (OIF), a lightweight enhanced Ethernet technology that supports port binding and channelization technology and can build end-to-end links. Based on a physical link group composed of several Ethernet physical interfaces such as 50 / 100 / 200 / 400G, each interface supports one or more FlexE instances. Each instance introduces a fixed periodic frame structure. Based on the time-division multiplexing (TDM) mechanism, time slots are divided. One or more time slots support an Ethernet service flow or carry a flexible Ethernet client signal. For a 100Gbps FlexE instance, a fixed periodic frame structure includes 20 time slots, and each time slot has a transmission window of 1023 * 8 = 8184 66-bit. Since the bandwidth of one time slot is 5Gbps, each 66-bit transmission window is equivalent to a bandwidth resource of 5Gbps / 8184 = 0.61Mbps.

[0058] The metro transport network (MTN) provides functions such as channel forwarding and OAM based on FlexE technology. Its corresponding time slot allocation is the same as that of FlexE, also with a granularity of 5G. The FlexE / MTN time slot is simply referred to as the "large-granularity time slot".

[0059] Based on the MTN / FlexE technology, the Ethernet dedicated line technology provides a smaller granularity of pipeline bandwidth, which is simply referred to as the flexible small-granularity technology or small-granularity technology, aiming at the requirements of deterministic low latency and hard isolation in high-quality Ethernet dedicated line service scenarios. As Figure 1 shown, a channel with a time slot granularity of 5Gbps in MTN / FlexE is called a large-granularity pipeline. The small granularity is carried in the large-granularity pipeline, that is, the small-granularity service occupies N 5Gbps, and temporarily N is 1. The minimum bandwidth of the small-granularity service is 10Mbps. The 5Gbps large-granularity pipeline provides 480 small-granularity time slots to carry the small-granularity service. Before entering the device multiplexing function module, the small-granularity service needs to be encapsulated in the format of the fine granularity basic unit (fgBU). For example, 480 small-granularity time slots are used to carry small-granularity services A, B, C, and D in the fgBU multiframe m.

[0060] Furthermore, the fgBU encapsulation format includes the fgBU preamble, fgBU overhead (OH), fgBU payload, and fgBU encapsulation tail (T7). The fgBU preamble is for fgBU boundary positioning, compatible with the Ethernet encapsulation header, compatible with the X-Ethernet (ubiquitous Ethernet) / MTN large-granularity pipeline, and Ethernet rate adaptation. The fgBU payload carries service data. Considering that packet services require a start of packet (SOP) / end of packet (EOP), the 64B / 65B encapsulation of the service signal is introduced, and multiple bearing modes can be expanded as needed in the future, such as: 64B / 65B, 64B / 66B transcoding, 256B / 257B, and adaptation to future constant bit rate (CBR) service bearing, etc. The fgBU encapsulation tail is compatible with the Ethernet standard T7 code block (code block type 0xFF), and it is recommended to add an idle code block after the encapsulation tail. As Figure 2As shown, the small granule of the Ethernet hard dedicated line, fgBU, has a fixed length, that is, 197 64B / 66B code blocks (1567 bytes before encoding), specifically including 7 bytes of fgBU overhead, 1560 bytes of fgBU payload, plus 8 bytes of fgBU encapsulation header, 1 byte of end-of-frame delimiter (EFD), and 8 bytes of inter-frame gap (IPG). At typical rates, each encoded fgBU is followed by an idle code block.

[0061] Further, please refer to Figure 3 , the overhead of fgBU is located in the first data code block after the S code block, occupying a total of the first 56 bits. The general format of the fgBU overhead includes a reserved bit, a multiframe indication (MFI), a flag, a cyclic redundancy check code (CRC7), and a protocol negotiation interaction code (ACK / REQ / CMT). The reserved bit is located from bit 0 to bit 1, and this position is reserved for future expansion. The multiframe indication is located from bit 2 to bit 7 and is used to indicate the sequence number of the fgBU to which this overhead belongs in the multiframe. The MFI field of the first fgBU in the multiframe is filled with 0b000000, and the MFI values of the subsequent fgBUs are incremented by 1 in sequence. When the fgBU is carried in the 5Gbps time slot of X-Ethernet / MTN, the valid range of MFI is 0b000000 to 0b010011 (0 - 19). When the fgBU is carried in the large granule 1Gbps time slot, the valid range of MFI is 0b000000 to 0b000011 (0 - 3). When the fgBU is directly carried on the Ethernet 10GBASE-R physical layer (PHY), the valid range of MFI is 0b000000 to 0b100111 (0 - 39). 0b00101000 - 0b111111 are reserved values. The flag is located from bit 8 to bit 9 and is used to indicate the message type of bits 10 to 55. When the flag is 0b00, bits 10 to 55 carry a time slot configuration message. When the flag is 0b11, bits 10 to 55 carry a general communication channel (GCC). 0b10 and 0b01 are two reserved types of the flag. The cyclic redundancy check code has a polynomial of x7 + x5 + x4 + x2 + x + 1 and an initial value of 0. The CRC7 result is [x6:x0] with the high bits sent first, and CRC7 only checks bits 8 to 48. ACK / REQ / CMT is used for protocol negotiation interaction between adjacent device nodes, and the specific meaning and encoding are defined according to requirements.

[0062] Please refer to Figure 4, in an example of an Ethernet dedicated line multiplexing cycle, the fgBU is carried on a 5Gbps X-Ethernet / MTN large-granularity pipeline. One fgBU is one frame, and twenty consecutive fgBUs form a complete fgBU multiframe. Each fgBU is identified by MFI. Each fgBU contains 24 fine-grained time slots. Therefore, a total of 480 fine-grained time slots are included in one fgBU multiframe. CGB8 refers to the code block group (code block group) of 8 64 / 66B code blocks in the physical coding sublayer (PCS). The customer signal distributes the customer signal service flow to the corresponding time slots for transmission according to the preset time slot configuration information.

[0063] Please refer to Figure 5 , in the application process of the Ethernet dedicated line, the network architecture in which it is applied, that is, the device networking topology, can be simplified to four devices, namely NODE0, NODE1, NODE2, and NODE3, forming a ring network topology.

[0064] The following describes the phase adjustment method for data transmission in the embodiments of the present application in combination with the above introduction of the Ethernet dedicated line and its application network architecture. Please refer to Figure 6 , an embodiment of the phase adjustment method for data transmission in the embodiments of the present application includes:

[0065] 601. Obtain the data phase difference of each device in the target network according to a preset cycle.

[0066] The target network can be Figure 5 the network architecture in, then obtain the data phase differences of NODE0, NODE1, NODE2, and NODE3 according to a preset cycle. The data phase difference is the time difference between the data received by the sending port and the receiving port of each device. The preset cycle can be predefined by the user. For example, obtain the time difference between the data received by the sending port and the receiving port of NODE3 according to a preset cycle, that is, the time the data stays in NODE3. At time T1, the receiving port of NODE3 receives the data, and at time T2, the sending port of NODE3 receives the data and is ready to send. Then the data phase difference Δ of NODE3 = T2 - T1.

[0067] 602. Determine the phase difference deviation of each device according to the data phase difference.

[0068] After obtaining the multiple data phase differences of each device according to a preset cycle, the phase difference deviation of each device can be determined according to the data phase difference, where the phase difference deviation is the deviation between the data phase differences obtained by each device in multiple preset cycles.

[0069] Exemplarily, if multiple data phase differences of NODE3 obtained according to a preset period are Δ1, Δ2, Δ3, and Δ4 respectively, then multiple phase difference deviations can be determined as Δ n1 = Δ2 - Δ1, Δ n2 = Δ3 - Δ1, Δ n3 = Δ4 - Δ1.

[0070] 603. When the phase difference deviation of the target device does not meet the preset requirements, adjust the transmission phase of the target device according to the phase difference deviation.

[0071] When the phase difference deviation of the target device does not meet the preset requirements, for example, when the phase difference deviation exceeds the preset value, it indicates that the frequency offset of the target device is large and needs to be adjusted. Then, the transmission phase of the target device can be adjusted according to the phase difference deviation, and the transmission delay of the data can be increased or decreased according to the corresponding phase difference deviation of the target device.

[0072] In the embodiments of the present application, obtain the time difference between the data received by the sending port and the receiving port of each device in the target network, and then obtain the relative deviation of the data phase difference between the target device and other devices. When the phase difference deviation of the target device does not meet the preset requirements, the transmission delay of the target device can be adjusted according to the relative deviation. Thus, the frequency offset adjustment is completed by adjusting the transmission delay on the sending side of the device, reducing the use of cache resources and minimizing the resource occupancy of the service flow.

[0073] Please refer to Figure 7 , an embodiment of the phase adjustment method for data transmission in the embodiments of the present application includes:

[0074] 701. Determine the phase tracking relationship of each device in the target network.

[0075] Before adjusting the phase of the data transmission in the target network, the network-level tracking relationship of the target network can be determined first to ensure the phase stability of the target network. When a device in the target network adjusts its phase, the remaining devices can track and adjust to maintain stability. According to the scale of the target network, the network-level tracking relationship can be determined in two specific ways, which will be described separately below.

[0076] I. When the network scale is small, use the manual designation method:

[0077] When the network scale of the target network is small, for example, in a vehicle-mounted ring network architecture composed of 4 - 6 devices, at this time, the phase tracking relationship of each device in the target network specified by the user can be received, such as Figure 8As shown in the figure, the user directly determines the tracking relationship in the order of the ID sizes of each device, and it is necessary to ensure that there is no loop. The master-slave phase tracking relationship is that Node3 is the master tracking node, Node2 tracks Node3, Node1 tracks Node2, and Node0 tracks Node1.

[0078] II. When the network scale is large, use the protocol interaction method:

[0079] When the network scale of the target network is large, a phase tracking message can be newly defined in the frame format overhead. After each device node enables the phase adaptive function, on the service path, the phase tracking message is sequentially transmitted to the downstream nodes, and the phase tracking relationship of each node on the service path is determined based on the tracking rules.

[0080] Specifically, specify a reference device in the target network and set the phase identifier of the reference device. Then, update the phase identifiers of other devices in the target network based on the phase tracking negotiation message sent by the reference device, and the phase tracking relationship of the target network can be determined based on the phase identifiers. Among them, when performing path tracking planning, the breadth first search algorithm (BFS) or depth first search algorithm (DFS) can also be used to complete the path tracking path planning, so as to avoid tracking loops when performing path planning, and then determine the network-level phase tracking relationship.

[0081] Exemplarily, as Figure 9 shown, specify the reference device A, set its phase identifier, that is, ID = 10, and the remaining node IDs are initialized to 0. The automatic tracking protocol is transmitted through the overhead (OH) of the service code stream. The protocol interaction message format between devices is as Figure 10 shown, Flag = 2b01 (indicating the phase tracking self-negotiation message), and the ID field carries the ID of this device. When the phase adaptive tracking function is enabled, device A encapsulates the ID (10) into the OH field of the service code stream according to the specified format and sends it to the adjacent devices B1 and B2. After receiving the message, B1 and B2 compare it with their own IDs. If it is less than ID (10), then modify their own ID (B1 or B2) = ID (10) - 1 = 9. At this time, the tracking relationship between B1, B2 and A can be determined, and B1 and B2 track A. Similarly, the updated IDs of devices B1 and B2 are transmitted to the downstream in the specified message format until the phase tracking relationship of all devices in the whole network is determined.

[0082] 702. Obtain the data phase difference of each device in the target network according to a preset period.

[0083] There are two specific ways to obtain the data phase difference, which are described separately below.

[0084] I. Precise timestamping method:

[0085] Obtain the transmission time and reception time of data at the transmission port and reception port according to a preset period, and then determine the data phase difference, where the data phase difference is the difference between the transmission time and the reception time.

[0086] Exemplarily, please refer to Figure 11 , at the OH of the fgBU receiving and transmitting multiplex frames, timestamping is performed according to a preset period, where the preset period cannot be less than the clock accuracy, and the timestamp R is recorded at the multiplex frame boundary of the single device NODE3 t0 、T t0 、R t1 、T t1 、R t2 、T t2 、R t3 、T t3 , according to the above timestamp points, the inlet and outlet time differences can be calculated, that is, the data phase differences are respectively Δ0 = T t0 -R t0 , Δ1 = T t1 -R t1 , Δ2 = T t2 -R t2 , Δ3 = T t3 -R t3 . The timestamp accuracy is related to the clock accuracy. Assuming the clock accuracy is 390.625 MHz, the timestamp accuracy is 1 / 390.625 MHz, which is approximately 2.56 nanoseconds.

[0087] II. Counter method:

[0088] When data is received at the transmission port and reception port according to a preset period, start counting and stop counting when data is received next time to obtain the transmission count value and the reception count value, and then determine the data phase difference, where the data phase difference is the difference between the transmission count value and the reception count value.

[0089] Exemplarily, please refer to Figure 12 , taking a single network device NODE0 as an example, the inlet and outlet frame phase measurement is completed by counting. On the receiving (Rx) side of NODE0, start counting with the first received OH and end counting with the second OH, and record the count value R of the counter 0 on the Rx side Cnt0 , similarly, on the transmitting (Tx) side of NODE0, record the count value T of the counter 1 on the Tx side Cnt0 . The phase difference of one inlet and outlet frame header can be calculated, that is, the data phase difference Δ0 = T Cnt0 -R Cnt0。After obtaining the data phase difference each time, the counters on the Rx and Tx sides are cleared, and the next phase measurement is performed. Here, the phase measurement position is the OH of two consecutive multiplex frames, and the measurement frequency is once per multiplex frame period. The phase measurement position and measurement frequency can be flexibly adjusted according to requirements.

[0090] 703. Determine the phase difference deviation of each device according to the data phase difference.

[0091] After obtaining multiple data phase differences, the phase difference deviation of each device can be determined according to the data phase difference. Specifically, the multiple data phase differences obtained include the reference data phase difference and other data phase differences. The phase difference deviation is the difference between the other data phase difference and the reference data phase difference, and the reference data phase difference is the data phase difference obtained in the first preset period.

[0092] Exemplarily, the multiple data phase differences of NODE3 obtained according to the preset period are Δ1, Δ2, Δ3, Δ4 respectively, and the reference data phase difference is Δ1. Then, multiple phase difference deviations Δ n are respectively Δ n1 =Δ2 - Δ1, Δ n2 =Δ3 - Δ1, Δ n3 =Δ4 - Δ1.

[0093] 704. Obtain the preset value of the counter for the target device to trigger the data sending operation.

[0094] 705. When the phase difference deviation of the target device is greater than the time preset value, update the preset value of the counter to the difference between the preset value of the counter and the phase adjustment value.

[0095] 706. When the phase difference deviation of the target device is less than the negative of the time preset value, update the preset value of the counter to the sum of the preset value of the counter and the phase adjustment value.

[0096] After obtaining the phase difference deviation of each device, the phase can be adaptively adjusted according to the phase difference deviation. The phase adjustment value is the difference between the data phase difference and the time preset value. As Figure 13 shown, first obtain the preset value of the counter Threshold for the target device to trigger the data sending operation. This time preset value is determined based on the sending time of the target device to send data and the timestamp accuracy of the target device. When the phase difference deviation of the target device is greater than the time preset value, that is, Δ n >Threshold, it means that the sending time t on the Tx side of the device needs to be adjusted forward. When the phase difference deviation of the target device is less than the negative of the time preset value, that is, Δ nWhen it is <-Threshold, it means that the transmission time t on the Tx side of the device needs to be adjusted backward.

[0097] Furthermore, regardless of which method is used to obtain the data phase difference, based on the device's local clock, the phase measurement value Δ can be converted into an integer value i_value with the clock cycle as the minimum unit. That is, when using the timestamp method, i_value = Δ / clock cycle; when using the counter method, i value = Δ. As Figure 14 shown, when the Tx side is about to start adjustment, the original transmission time is t, and the expected transmission time after adaptive adjustment is t1 or t2. Assume that the preset value of the counter for the device's transmission side to trigger the transmission operation is S (which is an empirical value or a measured value), and its corresponding time point is t, Δ n > Threshold, adjust the preset value of the transmission side counter S = S - (Δ n - Threshold), that is, the transmission time advances from t to t2. When Δ n < - Threshold, adjust the preset value of the transmission side counter S = S + (Δ n - Threshold), that is, the transmission time is postponed from t to t1. The preset value S of the transmission side counter remains unchanged after each adjustment and is used as the preset value for the next adjustment.

[0098] In an alternative embodiment, phase adaptive adjustment can also be performed by adding / deleting IDLE code blocks in the transmission code stream on the Tx side. As Figure 15A shown, when Δ n > Threshold, it means that the transmission is slow, and the upcoming IDLE code blocks are deleted on the Tx side. When Δ n < - Threshold, it means that the transmission side is fast, and IDLE code blocks are inserted on the Tx side. In the Threshold setting method at this time, taking a 5Gbps device as an example, the multiplexing period of a multiplexed frame is 12.67 us, and the transmission time of each single code block (64 / 66B) is approximately equal to 6.6 ns. Assume that the clock frequency of the device node is 390.625 MHz. At this time, the timestamp accuracy is 1 / 390.625 MHz, which is approximately 2.56 ns. It can be calculated that Threshold = 6.6 / 2.56, which is approximately 3.

[0099] In an alternative embodiment, phase adaptive adjustment can also be indirectly performed by adjusting the transmission traffic of the target device. As Figure 15BAs shown, the target device includes a traffic control unit (TM). The traffic control unit adopts a credit-based flow control mechanism. After the data reaches the transmitting unit (Tx Unit) on the transmitting side through the traffic control unit, it is then sent to the PHY. Therefore, the number of credit signals that the traffic control unit needs to supplement or reduce can be calculated by combining the data transmission rate of the port and the phase difference deviation feedback of the phase detection information. By controlling the data generation method, the purpose of phase adjustment can be indirectly achieved. Specifically, according to the deviation of the phase difference deviation, it is converted into the number of credit signals that need to be supplemented or reduced. For example, if the transmission time t on the Tx side needs to be adjusted backward, the number of credit signals is increased, and the traffic of the data transmitted by the traffic control unit is reduced.

[0100] 707. Adjust the transmission phase of each device in the target network based on the phase tracking relationship and the transmission phase of the target device.

[0101] Since the phase tracking relationship of the target network has been determined at the beginning, after adjusting the transmission phase of the target device, the transmission phase of each device in the target network can be correspondingly adjusted according to this phase tracking relationship to make the phase in the target network stable.

[0102] As Figure 16 shown, an embodiment of the phase adjustment device 1600 for data transmission provided in the embodiment of the present application includes:

[0103] An acquisition unit 1601, configured to acquire the data phase difference of each device in the target network according to a preset period. The data phase difference is the time difference between the sending port of each device and the time when the data is received at the receiving port; this acquisition unit can execute step 601 in the above method embodiment.

[0104] A first determination unit 1602, configured to determine the phase difference deviation of each device according to the data phase difference. The phase difference deviation is the deviation between the data phase differences acquired by each device in multiple preset periods; this first determination unit 1602 can execute step 602 in the above method embodiment.

[0105] An adjustment unit 1603, configured to adjust the transmission phase of the target device according to the phase difference deviation when the phase difference deviation of the target device does not meet the preset requirements. This adjustment unit 1603 can execute step 603 in the above method embodiment.

[0106] In an embodiment of the present application, an acquisition unit 1601 acquires the time difference between the data received at the sending port and the receiving port of each device in a target network. Then, a first determination unit 1602 acquires the relative deviation of the data phase difference between a target device and other devices. When the phase difference deviation of the target device does not meet the preset requirement, an adjustment unit 1603 can adjust the sending delay of the target device according to the relative deviation. Thus, the frequency offset adjustment is completed by adjusting the sending delay on the sending side of the device, reducing the use of cache resources and minimizing the resource occupancy of the service flow.

[0107] Optionally, the data phase difference includes a reference data phase difference and other data phase differences, and the phase difference deviation is the difference between the other data phase difference and the reference data phase difference.

[0108] Optionally, the reference data phase difference is the data phase difference acquired in the first preset period.

[0109] Optionally, the phase adjustment device 1600 for data transmission further includes a second determination unit 1604. The second determination unit 1604 is configured to determine the phase tracking relationship of each device in the target network; the adjustment unit 1603 is further configured to adjust the sending phase of each device in the target network based on the phase tracking relationship and the sending phase of the target device.

[0110] Optionally, the second determination unit 1604 is specifically configured to receive the phase tracking relationship of each device in the target network specified by the user.

[0111] Optionally, the second determination unit 1604 is specifically further configured to specify a reference device in the target network and set the phase identifier of the reference device; update the phase identifiers of other devices in the target network based on the phase tracking negotiation message sent by the reference device; and determine the phase tracking relationship of the target network based on the phase identifiers.

[0112] Optionally, the acquisition unit 1601 is specifically configured to acquire the sending time and receiving time of data at the sending port and the receiving port according to a preset period; and determine the data phase difference, where the data phase difference is the difference between the sending time and the receiving time.

[0113] Optionally, the acquisition unit 1601 is specifically further configured to start counting when data is received at the sending port and the receiving port according to a preset period, and stop counting when data is received next time, to obtain a sending count value and a receiving count value; and determine the data phase difference, where the data phase difference is the difference between the sending count value and the receiving count value.

[0114] Optionally, the adjustment unit 1603 is specifically configured to obtain a counter preset value used by the target device to trigger a data transmission operation; when the phase difference deviation of the target device is greater than the time preset value, update the counter preset value to the difference between the counter preset value and the phase adjustment value, where the phase adjustment value is the difference between the data phase difference and the time preset value; when the phase difference deviation of the target device is less than the negative value of the time preset value, update the counter preset value to the sum of the counter preset value and the phase adjustment value.

[0115] Optionally, the adjustment unit 1603 is specifically configured to, when the phase difference deviation of the target device does not meet the preset requirements, adjust the transmission flow of the target device according to the phase difference deviation to adjust the transmission phase of the target device.

[0116] Reference Figure 17 , which is a schematic diagram of a computer device 1700 provided in an embodiment of the present application. The computer device 1700 includes: a processor 1701 and an interface 1703, and the processor 1701 is coupled to the interface 1703. The interface 1703 is used to implement communication with other devices. The interface 1703 can be a transceiver or an input / output interface. The interface 1703 can be, for example, an interface circuit. Optionally, the computer device 1700 further includes a memory 1702, and the processor 1701 is coupled to the memory 1702. The memory 1702 is used to store instructions executed by the processor 1701 or store input data required for the processor 1701 to run instructions or store data generated after the processor 1701 runs instructions. When a program or instruction is executed by the processor 1701, the processor 1701 is caused to execute the phase adjustment method for data transmission described in the above embodiment.

[0117] In another embodiment of the present application, a computer-readable storage medium is further provided. Computer-executable instructions are stored in the computer-readable storage medium. When at least one processor of the device executes the computer-executable instructions, the device executes the phase adjustment method for data transmission described in the above embodiment.

[0118] In another embodiment of the present application, a computer program product is further provided. The computer program product includes computer-executable instructions, and the computer-executable instructions are stored in a computer-readable storage medium; at least one processor of the device can read the computer-executable instructions from the computer-readable storage medium, and the at least one processor executes the computer-executable instructions to cause the device to execute the phase adjustment method for data transmission described in the above embodiment.

[0119] In another embodiment of the present application, a chip system is further provided. The chip system includes at least one processor and an interface. The interface is used to receive data and / or signals, and the at least one processor is used to support the implementation of the phase adjustment method for data transmission described in the above embodiments. In a possible design, the chip system may further include a memory for storing necessary program instructions and data of the computer device. The chip system may be composed of chips or may include chips and other discrete devices.

[0120] Those skilled in the art can clearly understand that for the convenience and conciseness of description, the specific working processes of the above-described systems, devices, and units can refer to the corresponding processes in the foregoing method embodiments and will not be elaborated herein.

[0121] In several embodiments provided in the present application, it should be understood that the disclosed systems, devices, and methods can be implemented in other ways. For example, the device embodiments described above are merely illustrative. For example, the division of the units is only a logical function division, and 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 displayed or discussed couplings or direct couplings or communication connections to each other can be through some interfaces, and the indirect couplings or communication connections of devices or units can be in electrical, mechanical, or other forms.

[0122] The units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place or distributed to multiple network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0123] In addition, the functional units in each embodiment of the present application can be integrated in a processing unit, or each unit can exist physically alone, or two or more units can be integrated in one unit. The above-mentioned integrated units can be implemented in the form of hardware or in the form of software functional units.

[0124] When 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 computer-readable storage medium. Based on such an understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, or all or part of this 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 for causing a computer device (which can be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the methods described in various embodiments of this application. The aforementioned storage medium includes: various media that can store program codes, such as USB flash drives, mobile hard disks, read-only memories (ROM, read-only memory), random access memories (RAM, random access memory), magnetic disks, or optical discs.

Claims

1. A phase adjustment method for data transmission, characterized in that, Including: Obtain the data phase difference of each device in the target network according to a preset period, where the data phase difference is the time difference between the data received by the sending port and the receiving port of each device; Determine the phase difference deviation of each device according to the data phase difference, where the phase difference deviation is the deviation between the data phase differences obtained by each device in multiple preset periods; When the phase difference deviation of a target device does not meet the preset requirements, adjust the sending phase of the target device according to the phase difference deviation.

2. The method according to claim 1, characterized in that, The data phase difference includes a reference data phase difference and other data phase differences, and the phase difference deviation is the difference between the other data phase differences and the reference data phase difference.

3. The method according to claim 2, characterized in that, The reference data phase difference is the data phase difference obtained in the first preset period.

4. The method according to any one of claims 1-3, characterized in that, Before obtaining the data phase difference of each device in the target network according to the preset period, the method further includes: Determine the phase tracking relationship of each device in the target network; After adjusting the sending phase of the target device according to the phase difference deviation, the method further includes: Adjust the sending phase of each device in the target network based on the phase tracking relationship and the sending phase of the target device.

5. The method according to claim 4, characterized in that, The determining the phase tracking relationship of each device in the target network includes: Receive the phase tracking relationship of each device in the target network specified by the user.

6. The method according to claim 4, characterized in that, The determining the phase tracking relationship of each device in the target network includes: Specify a reference device in the target network and set the phase identifier of the reference device; Update the phase identifiers of other devices in the target network based on the phase tracking negotiation message sent by the reference device; Determine the phase tracking relationship of the target network based on the phase identifiers.

7. The method according to any one of claims 1-3, characterized in that, The obtaining the data phase difference of each device in the target network according to the preset period includes: Obtain the sending time and receiving time of the data at the sending port and the receiving port according to the preset period; Determine the data phase difference, where the data phase difference is the difference between the sending time and the receiving time.

8. The method according to any one of claims 1-3, characterized in that, The obtaining the data phase difference of each device in the target network according to the preset period includes: Start counting when the data is received at the sending port and the receiving port according to the preset period, and stop counting when the data is received next time to obtain the sending count value and the receiving count value; Determine the data phase difference, where the data phase difference is the difference between the sending count value and the receiving count value.

9. The method according to any one of claims 1-3, characterized in that, The when the phase difference deviation of a target device does not meet the preset requirements, adjusting the sending phase of the target device according to the phase difference deviation includes: Obtain the preset value of the counter used by the target device to trigger the data sending operation; When the phase difference deviation of the target device is greater than the preset time value, update the preset value of the counter to the difference between the preset value of the counter and the phase adjustment value, where the phase adjustment value is the difference between the data phase difference and the preset time value; When the phase difference deviation of the target device is less than the negative of the time preset value, update the counter preset value to the sum of the counter preset value and the phase adjustment value.

10. The method according to any one of claims 1-3, characterized in that, When the phase difference deviation of the target device does not meet the preset requirements, adjusting the transmission phase of the target device according to the phase difference deviation includes: When the phase difference deviation of the target device does not meet the preset requirements, adjust the transmission flow rate of the target device according to the phase difference deviation to adjust the transmission phase of the target device.

11. A phase adjustment device for data transmission, characterized in that,Includes: An acquisition unit, configured to acquire the data phase difference of each device in the target network according to a preset period, where the data phase difference is the time difference between the data received by the sending port and the receiving port of each device; A first determination unit, configured to determine the phase difference deviation of each device according to the data phase difference, where the phase difference deviation is the deviation between the data phase differences acquired by each device in multiple preset periods; An adjustment unit, configured to adjust the transmission phase of the target device according to the phase difference deviation when the phase difference deviation of the target device does not meet the preset requirements.

12. The device according to claim 11, wherein, The data phase difference includes a reference data phase difference and other data phase differences, and the phase difference deviation is the difference between the other data phase differences and the reference data phase difference.

13. The device according to claim 12, wherein, The reference data phase difference is the data phase difference acquired in the first preset period.

14. The device according to any one of claims 11-13, wherein, The apparatus further includes a second determination unit, configured to determine the phase tracking relationship of each device in the target network; the adjustment unit is further configured to adjust the transmission phase of each device in the target network based on the phase tracking relationship and the transmission phase of the target device.

15. The device according to claim 14, wherein, The second determination unit is specifically configured to receive the phase tracking relationship of each device in the target network specified by the user.

16. The device according to claim 14, wherein, The second determination unit is specifically further configured to specify a reference device in the target network and set the phase identifier of the reference device; update the phase identifiers of other devices in the target network based on the phase tracking negotiation message sent by the reference device; Determine the phase tracking relationship of the target network based on the phase identifiers.

17. The device according to any one of claims 11-13, wherein, The acquisition unit is specifically configured to acquire the sending time and receiving time of the data at the sending port and the receiving port according to the preset period; determine the data phase difference, where the data phase difference is the difference between the sending time and the receiving time.

18. The device according to any one of claims 11-13, wherein, The acquisition unit is specifically further configured to start counting when the data is received at the sending port and the receiving port according to the preset period, and stop counting when the data is received next time, to obtain a sending count value and a receiving count value; Determine the data phase difference, where the data phase difference is the difference between the sending count value and the receiving count value.

19. The device according to any one of claims 11-13, wherein, The adjustment unit is specifically configured to obtain a preset counter value of the target device for triggering the data sending operation; when the phase difference deviation of the target device is greater than the preset time value, update the preset counter value to the difference between the preset counter value and the phase adjustment value, where the phase adjustment value is the difference between the data phase difference and the preset time value; when the phase difference deviation of the target device is less than the negative of the preset time value, update the preset counter value to the sum of the preset counter value and the phase adjustment value.

20. The device according to any one of claims 11-13, wherein, The adjustment unit is specifically configured to, when the phase difference deviation of the target device does not meet the preset requirements, adjust the sending traffic of the target device according to the phase difference deviation to adjust the sending phase of the target device.

21. A computer device, wherein, Comprising: A processor, the processor is coupled to a memory, the memory is used to store programs or instructions, and when the programs or instructions are executed by the processor, the processor executes the method according to any one of claims 1 to 10.

22. A computer-readable storage medium having instructions stored thereon, which when run on a computer cause the computer to execute the method according to any one of claims 1 to 10.

23. A chip system, wherein, Comprising at least one processor and an interface, the interface is used to receive data and / or signals, and the at least one processor is configured to execute the method according to any one of claims 1 to 10.

24. A computer program product having a computer program stored thereon, wherein, When the computer program is executed, it implements the method according to any one of claims 1 to 10.

Citation Information

Patent Citations

  • Cell flow characteristic value adjusting method, device and system and storage medium

    CN112511455A