Communication method and apparatus
By having the client equipment send time-slot frames according to the instruction information and coordinate the data transmission rhythm, the problems of high network device buffer pressure and high packet loss rate are solved, and more efficient communication and bandwidth utilization are achieved.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- HUAWEI TECH CO LTD
- Filing Date
- 2021-10-22
- Publication Date
- 2026-04-17
AI Technical Summary
In standard Ethernet networking, excessive packets sent by client devices to network devices increase the pressure on network device buffers, leading to higher packet loss rates and more frequent packet retransmissions.
By obtaining instruction information, the client equipment sends time slot frames to the network equipment according to the pre-allocated service bandwidth and cycle, and coordinates the data transmission rhythm to avoid buffer pressure, reduce message retransmission costs, and improve communication efficiency and bandwidth utilization.
It effectively alleviates the buffering pressure on network devices, reduces message retransmissions, and improves communication efficiency and bandwidth utilization.
Smart Images

Figure CN116015574B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of communications, and more particularly to a communication method and apparatus. Background Technology
[0002] In a standard Ethernet network, client devices communicate with network devices using store-and-forward, while network devices communicate with each other using channel forward.
[0003] However, during the process of a client device (such as client device 1) sending a message to another client device (such as client device 2), client device 1 may send too many messages to the network device, exceeding the network device's buffer capacity. This causes the network device to discard messages from client device 1, increasing the packet loss rate and leading to frequent message retransmissions. Summary of the Invention
[0004] This application provides a communication method and apparatus that can alleviate the buffer pressure of network devices and reduce message retransmission.
[0005] To achieve the above objectives, the embodiments of this application adopt the following technical solutions:
[0006] In a first aspect, embodiments of this application provide a communication method. The execution subject of this method can be a first client device or a chip applied in the first client device. The following description uses the first client device as the execution subject. The method includes: the first client device acquiring indication information. The indication information indicates a service bandwidth and a first period. The service bandwidth is the bandwidth pre-allocated for the target service, and the first period is the period during which the first network device transmits the target service. Then, the first client device sends a timeslot frame to the first network device according to the indication information. The timeslot frame includes a complete message and / or message fragments of the target service. The first data amount transmitted in the first period corresponds to the second data amount transmitted in the transmission period. The transmission period is the period during which the first client device sends the timeslot frame. The length of the timeslot frame is determined based on a third data amount or service bandwidth carried by a preset number of timeslots.
[0007] In this way, the first client device sends time slot frames to the first network device based on the instruction information, so that the data transmission rhythm and data volume between the first client device and the first network device are coordinated, avoiding the buffer pressure caused by the first client device blindly sending messages, reducing the cost of message retransmission and equipment costs, and improving communication efficiency and bandwidth utilization.
[0008] In one possible design, the first client equipment obtains indication information, including: the first client equipment receiving indication information from the management equipment. That is, the management equipment provides the indication information to the first client equipment to facilitate the management of service bandwidth and the first cycle.
[0009] In one possible design, the first client equipment obtains indication information by receiving indication information from the first network device. That is, the first network device provides the indication information to the first client equipment to facilitate the management of service bandwidth and the first cycle.
[0010] In one possible design, the indication information is carried in one of the following: a Link Layer Discovery Protocol (LLDP) message or a control message.
[0011] In one possible design, the length of the first cycle is greater than or equal to the length of the transmission cycle.
[0012] In one possible design, the period interval is the difference between the length of the first period and the length of the transmission period. The period interval is the interval between two adjacent transmission periods, forcing the first client equipment to generate a period interval and slowing down the transmission pace of the first client equipment's time slot frames.
[0013] In one possible design, the communication method in this application embodiment further includes: at periodic intervals, a first client device sending fourth data to a first network device. The service corresponding to the fourth data does not belong to the target service.
[0014] In other words, the first client equipment divides the cycle according to the target service and non-target service on its end in order to improve the communication efficiency between the first client equipment and the first network equipment.
[0015] In one possible design, the first data volume equals the second data volume. That is, the amount of data transmitted by the first client device in one transmission cycle is the same as the amount of data transmitted by the first network device in one first cycle.
[0016] In one possible design, the length of the first cycle is shorter than the length of the transmission cycle.
[0017] In one possible design, the period interval is zero. Here, the period interval is the interval between two adjacent transmission cycles. That is, the first client equipment continuously sends time slot frames to the first network equipment.
[0018] In one possible design, the first data volume is greater than the second data volume. That is, the first network device transmits more data in a first cycle than the first client device transmits in a transmission cycle.
[0019] In one possible design, the first time slot frame includes the last fragment of the first message. The time slot frame includes the first time slot frame, the first message corresponds to the target service, and the length of the last fragment of the first message is greater than or equal to a preset frame length and less than or equal to a first preset value, where the first preset value is equal to the sum of the third data volume and the preset frame length.
[0020] In one possible design, the second timeslot frame includes all fragments of the first message except for the last fragment. The timeslot frame further includes the second timeslot frame, and the length of each fragment of the first message except for the last fragment is equal to the third data amount. In other words, the first client equipment segments the first message according to the data amount carried by the preset timeslot, i.e., the aforementioned third data amount.
[0021] In one possible design, the length of the third time slot frame is the same as the length of the second time slot frame. The time slot frame also includes the third time slot frame, and the message fragments in the third time slot frame are the message fragments of the second message excluding the last message fragment. The second message is a message for the second service, and the first message is a message for the first service; both the first and second services belong to the target service. That is, except for the time slot frame carrying the last message fragment, the time slot frame lengths for different services are the same.
[0022] In one possible design, the fourth time slot frame includes the complete message of the first message. The time slot frame includes the fourth time slot frame, the first message corresponds to the target service, and the complete message length of the first message is less than or equal to a first preset value, which is equal to the sum of the third data amount and the preset frame length. That is, the time slot frame can also carry the first message without segmentation.
[0023] In one possible design, the first time slot frame includes the last fragment of the first message. The first message corresponds to the first service in the target service. The length of the last fragment of the first message is greater than or equal to a preset frame length and less than or equal to a second preset value. The second preset value is equal to the sum of the fifth data amount and the preset frame length. The fifth data amount is the amount of data transmitted by the first service within the first cycle.
[0024] In one possible design, the second timeslot frame includes all fragments of the first message except for the last fragment. The timeslot frame further includes the second timeslot frame, and the length of each fragment of the first message except for the last fragment is equal to the fifth data amount. In other words, the first client equipment segments the first message according to the service bandwidth of the first service, i.e., the aforementioned fifth data amount.
[0025] In one possible design, the third time slot frame includes at least one complete message of the first message. Specifically, the time slot frame includes the third time slot frame, the first message corresponds to the first service in the target service, the sum of the complete message lengths of the first message is greater than or equal to a preset frame length, and less than or equal to a second preset value, the second preset value is equal to the sum of the fifth data amount and the preset frame length, and the fifth data amount is the amount of data transmitted by the first service in the first cycle. That is, the time slot frame can also carry at least one complete message.
[0026] In one possible design, the fourth time slot frame includes a fragment of the first message and the complete message of the second message. Both the first and second messages correspond to the first service in the target service. The sum of the lengths of the fragments and the complete message in the fourth time slot frame is greater than or equal to a preset frame length and less than or equal to a second preset value. The second preset value is equal to the sum of the fifth data amount and the preset frame length. The fifth data amount is the amount of data transmitted by the first service within the first cycle.
[0027] In one possible design, the number of target services is at least two, and the message fragments of at least two services are carried in the same time slot frame. The message fragmentation is determined based on a third data quantity. In other words, a time slot frame can carry message fragments of at least two services to improve the data transmission efficiency of the time slot frame.
[0028] In one possible design, the time-slot frame also includes a first field. This first field indicates the length of the service data in each packet fragment, allowing the first network device to determine the data volume of the corresponding packet fragment.
[0029] In one possible design, the time slot frame also includes at least one identification information, wherein the identification information is used to identify the target service corresponding to the time slot frame, so as to distinguish different services.
[0030] In one possible design, the indication information also includes at least one identification information, wherein the identification information is used to identify the target service indicated by the indication information, so as to indicate the target service to be transmitted.
[0031] Secondly, embodiments of this application provide a communication method. The execution subject of this method can be a first network device or a chip applied in the first network device. The following description uses the first network device as an example. The method includes: the first network device sending indication information to a first client device. The indication information indicates a service bandwidth and a first period. The service bandwidth is the bandwidth pre-allocated for the target service, and the first period is the period during which the first network device transmits the target service. Then, the first network device receives time-slot frames from the first client device. The time-slot frames include a complete message and / or message fragments of the target service. The first data volume transmitted in the first period corresponds to the second data volume transmitted in the transmission period. The transmission period is the period during which the first client device transmits the time-slot frames. The length of the time-slot frames is determined based on a third data volume or service bandwidth carried by a preset number of time slots.
[0032] In one possible design, the indication information is carried in one of the following: a Link Layer Discovery Protocol (LLDP) message or a control message.
[0033] In one possible design, the communication method of this application embodiment further includes: a first network device transmitting a code block sequence on a first time slot of a first output port according to a preset relationship. The preset relationship indicates the mapping between a target service and the first output port and the first time slot, the first time slot being at least one time slot in a first period, and the code block sequence being determined based on time slot frames. That is, the first network device converts time slot frames into code block sequences and transmits them to the second network device in the form of code block sequences.
[0034] In one possible design, the communication method of this application embodiment further includes: during a periodic interval, a first network device receives fourth data from a first client device. The periodic interval is the interval between two adjacent receiving cycles, and the service corresponding to the fourth data does not belong to the target service.
[0035] In one possible design, the time slot frame also includes at least one identification information. This identification information is used to identify the target service corresponding to the time slot frame.
[0036] In one possible design, the instruction information also includes at least one identification information. The identification information is used to identify the target service indicated by the instruction information.
[0037] Thirdly, embodiments of this application provide a communication method. The execution subject of this method can be a second network device or a chip applied in the second network device. The following description uses the second network device as an example. The method includes: the second network device receiving a code block sequence from a first network device. The code block sequence includes service data of a target service. Then, the second network device encapsulates the service data into time slot frames according to the type of the code block sequence. The time slot frames include a complete message and / or message fragments of the target service. The second network device then sends the time slot frames to a second client device.
[0038] In other words, the second network device converts the code block sequence into time slot frames and transmits them to the second client device in the form of time slot frames. The second network device does not need to perform message reassembly processing, thus alleviating the message reassembly pressure on the second network device.
[0039] In one possible design, the first timeslot frame includes the first fragment of the first message. The timeslot frame includes the first timeslot frame, and the code block sequence includes at least a start S code block but does not include an end T code block. The first message belongs to the target service.
[0040] In one possible design, the second time slot frame includes the last fragment of the first message. The time slot frame includes the second time slot frame, and the code block sequence includes at least T code blocks but excludes S code blocks. The first message belongs to the target service.
[0041] In one possible design, the third timeslot frame includes an intermediate fragment of the first message. The timeslot frame includes the third timeslot frame, and the code block sequence is a data D code block sequence. The first message belongs to the target service.
[0042] In other words, if the first message is segmented, the second network device can determine the frame format of the time slot frame based on different code block sequences.
[0043] In one possible design, the fourth time slot frame includes the complete message of the second message. Specifically, the time slot frame includes the fourth time slot frame, the code block sequence includes at least S-blocks and T-blocks, and the second message belongs to the target service.
[0044] In other words, if the first message is not segmented, the second network device can determine the frame format of the time slot frame based on the type of code block sequence.
[0045] In one possible design, the time slot frame also includes at least one identification information. This identification information is used to identify the target service corresponding to the time slot frame.
[0046] Fourthly, embodiments of this application provide a communication method. The execution subject of this method can be a second client device or a chip applied in the second client device. The following description uses the second client device as an example. The method includes: the second client device receiving time-slot frames from a second network device. The time-slot frames include complete packets and / or packet fragments of the target service. Then, the second client device reassembles the time-slot frames to obtain a Media Access Control (MAC) layer packet. That is, the second client device reassembles the received time-slot frames into a MAC layer packet and sends it to the MAC layer.
[0047] Fifthly, embodiments of this application provide a communication device, which can be a first client device in the first aspect or any possible design of the first aspect, or a chip that implements the functions of the first client device; the communication device includes modules, units, or means that implement the methods described above, which can be implemented in hardware, software, or by hardware executing corresponding software. The hardware or software includes one or more modules or units corresponding to the functions described above.
[0048] The communication device includes a receiving unit, a processing unit, and a transmitting unit. The receiving unit acquires indication information, which indicates the service bandwidth and a first period. The service bandwidth is the bandwidth pre-allocated to the target service, and the first period is the period during which the first network device transmits the target service. The processing unit transmits time-slot frames to the first network device according to the indication information. Each time-slot frame includes the complete message and / or message fragments of the target service. The first data volume transmitted in the first period corresponds to the second data volume transmitted in the transmitting period. The transmitting period is the period during which the communication device transmits time-slot frames, and the length of the time-slot frame is determined based on the third data volume or service bandwidth carried by a preset number of time slots.
[0049] In one possible design, the receiving unit is used to acquire indication information, including: the receiving unit is used to receive indication information from the management device.
[0050] In one possible design, the receiving unit is used to acquire indication information, including: the receiving unit is used to receive indication information from the first network device.
[0051] In one possible design, the indication information is carried in one of the following: a Link Layer Discovery Protocol (LLDP) message or a control message.
[0052] In one possible design, the length of the first cycle is greater than or equal to the length of the transmission cycle.
[0053] In one possible design, the period interval is the difference between the length of the first period and the length of the transmission period. Here, the period interval is the interval between two adjacent transmission periods.
[0054] In one possible design, the transmitting unit is also used to send fourth data to the first network device at periodic intervals. The service corresponding to the fourth data does not belong to the target service.
[0055] In one possible design, the first data volume equals the second data volume.
[0056] In one possible design, the length of the first cycle is shorter than the length of the transmission cycle.
[0057] In one possible design, the period interval is zero. Here, the period interval is the interval between two adjacent transmission cycles.
[0058] In one possible design, the first data volume is greater than the second data volume.
[0059] In one possible design, the first time slot frame includes the last fragment of the first message. The time slot frame includes the first time slot frame, the first message corresponds to the target service, and the length of the last fragment of the first message is greater than or equal to a preset frame length and less than or equal to a first preset value, where the first preset value is equal to the sum of the third data volume and the preset frame length.
[0060] In one possible design, the second time slot frame includes all fragments of the first message except for the last fragment. The time slot frame further includes the second time slot frame, and the length of the fragments of the first message excluding the last fragment is equal to the third data volume.
[0061] In one possible design, the length of the third time slot frame is the same as the length of the second time slot frame. The time slot frame also includes the third time slot frame, and the message fragments in the third time slot frame are the message fragments of the second message excluding the last message fragment. The second message is a message for the second service, and the first message is a message for the first service; both the first and second services belong to the target service.
[0062] In one possible design, the fourth time slot frame includes the complete message of the first message. The time slot frame includes the fourth time slot frame, the first message corresponds to the target service, the complete message length of the first message is less than or equal to a first preset value, and the first preset value is equal to the sum of the third data amount and the preset frame length.
[0063] In one possible design, the first time slot frame includes the last fragment of the first message. The first message corresponds to the first service in the target service. The length of the last fragment of the first message is greater than or equal to a preset frame length and less than or equal to a second preset value. The second preset value is equal to the sum of the fifth data amount and the preset frame length. The fifth data amount is the amount of data transmitted by the first service within the first cycle.
[0064] In one possible design, the second time slot frame includes all fragments of the first message except for the last fragment. The time slot frame further includes the second time slot frame, and the length of each fragment of the first message except for the last fragment is equal to the fifth data volume.
[0065] In one possible design, the third time slot frame includes at least one complete message of the first message. The time slot frame includes the third time slot frame, the first message corresponds to the first service in the target service, the sum of the complete message lengths of the first message is greater than or equal to a preset frame length, and less than or equal to a second preset value, the second preset value is equal to the sum of the fifth data amount and the preset frame length, and the fifth data amount is the amount of data transmitted by the first service in the first cycle.
[0066] In one possible design, the fourth time slot frame includes a fragment of the first message and the complete message of the second message. Both the first and second messages correspond to the first service in the target service. The sum of the lengths of the fragments and the complete message in the fourth time slot frame is greater than or equal to a preset frame length and less than or equal to a second preset value. The second preset value is equal to the sum of the fifth data amount and the preset frame length. The fifth data amount is the amount of data transmitted by the first service within the first cycle.
[0067] In one possible design, the number of target services is at least two, and the message fragments of at least two services are carried in the same time slot frame. The message fragmentation is determined based on a third data volume.
[0068] In one possible design, the time-slot frame also includes a first field. This first field indicates the length of the service data in each packet fragment.
[0069] In one possible design, the time slot frame also includes at least one identification information, wherein the identification information is used to identify the target service corresponding to the time slot frame.
[0070] In one possible design, the instruction information also includes at least one identification information, wherein the identification information is used to identify the target service indicated by the instruction information.
[0071] Sixthly, embodiments of this application provide a communication device, which can be a first network device in the second aspect or any possible design of the second aspect, or a chip that implements the functions of the first network device described above; the communication device includes modules, units, or means that implement the methods described above, which can be implemented in hardware, software, or by hardware executing corresponding software. The hardware or software includes one or more modules or units corresponding to the functions described above.
[0072] The communication device includes a receiving unit, a processing unit, and a transmitting unit. The transmitting unit sends indication information to a first client equipment. This indication information specifies the service bandwidth and a first period. The service bandwidth is the bandwidth pre-allocated for the target service, and the first period is the period during which the communication device transmits the target service. The receiving unit then receives time-slot frames from the first client equipment. Each time-slot frame includes the complete message and / or message fragments of the target service. The first data volume transmitted in the first period corresponds to the second data volume transmitted in the transmitting period. The transmitting period is the period during which the first client equipment transmits the time-slot frames. The length of each time-slot frame is determined based on a preset number of time slots carrying a third data volume or the service bandwidth.
[0073] In one possible design, the indication information is carried in one of the following: a Link Layer Discovery Protocol (LLDP) message or a control message.
[0074] In one possible design, the processing unit controls the transmitting unit to transmit a code block sequence on a first time slot of a first output port according to a preset relationship. The preset relationship indicates the mapping between the target service and the first output port and the first time slot, where the first time slot is at least one time slot in a first period, and the code block sequence is determined based on time slot frames.
[0075] In one possible design, the receiving unit is used to receive fourth data from the first client equipment during a period interval. The period interval is the interval between two adjacent receiving cycles, and the service corresponding to the fourth data does not belong to the target service.
[0076] In one possible design, the time slot frame also includes at least one identification information. This identification information is used to identify the target service corresponding to the time slot frame.
[0077] In one possible design, the instruction information also includes at least one identification information. The identification information is used to identify the target service indicated by the instruction information.
[0078] Seventhly, embodiments of this application provide a communication device, which can be a second network device in the third aspect or any possible design of the third aspect, or a chip that implements the functions of the second network device described above; the communication device includes modules, units, or means that implement the methods described above, which can be implemented in hardware, software, or by hardware executing corresponding software. The hardware or software includes one or more modules or units corresponding to the functions described above.
[0079] The communication device includes a receiving unit, a processing unit, and a transmitting unit. The receiving unit receives a code block sequence from a first network device. The code block sequence includes service data of a target service. The processing unit encapsulates the service data into time slot frames according to the type of the code block sequence. Each time slot frame includes a complete message and / or message fragments of the target service. The transmitting unit transmits the time slot frames to a second client device.
[0080] In one possible design, the first timeslot frame includes the first fragment of the first message. The timeslot frame includes the first timeslot frame, and the code block sequence includes at least a start S code block but does not include an end T code block. The first message belongs to the target service.
[0081] In one possible design, the second time slot frame includes the last fragment of the first message. The time slot frame includes the second time slot frame, and the code block sequence includes at least T code blocks but excludes S code blocks. The first message belongs to the target service.
[0082] In one possible design, the third timeslot frame includes an intermediate fragment of the first message. The timeslot frame includes the third timeslot frame, and the code block sequence is a data D code block sequence. The first message belongs to the target service.
[0083] In one possible design, the fourth time slot frame includes the complete message of the second message. Specifically, the time slot frame includes the fourth time slot frame, the code block sequence includes at least S-blocks and T-blocks, and the second message belongs to the target service.
[0084] In one possible design, the time slot frame also includes at least one identification information. This identification information is used to identify the target service corresponding to the time slot frame.
[0085] Eighthly, embodiments of this application provide a communication device, which can be a second network device in the fourth aspect or any possible design of the fourth aspect, or a chip that implements the functions of the second network device described above; the communication device includes modules, units, or means that implement the methods described above, which can be implemented in hardware, software, or by hardware executing corresponding software. The hardware or software includes one or more modules or units corresponding to the functions described above.
[0086] The communication device includes a receiving unit, a processing unit, and a transmitting unit. The receiving unit receives time-slot frames from a second network device. Each time-slot frame includes a complete message and / or message fragments of the target service. The processing unit reassembles the time-slot frames to obtain a Media Access Control (MAC) layer message.
[0087] Ninthly, embodiments of this application provide a communication device, including: a processor and a memory; the memory is used to store computer instructions, which, when executed by the processor, cause the communication device to perform the method executed by a client device in any of the above-described aspects or any possible designs of the above-described aspects. The communication device may be a first client device in any of the above-described first aspects or any possible designs of the first aspect, or it may be a second client device in any of the above-described fourth aspects or any possible designs of the fourth aspect, or a chip implementing the functions of the aforementioned client device.
[0088] In a tenth aspect, embodiments of this application provide a communication device, including: a processor; the processor is coupled to a memory for reading and executing instructions from the memory to cause the communication device to perform a method performed by a client device as described in any of the above aspects or any possible designs of any of the above aspects. The communication device may be a first client device in the first aspect or any possible design of the first aspect, or a second client device in the fourth aspect or any possible design of the fourth aspect, or a chip implementing the functions of the aforementioned client device.
[0089] Eleventhly, embodiments of this application provide a chip, including a processing circuit and an input / output interface. The input / output interface is used to communicate with modules outside the chip. For example, the chip can be a chip implementing the client device functions in the first aspect or any possible design of the first aspect described above. The processing circuit is used to run computer programs or instructions to implement the methods in the first aspect or any possible design of the first aspect described above. Alternatively, the chip can be a chip implementing the client device functions in the fourth aspect or any possible design of the fourth aspect described above. The processing circuit is used to run computer programs or instructions to implement the methods in the fourth aspect or any possible design of the fourth aspect described above.
[0090] In a twelfth aspect, embodiments of this application provide a communication device, including: a processor and a memory; the memory is used to store computer instructions, which, when executed by the processor, cause the communication device to perform the method performed by a network device in any of the above-described aspects or any possible designs of the above-described aspects. The communication device may be a first network device in any of the above-described second aspects or any possible designs of the second aspect, or it may be a second network device in any of the above-described third aspects or any possible designs of the third aspect, or a chip implementing the functions of the above-described network device.
[0091] In a thirteenth aspect, embodiments of this application provide a communication device, including: a processor; the processor is coupled to a memory for reading and executing instructions from the memory to cause the communication device to perform a method as performed by a network device in any of the above aspects or any possible designs of any of the above aspects. The communication device may be a first network device in any of the above second aspects or any possible designs of the second aspect, or it may be a second network device in any of the above third aspects or any possible designs of the third aspect, or a chip implementing the functions of the above network device.
[0092] In a fourteenth aspect, embodiments of this application provide a chip including a processing circuit and an input / output interface. The input / output interface is used to communicate with modules outside the chip; for example, the chip can be a chip implementing the network device function in the second aspect or any possible design of the second aspect described above. The processing circuit is used to run computer programs or instructions to implement the method in the second aspect or any possible design of the second aspect described above. Alternatively, the chip can be a chip implementing the network device function in the third aspect or any possible design of the third aspect described above. The processing circuit is used to run computer programs or instructions to implement the method in the third aspect or any possible design of the third aspect described above.
[0093] In a fifteenth aspect, embodiments of this application provide a computer-readable storage medium storing instructions that, when executed on a computer, enable the computer to perform the methods of any of the preceding aspects.
[0094] In a sixteenth aspect, embodiments of this application provide a computer program product containing instructions that, when run on a computer, enable the computer to perform the method of any of the preceding aspects.
[0095] In a seventeenth aspect, embodiments of this application provide a circuit system including a processing circuit configured to perform the method as described in any of the preceding aspects.
[0096] In an eighteenth aspect, embodiments of this application provide a communication system, which includes a first client device, a first network device, a second network device, and a second client device as described in any of the foregoing aspects.
[0097] The technical effects of any of the designs in aspects five through eighteen can be found in the beneficial effects of the corresponding methods provided above, and will not be repeated here. Attached Figure Description
[0098] Figure 1 A network architecture diagram used in an embodiment of this application;
[0099] Figure 2 A schematic diagram illustrating a frame preemption mechanism provided for an embodiment of this application;
[0100] Figure 3 A schematic diagram illustrating another frame preemption mechanism provided in an embodiment of this application;
[0101] Figure 4a A schematic diagram of a message structure provided for an embodiment of this application;
[0102] Figure 4b A schematic diagram of another message structure provided for an embodiment of this application;
[0103] Figure 5 A schematic diagram illustrating the working principle of a frame preemption mechanism provided in this application embodiment;
[0104] Figure 6a A schematic diagram of a communication scenario provided for an embodiment of this application;
[0105] Figure 6b A schematic diagram of another communication scenario provided for an embodiment of this application;
[0106] Figure 7 A schematic diagram of yet another communication scenario provided for an embodiment of this application;
[0107] Figure 8a A flowchart illustrating a communication method provided for an embodiment of this application;
[0108] Figure 8b A flowchart illustrating another communication method provided for an embodiment of this application;
[0109] Figure 9a A schematic diagram of yet another message structure provided for an embodiment of this application;
[0110] Figure 9b A schematic diagram of yet another message structure provided for an embodiment of this application;
[0111] Figure 10a A schematic diagram illustrating a message segmentation scenario provided for an embodiment of this application;
[0112] Figure 10b A schematic diagram illustrating another message segmentation scenario provided for an embodiment of this application;
[0113] Figure 10c A flowchart illustrating yet another communication method provided for an embodiment of this application;
[0114] Figure 11a A flowchart illustrating yet another communication method provided for an embodiment of this application;
[0115] Figure 11b A schematic diagram of the structure of a time-slot frame provided for an embodiment of this application;
[0116] Figure 12 A schematic diagram of another time-slot frame provided for an embodiment of this application;
[0117] Figure 13 A schematic diagram of a communication scenario provided for an embodiment of this application;
[0118] Figure 14 A flowchart illustrating yet another communication method provided for an embodiment of this application;
[0119] Figure 15 A flowchart illustrating yet another communication method provided for an embodiment of this application;
[0120] Figure 16 A flowchart illustrating yet another communication method provided for an embodiment of this application;
[0121] Figure 17 This is a schematic diagram of the structure of a communication device provided in an embodiment of this application;
[0122] Figure 18 This is a schematic diagram of another communication device provided in an embodiment of this application. Detailed Implementation
[0123] The terms "first" and "second," etc., used in the specification and drawings of this application are used to distinguish different objects or different treatments of the same object, rather than to describe a specific order of objects. Furthermore, the terms "comprising" and "having," and any variations thereof, mentioned in the description of this application, are intended to cover non-exclusive inclusion. For example, a process, method, system, product, or device that includes a series of steps or units is not limited to the listed steps or units, but may optionally include other steps or units not listed, or may optionally include other steps or units inherent to these processes, methods, products, or devices. It should be noted that in the embodiments of this application, words such as "exemplary" or "for example" are used to indicate examples, illustrations, or descriptions. Any embodiment or design described as "exemplary" or "for example" in the embodiments of this application should not be construed as preferred or advantageous over other embodiments or designs. Specifically, the use of words such as "exemplary" or "for example" is intended to present the relevant concepts in a specific manner.
[0124] The network architecture applicable to the embodiments of this application is as follows: Figure 1 As shown, this network architecture includes client equipment and network equipment. There can be one or more client devices. Figure 1 The diagram shows four client devices: client device 101, client device 102, client device 103, and client device 104. Network equipment includes provider edge (PE) devices and provider (P) devices. There can be two or more PE devices. There can be one or more P devices. Figure 1 The diagram shows two PE devices (PE device 105 and PE device 106) and one P device, which are communicatively connected to PE device 105 and PE device 106, respectively. Client devices 101 and 102 are both communicatively connected to PE device 105, and client devices 103 and 104 are both communicatively connected to PE device 106.
[0125] In this context, the customer device can be a router, switch, or even a host. The PE device can be a service provider edge router, an edge device in the service provider network, directly connected to the customer device. The P device can be a backbone router in the service provider network, not directly connected to the customer device.
[0126] It should be understood that the aforementioned network devices and client devices may have different names in different network architectures. Those skilled in the art will understand that the name does not constitute a limitation on the device itself.
[0127] To facilitate understanding of the embodiments of this application, the terminology used in the embodiments of this application will be briefly explained below. It should be understood that these explanations are only for the purpose of understanding the embodiments of this application and should not constitute any limitation on this application.
[0128] 1. Timeslot-based frame segment (TFS)
[0129] A time slot frame is a complete message or message fragment whose length is related to the number of time slots or bandwidth. For example, the amount of data in a time slot frame is related to the amount of data that a single time slot can transmit. If the amount of data transmitted in a single time slot is 100 bytes (B), then the amount of data in a time slot frame can be 100B, and the corresponding length of a time slot frame can be 104B. As another example, the amount of data in a time slot frame is related to bandwidth. Taking service A as an example, if the bandwidth of service A is 100Mbps, then a time slot frame carries the service data of service A, and the amount of data in a single time slot frame can be 100B, and the corresponding length of a single time slot frame can be 104B.
[0130] When a message is segmented, a time slot frame includes one message fragment. In this case, the message fragment in the time slot frame can be the last segmented message fragment, or it can be any other message fragment besides the last segmented message fragment. When a message is not segmented, a time slot frame can include one complete message. Alternatively, a time slot frame can include one complete message and one message fragment, as detailed in S802, which will not be repeated here.
[0131] 2. Time-Sensitive Networking (TSN) Frame Preemption Mechanism
[0132] like Figure 2 As shown, the media access control (MAC) layer includes express media access control (eMAC), preemptible media access control (pMAC), and a merge sublayer. High-priority service packets are sent via eMAC, while low-priority service packets are sent via pMAC. When a high-priority service packet arrives, it can preempt the transmission opportunity of the low-priority service packet, thus enabling the high-priority service packet to be sent quickly and reducing latency.
[0133] like Figure 3As shown, taking the transmission of packets between three network devices as an example, on network device A, network device A is sending a low-priority packet to network device B. At this time, a high-priority packet is waiting to be sent, meeting the frame preemption condition, and frame preemption occurs. Therefore, network device A stops sending the remaining part of the low-priority packet, buffers it in pMAC, and sends the high-priority packet to network device B until the high-priority packet transmission is complete. Then, network device A sends the remaining part of the low-priority packet to network device B. The format of the initial low-priority packet sent by network device A is as follows: Figure 4a As shown, the format of some low-priority packets sent by network device A is as follows: Figure 4b As shown.
[0134] On network device B, after receiving a portion of low-priority packets from network device A, network device B determines that it has received packet fragments based on the packet format. It then buffers the initially received low-priority packets in pMAC until it receives the remaining low-priority packets, at which point it reassembles the received low-priority packets. Finally, network device B sends the reassembled packets to network device C.
[0135] In summary, from the perspective of the transmission link, low-priority messages are interrupted by high-priority messages and are sent discontinuously.
[0136] in, Figure 4a The message format shown includes a preamble field, a start-merge-packet delimiter (SMD) field, a payload field, and a cyclic redundancy check (CRC) field. For example, the preamble field is 7 octets long, the SMD field is 1 octet long, the payload field is greater than or equal to 60 octets long, and the CRC field is 4 octets long.
[0137] in, Figure 4b The message format shown includes a preamble field, an SMD field, a continue transmission (FRAG_COUNT) field, a payload field, and a CRC field. For example, the preamble field is 6 octets long, the SMD field is 1 octet long, the continue transmission field is 1 octet long, the payload field is greater than or equal to 60 octets long, and the CRC field is 4 octets long.
[0138] It should be noted that TSN frame preemption can be triggered by high-priority services or by the MAC merging sublayer. For example, ... Figure 5 As shown, when the MAC client supporting preemption sublayer determines that the preemption conditions are met based on the service priority, it instructs the MAC merging sublayer to perform frame preemption through the MM_CTL request message.
[0139] 3. Store-and-forward, channel forwarding
[0140] Store-and-forward refers to a process in which each receiving device in a network fully receives and stores a packet, then performs a table lookup to find the packet's output port, and forwards the packet through that port. Figure 6a As shown, store-and-forward requires a large buffer on the receiving device, and the process of buffering the message also leads to a large message forwarding delay.
[0141] Channel forwarding refers to forwarding packets based on the mapping relationship between the outgoing and incoming ports of a service, without needing to recover the complete packet. Figure 6b As shown in the figure. It can be seen that channel forwarding omits message caching and other processing in store-and-forward, so channel forwarding has the advantages of low latency, simplicity and efficiency.
[0142] like Figure 7 As shown, in a standard Ethernet network, client device 101 sends packets to client device 103 via PE devices 105, P devices 107, P devices 108, and PE devices 106, while client device 102 sends packets to client device 104 via the same PE devices. Client device 101 may send too many packets to PE device 105, exceeding PE device 105's buffer capacity, causing PE device 105 to discard packets from client device 101, resulting in increased packet loss and frequent packet retransmissions.
[0143] In view of this, embodiments of this application provide a communication method, which is applied to... Figure 1 or Figure 7The communication system described in this application embodiment uses a communication method in which a first client device obtains indication information. This indication information specifies the service bandwidth and a first period. The service bandwidth is the bandwidth pre-allocated for the target service, and the first period is the period during which the first network device transmits the target service. Then, the first client device sends time-slot frames to the first network device according to the indication information. Each time-slot frame includes a complete message and / or message fragments of the target service. The first data volume transmitted in the first period corresponds to the second data volume transmitted in the sending period. The sending period is the period during which the first client device sends the time-slot frames, and the length of the time-slot frame is determined based on a third data volume or service bandwidth carried by a preset number of time slots. For example, the first network device can be a PE device. This allows for coordination of data transmission rhythm and volume between the first client device and the first network device, thereby avoiding the buffering pressure caused by the first client device blindly sending messages, reducing message retransmissions, and improving communication efficiency.
[0144] Below, in conjunction with Figure 8a The communication method 800 proposed in the embodiments of this application will be described in detail.
[0145] S801, The first customer equipment obtains instruction information.
[0146] The first customer equipment can be Figure 1 or Figure 7 Client equipment 101 can also be client equipment 102. Alternatively, the first client equipment can be... Figure 1 or Figure 7 The client equipment 103 in the application can also be client equipment 104. In this embodiment, only client equipment 101 is used as an example for description.
[0147] The indication information specifies the service bandwidth and the first cycle. In this embodiment, the first cycle can be denoted as "cycle". The service bandwidth and the first cycle are described below:
[0148] In this context, the service bandwidth refers to the bandwidth pre-allocated to the target service. For example, if there is only one target service with a service bandwidth of 100 Mbps, the indication information indicates that the service bandwidth is 100 Mbps. Alternatively, the target service may include a first service and a second service. The first bandwidth is the pre-allocated bandwidth for the first service, such as 100 Mbps. The second bandwidth is the pre-allocated bandwidth for the second service, such as 150 Mbps. In this case, there are two service bandwidths, and the indication information indicates that the service bandwidths are 100 Mbps and 150 Mbps, to avoid high-priority services monopolizing the link, improve the fairness of service transmission opportunities, and increase bandwidth utilization. In this embodiment, the priorities of the first and second services can be the same or different, and this embodiment does not limit this.
[0149] The first cycle refers to the cycle during which the first network device transmits the target service. For example, let's continue with... Figure 1 or Figure 7 For example, when customer equipment 101 sends a target service to customer equipment 103, the first cycle is the cycle in which PE equipment 105 sends the target service to P equipment 107. The unit of the first cycle can be a time slot, such as one time slot or multiple time slots. The unit of the first cycle can also be microseconds (µs), such as 50.688µs. In this embodiment, the length of the first cycle is not limited.
[0150] Optionally, the indication information also includes at least one identification information. The identification information is used to identify the target service indicated by the indication information. For example, the identification information can be a client ID. The number of identification information is consistent with the number of target services. For instance, if there is one target service, there is also one identification information. Similarly, if there are two target services, there are also two identification information.
[0151] For example, the S801 can be implemented in the following two ways:
[0152] Method 1, such as Figure 8b As shown in the first dashed box in the diagram, S801 includes S801a:
[0153] S801a, The management device sends an instruction message to the first client device. Correspondingly, the first client device receives the instruction message from the management device.
[0154] In this embodiment, data transmission between the management device and the first client device, the first network device, the second network device, and the second client device is achieved via wired or wireless connections. The management device is used to manage the network topology, such as testing link quality and allocating service bandwidth. Alternatively, the management device can also be described as a network controller, but this embodiment does not limit the description thereto.
[0155] The description of the instructions can be found in the above explanation, and will not be repeated here.
[0156] Method 2, such as Figure 8b As shown in the second dashed box, S801 includes S801b:
[0157] S801b: The first network device sends an instruction message to the first client device. Correspondingly, the first client device receives the instruction message from the first network device.
[0158] The first network device can be Figure 1 or Figure 7 In the PE device 105, the corresponding first customer device can be... Figure 1 or Figure 7 Client equipment 101 can also be client equipment 102. Alternatively, the first network device can be... Figure 1 or Figure 7 In the PE device 106, the corresponding first customer device can be... Figure 1 or Figure 7 The client device 103 in the example can also be client device 104. In this embodiment, only the example of the first network device being PE device 105 and the first client device being client device 101 is described.
[0159] In this embodiment, the first network device can autonomously determine the service bandwidth and the first period. Alternatively, as another possible implementation, the management device determines the aforementioned service bandwidth and the first period, and then sends first information to the first network device. Correspondingly, the first network device receives the first information from the management device. The first information indicates the service bandwidth and the first period. Then, the first network device executes S801b, which is not limited in this embodiment.
[0160] For example, the indication information in S801b is carried in one of the following messages:
[0161] The first item is a Link Layer Discovery Protocol (LLDP) message. For example, such as... Figure 9aAs shown, an LLDP message includes a destination address (DA), a source address (SA), a type, a link layer discovery protocol data unit (LLDPDU), and a frame check sequence (FCS). The LLDPDU includes an information / value field. The globally unique identifier (OUI) within the information / value field includes a cycle field and a client info field. The first cycle is carried in the cycle field; for example, if the first cycle is 51µs, it would be represented as 0x33 in hexadecimal. Figure 9a As shown. Service bandwidth is carried in the customer information field. Each target service is identified by an identifier, and each identifier corresponds to a service bandwidth. For example, the identifier and service bandwidth are represented in hexadecimal. The identifier can be recorded as 0x001, and the service bandwidth can be recorded as 0x001.
[0162] The second item is control messages. For example, the type of control message carrying indication information can be predefined, such as... Figure 9b As shown, the control message includes DA, SA, type, data portion, and FCS. The data portion includes a period field and at least one customer information field. The period field indicates the first period, and each customer information field indicates the service bandwidth for a target service.
[0163] S802, The first customer equipment determines the time slot frame according to the instruction information.
[0164] A time slot frame includes the complete message and / or message fragments of the target service. For example, a time slot frame may include the complete message of the target service but not message fragments. Another example is a time slot frame that includes message fragments of the target service but not the complete message. Yet another example is a time slot frame that includes both message fragments and the complete message of the target service.
[0165] Optionally, the time slot frame also includes at least one identification information. This identification information is used to identify the target service indicated by the time slot frame, so that different services can be distinguished when there are two or more target services. For example, the identification information can be carried in the preamble of the time slot frame, such as... Figure 10a or Figure 10b As shown. For details on the identification information, please refer to the relevant explanations in the instruction information; they will not be repeated here.
[0166] The following section describes the data volume, length, and generation process of a time-slot frame:
[0167] First, the data volume in the time slot frame is explained as follows: the first data volume transmitted in the first cycle corresponds to the second data volume transmitted in the time slot frame within one transmission cycle.
[0168] Wherein, the transmission period is the period during which the first client equipment sends a time slot frame to the first network equipment, denoted as Tn. For example, the transmission period Tn satisfies the following formula:
[0169] Tn=(L1+L2+…+L m ) / W formula (1)
[0170] Where Tn represents the transmission period, L1 represents the time slot frame length of the first service in the target service, L2 represents the time slot frame length of the second service in the target service, and L... m This represents the time slot frame length of the m-th service in the target service, where m represents the number of target services, and W represents the port bandwidth.
[0171] The period interval is the interval between two adjacent transmission periods, and its value is greater than or equal to zero. The following sections will introduce two cases (Case 1 and Case 2):
[0172] Case 1: The first data volume equals the second data volume. In this case, the length of the first cycle is greater than or equal to the length of the transmission cycle, i.e., cycle ≥ Tn. For example, when cycle = Tn, the data transmission rhythm of the first client device and the first network device is consistent. In this case, the cycle interval is zero. As another example, when cycle > Tn, such as cycle = 2Tn, for the same data volume, the reception time of the first network device is less than the transmission time; that is, the data arrives faster and leaves slower on the first network device's side. In this case, the cycle interval is Tn.
[0173] Scenario 2: The first data volume is greater than the second data volume. In this case, the length of the first cycle is less than the length of the transmission cycle, i.e., cycle < Tn. For example, when cycle = 0.5Tn, the data arriving at the first network device is slower than it is departing. In this case, the cycle interval is zero.
[0174] It should be noted that, in this embodiment, the period interval is the difference between the length of the first period and the length of the transmission period, so that the first client equipment is forced to generate a period interval. It should be understood that other calculation methods can be used for the period interval, and this embodiment does not limit this method.
[0175] Second, the length of the time slot frame is explained as follows:
[0176] In this embodiment of the application, the first client equipment can determine the length of the time slot frame using the following three methods (method 1, method 2, and method 3), which are described in detail below:
[0177] Method 1: The length of the time slot frame is determined based on the amount of third data carried by a preset number of time slots. For example, the preset number can be one or more. In this embodiment, only the amount of third data carried by a single time slot is described as an example. In this case, the length of the time slot frame can be determined based on the amount of third data carried by a single time slot. Below, taking message A1 of the first service in the target service as an example, the time slot frame determined by Method 1 is described. The time slot frame includes the following three types:
[0178] The first type is where time slot frame X1 includes a complete fragment of message A1. In other words, when message A1 is not fragmented, time slot frame X1 includes the complete message of message A1.
[0179] The second type is where time slot frame X2 includes all other fragments of message A1 except for the last fragment. For example, if message A1 is divided into two fragments, time slot frame X2 includes the first fragment. As another example, if message A1 is divided into three or more fragments, time slot frame X2 includes the first fragment, or time slot frame X2 includes any fragment other than the first and last fragments of message A1.
[0180] The third type is where time slot frame X3 includes the last fragment of message A1. Taking message A1 as an example again, message A1 can be divided into two fragments, or into three or more fragments, and time slot frame X3 includes the last fragment of message A1.
[0181] For example, the first client equipment segments packet A1 according to the third data volume, and only performs packet segmentation if the remaining fragments after segmentation of packet A1 are greater than or equal to the preset frame length. In this case, the time slot frame fragments include the aforementioned time slot frame fragment X2 and time slot frame fragment X3. For example, the third data volume is 100B, and the preset frame length is 64B. Correspondingly, the first preset value is 164B. Figure 10a For example, if the complete message length of message A1 is 264 bytes, after segmenting message A1 according to the third data quantity, the remaining fragment length is 64 bytes. The length of the remaining fragment is equal to the preset frame length. Therefore, message A1 is segmented into three message fragments, each with lengths of 100 bytes, 100 bytes, and 64 bytes, respectively. Each message fragment is encapsulated into a different time slot frame.
[0182] Conversely, if the first client equipment segments packet A1 according to the third data volume, but the remaining fragments after segmenting packet A1 are less than the preset frame length, the first client equipment does not segment packet A1. In this case, the time slot frame fragment includes the aforementioned time slot frame fragment X1. For example, let's take a third data volume of 100B, a preset frame length of 64B, and a first preset value of 164B as an example. Figure 10b For example, if the complete message length of message A1 is 259 bytes, after segmenting message A1 according to the third data quantity, the remaining fragment length is 59 bytes. Since the length of the remaining fragment is less than the preset frame length, message A1 is segmented into two message fragments, each with lengths of 100 bytes and 159 bytes respectively. Each message fragment is encapsulated into a different time slot frame.
[0183] The preset frame length refers to the frame length that meets the Ethernet message length requirements. Alternatively, the preset frame length can also be a predefined frame length of other values, which is not limited in this embodiment.
[0184] It should be understood that in Method 1, for messages of the same service, a time slot frame can include a complete message, such as the introduction of time slot frame X1, or it can include a message fragment, such as the introduction of time slot frame X2 or time slot frame X3.
[0185] In Method 1, when the message is segmented, the length of the time slot frames corresponding to different services is the same. Below, we will use message A2 of the second service in the target service as an example: whether message A2 is segmented and the resulting time slot frames can be found in the description of message A1, and will not be repeated here. Specifically, the message fragments in time slot frame X4 are all the message fragments in the second message except for the last message fragment. Furthermore, the length of time slot frame X4 is the same as the length of time slot frame X2. In other words, the first client equipment segments messages of different services according to the same length (i.e., the third data volume) to simplify the processing complexity of the first client equipment.
[0186] exist Figure 10c Taking services i, j, and k as examples, the first client equipment polls services i, j, and k. If the polling is not complete, the first client equipment processes the current service's message. For example, using the message of service i as an example: the first client equipment determines the value of the transmission time slot Tsx for service i, specifically including two cases (case a and case b):
[0187] Case a, Tsx≤0, the transmission slot for service i does not exist. In this case, the first client device polls for the next service.
[0188] Case b: Tsx > 0, the transmission time slot for service i exists. In this case, the first client equipment reassigns Tsx, i.e., Tsx = Tsx - 1. The first client equipment segments the packet according to Lsi and determines whether the remaining fragment length is greater than 64B. If yes, the first client equipment segments the packet first and then generates a time slot frame. In this case, the generated time slot frame can be found in the introduction of time slot frame X2 and time slot frame X3, and will not be repeated here. If no, the first client equipment does not segment the packet and generates a time slot frame. In this case, the generated time slot frame can be found in the introduction of time slot frame X1, and will not be repeated here.
[0189] exist Figure 10c In the process, after the service polling is completed, the first client device starts a timer, which counts until the timer duration equals 50.688 / 2µs. The first client device then polls each service again. The timer duration indicates the period interval, which is 50.688 / 2µs.
[0190] Method 2: The length of the time slot frame is determined based on the service bandwidth. For example, if the amount of data transmitted by the first service in the first cycle is denoted as the fifth data amount, and the first service's message is segmented, then in the segmented message fragments, at least one message fragment has a length equal to the fifth data amount. Below, using message B1 of the first service in the target service as an example, we will introduce the time slot frame determined by Method 2. The time slot frame includes the following four types:
[0191] The first type is where time slot frame Y1 includes all other fragments of message B1 except for the last fragment. The length of each fragment in message B1, excluding the last fragment, is equal to the fifth data volume. For example, if message B1 is divided into two fragments, time slot frame Y1 includes the first fragment. Similarly, if message B1 is divided into three or more fragments, time slot frame Y1 includes the first fragment, or it includes any fragment other than the first and last fragments of message B1.
[0192] The second type involves time slot frame Y2 comprising the last fragment of message B1. The length of the last fragment of message B1 is greater than or equal to a preset frame length and less than or equal to a second preset value. The second preset value is equal to the sum of the fifth data volume and the preset frame length. Taking message B1 being segmented as an example, message B1 can be segmented into two fragments, or into three or more fragments, and time slot frame Y2 comprises the last fragment of message B1.
[0193] The third type is where time slot frame Y3 includes at least one complete message of the first service. The sum of the lengths of the complete messages is greater than or equal to a preset frame length and less than or equal to a second preset value. In other words, time slot frame Y3 carries one or more complete messages, meaning the messages in time slot frame Y3 are not segmented and do not include message fragments.
[0194] Fourthly, time slot frame Y4 includes the complete message of message B1 and the message fragments of message B2. The sum of the lengths of the message fragments and the complete message in time slot frame Y4 is greater than or equal to a preset frame length and less than or equal to a second preset value. In other words, time slot frame Y4 carries both the complete message and the message fragments; that is, time slot frame Y4 contains segmented messages.
[0195] Example 1: Taking a single message length of the first service that is greater than the fifth data volume as an example, the first client equipment segments message B1 according to the fifth data volume. The first client equipment only performs message segmentation if the remaining fragments after segmentation of message B1 are greater than or equal to the preset frame length. In this case, the time slot frame fragments include the aforementioned time slot frame fragments Y1 and Y2. For example, the fifth data volume is 100 bytes, and the preset frame length is 64 bytes. Correspondingly, the second preset value is 164 bytes. If the complete message length of message B1 is 180 bytes, then after segmenting message B1 according to the fifth data volume, the remaining fragment length is 80 bytes. Since the length of the remaining fragment is greater than the preset frame length, message B1 is segmented into two message fragments.
[0196] Conversely, if the first client equipment segments message B1 according to the fifth data amount, but the remaining fragments after segmentation of message B1 are less than the preset frame length, the first client equipment does not segment message B1. In this case, the time slot frame includes the aforementioned time slot frame Y3. For example, still taking the fifth data amount as 100B, the preset frame length as 64B, and the second preset value as 164B, if the complete message length of message B1 is 160B, then after segmenting message B1 according to the fifth data amount, the remaining fragment length is 60B. Since the length of the remaining fragment is less than the preset frame length, message B1 is not segmented, and the complete message of message B1 is encapsulated in time slot frame Y3.
[0197] It should be noted that in Example 1, when the message is segmented, the lengths of the time slot frames corresponding to different services can be the same or different. Below, we will use message B2 of the second service in the target service as an example: whether message B2 is segmented and the resulting time slot frames can be found in the description of message B1, which will not be repeated here. Message B2, after being segmented, generates at least two message fragments, and the length of one or more of these fragments is equal to the sixth data quantity. The sixth data quantity is the amount of data transmitted by the second service in the first cycle. The fifth and sixth data quantities can be the same or different. The time slot frames generated from message B2 are denoted as time slot frame Z1 and time slot frame Z2. Time slot frame Z1 includes all message fragments in message B2 except for the last message fragment, and time slot frame Z2 includes the last message fragment in message B2. If the fifth and sixth data quantities are the same, then time slot frame Y1 and time slot frame Z1 have the same length. If the fifth data quantity and the sixth data quantity are different, then the lengths of time slot frame Y1 and time slot frame Z1 are different. The lengths of time slot frame Y2 and time slot frame Z2 can be the same or different, and this application embodiment does not limit this.
[0198] Example 2: Taking the example that the length of a single message in the first service is less than the fifth data volume, the first client equipment segments message B1 according to the fifth data volume. However, the length of message B2 is less than the fifth data volume, so the first client equipment accumulates more messages for the first service. For example, taking two messages as an example, the first client equipment accumulates the message lengths of messages B1 and B2. The accumulated messages are segmented according to the fifth data volume, and the remaining fragments after segmentation are greater than or equal to the preset frame length. In this case, the time slot frame fragments include the aforementioned time slot frame fragment Y4. For example, the fifth data volume is 100B, and the preset frame length is 64B. Correspondingly, the second preset value is 164B. If the sum of the complete message lengths of messages B1 and B2 is 180B, then after segmenting the messages according to the fifth data volume, the remaining fragment length is 80B. The length of the remaining fragment is greater than the preset frame length, so one message of B1 and one message of B2 is segmented, and the other message is not segmented.
[0199] Conversely, if the first client equipment segments the packets according to the fifth data quantity, but the remaining fragments after segmentation are less than the preset frame length, the first client equipment does not segment packets B1 and B2. In this case, the time slot frame includes the aforementioned time slot frame Y3. For example, still taking the fifth data quantity as 100B, the preset frame length as 64B, and the second preset value as 164B, if the sum of the complete packet lengths of packets B1 and B2 is 160B, then the sum of the packet segments according to the fifth data quantity results in a remaining fragment length of 60B. Since the length of the remaining fragment is less than the preset frame length, neither packet B1 nor packet B2 is segmented, and the complete packets of packets B1 and B2 are encapsulated in time slot frame Y3.
[0200] by Figure 11a For example, taking services i, j, and k as examples, the first client equipment sorts services i, j, and k in descending order of priority. Then, the first client equipment polls each service in a round-robin fashion. While polling for a service is incomplete, the first client equipment processes the packets for the current service. For instance, Figure 11a In this example, we will use the message of service i as an example: First, the client equipment determines the relationship between the message length of service i and the size of the time slot frame Lsi, specifically including three cases (case a, case b, and case c):
[0201] Case a: The message length of service i is less than the time slot frame Lsi. In this case, the first client equipment may not perform message segmentation and generate a time slot frame; see the introduction to time slot frame Y3 for details. Alternatively, the first client equipment may perform message segmentation first and then generate a time slot frame; see the introduction to time slot frame Y4 for details, which will not be elaborated here.
[0202] Case b: The message length of service i is equal to the time slot frame Lsi. In this case, the first customer equipment generates the time slot frame, which can be found in the introduction of time slot frame Y3, and will not be repeated here.
[0203] Case c: The message length of service i is greater than the time slot frame Lsi. In this case, the first customer equipment first segments the message and then generates the time slot frame. For details, please refer to the introduction of time slot frame Y1 and time slot frame Y2, which will not be repeated here.
[0204] exist Figure 11a In the process, after the service polling is completed, the first client device starts a timer, which counts down until its duration equals 50.688 / 2µs. The first client device then polls each service again. The timer's duration indicates the periodic interval.
[0205] by Figure 11bFor example, service i has a higher priority than service j. The first client equipment sends time slot frame i for service i first, then sends time slot frame j for service j; that is, time ti is earlier than time tj. The time slot frame length for service i is 320 bytes, and the message length for service i is 320 bytes. The time slot frame length for service j is 6400 bytes, and the message length for service j is 1518 bytes. Figure 11b In the above, for service i, the first client equipment encapsulates a message into a time slot frame. For service j, the first client equipment accumulates multiple messages. For example, after accumulating 4 messages, the 5th message is split, that is, the four messages and one message fragment are reassembled into a time slot frame.
[0206] It should be noted that in Example 2, when the message is segmented, the length of the time slot frame corresponding to different services can be the same or different. For details, please refer to the introduction in Example 1 of Method 2, which will not be repeated here.
[0207] In other words, in Method 2, the first customer equipment divides the packets of different services according to the service bandwidth of each service in order to match the data transmission efficiency of each service and improve bandwidth utilization.
[0208] Method 3 involves at least two target services, with packet fragments from at least two target services carried within the same time slot frame. The process for determining packet fragments can be found in the description of Method 1, and will not be repeated here. For example, taking packet A1 of the first service and packet A2 of the second service as examples, packet fragments of packet A1 and packet fragments of packet A2 can be carried within the same time slot frame to improve data transmission efficiency.
[0209] Optionally, the time slot frame in Method 3 also includes a first field. This first field indicates the length of the service data in each packet fragment. For example, the unit of the length indicated by the first field is bits, each target service occupies N bits in the first field, and the maximum value of the data length of each target service indicated by the first field is 2. N N bits. Where N is a positive integer. It should be understood that the first field may also have other names, such as the business length field, and this application embodiment does not limit this.
[0210] For example, with Figure 12 For example, there are eight target services, designated as services 1 to 8. The time slot frame determined by method 3 includes DA, SA, type, first field, message fragmentation, and FCS. The first field has 80 bits, with each 10 bits indicating the length of the service data for a target service. For each target service, the time slot frame carries identification information to identify the service corresponding to the service data. Figure 12The number of target services can also have other values, and this application embodiment does not limit this. The number of target services can be predefined.
[0211] It should be understood that in the embodiments of this application, the time slot frame in Method 3 can carry packet fragments of each target service, that is, it still includes the DA, SA, type and FCS fields of the original packet. Of course, multiple target services can share the same DA, SA, type and FCS fields, that is, the time slot frame does not carry the DA, SA, type and FCS fields of the original packet.
[0212] S803. The first client equipment sends a time slot frame to the first network device according to the instruction information. Correspondingly, the first network device receives the time slot frame from the first client equipment.
[0213] The time slot frame in S803 is the same as the time slot frame in S802.
[0214] For example, the first client equipment sends time slot frames to the first network device according to the transmission period, such as... Figure 13 As shown. When the period interval is zero, two adjacent transmission periods are sequential in time. When the period interval is greater than zero, two adjacent transmission periods are discrete in time. That is, during the period interval, the first client equipment stops sending time slot frames to the first network equipment to ensure that the first client equipment and the first network equipment maintain consistency in transmission rhythm and data transmission volume.
[0215] As one possible implementation, during the periodic interval, the first client device sends fourth data to the first network device. Correspondingly, the first network device receives the fourth data from the first client device. The service corresponding to the fourth data is not a target service; that is, the first client device uniformly divides the period according to its own target and non-target services to improve the communication efficiency between the first client device and the first network device. It should be understood that during the periodic interval, the first client device may also not send the fourth data to the first network device; that is, the first client device divides its own data transmission period according to its own target service. This application embodiment does not limit this approach.
[0216] For example, the first client equipment uses the timing duration of a timer to indicate the duration of the periodic interval. After the first client equipment stops sending time slot frames to the first network equipment, the timer starts, and when the timer times out, the first client equipment sends a time slot frame to the first network equipment. During the timer's operation, the first client equipment sends fourth data to the first network equipment. It should be understood that the first client equipment may also use other methods to record the periodic interval, and this embodiment does not limit this method.
[0217] S804. The first network device determines the code block sequence based on the time slot frame.
[0218] The time slot frame in S804 is the same as the time slot frame in S803.
[0219] For example, the first network device encodes the service data in the time slot frame to obtain a code block sequence. A code block sequence includes a start (S) code block, a data (D) code block, and a terminal (T) code block. The S and T code blocks are used to identify a complete message. The D code block is used to carry the payload data in the message. The encoding format can be 64B / 66B or other encoding formats, which are not limited in this embodiment.
[0220] S805, the first network device sends a code block sequence to the second network device. Correspondingly, the second network device receives the code block sequence from the first network device.
[0221] The code block sequence in S805 is the same as the code block sequence in S804.
[0222] For example, the first network device may be Figure 1 or Figure 7 In the PE device 105, the corresponding second network device can be... Figure 1 or Figure 7 PE device 106 in the middle. The first network device sends a code block sequence to the second network device in the first time slot of the first output port according to a preset relationship, such as Figure 13 As shown. The preset relationship indicates the mapping between the target service and the first outgoing port and the first timeslot. The first timeslot is at least one timeslot in the first cycle. For example, there is a mapping relationship between the identification information of each service and the outgoing port and timeslot. The first network device can perform uplink processing according to the preset relationship. The transmission process of the code block sequence between the first network device and the second network device can be found in the introduction to the channel forwarding method, and will not be repeated here.
[0223] by Figure 14 For example, when a time slot frame carries identification information, the first network device identifies the identification information in the time slot frame. If the first network device has stored a preset relationship, that is, the mapping relationship between the identification information and the output port has been established, then the first network device sends a code block sequence on the first output port and the first time slot corresponding to the target service according to the mapping relationship. Conversely, if the first network device has not stored a preset relationship, then the first network device identifies the service corresponding to the time slot frame based on the identification information, then establishes a mapping relationship between the identification information and the output port based on the 5-tuple, and then sends a code block sequence on the first output port and the first time slot corresponding to the target service according to the mapping relationship.
[0224] S806, the second network device encapsulates service data into time slot frames according to the type of code block sequence.
[0225] The time slot frame includes the complete message and / or message fragment of the target service. For an introduction to the time slot frame, please refer to the description in S802, which will not be repeated here.
[0226] For example, taking the target service as the first service, if the code block sequence includes at least a start S code block but does not include an end T code block, the time slot frame fragment encapsulated by the second network device is the first time slot frame fragment. The first time slot frame fragment includes the first fragment of the first message. If the code block sequence includes at least a T code block but does not include an S code block, the time slot frame fragment encapsulated by the second network device is the second time slot frame fragment. The second time slot frame fragment includes the last fragment of the first message. If the code block sequence is a data D code block sequence, the time slot frame fragment encapsulated by the second network device is the third time slot frame fragment. The third time slot frame fragment includes the middle fragments of the first message.
[0227] For example, taking the target service as the second service, if the code block sequence includes at least S code blocks and T code blocks, the time slot frame fragment encapsulated by the second network device is the fourth time slot frame fragment. The fourth time slot frame fragment includes the complete message of the second packet.
[0228] by Figure 15 For example, when the code block sequence carries identification information, the second network device identifies the identification information in the code block sequence. If the second network device has stored a preset relationship, that is, the mapping relationship between the identification information and the outgoing port has been established, then the second network device encapsulates the service data in the code block sequence into the corresponding service time slot frame fragment according to the outgoing port information. Conversely, if the second network device has not stored a preset relationship, then the second network device identifies the service corresponding to the code block sequence according to the identification information, then establishes the mapping relationship between the identification information and the outgoing port according to the five-tuple, and then encapsulates the service data in the code block sequence into the corresponding service time slot frame fragment according to the outgoing port information, so as to reduce the cost of packet reassembly.
[0229] S807. The second network device sends a time slot frame to the second client device. Correspondingly, the second client device receives the time slot frame from the second network device.
[0230] The time slot frame in S807 is the same as the time slot frame in S806.
[0231] S808, the second customer equipment reassembles the time slot frame to obtain the MAC layer message.
[0232] For example, see Figure 16After receiving the time slot frame, the second client equipment reassembles the message according to the format of the time slot frame to obtain the reassembled message. Then, the second client equipment sends the reassembled message to the MAC layer.
[0233] In the communication method of this application embodiment, the first client device sends time slot frames to the first network device based on the instruction information, so that the data transmission rhythm and data volume between the first client device and the first network device are coordinated, avoiding the buffer pressure caused by the first client device blindly sending messages, reducing the message retransmission cost and equipment cost, and improving communication efficiency and bandwidth utilization.
[0234] It should be noted that, in the embodiments of this application, the process of generating packet fragments or segmenting packets can be found in the introduction of the TSN frame preemption mechanism, and will not be repeated here.
[0235] The above mainly describes the solutions provided by the embodiments of this application from the perspective of interaction between various network elements. Correspondingly, the embodiments of this application also provide a communication device, which can be a network element in the above method embodiments, a device containing the above network element, or a component that can be used in a network element. It is understood that, in order to achieve the above functions, the communication device includes hardware structures and / or software modules corresponding to the execution of each function. Those skilled in the art should readily recognize that, in conjunction with the units and algorithm steps of the various examples described in the embodiments disclosed herein, this application can be implemented in hardware or a combination of hardware and computer software. Whether a function is executed by hardware or by computer software driving hardware depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of this application.
[0236] For example, Figure 17 A schematic diagram of a communication device 1700 is shown. The communication device 1700 includes a processing unit 1701, a transmitting unit 1702, and a receiving unit 1703.
[0237] In one possible example, taking the communication device 1700 as the first client device, the processing unit 1701 is used to support the first client device in performing... Figure 8a In step S802, and / or other processing operations that the first client equipment needs to perform in the embodiments of this application. The receiving unit 1703 is used to support the first client equipment in performing... Figure 8a In step S801, and / or other receiving operations that the first client equipment needs to perform in the embodiments of this application. The transmitting unit 1702 is used to support the first client equipment in performing... Figure 8a S803 in the example, and / or other transmission operations that the first client equipment needs to perform in the embodiments of this application.
[0238] In another possible example, taking the communication device 1700 as the first network device, the processing unit 1701 is used to support the first network device in performing... Figure 8a In step S804, and / or other processing operations that the first network device needs to perform in the embodiments of this application. The receiving unit 1703 is used to support the first network device in performing... Figure 8a In step S803, and / or other receiving operations that the first network device needs to perform in this embodiment of the application. The transmitting unit 1702 is used to support the first network device in performing... Figure 8a S805 in the example, and / or other transmission operations that the first network device in the embodiments of this application needs to perform.
[0239] In another possible example, taking the communication device 1700 as a second network device, the processing unit 1701 is used to support the second network device in performing... Figure 8a In step S806, and / or other processing operations that the second network device needs to perform in the embodiments of this application. The receiving unit 1703 is used to support the second network device in performing... Figure 8a In step S805, and / or other receiving operations that the second network device needs to perform in this embodiment of the application. The transmitting unit 1702 is used to support the second network device in performing... Figure 8a S807 in the example, and / or other transmission operations that the second network device in the embodiments of this application needs to perform.
[0240] In another possible example, taking the communication device 1700 as the second client device, the processing unit 1701 is used to support the second client device in performing... Figure 8a S808 in the above, and / or other processing operations that the second client equipment needs to perform in the embodiments of this application. The receiving unit 1703 is used to support the second client equipment in performing Figure 8a In step S807, and / or other receiving operations that the second client equipment needs to perform in the embodiments of this application. The transmitting unit 1702 is used to support the second client equipment in performing transmitting operations.
[0241] Optionally, the communication device 1700 may also include a storage unit 1704 for storing the program code and data of the communication device, and the data may include, but is not limited to, raw data or intermediate data.
[0242] The processing unit 1701 can be a processor or controller, such as a CPU, a general-purpose processor, an application-specific integrated circuit (ASIC), a field-programmable gate array (FPGA), or other programmable logic devices, transistor logic devices, hardware components, or any combination thereof. It can implement or execute the various exemplary logic blocks, modules, and circuits described in conjunction with the disclosure of this application. The processor can also be a combination that implements computational functions, such as a combination of one or more microprocessors, a combination of a DSP and a microprocessor, etc.
[0243] The transmitting unit 1702 may be a communication interface, a transmitter, or a transmitting circuit, etc. Here, the communication interface is a general term. In a specific implementation, the communication interface may include multiple interfaces, such as an interface between terminal devices (such as a first terminal device and a second terminal device) and / or other interfaces.
[0244] The receiving unit 1703 may be a communication interface, a receiver, or a receiving circuit, etc. The communication interface is a general term. In a specific implementation, the communication interface may include multiple interfaces, such as the interface between the terminal device and the network device (such as the first network device and the second network device) and / or other interfaces.
[0245] The transmitting unit 1702 and the receiving unit 1703 can be implemented as the same unit, either physically or logically.
[0246] Storage unit 1704 can be a memory.
[0247] When the processing unit 1701 is a processor, the sending unit 1702 and the receiving unit 1703 are communication interfaces, and the storage unit 1704 is a memory, the communication device involved in the embodiments of this application can be... Figure 18 As shown.
[0248] See Figure 18As shown, the communication device includes a processor 1801, a communication interface 1802, and a memory 1803. Optionally, the communication device may also include a bus 1804. The communication interface 1802, processor 1801, and memory 1803 can be interconnected via the bus 1804; the bus 1804 can be a peripheral component interconnect (PCI) bus or an extended industry standard architecture (EISA) bus, etc. The bus 1804 can be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, Figure 18 The bus is represented by a single thick line, but this does not mean that there is only one bus or one type of bus.
[0249] Optionally, embodiments of this application also provide a computer program product carrying computer instructions, which, when executed on a computer, causes the computer to perform the methods described in the above embodiments.
[0250] Optionally, embodiments of this application also provide a computer-readable storage medium that stores computer instructions that, when executed on a computer, cause the computer to perform the methods described in the above embodiments.
[0251] Optionally, embodiments of this application also provide a chip, including: a processing circuit and a transceiver circuit, which are used to implement the methods described in the above embodiments. The processing circuit is used to perform processing actions in the corresponding method, and the transceiver circuit is used to perform receiving / transmitting actions in the corresponding method.
[0252] In the above embodiments, implementation can be achieved entirely or partially through software, hardware, firmware, or any combination thereof. When implemented using software, it can be implemented entirely or partially in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, all or part of the processes or functions described in the embodiments of this application are generated. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions can be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another. For example, the computer instructions can be transmitted from one website, computer, server, or data center to another website, computer, server, or data center via wired (e.g., coaxial cable, fiber optic, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) means. The computer-readable storage medium can be any available medium that a computer can access or a data storage device such as a server or data center that integrates one or more available media. The available media may be magnetic media (e.g., floppy disks, hard disks, magnetic tapes), optical media (e.g., digital video discs (DVDs)), or semiconductor media (e.g., solid-state drives (SSDs)).
[0253] In the several embodiments provided in this application, it should be understood that the disclosed systems, apparatuses, and methods can be implemented in other ways. For example, the apparatus embodiments described above are merely illustrative; for instance, the division of modules is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple modules or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the coupling or direct coupling or communication connection shown or discussed may be through some interfaces, indirect coupling or communication connection between devices or modules, and may be electrical or other forms.
[0254] The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple devices. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs.
[0255] Through the above description of the embodiments, those skilled in the art can clearly understand that this application can be implemented by means of software plus necessary general-purpose hardware, and of course, it can also be implemented by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of this application, in essence, or the part that makes a contribution, can be embodied in the form of a software product. This computer software product is stored in a readable storage medium, such as a computer floppy disk, hard disk, or optical disk, and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute the methods described in the various embodiments of this application.
[0256] The above description is merely a specific embodiment of this application, but the scope of protection of this application is not limited thereto. Any variations or substitutions within the technical scope disclosed in this application should be included within the scope of protection of this application. Therefore, the scope of protection of this application should be determined by the scope of the claims.
Claims
1. A communication method characterized by comprising: include: The first client equipment obtains indication information, wherein the indication information indicates service bandwidth and a first period, the service bandwidth is the bandwidth pre-allocated for the target service, and the first period is the period during which the first network device transmits the target service; The first client equipment sends a time slot frame to the first network equipment according to the instruction information. The time slot frame includes the complete message and / or message fragment of the target service. The first data amount transmitted in the first period corresponds to the second data amount transmitted in the sending period. The sending period is the period in which the first client equipment sends the time slot frame. The length of the time slot frame is determined based on the third data amount carried by a preset number of time slots or the service bandwidth. The method further includes: the first client equipment sending fourth data to the first network device at periodic intervals, wherein the periodic interval is the interval between two adjacent transmission periods, and the service corresponding to the fourth data does not belong to the target service.
2. The method according to claim 1, characterized in that, The first customer equipment acquires indication information, including: The first client device receives the instruction information from the management device.
3. The method according to claim 1, characterized in that, The first customer equipment acquires indication information, including: The first client equipment receives the instruction information from the first network device.
4. The method according to claim 3, characterized in that, The indication information is carried in one of the following: Link layer discovery protocol LLDP messages, or control messages.
5. The method according to any one of claims 1 to 4, characterized in that, The length of the first period is greater than or equal to the length of the transmission period.
6. The method according to claim 5, characterized in that, The period interval is the difference between the length of the first period and the length of the transmission period.
7. The method according to any one of claims 1 to 4, characterized in that, The first time slot frame includes the last fragment of the first message; Wherein, the time slot frame includes the first time slot frame, the first message corresponds to the target service, the last message fragment length of the first message is greater than or equal to the preset frame length and less than or equal to the first preset value, and the first preset value is equal to the sum of the third data volume and the preset frame length.
8. The method according to claim 7, characterized in that, The second time slot frame includes the message fragments in the first message excluding the last message fragment; The time slot frame also includes the second time slot frame, and the length of the message fragments in the first message other than the last message fragment is equal to the third data amount.
9. The method according to claim 8, characterized in that, The length of the third time slot frame is the same as the length of the second time slot frame. The time slot frame also includes the third time slot frame, and the message fragments in the third time slot frame are the message fragments in the second message excluding the last message fragment; The second message is a message of the second service, and the first message is a message of the first service. Both the first service and the second service belong to the target service.
10. The method according to any one of claims 1 to 4, characterized in that, The fourth time slot frame includes the complete message of the first message; The time slot frame includes the fourth time slot frame, the first message corresponds to the target service, the complete message length of the first message is less than or equal to a first preset value, and the first preset value is equal to the sum of the third data volume and the preset frame length.
11. The method according to any one of claims 1 to 4, characterized in that, The first time slot frame includes the last fragment of the first message; Wherein, the time slot frame includes the first time slot frame, the first message corresponds to the first service in the target service, the last message fragment length of the first message is greater than or equal to a preset frame length and less than or equal to a second preset value, the second preset value is equal to the sum of the fifth data amount and the preset frame length, and the fifth data amount is the amount of data transmitted by the first service in the first period.
12. The method according to claim 11, characterized in that, The second time slot frame includes the message fragments in the first message excluding the last message fragment; The time slot frame also includes the second time slot frame, and the length of the message fragments in the first message other than the last message fragment is equal to the fifth data quantity.
13. The method according to any one of claims 1 to 4, characterized in that, The third time slot frame includes at least one complete message of the first message; The time slot frame includes the third time slot frame, the first message corresponds to the first service in the target service, the sum of the complete message lengths of the first message is greater than or equal to the preset frame length and less than or equal to the second preset value, the second preset value is equal to the sum of the fifth data amount and the preset frame length, and the fifth data amount is the amount of data transmitted by the first service in the first period.
14. The method according to any one of claims 1 to 4, characterized in that, The fourth time slot frame includes a fragment of the first message and the complete message of the second message; Wherein, the first message and the second message both correspond to the first service in the target service, the sum of the message fragment length and the complete message length in the fourth time slot frame is greater than or equal to the preset frame length and less than or equal to the second preset value, the second preset value is equal to the sum of the fifth data amount and the preset frame length, and the fifth data amount is the amount of data transmitted by the first service in the first period.
15. The method according to any one of claims 1 to 4, characterized in that, The number of target services is at least two, and the message fragments of the at least two services are carried in the same time slot frame. The message fragmentation is determined based on the third data volume.
16. The method according to claim 15, characterized in that, The time slot frame also includes a first field, wherein the first field indicates the length of service data in each message fragment.
17. The method according to any one of claims 1 to 4, characterized in that, The time slot frame also includes at least one identification information, wherein the identification information is used to identify the target service corresponding to the time slot frame.
18. The method according to any one of claims 1 to 4, characterized in that, The instruction information also includes at least one identification information, wherein the identification information is used to identify the target service indicated by the instruction information.
19. A communication method, characterized in that, include: The first network device sends an indication message to the first client device, wherein the indication message indicates the service bandwidth and the first period, the service bandwidth is the bandwidth pre-allocated for the target service, and the first period is the period during which the first network device transmits the target service; The first network device receives a time slot frame from the first client device, wherein the time slot frame includes a complete message and / or message fragments of the target service, the first data amount transmitted in the first period corresponds to the second data amount transmitted in the sending period, the sending period is the period in which the first client device sends the time slot frame, and the length of the time slot frame is determined based on the third data amount carried by a preset number of time slots or the service bandwidth. The method further includes: the first network device receiving fourth data from the first client device at a periodic interval, wherein the periodic interval is the interval between two adjacent transmission cycles, and the service corresponding to the fourth data does not belong to the target service.
20. The method according to claim 19, characterized in that, The method further includes: The first network device transmits a code block sequence on the first time slot of the first output port according to a preset relationship; The preset relationship indicates the mapping between the target service and the first output port and the first time slot, where the first time slot is at least one time slot in the first period, and the code block sequence is determined based on the time slot frame.
21. A communication device, characterized in that, include: Units for performing the various steps of the method according to any one of claims 1 to 20.
22. A communication device, characterized in that, include: A processor and a memory, the processor and the memory being coupled, the memory storing program instructions, wherein when the program instructions stored in the memory are executed by the processor, the method as described in any one of claims 1 to 20 is implemented.
23. A chip, characterized in that, The chip includes logic circuitry and an input / output interface, the input / output interface being used to communicate with modules outside the chip, and the logic circuitry being used to run computer programs or instructions to implement the method as described in any one of claims 1 to 20.
24. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a program, which, when invoked by a processor, executes the method according to any one of claims 1 to 20.
Citation Information
Patent Citations
Bandwidth adjustment method, service transmission method, network equipment and readable storage medium
CN112804078A