Link management method and apparatus
By using the status refresh pattern in link management to indicate that the link management command takes effect, the problems of high link management complexity and resource waste in the existing technology are solved, and more efficient link management and bandwidth utilization are achieved.
Patent Information
- Application Number
- PCT/CN2024/081110
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2023-03-16
- Filing Date
- 2024-03-12
- Publication Date
- 2024-09-19
AI Technical Summary
Link management in the existing technology is highly complex and inefficient, and results in a waste of fixed bandwidth resources when link management is not needed.
The sending device sends a logical block to the receiving device, including link management commands, and uses the status refresh pattern to indicate that the command takes effect, avoiding the handshake negotiation process, improving link management efficiency, and occupying bandwidth only when needed.
It reduces the complexity of link management and waste of resources, and improves the efficiency of link management and bandwidth utilization.
Smart Images

Figure CN2024081110_19092024_PF_FP_ABST
Abstract
Description
Link management method and device
[0001] CROSS-REFERENCE TO RELATED APPLICATIONS
[0002] This application claims priority to the Chinese patent application filed with the State Intellectual Property Office of the People's Republic of China on March 16, 2023, with application number 202310280540.9 and application name "A Link Management Method and Device", the entire contents of which are incorporated by reference into this application. Technical Field
[0003] The present application relates to the field of communication technology, and in particular to a link management method and device. Background Art
[0004] An interface is required to enable data transmission between two devices. After a link is established between two devices through an interface, the link may need to be managed or adjusted, such as power consumption management and scrambling code management.
[0005] Currently, when two devices perform link management, they need to handshake and negotiate. Only after reaching an agreement can the link management command take effect. This current solution results in high link management complexity and low link management efficiency.
[0006] Summary of the Invention
[0007] The embodiments of the present application provide a link management method and apparatus to reduce the complexity of link management and improve the efficiency of link management.
[0008] In a first aspect, an embodiment of the present application provides a link management method, which can be executed by a transmitting device or a module of the transmitting device (such as a chip or a chip system). The following takes the execution of the method by the transmitting device as an example. The method includes: the transmitting device sends a first logic block to the receiving device, the first logic block includes at least one link management command, and the link management command is used to adjust the state of the link between the transmitting device and the receiving device; sends a state refresh code pattern to the receiving device, the state refresh code pattern at least indicates that the first link management command takes effect synchronously between the transmitting device and the receiving device, and the first link management command is one of the at least one link management command.
[0009] In some scenarios, when at least one link management command includes multiple commands, when multiple link management commands need to be effective, the status refresh code pattern can indicate that multiple link management commands are synchronously effective between the transmitting device and the receiving device.
[0010] It should be noted that the link management command may also be referred to as a logical layer management command, or may be named by other names, which is not specifically limited in the embodiments of the present application.
[0011] In some scenarios, only the first link management command among the at least one link management command needs to be effective, and the state refresh code pattern may indicate that the first link management command is synchronously effective between the transmitting end device and the receiving end device.
[0012] In the above-mentioned solution of the present application, at least one link management command can be carried by a logic block, the link management command is transmitted through the logic layer, and the status refresh code pattern is used to indicate that the command is effective. When multiple link management commands need to be sent, multiple link management commands can be sent in one logic block. Compared with executing a handshake negotiation process for each link management command, the embodiment of the present application does not need to execute a handshake negotiation process, which can reduce the complexity of link management and improve link management efficiency.
[0013] In one possible implementation, the at least one link management command includes at least one of a scrambling code seed refresh command, a scrambling code enable command, a logical function switch command, a logical layer block start pattern (LLBSP) interval refresh command, and a link width switching command.
[0014] In one possible design, the first logic block includes at least one link management command, including: the first logic block includes N logical layer data packets, the N logical layer data packets each include a link management command, and N is a positive integer.
[0015] In the above design, the number of link management commands included in the logic block is not limited. N link management commands can be transmitted in one logic block as needed, which can improve the efficiency of link management.
[0016] In addition, current PCIE interface solutions use a fixed bandwidth for link management during service data transmission, resulting in a waste of fixed bandwidth resources when link management is not required. Some other current methods use special code patterns inserted between service data for link management. However, in order to distinguish the special code patterns, a synchronization header is required to distinguish between service data and special code patterns, which also results in a waste of fixed bandwidth resources. In the embodiments of the present application, link management commands are added to the logic block only when link management commands are needed, thereby avoiding the waste of resources caused by fixed bandwidth.
[0017] In one possible implementation, the logical layer data packet includes a packet type field, a packet length field, and a packet payload field. The packet type field is used to indicate the type of link management command carried, the packet length field is used to indicate the length of the logical layer data packet, and the packet payload field is used to carry the link management command.
[0018] In a possible implementation, the logic layer data packet further includes a check field, and the check field is used by the receiving device to check information other than the check field in the logic layer data packet.
[0019] In a possible implementation, the state refresh code pattern includes a first indication, where the first indication is used to indicate that the first link management command takes effect synchronously between the transmitting device and the receiving device.
[0020] In the above design, the effectiveness of the link management command is indicated by clear indication in the status refresh code pattern.
[0021] In a possible implementation, the state refresh code pattern includes multiple first indicator bits, each of which carries a first indication. One state refresh code pattern can indicate that multiple first link management commands are effective, thereby improving the reliability of data transmission.
[0022] In one possible implementation, the at least one link management command further includes a second link management command, and the status refresh code pattern further includes a second indication, where the second indication is used to indicate that the second link management command is not effective between the transmitting device and the receiving device. In the above design, the status refresh code pattern can indicate that the link management command is effective or that the link management command is not effective.
[0023] In a possible implementation, the at least one link management command further includes a third link management command, and the status refresh code pattern further includes a third indication, where the third indication is used to indicate that the third link management command takes effect synchronously between the transmitting device and the receiving device.
[0024] In the above design, a status refresh code pattern is used to indicate that multiple link management commands that need to be effective are effective, so as to further improve the link management efficiency.
[0025] In one possible implementation, the method further includes: before sending the status refresh code pattern to the receiving device, sending a second logic block to the receiving device, the second logic block including a fourth link management command; wherein the status refresh code pattern also includes a fourth indication, and the fourth indication is used to indicate that the fourth link management command takes effect synchronously between the sending device and the receiving device.
[0026] In the above design, link management commands sent through different logic blocks can also be indicated to be effective through a status refresh code pattern, which can further improve the efficiency of link management.
[0027] In one possible implementation, the state refresh pattern further includes verification information, which is used to verify information other than the verification information in the state refresh pattern. Adding verification to the state refresh pattern improves the reliability of transmission of validation information.
[0028] In a possible implementation, the state refresh code pattern is used to indicate that the first link management command takes effect synchronously between the transmitting end device and the receiving end device, including:
[0029] The state refresh pattern is used to indicate that the link management command received before receiving the state refresh pattern is synchronously effective between the transmitting device and the receiving device;
[0030] The link management commands received before receiving the status refresh pattern include a first link management command.
[0031] The above design provides another design scheme of the state refresh code pattern. As long as the sending end device sends the state refresh code pattern, it indicates that all the link management commands previously sent are effective.
[0032] In one possible implementation, the method further includes: periodically sending a logic block start code pattern to the receiving device, the logic block start code pattern being used for clock synchronization and / or lock status check between the sending device and the receiving device; the status refresh code pattern is located before the logic block start code pattern and is adjacent to the logic block start code pattern.
[0033] The above scheme can ensure the clock synchronization between the first device and the second device by sending the logic block startup code pattern, which is conducive to the correct transmission of data between the sending device and the receiving device. The state refresh code pattern is sent adjacent to the logic block startup code pattern, so that the receiving device only monitors whether the sending end sends the state refresh code pattern at the time of receiving the logic block startup code pattern, and there is no need to monitor the effective time of the link management command all the time. Reduce the processing complexity of the receiving device. In addition, the state refresh code pattern is sent and received at the time of receiving the logic block startup code pattern, and the link management command is synchronously effective when the state refresh code pattern is detected. During the reception of the logic block startup code pattern, the link only sends a special sequence code pattern and does not send business data, thereby ensuring the reliability of business data transmission.
[0034] This can be understood as follows: during service data transmission, the link state remains unchanged; during the transmission of special sequence patterns, the link state switches. This ensures that link state switching does not affect service data transmission, ensuring that link management is synchronized with service data transmission. For example, service data 0 is transmitted using link state 0, and service data 1 is transmitted using link state 1. The switch from link state 0 to link state 1 occurs during the transmission interval between service data 0 and service data 1, achieving synchronized switching.
[0035] In a possible implementation, the method further includes: before sending the status refresh code pattern to the receiving device, the number of repeated transmissions of the first link management command reaches a number threshold.
[0036] In the above design, after repeatedly sending the link management command multiple times, a status refresh code pattern is sent to indicate that the link management command is effective, so as to improve the reliability of data transmission.
[0037] In one possible implementation, the method further includes:
[0038] Before sending the status refresh code pattern to the receiving device, a third logic block is received from the receiving device, the third logic block includes a confirmation response, the confirmation response includes indication information for indicating that the link management command has been successfully received by the receiving device, and the link management command successfully received by the receiving end includes the first link management command.
[0039] In the above design, the receiving device can also send a confirmation response through the logic block, so that after the sending device receives the confirmation response to determine that the receiving device has correctly received the link management command, it sends a status refresh code to the receiving device to improve the reliability of data transmission.
[0040] In a possible implementation, the first logic block further includes at least one transport layer data packet, and the transport layer data packet is used to carry service data.
[0041] On the second aspect, an embodiment of the present application provides another link management method, which can be executed by a receiving device or a module of the receiving device (such as a chip or a chip system). The following takes the execution of the method by the receiving device as an example. The method includes: the receiving device receives a first logic block from the sending device, the first logic block includes at least one link management command, and the link management command is used to adjust the state of the link between the sending device and the receiving device; receives a state refresh code pattern from the sending device, the state refresh code pattern at least indicates that the first link management command takes effect synchronously between the sending device and the receiving device, and the first link management command is one of the at least one link management command.
[0042] In some scenarios, when at least one link management command includes multiple commands, when multiple link management commands need to be effective, the status refresh code pattern can indicate that multiple link management commands are synchronously effective between the transmitting device and the receiving device.
[0043] In some scenarios, only the first link management command among the at least one link management command needs to be effective, and the state refresh code pattern may indicate that the first link management command is synchronously effective between the transmitting end device and the receiving end device.
[0044] In the above-mentioned solution of the present application, at least one link management command can be carried by a logic block, the link management command is transmitted through the logic layer, and the status refresh code pattern is used to indicate that the command is effective. When multiple link management commands need to be sent, multiple link management commands can be sent in one logic block. Compared with executing a handshake negotiation process for each link management command, the embodiment of the present application does not need to execute a handshake negotiation process, which can reduce the complexity of link management and improve link management efficiency.
[0045] In a possible implementation, the at least one link management command includes at least one of a scrambling code seed refresh command, a scrambling code enable command, a logic function switch command, a logic block startup pattern interval refresh command, and a link width switching command.
[0046] In a possible implementation, the logic block includes at least one link management command, including: the logic block includes N logical layer data packets, the N logical layer data packets respectively include a link management command, and N is a positive integer.
[0047] In one possible implementation, the logical layer data packet includes a packet type field, a packet length field, and a packet payload field. The packet type field is used to indicate the type of link management command carried, the packet length field is used to indicate the length of the logical layer data packet, and the packet payload field is used to carry the content of the link management command.
[0048] In a possible implementation, the logic layer data packet further includes a check field, and the check field is used by the receiving device to check information other than the check field in the logic layer data packet.
[0049] In a possible implementation, the state refresh code pattern includes a first indication, where the first indication is used to indicate that the first link management command takes effect synchronously between the transmitting device and the receiving device.
[0050] In a possible implementation, the state refresh code pattern includes multiple first indication bits, and the multiple first indication bits all carry the first indication.
[0051] In a possible implementation, the at least one link management command further includes a second link management command, and the status refresh code pattern further includes a second indication, where the second indication is used to indicate that the second link management command is not effective between the transmitting device and the receiving device.
[0052] In a possible implementation, the at least one link management command further includes a third link management command, and the status refresh code pattern further includes a third indication, where the third indication is used to indicate that the third link management command takes effect synchronously between the transmitting device and the receiving device.
[0053] In one possible implementation, the method further includes:
[0054] Before receiving the status refresh code pattern from the transmitting end device, receiving a second logic block from the transmitting end device, the second logic block including a fourth link management command;
[0055] The state refresh code pattern further includes a fourth indication, and the fourth indication is used to indicate that the fourth link management command takes effect synchronously between the transmitting end device and the receiving end device.
[0056] In a possible implementation, the state refresh code pattern further includes verification information, and the verification information is used to verify information other than the verification information in the state refresh code pattern.
[0057] In a possible implementation, the state refresh code pattern at least indicates that the first link management command is synchronously effective between the transmitting end device and the receiving end device, including:
[0058] The state refresh pattern is used to indicate that the link management command received before receiving the state refresh pattern is synchronously effective between the transmitting device and the receiving device;
[0059] The link management commands received before receiving the status refresh pattern include a first link management command.
[0060] In one possible implementation, the method further includes:
[0061] Periodically receiving a logic block start pattern from a transmitting device, where the logic block start pattern is used for clock synchronization and / or lock status check between the transmitting device and the receiving device;
[0062] The state refresh pattern precedes the logic block start pattern and is adjacent to the logic block start pattern.
[0063] In one possible implementation, the method further includes:
[0064] Before receiving the status refresh code pattern from the transmitting end device, the first link management command from the transmitting end device is repeatedly received multiple times.
[0065] In one possible implementation, the method further includes:
[0066] Before receiving the status refresh code pattern from the sending device, a third logic block is sent to the sending device, the third logic block includes a confirmation response, the confirmation response includes indication information for indicating that the link management command has been successfully received by the receiving device, and the link management command successfully received by the receiving end includes the first link management command.
[0067] In a third aspect, an embodiment of the present application provides a communication device, which may be a transmitting device or a module (such as a chip or chip system) for a transmitting device. The device has the function of implementing any implementation method of the first aspect above. The function can be implemented by hardware or by executing corresponding software implementation by hardware. The hardware or software includes one or more modules corresponding to the above functions.
[0068] In a fourth aspect, an embodiment of the present application provides a communication device, which may be a receiving device or a module (such as a chip or chip system) for a receiving device. The device has the function of implementing any implementation method of the second aspect described above. The function can be implemented by hardware or by hardware executing corresponding software. The hardware or software includes one or more modules corresponding to the above functions.
[0069] In a fifth aspect, an embodiment of the present application provides a communication device, comprising a unit or means for executing each step of any implementation method in the above-mentioned first to second aspects.
[0070] In a sixth aspect, an embodiment of the present application provides a communication device, comprising a processor and an interface circuit, wherein the processor is configured to communicate with other devices via the interface circuit and execute any of the implementation methods in the first to second aspects above. The processor comprises one or more.
[0071] In a seventh aspect, an embodiment of the present application provides a communication device, comprising a processor coupled to a memory, the processor configured to call a program stored in the memory to execute any of the implementation methods described in aspects 1 to 2 above. The memory may be located within or outside the device, and the processor may be one or more.
[0072] In an eighth aspect, an embodiment of the present application provides a communication device comprising a processor and a memory; the memory is used to store computer instructions, and when the device is running, the processor executes the computer instructions stored in the memory so that the device executes any implementation method in the above-mentioned first to second aspects.
[0073] In a ninth aspect, an embodiment of the present application further provides a computer-readable storage medium, wherein instructions are stored in the computer-readable storage medium, which, when executed on a communication device, enables any implementation method in the above-mentioned first to second aspects to be executed.
[0074] In the tenth aspect, an embodiment of the present application also provides a computer program product, which includes a computer program or instructions. When the computer program or instructions are run by a communication device, any implementation method in the above-mentioned first to second aspects is executed.
[0075] In the eleventh aspect, an embodiment of the present application further provides a chip system, comprising: a processor for executing any implementation method in the above-mentioned first to second aspects.
[0076] In the twelfth aspect, an embodiment of the present application further provides a communication system, which includes a sending end device for executing any implementation method of the above-mentioned first aspect, and a receiving end device for executing any implementation method of the above-mentioned first aspect.
[0077] Based on the implementations provided in the above aspects, this application can also be further combined to provide more implementations. BRIEF DESCRIPTION OF THE DRAWINGS
[0078] FIG1 is a schematic diagram of a possible communication system architecture applicable to an embodiment of the present application;
[0079] FIG2 is a schematic diagram of a basic interface architecture applicable to an embodiment of the present application;
[0080] Figure 3 is a schematic diagram of the Flit structure;
[0081] FIG4 is a flow chart of a link management method provided in an embodiment of the present application;
[0082] FIG5 is a schematic diagram showing a transmitting end device sending a first LLB and a receiving end device receiving the first LLB according to an embodiment of the present application;
[0083] FIG6A is a schematic diagram of a possible structure of an LLB provided in an embodiment of the present application;
[0084] FIG6B is a schematic diagram of a possible structure of an LLP provided in an embodiment of the present application;
[0085] FIG6C is a schematic diagram of another possible structure of an LLP provided in an embodiment of the present application;
[0086] FIG6D is a schematic diagram of another possible structure of an LLP provided in an embodiment of the present application;
[0087] FIG6E is a schematic diagram of another possible structure of an LLP provided in an embodiment of the present application;
[0088] FIG6F is a schematic diagram of a possible structure of a TLP provided in an embodiment of the present application;
[0089] FIG7 is a schematic diagram of a data transmission structure within a logical layer provided in an embodiment of the present application;
[0090] FIG8 is a schematic diagram of LLB transmission provided in Example 1 according to an embodiment of the present application;
[0091] FIG9A is a schematic diagram of LLB transmission provided in Example 2 according to an embodiment of the present application;
[0092] FIG9B is another LLB transmission schematic diagram provided in Example 2 according to an embodiment of the present application;
[0093] FIG10 is a schematic diagram of LLB transmission provided in Example 3 according to an embodiment of the present application;
[0094] FIG11A is a transmission diagram showing that all sending channels of the MDP and MUP maintain a service data transmission state according to an embodiment of the present application;
[0095] FIG11B is a schematic diagram of service transmission in full-speed state provided by an embodiment of the present application;
[0096] FIG11C is a schematic diagram of an MDP entering an idle state according to an embodiment of the present application;
[0097] FIG11D is a schematic diagram of a channel reduction command transmission according to an embodiment of the present application;
[0098] FIG11E is a schematic diagram of service transmission of an MDP in an idle state and an MUP in a full-speed state according to an embodiment of the present application;
[0099] FIG12A is a schematic diagram of a link management command transmission process according to an embodiment of the present application;
[0100] FIG12B is a schematic diagram of a process for receiving a link management command according to an embodiment of the present application;
[0101] FIG12C is a schematic diagram of link management command transmission provided in an embodiment of the present application;
[0102] FIG12D is a schematic diagram of link management command transmission provided in an embodiment of the present application;
[0103] FIG13A is a schematic diagram of a sending process of another link management command provided in an embodiment of the present application;
[0104] FIG13B is a schematic diagram of a process for receiving a link management command according to an embodiment of the present application;
[0105] FIG13C is a schematic diagram of a link management command transmission process between an MDP and an MUP according to an embodiment of the present application;
[0106] FIG13D is a schematic diagram of another link management command transmission process between an MDP and an MUP according to an embodiment of the present application;
[0107] FIG13E is a schematic diagram of another link management command transmission process between an MDP and an MUP according to an embodiment of the present application;
[0108] FIG14 is a schematic structural diagram of a communication device 1400 provided in an embodiment of the present application;
[0109] FIG15 is a schematic structural diagram of a communication device 1500 provided in an embodiment of the present application. DETAILED DESCRIPTION
[0110] The technical solutions in the embodiments of the present application will be described below in conjunction with the drawings in the embodiments of the present application.
[0111] In the description of this application, unless otherwise specified, "plurality" means two or more than two. Furthermore, " / " indicates that the objects associated with each other are in an "or" relationship. For example, A / B can mean A or B. "And / or" in this application merely describes an association relationship between associated objects, indicating that three possible relationships exist. For example, "A and / or B" can mean: A exists alone, A and B exist simultaneously, or B exists alone. A and B can be singular or plural. Furthermore, to facilitate the clear description of the technical solutions of the embodiments of this application, the words "first" and "second" are used in the embodiments of this application to distinguish between identical or similar items with substantially the same functions and effects. Those skilled in the art will understand that words such as "first" and "second" do not limit the quantity or order of execution, and do not necessarily define differences. It should also be noted that, unless otherwise specified, the specific description of certain technical features in one embodiment can also be used to explain the corresponding technical features mentioned in other embodiments.
[0112] Figure 1 is a schematic diagram of a possible communication system architecture applicable to an embodiment of the present application. The communication system architecture includes two devices, namely a first device and a second device. The first device can act as a transmitter and the second device can act as a receiver, in which case the first device can be referred to as a transmitter device and the second device can be referred to as a receiver device. The first device can also act as a receiver and the second device can act as a transmitter, in which case the first device can be referred to as a receiver device and the second device can be referred to as a transmitter device. The types of the first device and the second device are not specifically limited in this application; that is, the first device and the second device can be any type of device.
[0113] Figure 2 is a schematic diagram of the basic architecture of the interface applicable to the embodiment of the present application. The interface includes two major parts: the protocol layer / transport layer and the physical layer. The physical layer mainly realizes the conversion between the protocol layer / transport layer data and the analog signal, and also includes functions such as encoding and decoding, scrambling and descrambling, and serial-to-parallel conversion. The physical layer generally includes a logic layer and an electrical layer. The logic layer performs digital processing, and the electrical layer completes the digital-to-analog signal conversion. The protocol layer / transport layer mainly completes the processing of the transmitted data, and realizes functions such as encoding and decoding, packetization and unpacking of the transmitted data. In addition, the logic layer will also assume some link management functions. For example: power consumption management, scrambling code management, etc. These link management functions only need to be executed at the logic layer, and do not require the participation of the protocol layer / transport layer, so the implementation method is defined separately at the logic layer.
[0114] Peripheral Component Interconnect Express (PCIE) 6 uses a flow control unit (Flit) structure for data processing. Figure 3 is a schematic diagram of the Flit structure. As shown in Figure 3, the Flit structure includes a transport layer packet (TLP), a data link layer packet (DLLP), a cyclic redundancy check (CRC), and error checking / correcting (ECC). DLLP can also be referred to as DLP. DLP occupies a fixed 6 bytes in the data link layer packet. PCIE 6 uses DLP to implement the link management function of the logical layer, that is, it uses DLP to carry link management commands.
[0115] As can be seen from Figure 3, in PCIE 6, the link management command occupies a fixed position in the Flit structure, that is, the DLP occupies 6 bytes of a single Flit. The fixed length of a single Flit is 256 bytes. The DLP consumes a fixed amount of 6 / 256 = 2.34% of the bandwidth, resulting in low bandwidth utilization of the port.
[0116] In addition, PCIE 6 introduces the L0p state to achieve dynamic adjustment of link width during data transmission to reduce power consumption. The L0p state is a sub-state of the L0 state (service transmission state). The L0p state is used in Flit mode, that is, service data is arranged and processed in a Flit structure. The steps for implementing link width adjustment based on the L0p state may include:
[0117] First, the downstream port (DSP) and upstream port (USP) in the PCIE port send training sequence 2 (TS2) to each other for negotiation, and indicate support for the L0p function in TS2. Dynamic link width adjustment can only be performed if both the DSP and USP support the L0p state.
[0118] Then, during service data transmission, the DSP and USP both detect their own bandwidth requirements and, based on these requirements, initiate bandwidth adjustment requests to the peer end, such as bandwidth reduction or bandwidth increase requests. Upon receiving the bandwidth adjustment request, the peer end determines whether link width adjustment can be performed based on the actual conditions of its own port. If so, it returns an acknowledgment (ACK) to inform the peer end that bandwidth adjustment can be initiated. Otherwise, it returns a negative acknowledgment (NACK). Only when both ends of the link support link bandwidth adjustment and complete negotiation can link bandwidth adjustment be initiated, meaning that the link bandwidth adjustment request command takes effect. Only one command can be negotiated at a time.
[0119] The above solution has the following drawbacks: (1) PCIE port link management commands require negotiation and confirmation between the sender and receiver before request and confirmation can be executed. This negotiation process is highly complex and inefficient. (2) Link management commands occupy a fixed position in the data transmission structure. When no management commands are transmitted, the fixed bits in the transmission structure are not occupied, resulting in wasted resources and low bandwidth utilization.
[0120] In addition, some other current solutions use a method of inserting special code patterns between business data for link management. However, in order to distinguish the special code patterns from the business data, a synchronization header needs to be inserted to distinguish the business data from the special code patterns. As a result, the synchronization header occupies a fixed bandwidth, resulting in a waste of fixed bandwidth resources.
[0121] Based on this, the embodiments of the present application provide a link management method and device to improve the efficiency of logical layer management and improve bandwidth utilization.
[0122] FIG4 is a flow chart of a link management method provided in an embodiment of the present application. The method includes the following steps 401 to 402.
[0123] In step 401, a transmitting device sends a first logical layer block (LLB) to a receiving device. Correspondingly, the receiving device receives the first logical block.
[0124] The first logic block includes at least one link management command, which is used to adjust the state of the link between the transmitting device and the receiving device. For example, the link management command can be a scrambling seed refresh command (also called a scrambling seed ID command), a scrambling enable command, a logical function switch command, a logical layer block start pattern (LLBSP) interval refresh command, or a link width switching command (also called a link width adjustment command or a link bandwidth switching command).
[0125] It should be noted that the link management command may also be referred to as a logical layer management command, or may be named by other names, which is not specifically limited in the embodiments of the present application.
[0126] In one possible implementation, the first LLB includes N logical layer packets (LLPs), each of which includes a link management command. In some embodiments, the N link management commands are of different types. The transmitter can insert one or more link management commands into the LLB as needed. The number and type of link management commands included in the LLP are limited only by the length of the LLB and the length of the link management command. That is, the maximum value of N is related to the length of the LLB and the length of the link management command.
[0127] Optionally, the first LLB may also include one or more transport layer packets (transaction layer packets, TLPs), where the TLPs are used to carry service data.
[0128] Figure 5 shows a schematic diagram of a transmitting device sending a first LLB and a receiving device receiving the first LLB, as provided in an embodiment of the present application. The transmitting device encapsulates at least one link management command into an LLP and service data into a TLP, and then combines the encapsulated LLPs and TLPs into an LLB. The LLB is then processed and transmitted, enabling logical layer management and service data bandwidth sharing. The receiving device receives and parses the LLB, extracting the LLP and TLP, and then extracts the link management command from the LLP.
[0129] FIG6A is a schematic diagram of a possible structure of an LLB provided in an embodiment of the present application. The LLB contains multiple LLPs and multiple TLPs. The LLPs and TLPs are sequentially encapsulated in corresponding positions of the LLB in the order in which they are generated. For example, in the example of FIG6A , the LLB sequentially includes LLP0, LLP1, LLP2, TLP0, LLP3, dummy data, TLP1, LLP5, and 10 Reed-Solomon (RS) codes, and the LLB occupies a total of 240 bytes. For another example, in another example, an LLB sequentially includes TLP0, TLP1, LLP0, TLP2, LLP1, TLP3, TLP4, ... . Dummy data can be added to an LLP or TLP. The RS in the LLB is used to verify the LLPs and TLPs. In the LLB example of Figure 6A, a single LLB is evenly distributed to 5 RS coding areas. At the transmitting end, each RS coding area is independently RS-encoded, and at the receiving end, each RS coding area is independently RS-decoded and error-corrected to achieve LLB data protection.
[0130] Figure 6B is a schematic diagram of a possible structure of an LLP provided in an embodiment of the present application. The LLP includes three fields: the packet type (PT), the packet length (PL), and the packet payload (PP). The packet type field indicates the type of link management command being carried, the packet length field indicates the length of the logical layer data packet, and the packet payload field is used to carry the link management command.
[0131] Optionally, the packet type field may occupy 1 byte, and the packet length field may occupy 1 byte. The number of bytes occupied by the packet payload field may be configured as required. FIG6B takes the example of a packet payload field including x bytes, i.e., including PP0-PPx, with each PPi occupying one byte.
[0132] Figure 6C is another possible structural diagram of the LLP provided in an embodiment of the present application. The LLP includes four fields, namely the PT field, the PL field, the PP field and the packet tail (PTL) field. The packet type field is used to indicate the type of link management command carried, the packet length field is used to indicate the length of the logical layer data packet, and the packet payload field is used to carry the link management command. The packet tail field can be used to carry verification information so that the receiving device can verify the information of other fields in the LLP based on the verification information. The number of bytes occupied by the packet tail field can also be configured according to demand. In Figure 6C, the packet tail field occupies 2 bytes as an example. The packet tail field includes PTL0 and PTL1, each occupying one byte. Exemplarily, the verification can use CRC, ECC, etc.
[0133] Figure 6D is a schematic diagram of another possible structure of an LLP provided in an embodiment of the present application. An LLP includes four fields: the PT field, the PL field, the PP field, and the packet trailer field. Unlike Figure 6C , a fixed byte or bytes in the PP field are used to carry the number. For example, the first byte or bytes of the PP field are used to carry the command number. The number of bytes occupied by the command number can also be configured as needed.
[0134] Figure 6E is a schematic diagram of another possible structure of an LLP provided in an embodiment of the present application. The LLP includes four fields: the PT field, the PL field, and the PP field. Unlike Figure 6B , a fixed byte or bytes in the PP field are used to carry the command number. For example, the first byte or bytes of the PP field are used to carry the command number. The number of bytes occupied by the command number can also be configured as needed.
[0135] FIG6F is a schematic diagram of a possible structure of a TLP provided in an embodiment of the present application. A TLP includes three fields: a PT field, a PL field, and a PP field. The packet type field is used to indicate that the packet type is a TLP type, the packet length field is used to indicate the length of the TLP, and the packet payload field is used to carry service data. Optionally, the packet type field may occupy one byte, the packet length field may occupy one byte, and the number of bytes occupied by the packet payload field may be configured as required. In some embodiments, a TLP may also include a packet trailer field. The packet trailer field in the TLP may be used to carry verification information for verifying other fields in the TLP.
[0136] Step 402: Send a status refresh pattern to the receiving device. Correspondingly, the receiving device receives the status refresh pattern.
[0137] The state refresh pattern (SRP) is used to indicate that the link management command takes effect synchronously between the sending end and the receiving end. For example, if at least one link management command sent before sending the state refresh pattern includes a first link management command, then the state refresh pattern at least indicates that the first link management command takes effect synchronously between the sending end device and the receiving end device. The state refresh pattern can also be called a synchronization pattern, or other names can be used. The receiving end device can execute the same link management command according to the indication in the state refresh pattern. Exemplarily, when multiple link management commands of the same type are received, and the state refresh pattern indicates that the link management command of this type is effective, the receiving end device can execute the last received link management command and discard the previously received link management command of this type.
[0138] In a possible implementation, the state refresh code pattern may indicate that all previously sent link management commands are synchronously effective between the transmitting device and the receiving device.
[0139] Refer to Table 1, which exemplarily describes a possible structure of the SRP provided in an embodiment of the present application. Table 1 takes the example of SRP occupying 20 bytes. The 20 bytes can use a default value to indicate that the code type is SRP, and indicate that all link management commands received before receiving the state refresh code type are synchronously effective between the transmitting device and the receiving device. SRP can also use other configuration values to indicate that the code type is SRP, and indicate that all link management commands received before receiving the state refresh code type are synchronously effective between the transmitting device and the receiving device. The embodiment of the present application does not specifically limit this.
[0140] Table 1
[0141] In another possible implementation, the state refresh pattern may include indicator bits for various link management commands. For example, taking the first link management command as an example, when the transmitting device needs to indicate that the first link management command has taken effect, it may add a first indication (also referred to as an effectiveness indication) to the indication bit corresponding to the first link management command in the state refresh pattern. This first indication indicates that the first link management command has taken effect synchronously between the transmitting and receiving devices.
[0142] In some possible scenarios, some link management commands sent by the transmitting device before sending the status refresh pattern do not meet the validity conditions. Taking the second link management command as an example, the transmitting device can add a second indication that the second link management command is invalid in the status refresh pattern.
[0143] Optionally, each link management command may correspond to multiple indicator bits (or bits) in the state refresh code pattern. Multiple indicator bits corresponding to a link management command carry the same validity indication, which can improve the reliability of the validity indication transmission.
[0144] Another possible structure of the SRP provided in the embodiment of the present application is exemplarily described in Table 2. Table 2 takes the example of link management commands including four types, namely, scrambling code seed refresh command, scrambling code enable command, LLBSP interval refresh command, and link width switching command.
[0145] Table 2
[0146] In Table 2, the first four bits of the second byte are the indicator bits for the four link management commands. It should be noted that the order of the indicator bits for the four link management commands in the SRP is not specifically limited in the embodiments of this application and is provided in Table 2 only as an example. In Table 2, taking the 20-byte SRP as an example, the 20 bytes are divided into four parts, each carrying the same information, to improve the reliability of information transmission.
[0147] See Table 3 for an exemplary description of another possible structure of the SRP provided in an embodiment of the present application. Compared to Table 2, Table 3 includes a check bit for each link management command corresponding to the indicator bit in the SRP, which is used to verify the indicator bit corresponding to the link management command in the SRP to further improve the reliability of information transmission.
[0148] Table 3
[0149] In Table 2, the first four bits of the second byte are the indicator bits of the four link management commands. It should be noted that the order of the indicator bits of the four link management commands in the SRP is not specifically limited in the embodiments of the present application, and Table 3 is only used as an example. In Table 3, taking the SRP occupying 20 bytes as an example, the 20 bytes are divided into 2 parts, each carrying the same information, to improve the reliability of information transmission. It should be noted that the position of the check bit in the SRP is not specifically limited in the embodiments of the present application, and Table 3 is used as an example.
[0150] Table 4 illustrates another possible structure of an SRP provided by an embodiment of the present application. Compared to Table 2, Table 4 increases the number of information transmissions to further improve information transmission reliability. In Table 4, taking the 20-byte SRP as an example, the 20 bytes are divided into four portions, each carrying the same information.
[0151] Table 4
[0152] In one possible implementation, the transmitting device may also periodically send a logical layer block start pattern (LLBSP) to the receiving device. The LLBSP is used for clock synchronization and / or lock status check between the transmitting and receiving devices. The transmitting device sends an LLBSP every time it sends a certain number of LLBs.
[0153] 1) Clock Synchronization: There may be slight deviations between the transmitting device's transmit clock and the receiving device's receive clock. This deviation can cause a discrepancy between the transmitting device's transmit data rate and the receiving device's receive data rate. This can lead to data accumulation at the receiving device (small amounts of accumulated data can be temporarily stored by adding a cache module). LLBSPs are sent periodically. While receiving the LLBSPs, the receiving device processes the accumulated data to prevent the accumulated data from exceeding the cache module's buffering capacity and causing data loss.
[0154] 2) Lock Status Check: The LLBSP is periodically sent. The receiving device adjusts the block lock status based on the matching of the sampled data stream with the LLBSP to ensure subsequent correct reception and recognition of different logic blocks. Specifically, because logic blocks are continuously transmitted data streams, two consecutive logic blocks cannot be distinguished and can only be distinguished by counting the start and end points. If a single bit of data is lost during data stream transmission, subsequent logic block recognition will be misaligned, resulting in an anomaly. To mitigate the impact of this anomaly, the LLBSP is periodically inserted to implement block lock adjustment, so that the logic blocks after the LLBSP can be correctly recognized.
[0155] Of course, the present application does not limit the LLBSP to having only the functions of clock synchronization and lock status check, and it may also have other functions in actual applications.
[0156] Optionally, the transmitting device may send an SRP before sending an LLBSP, and the SRP is adjacent to the LLBSP. After the transmitting device inserts a link management command in a certain LLB, if the link management command needs to take effect, it may insert an SRP in the LLBSP interval, that is, insert SRP+LLBSP, and indicate in the SRP that the link management command is effective. After the transmitting device sends a link management command, if the link management command is not effective, the transmitting device may send an SRP or not. If it sends an SRP, it may indicate in the SRP that the link management command is not effective. In some embodiments, when there is no link management command that needs to take effect, it is not necessary to send an SRP when entering the LLBSP sending interval.
[0157] When a transmitting device sends data to a receiving device, it does so through a transmit channel, which corresponds to a receive channel on the receiving device. A transmit channel (TX) can also be called a downstream channel, and a receive channel (RX) can also be called an upstream channel. In the scenario shown in Figure 1, the port on the first device is called a main downstream port (MDP), and the port on the second device is called a main upstream port (MUP). A main downstream port is one where the number of downstream channels is greater than or equal to the number of upstream channels; downstream channels correspond to transmit channels, and upstream channels correspond to receive channels. For a main upstream port, the number of downstream channels is less than or equal to the number of upstream channels. For example, an MDP in 6+2 mode has 6 transmit channels and 2 receive channels. A MUP in 2+6 mode has 2 transmit channels and 6 receive channels. After link lock is achieved, the MDP can transmit data through up to 6 channels and receive data through up to 2 channels, while the MUP can transmit data through up to 2 channels and receive data through up to 6 channels. It should be noted that this is only an example, and the number of sending channels and receiving channels of the device is not limited in actual applications.
[0158] In the present application, at least one link management command can be carried by a logic block, the link management command is transmitted through the logic layer, and the status refresh code pattern is used to indicate that the command is effective. When multiple link management commands need to be sent, multiple link management commands can be sent in one logic block. Compared with executing a handshake negotiation process for each link management command, the embodiment of the present application does not need to execute a handshake negotiation process, which can reduce the complexity of link management and improve link management efficiency. In addition, in the embodiment of the present application, a link management command will be added to the logic block only when a link management command needs to be sent, thereby avoiding the waste of resources caused by fixed bandwidth.
[0159] Figure 7 is a schematic diagram of a data transmission structure within a logical layer according to an embodiment of the present application. For example, the six transmission channels of the MDP and the two transmission channels of the MUP are in the high-speed logical layer status (LLSH). LLSH is also known as the service transmission state, meaning that LLBs can be transmitted normally.
[0160] For example, the first device acts as the transmitter and the second device acts as the receiver. The MDP of the first device sends an LLB to the MUP of the second device. At the MDP port, the LLB is evenly distributed across six transmit channels. For example, each LLB occupies 240 bytes, represented by bytes B0 to B239. The MDP port evenly distributes bytes B0 to B239 of the LLB across six transmit channels for transmission. An LLBSP is inserted every n LLBs, and the LLBSP is also evenly distributed across six transmit channels for transmission. The LLBSP is transmitted in a similar manner to the LLB. After the first device inserts a link management command into an LLB, if it needs the link management command to take effect, it can insert an SRP within the LLBSP interval. For example, it can send an SRP+LLBSP on each of the six transmit channels. After receiving the data bit streams from the six channels, the MUP assembles the LLB and receives the LLBSP or SRP+LLBSP from the six receive channels.
[0161] For example, with the first device as the receiver and the second device as the transmitter, the second device's MUP sends LLBs to the first device's MDP. At the MDP port, the LLBs are evenly distributed across two transmission channels. An LLBSP is inserted every n LLBs, and the LLBSPs are also evenly distributed across two transmission channels. If the second device inserts a link management command into an LLB and needs the command to take effect, it can insert an SRP within the LLBSP interval. For example, during the LLBSP transmission interval, the second device sends an SRP+LLBSP on both transmission channels.
[0162] In some possible scenarios, after a transmitting device sends one or more link management commands in an LLB (for example, a first LLB), it may need to send another link management command within an LLBSP refresh period. In this case, the other link management command may be inserted into another LLB (for example, a second LLB). During the LLBSP refresh period, if both the link management commands carried in the first LLB and the second LLB need to take effect (or meet the conditions for taking effect), an SRP is inserted before the LLBSP. The SRP includes an indication indicating that the link management commands carried in the first LLB and the second LLB have taken effect.
[0163] The following describes how different types of link management commands are transmitted and taken effect.
[0164] Example 1:
[0165] Taking the scrambling seed refresh command as an example, the scrambling seed refresh command is used to indicate the scrambling seed used for scrambling and descrambling each channel.
[0166] Table 5 illustrates the structure of an LLP carrying a scrambling code seed refresh command according to an embodiment of the present application. Table 5 uses the example of a first device's MDP with six transmit channels in LLSH mode. The six transmit channels are channel 0 through channel 5. The LLP includes the PT, PL, PP, and PTL.
[0167] Table 5
[0168] FIG8 is a schematic diagram of LLB transmission provided in Example 1 of the embodiment of the present application.
[0169] For the sending device:
[0170] In the initial state, each channel uses the initial scrambling seed to scramble the transmitted LLB. Each channel is independently controlled and can have a different initial scrambling seed. During LLB transmission, if a scrambling seed ID refresh is detected, scrambling seed refresh command 0 is constructed and embedded in the LLB and sent along with the service data. The scrambling seed is not updated at this time, and the LLB continues to be scrambled using the initial scrambling seed. For example, channel 0 is scrambled using seed 0. During the LLBSP transmission interval, if scrambling seed refresh command 0 is required to take effect, an SRP+LLBSP is inserted. This SRP indicates that scrambling seed refresh command 0 has taken effect. The transmitting device uses scrambling seed refresh command 0 to update the scrambling seed for each channel. After the LLBSP is transmitted, each channel scrambles the LLB using the scrambling seed parsed by scrambling seed refresh command 0. For example, if scrambling seed refresh command 0 indicates that channel 0 is using seed 7, channel 0 switches to scrambling using seed 7. During this period, if a scrambling seed ID refresh is detected, Scrambling Seed Refresh Command 1 and Scrambling Seed Refresh Command 2 are constructed and embedded into the LLB and sent along with the service data. The scrambling seed is not updated at this time, and the LLB continues to be scrambled using the scrambling seed corresponding to Scrambling Seed Refresh Command 0. During the LLBSP transmission interval, if Scrambling Seed Refresh Command 1 and Scrambling Seed Refresh Command 2 are required to take effect, SRP+LLBSP is inserted. The SRP indicates that Scrambling Seed Refresh Command 1 and Scrambling Seed Refresh Command 2 are effective. The transmitting device updates the scrambling seed for each channel using Scrambling Seed Refresh Command 2. After the LLBSP is sent, each channel scrambles the LLB using the scrambling seed parsed by Scrambling Seed Refresh Command 2. For example, if Scrambling Seed Refresh Command 2 indicates that channel 0 is using seed 6, channel 0 switches to using seed 6 for descrambling.
[0171] For receiving devices:
[0172] In the initial state, each channel descrambles the transmitted LLB using the initial scrambling seed. Each channel is independently controlled and can have a different initial scrambling seed. During LLB transmission, if Scrambling Seed Refresh Command 0 is detected, it is parsed and the relevant parameters are retained, but the scrambling seed is not updated. The initial scrambling seed is maintained for LLB descrambling. For example, channel 0 is descrambling using Seed 0. If the receiving device detects the SRP, which indicates that the Scrambling Seed Refresh Command has taken effect, it updates the scrambling seed using the parameters previously parsed from Scrambling Seed Refresh Command 0. After receiving the LLBSP, each channel descrambles the LLB using the scrambling seed corresponding to Scrambling Seed Refresh Command 0. For example, if Scrambling Seed Refresh Command 0 indicates that channel 0 is using Seed 7, channel 0 switches to using Seed 7 for descrambling. During this period, if Scrambling Seed Refresh Command 1 and Scrambling Seed Refresh Command 2 are detected, they are parsed and only the parameters related to Scrambling Seed Refresh Command 2 are retained, while those related to Scrambling Seed Refresh Command 1 are discarded. Waiting for the LLBSP reception interval, SRP is detected, and the SRP indicates that the scrambling seed refresh command 1 and the scrambling seed refresh command 2 are effective simultaneously, and the scrambling seed is updated using the parameters previously parsed from the scrambling seed refresh command 2. After receiving the LLBSP, each channel uses the scrambling seed corresponding to the scrambling seed refresh command 2 to descramble the LLB. For example, if the scrambling seed refresh command 2 indicates that the seed used by channel 0 is seed 6, channel 0 switches to using seed 6 for descrambling.
[0173] Example 2:
[0174] Take the scrambling enable command as an example. The scrambling enable command is used to indicate whether to perform scrambling or descrambling on each channel.
[0175] Table 6 illustrates the structure of an LLP carrying a scrambling enable command according to an embodiment of the present application. In Example 2, the first device's MDP is configured with three channels in LLSH mode. The three transmit channels are channel 0 through channel 2. The LLP includes a PT, PL, PP, and PTL.
[0176] Table 6
[0177] Figures 9A and 9B are schematic diagrams of LLB transmission provided in Example 2 of the embodiment of the present application. In Figure 9A, the scrambling code enable command indicates that scrambling and descrambling are enabled. In Figure 9B, the scrambling code enable command indicates that scrambling and descrambling are disabled.
[0178] In some possible scenarios, after the transmission of valid data is completed, the invalid data sent subsequently will not be scrambled or descrambled. As shown in Figure 9A, the transmitting device determines that the transmission of valid data is about to end, and can insert the scrambling code enable command 0 before the end to indicate that the scrambling code is turned off. At this time, the transmitting device maintains scrambling for the subsequently transmitted LLB. When the transmitting device waits for the LLBSP transmission interval and determines that the valid data has been sent, it can insert SRP+LLBSP before the SRP indicates that the scrambling code enable command 0 is effective, and the LLB sent after the LLBSP does not perform the scrambling operation. At this time, the LLB transmits invalid data and turns off the scrambling function to save power. During the transmission of valid data, the receiving device receives the LLB normally and performs descrambling. The receiving device detects the scrambling code enable command 0 in the received LLB, parses the scrambling code enable command and retains the relevant parameters. When the SRP is detected and the SRP indicates that the scrambling code enable command 0 is effective, the descrambler is turned off.
[0179] In other possible scenarios, after the invalid data is sent, the valid data sent subsequently can be scrambled and descrambled. As shown in Figure 9B, when the transmitting device detects that the invalid data is about to be sent, it inserts the scrambling enable command 1 before the end, and the scrambling enable command 1 indicates to turn on the scrambling enable. At this time, the transmitting device remains unscrambled for the subsequently transmitted LLB. When the transmitting device waits for the LLBSP sending interval and determines that valid data is about to be sent, it can insert SRP+LLBSP, and the SRP indicates that the scrambling enable command 1 is effective. The transmitting device scrambles the LLB sent after the LLBSP. At this time, the LLB resumes valid data transmission. The receiving device receives and parses the LLB, detects the scrambling enable command 1 in the LLB, parses the scrambling enable command 1 and retains the relevant parameters. When the receiving device detects the SRP, and the SRP indicates that the scrambling enable command 1 is effective, the receiving device turns on the descrambler after receiving the LLBSP and performs descrambling operations on the LLB received after the LLBSP.
[0180] Example 3:
[0181] Take the LLBSP interval refresh command as an example. The LLBSP interval refresh command is used to instruct the adjustment of the LLBSP period. For example, instead of inserting an LLBSP every M1 LLB interval, it can be switched to inserting an LLBSP every M2 LLB interval. Both M1 and M2 are positive integers.
[0182] Table 7 illustrates the structure of an LLP carrying an LLBSP interval refresh command according to an embodiment of the present application. In Example 3, the first device's MDP is configured with six channels in LLSH mode. The six transmission channels are channel 0 through channel 5. The LLP includes PT, PL, PP, and PTL.
[0183] Table 7
[0184] Figure 10 is a schematic diagram of LLB transmission provided in Example 3 of the embodiment of the present application. Figure 10 takes the LLBSP transmission interval as an example where 50 LLBs are switched to 20 LLBs.
[0185] For the sending device:
[0186] The transmitting device periodically inserts an LLBSP into the LLB at an interval of 50 LLBs, meaning it inserts an LLBSP every 50 LLBs. These 50 LLBs are evenly distributed across six channels for transmission; the LLBSP is transmitted independently and synchronously across the six channels. During LLB transmission, an LLBSP interval refresh command is inserted, maintaining the LLBSP transmission period. The transmitting device waits until the LLBSP transmission interval begins and sends an SRP+LLBSP. The SRP indicates that the LLBSP interval refresh command has taken effect. After the SRP+LLBSP is sent, the LLBSP transmission period is updated to insert an LLBSP every 20 LLBs. This LLBSP insertion period persists throughout subsequent LLB transmissions until a new LLBSP interval refresh command is issued and refreshed via the SRP.
[0187] For receiving devices:
[0188] The receiving device receives LLBs sequentially and checks the LLBSP every 50 LLBs. During the LLB parsing process, it detects an LLBSP interval refresh command, parses the command, and saves the parsed parameters. After detecting the SRP, the LLBSP interval refresh command takes effect and the LLBSP detection period is updated. Subsequent LLB reception and LLBSP detection are performed according to the updated parameters and maintained.
[0189] Example 4:
[0190] Take the link width switching command as an example. The link width switching command includes the lane-up command and the lane-down command. The lane-up command is used to increase the number of lanes in the link in the service transmission state, and the lane-down command is used to reduce the number of lanes in the link in the service transmission state. The link channel includes two states, namely LLSH and standby logical layer status (LLSS). LLSS can also be called the electrical initialization state. When the channel is in the electrical initialization state, the channel cannot transmit service data.
[0191] The link status of a device's port includes full-speed, idle, and zero-speed states. The full-speed state means that all sending channels corresponding to the logical layer ports (MDP and MUP) are in LLSH, and the link is in the maximum bandwidth transmission state at the current rate. The idle state means that some channels corresponding to the logical layer ports are in LLSH, and other channels are in LLSS. The zero-speed state means that all channels corresponding to the logical layer ports are in LLSS, and the logical layer suspends the main link service data transmission. At this time, the transport layer data bandwidth is equal to 0.
[0192] Figure 11A is a transmission schematic diagram of an embodiment of the present application in which all the transmission channels of the MDP and MUP maintain the business data transmission state. In Figure 11A, the MDP port channel is configured in 6+2 mode and the MUP port channel is configured in 2+6 mode as an example. The MDP port has 6 channels to send data and 2 channels to receive data; the MUP port has 2 channels to send data and 6 channels to receive data. As shown in Figure 11A, the MDP and MUP send LLBs to each other, and an LLBSP is inserted every n LLBs. At the MDP port, the LLBs are evenly distributed to 6 transmission channels for transmission. At the MUP port, the LLBs are evenly distributed to 2 transmission channels for transmission; each channel in the MDP and MUP ports independently sends and receives LLBSP code types.
[0193] Figure 11B is a schematic diagram of service transmission at full speed according to an embodiment of the present application. It can be seen that all MDP transmission channels (i.e., six transmission channels) remain in the service transmission state, and all MUP transmission channels (i.e., two transmission channels) also remain in the service transmission state. In other words, channels 0-5 of the MDP are in the service transmission state, and channels 0-1 of the MUP are in the service transmission state.
[0194] The following illustrates the link width switching process, where the MDP enters idle mode while the MUP remains at full speed. For example, if the bandwidth demand on the MDP port decreases, it will directly shut down four channels and enter idle mode. Assuming the MDP decides to shut down channels 2-5, after shutting down channels 0-1, the MDP remains in service transmission mode, while channels 2-5 remain in their electrical initialization mode.
[0195] Figure 11C is an example diagram of channel allocation when the MDP sends LLBs provided in an embodiment of the present application. When the MDP detects that the bandwidth demand has become smaller, it can insert a lane reduction command in the LLB, and the lane reduction command is carried in the LLP. The lane reduction command is used to indicate the closure of four channels. Dynamic switching of link width is started, and the MDP and MUP maintain full speed for business data transmission. After the MDP port Lane-Down command is sent, it waits to enter the LLBSP sending interval. The business data transmission state is maintained on the sending channel 0-1, and when entering the LLBSP sending interval, SRP is sent before sending the LLBSP. SRP is used to indicate that the lane reduction command is effective. On the sending channels 2-5, the MDP waits to enter the LLBSP sending interval after sending the LLB, and stops sending the LLB when it reaches the LLBSP sending interval. The LLBSP that was originally required to be sent is replaced by sending SRP and the electrical idle pattern (EIP), that is, instead of sending the LLBSP, SRP and EIP are sent. After the MDP sends the SRP and EIP on channel 2-5, the channel 2-5 enters the electrical initial state, and the MDP enters the idle state. Specifically, see FIG11D , which is a schematic diagram of the MDP entering the idle state according to an embodiment of the present application.
[0196] Figure 11E is a schematic diagram of service transmission in the MDP idle state and the MUP at full speed according to an embodiment of the present application. It can be seen that channels 0-1 of the MDP are in service transmission mode, while channels 2-5 are in the electrical initialization mode. Channels 0-1 of the MUP are in service transmission mode.
[0197] For example, in combination with the LLP structure shown in FIG6B , an example of a link width switching command is given below, as shown in Table 8.
[0198] Table 8
[0199] In the example of Table 8, if it is necessary to instruct to close channels 2-5, the 8-bit information of byte 2 (i.e., the third byte) of the LLP where the channel reduction command is located is: 00111110. Among them, 01111100 corresponds to bits 0 to 7 from left to right.
[0200] In some scenarios, when a channel is in the business data transmission state, the transmitting device can further close the channel as needed through a channel reduction command instruction. When a channel is in the business data transmission state in MDP and MUP, the channel can also be opened as needed through a channel increase command instruction. The specific execution method is similar to the above-mentioned method of closing channels 2-5 and will not be repeated here. When the MDP and MUP are in the zero-speed state, the MDP and MUP can be restored to the full-speed state by directly sending the training code pattern.
[0201] The timing of sending the SRP after sending the link management command is exemplified below. The timing of sending the SRP can also be understood as sending the SRP after sending the link management command and when it is determined that the conditions for sending the SRP are met.
[0202] Method 1:
[0203] When the number of times the link management command is repeatedly sent reaches the threshold, SRP is sent. For example, when entering the LLBSP sending interval, SRP+LLBSP is sent.
[0204] FIG12A is a schematic diagram of the link management command sending process provided in an embodiment of the present application.
[0205] Step 1201a: The sending device generates a link management command.
[0206] In step 1202a, the sending end device encapsulates the link management command into an LLP and embeds it into an LLB. The LLB carrying the LLP is processed and sent along with other service data.
[0207] In step 1203a, the transmitting device determines whether the number of times the link management command has been sent reaches a threshold number. If so, execute step 1204a; if not, execute step 1202a.
[0208] For example, the transmitting end device may repeatedly send the link management command at intervals of a set duration or a set number of LLBs or a set number of bytes. When the transmitting end device determines that the number of times the link management command has been sent reaches a threshold, it stops sending the link management command.
[0209] Step 1204a: When entering the LLBSP sending interval, send SRP+LLBSP.
[0210] Figure 12B is a schematic diagram of the receiving process of the link management command provided in an embodiment of the present application.
[0211] Step 1201b: The receiving device receives the LLB.
[0212] Step 1202b: The receiving device detects the LLP from the LLB.
[0213] In step 1203b, the receiving device parses the detected LLP to determine whether the parsing is correct. If so, step 1204b is executed. If not, the LLP is discarded and step 1202b is executed.
[0214] Step 1204b: The receiving device detects the SRP, and if the SRP indicates that the link management command is effective, the receiving device responds to the link management command.
[0215] The embodiment of the present application supports the transmission of multiple link management commands in the same LLB, or in the same LLBSP cycle.
[0216] The following describes method 1 in combination with different SRP sending situations.
[0217] Scenario 1-1: After the transmitting device sends multiple link management commands, not all of them meet the requirements for validation. During the LLBSP transmission period, if a link management command meets the requirements, an SRP is immediately sent. This example uses two link management commands, link management command a and link management command b, as examples.
[0218] FIG12C is a schematic diagram of a link management command transmission provided in an embodiment of the present application.
[0219] The sending device encapsulates the service data into TLPs, which are then grouped into LLBs, and evenly distributes the LLBs over one or more channels in LLSH for transmission. FIG12C does not illustrate the channels in LLSH, and the specific distribution method is as described above and will not be repeated here.
[0220] The transmitting device generates link management command a. Inserts link management command a into the LLB to be sent. After sending several LLBs, the transmitting device generates link management command b. The transmitting device continues to retransmit link management command a and link management command b according to the retransmission rule. When the number of retransmissions of link management command a reaches the number threshold, and link management command b does not reach the number threshold, the transmitting device sends SRP1 when entering the LLBSP sending interval. SRP1 indicates that link management command a is effective. SRP1 can indicate that link management command b is not effective. The transmitting device continues to send LLBs. When the number of retransmissions of link management command b reaches the number threshold, it waits for the LLBSP sending interval. When entering the LLBSP sending interval, it sends SRP2+LLBSP. SRP2 indicates that link management command b is effective.
[0221] Exemplarily, SRP2 and SRP1 can adopt any possible structure in Table 2-Table 4. For example, take the link management command a as the scrambling code seed refresh command and the link management command b as the LLBSP interval refresh command as an example. When SRP1 and SRP2 adopt the structure of Table 4, the first 4 bits of information of byte 1 (i.e., the second byte) of SRP1 are: 1000. Among them, 1000 corresponds to bits 0 to 3 from left to right. Bit 0 is set to 1, indicating that the scrambling code seed refresh command is effective. Bit 2 is set to 0, indicating that the LLBSP interval refresh command is not effective. Since the scrambling code enable command and the link wide-short switching command were not sent previously, the indicator bits corresponding to the two commands can be padded with 0. The first 4 bits of information of byte 1 (i.e., the second byte) of SRP2 are: 0010.
[0222] After receiving the same link management command multiple times, if the receiving device receives an SRP indicating that the link management command is valid, it only considers the most recently received link management command to be valid. Continuing with the previous example, if the receiving device receives link management command a multiple times, it only considers the most recently received link management command a to be valid.
[0223] In the embodiment of the present application, before sending SRP for state synchronization, it is allowed to send multiple link management commands of the same category but with different instructions to achieve command coverage.
[0224] For example, if link management command a is a channel reduction command, for example, when the MDP detects that the bandwidth demand has decreased, it inserts channel reduction command 0 into the LLB, specifying the closure of three transmission channels. Before entering the LLBSP transmission interval, the MDP detects a change in bandwidth demand again and only needs to close two channels, so it inserts channel reduction command 1 into the LLB. The MDP repeats channel reduction command 1 and no longer sends channel reduction command 0. When the number of repeated transmissions of channel reduction command 1 reaches the threshold and the LLBSP transmission interval is entered, an SRP is sent, indicating that the channel reduction command is effective. After receiving channel reduction command 0, the MUP of the receiving device continues to receive channel reduction command 1. The MUP only determines that the most recently received channel reduction command 1 is valid. Only the current scenario corresponds to the last channel reduction command, that is, the later sent channel reduction command 1 overwrites channel reduction command 0. For example, if link management command a is an LLBSP interval refresh command, and LLBSP interval refresh command 0 is first sent, then before the RSP is sent, the transmitting device's requirements change, generating LLBSP interval refresh command 1. LLBSP interval refresh command 1 is then repeatedly sent. When it is determined that the number of times LLBSP interval refresh command 1 has been sent reaches the threshold and the LLBSP transmission interval has been reached, an SRP is sent, indicating that the LLBSP interval refresh command has taken effect. The MUP only validates the most recently received LLBSP interval refresh command, meaning that the later-sent LLBSP interval refresh command 1 overrides LLBSP interval refresh command 0.
[0225] Scenario 1-2: After the transmitting device sends multiple link management commands, it can temporarily retain some of the link management commands that meet the validation requirements and not indicate their effectiveness until other link management commands meet the validation requirements. At this point, it can send the SRP again. This example uses two link management commands, link management command a and link management command b, as examples.
[0226] Figure 12D is a schematic diagram of link management command transmission provided in an embodiment of the present application.
[0227] The sending device encapsulates the service data into TLPs, which are then grouped into LLBs, and evenly distributes the LLBs over one or more channels in LLSH for transmission. FIG12D does not illustrate the channels in LLSH, as the specific distribution method is as described above and will not be repeated here.
[0228] The transmitting device generates link management command a. Inserts link management command a into the LLB to be sent. After sending several LLBs, the transmitting device generates link management command b. The transmitting device continues to retransmit link management command a and link management command b according to the retransmission rules. When the number of retransmissions of link management command a reaches the number threshold, and link management command b does not reach the number threshold, the transmitting device does not send SRP when entering the LLBSP sending interval. The transmitting device continues to send LLBs, and when the number of retransmissions of link management command b reaches the number threshold, it waits for the LLBSP sending interval, and when entering the LLBSP sending interval, it sends SRP+LLBSP. This SRP indicates that both link management command a and link management command b are effective.
[0229] In a possible example, SRP can adopt any possible structure provided in Table 2 to Table 4. For example, take the link management command a as the scrambling code seed refresh command and the link management command b as the LLBSP interval refresh command. When SRP adopts the structure of Table 4, the first 4 bits of information of byte 1 (i.e., the second byte) of SRP are: 1010. Among them, 1010 corresponds to bits 0 to 3 from left to right. Bit 0 is set to 1, indicating that the scrambling code seed refresh command is effective. Bit 2 is set to 1, indicating that the LLBSP interval refresh command is effective. Since the scrambling code enable command and the link wide-short switching command were not sent previously, the indicator bits corresponding to the two commands can be padded with 0.
[0230] In another possible example, SRP may also adopt the structure shown in Table 1. The transmitting device sends SRP for state synchronization, indicating that all link management commands sent before the current SRP (and after the last SRP) are effective.
[0231] After receiving the same link management command multiple times, if the receiving device receives an SRP indicating that the link management command is effective, it will only determine that the most recently received link management command is effective. In this embodiment of the present application, it is allowed to send multiple link management commands of the same category but with different instructions before sending an SRP for state synchronization, thereby achieving command overlap. For a specific example, please refer to the description of Case 1 above and will not be repeated here.
[0232] Case 1-3: After the transmitting device sends several link management commands, if other types of commands need to be sent, it can temporarily hold these commands until the previously sent link management commands meet the validation conditions and the SRP instructions are valid. Then, it can initiate the sending of these other types of commands. For example, after sending link management commands a and b, but before both meet the validation conditions, a link management command c is generated. In this case, it can hold this link management command c and not send it. It can wait until both commands take effect and the SRP is sent before it can initiate the sending of this link management command c.
[0233] Method 2:
[0234] When the transmitting device determines that the receiving device has successfully received the link management command, it sends an SRP. For example, when entering the LLBSP sending interval, SRP+LLBSP is sent.
[0235] FIG13A is a schematic diagram of the sending process of another link management command provided in an embodiment of the present application.
[0236] Step 1301a: The sending device generates a link management command.
[0237] In step 1302a, the sending end device encapsulates the link management command into an LLP and embeds it into an LLB. The LLB carrying the LLP is processed and sent along with other service data.
[0238] In step 1303a, the transmitting device waits for the receiving device to respond to confirm the reception command. If an ACK is received, step 1304a is executed. If a NACK is received or no feedback is received after waiting for a set period of time, step 1302a is executed.
[0239] Step 1304a: When entering the LLBSP sending interval, send SRP+LLBSP.
[0240] Figure 13B is a schematic diagram of the receiving process of the link management command provided in an embodiment of the present application.
[0241] Step 1301b: The receiving device receives the LLB.
[0242] Step 1302b: The receiving device detects the LLP from the LLB.
[0243] In step 1303b, the receiving device parses the detected LLP to determine whether the parsing is correct and no LLP is missing. If so, execute step 1304b; otherwise, execute step 1305b.
[0244] In step 1304b, the receiving device sends an ACK to the sending device to indicate that the LLP is received correctly. Execute step 1306b.
[0245] In step 1305b, the receiving device feeds back a NACK to the sending device to indicate that the received LLP is abnormal. Execute step 1302b.
[0246] Step 1306b: The receiving end device detects the SRP, and if the SRP indicates that the link management command is effective, the receiving end device responds to the link management command.
[0247] The receiving device can use the following methods to determine whether the detected LLP is correct:
[0248] In one example, the LLP adopts the structure shown in FIG. 6B or FIG. 6E , and the receiving end device can verify the RS coding area carrying the LLP based on the RS in the LLB to determine whether the LLP parsing is correct.
[0249] In another example, the LLP adopts the structure shown in FIG6C or FIG6D , and the packet tail field of the LLP carries verification information, and the accuracy of the LLP parsing can be verified by the verification information, such as using CRC check or ECC.
[0250] In another example, when the LLP uses the structure shown in Figure 6D, the receiving device can also use the number field in the LLP to determine whether the link management command sent by the sending end has been lost. For example, if two LLPs carrying link management commands are received, with command numbers 7 and 9, the receiving device will determine that command number 8 has been lost.
[0251] In this method 2, link management commands can be numbered consecutively, for example, starting from 0 and numbering upwards. For example, if the number field occupies 1 byte, after the maximum number 255 is reached, the next command number is equal to 0, and the numbering continues from 0 in a circular manner. Retransmitted commands use the previous command number. For example, if the 25th command, command number 24, encounters an exception during transmission and needs to be retransmitted, the command has already been sent to the 30th command. When the command number 24 is retransmitted, the command number in the LLP still uses the original number 24.
[0252] It should be understood that ACK / NACK can also be considered as a command carried in an LLP. The LLP carrying ACK / NACK may include a packet type field, a packet length field, and a packet payload field. The actual content of the ACK / NACK may be carried in the packet payload field of the LLP. Optionally, the packet payload field may also carry the command number of the ACK / NACK. The packet type field is used to indicate whether the LLP carries an ACK command or a NACK command. The packet length field is used to indicate the length of the LLP. Optionally, the LLP carrying ACK / NACK may also include a packet tail field for carrying verification information to verify the LLP.
[0253] ACK / NACK may or may not be command numbered. When command numbering is not performed, the payload field of the LLP carrying ACK / NACK does not need to reserve bytes for carrying the command number.
[0254] If command numbering is implemented for ACK / NACKs, the ACK / NACKs can be numbered independently of the link management command number or consecutively with the link management command number. For example, if the ACK / NACKs are numbered consecutively with the link management command number, the 20th command (command number 19) is the link width switch command. The ACK / NACK transmitted after the link width switch command is numbered with command number 20.
[0255] When executing command numbering for ACK / NACK, if the ACK / NACK transmission is abnormal, the retransmission method is different from the numbering method for the link management command retransmission mentioned above. The ACK / NACK number is refreshed in real time. For example: the 26th command corresponds to ACK / NACK, the command number is equal to 25, and an abnormality occurs during the transmission process, requiring retransmission. During retransmission, the 30th command (corresponding to command number 29) has been sent. The ACK / NACK command transmitted at this time uses command number 30. The content of the ACK / NACK command (command packet with command number equal to 30) must include the content of the previous ACK / NACK command packet (that is, the command packet with command number equal to 24).
[0256] As an example, see Table 9, which illustrates a possible structure of an LLP carrying ACK.
[0257] Table 9
[0258] In the above Table 9, taking the correct reception of K link management commands as an example, the number of bytes occupied by the PP field is related to the number of correctly received link management commands.
[0259] As another example, see Table 10, which illustrates a possible structure of an LLP carrying NACK.
[0260] Table 10
[0261] In the above Table 10, taking the case where K link management commands are not correctly received as an example, the number of bytes occupied by the PP field is related to the number of link management commands that are not correctly received.
[0262] In some embodiments, the receiving device may send an ACK each time a link management command is correctly received, or may send an ACK / NACK every multiple LLBs.
[0263] The following describes the link management command transmission process between the MDP of the first device and the MUP of the second device in Method 2, combining Scenario 1 and Scenario 2. The link between the MDP and MUP is a bidirectional link. The MDP can send link management commands to the MUP, and the MUP can also send link management commands to the MDP. After receiving or not receiving a management command, both parties need to acknowledge / negate the command through their own transmission channels.
[0264] Scenario 1: The command between the MDP and MUP is transmitted once and then received successfully.
[0265] FIG13C is a schematic diagram of a link management command transmission process between an MDP and an MUP provided in an embodiment of the present application.
[0266] The MDP encapsulates link management commands 0-3 into LLPs (LLPs 0-LLP3), embeds them in LLBs, and sends them to the MUP via transmission channels (for example, six transmission channels in LLSH). It should be noted that link management commands 0-3 can be in the same LLB or in different LLBs, and are generated and encapsulated in real time based on actual conditions.
[0267] The MUP also needs to send commands. For example, the MUP encapsulates link management commands 4-6 into LLPs, resulting in LLP4-LLP6. The MUP embeds LLP4-LLP6 into one or more LLBs and sends them to the MDP via the MUP's send channel (for example, two send channels in LLSH).
[0268] When the MDP enters the LLBSP sending interval, if it does not receive ACK or NACK for any of the link management commands 0-3 from the MUP, then the link management commands 0-3 will not take effect, and the MDP will be inserted into the LLBSP.
[0269] When the MUP enters the LLBSP sending interval, if it does not receive ACK or NACK for any of the link management commands 4-6 from the MDP, then the link management commands 4-6 will not take effect, and the MUP will be inserted into the LLBSP.
[0270] Accordingly, the MDP receives LLP4-LLP6 through the receive channel, correctly parses LLP4-LLP6, and generates an ACK command (indicating that link management commands 4-6 were correctly received, i.e., ACK4-6). Before entering the LLBSP transmit interval, it also generates link management commands 7-8. The MDP encapsulates link management commands 7-8 into LLPs, resulting in LLPs 7-LLP8. The MUP embeds LLPs 7-LLP8 and the ACK command (i.e., ACK4-6) (or the LLP carrying the ACK) into one or more LLBs and sends them to the MUP via the MDP's transmit channel (i.e., evenly distributed across six transmit channels).
[0271] Accordingly, the MUP receives LLP0-LLP3 through the receive channel, correctly parses LLP0-LLP3, and generates an ACK command (indicating the correct receipt of link management commands 0-3, i.e., ACK0-3). Before entering the LLBSP transmit interval, it also generates link management command 9. The MDP encapsulates link management command 9 into an LLP, resulting in LLP9. The MUP embeds LLP9 and the ACK commands (i.e., ACK0-3) into one or more LLBs and sends them to the MDP through the MUP's transmit channel (i.e., evenly distributed across two transmit channels).
[0272] Furthermore, when the MDP receives ACKs 0-3 from the MUP, it sends an SRP+LLBSP to the MUP after entering the LLBSP sending interval. The SRP indicates that link management commands 0-3 are effective. When the MUP receives ACKs 4-6 from the MDP, it sends an SRP+LLBSP to the MDP after entering the LLBSP sending interval. The SRP indicates that link management commands 4-6 are effective.
[0273] Scenario 2: Some commands between the MDP and MUP need to be retransmitted.
[0274] In case 2-1, after the transmitting device sends multiple link management commands, not all link management commands receive ACK feedback from the receiving device. When entering the LLBSP sending interval, if one or more link management commands have received ACK feedback from the receiving device, SRP is sent immediately.
[0275] FIG13D is a schematic diagram of another link management command transmission process between an MDP and an MUP provided in an embodiment of the present application.
[0276] The MDP encapsulates link management commands 0-3 into LLPs (LLPs 0-LLP3), embeds them in LLBs, and sends them to the MUP via transmission channels (for example, six transmission channels in LLSH). It should be noted that link management commands 0-3 can be in the same LLB or in different LLBs, and are generated and encapsulated in real time based on actual conditions.
[0277] The MUP also needs to send commands. For example, the MUP encapsulates link management commands 4-8 into LLPs, resulting in LLP4-LLP6. The MUP embeds LLP4-LLP6 into one or more LLBs and sends them to the MDP via the MUP's send channel (for example, two send channels in LLSH).
[0278] When the MDP enters the LLBSP sending interval, if it does not receive ACK or NACK for any of the link management commands 0-3 from the MUP, then the link management commands 0-3 will not take effect, and the MDP will be inserted into the LLBSP.
[0279] When the MUP enters the LLBSP sending interval, if it does not receive ACK or NACK for any of the link management commands 4-6 from the MDP, then the link management commands 4-6 will not take effect, and the MUP will be inserted into the LLBSP.
[0280] Accordingly, the MDP receives LLP4-LLP6 through the receive channel, correctly parses LLP4, incorrectly parses LLP5-6, and generates an ACK command (indicating that link management command 4 was correctly received, i.e., ACK4) and a NACK command (indicating that link management commands 5-6 were not correctly received, i.e., NACK5-6). Before entering the LLBSP send interval, it also generates link management commands 7-8. The MDP encapsulates link management commands 7-8 into LLPs to obtain LLPs 7-LLP8. The MUP embeds LLP7-LLP8, the ACK command (or the LLP carrying the ACK), and the NACK command into one or more LLBs and sends them to the MUP through the MDP's send channel (i.e., evenly distributed across 6 send channels).
[0281] Accordingly, the MUP receives LLP0-LLP3 through the receive channel, correctly parses LLP0 and LLP3, and generates an ACK command (indicating that link management commands 0 and 3 were correctly received, i.e., ACK0, 3) and a NACK command (indicating that link management command 2 was not correctly received, i.e., NACK2). Before entering the LLBSP transmit interval, it also generates link management command 9. The MDP encapsulates link management command 9 into an LLP, resulting in LLP9. The MUP embeds LLP9, the ACK commands (i.e., ACK0, 3), and the NACK command (NACK2) into one or more LLBs and sends them to the MDP through the MUP's transmit channel (i.e., evenly distributed across two transmit channels).
[0282] Furthermore, after the MDP receives ACKs 0 and 3 from the MUP, it enters the LLBSP transmission interval and sends an SRP+LLBSP to the MUP. The SRP indicates that link management commands 0 and 3 are valid. The MDP then retransmits LLP2 to the MUP. After the MUP receives ACK 4 from the MDP, it enters the LLBSP transmission interval and sends an SRP+LLBSP to the MDP. The SRP indicates that link management command 4 is valid. The MUP then retransmits LLP5-LLP6 to the MDP.
[0283] Illustratively, the SRP may adopt any possible structure shown in Table 2-Table 4.
[0284] After receiving the same link management command multiple times, if the receiving device receives an SRP indicating that the link management command is valid, it only considers the most recently received link management command to be valid. Continuing with the previous example, if the receiving device receives link management command a multiple times, it only considers the most recently received link management command a to be valid.
[0285] In the embodiment of the present application, before sending SRP for state synchronization, it is allowed to send multiple link management commands of the same category but with different instructions to achieve command coverage.
[0286] Case 2-2: After the transmitting device sends multiple link management commands, when it receives feedback from the receiving device that some link management commands are correctly received, it does not indicate that they are effective until other link management commands are also correctly received, and then sends SRP.
[0287] FIG13E is a schematic diagram of another link management command transmission process between an MDP and an MUP provided in an embodiment of the present application.
[0288] The MDP encapsulates link management commands 0-3 into LLPs (LLPs 0-LLP3), embeds them in LLBs, and sends them to the MUP via transmission channels (for example, six transmission channels in LLSH). It should be noted that link management commands 0-3 can be in the same LLB or in different LLBs, and are generated and encapsulated in real time based on actual conditions.
[0289] The MUP also needs to send commands. For example, the MUP encapsulates link management commands 4-8 into LLPs, resulting in LLP4-LLP6. The MUP embeds LLP4-LLP6 into one or more LLBs and sends them to the MDP via the MUP's send channel (for example, two send channels in LLSH).
[0290] When the MDP enters the LLBSP sending interval, if it does not receive ACK or NACK for any of the link management commands 0-3 from the MUP, then the link management commands 0-3 will not take effect, and the MDP will be inserted into the LLBSP.
[0291] When the MUP enters the LLBSP sending interval, if it does not receive ACK or NACK for any of the link management commands 4-6 from the MDP, then the link management commands 4-6 will not take effect, and the MUP will be inserted into the LLBSP.
[0292] Correspondingly, the MDP receives LLP4-LLP6 through the receiving channel, parses LLP4 correctly, and parses LLP5-6 incorrectly, and generates an ACK command (indicating that link management command 4 is received correctly, i.e., ACK4) and a NACK command (indicating that link management commands 5-6 are not received correctly, i.e., NACK5-6). The MUP embeds the ACK command (or the LLP carrying the ACK) and the NACK command into one or more LLBs, and sends them to the MUP through the MDP's sending channel (i.e., evenly distributed to 6 sending channels).
[0293] Accordingly, the MUP receives LLP0-LLP3 through the receive channel, correctly parses LLP0 and LLP3, and generates an ACK command (indicating that link management commands 0 and 3 were correctly received, i.e., ACK0, 3) and a NACK command (indicating that link management command 2 was not correctly received, i.e., NACK2). The MUP embeds the ACK command (i.e., ACK0, 3) and the NACK command (NACK2) into one or more LLBs and sends them to the MDP through the MUP's transmit channel (i.e., evenly distributed across two transmit channels).
[0294] Furthermore, after the MDP receives ACKs 0 and 3 from the MUP, it sends only the LLBSP, not the SRP, after entering the LLBSP transmission interval. The MDP then retransmits LLP2 to the MUP, waiting for the MUP to respond with ACK2. After receiving ACK2 from the MUP and entering the LLBSP transmission interval, the MDP sends the SRP and LLBSP to the MUP. The SRP indicates that link management commands 0-3 have taken effect.
[0295] Furthermore, after receiving ACK4 from the MUP, the MUP enters the LLBSP transmission interval, sending only the LLBSP instead of the SRP. The MUP continues to retransmit LLP5-6 to the MDP, waiting for the MDP to respond with ACK5-6. After receiving ACK5-6 from the MDP and entering the LLBSP transmission interval, the MUP sends the SRP+LLBSP to the MDP. The SRP indicates that link management commands 4-6 have taken effect.
[0296] Case 2-3: After the transmitting device sends several link management commands, if other types of commands need to be sent, it can temporarily hold these commands until all previously sent link management commands have received ACKs and the SRP instruction has taken effect. Then, it can initiate the sending of these other types of commands. For example, after sending link management commands a and b, but before receiving ACKs from the receiving device for these commands, it generates link management command c. In this case, it can hold this link management command c and not send it. It can then resume sending link management command c after receiving ACKs from the receiving device for these commands and sending the SRP.
[0297] Figure 14 is a schematic diagram of the structure of a possible communication device provided in an embodiment of the present application. These communication devices can be used to implement the functions of the transmitting device or the receiving device in the above method embodiments, thereby also achieving the beneficial effects of the above method embodiments. In the embodiments of the present application, the communication device can be a transmitting device or a receiving device, or a module (such as a chip or chip system) in the transmitting device or the receiving device.
[0298] The communication device 1400 shown in Figure 14 includes a processing unit 1410 and a transceiver unit 1420. The communication device 1400 is used to implement the functions of the transmitting end device or the receiving end device in the above method embodiment.
[0299] In one possible scenario, the communication device 1400 is used to implement the functions of the transmitting end device in the above method embodiment.
[0300] Processing unit 1410 controls transceiver unit 1420 to send a first logic block to a receiving device, where the first logic block includes at least one link management command, and the link management command is used to adjust the state of the link between the transmitting device and the receiving device. Processing unit 1410 also controls transceiver unit 1420 to send a state refresh code pattern to the receiving device, where the state refresh code pattern at least indicates that the first link management command is synchronously effective between the transmitting device and the receiving device, and the first link management command is one of the at least one link management command.
[0301] In a possible implementation, the at least one link management command includes at least one of a scrambling code seed refresh command, a scrambling code enable command, a logic function switch command, a logic block startup pattern interval refresh command, and a link width switching command.
[0302] In one possible design, the first logic block includes at least one link management command, including: the first logic block includes N logical layer data packets, the N logical layer data packets each include a link management command, and N is a positive integer.
[0303] In one possible implementation, the logical layer data packet includes a packet type field, a packet length field, and a packet payload field. The packet type field is used to indicate the type of link management command carried, the packet length field is used to indicate the length of the logical layer data packet, and the packet payload field is used to carry the link management command.
[0304] In a possible implementation, the logic layer data packet further includes a check field, and the check field is used by the receiving device to check information other than the check field in the logic layer data packet.
[0305] In a possible implementation, the state refresh code pattern includes a first indication, where the first indication is used to indicate that the first link management command takes effect synchronously between the transmitting device and the receiving device.
[0306] In the above design, the effectiveness of the link management command is indicated by clear indication in the status refresh code pattern.
[0307] In a possible implementation, the state refresh code pattern includes multiple first indicator bits, each of which carries a first indication. One state refresh code pattern can indicate that multiple first link management commands are effective, thereby improving the reliability of data transmission.
[0308] In a possible implementation, the at least one link management command further includes a second link management command, and the status refresh code pattern further includes a second indication, where the second indication is used to indicate that the second link management command is not effective between the transmitting device and the receiving device.
[0309] In a possible implementation, the at least one link management command further includes a third link management command, and the status refresh code pattern further includes a third indication, where the third indication is used to indicate that the third link management command takes effect synchronously between the transmitting device and the receiving device.
[0310] In one possible implementation, the processing unit 1410 further controls the transceiver unit 1420 to send a second logic block to the receiving device before sending the status refresh code pattern to the receiving device, where the second logic block includes a fourth link management command; wherein the status refresh code pattern also includes a fourth indication, and the fourth indication is used to indicate that the fourth link management command takes effect synchronously between the transmitting device and the receiving device.
[0311] In one possible implementation, the state refresh pattern further includes verification information, which is used to verify information other than the verification information in the state refresh pattern. Adding verification to the state refresh pattern improves the reliability of transmission of validation information.
[0312] In a possible implementation, the state refresh code pattern is used to indicate that the first link management command takes effect synchronously between the transmitting end device and the receiving end device, including:
[0313] The state refresh pattern is used to indicate that the link management command received before receiving the state refresh pattern is synchronously effective between the transmitting device and the receiving device;
[0314] The link management commands received before receiving the status refresh pattern include a first link management command.
[0315] In one possible implementation, the processing unit 1410 further controls the transceiver unit 1420 to periodically send a logic block start code pattern to the receiving device, where the logic block start code pattern is used for clock synchronization and / or lock status check between the transmitting device and the receiving device; the status refresh code pattern is located before the logic block start code pattern and is adjacent to the logic block start code pattern.
[0316] In a possible implementation, before the status refresh pattern is sent to the receiving device, the number of repeated transmissions of the first link management command reaches a threshold number.
[0317] In one possible implementation, the transceiver unit 1420 receives a third logic block from the receiving device before sending a status refresh code pattern to the receiving device. The third logic block includes a confirmation response, and the confirmation response includes indication information for indicating that the receiving device has successfully received a link management command. The link management command that the receiving end has successfully received includes the first link management command.
[0318] In a possible implementation, the first logic block further includes at least one transport layer data packet, and the transport layer data packet is used to carry service data.
[0319] In another possible scenario, the communication device 1400 is used to implement the functions of the receiving device in the above method embodiment.
[0320] The processing unit 1410 is configured to control the transceiver unit 1420 to receive a first logic block from a transmitting device, where the first logic block includes at least one link management command, and the link management command is used to adjust the state of the link between the transmitting device and the receiving device; the transceiver unit 1420 receives a state refresh code pattern from the transmitting device, where the state refresh code pattern at least indicates that a first link management command is synchronously effective between the transmitting device and the receiving device, and the first link management command is one of the at least one link management command.
[0321] In a possible implementation, the at least one link management command includes at least one of a scrambling code seed refresh command, a scrambling code enable command, a logic function switch command, a logic block startup pattern interval refresh command, and a link width switching command.
[0322] In a possible implementation, the logic block includes at least one link management command, including: the logic block includes N logical layer data packets, the N logical layer data packets respectively include a link management command, and N is a positive integer.
[0323] In one possible implementation, the logical layer data packet includes a packet type field, a packet length field, and a packet payload field. The packet type field is used to indicate the type of link management command carried, the packet length field is used to indicate the length of the logical layer data packet, and the packet payload field is used to carry the content of the link management command.
[0324] In a possible implementation, the logic layer data packet further includes a check field, and the check field is used by the receiving device to check information other than the check field in the logic layer data packet.
[0325] In a possible implementation, the state refresh code pattern includes a first indication, where the first indication is used to indicate that the first link management command takes effect synchronously between the transmitting device and the receiving device.
[0326] In a possible implementation, the state refresh code pattern includes multiple first indication bits, and the multiple first indication bits all carry the first indication.
[0327] In a possible implementation, the at least one link management command further includes a second link management command, and the status refresh code pattern further includes a second indication, where the second indication is used to indicate that the second link management command is not effective between the transmitting device and the receiving device.
[0328] In a possible implementation, the at least one link management command further includes a third link management command, and the status refresh code pattern further includes a third indication, where the third indication is used to indicate that the third link management command takes effect synchronously between the transmitting device and the receiving device.
[0329] In a possible implementation, the transceiver unit 1420 receives a second logic block from the transmitting end device before receiving the status refresh pattern from the transmitting end device, where the second logic block includes a fourth link management command;
[0330] The state refresh code pattern further includes a fourth indication, and the fourth indication is used to indicate that the fourth link management command takes effect synchronously between the transmitting end device and the receiving end device.
[0331] In a possible implementation, the state refresh code pattern further includes verification information, and the verification information is used to verify information other than the verification information in the state refresh code pattern.
[0332] In a possible implementation, the state refresh code pattern at least indicates that the first link management command is synchronously effective between the transmitting end device and the receiving end device, including:
[0333] The state refresh pattern is used to indicate that the link management command received before receiving the state refresh pattern is synchronously effective between the transmitting device and the receiving device;
[0334] The link management commands received before receiving the status refresh pattern include a first link management command.
[0335] In one possible implementation, the transceiver unit 1420 periodically receives a logic block start pattern from the transmitting end device, where the logic block start pattern is used for clock synchronization and / or lock status check between the transmitting end device and the receiving end device.
[0336] The state refresh pattern precedes the logic block start pattern and is adjacent to the logic block start pattern.
[0337] In a possible implementation, the transceiver unit 1420 repeatedly receives the first link management command from the transmitting end device multiple times before receiving the status refresh code pattern from the transmitting end device.
[0338] In one possible implementation, the transceiver unit 1420 sends a third logic block to the transmitting device before receiving the status refresh code from the transmitting device. The third logic block includes a confirmation response, and the confirmation response includes indication information for indicating that the link management command has been successfully received by the receiving device. The link management command successfully received by the receiving end includes the first link management command.
[0339] The division of units in the embodiments of the present application is illustrative and is only a logical functional division. In actual implementation, other division methods may be used. In addition, the functional units in the various embodiments of the present application can be integrated into a processor, or can exist physically separately, or two or more units can be integrated into a single unit. The above-mentioned integrated units can be implemented in the form of hardware or software functional units.
[0340] The communication device 1500 shown in Figure 15 includes a processor 1510 and an interface circuit 1520. The processor 1510 and the interface circuit 1520 are coupled to each other. It is understood that the interface circuit 1520 can be a transceiver or an input / output interface. Optionally, the communication device 1500 may also include a memory 1530 for storing instructions executed by the processor 1510, or storing input data required by the processor 1510 to execute instructions, or storing data generated after the processor 1510 executes instructions.
[0341] When the communication device 1500 is used to implement the above method embodiment, the processor 1510 is used to implement the functions of the above processing unit 1410 , and the interface circuit 1520 is used to implement the functions of the above transceiver unit 1420 .
[0342] It is understood that the processor in the embodiments of the present application may be a central processing unit (CPU), or may be other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field programmable gate arrays (FPGA), or other programmable logic devices, transistor logic devices, hardware components, or any combination thereof. The general-purpose processor may be a microprocessor or any conventional processor.
[0343] The method steps in the embodiments of the present application can be implemented by hardware or by a processor executing software instructions. The software instructions can be composed of corresponding software modules, and the software modules can be stored in random access memory, flash memory, read-only memory, programmable read-only memory, erasable programmable read-only memory, electrically erasable programmable read-only memory, registers, hard disks, mobile hard disks, compact disc read-only memory (CD-ROM) or any other form of storage medium well known in the art. An exemplary storage medium is coupled to the processor so that the processor can read information from the storage medium and write information to the storage medium. Of course, the storage medium can also be an integral part of the processor. The processor and storage medium can be located in an ASIC. In addition, the ASIC can be located in a transmitting device or a receiving device. Of course, the processor and storage medium can also be present in a transmitting device or a receiving device as discrete components.
[0344] In the above embodiments, all or part of the embodiments can be implemented by software, hardware, firmware or any combination thereof. When implemented using software, all or part of the embodiments can be implemented in the form of a computer program product. The computer program product includes one or more computer programs or instructions. A computer program (English: Computer Program) refers to a set of instructions that instruct an electronic computer or other device with message processing capabilities to perform each step of the operation, usually written in a certain programming language and running on a certain target architecture. When the computer program or instructions are loaded and executed on a computer, the processes or functions described in the embodiments of the present application are executed in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network, a terminal device or other programmable device. The computer program or instructions can be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer program or instructions can be transmitted from one website, computer, server or data center to another website, computer, server or data center via wired or wireless means. The computer-readable storage medium can be any available medium that can be accessed by a computer or a data storage device such as a server or data center that integrates one or more available media. The available medium may be a magnetic medium, such as a floppy disk, a hard disk, or a magnetic tape; an optical medium, such as a digital video disk; or a semiconductor medium, such as a solid-state drive. The computer-readable storage medium may be a volatile or non-volatile storage medium, or may include both volatile and non-volatile types of storage media.
[0345] In the various embodiments of the present application, unless otherwise specified or there is a logical conflict, the terms and / or descriptions between different embodiments are consistent and can be referenced by each other. The technical features in different embodiments can be combined to form new embodiments according to their inherent logical relationships.
[0346] One embodiment of the present application provides a computer-readable medium for storing a computer program, wherein the computer program includes instructions for executing the method steps in any of the above method embodiments.
[0347] Those skilled in the art will appreciate that the embodiments of the present application can be provided as methods, systems, or computer program products. Therefore, the present application can adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment in combination with software and hardware. Moreover, the present application can adopt the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to magnetic disk storage, optical storage, etc.) that contain computer-usable program code.
[0348] The present application is described with reference to the flow chart and / or block diagram of the method, device (system), and computer program product according to the embodiment of the present application. It should be understood that each flow process and / or box in the flow chart and / or block diagram and the combination of the flow process and / or box in the flow chart and / or block diagram can be realized by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processing machine or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device produce a device for realizing the function specified in one flow chart flow or multiple flows and / or one box or multiple boxes of the block diagram.
[0349] Obviously, those skilled in the art may make various changes and modifications to the present application without departing from the scope of the present application. Thus, if these modifications and variations of the present application fall within the scope of the claims of the present application and their equivalents, the present application is intended to include these modifications and variations.
Claims
1. A link management method, It is characterized in that Applied in a sending end device or a module of a sending end device, the method includes: Sending a first logic block to a receiving end device, wherein the first logic block includes at least one link management command, and the link management command is used to adjust the state of the link between the sending end device and the receiving end device; A state refresh code pattern is sent to the receiving end device, wherein the state refresh code pattern at least indicates that a first link management command is synchronously effective between the sending end device and the receiving end device, and the first link management command is one of the at least one link management command.
2. The method according to claim 1, It is characterized in that The at least one link management command includes at least one of a scrambling code seed refresh command, a scrambling code enable command, a logic function switch command, a logic block startup pattern interval refresh command, and a link width switch command.
3. The method according to claim 1 or 2, It is characterized in that The first logic block includes at least one link management command, including: The first logic block includes N logic layer data packets, each of the N logic layer data packets includes a link management command, and N is a positive integer.
4. The method according to claim 3, It is characterized in that The logical layer data packet includes a packet type field, a packet length field and a packet payload field. The packet type field is used to indicate the type of link management command carried, the packet length field is used to indicate the length of the logical layer data packet, and the packet payload field is used to carry the link management command.
5. The method according to claim 4, It is characterized in that The logic layer data packet further includes a check field, and the check field is used by the receiving end device to check the information in the logic layer data packet except the check field.
6. The method according to any one of claims 1 to 5, It is characterized in that The state refresh code pattern includes a first indication, where the first indication is used to indicate that the first link management command takes effect synchronously between the transmitting device and the receiving device.
7. The method according to claim 6, It is characterized in that The state refresh code pattern includes multiple first indication bits, and the multiple first indication bits all carry the first indication.
8. The method according to claim 6 or 7, It is characterized in that The at least one link management command further includes a second link management command, and the state refresh code pattern further includes a second indication, where the second indication is used to indicate that the second link management command is not effective between the transmitting device and the receiving device.
9. The method according to any one of claims 6 to 8, It is characterized in that The at least one link management command further includes a third link management command, and the state refresh code pattern further includes a third indication, and the third indication is used to indicate that the third link management command takes effect synchronously between the transmitting device and the receiving device.
10. The method according to any one of claims 6 to 9, It is characterized in that The method further comprises: Before sending the state refresh code pattern to the receiving end device, sending a second logic block to the receiving end device, wherein the second logic block includes a fourth link management command; The state refresh code pattern further includes a fourth indication, and the fourth indication is used to indicate that the fourth link management command takes effect synchronously between the transmitting end device and the receiving end device.
11. The method according to any one of claims 6 to 10, It is characterized in that The state refresh code pattern further includes verification information, and the verification information is used for verifying information other than the verification information in the state refresh code pattern.
12. The method according to any one of claims 1 to 5, It is characterized in that The state refresh code pattern is used to indicate that the first link management command is synchronously effective between the transmitting end device and the receiving end device, including: The state refresh code pattern is used to indicate that the link management command received before receiving the state refresh code pattern is synchronously effective between the transmitting end device and the receiving end device; The link management command received before the state refresh code pattern is received includes the first link management command.
13. The method according to any one of claims 1 to 12, It is characterized in that The method further comprises: Periodically sending a logic block start pattern to the receiving end device, wherein the logic block start pattern is used for clock synchronization and / or lock status check between the sending end device and the receiving end device; The state refresh code pattern is located before the logic block activation code pattern and is adjacent to the logic block activation code pattern.
14. The method according to any one of claims 1 to 13, It is characterized in that The method further comprises: Before sending the status refresh code pattern to the receiving end device, the number of repeated sending of the first link management command reaches a number threshold.
15. The method according to any one of claims 1 to 13, It is characterized in that The method further comprises: Before sending the status refresh code type to the receiving device, a third logic block is received from the receiving device, the third logic block includes a confirmation response, and the confirmation response includes indication information for indicating that the link management command has been successfully received by the receiving device, and the link management command that the receiving end has successfully received includes the first link management command.
16. The method according to any one of claims 1 to 15, It is characterized in that The first logic block also includes at least one transport layer data packet, and the transport layer data packet is used to carry service data.
17. A link management method, It is characterized in that Applied in a receiving end device or a module of a receiving end device, the method includes: receiving a first logic block from a transmitting end device, wherein the first logic block includes at least one link management command, and the link management command is used to adjust the state of the link between the transmitting end device and the receiving end device; A state refresh code pattern is received from the transmitting end device, wherein the state refresh code pattern at least indicates that a first link management command is synchronously effective between the transmitting end device and the receiving end device, and the first link management command is one of the at least one link management command.
18. The method of claim 17, It is characterized in that The at least one link management command includes at least one of a scrambling code seed refresh command, a scrambling code enable command, a logic function switch command, a logic block startup pattern interval refresh command, and a link width switch command.
19. The method according to claim 17 or 18, It is characterized in that The logic block includes at least one link management command, including: The logic block includes N logic layer data packets, each of which includes a link management command, and N is a positive integer.
20. The method of claim 19, It is characterized in that The logical layer data packet includes a packet type field, a packet length field and a packet payload field. The packet type field is used to indicate the type of link management command carried, the packet length field is used to indicate the length of the logical layer data packet, and the packet payload field is used to carry the content of the link management command.
21. The method of claim 20, It is characterized in that The logic layer data packet further includes a check field, and the check field is used by the receiving end device to check the information in the logic layer data packet except the check field.
22. The method according to any one of claims 17 to 21, It is characterized in that The state refresh code pattern includes a first indication, where the first indication is used to indicate that the first link management command takes effect synchronously between the transmitting device and the receiving device.
23. The method of claim 22, It is characterized in that The state refresh code pattern includes multiple first indication bits, and the multiple first indication bits all carry the first indication.
24. The method of claim 22 or 23, It is characterized in that The at least one link management command further includes a second link management command, and the state refresh code pattern further includes a second indication, where the second indication is used to indicate that the second link management command is not effective between the transmitting device and the receiving device.
25. The method according to any one of claims 22 to 24, It is characterized in that The at least one link management command further includes a third link management command, and the state refresh code pattern further includes a third indication, and the third indication is used to indicate that the third link management command takes effect synchronously between the transmitting device and the receiving device.
26. The method according to any one of claims 22 to 25, It is characterized in that The method further comprises: Before receiving the state refresh code pattern from the transmitting end device, receiving a second logic block from the transmitting end device, wherein the second logic block includes a fourth link management command; The state refresh code pattern further includes a fourth indication, and the fourth indication is used to indicate that the fourth link management command takes effect synchronously between the transmitting end device and the receiving end device.
27. The method according to any one of claims 22 to 26, It is characterized in that The state refresh code pattern further includes verification information, and the verification information is used for verifying information other than the verification information in the state refresh code pattern.
28. The method according to any one of claims 17 to 21, It is characterized in that The state refresh code pattern at least indicates that the first link management command is synchronously effective between the transmitting end device and the receiving end device, including: The state refresh code pattern is used to indicate that the link management command received before receiving the state refresh code pattern is synchronously effective between the transmitting end device and the receiving end device; The link management command received before the state refresh code pattern is received includes the first link management command.
29. The method according to any one of claims 17 to 28, It is characterized in that The method further comprises: Periodically receiving a logic block start pattern from the transmitting end device, wherein the logic block start pattern is used for clock synchronization and / or lock status check between the transmitting end device and the receiving end device; The state refresh code pattern is located before the logic block activation code pattern and is adjacent to the logic block activation code pattern.
30. The method according to any one of claims 17 to 29, It is characterized in that The method further comprises: Before receiving the status refresh code pattern from the transmitting end device, the first link management command from the transmitting end device is repeatedly received multiple times.
31. The method according to any one of claims 17 to 29, It is characterized in that The method further comprises: Before receiving the status refresh code type from the sending device, a third logic block is sent to the sending device, the third logic block includes a confirmation response, and the confirmation response includes indication information for indicating that the link management command has been successfully received by the receiving device, and the link management command that the receiving end has successfully received includes the first link management command.
32. The method of any one of claims 17 to 31, It is characterized in that The first logic block also includes at least one transport layer data packet, and the transport layer data packet is used to carry service data.
33. A communication device, It is characterized in that The invention comprises a processor coupled to a memory, wherein the processor is used to call a program stored in the memory to execute the method according to any one of claims 1 to 16.
34. A communication device, It is characterized in that The invention comprises a processor coupled to a memory, wherein the processor is used to call a program stored in the memory to execute the method according to any one of claims 17 to 32.
35. A computer readable storage medium, It is characterized in that The storage medium stores a computer program or instruction, and when the computer program or instruction is executed by the communication device, the method as claimed in any one of claims 1 to 32 is implemented.
36. A communication system, It is characterized in that It comprises a sending end device for executing the method as claimed in any one of claims 1 to 16, and a receiving end device for executing the method as claimed in any one of claims 17 to 32.
Citation Information
Patent Citations
Wireless link management method, device and system
CN101998548A
Sidelink management method and device
CN111586621A
Method and apparatus for transmitting SL DRX mac ce in nr v2x
WO2022139510A1
Methods and apparatuses for wireless communication with multiple transmission and reception points
WO2023014636A1
