CN116015574A - Communication method and device - Google Patents

Communication method and device Download PDF

Info

Publication number
CN116015574A
CN116015574A CN202111234179.3A CN202111234179A CN116015574A CN 116015574 A CN116015574 A CN 116015574A CN 202111234179 A CN202111234179 A CN 202111234179A CN 116015574 A CN116015574 A CN 116015574A
Authority
CN
China
Prior art keywords
message
slot frame
slice
time slot
service
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202111234179.3A
Other languages
Chinese (zh)
Inventor
徐丽
钟其文
周勇波
孙寅龙
李日欣
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CN202111234179.3A priority Critical patent/CN116015574A/en
Publication of CN116015574A publication Critical patent/CN116015574A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The application provides a communication method and a communication device, relates to the technical field of communication, and can relieve the buffer pressure of network equipment and reduce message retransmission. The method comprises the following steps: the first client device obtains the indication information. The indication information indicates service bandwidth and a first period, wherein the service bandwidth is a bandwidth pre-allocated by the target service, and the first period is a period of the first network equipment for transmitting the target service. The first client device then transmits a slot frame slice to the first network device based on the indication information. The time slot frame slice comprises a complete message and/or a message fragment of a target service, the first data volume transmitted in a first period corresponds to the second data volume transmitted in a transmission period, the transmission period is a period of the first client equipment for transmitting the time slot frame slice, and the length of the time slot frame slice is determined based on the third data volume or the service bandwidth carried by a preset number of time slots.

Description

Communication method and device
Technical Field
The embodiments of the present application relate to the field of communications, and in particular, to a communication method and device.
Background
In standard ethernet (ethernet) networking, a client device and a network device communicate in a store-and-forward mode, and a network device communicate in a channel forwarding mode.
However, in the process that one client device (such as the client device 1) sends a message to another client device (such as the client device 2), the client device 1 may send too many messages to the network device, which exceeds the buffer capacity of the network device, so that the network device discards the message from the client device 1, increasing the packet loss rate and frequent retransmission of the message.
Disclosure of Invention
The application provides a communication method and device, which can relieve the buffer pressure of network equipment and reduce message retransmission.
In order to achieve the above purpose, the embodiment of the application adopts the following technical scheme:
in a first aspect, embodiments of the present application provide a communication method, where an execution subject of the method may be a first client device, or may be a chip applied in the first client device. The following describes an example in which the execution subject is a first client device. The method comprises the following steps: the first client device obtains the indication information. The indication information indicates service bandwidth and a first period, wherein the service bandwidth is a bandwidth pre-allocated by the target service, and the first period is a period of the first network equipment for transmitting the target service. The first client device then transmits a slot frame slice to the first network device based on the indication information. The time slot frame slice comprises a complete message and/or a message fragment of a target service, the first data volume transmitted in a first period corresponds to the second data volume transmitted in a transmission period, the transmission period is a period of the first client equipment for transmitting the time slot frame slice, and the length of the time slot frame slice is determined based on the third data volume or the service bandwidth carried by a preset number of time slots.
Therefore, the first client device sends the time slot frame slice to the first network device based on the indication information, so that the data transmission rhythm and the data volume between the first client device and the first network device are coordinated, the buffer pressure caused by the fact that the first client device blindly sends the message is avoided, the message retransmission cost and the device cost are reduced, and the communication efficiency and the bandwidth utilization rate are improved.
In one possible design, the first client device obtains indication information, including: the first client device receives the indication information from the management device. That is, the first client device is provided with indication information by the management device in order for the management device to manage the traffic bandwidth and the first period.
In one possible design, the first client device obtains indication information, including: the first client device receives indication information from the first network device. That is, the indication information is provided by the first network device to the first client device to facilitate management of the traffic bandwidth and the first period by the first network device.
In one possible design, the indication information is carried by one of the following: link layer discovery protocol LLDP messages, or control messages.
In one possible design, the length of the first period is greater than or equal to the length of the transmit period.
In one possible design, the period interval takes the value of 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 sending periods, so that the first client device can forcedly generate the period interval, and the transmission rhythm of the first client device sending the time slot frame slice is slowed down.
In one possible design, the communication method of the embodiment of the application further includes: at periodic intervals, the first client device transmits fourth data to the first network device. Wherein the service corresponding to the fourth data does not belong to the target service.
That is, the first client device uniformly divides the period according to the local target traffic and the non-target traffic to improve the communication efficiency between the first client device and the first network device.
In one possible design, the first amount of data is equal to the second amount of data. That is, the amount of data transmitted by the first client device during a transmit period is the same as the amount of data transmitted by the first network device during a first period.
In one possible design, the length of the first period is less than the length of the transmit period.
In one possible design, the period interval takes on a value of zero. Wherein the period interval is an interval between two adjacent transmission periods. That is, the first client device continues to send slots frames to the first network device.
In one possible design, the first amount of data is greater than the second amount of data. That is, the amount of data transmitted by the first network device during a first period is greater than the amount of data transmitted by the first client device during a transmit period.
In one possible design, the first slot frame slice includes a last message slice of the first message. The time slot frame slice comprises a first time slot frame slice, the first message corresponds to the target service, the fragment length of the tail message of the first message is larger than or equal to the preset frame length and smaller than or equal to a first preset value, and the first preset value is equal to the sum of the third data quantity and the preset frame length.
In one possible design, the second slot frame slice includes message slices in the first message except for the last message slice. The time slot frame slice also comprises a second time slot frame slice, and the message slice length of the first message except the tail message slice is equal to the third data volume. That is, the first client device segments the first packet according to the data amount carried in the preset time slot, that is, the third data amount.
In one possible design, the third slot frame slice has the same length as the second slot frame slice. The time slot frame slice also comprises a third time slot frame slice, and the message slices in the third time slot frame slice are message slices except for the tail message slices in the second message. The second message is a message of a second service, the first message is a message of a first service, and the first service and the second service both belong to a target service. That is, the slot frame slices of different services are identical in length except for the slot frame slices carrying the tail message slices.
In one possible design, the fourth slot frame slice includes a complete message of the first message. The time slot frame slice comprises a fourth time slot frame slice, the first message corresponds to the target service, the length of the complete message of the first message is smaller than or equal to a first preset value, and the first preset value is equal to the sum of the third data quantity and the preset frame length. That is, the slot frame slice may also carry the first packet that is not split.
In one possible design, the first slot frame slice includes a last message slice of the first message. The time slot frame slice comprises a first time slot frame slice, the first message corresponds to a first service in the target service, the fragment length of the tail message of the first message is larger than or equal to a preset frame length and smaller than or equal to a second preset value, the second preset value is equal to the sum of a fifth data volume and the preset frame length, and the fifth data volume is the data volume transmitted by the first service in a first period.
In one possible design, the second slot frame slice includes message slices in the first message except for the last message slice. The time slot frame slice also comprises a second time slot frame slice, and the message slice length of the first message except the tail message slice is equal to the fifth data quantity. That is, the first client device segments the first packet according to the service bandwidth of the first service, i.e., the fifth data amount.
In one possible design, the third slot frame slice includes at least one complete message of the first message. The time slot frame slice comprises a third time slot frame slice, the first message corresponds to a first service in the target service, the sum of the complete message lengths of the first message is larger than or equal to a preset frame length and smaller than or equal to a second preset value, the second preset value is equal to the sum of a fifth data volume and the preset frame length, and the fifth data volume is the data volume transmitted by the first service in a first period. That is, the slot frame slice may also carry at least one complete message.
In one possible design, the fourth slot frame slice includes a message slice of the first message and a complete message of the second message. The first message and the second message both correspond to a first service in the target service, the sum of the message fragments and the complete message length in the fourth time slot frame fragment 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 a fifth data volume and the preset frame length, and the fifth data volume is the data volume transmitted by the first service in the first period.
In one possible design, the number of the target services is at least two, and the message fragments of at least two services are carried in the same time slot frame fragment. The message slicing is determined based on the third data amount. That is, the time slot frame slice can bear the message slices of at least two services, so as to improve the data transmission efficiency of the time slot frame slice.
In one possible design, the slot frame slice further includes a first field. The first field indicates the length of service data in each message segment, so that the first network device can determine the data quantity of the corresponding message segment conveniently.
In one possible design, the time slot frame slice further includes at least one identification information, where the identification information is used to identify a target service corresponding to the time slot frame slice where the identification information is located, so as to distinguish different services.
In one possible design, the indication information further includes at least one identification information, where 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.
In a second aspect, an embodiment of the present application provides a communication method, where an execution body of the method may be a first network device, or may be a chip applied to the first network device. The following describes an example in which the execution subject is the first network device. The method comprises the following steps: the first network device sends indication information to the first client device. The indication information indicates service bandwidth and a first period, wherein the service bandwidth is a bandwidth pre-allocated by the target service, and the first period is a period of the first network equipment for transmitting the target service. The first network device then receives a slot frame slice from the first client device. The time slot frame slice comprises a complete message and/or a message fragment of a target service, the first data volume transmitted in a first period corresponds to the second data volume transmitted in a transmission period, the transmission period is a period of the first client equipment for transmitting the time slot frame slice, and the length of the time slot frame slice is determined based on the third data volume or the service bandwidth carried by a preset number of time slots.
In one possible design, the indication information is carried by one of the following: link layer discovery protocol LLDP messages, or control messages.
In one possible design, the communication method of the embodiment of the application further includes: and the first network equipment sends the code block sequence on the first time slot of the first output port according to the preset relation. Wherein the preset relationship indicates a mapping between the target traffic and the first output port and the first time slot, the first time slot being at least one time slot in the first period, and the code block sequence being determined based on the time slot frame slice. That is, the first network device converts the slot frame slices into a sequence of code blocks in the form of a sequence of code blocks for transmission to the second network device.
In one possible design, the communication method of the embodiment of the application further includes: the first network device receives fourth data from the first client device during the periodic interval. The period interval is an interval between two adjacent receiving periods, and the service corresponding to the fourth data does not belong to the target service.
In one possible design, the slot frame slice further includes at least one identification information. The identification information is used for identifying the target service corresponding to the time slot frame slice where the identification information is located.
In one possible design, the indication information further includes at least one identification information. The identification information is used for identifying the target service indicated by the indication information.
In a third aspect, an embodiment of the present application provides a communication method, where an execution body of the method may be a second network device, or may be a chip applied to the second network device. The following describes an example in which the execution subject is the second network device. The method comprises the following steps: the second network device receives the sequence of code blocks from the first network device. Wherein the code block sequence includes service data of the target service. And then, the second network equipment encapsulates the service data into time slot frame slices according to the type of the code block sequence. The time slot frame slice comprises a complete message and/or a message slice of the target service. The second network device then transmits the slot frame slice to the second client device.
That is, the second network device converts the sequence of code blocks into slot frame slices, which are transmitted to the second client device in the form of slot frame slices. The second network device does not need to execute the processing of message reorganization, thereby relieving the message reorganization pressure of the second network device.
In one possible design, the first slot frame slice includes a first message slice of the first message. Wherein the slot frame slice comprises a first slot frame slice, the code block sequence comprises at least a start S code block and does not comprise an end T code block. The first message belongs to the target service.
In one possible design, the second slot frame slice includes a last message slice of the first message. Wherein the slot frame slice comprises a second slot frame slice, and the code block sequence at least comprises T code blocks and does not comprise S code blocks. The first message belongs to the target service.
In one possible design, the third slot frame slice includes a middle message slice of the first message. The time slot frame slice comprises a third time slot frame slice, and the code block sequence is a data D code block sequence. The first message belongs to the target service.
That is, in the case where the first message is fragmented, the second network device may determine the frame format of the slot frame slice based on different code block sequences.
In one possible design, the fourth slot frame slice includes a complete message of the second message. The time slot frame slice comprises a fourth time slot frame slice, the code block sequence at least comprises an S code block and a T code block, and the second message belongs to the target service.
That is, the second network device may determine the frame format of the slot frame slice based on the type of the sequence of code blocks without splitting the first message.
In one possible design, the slot frame slice further includes at least one identification information. The identification information is used for identifying the target service corresponding to the time slot frame slice where the identification information is located.
In a fourth aspect, embodiments of the present application provide a communication method, where an execution body of the method may be the second client device, or may be a chip applied in the second client device. The following describes an example in which the execution subject is the second client device. The method comprises the following steps: the second client device receives a slot frame slice from the second network device. The time slot frame slice comprises a complete message and/or a message slice of the target service. And then, the second client equipment reorganizes the time slot frame slices to obtain a Media Access Control (MAC) layer message. That is, the second client device reassembles the received slot frame slice into a MAC layer packet, and sends the MAC layer packet to the MAC layer.
In a fifth aspect, embodiments of the present application provide a communication apparatus, which may be the first client device in the first aspect or any one of the possible designs of the first aspect, or a chip implementing the functions of the first client device; the communication device comprises corresponding modules, units or means (means) for realizing the method, and the modules, units or means can be realized by hardware, software or realized by executing corresponding software by hardware. The hardware or software includes one or more modules or units corresponding to the functions described above.
The communication device includes a receiving unit, a processing unit, and a transmitting unit. The receiving unit is used for acquiring the indication information. The indication information indicates service bandwidth and a first period, wherein the service bandwidth is a bandwidth pre-allocated by the target service, and the first period is a period of the first network equipment for transmitting the target service. And the processing unit is used for sending the time slot frame slice to the first network equipment according to the indication information. The time slot frame slice comprises a complete message and/or a message fragment of a target service, the first data volume transmitted in a first period corresponds to the second data volume transmitted in a transmission period, the transmission period is a period of the communication device for transmitting the time slot frame slice, and the length of the time slot frame slice is determined based on the third data volume or the service bandwidth carried by a preset number of time slots.
In one possible design, the receiving unit is configured to obtain the indication information, including: the receiving unit is used for receiving the indication information from the management device.
In one possible design, the receiving unit is configured to obtain the indication information, including: the receiving unit is used for receiving the indication information from the first network equipment.
In one possible design, the indication information is carried by one of the following: link layer discovery protocol LLDP messages, or control messages.
In one possible design, the length of the first period is greater than or equal to the length of the transmit period.
In one possible design, the period interval takes the value of the difference between the length of the first period and the length of the transmission period. Wherein the period interval is an interval between two adjacent transmission periods.
In one possible design, the transmitting unit is further configured to transmit the fourth data to the first network device at periodic intervals. Wherein the service corresponding to the fourth data does not belong to the target service.
In one possible design, the first amount of data is equal to the second amount of data.
In one possible design, the length of the first period is less than the length of the transmit period.
In one possible design, the period interval takes on a value of zero. Wherein the period interval is an interval between two adjacent transmission periods.
In one possible design, the first amount of data is greater than the second amount of data.
In one possible design, the first slot frame slice includes a last message slice of the first message. The time slot frame slice comprises a first time slot frame slice, the first message corresponds to the target service, the fragment length of the tail message of the first message is larger than or equal to the preset frame length and smaller than or equal to a first preset value, and the first preset value is equal to the sum of the third data quantity and the preset frame length.
In one possible design, the second slot frame slice includes message slices in the first message except for the last message slice. The time slot frame slice also comprises a second time slot frame slice, and the message slice length of the first message except the tail message slice is equal to the third data volume.
In one possible design, the third slot frame slice has the same length as the second slot frame slice. The time slot frame slice also comprises a third time slot frame slice, and the message slices in the third time slot frame slice are message slices except for the tail message slices in the second message. The second message is a message of a second service, the first message is a message of a first service, and the first service and the second service both belong to a target service.
In one possible design, the fourth slot frame slice includes a complete message of the first message. The time slot frame slice comprises a fourth time slot frame slice, the first message corresponds to the target service, the length of the complete message of the first message is smaller than or equal to a first preset value, and the first preset value is equal to the sum of the third data quantity and the preset frame length.
In one possible design, the first slot frame slice includes a last message slice of the first message. The time slot frame slice comprises a first time slot frame slice, the first message corresponds to a first service in the target service, the fragment length of the tail message of the first message is larger than or equal to a preset frame length and smaller than or equal to a second preset value, the second preset value is equal to the sum of a fifth data volume and the preset frame length, and the fifth data volume is the data volume transmitted by the first service in a first period.
In one possible design, the second slot frame slice includes message slices in the first message except for the last message slice. The time slot frame slice also comprises a second time slot frame slice, and the message slice length of the first message except the tail message slice is equal to the fifth data quantity.
In one possible design, the third slot frame slice includes at least one complete message of the first message. The time slot frame slice comprises a third time slot frame slice, the first message corresponds to a first service in the target service, the sum of the complete message lengths of the first message is larger than or equal to a preset frame length and smaller than or equal to a second preset value, the second preset value is equal to the sum of a fifth data volume and the preset frame length, and the fifth data volume is the data volume transmitted by the first service in a first period.
In one possible design, the fourth slot frame slice includes a message slice of the first message and a complete message of the second message. The first message and the second message both correspond to a first service in the target service, the sum of the message fragments and the complete message length in the fourth time slot frame fragment 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 a fifth data volume and the preset frame length, and the fifth data volume is the data volume transmitted by the first service in the first period.
In one possible design, the number of the target services is at least two, and the message fragments of at least two services are carried in the same time slot frame fragment. The message slicing is determined based on the third data amount.
In one possible design, the slot frame slice further includes a first field. Wherein the first field indicates the length of the service data in each packet fragment.
In one possible design, the time slot frame slice further includes at least one identification information, where the identification information is used to identify a target service corresponding to the time slot frame slice where the identification information is located.
In one possible design, the indication information further includes at least one identification information, where the identification information is used to identify the target service indicated by the indication information.
In a sixth aspect, an embodiment of the present application provides a communication apparatus, where the communication apparatus may be the first network device in the second aspect or any one of the possible designs of the second aspect, or a chip that implements a function of the first network device; the communication device comprises corresponding modules, units or means (means) for realizing the method, and the modules, units or means can be realized by hardware, software or realized by executing corresponding software by hardware. The hardware or software includes one or more modules or units corresponding to the functions described above.
The communication device includes a receiving unit, a processing unit, and a transmitting unit. Wherein the sending unit is configured to send the indication information to the first client device. The indication information indicates service bandwidth and a first period, wherein the service bandwidth is a bandwidth pre-allocated by the target service, and the first period is a period of the communication device for transmitting the target service. The receiving unit is then operable to receive a slot frame slice from the first client device. The time slot frame slice comprises a complete message and/or a message fragment of a target service, the first data volume transmitted in a first period corresponds to the second data volume transmitted in a transmission period, the transmission period is a period of the first client equipment for transmitting the time slot frame slice, and the length of the time slot frame slice is determined based on the third data volume or the service bandwidth carried by a preset number of time slots.
In one possible design, the indication information is carried by one of the following: link layer discovery protocol LLDP messages, or control messages.
In one possible design, the processing unit is configured to control the transmitting unit to transmit the sequence of code blocks on the first slot of the first output port according to a preset relationship. Wherein the preset relationship indicates a mapping between the target traffic and the first output port and the first time slot, the first time slot being at least one time slot in the first period, and the code block sequence being determined based on the time slot frame slice.
In one possible design, the receiving unit is configured to receive the fourth data from the first client device at periodic intervals. The period interval is the interval between two adjacent receiving periods, and the service corresponding to the fourth data does not belong to the target service.
In one possible design, the slot frame slice further includes at least one identification information. The identification information is used for identifying the target service corresponding to the time slot frame slice where the identification information is located.
In one possible design, the indication information further includes at least one identification information. The identification information is used for identifying the target service indicated by the indication information.
In a seventh aspect, an embodiment of the present application provides a communication apparatus, where the communication apparatus may be the second network device in any one of the foregoing third aspect or any one of the foregoing possible designs of the third aspect, or a chip that implements a function of the foregoing second network device; the communication device comprises corresponding modules, units or means (means) for realizing the method, and the modules, units or means can be realized by hardware, software or realized by executing corresponding software by hardware. The hardware or software includes one or more modules or units corresponding to the functions described above.
The communication device includes a receiving unit, a processing unit, and a transmitting unit. Wherein the receiving unit is configured to receive a sequence of code blocks from the first network device. Wherein the code block sequence includes service data of the target service. The processing unit is used for packaging the service data into time slot frame slices according to the type of the code block sequence. The time slot frame slice comprises a complete message and/or a message slice of the target service. The transmitting unit is used for transmitting the time slot frame slice to the second client device.
In one possible design, the first slot frame slice includes a first message slice of the first message. The slot frame slice includes a first slot frame slice, and the code block sequence includes at least a start S code block and no end T code block. The first message belongs to the target service.
In one possible design, the second slot frame slice includes a last message slice of the first message. Wherein the slot frame slice comprises a second slot frame slice, and the code block sequence at least comprises T code blocks and does not comprise S code blocks. The first message belongs to the target service.
In one possible design, the third slot frame slice includes a middle message slice of the first message. The time slot frame slice comprises a third time slot frame slice, and the code block sequence is a data D code block sequence. The first message belongs to the target service.
In one possible design, the fourth slot frame slice includes a complete message of the second message. The time slot frame slice comprises a fourth time slot frame slice, the code block sequence at least comprises an S code block and a T code block, and the second message belongs to the target service.
In one possible design, the slot frame slice further includes at least one identification information. The identification information is used for identifying the target service corresponding to the time slot frame slice where the identification information is located.
In an eighth aspect, an embodiment of the present application provides a communication apparatus, where the communication apparatus may be the second network device in any one of the possible designs of the fourth aspect or the fourth aspect, or a chip implementing a function of the second network device; the communication device comprises corresponding modules, units or means (means) for realizing the method, and the modules, units or means can be realized by hardware, software or realized by executing corresponding software by hardware. The hardware or software includes one or more modules or units corresponding to the functions described above.
The communication device includes a receiving unit, a processing unit, and a transmitting unit. Wherein the receiving unit is configured to receive a slot frame slice from the second network device. The time slot frame slice comprises a complete message and/or a message slice of the target service. The processing unit is used for reorganizing the time slot frame slices to obtain the Media Access Control (MAC) layer message.
In a ninth aspect, embodiments of the present application provide a communication apparatus, including: a processor and a memory; the memory is for storing computer instructions that, when executed by the processor, cause the communications apparatus to perform the method performed by the client device in any one of the above aspects or any one of the possible designs of any one of the aspects. The communication means may be a first client device in the above-described first aspect or any of the possible designs of the first aspect, or may be a second client device in the above-described fourth aspect or any of the possible designs of the fourth aspect, or a chip implementing the functionality of the above-described client device.
In a tenth aspect, embodiments of the present application provide a communication apparatus, including: a processor; the processor is coupled to the memory for reading the instructions in the memory and executing the instructions to cause the communication device to perform the method performed by the client device as in any one of the above aspects or any one of the possible designs. The communication means may be a first client device in the above-described first aspect or any of the possible designs of the first aspect, or may be a second client device in the above-described fourth aspect or any of the possible designs of the fourth aspect, or a chip implementing the functionality of the above-described client device.
In an eleventh aspect, embodiments of the present application provide a chip including a processing circuit and an input-output interface. Wherein the input-output interface is for communication with a module outside the chip, which may be, for example, a chip implementing the functionality of the client device in the first aspect or any of the possible designs of the first aspect. The processing circuitry is arranged to run a computer program or instructions to implement the method of the first aspect above or any of the possible designs of the first aspect. As another example, the chip may be a chip implementing the functionality of the client device in any of the above-described fourth or fourth possible designs. The processing circuitry is arranged to run a computer program or instructions to implement the method in any of the above fourth or any of the possible designs of the fourth aspect.
In a twelfth aspect, embodiments of the present application provide a communication apparatus, including: a processor and a memory; the memory is for storing computer instructions that, when executed by the processor, cause the communications apparatus to perform the method performed by the network device in any one of the above aspects or any one of the possible designs of any one of the aspects. The communication means may be the first network device in the second aspect or any of the possible designs of the second aspect, or may be the second network device in the third aspect or any of the possible designs of the third aspect, or a chip implementing the functions of the network device.
In a thirteenth aspect, embodiments of the present application provide a communication device, including: a processor; the processor is coupled to the memory for reading the instructions in the memory and executing the instructions to cause the communication device to perform the method performed by the network apparatus as in any one of the above aspects or any one of the possible designs of the aspect. The communication means may be the first network device in the second aspect or any of the possible designs of the second aspect, or may be the second network device in the third aspect or any of the possible designs of the third aspect, or a chip implementing the functions of the network device.
In a fourteenth aspect, embodiments of the present application provide a chip including a processing circuit and an input-output interface. Wherein the input-output interface is for communication with a module outside the chip, which may be, for example, a chip implementing the network device functions in the second aspect or any of the possible designs of the second aspect. The processing circuitry is configured to run a computer program or instructions to implement the method of the second aspect above or any of the possible designs of the second aspect. As another example, the chip may be a chip implementing the network device function in any of the above third aspect or any of the possible designs of the third aspect. The processing circuitry is arranged to run a computer program or instructions to implement the method of any one of the above third aspects or any one of the possible designs of the third aspect.
In a fifteenth aspect, embodiments of the present application provide a computer-readable storage medium having instructions stored therein that, when run on a computer, cause the computer to perform the method of any one of the above aspects.
In a sixteenth aspect, embodiments of the present application provide a computer program product comprising instructions which, when run on a computer, cause the computer to perform the method of any one of the above aspects.
In a seventeenth aspect, embodiments of the present application provide circuitry comprising processing circuitry configured to perform the method of any one of the above aspects.
In an eighteenth aspect, embodiments of the present application provide a communication system including the first client device, the first network device, the second network device, and the second client device of any one of the above aspects.
The technical effects of any one of the designs of the fifth to eighteenth aspects may refer to the advantages of the corresponding methods provided above, and are not repeated herein.
Drawings
FIG. 1 is a diagram of a network architecture for use with embodiments of the present application;
Fig. 2 is a schematic diagram of a scenario of a frame preemption mechanism provided in an embodiment of the present application;
FIG. 3 is a schematic diagram of a scenario of still another frame preemption mechanism provided by embodiments of the present application;
fig. 4a is a schematic diagram of a message structure according to an embodiment of the present application;
FIG. 4b is a schematic diagram of another message structure according to an embodiment of the present application;
fig. 5 is a working schematic diagram of a frame preemption mechanism provided in an embodiment of the present application;
fig. 6a is a schematic diagram of a communication scenario provided in an embodiment of the present application;
FIG. 6b is a schematic diagram of still another communication scenario provided by an embodiment of the present application;
FIG. 7 is a schematic diagram of yet another communication scenario provided by an embodiment of the present application;
fig. 8a is a flow chart of a communication method according to an embodiment of the present application;
FIG. 8b is a flow chart of yet another communication method according to an embodiment of the present application;
FIG. 9a is a schematic diagram of another message structure according to an embodiment of the present application;
FIG. 9b is a schematic diagram of another message structure according to an embodiment of the present application;
fig. 10a is a schematic diagram of a packet segmentation scenario provided in an embodiment of the present application;
fig. 10b is a schematic diagram of still another packet segmentation scenario provided in an embodiment of the present application;
FIG. 10c is a flow chart of yet another communication method according to an embodiment of the present application;
FIG. 11a is a flow chart of yet another communication method according to an embodiment of the present application;
fig. 11b is a schematic structural diagram of a slot frame slice according to an embodiment of the present application;
fig. 12 is a schematic structural diagram of still another slot frame slice according to an embodiment of the present application;
fig. 13 is a schematic diagram of a communication scenario provided in an embodiment of the present application;
FIG. 14 is a flow chart of yet another communication method according to an embodiment of the present application;
FIG. 15 is a flow chart of yet another communication method according to an embodiment of the present application;
FIG. 16 is a flow chart of yet another communication method according to an embodiment of the present application;
fig. 17 is a schematic structural diagram of a communication device according to an embodiment of the present application;
fig. 18 is a schematic structural diagram of still another communication device according to an embodiment of the present application.
Detailed Description
The terms "first" and "second" and the like in the description and in the drawings are used for distinguishing between different objects or for distinguishing between different processes of the same object and not for describing a particular sequential order of objects. Furthermore, references to the terms "comprising" and "having" and any variations thereof in the description of the present application are intended to cover a non-exclusive inclusion. For example, a process, method, system, article, or apparatus that comprises a list of steps or elements is not limited to only those listed but may optionally include other steps or elements not listed or inherent to such process, method, article, or apparatus. It should be noted that, in the embodiments of the present application, words such as "exemplary" or "such as" are used to mean serving as an example, instance, or illustration. Any embodiment or design described herein as "exemplary" or "for example" should not be construed as preferred or advantageous over other embodiments or designs. Rather, the use of words such as "exemplary" or "such as" is intended to present related concepts in a concrete fashion.
A network architecture to which embodiments of the present application may be applied is shown in fig. 1, where the network architecture includes a client device and a network device. The number of client devices may be one or more, and four client devices, such as client device 101, 102, 103, and 104, are shown in fig. 1. Network devices include Provider Edge (PE) devices and provider (P) devices. The number of the PE devices can be two or more. The P device may be one or more. Two PE devices (PE device 105 and PE device 106) and one P device are shown in fig. 1, the P devices being communicatively connected to PE device 105 and PE device 106, respectively. Client device 101 and client device 102 are each communicatively coupled to PE device 105, and client device 103 and client device 104 are each communicatively coupled to PE device 106.
The client device may be a router or a switch, or may be a host. The PE device may be a service provider edge router, an edge device of a service provider network, directly connected to the client device. The P device may be a backbone router in the service provider network that is not directly connected to the client device.
It should be understood that in different network architectures, the network devices and client devices may correspond to different names, and those skilled in the art will appreciate that the names do not limit the devices themselves.
In order to facilitate understanding of the embodiments of the present application, the following description will be given for the terms involved in the embodiments of the present application. It should be understood that these descriptions are merely for the purpose of facilitating understanding of the embodiments of the present application and should not be construed as limiting the application in any way.
1. Time slot frame slice (time-based frame segment, TFS)
The time slot frame slice is a complete message or a message segment with the indication length related to the number of time slots or the bandwidth. For example, the amount of data in one slot frame slice is related to the amount of data that can be transmitted in a single slot, e.g., when the amount of data transmitted in a single slot is 100 bytes (B), the amount of data in one slot frame slice may be 100B, and correspondingly, the length of one slot frame slice may be 104B. For another example, the data amount in one slot frame slice is related to the bandwidth, for example, when the bandwidth of the service a is 100Mbps, the slot frame slice carries the service data of the service a, and the data amount in a single slot frame slice may be 100B, and correspondingly, the length of the single slot frame slice may be 104B.
In the case where the message is fragmented, one slot frame slice includes one message fragment. In this case, the message fragments in the slot frame slice may be the tail message fragments that are split, and may be other message fragments except for the tail message fragments. In the case where the message is not fragmented, a slot frame slice may comprise a complete message. In addition, a slot frame slice may include a complete message and a message slice, which is described in S802 and will not be described herein.
2. Time delay sensitive network (time sensitive networking, TSN) frame preemption (frame preemption) mechanism
As shown in fig. 2, the medium access control (media access control, MAC) layer includes fast medium access control (express media access control, eMAC), preemptible medium access control (preemptable media access control, pMAC), and MAC merge sublayer (merge). The message of the high priority service is sent through eMAC, and the message of the low priority service is sent through pMAC. When the message of the high priority service arrives, the message of the high priority service can preempt the sending opportunity of the low priority service, so that the message of the high priority service can be sent quickly, and the time delay is reduced.
As shown in fig. 3, taking the transmission of a message among three network devices as an example, on the network device a, the network device a is sending a low-priority message to the network device B, and at this time, a high-priority message is to be sent, which meets the frame preemption condition, and frame preemption occurs. Therefore, the network device a stops sending the remaining part of the low-priority message, caches the remaining part of the low-priority message in the pMAC, and sends the high-priority message to the network device B until the sending of the high-priority message is finished, and then the network device a sends the remaining part of the low-priority message to the network device B. The format of the partial low-priority message sent by the network device a first is shown in fig. 4a, and the format of the partial low-priority message sent by the network device a later is shown in fig. 4 b.
After the network equipment B receives part of the low-priority message from the network equipment A, the network equipment B determines that a message fragment is received according to the message format, and caches the part of the low-priority message received first to the pMAC until the network equipment B receives the rest part of the low-priority message, and then reorganizes the received low-priority message. Then, the network device B sends the reassembled message to the network device C.
In summary, from the perspective of the transmission link, low priority messages are interrupted by high priority messages and sent discontinuously.
The message format shown in fig. 4a includes a preamble (preamble) field, a reassembled frame start-packet detector (SMD) field, a payload field, and a cyclic redundancy check (cyclic redundancy check, CRC) field. Illustratively, the preamble field is 7octets (7 octets) in length, the SMD field is l octets (1 octet) in length, the payload field is greater than or equal to 60octets (60 octets) in length, and the CRC field is 4octets (4 octets) in length.
The message format shown in fig. 4b includes a preamble field, an SMD field, a continue transmission (frag_count) field, a payload field, and a CRC field. Illustratively, the preamble field is 6octets (6 octets) in length, the SMD field is l octets (1 octets), the continue transmission field is l octets (1 octets), the payload field is greater than or equal to 60octets (60 octets), and the CRC field is 4octets (4 octets) in length.
It should be noted that, TSN frame preemption may be triggered by high priority traffic, or by MAC merging sub-layers. Illustratively, as shown in fig. 5, in the case where the MAC client support preemption (MAC client supporting preemption) sub-layer determines that the preemption condition is satisfied according to the traffic priority, the MAC merge sub-layer is instructed to perform frame preemption by means of an mm_ctl request (mm_ctl request) message.
3. Store-and-forward, channel-forwarding
Store-and-forward refers to that after each receiving side device in the network receives and stores the message completely, it performs a table look-up process to find the output port of the message, and forwards the message through the output port, as shown in fig. 6 a. Therefore, the store-and-forward mode requires large buffering of the receiving side equipment, and meanwhile, the processing of buffering the message also causes large message forwarding delay.
Channel forwarding refers to forwarding according to the mapping relationship between the outgoing port and the incoming port of the service, without recovering the complete message, as shown in fig. 6 b. Therefore, the channel forwarding omits the processes of message buffering and the like in the store forwarding, so that the channel forwarding has the advantages of low time delay, simplicity, high efficiency and the like.
As shown in fig. 7, in the standard ethernet networking, the client device 101 sends a packet to the client device 103 through the PE device 105, the P device 107, the P device 108, and the PE device 106, and the client device 102 sends a packet to the client device 104 through the PE device 105, the P device 107, the P device 108, and the PE device 106. The too many messages may be sent to the PE device 105 by the client device 101, which exceeds the buffer capacity of the PE device 105, resulting in that the PE device 105 discards the messages from the client device 101, which increases the packet loss rate and frequent retransmission of the messages.
In view of this, the embodiment of the present application provides a communication method, which is applied to the communication system of fig. 1 or fig. 7. In the communication method of the embodiment of the application, the first client device obtains the indication information. The indication information indicates service bandwidth and a first period, wherein the service bandwidth is a bandwidth pre-allocated by the target service, and the first period is a period of the first network equipment for transmitting the target service. The first client device then transmits a slot frame slice to the first network device based on the indication information. The time slot frame slice comprises a complete message and/or a message fragment of a target service, the first data volume transmitted in a first period corresponds to the second data volume transmitted in a transmission period, the transmission period is a period of the first client equipment for transmitting the time slot frame slice, and the length of the time slot frame slice is determined based on the third data volume or the service bandwidth carried by a preset number of time slots. The first network device may be a PE device, for example. In this way, the data transmission rhythm and the data volume between the first client device and the first network device cooperate, so that the buffer pressure caused by blind message sending of the first client device is avoided, message retransmission is reduced, and communication efficiency is improved.
Next, a detailed description of the communication method 800 according to the embodiment of the present application will be described with reference to fig. 8 a.
S801, the first client device acquires instruction information.
The first client device may be the client device 101 in fig. 1 or fig. 7, or may be the client device 102. Alternatively, the first client device may be the client device 103 in fig. 1 or fig. 7, or may be the client device 104. In the present embodiment, the description will be given taking the example that the first client device is the client device 101 as an example.
Wherein the indication information indicates a traffic bandwidth (bandwidth) and a first period (cycle). In the embodiment of the present application, the first period may be denoted as cycle. The service bandwidth and the first period are described as follows:
wherein, the service bandwidth is the bandwidth pre-allocated by the target service. For example, the number of the target services is 1, and the service bandwidth of the target service is 100Mbps. In this case, the number of service bandwidths is one, and the indication information indicates that the service bandwidth is 100Mbps. For another example, the target service includes a first service and a second service. The first bandwidth is a bandwidth pre-allocated by the first service, for example, the first bandwidth is 100Mbps. The second bandwidth is a bandwidth pre-allocated by the second service, for example, the second bandwidth is 150Mbps. In this case, the number of service bandwidths is two, and the indication information indicates that the service bandwidths are 100Mbps and 150Mbps, so as to avoid a high priority service exclusive link, improve fairness of service sending opportunities, and improve bandwidth utilization. In the embodiment of the present application, the priorities of the first service and the second service may be the same or different, which is not limited in the embodiment of the present application.
The first period is a period of the first network device transmitting the target service. Illustratively, still taking fig. 1 or fig. 7 as an example, in the case where the client device 101 transmits the target traffic to the client device 103, the first period is a period in which the PE device 105 transmits the target traffic to the P device 107. The unit of the first period may be a time slot, for example, the first period may be one time slot or may be a plurality of time slots. The unit of the first period may also be microseconds (us), such as 50.688us, and the length of the first period is not limited in the embodiments of the present application.
Optionally, the indication information further comprises at least one identification information. The identification information is used for identifying the target service indicated by the indication information. Illustratively, the identification information may be a client number (client ID). The number of identification information corresponds to the number of target services. For example, in the case where the number of target services is one, the number of identification information is also one. For another example, in the case where the number of target services is two, the number of identification information is also two.
Exemplary implementations of S801 include the following two:
in mode 1, as shown in the first dotted line box in fig. 8b, S801 includes S801a:
S801a, the management device transmits instruction information to the first client device. Accordingly, the first client device receives the indication information from the management device.
The management device and the first client device, the first network device, the second network device and the second client device are respectively connected in a wired or wireless mode for data transmission. The management device is used for managing network topology, such as testing link quality, allocating service bandwidth, etc. In addition, the management device may also be described as a network controller, which is not limited in this embodiment of the present application.
The description of the indication information may be referred to the above description, and will not be repeated here.
In mode 2, as shown in the second dashed box in fig. 8b, S801 includes S801b:
s801b, the first network device sends indication information to the first client device. Accordingly, the first client device receives the indication information from the first network device.
The first network device may be the PE device 105 in fig. 1 or fig. 7, and the corresponding first client device may be the client device 101 in fig. 1 or fig. 7 or the client device 102. Alternatively, the first network device may be the PE device 106 in fig. 1 or fig. 7, and accordingly, the first client device may be the client device 103 in fig. 1 or fig. 7, or may be the client device 104. In the embodiment of the present application, only the first network device is the PE device 105, and the first client device is the client device 101 is described as an example.
Wherein the first network device may autonomously determine the traffic bandwidth and the first period. Of course, as another possible implementation, the management device determines the service bandwidth and the first period, and then, the management device sends the first information to the first network device. Accordingly, the first network device receives the first information from the management device. Wherein the first information indicates a traffic bandwidth and a first period. Then, the first network device executes S801b again, which is not limited in the embodiment of the present application.
Illustratively, the indication information in S801b is carried in one of the following messages:
a first, link layer discovery protocol (link layer discovery protocol, LLDP) message. Illustratively, as shown in fig. 9a, the LLDP message includes a destination address (destination address, DA), a Source Address (SA), a type (type), a link layer discovery protocol data unit (link layer discovery protocol data unit, LLDPDU), and a frame check sequence (frame check sequence, FCS). Wherein the LLDPDU includes an information/value field. The global uniform identifier (organizationally unique identifier, OUI) in the information/value field includes a period (cycle) field and a client information (client info) field. The first period is carried in the period field, for example, if the first period is 51us, and in the hexadecimal representation, the first period is denoted as 0x33, as shown in fig. 9 a. The service bandwidths are carried in the customer information field, each target service is identified by adopting identification information, and each identification information corresponds to one service bandwidth. Illustratively, the identification information and the traffic bandwidth are represented in hexadecimal, the identification information may be written as 0x001, and the traffic bandwidth may be written as 0x001.
And a second item, a control message. For example, the type of control message carrying the indication information may be predefined, as shown in fig. 9b, the control message including DA, SA, type, data part and FCS. Wherein the data portion includes a period field and at least one customer information field. The period field indicates a first period and each customer information field indicates a traffic bandwidth of one target traffic.
S802, the first client device determines a time slot frame slice according to the indication information.
The time slot frame slice comprises a complete message and/or a message slice of the target service. For example, one slot frame slice includes a complete message of the target traffic, but does not include a message slice of the target traffic. For another example, a slot frame slice includes a message slice of the target service, but does not include a complete message of the target service. For another example, a time slot frame slice includes a message slice and a complete message of the target service.
Optionally, the slot frame slice further includes at least one identification information. The identification information is used for identifying the target service indicated by the time slot frame slice where the identification information is located, so that when the target service is two or more than two, different services are distinguished through the identification information. For example, the identification information may be carried in a preamble of a slot frame slice, as shown in fig. 10a or fig. 10 b. The description of the identification information may refer to the related description in the indication information, and will not be repeated here.
The following describes the data amount, length and generation process in the time slot frame slice:
first, the description of the data amount in the slot frame slice is as follows: the first data amount transmitted in the first period corresponds to the second data amount transmitted in one transmission period by the slot frame slice.
Wherein the transmission period is the period in which the first client device transmits a slot frame slice, denoted as Tn, to the first network device. Illustratively, the transmit period Tn satisfies the following formula:
Tn=(L 1 +L 2 +…+L m ) formula/W (1)
Wherein Tn represents a transmission period, L 1 Time slot frame slice length, L, representing the first service in the target service 2 Time slot frame slice length, L, representing the second service in the target service m The frame slice length of the time slot of the mth service in the target service is represented, m represents the number of the target services, and W represents the port bandwidth.
The period interval is the interval between two adjacent sending periods, and the value of the period interval is greater than or equal to zero. In the following, description is made by two cases (case 1 and case 2):
case 1, the first amount of data is equal to the second amount of data. In this case, the length of the first period is greater than or equal to the length of the transmission period, i.e. cycle. Gtoreq.Tn. For example, when cycle=tn, i.e. the data transmission cadences of the first client device and the first network device coincide. In this case, the value of the period interval is zero. For another example, when cycle > Tn, such as cycle=2tn, i.e. for the same data amount, the receiving duration of the first network device is smaller than the sending duration, i.e. the data coming from the first network device side is fast and the data going slowly. In this case, the periodic interval takes on a value Tn.
Case 2, the first data amount is greater than the second data amount. In this case, the length of the first period is smaller than the length of the transmission period, i.e. cycle < Tn. For example, when cycle=0.5 Tn, i.e. the data from the first network device side is slow, the walk is fast. In this case, the value of the period interval is zero.
It should be noted that, in the embodiment of the present application, the value of the period interval is a difference between the length of the first period and the length of the transmission period, so that the first client device forces to generate the period interval. It should be understood that there may be other calculation methods for the period interval, which are not limited in this embodiment of the present application.
Second, the length of the slot frame slice is described as follows:
in this embodiment of the present application, the first client device may determine the length of the slot frame slice in the following three manners (manner 1, manner 2, and manner 3), which is specifically described as follows:
in mode 1, the length of the slot frame slice is determined based on the third data amount carried by the preset number of slots. For example, the preset number may be one or a plurality. In the embodiment of the present application, only the third data amount carried by a single time slot is described as an example. In this case, the length of the slot frame slice may be determined based on the third amount of data carried by the single slot. In the following, taking a message A1 of a first service in a target service as an example, a slot frame slice determined by the method 1 is introduced, where the slot frame slice includes three kinds of following:
First, the slot frame slice X1 comprises a complete slice of the message A1. That is, in the case where the message A1 is not split, the slot frame slice X1 includes the complete message of the message A1.
Second, the time slot frame slice X2 includes other message slices except for the tail message slices in the message A1. For example, taking the example that the message A1 is split into two message fragments, the slot frame fragment X2 includes the first message fragment. For another example, taking the example that the message A1 is split into three or more message fragments, the time slot frame fragment X2 includes the first message fragment, or the time slot frame fragment X2 includes any message fragment except the first message fragment and the last message fragment in the message A1.
Third, the slot frame slice X3 includes the last packet slice in the packet A1. Still taking the segmentation of the message A1 as an example, the message A1 may be segmented into two message segments, or may be segmented into three or more message segments, where the time slot frame segment X3 includes the tail message segments in the message A1.
For example, the first client device segments the message A1 according to the third data size, and the first client device segments the message only when the remainder of the segmented message A1 is greater than or equal to the preset frame length. In this case, the slot frame slice includes the slot frame slice X2 and the slot frame slice X3 described above. For example, the third data amount is 100B, and the preset frame length is 64B. Correspondingly, the first preset value is 164B. Taking fig. 10a as an example, if the length of the complete message of the message A1 is 264B, after the message A1 is segmented according to the third data amount, the length of the remainder is 64B, and the length of the remainder is equal to the preset frame length, the message A1 is segmented, and the message A1 is segmented into three message segments, where the lengths of each message segment are 100B, and 64B, respectively. Each message slice is encapsulated into a different slot frame slice.
Otherwise, the first client device segments the message A1 according to the third data size, and the first client device does not segment the message A1 when the remainder of the segmented message A1 is smaller than the preset frame length. In this case, the slot frame slice includes the slot frame slice X1 described above. Still exemplified by a third data amount of 100B, a preset frame length of 64B, and a first preset value of 164B. Taking fig. 10B as an example, if the length of the complete message of the message A1 is 259B, after the message A1 is segmented according to the third data amount, the length of the remainder is 59B, and the length of the remainder is smaller than the preset frame length, the message A1 is segmented into two message segments, and the lengths of each message segment are 100 and 159B respectively. Each message slice is encapsulated into a different slot frame slice.
The preset frame length refers to a frame length meeting the requirement of the Ethernet message length. Alternatively, the preset frame length may be a frame length with other predefined values, which is not limited in the embodiment of the present application.
It should be understood that in mode 1, a slot frame slice may include a complete packet, such as the description of slot frame slice X1, or a packet slice, such as the description of slot frame slice X2 or slot frame slice X3, for a packet of the same service.
In the case where the message is split in the mode 1, the lengths of the slot frame slices corresponding to different services are the same. The following description will be given by taking a message A2 of a second service in the target service as an example: whether the message A2 is split or not, and the slot frame slice generated after the splitting can be referred to the description of the message A1, which is not repeated here. The message fragments in the time slot frame fragment X4 are message fragments except for the tail message fragments in the second message. The length of the slot frame slice X4 is the same as the length of the slot frame slice X2. That is, the first client device segments messages of different traffic by the same length (i.e., the third data amount) to simplify the processing complexity of the first client device.
In fig. 10c, taking traffic i, traffic j and traffic k as examples, the first client device polls traffic i, traffic j and traffic k. And in the case that the service polling is not completed, the first client device processes the message of the current service. Illustratively, the description will be given by taking the message of the service i as an example: the first client device determines the value of the transmission time slot Tsx of service i, comprising in particular two cases (case a and case b):
under the conditions a and Tsx is less than or equal to 0, the sending time slot of the service i does not exist. In this case, the first client device polls for the next service.
In case b, tsx > 0, the transmission time slot of service i exists. In this case, the first client device reassigns Tsx, i.e., tsx=tsx-1. The first client device determines whether the length of the remainder is greater than 64B according to the Lsi segmentation message: if yes, the first client device firstly segments the message and regenerates the time slot frame slice, in which case the generated time slot frame slice can refer to the description of the time slot frame slice X2 and the time slot frame slice X3, which are not repeated here. If not, the first client device does not segment the message and generates a slot frame slice, and in this case, the generated slot frame slice may refer to the description of the slot frame slice X1, which is not described herein again.
In fig. 10c, upon completion of traffic polling, the first client device starts a timer, which counts until the count duration of the timer equals 50.688/2us. The first client device again polls for individual traffic. Wherein the timing duration of the timer indicates a period interval, i.e. the period interval is 50.688/2us.
In mode 2, the length of the slot frame slice is determined based on the traffic bandwidth. For example, the data volume transmitted by the first service in the first period is recorded as a fifth data volume, and if the message of the first service is split, the length of at least one message segment in the split message segments is equal to the fifth data volume. In the following, taking a message B1 of a first service in a target service as an example, the slot frame slice determined in the method 2 is introduced, where the slot frame slice includes four kinds of following:
First, the time slot frame slice Y1 includes other message slices except for the tail message slices in the message B1. The length of the message fragments except the tail message fragments in the message B1 is equal to the fifth data quantity. For example, taking the example that the message B1 is split into two message slices, the time slot frame slice Y1 includes the first message slice. For another example, taking the example that the message B1 is split into three or more message fragments, the time slot frame fragment Y1 includes the first message fragment, or the time slot frame fragment Y1 includes any message fragment except the first message fragment and the last message fragment in the message B1.
Second, the slot frame slice Y2 includes the last packet slice in the packet B1. The fragment length of the tail message of the message B1 is greater than or equal to the 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. Still taking the segmentation of the message B1 as an example, the message B1 may be segmented into two message segments, or may be segmented into three or more message segments, where the time slot frame segment Y2 includes the tail message segments in the message B1.
Third, the slot frame slice Y3 includes at least one complete message of the first service. The sum of the lengths of the complete messages is larger than or equal to a preset frame length and smaller than or equal to a second preset value. That is, the time slot frame slice Y3 carries one or more complete messages, and the messages in the time slot frame slice Y3 are not segmented and do not include message slicing.
Fourth, the time slot frame slice Y4 includes a complete packet of the packet B1 and a packet slice of the packet B2. The sum of the message fragments and the complete message length in the time slot frame fragment Y4 is greater than or equal to a preset frame length and less than or equal to a second preset value. That is, the time slot frame slice Y4 carries both the complete message and the message slice, i.e. the time slot frame slice Y4 has the segmented message.
In example 1, taking an example that a single message length of the first service is greater than the fifth data amount, the first client device segments the message B1 according to the fifth data amount, and if a remainder after the segmentation of the message B1 is greater than or equal to a preset frame length, the first client device segments the message. In this case, the slot frame slice includes the slot frame slice Y1 and the slot frame slice Y2 described above. For example, the fifth data amount is 100B, and the preset frame length is 64B. Correspondingly, the second preset value is 164B. If the complete message length of the message B1 is 180B, after the message B1 is split according to the fifth data size, the length of the remainder is 80B, and the length of the remainder is greater than the preset frame length, the message B1 is split, and the message B1 is split into two message fragments.
Otherwise, the first client device segments the message B1 according to the fifth data size, and the first client device does not segment the message B1 when the remainder of the segmented message B1 is smaller than the preset frame length. In this case, the slot frame slice includes the slot frame slice Y3 described above. For example, still taking the fifth data amount as 100B, the preset frame length as 64B, and the second preset value as 164B as an example, if the complete message length of the message B1 is 160B, after splitting the message B1 according to the fifth data amount, the length of the remainder is 60B, and the length of the remainder is less than the preset frame length, the message B1 is not split, and the complete message of the message B1 is encapsulated in the slot frame slice Y3.
It should be noted that, in the case where the packet is split in example 1, the lengths of the slot frame slices corresponding to different services may be the same or different. The following description will be given by taking a message B2 of a second service in the target service as an example: whether the message B2 is split or not, and the slot frame slice generated after the splitting can be referred to the description of the message B1, which is not repeated here. The message B2 is split to generate at least two message fragments, and the length of one or more message fragments in the at least two message fragments is equal to the sixth data volume. Wherein the sixth data amount is the data amount transmitted by the second service in the first period. The fifth data amount and the sixth data amount may be the same or different. And marking the time slot frame slice generated by the message B2 as a time slot frame slice Z1 and a time slot frame slice Z2. The time slot frame slice Z1 includes other message slices except for the tail message slices in the message B2, and the time slot frame slice Z2 includes the tail message slices in the message B2. If the fifth data amount is the same as the sixth data amount, the slot frame slice Y1 and the slot frame slice Z1 have the same length. If the fifth data amount and the sixth data amount are different, the lengths of the slot frame slice Y1 and the slot frame slice Z1 are different. The lengths of the slot frame slice Y2 and the slot frame slice Z2 may be the same or different, which is not limited in the embodiment of the present application.
In example 2, taking the case that the single message length of the first service is smaller than the fifth data size, the first client device segments the message B1 according to the fifth data size. But the length of the message B2 is smaller than the fifth data amount, so the first client device accumulates more messages of the first service. For example, taking two messages as an example, the first client device accumulates the message lengths of the message B1 and the message B2. And splitting the accumulated message according to the fifth data quantity, wherein the first client device performs message splitting only when the split residual is greater than or equal to the preset frame length. In this case, the slot frame slice includes the slot frame slice Y4 described above. For example, the fifth data amount 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 the message B1 and the message B2 is 180B, after the message segmentation is performed according to the fifth data volume, the length of the redundant piece is 80B, and the length of the redundant piece is larger than the preset frame length, one of the message B1 and the message B2 is segmented, and the other message is not segmented.
Otherwise, the first client device performs message segmentation according to the fifth data volume, and the first client device does not segment the message B1 and the message B2 when the segmented remainder is smaller than the preset frame length. In this case, the slot frame slice includes the slot frame slice Y3 described above. For example, still taking the fifth data amount as 100B, the preset frame length as 64B, and the second preset value as 164B as an example, if the sum of the complete message lengths of the message B1 and the message B2 is 160B, the sum of the message segmentation is performed according to the fifth data amount, the spare slice length is 60B, and the length of the spare slice is smaller than the preset frame length, and if neither the message B1 nor the message B2 is segmented, the complete message of the message B1 or the message B2 is encapsulated in the time slot frame slice Y3.
Taking fig. 11a as an example, taking service i, service j and service k as examples, the first client device orders service i, service j and service k in order of priority from high to low. The first client device then polls for individual traffic. And in the case that the service polling is not completed, the first client device processes the message of the current service. In fig. 11a, a message of a service i is taken as an example to describe: the first client device determines the size relationship between the message length of the service i and the slot frame slice Lsi, and specifically includes three cases (case a, case b and case c):
and the message length of the service i is smaller than that of the time slot frame slice Lsi under the condition of a. In this case, the first client device may not perform packet segmentation, and may generate a slot frame slice, which may be specifically referred to as slot frame slice Y3. Or, the first client device performs message segmentation first to regenerate a time slot frame slice, and specifically, reference may be made to description of the time slot frame slice Y4, which is not repeated herein.
And in the case b, the message length of the service i is equal to the time slot frame slice Lsi. In this case, the first client device generates a slot frame slice, and specifically, reference may be made to the description of the slot frame slice Y3, which is not described herein.
And in the case c, the message length of the service i is larger than that of the time slot frame slice Lsi. In this case, the first client device firstly segments the message and regenerates the slot frame slice, and specifically, reference may be made to the description of the slot frame slice Y1 and the slot frame slice Y2, which are not repeated herein.
In fig. 11a, in the event that traffic polling is complete, the first client device starts a timer that counts until the duration of the timer equals 50.688/2us. The first client device again polls for individual traffic. Wherein the timing duration of the timer is used to indicate the period interval.
Taking fig. 11b as an example, the priority of service i is higher than the priority of service j, and the first client device sends the slot frame slice i of service i first, and then sends the slot frame slice j of service j, i.e. the time ti is earlier than the time tj. The time slot frame slice length of the service i is 320B, and the message length of the service i is 320B. The slot frame slice length of service j is 6400B, and the message length of service j is 1518B. In fig. 11b, for service i, the first client device encapsulates a message into a slot frame slice. For service j, the first client device accumulates a plurality of messages, for example, after accumulating 4 messages, segments the 5 th message, i.e., divides four messages and one message into one time slot frame slice.
It should be noted that, in the case where the message is split in example 2, the lengths of the slot frame slices corresponding to different services may be the same or different, and specifically, reference may be made to the description in example 1 of mode 2, which is not repeated herein.
That is, in the mode 2, the first client device segments the packets of different services according to the service bandwidth of each service, so as to match the data transmission efficiency of each service, and improve the bandwidth utilization rate.
In the mode 3, the number of the target services is at least two, and the message fragments of at least two target services are carried in the same time slot frame fragment. The determining process of the message slicing may be referred to the description of mode 1, and will not be described herein. For example, taking the message A1 of the first service and the message A2 of the second service as examples, the message fragments of the message A1 and the message fragments of the message A2 may be carried in the same time slot frame slice, so as to improve the data transmission efficiency.
Optionally, the slot frame slice in mode 3 further includes a first field. Wherein the first field indicates the length of the service data in each packet fragment. The unit of the length indicated by the first field is a bit (bit), each target service in the first field occupies N bits, and the maximum value of the data length of each target service indicated by the first field is 2 N And a number of bits. Wherein N is a positive integer. It should be understood that the first field may also have other names, such as a service length field, which is not limited in this embodiment of the present application.
Taking fig. 12 as an example, the number of target services is eight, and is respectively service 1 to service 8. The slot frame slice determined in the mode 3 includes DA, SA, type, first field, message slice and FCS. Wherein the first field has 80 bits, each 10 bits indicating the length of service data of one target service. For each project label service, the time slot frame slice carries the identification information of the target service so as to identify the service corresponding to the service data. In fig. 12, the number of target services may have other values, which are not limited in this embodiment of the present application. Wherein the number of target traffic may be predefined.
It should be understood that, in the embodiment of the present application, the slot frame slice in mode 3 may carry a packet slice of each target service, that is, fields including DA, SA, type, FCS, and the like of the original packet. Of course, multiple target services may share the same DA, SA, type, and FCS fields, and the instant message frame slice does not carry the DA, SA, type, and FCS fields of the original message.
S803, the first client device sends the time slot frame slice to the first network device according to the indication information. Accordingly, the first network device receives a slot frame slice from the first client device.
Wherein, the slot frame slice in S803 coincides with the slot frame slice in S802.
Illustratively, the first client device transmits a slot frame slice to the first network device in a transmission period, as shown in fig. 13. In the case where the period interval is zero, adjacent two transmission periods are consecutive in time. In the case where the period interval is greater than zero, adjacent two transmission periods are discrete in time. That is, the first client device stops transmitting the slot frame slice to the first network device during the periodic interval so that the first client device and the first network device remain consistent in transmission cadence and transmission data amount.
As one possible implementation, the first client device sends fourth data to the first network device during the periodic interval. Accordingly, the first network device receives fourth data from the first client device. The service corresponding to the fourth data does not belong to the target service, that is, the first client device uniformly divides the period according to the target service and the non-target service of the local terminal, so as to improve the communication efficiency between the first client device and the first network device. It should be understood that, at periodic intervals, the first client device may not send the fourth data to the first network device, i.e., the first client device divides the local sending upper pipe data period according to the local target service, which is not limited in this embodiment of the present application.
Illustratively, the first client device indicates the duration of the periodic interval with the timing duration of the timer. After the first client device stops sending the slot frame slice to the first network device, a timer is started, and when the timer runs out, the first client device sends the slot frame slice to the first network device. The first client device transmits fourth data to the first network device during operation of the timer. It should be appreciated that the first client device may record the period interval in other ways, as well, and embodiments of the present application are not limited in this regard.
S804, the first network device determines a code block sequence according to the time slot frame slice.
Wherein the slot frame slice in S804 coincides with the slot frame slice in S803.
Illustratively, the first network device encodes traffic data in a slot frame slice to obtain a sequence of code blocks. One code block sequence includes a start (S) code block, a data (D) code block, and an end (T) code block. The S code block and the T code block are used for determining a complete message. The D code block is used for bearing load data in the message. The encoding format may be 64B/66B or other encoding formats, which are not limited in this embodiment of the present application.
S805, the first network device sends a code block sequence to the second network device. Accordingly, the second network device receives the sequence of code blocks from the first network device.
Wherein the code block sequence in S805 coincides with the code block sequence in S804.
Illustratively, the first network device may be the PE device 105 of fig. 1 or fig. 7, and the second network device may be the PE device 106 of fig. 1 or fig. 7, respectively. The first network device sends a code block sequence to the second network device on the first time slot of the first output port according to the preset relationship, as shown in fig. 13. Wherein the preset relationship indicates a mapping between the target traffic and the first egress port and the first time slot. The first time slot is at least one time slot in the first period. Illustratively, there is a mapping relationship between the identification information of each service and the egress port and the slot. The first network device may perform the upper pipeline processing according to the preset relationship, and the transmission process of the code block sequence between the first network device and the second network device may refer to the description of the channel forwarding manner, which is not repeated herein.
Taking fig. 14 as an example, in the case that the timeslot frame slice carries the identification information, the first network device identifies the identification information in the timeslot frame slice, and if the first network device has stored the preset relationship, that is, the mapping relationship between the identification information and the output port has been established, the first network device sends the code block sequence on the first output port and the first timeslot corresponding to the target service according to the mapping relationship. Otherwise, if the first network device does not store the preset relationship, the first network device identifies the service corresponding to the time slot frame slice according to the identification information, then the first network device establishes the mapping relationship between the identification information and the output port according to the five-tuple, and then sends the code block sequence on the first output port and the first time slot corresponding to the target service according to the mapping relationship.
And S806, the second network equipment encapsulates the service data into time slot frame slices according to the type of the code block sequence.
The description of the time slot frame slice may refer to S802, and will not be repeated herein.
For example, taking the case that the target service is the first service as an example, in the case that the code block sequence includes at least a start S code block and does not include an end T code block, the slot frame slice encapsulated by the second network device is the first slot frame slice. The first time slot frame slice comprises a first message slice of the first message. And in the case that the code block sequence at least comprises T code blocks and does not comprise S code blocks, the time slot frame slice packaged by the second network equipment is a second time slot frame slice. Wherein the second time slot frame slice comprises the tail message slices of the first message. And in the case that the code block sequence is the data D code block sequence, the time slot frame slice packaged by the second network equipment is a third time slot frame slice. The third time slot frame slice comprises middle message slices of the first message.
For another example, taking the target service as the second service, in the case that the code block sequence includes at least an S code block and a T code block, the slot frame slice encapsulated by the second network device is a fourth slot frame slice. The fourth time slot frame slice comprises the complete message of the second message.
Taking fig. 15 as an example, when the code block sequence carries the identification information, the second network device identifies the identification information in the code block sequence, and if the second network device has stored the preset relationship, that is, the mapping relationship between the identification information and the output port has been established, the second network device encapsulates the service data in the code block sequence into the time slot frame slice of the corresponding service according to the output port information. Otherwise, if the second network device does not store the preset relationship, the second network device identifies the service corresponding to the code block sequence according to the identification information, then the second network device establishes the mapping relationship between the identification information and the output port according to the five-tuple, and encapsulates the service data in the code block sequence into the time slot frame slice of the corresponding service according to the output port information, so as to reduce the cost of message reorganization.
S807, the second network device transmits the slot frame slice to the second client device. Accordingly, the second client device receives the slot frame slice from the second network device.
Wherein the slot frame slice in S807 coincides with the slot frame slice in S806.
S808, the second client equipment reorganizes the time slot frame slices to obtain the MAC layer message.
For example, referring to fig. 16, after receiving the slot frame slice, the second client device performs packet reassembly according to the format of the slot frame slice to obtain a reassembled packet. The second client device then sends the reassembled message up to the MAC layer.
In the communication method of the embodiment of the application, the first client device sends the time slot frame slice to the first network device based on the indication information, so that the data transmission rhythm and the data volume between the first client device and the first network device are coordinated, the buffer pressure caused by blind message sending of the first client device is avoided, the message retransmission cost and the device cost are reduced, and the communication efficiency and the bandwidth utilization rate are improved.
It should be noted that, in the embodiment of the present application, the process of generating the message slicing or splitting the message may refer to the description of the TSN frame preemption mechanism, which is not repeated herein.
The above description has been presented mainly from the point of interaction between the network elements. Correspondingly, the embodiment of the application also provides a communication device, which can be the network element in the embodiment of the method, or a device containing the network element, or a component applicable to the network element. It will be appreciated that the communication device, in order to achieve the above-described functions, comprises corresponding hardware structures and/or software modules performing the respective functions. Those of skill in the art will readily appreciate that the elements and algorithm steps of the examples described in connection with the embodiments disclosed herein may be implemented as hardware or combinations of hardware and computer software. Whether a function is implemented as hardware or computer software driven hardware depends upon the particular application and design constraints imposed on the solution. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
Illustratively, fig. 17 shows a schematic structural diagram of a communication device 1700. The communication apparatus 1700 includes a processing unit 1701, a transmitting unit 1702, and a receiving unit 1703.
In a possible example, taking the communication apparatus 1700 as the first client device, the processing unit 1701 is configured to support the first client device to perform S802 in fig. 8a, and/or other processing operations that the first client device needs to perform in the embodiment of the present application. The receiving unit 1703 is configured to support the first client device to perform S801 in fig. 8a, and/or other receiving operations that the first client device needs to perform in the embodiment of the present application. The sending unit 1702 is configured to support the first client device to perform S803 in fig. 8a, and/or other sending operations that the first client device needs to perform in the embodiments of the present application.
In another possible example, taking the communication apparatus 1700 as the first network device, the processing unit 1701 is configured to support the first network device to perform S804 in fig. 8a, and/or other processing operations that the first network device needs to perform in the embodiment of the present application. The receiving unit 1703 is configured to support the first network device to perform S803 in fig. 8a, and/or other receiving operations that the first network device needs to perform in the embodiment of the present application. The sending unit 1702 is configured to support the first network device to perform S805 in fig. 8a, and/or other sending operations that the first network device needs to perform in the embodiments of the present application.
In another possible example, taking the communication apparatus 1700 as the second network device, the processing unit 1701 is configured to support the second network device to perform S806 in fig. 8a and/or other processing operations that the second network device needs to perform in the embodiment of the present application. The receiving unit 1703 is configured to support the second network device to perform S805 in fig. 8a, and/or other receiving operations that the second network device needs to perform in the embodiment of the present application. The sending unit 1702 is configured to support the second network device to perform S807 in fig. 8a, and/or other sending operations that the second network device needs to perform in the embodiment of the present application.
In another possible example, taking the communication apparatus 1700 as the second client device, the processing unit 1701 is configured to support the second client device to perform S808 in fig. 8a, and/or other processing operations that the second client device needs to perform in the embodiment of the present application. The receiving unit 1703 is configured to support the second client device to perform S807 in fig. 8a, and/or other receiving operations that the second client device needs to perform in the embodiment of the present application. The sending unit 1702 is configured to support the second client device to perform a sending operation.
Optionally, the communication device 1700 may further include a storage unit 1704 for storing program codes and data of the communication device, and the data may include, but is not limited to, raw data or intermediate data.
The processing unit 1701 may be a processor or controller, such as a CPU, general purpose processor, application specific integrated circuit (application specific integrated circuit, ASIC), field programmable gate array (field programmable gate array, FPGA) or other programmable logic device, transistor logic device, hardware components, or any combination thereof. Which may implement or perform the various exemplary logic blocks, modules, and circuits described in connection with this disclosure. A processor may also be a combination that performs computing functions, e.g., including one or more microprocessors, a combination of a DSP and a microprocessor, and so forth.
The sending unit 1702 may be a communication interface, a sender, or a sending circuit, where the communication interface is generally called, and in a specific implementation, the communication interface may include multiple interfaces, for example may include: an interface between terminal devices (e.g., a first terminal device, a second terminal device), and/or other interfaces.
The receiving unit 1703 may be a communication interface, a receiver, or a receiving circuit, where the communication interface is generally called, and in a specific implementation, the communication interface may include multiple interfaces, for example, may include: an interface between the terminal device and a network device (e.g., a first network device, a second network device) and/or other interfaces.
The transmitting unit 1702 and the receiving unit 1703 may be physically or logically implemented as one and the same unit.
The storage unit 1704 may be a memory.
When the processing unit 1701 is a processor, the transmitting unit 1702 and the receiving unit 1703 are communication interfaces, and the storage unit 1704 is a memory, the communication apparatus according to the embodiment of the present application may be as shown in fig. 18.
Referring to fig. 18, the communication apparatus includes: a processor 1801, a communication interface 1802, and a memory 1803. Optionally, the communications device may also include a bus 1804. Wherein the communication interface 1802, the processor 1801 and the memory 1803 may be interconnected via a bus 1804; the bus 1804 may be a peripheral component interconnect standard (peripheral component interconnect, PCI) bus or an extended industry standard architecture (extended industry standard architecture, EISA) bus, or the like. The bus 1804 may be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, only one thick line is shown in fig. 18, but not only one bus or one type of bus.
Optionally, the embodiments of the present application further provide a computer program product carrying computer instructions that, when run on a computer, cause the computer to perform the method described in the above embodiments.
Optionally, the embodiment of the present application further provides a computer readable storage medium, where the computer readable storage medium stores computer instructions, which when executed on a computer, cause the computer to perform the method described in the above embodiment.
Optionally, an embodiment of the present application further provides a chip, including: processing circuitry and transceiver circuitry for implementing the methods described in the above embodiments. Wherein the processing circuit is used for executing the processing actions in the corresponding method, and the transceiver circuit is used for executing the receiving/transmitting actions in the corresponding method.
In the above embodiments, it may be implemented in whole or in part by software, hardware, firmware, or any combination thereof. When implemented in software, may be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When loaded and executed on a computer, produces a flow or function in accordance with embodiments of the present application, in whole or in part. The computer may be a general purpose computer, a special purpose computer, a computer network, or other programmable apparatus. The computer instructions may be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another computer-readable storage medium, for example, the computer instructions may be transmitted from one website, computer, server, or data center to another website, computer, server, or data center by a wired (e.g., coaxial cable, fiber optic, digital subscriber line (digital subscriber line, DSL)) or wireless (e.g., infrared, wireless, microwave, etc.). The computer readable storage medium may be any available medium that can be accessed by a computer or a data storage device including one or more servers, data centers, etc. that can be integrated with the available medium. The usable medium may be a magnetic medium (e.g., floppy disk, hard disk, magnetic tape), an optical medium (e.g., digital video disc (digital video disc, DVD)), or a semiconductor medium (e.g., solid state disk (solid state drive, SSD)), etc.
In the several embodiments provided in this application, it should be understood that the disclosed systems, apparatuses, and methods may be implemented in other ways. For example, the apparatus embodiments described above are merely illustrative, and for example, the division of the modules is merely a logical function division, and there may be additional divisions when actually implemented, for example, multiple modules or components may be combined or integrated into another system, or some features may be omitted or not performed. Alternatively, the coupling or direct coupling or communication connection shown or discussed with each other may be an indirect coupling or communication connection via some interfaces, devices or modules, which may be in electrical or other forms.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of devices. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
From the above description of the embodiments, it will be clear to those skilled in the art that the present application may be implemented by means of software plus necessary general purpose hardware, or of course by means of hardware, but in many cases the former is a preferred embodiment. Based on such understanding, the technical solution of the present application may be embodied essentially or in contributing parts in the form of a software product stored in a readable storage medium, such as a floppy disk, a hard disk, or an optical disk of a computer, etc., including several instructions to cause a computer device (which may be a personal computer, a server, or a network device, etc.) to perform the methods described in the embodiments of the present application.
The foregoing is merely a specific embodiment of the present application, but the protection scope of the present application is not limited thereto, and the changes or substitutions within the technical scope of the present disclosure should be covered in the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.

Claims (29)

1. A method of communication, comprising:
the method comprises the steps that a first client device obtains indication information, wherein the indication information indicates service bandwidth and a first period, the service bandwidth is a bandwidth pre-allocated by a target service, and the first period is a period of the first network device for transmitting the target service;
and the first client device sends a time slot frame slice to the first network device according to the indication information, wherein the time slot frame slice comprises a complete message and/or a message fragment 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 a period of the first client device sending the time slot frame slice, and the length of the time slot frame slice is determined based on the third data volume carried by a preset number of time slots or the service bandwidth.
2. The method of claim 1, wherein the first client device obtains indication information comprising:
the first client device receives the indication information from a management device.
3. The method of claim 1, wherein the first client device obtains indication information comprising:
the first client device receives the indication information from the first network device.
4. A method according to claim 3, wherein the indication information is carried by one of: link layer discovery protocol LLDP messages, or control messages.
5. The method of any of claims 1 to 4, wherein the length of the first period is greater than or equal to the length of the transmission period.
6. The method of claim 5, wherein the period interval has a value that is the difference between the length of the first period and the length of the transmission period;
wherein the period interval is an interval between two adjacent transmission periods.
7. The method of claim 6, wherein the method further comprises:
and at the periodic interval, the first client device sends fourth data to the first network device, wherein the service corresponding to the fourth data does not belong to the target service.
8. The method of any of claims 1 to 7, wherein the first amount of data is equal to the second amount of data.
9. The method of any of claims 1 to 4, wherein the length of the first period is less than the length of the transmission period.
10. The method of claim 9, wherein the period interval has a value of zero;
wherein the period interval is an interval between two adjacent transmission periods.
11. The method of claim 1, 2, 3, 4, 9, or 10, wherein the first amount of data is greater than the second amount of data.
12. The method according to any one of claims 1 to 11, wherein the first slot frame slice comprises a last message slice of the first message;
the time slot frame slice comprises the first time slot frame slice, the first message corresponds to the target service, the fragment length of the tail message of the first message is greater than or equal to a preset frame length and is smaller than or equal to a first preset value, and the first preset value is equal to the sum of the third data quantity and the preset frame length.
13. The method of claim 12, wherein the second slot frame slice comprises a message slice of the first message other than the tail message slice;
And the time slot frame slice further comprises the second time slot frame slice, and the length of the message slices except the tail message slices in the first message is equal to the third data volume.
14. The method of claim 13, wherein a length of a third slot frame slice is the same as a length of the second slot frame slice;
the time slot frame slice further comprises a third time slot frame slice, and the message slices in the third time slot frame slice are message slices except for tail message slices in the second message;
the second message is a message of a second service, the first message is a message of a first service, and both the first service and the second service belong to the target service.
15. The method according to any one of claims 1 to 11, wherein the fourth slot frame slice comprises a complete message of the first message;
the time slot frame slice comprises the fourth time slot frame slice, the first message corresponds to the target service, the length of the complete message of the first message is smaller than or equal to a first preset value, and the first preset value is equal to the sum of the third data quantity and the preset frame length.
16. The method according to any one of claims 1 to 11, wherein the first slot frame slice comprises a last message slice of the first message;
The time slot frame slice comprises the first time slot frame slice, the first message corresponds to a first service in the target service, the length of a tail message slice 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 a fifth data volume and the preset frame length, and the fifth data volume is the data volume transmitted by the first service in the first period.
17. The method of claim 16, wherein the second slot frame slice comprises a message slice of the first message other than the tail message slice;
and the time slot frame slice further comprises the second time slot frame slice, and the message slice length except the tail message slices in the first message is equal to the fifth data volume.
18. The method according to any of claims 1 to 11, wherein the third slot frame slice comprises at least one complete message of the first message;
the time slot frame slice comprises the third time slot frame slice, the first message corresponds to a first service in the target service, the sum of the complete message lengths of the first message is larger than or equal to a preset frame length and smaller than or equal to a second preset value, the second preset value is equal to the sum of a fifth data volume and the preset frame length, and the fifth data volume is the data volume transmitted by the first service in the first period.
19. The method according to any one of claims 1 to 11, wherein the fourth slot frame slice comprises a message slice of the first message and a complete message of the second message;
the first message and the second message both correspond to a first service in the target service, and the sum of the message fragments and the complete message length in the fourth time slot frame fragment is greater than or equal to a preset frame length and less than or equal to a second preset value, wherein the second preset value is equal to the sum of a fifth data volume and the preset frame length, and the fifth data volume is the data volume transmitted by the first service in the first period.
20. The method according to any one of claims 1 to 11, wherein the number of the target services is at least two, and the message fragments of the at least two services are carried in the same slot frame fragment;
wherein the message slicing is determined based on the third data amount.
21. The method of claim 20, wherein the slot frame slice further comprises a first field, wherein the first field indicates a length of traffic data in each message slice.
22. The method according to any one of claims 1 to 21, wherein the slot frame slice further comprises at least one identification information, wherein the identification information is used to identify a target service corresponding to the slot frame slice where the identification information is located.
23. The method according to any one of claims 1 to 21, wherein the indication information further comprises at least one identification information, wherein the identification information is used to identify the target service indicated by the indication information.
24. A method of communication, comprising:
the method comprises the steps that first network equipment sends indication information to first client equipment, wherein the indication information indicates service bandwidth and a first period, the service bandwidth is a bandwidth pre-allocated by target service, and the first period is a period of the first network equipment for transmitting the target service;
the first network device receives a time slot frame slice from the first client device, wherein the time slot frame slice comprises a complete message and/or a message slice 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 a period of the time slot frame slice transmitted by the first client device, and the length of the time slot frame slice is determined based on the third data volume carried by a preset number of time slots or the service bandwidth.
25. The method of claim 24, wherein the method further comprises:
The first network equipment sends a code block sequence on a first time slot of a first output port according to a preset relation;
wherein the preset relationship indicates a mapping between the target traffic and the first output port and the first time slot, the first time slot being at least one time slot in the first period, the code block sequence being determined based on the slot frame slice.
26. A communication device, comprising: a unit for performing the steps of any one of claims 1 to 25.
27. A communication device, comprising: a processor and a memory coupled, the memory storing program instructions that when executed by the processor implement the method of any one of claims 1 to 25.
28. A chip comprising logic circuitry for communicating with modules external to the chip and an input-output interface for running a computer program or instructions to implement a method as claimed in any one of claims 1 to 25.
29. A computer readable storage medium storing a program which, when invoked by a processor, performs the method of any one of claims 1 to 25.
CN202111234179.3A 2021-10-22 2021-10-22 Communication method and device Pending CN116015574A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111234179.3A CN116015574A (en) 2021-10-22 2021-10-22 Communication method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111234179.3A CN116015574A (en) 2021-10-22 2021-10-22 Communication method and device

Publications (1)

Publication Number Publication Date
CN116015574A true CN116015574A (en) 2023-04-25

Family

ID=86021635

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111234179.3A Pending CN116015574A (en) 2021-10-22 2021-10-22 Communication method and device

Country Status (1)

Country Link
CN (1) CN116015574A (en)

Similar Documents

Publication Publication Date Title
CN110798415B (en) Service transmission method, equipment and computer storage medium
USRE45570E1 (en) Data transmission method using packet aggregation
US9294589B2 (en) Header compression with a code book
US20190373086A1 (en) Packet Processing Method and Apparatus
CN109314673B (en) Customer service transmission method and device
CN1918850A (en) Methods and apparatus for controlling the flow of multiple signal sources over a single full duplex Ethernet link
US8249107B2 (en) Method and apparatus for frame relay
JPH07273799A (en) Apparatus and method for packet processing in packet switching network and frame processing system for frame relay network
CN110943933A (en) Method, device and system for realizing data transmission
CN113972997A (en) Method and equipment for transmitting data
RU2762801C2 (en) Method, equipment and system for data transmission and device
CN108632326B (en) Method and device for transmitting data by protocol data unit
EP3809616A1 (en) Method and apparatus for channelizing physical layer ports
KR20220006606A (en) Message processing method and related device
CN113079074A (en) Protocol stack communication method, device and storage medium based on CAN bus
CN111726777A (en) Data transmission method and device
US8792461B2 (en) Method, apparatus and system for scheduling service on microwave link
US6982989B2 (en) Transmission of data frames using low-overhead encapsulation and multiple virtual tributaries in a synchronous optical network
EP2077637B1 (en) System and method for protecting payload information in radio transmission
CN116015574A (en) Communication method and device
CN116017564A (en) Satellite reverse link efficient transmission method, system, equipment and storage medium
US20210159999A1 (en) Method and apparatus for processing service bitstream
EP4106283A1 (en) Time-sensitive transmission of ethernet traffic between endpoint network nodes
CN115174699A (en) Processing method of Ethernet message and related equipment
WO2023083175A1 (en) Packet transmission method and communication apparatus

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination