WO2019174406A1 - Data transmission method and apparatus, network device, and storage medium - Google Patents

Data transmission method and apparatus, network device, and storage medium Download PDF

Info

Publication number
WO2019174406A1
WO2019174406A1 PCT/CN2019/072555 CN2019072555W WO2019174406A1 WO 2019174406 A1 WO2019174406 A1 WO 2019174406A1 CN 2019072555 W CN2019072555 W CN 2019072555W WO 2019174406 A1 WO2019174406 A1 WO 2019174406A1
Authority
WO
WIPO (PCT)
Prior art keywords
sub
block
slot
information
code
Prior art date
Application number
PCT/CN2019/072555
Other languages
French (fr)
Chinese (zh)
Inventor
刘峰
Original Assignee
中兴通讯股份有限公司
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 中兴通讯股份有限公司 filed Critical 中兴通讯股份有限公司
Publication of WO2019174406A1 publication Critical patent/WO2019174406A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L1/00Arrangements for detecting or preventing errors in the information received
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/70Admission control; Resource allocation
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/70Admission control; Resource allocation
    • H04L47/80Actions related to the user profile or the type of traffic
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/70Admission control; Resource allocation
    • H04L47/82Miscellaneous aspects
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/70Admission control; Resource allocation
    • H04L47/82Miscellaneous aspects
    • H04L47/826Involving periods of time
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L1/00Arrangements for detecting or preventing errors in the information received
    • H04L1/004Arrangements for detecting or preventing errors in the information received by using forward error control
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L1/00Arrangements for detecting or preventing errors in the information received
    • H04L1/004Arrangements for detecting or preventing errors in the information received by using forward error control
    • H04L1/0056Systems characterized by the type of code used
    • H04L1/0061Error detection codes
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L1/00Arrangements for detecting or preventing errors in the information received
    • H04L1/004Arrangements for detecting or preventing errors in the information received by using forward error control
    • H04L1/0056Systems characterized by the type of code used
    • H04L1/0067Rate matching

Definitions

  • the present application relates to the field of network technologies, but is not limited to the field of network technologies, and in particular, to a data transmission method and apparatus, a network device, and a storage medium.
  • the interface bandwidth speed of network devices is increased from 10M (unit: bit/second, bit/s) to 100M bit/s, and 1G bit/s, 10G bit/ is increased.
  • the bandwidth speed of 100G bit/s has been reached at present, and a large number of optical modules of 100G bit/s have been applied on the market.
  • the physical layer defined by the current FlexE protocol is 100G bit/s, and 20 time slots are defined on the physical layer of 100G bit/s.
  • the corresponding bandwidth of each time slot is 5G bit/s, if a customer's information transmission volume Less than 5G bit/s and occupying one time slot separately will inevitably lead to waste of network transmission resources.
  • the embodiments of the present application are expected to provide a data transmission method and apparatus, a network device, and a storage medium, which can at least be used to alleviate the seriousness of the problem of resource waste.
  • an embodiment of the present application provides a data transmission method, including:
  • Adding a code block to the sub-slot where the code block includes: an information block and an identification block, where the information block includes service data of the customer service; and the identification block includes division information of the time slot;
  • a data transmission method including:
  • a data transmission apparatus of the embodiment of the present application includes:
  • a dividing module configured to divide a time slot into a plurality of sub-time slots according to information of the customer service
  • Adding a module configured to add a code block in the sub-slot, where the code block includes: an information block and an identification block, where the information block includes service data of the customer service; and the identifier block includes the time Information on the division of the gap;
  • a component module configured to utilize a code block of the sub-slot to form a code stream of the time slot
  • a sending module configured to send the code stream.
  • a data transmission apparatus of the embodiment of the present application includes:
  • a receiving module configured to receive a code stream
  • a determining module configured to determine slot division information according to the identifier block extracted in the code stream
  • an extracting module configured to extract, according to the split information, an information block corresponding to a customer service from a sub-time slot of the time slot.
  • a fifth aspect of the present disclosure provides a network device, including:
  • a transceiver configured to send and receive information
  • a memory configured to store information
  • a processor coupled to the transceiver and the memory, respectively, configured to control information transmission and reception of the transceiver and information storage of the memory by executing computer executable code stored in the memory, and implementing the first aspect Or the second aspect of the data transmission method.
  • the computer storage medium of the present application wherein the computer storage medium stores computer executable code, and after the computer executable code is executed, the data transmission method of the first aspect or the second aspect can be implemented. .
  • the data transmission method and device, the network device and the storage medium provided by the embodiments of the present application split a time slot into multiple sub-time slots, and the bandwidth of the sub-slot is smaller than the bandwidth of the time slot, when the service data is transmitted.
  • the time slot may be the minimum scheduling unit, so that the customer service whose transmission rate is less than the bandwidth of one time slot may not need to occupy one time slot separately, so that the transmission rate does not need to consume multiple client services of the bandwidth corresponding to one time slot.
  • the sub-slots can be occupied and share one time slot, thereby avoiding the waste of resources caused by the minimum scheduling unit of the resources being the time slots, and improving the effective utilization of resources.
  • FIG. 1A is a schematic flowchart of a first data transmission method according to an embodiment of the present application.
  • FIG. 1B is a schematic flowchart of a second data transmission method according to an embodiment of the present application.
  • FIG. 2 is a schematic diagram of a service for transmitting 400 Gbit/s services by using four 100 Gbit/s optical modules according to an embodiment of the present disclosure
  • FIG. 3 is a schematic structural diagram of an identifier block according to an embodiment of the present disclosure.
  • FIG. 4A is a schematic flowchart of a third data transmission method according to an embodiment of the present application.
  • 4B is a schematic flowchart of a fourth data transmission method according to an embodiment of the present application.
  • FIG. 5 is a schematic structural diagram of a data transmission apparatus according to an embodiment of the present application.
  • FIG. 6 is a schematic structural diagram of another data transmission apparatus according to an embodiment of the present disclosure.
  • FIG. 7 is a schematic structural diagram of a network device according to an embodiment of the present disclosure.
  • FIG. 8 is a schematic diagram of a transmission frame carrying an overhead block according to an embodiment of the present disclosure.
  • FIG. 9 is a schematic diagram of mapping a 400 Gbit/s transmission frame to a 4-channel 100 Gbit/s transmission according to an embodiment of the present disclosure
  • FIG. 10 is a schematic diagram of an overhead frame according to an embodiment of the present disclosure.
  • FIG. 11 is a schematic diagram of a sub-slot mapping to a time slot transmission according to an embodiment of the present disclosure
  • FIG. 12 is a schematic diagram of transmission of a code stream according to an embodiment of the present application.
  • FIG. 13 is a schematic diagram of transmission of a time slot multiplexed by a first seed slot according to an embodiment of the present disclosure
  • FIG. 14 is a schematic diagram of receiving a time slot of a first seed slot multiplexed according to an embodiment of the present disclosure
  • FIG. 15 is a schematic diagram of content of an identifier block according to an embodiment of the present application.
  • FIG. 16 is a schematic diagram of transmission of a time slot multiplexed by a second seed slot according to an embodiment of the present disclosure
  • FIG. 17 is a schematic diagram of content of another identifier block according to an embodiment of the present application.
  • FIG. 18 is a schematic diagram of receiving a time slot of a second seed slot multiplexing according to an embodiment of the present application.
  • FIG. 19 is a schematic diagram of content of another identifier block according to an embodiment of the present application.
  • the embodiment provides a data transmission method, including:
  • Step S110 Divide a time slot into a plurality of sub-time slots according to information of the customer service
  • Step S120 Add a code block in the sub-slot, where the code block includes: an information block and an identification block, where the information block includes service data of the customer service; and the identifier block includes the time slot. Divide information;
  • Step S130 using code blocks of the sub-slots to form a code stream of the time slot;
  • Step S140 Send the code stream.
  • the data transmission method provided by this embodiment may be: a data transmission method applied to a transmitting end, for example, a method applied to a transmitting end in FlexE, and the method follows the FlexE protocol for data transmission.
  • the physical layer of the network defined by the FlexE protocol is 100 Gbit/s
  • 20 time slots are defined on the physical layer of the 100 Gbit/s
  • the corresponding bandwidth of each time slot is 5 Gbit/s, which can be used in the embodiment of the present application.
  • It is called a FlexE protocol slot, and is referred to as a slot.
  • the bandwidth of the time slot is not limited to 5 Gbit/s, and may be 25 Gbit/s or the like.
  • the time slot may be further divided into multiple sub-time slots, and the bandwidth occupied by one of the sub-slots is smaller than the bandwidth occupied by one of the time slots.
  • the step S110 of the embodiment of the present application may include: dividing one of the time slots into a plurality of sub-slots, and in other embodiments, dividing the one of the sub-slots into multiple bandwidths.
  • Subslot For example, one slot includes two types of sub-slots, one type of sub-slots has a bandwidth of A, and another type of sub-slots has a bandwidth of B and A is not equal to B.
  • the 400G bit/s optical module can support a bandwidth of 400G bit/s, but the 400G bit/s optical module is expensive, exceeding the price of four 100G bit/s optical modules, resulting in the lack of 400G bit/s optical modules. Practical application value.
  • the network operator of the FlexE protocol bundles four 100G optical modules to form a 400G bit/s transmission channel, which is equivalent.
  • the transmission speed of a 400G bit/s optical module to reduce the transmission cost of 400G bit/s service.
  • the physical layer of the network is still 100G bit/s.
  • 20 slots are defined on the physical layer of 100G bit/s, and the corresponding bandwidth of each slot is 5G bit/s.
  • the bandwidth of one time slot is 5G bit/s
  • the transmission rate for a single client service is less than 5G bit/s occupying one time slot, which obviously causes waste of bandwidth.
  • the time slot with the bandwidth of 5 Gbit/s is further divided according to the information of the customer service (the transmission rate of the customer service), and the divided sub-timeslot is used as the minimum scheduling of the resource. Units, obviously less than 5G bit/s customer service does not need to occupy a single time slot, thereby reducing the waste of bandwidth resources and improving the effective utilization of resources.
  • the time slot in order to avoid waste of transmission resources caused by occupying at least one time slot by a single client service, the time slot is further divided, so that one time slot is divided into multiple sub-time slots, and thus different. Customer services can share a single time slot, reducing waste of resources.
  • an identification block in addition to the information block carrying the service data, an identification block is added in the sub-slot; the identification block carries the division information of the time slot.
  • the split information of the time slot may include sub-slot information indicating the number of sub-slots divided by the time slot, the bandwidth of the single sub-slot, and/or the resource position.
  • the split information of the time slot may further include: allocation information of sub-time slots of the customer service, for example, indicating the number of sub-time slots occupied by one customer service, the resource location of the occupied sub-time slots, and the like. information.
  • the transmitting end carries the split information in the identifier block and sends the information to the receiving end, so that the receiving end can determine the sub-slot division and allocation of the current time slot according to the identifier block.
  • the information about the customer service may include information such as the number of customer services and the transmission rate of the customer service.
  • the splitting information may include: sub-slot information in which the time slot is divided into sub-slots, and allocation information indicating that the sub-slots are allocated to the customer service, and the like.
  • the method may include: one sub-slot carries at least one identification block.
  • a plurality of identification blocks may also be shared by a plurality of sub-slots that are assigned to the same client service.
  • the information block and the identification block are added in step S120, but the number of the identification blocks and the resource location added by all the sub-time slots are not specifically limited.
  • the information block can be sequentially added to the sub-time slot according to the sequence of the service data of the customer service, which can ensure that the previous service data is in front of the resource in the time domain, facilitating subsequent reception.
  • the terminal sequentially receives the information block according to the sequence of the service data, and simplifies the splicing of the information block of the same client service at the receiving end, and restores the original appearance of the service data.
  • step S130 the information block and the identification block of the plurality of sub-time slots are used, and the code stream of one time slot is formed according to the mapping relationship between the sub-slot and the time slot.
  • the step S130 may include:
  • the step S130 may include: polling each sub-slot, and selecting, from the sub-slots, a code stream corresponding to the selected code block construction time slot in the code block not added to the time slot. It is assumed that one slot includes one sub-slot of equal bandwidth, and the step S130 may include: taking the j-th code block from the i-th sub-slot to form an I*j+i code block in the slot. i is a natural number not less than I; j is a sequence number of the code block in the sub-slot, and the value of j is a natural number starting from "0".
  • the code block of the time slot is sent.
  • one time slot can be shared by multiple client services, which reduces resource waste caused by occupying one time slot of a low-rate single client service, and in this embodiment.
  • an identifier block is added to the sub-slot, and the identifier block carries the division information, which can be used for the receiving end to obtain the division and allocation status of the time slot, thereby obtaining the information block of each customer service.
  • the method further includes:
  • Step S131 insert a free block for rate adjustment between the code blocks of the code stream.
  • the free block may be a code block that does not carry valid data
  • the valid data may include: service data of the foregoing customer service, split information, and other control information for controlling transmission. Since the idle block does not carry the valid information, if a network device does not match the ingress rate and the egress rate, the ingress rate of the network device can be consistent with the egress rate by discarding or adding the free block.
  • a network core device Provider, P
  • P a network core device
  • one or more free blocks can be discarded at the egress, thus reducing the need for the egress.
  • the amount of data transferred, so that the transmission rate of valid data is consistent at the entrance and exit. Due to the discarded free block, the free block is a code block that does not carry valid data, and even if discarded, it will not cause loss of valid data.
  • a free block may be added to the transport stream of the egress to reduce the problem that the code stream of the ingress is slow to cause the code stream to be interrupted.
  • the step S131 may include: inserting a free block in a code stream corresponding to the time slot according to a predetermined interval, for example, inserting the free block in a code block of one time slot according to an equal interval (ie, periodicity), or The free block is inserted in code blocks of one slot at unequal intervals.
  • the predetermined interval may be determined according to a rate adjusted extreme value, for example, determined according to the rate adjusted maximum value, and the rate adjusted maximum value may include: the effective code stream is greatly increased. The value and the maximum value of the deceleration are determined.
  • the insertion of the free block at a predetermined interval is understood to mean that one of the free blocks is inserted every predetermined number of code blocks in the code stream.
  • the reason why the analysis causes the ingress rate and the egress rate of the network device to be adjusted is the time-to-center deviation of the network device.
  • the number of code blocks in which the free blocks are inserted may be determined according to the maximum offset value and the transmission rate of the network device.
  • the code blocks herein may include: free blocks, identification blocks, and information blocks that are already in the code stream.
  • a general information block is a code block carrying service data of a customer service.
  • One of the code blocks may include 66 bits, the code block adopts 64/66 coding, the first 2 bits of the 66 bits are the start identifier bits of the code block, and the remaining 64 bits are content bits, and the content bits may be A bit carrying information content such as service data or division information.
  • the number of bits included in one code block and one type of bit division are limited, but the specific implementation is not limited to this limitation.
  • the insertion of the free block in step S131 enables end-to-end transmission between the transmitting end and the receiving end, and transparent transmission of the intermediate transmission device between the transmitting end and the receiving end, and the intermediate transmission device is transparent.
  • the transit time can use the free block to adjust the rate of the ingress rate and the egress rate. This prevents the intermediate transmission device from deleting the information block or the identification block and the receiving end cannot correctly recover the service data.
  • step S120 may be included in step S120: replacing the free block in the sub-slot with the identification block.
  • a time slot may have its predetermined format that defines in advance which resource locations are used to carry information blocks and which resource locations are used to carry free blocks for rate adjustment. If a time slot is divided into multiple sub-time slots, the resource locations corresponding to the free blocks are also distributed to the respective sub-time slots. In order to transmit data according to a predetermined format and improve the effective transmission of the single-slot, in this embodiment. Instead, the identification block is carried by the information block that is intended to carry the service data, instead of replacing the free block with the identification block.
  • the identifier block is used to replace the free block in the sub-slot. If there is no free block in the sub-slot (for example, the free block has been replaced by another code block), then the sub-slot can be reserved at this time.
  • the resource location of the information block carries the identification block, that is, the partial information block in the sub-slot is replaced by the identification block; in some embodiments, after the addition of the identification block is completed in the sub-slot, the sub-slot is implemented. It is no longer necessary to carry a free block that may be added or deleted in the code stream with subsequent time slots.
  • step S131 the rate adjustment is performed by inserting a free block.
  • the number of free blocks specifically inserted in one slot in step S131 is not necessarily, and may be determined according to specific network transmission status and the like.
  • any one of the free blocks may be added in step S131; if the part in the sub-slot is idle in step S120 The block is replaced with an identification block, and another free block different from the free block of the sub-slot is added in step S131.
  • the free block that is included in the sub-slot can be the first type of free block
  • the free block that is specifically inserted in step S131 can be the second type of free block, the first type of free block and the second type of free block.
  • the flag can be carried in a free block.
  • the free block inserted in step S131 may be any type of free block, and then the code stream sent by the sender is also There is only one free block. If all the free blocks in the sub-slot are replaced by the identification block, the free block inserted in the subsequent intermediate device may be the same type of free block as the free block inserted by the transmitting end, so that the code stream is received at the subsequent receiving end. After all the free blocks are removed, the initial state of the code stream corresponding to the time slot can be restored, and the position of the code block of each sub-slot in the entire time slot stream is not disturbed, which can facilitate the receiving end.
  • the rate adjustment can be performed by adding or deleting the second free block after forming the code stream corresponding to the time slot; the receiving end is in the second class of the wave stream. After the null, the code stream corresponding to the time slot can be restored to the initial state between the second type of free blocks, and the position of the code block of each sub-slot in the code stream corresponding to the time slot can also be ensured. change.
  • a part of the free block in the sub-slot can be replaced by the identification block, and the remaining part can be replaced with other types of code blocks other than the free block, so that it can be arbitrarily added in step S131 and the intermediate device.
  • Free block For example, if P free blocks are set in one sub-slot, and S of them are replaced by identification blocks, P-S free blocks can be replaced with other types of control blocks, and the control block can be a code block carrying control information. In summary, it is sufficient to ensure that there are no free blocks in the sub-slot that may be added or deleted.
  • the transmitting end may be deleted or replaced by the free block in the sub-slot, so that the code stream of the time slot does not include the subsequently inserted free block for adjusting the rate.
  • the free block replacement here may include replacing with a non-free block or replacing with a different type of free block of the free block after forming the code stream.
  • the non-free block may include: a plurality of code blocks carrying valid information, such as the foregoing identification block and control block.
  • the identification block carries at least one of the following information:
  • sub-slot identifier which is used to indicate a resource location of the sub-slot;
  • the sub-slot identifier may be a sub-slot number and/or a sub-slot name;
  • An empty identifier configured to indicate whether the sub-timeslot carries the service data
  • a bearer type flag which is used to indicate that the sub-slot carries all service data or part of service data of a single client service; if a client service is all carried in the sub-slot, the bearer type flag is the first value; if the customer service
  • the bearer type flag may be the second value, and the first value and the second value are different.
  • the bearer type flag may correspond to one or more bits, and if it corresponds to 1 bit, the two values of "1" and "0" of the bit correspond to the first value. And the second value;
  • the total number of sub-slots of the client is used to indicate the number of sub-slots occupied by the client service; the sub-slot information here includes the number of sub-slots occupied by a single client service. For example, the current service of customer A and the service of customer B share one time slot, the service of customer A occupies three sub-time slots of 1G, and the service of customer B occupies two sub-time slots of 1G, then the total customer The number of sub-slots indicates that customer A occupies 3 sub-slots, and customer B occupies 2 sub-slots.
  • the identification block is an identification block in a subslot occupied by the service of the client A, the number of subslots occupied by the service of the client A indicated by the total number of subslots of the client; The identification block in the sub-slot occupied by the service of the customer B. At this time, the number of sub-time slots occupied by the service of the customer B indicated by the total number of sub-slots of the customer.
  • the customer service may be classified according to customers, or may be classified according to service types. If the customer differentiates, the business of different customers corresponds to different customer services; if the business type is divided, the different services of the same customer will correspond to different customer services.
  • the intra-subslot time slot identifier is used to indicate the time slot identifier of the sub-slot in all sub-time slots occupied by a single client service.
  • the intra-subslot time slot identifier includes: a sub-slot number in the client or a sub-slot name in the client.
  • the customer service 1 occupies 3 sub-timeslots of 5 time slots in one time slot; the sub-slot time number in the time slot is 3, but in the 3 sub-time slots occupied by the client service
  • the slot number can be any one of 0, 1, or 2.
  • the sub-slot identifier in the client may be a splicing of information blocks for a subsequent client to perform a single client service according to the sub-slot number in the client, thereby obtaining the received information in the correct order.
  • the verification information is used to perform verification of the identification block.
  • the verification information may be various types of verification information, and the verification information may include: a verification code, for example, a Cyclic Redundancy Check (CRC), the sea.
  • CRC Cyclic Redundancy Check
  • the identifier block carries a check code
  • the check code can be used to check other information except the check information in the identifier block, and ensure the correctness of the content of the identifier block received by the receiving end.
  • the check code can be divided into: an error checking code and an error correcting code; if the error checking code can only determine whether there is a transmission error, if the error occurs, the data can be acquired again by resending the request, and the error correction is performed.
  • the code comes with a certain error correction capability. If a transmission error is found, error correction can be performed, so that even if a transmission error occurs, the correct transmission content can be obtained by error correction, thereby reducing the transmission.
  • the verification information may select an error correction code having error correction capability such as CRC.
  • the CRC may be further divided into a 4-bit CRC4, an 8-bit CRC8, a 16-bit CRC16, and a 32-bit CRC32.
  • CRC4 or CRC8 may be selected as the check information, and the remaining content of the identifier block may be verified by using a CRC4 algorithm or a CRC8 algorithm.
  • secure transmission of information in the identification block may be implemented to prevent tampering.
  • the identification block is an O code block.
  • FIG. 3 is a schematic diagram of constructing the identification block by using a code block format of an O code block.
  • the identifier block adopts a 66-bit code block structure.
  • the O code block in the standard is used, and the O code block is expanded.
  • the O code block is a control block, the first two bits are "10", which is used to indicate the type of the code block, and then one byte (8 bits) is 0x4B (4B is hexadecimal), followed by three
  • the data contents of the bytes are Data 1, Data 2, and Data 3.
  • the sequence code feature of the O code At the position of 34 to 37 bits, it is the sequence code feature of the O code, and "0" can be used as the sequence code feature to indicate that the data content of the first three bytes conveys the status of the customer failure information.
  • the serial code feature is extended, and a "C" (hexadecimal C, ie, decimal 12) flag is used to indicate that it is an identification block, and other contents may be used in actual applications. All subsequent contents are all filled with "0".
  • the step S110 may include:
  • one slot includes the number of sub-slots and the resource location of the sub-slots.
  • the transmission rate of a single client service and the number of customer services determine the total transmission rate required.
  • the total transmission rate determines that it needs to be carried by one time slot. If one time slot is exceeded, multiple time slots may be required to carry It may be necessary to further determine the bearer of the carried customer service according to each time slot.
  • the bandwidth corresponding to the sub-timeslot is determined from the maximum effective transmission of the transmission resources of the time slot.
  • one customer service to be transmitted is three, and the transmission rates of three customer services are 0.8 Gbit/s, 2 Gbit/s, and 2 Gbit/s, respectively.
  • the bandwidth of a time slot is 5 Gbit/s
  • one time slot can be divided into five sub-timeslots of 1 Gbit/s, and the transmission rate is 0.8 Gbit/s, occupying one sub-timeslot, and the transmission rate is occupied by 2 Gbit/s. 2 sub-slots.
  • the 5 Gbit/s time slot can be divided into four sub-timeslots with a bandwidth of 1.25 Gbit/s, and the transmission rate.
  • the customer service of 1.25 Gbit/s occupies one sub-slot, and the customer service with a transmission rate of 2.5 Gbit/s occupies 2 sub-timeslots.
  • the number of sub-slots divided in step S110 of the present embodiment is generally not less than the number of client services transmitted in one time slot.
  • the minimum unit of data transmission may be one code block.
  • the bandwidth occupied by multiple sub-time slots divided by one time slot is The bandwidth occupied between equal or different sub-timeslots is an integer multiple.
  • the transmission rates of the three client services are 0.8 Gbit/s, 2 Gbit/s, and 2 Gbit/s, respectively, and a time slot with a bandwidth of 5 Gbit/s can be divided into three sub-time slots, and the three sub-time slots.
  • the bandwidth of the slot is 1 Gbit/s, 2 Gbit/s and 2 Gbit/s, respectively; obviously the bandwidth of different sub-slots is an integer multiple.
  • the code stream may be formed according to the bandwidth selection code block of each sub-slot. If the time slots of the sub-slots included in one time slot are equal, Polling each sub-slot in turn, if a code stream of a time slot is selected from the i-th sub-slot, and if the i-th sub-slot is not the last sub-slot, the next time from the i+1th Each sub-slot selects a code block to form a code stream of the time slot. If the ith sub-time slot is the last sub-time slot, the next time a code block is selected from the first sub-time slot to form a code stream of the time slot. .
  • a time slot includes a plurality of sub-slots having unequal bandwidths, for example, the bandwidth of the first type of sub-slots is N times the bandwidth of the second type of sub-slots, if it is currently determined to select code blocks from the first type of sub-slots And selecting, at one time, N code blocks to form a code stream of the time slot, and if it is currently determined to select a code block from the second type of sub-time slots, selecting one code block from the second type of sub-time slots to form the time slot.
  • the stream of code If the bandwidth of the sub-slots divided by one slot is not equal, the ratio of the number of code blocks selected from the corresponding different sub-slots is equal to the bandwidth ratio of each sub-slot.
  • the embodiment provides a data transmission method, including:
  • Step S210 receiving a code stream
  • Step S220 Determine, according to the identifier block extracted in the code stream, the division information of the time slot;
  • Step S230 Extract, according to the split information, information blocks corresponding to customer services from sub-time slots of the time slot.
  • the method provided in this embodiment may be a data transmission method applied to the receiving end.
  • the receiving end can be a network device in the FlexE.
  • the code stream is received in step S210, and the code stream includes a plurality of code blocks in which the identification block is included.
  • the identifier block may be extracted according to the start identifier of the code block or the identifier of the code block type.
  • the division information of the time slot may be extracted from the identification block, and the division information includes: sub-slot information included in one slot and/or allocation information of the sub-slot.
  • the information block corresponding to the customer service may be extracted from each sub-time slot of the time slot according to the allocation information.
  • the resource location occupied by the information block corresponding to each client service can be known, and the number of information blocks occupied by one client service can be known, so that the information block is extracted and combined in the corresponding resource location. , recover all the information blocks of a customer's business.
  • one time slot is divided into multiple sub-time slots, and one time slot can be used for transmission of service data of two or more customer services, thereby reducing waste and smoothly solving by introducing the identification block.
  • the method further includes:
  • Step S211 Freeing the free block for adjusting the rate from the code stream.
  • the free block may be a code block added by the transmitting end or added by the intermediate transmitting node and used to adjust the transmission rate, and the free block may be stripped. In this embodiment, the free block may be stripped, and the subsequent block of the free block may be reduced. Interference with the processing of information blocks.
  • the free block stripped in this step may be a free block added in step S131 of the foregoing embodiment and a free block added by the intermediate device at the time of transmission.
  • the free block that is included in the sub-slot can be the first type of free block
  • the free block that is specifically inserted in step S131 can be the second type of free block and the second type of free block that the intermediate device joins.
  • Step S211 may be performed at any position between step S210 and step S230.
  • step S211 may be performed synchronously with step S220, or step S211 may be performed first, then step S220 may be performed, or may be performed before step S220, only need to be ensured.
  • Step S211 may be performed before step S230.
  • the identifier block carries at least one of the following information: a total number of sub-timeslots for indicating the number of sub-slots included in one of the time slots; and a sub-slot identifier for indicating the sub-timeslot
  • the resource location the no-load identifier is used to indicate whether the sub-timeslot carries the service data; the bearer type flag is used to indicate that all service data or part of service data of the single client service is carried in the sub-slot;
  • the number of slots is used to indicate the number of sub-slots occupied by the client service; the sub-slot identifier in the client is used to indicate the slot identifier of all sub-time slots occupied by the sub-slot in a single client service; the verification information is used for performing The verification of the identification block.
  • the identifier block carries the check information, in order to avoid the transmission of the identifier block or the malicious tampering.
  • the step S220 may include: performing verification on the identifier block by using the verification information in the identifier block; if the identifier block is verified, extracting at least the following from the identifier block. a: a total number of sub-slots, which is used to indicate the number of sub-slots included in the time slot; a sub-slot identifier, which is used to indicate the resource location of the sub-slot; and a no-load identifier, which is used to indicate whether the sub-timeslot is carried.
  • the service data; the bearer type flag is used to indicate that all the service data or part of the service data of the single client service is carried in the sub-slot; the total number of sub-slots of the customer is used to indicate the sub-slot information occupied by the single client service;
  • the intra-subslot time slot identifier is used to indicate the time slot identifier of the sub-slot in all sub-time slots occupied by a single client service.
  • the identification block passes the check, it indicates that the identification block does not have a transmission error or is maliciously tampered with, or the transmission error or malicious tampering has been corrected, and the division information currently extracted from the identification block is correct, and can be used to guide the receiving end. Extraction of information blocks and splicing of information blocks for different customer services.
  • the step S230 may include: determining, according to the split information, a number of sub-slots included in one slot and a resource location of the sub-slot; stripping the identifier from the sub-slot Block, get the information block corresponding to the customer's business.
  • the resource location may be a time resource location, for example, the bandwidth of one slot is 5 Gbit/s, and is divided into 5 sub-slots, and 1 sub-slot in one slot of one slot.
  • the time slot corresponds to a transmission time of 0.2 seconds.
  • the transmission time of the 0.2 second transmission may be continuously distributed in a 0.2 second of 1 second. It may also be divided into multiple sub-time units distributed in the 1 second, for example, 1 sub-slot.
  • Including A code blocks the transmission duration occupied by one code block is bs, and the resource position of one sub-slot can be composed of A bs, which can be distributed in different time domain positions within 1 second, these time domains
  • the location is one of the foregoing resource locations. The above is only an explanation of the location of the resource. Any specific implementation of the time slot according to the embodiment of the present application may be interpreted as a sub-slot. Explanation.
  • this embodiment provides a data transmission apparatus, including:
  • the dividing module 110 is configured to divide a time slot into multiple sub-time slots according to information of the customer service;
  • the adding module 120 is configured to add a code block in the sub-slot, where the code block includes: an information block and an identification block, where the information block includes service data of the customer service; the identifier block includes the Division information of time slots;
  • the component module 130 is configured to use the code block of the sub-slot to form a code stream of the time slot;
  • the sending module 140 is configured to send the code stream.
  • the data transmission apparatus can be applied to a transmitting end, for example, to a transmitting end of a flexible Ethernet.
  • the partitioning module 110, the adding module 120, the component module 130, and the sending module 140 may each correspond to a program module, and the program module may include various computer executable programs, and the computer executable program may include: a source program and/or Target program, etc. If the processor executes the above-mentioned program module, the division of the above-mentioned time slot, the addition of the code block in the sub-slot, the composition of the code stream of a single time slot, and the transmission of the code stream can be realized.
  • the apparatus further includes: an insertion module, which is also a program module, configured to insert a free block for rate adjustment between the code blocks of the code stream; the sending module 140, Specifically, it is used to send a code stream in which the free block is inserted.
  • an insertion module which is also a program module, configured to insert a free block for rate adjustment between the code blocks of the code stream
  • the sending module 140 Specifically, it is used to send a code stream in which the free block is inserted.
  • the insertion module is configurable to insert one of the free blocks every predetermined number of code blocks in the code stream. For example, if the bandwidth of one slot is 5 Gbit/s, a predetermined number of 5,000 blocks or slightly less than 5000 blocks can be inserted into a free block for rate adjustment.
  • the adding module 120 can be configured to replace a free block in the sub-slot with the identification block.
  • the identifier block carries at least one of the following information: a total number of sub-timeslots for indicating the number of sub-slots included in one of the time slots; and a sub-slot identifier for indicating the sub-timeslot
  • the resource location the no-load identifier is used to indicate whether the sub-timeslot carries the service data; the bearer type flag is used to indicate that all service data or part of service data of the single client service is carried in the sub-slot;
  • the number of slots is used to indicate the number of sub-slots occupied by the client service; the sub-slot identifier in the client is used to indicate the slot identifier of all sub-time slots occupied by the sub-slot in a single client service; the verification information is used for performing The verification of the identification block.
  • the identification block is an O code block; that is, the code block format of the identification block adopts a code block format of an O code block.
  • the O code block is a type of the control code block.
  • the receiving end traverses the type identifier of the code block to extract the control code block first. If the identifier block is constructed in the format of the O code block, the receiving is performed.
  • the terminal can select the identification block according to the normal code stream processing order, quickly obtain the division information, complete the determination of the information block of each subsequent customer service, and not only has the characteristics of the information block extraction speed block of each customer service, but also has the same The compatibility of the prior art is strong.
  • the partitioning module 110 is configured to determine, according to the number of customer services and the transmission rate of a single client service, that one slot includes a number of sub-slots and a resource location of the sub-slots.
  • the embodiment provides a data transmission apparatus, including:
  • the receiving module 210 is configured to receive a code stream
  • the determining module 220 is configured to determine split information of the time slot according to the identifier block extracted in the code stream;
  • the extracting module 230 is configured to extract, according to the split information, information blocks corresponding to customer services from sub-time slots of the time slot.
  • the data transmission device is applicable to a receiving end, for example, a receiving device applicable to FlexE.
  • the receiving module 210, the determining module 220, and the extracting module 230 may each correspond to a program module, and the program module may include various computer executable programs, and the computer executable program may include: a source program and/or a target program. If the processor executes the above program module, the above-mentioned code stream reception, the determination of the division information, and the extraction of the information block can be realized.
  • the apparatus further includes:
  • the first stripping module is configurable to strip out free blocks for adjusting the rate from the code stream.
  • the determining module 220 is configured to check the identification block by using the verification information in the identification block; if the identification block passes the verification, extract from the identification block. At least one of the following: a total number of sub-slots for indicating the number of sub-slots included in one of the slots; a sub-slot identifier for indicating a resource location of the sub-slot; and an empty identifier for indicating the sub-slot Whether the time slot carries the service data; the bearer type flag is used to indicate that all the service data or part of the service data of the single client service is carried in the sub-slot; the total number of sub-slots of the client is used to indicate the sub-servicing of the single client service.
  • the time slot information is used to indicate the time slot identifier in the sub-slots of all sub-time slots occupied by the single client service.
  • the extracting module 230 may be configured to determine, according to the splitting information, a number of sub-slots included in one slot and a resource location of the sub-slot; and strip out the sub-slot The identification block is obtained, and the information block corresponding to the customer service is obtained.
  • the embodiment provides a network device, including:
  • the transceiver 310 is configured to send and receive information
  • the memory 320 is configured to store information
  • the processor 330 is respectively connected to the transceiver 310 and the memory 320, and is configured to control information transmission and reception of the transceiver 310 and information storage of the memory 320 by executing computer executable code stored in the memory 320. And executing one or more data transmission methods applied to the transmitting end or performing one or more data transmission methods applied to the receiving end.
  • the transceiver 310 can correspond to an optical port of the transmitting end or the receiving end, and can be used for transmitting an optical signal and/or receiving an optical signal.
  • the memory 320 can be comprised of various types of storage media that can be used to store various information, for example, at least for storing computer executable code executed by the processor 330.
  • the processor 330 can be various types of processors, and can include: a central processing unit, a microprocessor, a digital signal processor, a programmable array or an application specific integrated circuit, etc.; the processor can be executable by a computer Execution, the transceiver can be controlled to send and receive information, and the information of the memory can be written and read.
  • one or more data transmission methods can be implemented. For example, the method shown in FIG. 1, FIG. 2 and FIG. 4 can be executed. One or more of them. If the network device is the foregoing transmitting end, at least the data transmission method shown in FIG. 1 and/or FIG. 2 can be implemented; if the network device is the foregoing receiving end, at least the foregoing data shown in FIG. 4 can be implemented. Transmission method.
  • the processor 330 can be respectively connected to the transceiver and the memory through a bus (for example, the integrated circuit bus I 2 C).
  • This example provides a transmission method based on the low-rate client service in the FlexE protocol, including:
  • Step 1 The sender determines the number of sub-slots based on the number and rate of low-rate customer services, and the sub-slot location where the client is located. The free block in the subslot is replaced with an identification block.
  • Step 2 According to the order relationship of the sub-slots, the sub-slots are multiplexed into a code stream with a rate of about 5 Gbit/s, and an appropriate amount of free blocks are inserted between the code blocks of the code stream, and then according to the FlexE protocol.
  • the slot is sent to the receiving end.
  • the low-rate customer service is a customer service whose transmission rate can be lower than the bandwidth corresponding to one time slot.
  • the bandwidth of one slot is 5 Gbit/
  • the service rate of the low-rate client is less than 5 Gbit/s. Customer business.
  • Step 3 The receiving end extracts the code stream from the FlexE protocol time slot, strips out all the free blocks, and obtains an initial appearance of the code stream corresponding to the time slots into which the plurality of low-rate client services are spliced.
  • all the free blocks may be a free block inserted after the code stream corresponding to the time slot is formed after the multiple sub-time slots are combined into a time slot, and the free block may include: a free block inserted by the transmitting end itself, including the middle The free block inserted by the device, so that the original code stream of one time slot can be obtained by the stripping of the free block.
  • Step 4 According to the content of the identification block (the foregoing division information), determine the relationship between the time slot and the sub-slot, the resource location of the sub-slot occupied by each client service, extract the service data of the customer service, and restore the identification block. Into a free block, restore the original each customer service information block.
  • the step 1 may include the following steps, but is not limited to the following steps:
  • Step 1.1 Determine the number and transmission rate of customer services sharing a strip of FlexE protocol time slots.
  • Step 1.2 Determine the number of sub-slots divided by one time slot, and the number and location of occupied sub-slots for each customer service.
  • the information blocks of the customer service are placed in multiple sub-slots in sequence; otherwise, each client occupies one sub-slot.
  • Step 1.3 determining content of the identification block in each sub-slot, the content including the foregoing various division information
  • Step 1.4 Replace all free blocks in the sub-slot with the identification block.
  • Step 1.5 the number of identification blocks may be deleted or increased as appropriate to adjust the rate.
  • the sender and/or the intermediate device may appropriately delete or increase the number of identification blocks to achieve consistency of the exit rate and the entry rate.
  • the step 1.3 can include:
  • Step 1.3.1 A special information block conforming to the 802.3 standard is used as an identification block, for example, an O code block, and the O code block is appropriately extended.
  • Step 1.3.2 The identifier block includes, but is not limited to, the total number of sub-time slots, the sub-slot identifier, the no-load identifier, the bearer type flag, and the total number of sub-slots of the client, which are used to indicate the number of sub-time slots occupied by the client service. ; sub-slot identification, verification information, etc. within the customer.
  • Step 1.3.3 The sub-slot position and the client condition carried by the sub-slot, determine the content of the identification block, and finally determine the check value of the CRC.
  • the CRC check value is the result calculated by some mathematical operation formula according to other contents in the identification block, such as CRC4 operation and CRC8 operation.
  • the step 2 may include:
  • Step 2.1 Starting from the first sub-slot, one information block is sequentially taken from each sub-slot, and in this cycle, all sub-time slots are multiplexed into a 5G-rate service flow.
  • Step 2.2 Insert a free block at intervals of 5000 block information blocks (or less than 5000 information block intervals) in the 5G rate service flow, and use the medium-to-medium frequency between the devices in the network at a maximum of 200 PPM (plus or minus 100 PPM). Speed adjustment when frequency offset.
  • Step 2.3 The service flow is carried in the FlexE time slot and sent to the receiving end.
  • the step 3 may include:
  • Step 3.1 Determine the time slots in the FlexE protocol that carry low-rate customer traffic.
  • Step 3.2 Obtain all code blocks from the FlexE protocol time slot and strip all free blocks in the code block.
  • the step 4 may specifically include:
  • Step 4.1 Determine the location of all the identification blocks in the code stream according to the characteristics of the identification block (the type identification and format of the identification block).
  • Step 4.2 Verify the content of the identification block, perform an operation according to the calculation formula of the sending end and the content of the participating operation, and determine whether the operation result is consistent with the verification result carried by the identification block itself. The match indicates that the identification block is correctly verified, otherwise the verification error is indicated. Verify that the correct identification block continues to analyze other content.
  • Step 4.3 Analyze other contents of the identification block, determine the total number of sub-timeslots, the order relationship of the identification blocks in the total sub-timeslots, and determine other sub-slot positions.
  • Step 4.4 After determining the positions of all the sub-time slots, divide the code stream corresponding to one time slot into the code streams of the plurality of sub-time slots.
  • Step 4.5 Determine the customer information according to the content of the identification block in each sub-slot, and recover the code block of the customer service.
  • the code stream of the client service is recovered according to the position order of the sub-slots and the code block context.
  • Step 5.5 Replace the identification block in each data stream with a free block to recover the original customer information flow block.
  • the FlexE protocol is defined in terms of physical layer 100G rate.
  • the 100G data packet is 64/66 encoded before the data packet is transmitted, and the 64-bit code block is expanded into a 66-bit information block, and the added 2 bits are located in front of the 66-bit block.
  • As the start flag of the 66-bit block it is then sent out from the optical port in a 66-bit block.
  • the optical port discriminates the 66-bit block from the received data stream, and then recovers the original 64-bit data from the 66-bit block, reassembling the data message.
  • the FlexE protocol is in the 64-bit to 66-block conversion layer.
  • the 66-bit code blocks are sorted and planned before the 66-bit code block is transmitted, as shown in Figure 8. For every 100 66-bit code block partitions for 100G services. As a block group, there are 20 code blocks in each group, representing 20 time slots, each time slot representing a service speed of 5G (bit/s) bandwidth.
  • a FlexE overhead block is inserted every 1023 code block groups (1023*20 code blocks), as shown in FIG. After inserting the overhead block, continue to send the code block, after transmitting the second 1023*20 code blocks, insert the overhead block, and so on, so that during the process of transmitting the code block, the overhead block is periodically inserted.
  • the interval between two adjacent overhead blocks is 1023*20 code blocks.
  • each physical layer When four physical layers of 100 Gbit/s are bundled into a logical service bandwidth of 400 Gbit/s, as shown in FIG. 9, each physical layer still forms a code block group according to 20 code blocks, and is inserted every 1023 code block groups. An overhead byte.
  • 4 channels and 20 code blocks are assembled into a block group consisting of 80 code blocks, and there are 80 time slots in the block group. The customer service is transmitted in these 80 time slots, each of which has a bandwidth of 5 Gbit/s and a total service bandwidth of 400 Gbit/s.
  • the FlexE overhead block is a 66-bit-long overhead block.
  • an overhead block is inserted every 1023*20 code blocks.
  • the overhead block plays a positioning function in the entire service flow.
  • the location of the first code block group in the service and the location of the subsequent code block group can be known.
  • the content of the overhead block is shown in Figure 4.
  • the eight consecutive overhead blocks form an overhead frame.
  • An overhead block consists of a 2-bit block flag and 64-bit block contents. The block flag is located in the first 2 columns, the next 64 columns are the block contents, the block flag of the first overhead block is 10, and the block flags of the following 7 overhead blocks are 01 or SS (SS indicates that the content is uncertain).
  • the content of the first overhead block is: 0x4B (8 bits, 4B in hexadecimal), "C” bit (1 bit, indicating adjustment control), OMF bit (1 bit, indicating overhead frame multiframe indication), RPF Bit (1 bit, indicating remote defect indication), RES bit (1 bit, reserved bit), FlexE bundle number (group number, 20 bits total), 0x5 (4 bits, hexadecimal "5") ), "000000” (28 bits in total, all "0").
  • 0x4B and 0x5 are the flag indications of the first overhead block.
  • the reserved portion is reserved and has not been defined, as shown in the black block shown in FIG.
  • the first overhead block is defined as 4B (hexadecimal, identified as 0x4B) and 05 (hexadecimal, identified as 0x5).
  • Two field identifiers When the corresponding location is the content of the fields 4B and 05 in the overhead block, it indicates that the overhead block is the first overhead block, and the following seven overhead blocks constitute one frame.
  • the OMF field is a multiframe indication signal as shown in FIG. OMF is a single-bit value, which is "0" in 16 consecutive frames, then "1" in 16 consecutive frames, then "0" in consecutive 16 frames, and then "1" in consecutive 16 frames, every 32 frames. Repeat once, so that the multiframe is composed of 32 frames.
  • the physical layer (Physical, PHY) rate defined by the FlexE protocol is 100G, and 20 slots are defined on the 100G PHY, and each slot has a bandwidth of 5G (bit/s).
  • 5G bit/s
  • the minimum bandwidth of the customer service carried by the FlexE protocol is 5G bit/s, which is carried by a FlexE time slot.
  • the customer service bandwidth is less than 5G, a time slot with a bandwidth of 5G bit/s must also be occupied, and there is a waste of bearer.
  • the customer service has many low-speed services such as 10M bit/s, 100M bit/s, 1G bit/s, etc. These customer services may be an enterprise group private line, a bank branch line, and a government agency line. Independent pipelines are delivered to achieve physical isolation to ensure information security.
  • the FlexE protocol provides time slot functions for physical isolation. However, if a 5G pipe is used to carry 1G or 10M customer services, the bearer bandwidth is very wasteful. If you share a FlexE time slot with five 1G client services, as shown in Figure 11. In a FlexE time slot, one code block of the first client is carried in sequence, one code block of the second client, one code block of the third client, one code block of the fourth client, and one code block of the fifth client.
  • the first customer has a code block... and so on, so that five customers share a FlexE time slot, which improves bandwidth utilization. Since the location between the customers is determined by the order relationship, it can only be suitable for point-to-point transmission between two devices, and cannot be networked to achieve end-to-end (penetrating intermediate device) transmission. As shown in Figure 12, at the Provider Edge (PE) node, five 1G customer services share a FlexE time slot through polling multiplexing, and are transmitted from the PE device to the first P device.
  • the device is a standard FlexE interface. It does not support 1G service processing. It can only process FlexE time slots with 5G bandwidth.
  • a 5G time slot is treated as a client, and the 5G service of the west entrance is crossed to the east exit, and then sent out.
  • the P-device westbound and eastbound exit rates are not equal (absolutely equal speeds are unrealistic)
  • the P-node needs to adjust the rate.
  • the east exit speed is greater than the west entrance speed
  • the P point device needs to insert a free block in the FlexE data stream.
  • the free block does not carry customer information and is only used for rate adjustment.
  • FIG. 13 a method for sharing a FlexE time slot by five low-rate client services, where the FlexE time slot is divided into multiple sub-timeslots, and the data stream is determined to be carried on those sub-time slots, and the identification block is used.
  • the identification block includes the number of sub-slots of the FlexE slot, the client information on the sub-slot, and the verification information.
  • the light red block is the identification block of the red customer
  • the light blue block is the identification block of the blue customer.
  • FIG. 3 shows the structure of the identification block.
  • the identification block uses the 66-bit code block structure defined in the 802.3 standard.
  • the O code block in the standard is used, and the O code block is extended.
  • the O code block is a control block.
  • the first two bits are "10", then one byte (8 bits) is 0x4B (4B is hexadecimal), followed by three bytes of data. content.
  • the serial code feature of the O code At the position of 34-37, it is the serial code feature of the O code.
  • the standard uses "0" as the serial code feature to indicate that the data content of the first three bytes conveys the status of the customer fault information.
  • the serial code feature is extended, and a "C" (hexadecimal C, ie, decimal 12) flag is used to indicate that it is an identification block, and other contents may be used in actual applications. All subsequent contents are all filled with "0".
  • C hexadecimal C, ie, decimal 12
  • the slot division is transmitted with 3 bytes defined in the O code.
  • the contents of 3 bytes include (but are not limited to) the total number of slots, the slot number of the block, and the current time.
  • the total number of slots indicates how many sub-slots are divided into 5G slots; the total number of sub-slots is used to indicate the number of sub-slots included in one of the slots; and the sub-slot identifier is used to indicate the resources of the sub-slot.
  • an unloaded identifier used to indicate whether the sub-timeslot carries the service data
  • a bearer type flag used to indicate that all service data or part of service data of a single client service is carried in the sub-slot
  • the number of sub-slots used to indicate the occupation of the customer service
  • the sub-slot identifier in the customer is used to indicate the time slot identifier of all sub-time slots occupied by the sub-slot in a single client service
  • the verification information is used to perform the Identifies the check of the block.
  • the sub-slot number of the block, etc. After determining the total number of sub-timeslots, the sub-slot number of the block, etc., according to some mathematical algorithm (such as CRC4 check algorithm, CRC8 check algorithm), these contents are operated, and the operation result is placed in the identification block. CRC check location.
  • CRC check location At the receiving end, use the same mathematical calculation method to calculate the same content and see if the operation result matches the check value of the carried CRC.
  • the anastomosis indicates that the verification is correct, and the receiving end extracts the remaining content in the identification block when the verification is correct.
  • the identification block is used to replace the free block in the sub-slot.
  • the content in the identification block indicates the division method of the FlexE slot: how many sub-slots are divided, and the customer situation carried on each sub-slot. Since there are many free blocks in each sub-slot, there are many kinds of identification blocks. Even if one identification block has an error during the transmission, when the next identification block appears, the sub-slot structure can be correctly analyzed. When the free block in the sub-slot is replaced, the free block does not appear in the code stream of the sub-slot, the free block added and deleted in the code stream of the time slot, and the resources of the sub-slot after all the free blocks are deleted at the receiving end The location relationship will be consistent with the location of the resource at the sender.
  • the information blocks of all the sub-slots are interleaved and multiplexed into a near-5G rate information according to the order relationship and the sequential polling according to the positional relationship of the sub-slots in the identification block.
  • the block code stream carries the block stream on the FlexE protocol time slot. Since there is no free block in the information block stream, the rate cannot be dynamically adjusted according to the frequency condition in the network transmission, so the transmission cannot be carried end-to-end on the network. An appropriate amount of free blocks (blocks) are inserted in these information streams, as in the block of FIG.
  • the deviation between the time-frequency of the network interface and the nominal frequency cannot exceed 100PPM (PPM is one-millionth) or negative 100PPM, so between any two devices in the network (maximum frequency and minimum frequency)
  • the maximum frequency difference does not exceed 200PPM. It only needs to be able to tolerate 200PPM frequency deviation adjustment and can be transmitted on the network. Therefore, in the information stream block, a free block is inserted every 5000 blocks, which is equivalent to every million blocks. There are 200 free blocks that can be added or deleted by the intermediate device. Of course, more free blocks can be inserted, but some transmission bandwidth is lost.
  • the service flow block is sent out through the FlexE time slot bearer.
  • each intermediate P device adds or deletes the free block in the service flow according to the time-frequency deviation condition. Send the service to the receiving PE device.
  • the FlexE time slot carrying the low-rate client service is determined, all the code blocks are extracted, and then all the free blocks in the code blocks are stripped off, and the remaining information blocks of the low-rate client service are discarded.
  • the identification block look for the identification block and verify that the identification block is correct. Using the same mathematical calculation method, the same content is calculated, and the verification result is consistent with the check value of the carried CRC, and the coincidence indicates that the verification is correct.
  • various contents in the division information are extracted, and according to the division information, it is known how many sub-slots, the order relationship between each sub-slot, and the customer information carried on each sub-slot.
  • the customer information is carried on multiple sub-slots, it can know how many sub-slots the customer occupies, the position and order relationship of the sub-slots, so that the customer service can be recovered.
  • the FlexE time slot is divided into 5 by sharing one FlexE time slot by five 1G customers (customer 1, customer 2, customer 3, customer 4, and customer 5, respectively, as shown in FIG. 15).
  • the sub-slots; the sender determines the content of the identification block according to the service data carried in each sub-slot, as shown in FIG.
  • the identification block indicates that there are a total of five sub-slots (the order relationship of each sub-slot is 0, 1, 2, 3, 4, 0, 1), and the first customer service is transmitted on the first sub-slot, so the client
  • the value of the slot number of the block in the identification block is "0", indicating that the location of the information block is the first sub-slot position; and so on, the value of the slot number of the block in the identification block of the second client service is " 1".
  • the FlexE slot As shown in Figure 16, four sub-slots are divided in the FlexE slot, but there are only three 1.25 Gbit/s client services, and the three client services are carried over a FlexE slot.
  • the three customer segments are transmitted on sub-slots 0, 1, and 3, respectively, and the sub-slot 2 does not carry client services.
  • the identification block As shown in FIG. 15, the contents of the idle sub-slot are all the same, and are all identification blocks.
  • the content in the identifier block indicates that no service data is carried on the sub-timeslot. As shown in FIG. 17, the identifier block having one sub-slot is given the idle state and does not carry any client information.
  • sub-slots there are two sub-slots indicating that the customer service occupies two sub-slots, one sub-slot is the first sub-slot of the customer service, and the other sub-slot is the second sub-time of the customer service. Gap.
  • the identification of the identity block and the discovery that the client service occupies multiple sub-slots it is determined that the customer service has those sub-slots, the order of the sub-slots in the customer service, and then sequentially from the sub-slots according to the order relationship. Extract customer information.
  • the disclosed apparatus and method may be implemented in other manners.
  • the device embodiments described above are merely illustrative.
  • the division of the unit is only a logical function division.
  • there may be another division manner such as: multiple units or components may be combined, or Can be integrated into another system, or some features can be ignored or not executed.
  • the coupling, or direct coupling, or communication connection of the components shown or discussed may be indirect coupling or communication connection through some interfaces, devices or units, and may be electrical, mechanical or other forms. of.
  • the units described above as separate components may or may not be physically separated, and the components displayed as the unit may or may not be physical units, that is, may be located in one place or distributed to multiple network units; Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of the embodiment.
  • each functional unit in each embodiment of the present application may be integrated into one processing module, or each unit may be separately used as one unit, or two or more units may be integrated into one unit;
  • the unit can be implemented in the form of hardware or in the form of hardware plus software functional units.
  • the foregoing program may be stored in a computer readable storage medium, and the program is executed when executed.
  • the foregoing storage device includes the following steps: the foregoing storage medium includes: a mobile storage device, a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk.
  • ROM read-only memory
  • RAM random access memory
  • magnetic disk or an optical disk.
  • optical disk A medium that can store program code.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Time-Division Multiplex Systems (AREA)

Abstract

Disclosed in the embodiments of the present application disclose a data transmission method and apparatus, a network device, and a storage medium. The data transmission method comprises: dividing a time slot into a plurality of sub time slots according to information concerning a client service; adding code blocks into the sub time slots, the code blocks including information blocks and identification blocks, the information blocks comprising service data concerning the client service; the identification blocks comprising division information concerning the time slot; using the code blocks of the sub time slots to compose a code stream of the time slot; and sending the code stream.

Description

数据传输方法及装置、网络设备及存储介质Data transmission method and device, network device and storage medium
相关申请的交叉引用Cross-reference to related applications
本申请基于申请号为201810201807.X、申请日为2018年03月12日的中国专利申请提出,并要求该中国专利申请的优先权,该中国专利申请的全部内容在此引入本申请作为参考。The present application is filed on the basis of the Chinese Patent Application No. 201100201, the entire disclosure of which is hereby incorporated by reference.
技术领域Technical field
本申请涉及网络技术领域但不限于网络技术领域,尤其涉及一种数据传输方法及装置、网络设备及存储介质。The present application relates to the field of network technologies, but is not limited to the field of network technologies, and in particular, to a data transmission method and apparatus, a network device, and a storage medium.
背景技术Background technique
随着网络技术的发展,客户需要传输的网络信息越来越多,为了满足客户的日益增长的信息传输需求,研发出了可以提供高速率宽带宽的传输设备。但是在一些情况下,单个客户业务的信息传输量有时候还很低,若一个信息传输量小的客户业务占用一个宽带宽设备来传输,必然会导致网络资源的浪费。With the development of network technology, more and more network information needs to be transmitted by customers. In order to meet the increasing information transmission needs of customers, a transmission device capable of providing high-rate and wide bandwidth has been developed. However, in some cases, the amount of information transmitted by a single client service is sometimes very low. If a client with a small amount of information transmission occupies a wide bandwidth device for transmission, it will inevitably lead to waste of network resources.
例如,在灵活以太网(flexible Ethernet,FlexE)中,网络设备的接口带宽速度从10M(单位:比特/秒,bit/s)提高到100M bit/s,又提高1G bit/s、10G bit/s,目前已经达到100G bit/s的带宽速度,市场上已经开始大量应用100G bit/s的光模块。例如,目前FlexE协议定义的物理层是100G bit/s,在100G bit/s的物理层上定义了20个时隙,每个时隙对应带宽是5G bit/s,若一个客户的信息传输量小于5G bit/s且单独占用一个时隙,必然会导致网络 传输资源的浪费。For example, in flexible Ethernet (FlexE), the interface bandwidth speed of network devices is increased from 10M (unit: bit/second, bit/s) to 100M bit/s, and 1G bit/s, 10G bit/ is increased. s, the bandwidth speed of 100G bit/s has been reached at present, and a large number of optical modules of 100G bit/s have been applied on the market. For example, the physical layer defined by the current FlexE protocol is 100G bit/s, and 20 time slots are defined on the physical layer of 100G bit/s. The corresponding bandwidth of each time slot is 5G bit/s, if a customer's information transmission volume Less than 5G bit/s and occupying one time slot separately will inevitably lead to waste of network transmission resources.
发明内容Summary of the invention
有鉴于此,本申请实施例期望提供一种数据传输方法及装置、网络设备及存储介质,至少可用于缓解资源浪费问题的严重性。In view of this, the embodiments of the present application are expected to provide a data transmission method and apparatus, a network device, and a storage medium, which can at least be used to alleviate the seriousness of the problem of resource waste.
本申请的技术方案是这样实现的:The technical solution of the present application is implemented as follows:
第一方面,本申请实施例提供一种数据传输方法,包括:In a first aspect, an embodiment of the present application provides a data transmission method, including:
根据客户业务的信息将一个时隙划分成多个子时隙;Dividing a time slot into a plurality of sub-time slots according to information of the customer service;
在所述子时隙添加码块,其中,所述码块包括:信息块及标识块,所述信息块包括所述客户业务的业务数据;所述标识块包括所述时隙的划分信息;Adding a code block to the sub-slot, where the code block includes: an information block and an identification block, where the information block includes service data of the customer service; and the identification block includes division information of the time slot;
利用所述子时隙的码块,组成所述时隙的码流;Using the code blocks of the sub-slots to form a code stream of the time slot;
发送所述码流。Send the code stream.
第二方面,本申请实施例一种数据传输方法,包括:In a second aspect, a data transmission method is provided in the embodiment of the present application, including:
接收码流;Receiving a code stream;
根据所述码流中提取的标识块,确定时隙的划分信息;Determining the division information of the time slot according to the identification block extracted in the code stream;
根据所述划分信息,从所述时隙的子时隙中提取出对应客户业务的信息块。And extracting, according to the split information, information blocks corresponding to customer services from sub-time slots of the time slot.
第三方面,本申请实施例一种数据传输装置,包括:In a third aspect, a data transmission apparatus of the embodiment of the present application includes:
划分模块,配置为根据客户业务的信息将一个时隙划分成多个子时隙;a dividing module configured to divide a time slot into a plurality of sub-time slots according to information of the customer service;
添加模块,配置为在所述子时隙添加码块,其中,所述码块包括:信息块及标识块,所述信息块包括所述客户业务的业务数据;所述标识块包括所述时隙的划分信息;Adding a module, configured to add a code block in the sub-slot, where the code block includes: an information block and an identification block, where the information block includes service data of the customer service; and the identifier block includes the time Information on the division of the gap;
组成模块,配置为利用所述子时隙的码块,组成所述时隙的码流;a component module configured to utilize a code block of the sub-slot to form a code stream of the time slot;
发送模块,配置为发送所述码流。a sending module configured to send the code stream.
第四方面,本申请实施例一种数据传输装置,包括:In a fourth aspect, a data transmission apparatus of the embodiment of the present application includes:
接收模块,配置为接收码流;a receiving module configured to receive a code stream;
确定模块,配置为根据所述码流中提取的标识块,确定时隙的划分信息;a determining module, configured to determine slot division information according to the identifier block extracted in the code stream;
提取模块,配置为根据所述划分信息,从所述时隙的子时隙中提取出对应客户业务的信息块。And an extracting module, configured to extract, according to the split information, an information block corresponding to a customer service from a sub-time slot of the time slot.
第五方面,本申请实施例一种网络设备,包括:A fifth aspect of the present disclosure provides a network device, including:
收发器,配置为收发信息;a transceiver configured to send and receive information;
存储器,配置为存储信息;a memory configured to store information;
处理器,分别与所述收发器及存储器连接,配置为通过执行存储在所述存储器中的计算机可执行代码,控制所述收发器的信息收发及所述存储器的信息存储,并实现第一方面或第二方面数据传输方法。a processor, coupled to the transceiver and the memory, respectively, configured to control information transmission and reception of the transceiver and information storage of the memory by executing computer executable code stored in the memory, and implementing the first aspect Or the second aspect of the data transmission method.
第六方面,本申请实施例一种计算机存储介质,其中,所述计算机存储介质存储有计算机可执行代码,所述计算机可执行代码被执行后,能够实现第一方面或第二方面数据传输方法。In a sixth aspect, the computer storage medium of the present application, wherein the computer storage medium stores computer executable code, and after the computer executable code is executed, the data transmission method of the first aspect or the second aspect can be implemented. .
本申请实施例提供的数据传输方法及装置、网络设备及存储介质,将一个时隙拆分成多个子时隙,子时隙的带宽是小于时隙的带宽的,在进行业务数据的传输时,可以以时隙为最小调度单位,如此传输速率小于一个时隙的带宽的客户业务,可以不用再单独占用一个时隙,进而使得传输速率不需要消耗一个时隙所对应带宽的多个客户业务可以子时隙的占用,共用一个时隙,从而避免资源的最小调度单位为时隙时导致的资源浪费现象,提升了资源的有效利用率。The data transmission method and device, the network device and the storage medium provided by the embodiments of the present application split a time slot into multiple sub-time slots, and the bandwidth of the sub-slot is smaller than the bandwidth of the time slot, when the service data is transmitted. The time slot may be the minimum scheduling unit, so that the customer service whose transmission rate is less than the bandwidth of one time slot may not need to occupy one time slot separately, so that the transmission rate does not need to consume multiple client services of the bandwidth corresponding to one time slot. The sub-slots can be occupied and share one time slot, thereby avoiding the waste of resources caused by the minimum scheduling unit of the resources being the time slots, and improving the effective utilization of resources.
附图说明DRAWINGS
图1A为本申请实施例提供的第一种数据传输方法的流程示意图;1A is a schematic flowchart of a first data transmission method according to an embodiment of the present application;
图1B为本申请实施例提供的第二种数据传输方法的流程示意图;FIG. 1B is a schematic flowchart of a second data transmission method according to an embodiment of the present application;
图2为本申请实施例提供的一种利用4个100Gbit/s的光模块传输400Gbit/s的业务的示意图;FIG. 2 is a schematic diagram of a service for transmitting 400 Gbit/s services by using four 100 Gbit/s optical modules according to an embodiment of the present disclosure;
图3为本申请实施例提供的一种标识块的结构示意图;FIG. 3 is a schematic structural diagram of an identifier block according to an embodiment of the present disclosure;
图4A为本申请实施例提供的第三种数据传输方法的流程示意图;4A is a schematic flowchart of a third data transmission method according to an embodiment of the present application;
图4B为本申请实施例提供的第四种数据传输方法的流程示意图;4B is a schematic flowchart of a fourth data transmission method according to an embodiment of the present application;
图5为本申请实施例提供的一种数据传输装置的结构示意图;FIG. 5 is a schematic structural diagram of a data transmission apparatus according to an embodiment of the present application;
图6为本申请实施例提供的另一种数据传输装置的结构示意图;FIG. 6 is a schematic structural diagram of another data transmission apparatus according to an embodiment of the present disclosure;
图7为本申请实施例提供的一种网络设备的结构示意图;FIG. 7 is a schematic structural diagram of a network device according to an embodiment of the present disclosure;
图8为本申请实施例提供的携带有开销块的传输帧的示意图;FIG. 8 is a schematic diagram of a transmission frame carrying an overhead block according to an embodiment of the present disclosure;
图9为本申请实施例提供的400Gbit/s的传输帧映射到4路100Gbit/s的传输的示意图;FIG. 9 is a schematic diagram of mapping a 400 Gbit/s transmission frame to a 4-channel 100 Gbit/s transmission according to an embodiment of the present disclosure;
图10为本申请实施例提供的一种开销帧的示意图;FIG. 10 is a schematic diagram of an overhead frame according to an embodiment of the present disclosure;
图11为本申请实施例提供的子时隙映射到时隙中传输的示意图;FIG. 11 is a schematic diagram of a sub-slot mapping to a time slot transmission according to an embodiment of the present disclosure;
图12为本申请实施例提供的码流的传输示意图;FIG. 12 is a schematic diagram of transmission of a code stream according to an embodiment of the present application;
图13为本申请实施例提供的第一种子时隙复用一个时隙的发送示意图;FIG. 13 is a schematic diagram of transmission of a time slot multiplexed by a first seed slot according to an embodiment of the present disclosure;
图14为本申请实施例提供的第一种子时隙复用一个时隙的接收示意图;FIG. 14 is a schematic diagram of receiving a time slot of a first seed slot multiplexed according to an embodiment of the present disclosure;
图15为本申请实施例提供的一种标识块的内容示意图;FIG. 15 is a schematic diagram of content of an identifier block according to an embodiment of the present application;
图16为本申请实施例提供的第二种子时隙复用一个时隙的发送示意图;FIG. 16 is a schematic diagram of transmission of a time slot multiplexed by a second seed slot according to an embodiment of the present disclosure;
图17为本申请实施例提供的另一种标识块的内容示意图;FIG. 17 is a schematic diagram of content of another identifier block according to an embodiment of the present application;
图18为本申请实施例提供的第二种子时隙复用一个时隙的接收示意图;FIG. 18 is a schematic diagram of receiving a time slot of a second seed slot multiplexing according to an embodiment of the present application;
图19为本申请实施例提供的再一种标识块的内容示意图。FIG. 19 is a schematic diagram of content of another identifier block according to an embodiment of the present application.
具体实施方式detailed description
为使本申请的技术方案更加清楚明白,下文中将结合附图对本申请的实施例进行详细说明。In order to make the technical solutions of the present application more clear, the embodiments of the present application will be described in detail below with reference to the accompanying drawings.
如图1A所示,本实施例提供一种数据传输方法,包括:As shown in FIG. 1A, the embodiment provides a data transmission method, including:
步骤S110:根据客户业务的信息将一个时隙划分成多个子时隙;Step S110: Divide a time slot into a plurality of sub-time slots according to information of the customer service;
步骤S120:在所述子时隙添加码块,其中,所述码块包括:信息块及标识块,所述信息块包括所述客户业务的业务数据;所述标识块包括所述时隙的划分信息;Step S120: Add a code block in the sub-slot, where the code block includes: an information block and an identification block, where the information block includes service data of the customer service; and the identifier block includes the time slot. Divide information;
步骤S130:利用所述子时隙的码块,组成所述时隙的码流;Step S130: using code blocks of the sub-slots to form a code stream of the time slot;
步骤S140:发送所述码流。Step S140: Send the code stream.
本实施例提供的数据传输方法可为:应用于发送端的数据传输方法,例如,应用于FlexE中的发送端中的方法,该方法遵循FlexE协议进行数据传输。The data transmission method provided by this embodiment may be: a data transmission method applied to a transmitting end, for example, a method applied to a transmitting end in FlexE, and the method follows the FlexE protocol for data transmission.
例如,FlexE协议定义网络的物理层是100G bit/s,在100G bit/s的物理层上定义了20个时隙,每个时隙对应带宽是5G bit/s,在本申请实施例中可称为FlexE协议时隙,并简称时隙。在一些实施例中,所述时隙的带宽不局限于5Gbit/s,也可以是25Gbit/s等。所述时隙可以进一步可划分为多个子时隙,一个所述子时隙占用的带宽小于一个所述时隙占用的带宽。例如,若一个时隙的带宽为5G bit/s,将该时隙划平均划分为5个子时隙,则一个子时隙的带宽为1G bit/s。在本申请实施例所述步骤S110可包括:将一个所述时隙平均划分为多个子时隙,在另一些实施例中,也可以将一个所述子时隙划分为多个带宽不等的子时隙。例如,一个时隙包括两类子时隙, 一类子时隙的带宽为A,另一类子时隙的带宽为B,A不等于B。400G bit/s的光模块可以支持带宽为400G bit/s的传输,但400G bit/s的光模块价格昂贵,超过了4个100G bit/s光模块的价格,导致400G bit/s光模块缺少实际应用价值。For example, the physical layer of the network defined by the FlexE protocol is 100 Gbit/s, and 20 time slots are defined on the physical layer of the 100 Gbit/s, and the corresponding bandwidth of each time slot is 5 Gbit/s, which can be used in the embodiment of the present application. It is called a FlexE protocol slot, and is referred to as a slot. In some embodiments, the bandwidth of the time slot is not limited to 5 Gbit/s, and may be 25 Gbit/s or the like. The time slot may be further divided into multiple sub-time slots, and the bandwidth occupied by one of the sub-slots is smaller than the bandwidth occupied by one of the time slots. For example, if the bandwidth of one slot is 5 Gbit/s, and the slot is equally divided into 5 sub-slots, the bandwidth of one sub-slot is 1 Gbit/s. The step S110 of the embodiment of the present application may include: dividing one of the time slots into a plurality of sub-slots, and in other embodiments, dividing the one of the sub-slots into multiple bandwidths. Subslot. For example, one slot includes two types of sub-slots, one type of sub-slots has a bandwidth of A, and another type of sub-slots has a bandwidth of B and A is not equal to B. The 400G bit/s optical module can support a bandwidth of 400G bit/s, but the 400G bit/s optical module is expensive, exceeding the price of four 100G bit/s optical modules, resulting in the lack of 400G bit/s optical modules. Practical application value.
如图2所示,为了在100G bit/s光模块上传递400G bit/s业务数据,根据FlexE协议网络运营商将4个100G的光模块捆绑起来,形成一个400G bit/s传递通道,等效于1个400G bit/s的光模块的传递速度,以降低400G bit/s业务的传输成本。但是网络的物理层依然是100G bit/s,在一些例子中,在100G bit/s的物理层上定义了20个时隙,每个时隙对应带宽是5G bit/s。虽然一个时隙的带宽为5G bit/s,但是对于单一客户业务的传输速率小于5G bit/s占用一个时隙,显然会导致带宽的浪费。若采用本实施例中的方法,将带宽为5G bit/s的时隙进一步根据客户业务的信息(客户业务的传输速率)等进行时隙的划分,以划分的子时隙为资源的最小调度单位,显然低于5G bit/s的客户业务就不用单独占用一个时隙了,从而减少了带宽资源的浪费,提升了资源的有效利用率。As shown in Figure 2, in order to transmit 400G bit/s service data on a 100G bit/s optical module, the network operator of the FlexE protocol bundles four 100G optical modules to form a 400G bit/s transmission channel, which is equivalent. The transmission speed of a 400G bit/s optical module to reduce the transmission cost of 400G bit/s service. However, the physical layer of the network is still 100G bit/s. In some examples, 20 slots are defined on the physical layer of 100G bit/s, and the corresponding bandwidth of each slot is 5G bit/s. Although the bandwidth of one time slot is 5G bit/s, the transmission rate for a single client service is less than 5G bit/s occupying one time slot, which obviously causes waste of bandwidth. If the method in this embodiment is used, the time slot with the bandwidth of 5 Gbit/s is further divided according to the information of the customer service (the transmission rate of the customer service), and the divided sub-timeslot is used as the minimum scheduling of the resource. Units, obviously less than 5G bit/s customer service does not need to occupy a single time slot, thereby reducing the waste of bandwidth resources and improving the effective utilization of resources.
一方面,在本实施例中为了避免单独一个客户业务占用至少一个时隙导致的传输资源浪费,会将所述时隙进行进一步的划分,使得一个时隙划分为多个子时隙,这样不同的客户业务就可以共用一个时隙,减少资源浪费。另一方面,为了方便接收端确定当前时隙的划分,会在子时隙中除了添加携带有业务数据的信息块以外,还会添加标识块;该标识块携带有时隙的划分信息。该时隙的划分信息可包括:指示该时隙划分的子时隙数量、单子时隙的带宽和/或资源位置等子时隙信息。On the one hand, in this embodiment, in order to avoid waste of transmission resources caused by occupying at least one time slot by a single client service, the time slot is further divided, so that one time slot is divided into multiple sub-time slots, and thus different. Customer services can share a single time slot, reducing waste of resources. On the other hand, in order to facilitate the receiving end to determine the division of the current time slot, in addition to the information block carrying the service data, an identification block is added in the sub-slot; the identification block carries the division information of the time slot. The split information of the time slot may include sub-slot information indicating the number of sub-slots divided by the time slot, the bandwidth of the single sub-slot, and/or the resource position.
在另一些实施例中,该时隙的划分信息还可包括:客户业务的子时隙的分配信息,例如,指示一个客户业务占用的子时隙个数、占用的子时隙的资源位置等信息。In other embodiments, the split information of the time slot may further include: allocation information of sub-time slots of the customer service, for example, indicating the number of sub-time slots occupied by one customer service, the resource location of the occupied sub-time slots, and the like. information.
总之,在本申请的实施例中,发送端会将划分信息携带在标识块中发送给接收端,从而接收端就可以根据该标识块确定出当前时隙的子时隙划分及分配情况。在本实施例中,所述客户业务的信息可包括:客户业务的数量及客户业务的传输速率等信息。所述划分信息可包括:时隙被划分子时隙的子时隙信息,及指示子时隙分配给客户业务的分配信息等。In summary, in the embodiment of the present application, the transmitting end carries the split information in the identifier block and sends the information to the receiving end, so that the receiving end can determine the sub-slot division and allocation of the current time slot according to the identifier block. In this embodiment, the information about the customer service may include information such as the number of customer services and the transmission rate of the customer service. The splitting information may include: sub-slot information in which the time slot is divided into sub-slots, and allocation information indicating that the sub-slots are allocated to the customer service, and the like.
在步骤S120中可包括:一个子时隙至少携带一个标识块。在还有一些实施例中,也可以多个被分配给同一个客户业务的子时隙共用一个标识块。总之,在步骤S120中会添加信息块和标识块,但是并不表示所有的各子时隙添加的标识块的个数和资源位置并不具体限定。在子时隙中添加信息块时,可以根据客户业务的业务数据的前后顺序,依次向子时隙添加信息块,可以确保在前的业务数据在时域上的资源位置靠前,方便后续接收端按照业务数据的前后顺序,依次接收所述信息块,简化接收端同一个客户业务的信息块的拼接,恢复出业务数据的原始样貌。In step S120, the method may include: one sub-slot carries at least one identification block. In still other embodiments, a plurality of identification blocks may also be shared by a plurality of sub-slots that are assigned to the same client service. In summary, the information block and the identification block are added in step S120, but the number of the identification blocks and the resource location added by all the sub-time slots are not specifically limited. When an information block is added to a sub-slot, the information block can be sequentially added to the sub-time slot according to the sequence of the service data of the customer service, which can ensure that the previous service data is in front of the resource in the time domain, facilitating subsequent reception. The terminal sequentially receives the information block according to the sequence of the service data, and simplifies the splicing of the information block of the same client service at the receiving end, and restores the original appearance of the service data.
在步骤S130中会利用多个子时隙的信息块及标识块,按照子时隙与时隙的映射关系组成一个时隙的码流。例如,所述步骤S130中可包括:In step S130, the information block and the identification block of the plurality of sub-time slots are used, and the code stream of one time slot is formed according to the mapping relationship between the sub-slot and the time slot. For example, the step S130 may include:
根据子时隙在时隙中的资源位置顺序,依次从子时隙中取信息块及码块,作为时隙的码块,排列这些码块从而构建得到一个时隙对应的码流。又例如,所述步骤S130可包括:轮询各个子时隙,将从子时隙中选择未添加到时隙中的码块中选择码块构建时隙对应的码流。假设,一个时隙包括I个等带宽的子时隙,所述步骤S130可包括:从第i个子时隙取第j个码块组成时隙中第I*j+i个码块。i为不小于I的自然数;j为码块在该子时隙中的序号,所述j的取值为从“0”开始的自然数。According to the order of the resource positions of the sub-slots in the time slots, the information blocks and the code blocks are sequentially taken from the sub-slots, and the code blocks are arranged as the code blocks of the time slots to construct a code stream corresponding to one time slot. For another example, the step S130 may include: polling each sub-slot, and selecting, from the sub-slots, a code stream corresponding to the selected code block construction time slot in the code block not added to the time slot. It is assumed that one slot includes one sub-slot of equal bandwidth, and the step S130 may include: taking the j-th code block from the i-th sub-slot to form an I*j+i code block in the slot. i is a natural number not less than I; j is a sequence number of the code block in the sub-slot, and the value of j is a natural number starting from "0".
在步骤S140中发送时隙的码块,在本申请实施例中可以由多个客户业务共用一个时隙,减少低速率的单一客户业务占用一个时隙导致的资源浪费,且在本实施例中为了确保接收端的正确接收,在子时隙中添加有标识 块,该标识块携带有划分信息,可以用于接收端获得时隙的划分及分配状况,从而获得各个客户业务的信息块。In the step S140, the code block of the time slot is sent. In the embodiment of the present application, one time slot can be shared by multiple client services, which reduces resource waste caused by occupying one time slot of a low-rate single client service, and in this embodiment. In order to ensure the correct reception of the receiving end, an identifier block is added to the sub-slot, and the identifier block carries the division information, which can be used for the receiving end to obtain the division and allocation status of the time slot, thereby obtaining the information block of each customer service.
在一些实施例中,如图1B所示,所述方法还包括:In some embodiments, as shown in FIG. 1B, the method further includes:
步骤S131:在所述码流的码块之间***用于速率调整的空闲块。Step S131: insert a free block for rate adjustment between the code blocks of the code stream.
在步骤S140中发送的携带有空闲块的码块。The code block carrying the free block transmitted in step S140.
在本实施例中在一个所述时隙的码块确定之后,在发送之前还会***一定数量的空闲块。在本实施例中,所述空闲块可为未携带有有效数据的码块,该有效数据可包括:前述客户业务的业务数据、划分信息及控制传输的其他控制信息等信息。由于空闲块未携带有有效信息,若一个网络设备在其入口速率和出口速率不一致时,可以通过丢弃或增加空闲块,使网络设备的入口速率与出口速率保持一致。例如,一个网络核心设备(Provider,P)设备,其入口的传输速率大于出口的传输速率,为了实现入口速率和出口速率一致,可以在出口丢弃掉一个或多个空闲块,如此,减少出口需要传输的数据量,从而使得有效数据的传输速率在入口和出口处保持一致。由于丢弃的空闲块,而空闲块是未携带有效数据的码块,即便丢弃也不会导致有效数据的丢失。例如,在一些实施例中,若出口速率大于入口速率,为了确保有效数据的传输效率一致,可以在出口的传输码流中添加空闲块,减少入口的码流传输慢导致码流中断的问题。In the present embodiment, after the code block of one of the time slots is determined, a certain number of free blocks are also inserted before transmission. In this embodiment, the free block may be a code block that does not carry valid data, and the valid data may include: service data of the foregoing customer service, split information, and other control information for controlling transmission. Since the idle block does not carry the valid information, if a network device does not match the ingress rate and the egress rate, the ingress rate of the network device can be consistent with the egress rate by discarding or adding the free block. For example, a network core device (Provider, P) device whose transmission rate of the ingress is greater than the transmission rate of the egress, in order to achieve the consistent ingress rate and egress rate, one or more free blocks can be discarded at the egress, thus reducing the need for the egress. The amount of data transferred, so that the transmission rate of valid data is consistent at the entrance and exit. Due to the discarded free block, the free block is a code block that does not carry valid data, and even if discarded, it will not cause loss of valid data. For example, in some embodiments, if the egress rate is greater than the ingress rate, in order to ensure that the transmission efficiency of the valid data is consistent, a free block may be added to the transport stream of the egress to reduce the problem that the code stream of the ingress is slow to cause the code stream to be interrupted.
所述步骤S131可包括:可按照预定间隔在时隙所对应的码流中***空闲块,例如,按照等间隔(即周期性)在一个时隙的码块中***所述空闲块,也可以按照不等间隔在一个时隙的码块中***所述空闲块。在一些实施例中,所述预定间隔可以是根据速率调整的极值确定的,例如,根据速率调整的极大值确定的,速率调整的极大值可包括:有效码流的增速极大值及减速的极大值确定的。此处,按照预定间隔***所述空闲块,可理解为:在所述码流中每间隔预定数量的码块***一个所述空闲块。The step S131 may include: inserting a free block in a code stream corresponding to the time slot according to a predetermined interval, for example, inserting the free block in a code block of one time slot according to an equal interval (ie, periodicity), or The free block is inserted in code blocks of one slot at unequal intervals. In some embodiments, the predetermined interval may be determined according to a rate adjusted extreme value, for example, determined according to the rate adjusted maximum value, and the rate adjusted maximum value may include: the effective code stream is greatly increased. The value and the maximum value of the deceleration are determined. Here, the insertion of the free block at a predetermined interval is understood to mean that one of the free blocks is inserted every predetermined number of code blocks in the code stream.
例如,若一个时隙的带宽为5Gbit/s,分析导致网络设备的入口速率和出口速率需要调整的原因是网络设备的时中偏差。此时,在确定所述预定间隔或预定数量的码块时,可以根据网络设备的时中最大偏差值及传输速率,确定***空闲块所间隔的码块的数量。这里的码块可包括:已经位于码流中的空闲块、标识块和信息块。一般信息块为携带有客户业务的业务数据的码块。For example, if the bandwidth of a time slot is 5 Gbit/s, the reason why the analysis causes the ingress rate and the egress rate of the network device to be adjusted is the time-to-center deviation of the network device. At this time, when determining the predetermined interval or a predetermined number of code blocks, the number of code blocks in which the free blocks are inserted may be determined according to the maximum offset value and the transmission rate of the network device. The code blocks herein may include: free blocks, identification blocks, and information blocks that are already in the code stream. A general information block is a code block carrying service data of a customer service.
一个所述码块可包括66比特,该码块采用的64/66编码,66比特中最前面2个比特位该码块的开始标识位,剩余64比特为内容比特,所述内容比特可为承载有业务数据或划分信息等信息内容的比特。此处,一个码块所包括的比特数及比特划分的一种限定,但具体实现时不局限于该限定。One of the code blocks may include 66 bits, the code block adopts 64/66 coding, the first 2 bits of the 66 bits are the start identifier bits of the code block, and the remaining 64 bits are content bits, and the content bits may be A bit carrying information content such as service data or division information. Here, the number of bits included in one code block and one type of bit division are limited, but the specific implementation is not limited to this limitation.
在本实施例中通过步骤S131中空闲块的***,可以使得发送端和接收端之间实现端到端传输,位于发送端和接收端之间的中间传输设备的透传,中间传输设备在透传时可以利用该空闲块进行自身的入口速率和出口速率保持一致的速率调整,可以避免中间传输设备删除了信息块或标识块导致的接收端无法正确恢复业务数据的问题。In the embodiment, the insertion of the free block in step S131 enables end-to-end transmission between the transmitting end and the receiving end, and transparent transmission of the intermediate transmission device between the transmitting end and the receiving end, and the intermediate transmission device is transparent. The transit time can use the free block to adjust the rate of the ingress rate and the egress rate. This prevents the intermediate transmission device from deleting the information block or the identification block and the receiving end cannot correctly recover the service data.
在一些实施例中,所述步骤S120中可包括步骤S121:将所述子时隙中的空闲块替换为所述标识块。In some embodiments, step S120 may be included in step S120: replacing the free block in the sub-slot with the identification block.
一个时隙可有其预定格式,该预定格式事先限定了哪些资源位置用于承载信息块,哪些资源位置用于承载用于速率调整的空闲块。若将一个时隙划分为多个子时隙,这些空闲块对应的资源位置也会分布到各个子时隙中,为了按照预定格式进行数据的传输且提升单时隙的有效传输,在本实施例中,会将空闲块替换为标识块,而不是用预定携带业务数据的信息块来承载标识块。A time slot may have its predetermined format that defines in advance which resource locations are used to carry information blocks and which resource locations are used to carry free blocks for rate adjustment. If a time slot is divided into multiple sub-time slots, the resource locations corresponding to the free blocks are also distributed to the respective sub-time slots. In order to transmit data according to a predetermined format and improve the effective transmission of the single-slot, in this embodiment. Instead, the identification block is carried by the information block that is intended to carry the service data, instead of replacing the free block with the identification block.
在本实施例中利用标识块替换子时隙中的空闲块,若子时隙中的没有空闲块了(例如,空闲块已经被其他码块给替换了),则此时可以用子时隙 预定的信息块的资源位置承载所述标识块,即利用标识块替换掉子时隙中的部分信息块;在一些实施例中,在子时隙中完成标识块的添加后,实现子时隙中不再携带有后续时隙的码流中可能增删的空闲块即可。In this embodiment, the identifier block is used to replace the free block in the sub-slot. If there is no free block in the sub-slot (for example, the free block has been replaced by another code block), then the sub-slot can be reserved at this time. The resource location of the information block carries the identification block, that is, the partial information block in the sub-slot is replaced by the identification block; in some embodiments, after the addition of the identification block is completed in the sub-slot, the sub-slot is implemented. It is no longer necessary to carry a free block that may be added or deleted in the code stream with subsequent time slots.
在步骤S131中再通过***空闲块来进行速率调整,具体实现时,在步骤S131中一个时隙专门***的空闲块的数量是不一定的,可以根据具体的网络传输状况等信息来确定。In step S131, the rate adjustment is performed by inserting a free block. In specific implementation, the number of free blocks specifically inserted in one slot in step S131 is not necessarily, and may be determined according to specific network transmission status and the like.
在一些情况中,若在步骤S120中将子时隙中的全部空闲块替换为标识块,则在步骤S131中可以添加任意一种空闲块;若在步骤S120中将子时隙中的部分空闲块替换为标识块,则在步骤S131中可以添加出不同于子时隙自带的空闲块的另一种空闲块。例如,子时隙中自带的空闲块可为第一类空闲块,而在步骤S131中专门***的空闲块可为第二类空闲块,第一类空闲块和第二类空闲块的指示标志可以携带在空闲块中。若在前述实施例中步骤S120中将子时隙中全部空闲块均替换为标识块,则在步骤S131中***的空闲块可为任意一种空闲块,则此时发送端发送的码流也仅有一种空闲块。若子时隙中的所有空闲块都被替换为了标识块,则后续中间设备中***的空闲块可以与发送端自行***的空闲块是同一种类型的空闲块,如此在后续接收端接收到码流之后,将所有的空闲块剔除之后,就能够恢复到时隙所对应码流的初始状态,也不会打乱各个子时隙的码块在整个时隙码流中的位置,可以方便接收端简便的实现各个客户业务的信息块的提取。若在子时隙中还保留了部分第一类空闲块,则在形成时隙所对应的码流之后,通过第二空闲块的增删,可以进行速率调整;接收端在波流第二类空闲空之后,可以将时隙所对应的码流恢复成未添加有第二类空闲块之间的初始状态,则同样可以确保各个子时隙的码块在时隙所对应码流中的位置不变。In some cases, if all the free blocks in the sub-slot are replaced with the identification block in step S120, any one of the free blocks may be added in step S131; if the part in the sub-slot is idle in step S120 The block is replaced with an identification block, and another free block different from the free block of the sub-slot is added in step S131. For example, the free block that is included in the sub-slot can be the first type of free block, and the free block that is specifically inserted in step S131 can be the second type of free block, the first type of free block and the second type of free block. The flag can be carried in a free block. If all the free blocks in the sub-slot are replaced with the identification block in step S120 in the foregoing embodiment, the free block inserted in step S131 may be any type of free block, and then the code stream sent by the sender is also There is only one free block. If all the free blocks in the sub-slot are replaced by the identification block, the free block inserted in the subsequent intermediate device may be the same type of free block as the free block inserted by the transmitting end, so that the code stream is received at the subsequent receiving end. After all the free blocks are removed, the initial state of the code stream corresponding to the time slot can be restored, and the position of the code block of each sub-slot in the entire time slot stream is not disturbed, which can facilitate the receiving end. It is easy to extract the information blocks of each customer's business. If some of the first type of free blocks are reserved in the sub-slot, the rate adjustment can be performed by adding or deleting the second free block after forming the code stream corresponding to the time slot; the receiving end is in the second class of the wave stream. After the null, the code stream corresponding to the time slot can be restored to the initial state between the second type of free blocks, and the position of the code block of each sub-slot in the code stream corresponding to the time slot can also be ensured. change.
在还有些实施例中,子时隙中的空闲块的一部分可以替换为所述标识 块,剩余部分可以替换成空闲块以外的其他类型的码块,如此在步骤S131及中间设备中可以随意添加空闲块。例如,若一个子时隙中设置有P个空闲块,其中的S个替换为标识块,P-S个空闲块可以替换成其他类型的控制块,控制块可为携带有控制信息的码块。总之,确保子时隙中的无后续可能增加或删除的空闲块即可。总之,发送端可以通过子时隙中的空闲块删除或替换,可以使得时隙的码流中不包含后续***的用于调整速率的空闲块。这里的空闲块替换可包括:替换为非空闲块或替换成形成码流之后的空闲块不同类型的空闲块。所述非空闲块可包括:前述的标识块及控制块等各种携带有有效信息的码块。In some embodiments, a part of the free block in the sub-slot can be replaced by the identification block, and the remaining part can be replaced with other types of code blocks other than the free block, so that it can be arbitrarily added in step S131 and the intermediate device. Free block. For example, if P free blocks are set in one sub-slot, and S of them are replaced by identification blocks, P-S free blocks can be replaced with other types of control blocks, and the control block can be a code block carrying control information. In summary, it is sufficient to ensure that there are no free blocks in the sub-slot that may be added or deleted. In summary, the transmitting end may be deleted or replaced by the free block in the sub-slot, so that the code stream of the time slot does not include the subsequently inserted free block for adjusting the rate. The free block replacement here may include replacing with a non-free block or replacing with a different type of free block of the free block after forming the code stream. The non-free block may include: a plurality of code blocks carrying valid information, such as the foregoing identification block and control block.
在一些实施例中,所述标识块携带以下信息的至少之一:In some embodiments, the identification block carries at least one of the following information:
子时隙总数,用于指示一个所述时隙包括的子时隙个数;a total number of sub-timeslots, used to indicate the number of sub-slots included in one of the time slots;
子时隙标识,用于指示本子时隙的资源位置;该子时隙标识可为子时隙编号和/或子时隙名称等;a sub-slot identifier, which is used to indicate a resource location of the sub-slot; the sub-slot identifier may be a sub-slot number and/or a sub-slot name;
空载标识,用于指示本子时隙是否承载有所述业务数据;An empty identifier, configured to indicate whether the sub-timeslot carries the service data;
承载类型标志,用于指示本子时隙承载有单一客户业务的所有业务数据或部分业务数据;若一个客户业务全部承载本子时隙中,则该承载类型标志为第一取值;若该客户业务承载不仅承载在本子时隙中还承载在其他子时隙中,则该承载类型标志可为第二取值;第一取值和第二取值不同。例如,在本实施例中,承载类型标志可对应于1个或多个比特,若对应于1个比特,则该比特的“1”及“0”两种取值对应于前述第一取值和第二取值;a bearer type flag, which is used to indicate that the sub-slot carries all service data or part of service data of a single client service; if a client service is all carried in the sub-slot, the bearer type flag is the first value; if the customer service The bearer type flag may be the second value, and the first value and the second value are different. For example, in this embodiment, the bearer type flag may correspond to one or more bits, and if it corresponds to 1 bit, the two values of "1" and "0" of the bit correspond to the first value. And the second value;
客户总子时隙数,用于指示客户业务占用的子时隙数量;此处的子时隙信息包括:单一客户业务占用的子时隙数量。例如,当前客户A的业务和客户B的业务,共用一个时隙,客户A的业务占用了3个1G的子时隙,客户B的业务占用了2个1G的子时隙,则该客户总子时隙数,会指示出客户A占用了3个子时隙,客户B占用了2个子时隙。例如,若该标识块为 客户A的业务占用的子时隙中的标识块,此时,该客户总子时隙数指示的客户A的业务占用的子时隙的个数;若该标识块为客户B的业务占用的子时隙内的标识块,此时,该客户总子时隙数指示的客户B的业务占用的子时隙的个数。在本申请实施例中,所述客户业务可以按照客户分,也可以根据业务类型分。若按照客户进行区分,则不同的客户的业务对应了不同的客户业务;若按照业务类型分,则相同客户的不同业务会对应不同的客户业务。The total number of sub-slots of the client is used to indicate the number of sub-slots occupied by the client service; the sub-slot information here includes the number of sub-slots occupied by a single client service. For example, the current service of customer A and the service of customer B share one time slot, the service of customer A occupies three sub-time slots of 1G, and the service of customer B occupies two sub-time slots of 1G, then the total customer The number of sub-slots indicates that customer A occupies 3 sub-slots, and customer B occupies 2 sub-slots. For example, if the identification block is an identification block in a subslot occupied by the service of the client A, the number of subslots occupied by the service of the client A indicated by the total number of subslots of the client; The identification block in the sub-slot occupied by the service of the customer B. At this time, the number of sub-time slots occupied by the service of the customer B indicated by the total number of sub-slots of the customer. In the embodiment of the present application, the customer service may be classified according to customers, or may be classified according to service types. If the customer differentiates, the business of different customers corresponds to different customer services; if the business type is divided, the different services of the same customer will correspond to different customer services.
客户内子时隙标识,用于指示本子时隙在单一客户业务占用的所有子时隙内的时隙标识。此处,所述客户内子时隙标识包括:客户内子时隙编号或客户内子时隙名称等。例如,客户业务1占用一个时隙中5个时隙中的3个子时隙;本子时隙在时隙中的子时隙编号为3,但是在该客户业务占用的3个子时隙中的子时隙编号可为0、1或2中的任意一个。该客户内子时隙标识,可为用于后续接收端按照客户内子时隙编号进行单一客户业务的信息块的拼接,从而获得正确顺序的接收信息。The intra-subslot time slot identifier is used to indicate the time slot identifier of the sub-slot in all sub-time slots occupied by a single client service. Here, the intra-subslot time slot identifier includes: a sub-slot number in the client or a sub-slot name in the client. For example, the customer service 1 occupies 3 sub-timeslots of 5 time slots in one time slot; the sub-slot time number in the time slot is 3, but in the 3 sub-time slots occupied by the client service The slot number can be any one of 0, 1, or 2. The sub-slot identifier in the client may be a splicing of information blocks for a subsequent client to perform a single client service according to the sub-slot number in the client, thereby obtaining the received information in the correct order.
校验信息,用于进行所述标识块的校验。在本实施例中,所述校验信息可为各种类型的校验信息,所述校验信息可包括:校验码,例如,循环冗余码校验(Cyclic Redundancy Check,CRC)、海明码或循环冗余校验码等各种可以对信息进行校验的序列。The verification information is used to perform verification of the identification block. In this embodiment, the verification information may be various types of verification information, and the verification information may include: a verification code, for example, a Cyclic Redundancy Check (CRC), the sea. A sequence of various types of information that can be verified by clear codes or cyclic redundancy check codes.
在本实施例中,所述标识块携带有校验码,该校验码可以用于校验标识块中除了校验信息以外的其他信息,确保接收端接收到的标识块的内容的正确性。In this embodiment, the identifier block carries a check code, and the check code can be used to check other information except the check information in the identifier block, and ensure the correctness of the content of the identifier block received by the receiving end. .
在本实施例中,所述校验码可分为:验错码和纠错码;若验错码仅能确定出是否有传输出错,若出错则可以通过重发请求再次获取数据,纠错码自带一定的纠错能力,若发现传输出错还可以进行纠错,从而即便出现传输出错也可以通过纠错获得正确的传输内容,从而减少传输。在本实施 例中,所述校验信息可以选择CRC等具有纠错能力的纠错码。例如,按照所述检验码的长度,有又可以将所述CRC又可以分为4位的CRC4、8位的CRC8、16位的CRC16及32位的CRC32等。在本实施例中,可选择CRC4或CRC8作为所述校验信息,采用CRC4算法或CRC8算法对所述标识块的剩余内容进行校验,一方面可以实现标识块内信息的安全传输,防止篡改;另一方面,也可以减少校验信息自身占用的比特数,减少校验信息的开销。In this embodiment, the check code can be divided into: an error checking code and an error correcting code; if the error checking code can only determine whether there is a transmission error, if the error occurs, the data can be acquired again by resending the request, and the error correction is performed. The code comes with a certain error correction capability. If a transmission error is found, error correction can be performed, so that even if a transmission error occurs, the correct transmission content can be obtained by error correction, thereby reducing the transmission. In this embodiment, the verification information may select an error correction code having error correction capability such as CRC. For example, according to the length of the check code, the CRC may be further divided into a 4-bit CRC4, an 8-bit CRC8, a 16-bit CRC16, and a 32-bit CRC32. In this embodiment, CRC4 or CRC8 may be selected as the check information, and the remaining content of the identifier block may be verified by using a CRC4 algorithm or a CRC8 algorithm. On the one hand, secure transmission of information in the identification block may be implemented to prevent tampering. On the other hand, it is also possible to reduce the number of bits occupied by the check information and reduce the overhead of the check information.
在一些实施例中,所述标识块为O码块。图3为一种采用O码块的码块格式构建所述标识块的示意图。标识块采用66比特的码块结构,在本申请实施例中采用标准中的O码块,并对O码块进行了扩展。O码块是一种控制块,前两个比特是“10”,用于指示该码块的类型,然后一个字节(8个比特)是0x4B(4B是十六进制),后面是三个字节的数据内容,分别是数据1、数据2及数据3。在34至37比特的位置,是O码的序列码特征,可采用“0”作为序列码特征,用来表示前面3个字节的数据内容传递了客户故障信息状态。在本申请实施例中,扩展了序列码特征,采用“C”(十六进制的C,即十进制12)标志,用来表示是标识块,在实际应用中也可以其他内容。后面的所有内容全部填充为“0”。In some embodiments, the identification block is an O code block. FIG. 3 is a schematic diagram of constructing the identification block by using a code block format of an O code block. The identifier block adopts a 66-bit code block structure. In the embodiment of the present application, the O code block in the standard is used, and the O code block is expanded. The O code block is a control block, the first two bits are "10", which is used to indicate the type of the code block, and then one byte (8 bits) is 0x4B (4B is hexadecimal), followed by three The data contents of the bytes are Data 1, Data 2, and Data 3. At the position of 34 to 37 bits, it is the sequence code feature of the O code, and "0" can be used as the sequence code feature to indicate that the data content of the first three bytes conveys the status of the customer failure information. In the embodiment of the present application, the serial code feature is extended, and a "C" (hexadecimal C, ie, decimal 12) flag is used to indicate that it is an identification block, and other contents may be used in actual applications. All subsequent contents are all filled with "0".
在一些实施例中,所述步骤S110可包括:In some embodiments, the step S110 may include:
根据客户业务的数量和单个客户业务的传输速率,确定一个时隙包括子时隙数量和所述子时隙的资源位置。According to the number of customer services and the transmission rate of a single client service, it is determined that one slot includes the number of sub-slots and the resource location of the sub-slots.
单个客户业务的传输速率及客户业务的数量,决定了所需的总传输速率,该总传输速率确定了需要可以由一个时隙来承载,若超出一个时隙,可能需要多个时隙来承载,可能需要进一步根据确定每一个时隙承载所承载的客户业务。The transmission rate of a single client service and the number of customer services determine the total transmission rate required. The total transmission rate determines that it needs to be carried by one time slot. If one time slot is exceeded, multiple time slots may be required to carry It may be necessary to further determine the bearer of the carried customer service according to each time slot.
根据单个客户业务的传输速率,从时隙的传输资源的最大化有效传输 来看,确定出子时隙对应的带宽。例如,一个待传输的客户业务为3个,3个客户业务的传输速率分别为0.8Gbit/s、2Gbit/s及2Gbit/s。若一个时隙的带宽为5Gbit/s,则可以将一个时隙划分为5个1Gbit/s的子时隙,传输速率为0.8Gbit/s占用1个子时隙,传输速率为2Gbit/s的占用2个子时隙。若3个客户业务的传输速率为1.25Gbit/s、1.25Gbit/s及2.5Gbit/s,则可以将5Gbit/s的时隙划分为4个带宽为1.25Gbit/s的子时隙,传输速率为1.25Gbit/s的客户业务占用一个子时隙,传输速率为2.5Gbit/s的客户业务占用2个子时隙。According to the transmission rate of a single client service, the bandwidth corresponding to the sub-timeslot is determined from the maximum effective transmission of the transmission resources of the time slot. For example, one customer service to be transmitted is three, and the transmission rates of three customer services are 0.8 Gbit/s, 2 Gbit/s, and 2 Gbit/s, respectively. If the bandwidth of a time slot is 5 Gbit/s, one time slot can be divided into five sub-timeslots of 1 Gbit/s, and the transmission rate is 0.8 Gbit/s, occupying one sub-timeslot, and the transmission rate is occupied by 2 Gbit/s. 2 sub-slots. If the transmission rate of three client services is 1.25 Gbit/s, 1.25 Gbit/s, and 2.5 Gbit/s, the 5 Gbit/s time slot can be divided into four sub-timeslots with a bandwidth of 1.25 Gbit/s, and the transmission rate. The customer service of 1.25 Gbit/s occupies one sub-slot, and the customer service with a transmission rate of 2.5 Gbit/s occupies 2 sub-timeslots.
在本实施例的步骤S110中划分的子时隙的个数一般不少于一个时隙传输的客户业务的数量。在本实施例中,数据传输的最小单位可为一个码块,为了简化后续将多个子时隙的码块组成一个时隙的码流,一般一个时隙划分的多个子时隙占用的带宽是相等的或不同子时隙之间占用的带宽是成整数倍的。在一些实施例中,3个客户业务的传输速率分别为0.8Gbit/s、2Gbit/s及2Gbit/s,则一个带宽为5Gbit/s的时隙可以划分为3个子时隙,这三个子时隙的带宽分别是1Gbit/s、2Gbit/s及2Gbit/s;显然不同子时隙的带宽是成整数倍的。在步骤S130中将多个子时隙的码块组成所述码流时,可以根据各子时隙的带宽选择码块组成所述码流,若一个时隙包括的子时隙的带宽相等,则依次轮询各个子时隙,若当前从第i个子时隙选择了一个码块组成时隙的码流,且若第i个子时隙不是最后一个子时隙,则下一次从第i+1个子时隙选择一个码块组成所述时隙的码流,若第i个子时隙为最后一个子时隙,则下一次从第1个子时隙选择一个码块组成所述时隙的码流。The number of sub-slots divided in step S110 of the present embodiment is generally not less than the number of client services transmitted in one time slot. In this embodiment, the minimum unit of data transmission may be one code block. In order to simplify the code stream of multiple sub-slots to form a code stream of one time slot, the bandwidth occupied by multiple sub-time slots divided by one time slot is The bandwidth occupied between equal or different sub-timeslots is an integer multiple. In some embodiments, the transmission rates of the three client services are 0.8 Gbit/s, 2 Gbit/s, and 2 Gbit/s, respectively, and a time slot with a bandwidth of 5 Gbit/s can be divided into three sub-time slots, and the three sub-time slots. The bandwidth of the slot is 1 Gbit/s, 2 Gbit/s and 2 Gbit/s, respectively; obviously the bandwidth of different sub-slots is an integer multiple. When the code blocks of the plurality of sub-slots are formed into the code stream in step S130, the code stream may be formed according to the bandwidth selection code block of each sub-slot. If the time slots of the sub-slots included in one time slot are equal, Polling each sub-slot in turn, if a code stream of a time slot is selected from the i-th sub-slot, and if the i-th sub-slot is not the last sub-slot, the next time from the i+1th Each sub-slot selects a code block to form a code stream of the time slot. If the ith sub-time slot is the last sub-time slot, the next time a code block is selected from the first sub-time slot to form a code stream of the time slot. .
若一个时隙包括多个带宽不等的子时隙,譬如,第一类子时隙的带宽是第二类子时隙带宽的N倍,若当前确定从第一类子时隙选择码块,则一次性选择N个码块组成所述时隙的码流,如当前确定从第二类子时隙选择码块,则从第二类子时隙选择1个码块组成所述时隙的码流。若一个时隙 划分的子时隙的带宽不等时,每次从对应不同子时隙选择的码块数量比值等于各子时隙的带宽比值。If a time slot includes a plurality of sub-slots having unequal bandwidths, for example, the bandwidth of the first type of sub-slots is N times the bandwidth of the second type of sub-slots, if it is currently determined to select code blocks from the first type of sub-slots And selecting, at one time, N code blocks to form a code stream of the time slot, and if it is currently determined to select a code block from the second type of sub-time slots, selecting one code block from the second type of sub-time slots to form the time slot. The stream of code. If the bandwidth of the sub-slots divided by one slot is not equal, the ratio of the number of code blocks selected from the corresponding different sub-slots is equal to the bandwidth ratio of each sub-slot.
如图4A所示,本实施例提供一种数据传输方法,包括:As shown in FIG. 4A, the embodiment provides a data transmission method, including:
步骤S210:接收码流;Step S210: receiving a code stream;
步骤S220:根据所述码流中提取的标识块,确定时隙的划分信息;Step S220: Determine, according to the identifier block extracted in the code stream, the division information of the time slot;
步骤S230:根据所述划分信息,从所述时隙的子时隙中提取出对应客户业务的信息块。Step S230: Extract, according to the split information, information blocks corresponding to customer services from sub-time slots of the time slot.
本实施例提供的方法可为应用于接收端中的数据传输方法。该接收端可为FlexE中网络设备。The method provided in this embodiment may be a data transmission method applied to the receiving end. The receiving end can be a network device in the FlexE.
在步骤S210中接收码流,该码流中包括多个码块,在这些码块中包括有标识块。在本实施例中可以根据码块的开始标识或码块类型的标识,提取出标识块。若提取出标识块之后,可以从标识块中提取出时隙的划分信息,该划分信息包括:一个时隙包括的子时隙信息和/或子时隙的分配信息。The code stream is received in step S210, and the code stream includes a plurality of code blocks in which the identification block is included. In this embodiment, the identifier block may be extracted according to the start identifier of the code block or the identifier of the code block type. After the identification block is extracted, the division information of the time slot may be extracted from the identification block, and the division information includes: sub-slot information included in one slot and/or allocation information of the sub-slot.
故在步骤S230中可以根据分配信息,从该时隙的各个子时隙中提取出对应客户业务的信息块。在步骤S230中可以根据划分信息,可以知道每一个客户业务对应的信息块所占用的资源位置,知道么一个客户业务所占用的信息块的数量置,从而将对应资源位置上提取信息块并组合,恢复出一个客户业务的所有信息块。在本实施例中一个时隙划分为了多个子时隙,一个时隙可以用于2个或2个以上的客户业务的业务数据的传输,从而减少了浪费,且通过标识块的引入顺利的解决了一个时隙被划分为多个子时隙之后传输多个客户业务的业务数据时,接收端如何区分不同客户业务的业务数据的问题。Therefore, in step S230, the information block corresponding to the customer service may be extracted from each sub-time slot of the time slot according to the allocation information. In step S230, according to the split information, the resource location occupied by the information block corresponding to each client service can be known, and the number of information blocks occupied by one client service can be known, so that the information block is extracted and combined in the corresponding resource location. , recover all the information blocks of a customer's business. In this embodiment, one time slot is divided into multiple sub-time slots, and one time slot can be used for transmission of service data of two or more customer services, thereby reducing waste and smoothly solving by introducing the identification block. When a time slot is divided into a plurality of sub-slots and the service data of a plurality of client services is transmitted, how the receiving end distinguishes the service data of different customer services.
在一些实施例中,如图4B所示,所述方法还包括:In some embodiments, as shown in FIG. 4B, the method further includes:
步骤S211:从所述码流中剥离出用于调整速率的空闲块。Step S211: Freeing the free block for adjusting the rate from the code stream.
在本实施例中空闲块可为发送端添加的或者中间传输节点添加的用于 调整传输速率的未携带有有效信息的码块,在本实施例中可以剥离该空闲块,减少空闲块后续对信息块的处理的干扰。在此步骤中剥离的空闲块可为前述实施例的步骤S131中添加的空闲块及码流在传输时中间设备加入的空闲块。在一些情况中,子时隙中自带的空闲块可为第一类空闲块,而在步骤S131中专门***的空闲块可为第二类空闲块及中间设备加入的第二类空闲块,第一类空闲块和第二类空闲块的指示标志可以携带在空闲块中。此时,接收端第一次剥离空闲块时,可以优先剥离步骤S131中***的第二类空闲块,通过第二类空闲块的剥离,可以使得码流恢复到***第二类空闲块之前的状态,进一步可以方便后续子时隙的拆分。步骤S211可在步骤S210与步骤S230之间的任意位置执行,例如,步骤S211可以与步骤S220同步执行,也可以先执行步骤S211,再执行步骤S220,也可以在步骤S220之前执行,仅需确保步骤S211在步骤S230之前执行即可。In this embodiment, the free block may be a code block added by the transmitting end or added by the intermediate transmitting node and used to adjust the transmission rate, and the free block may be stripped. In this embodiment, the free block may be stripped, and the subsequent block of the free block may be reduced. Interference with the processing of information blocks. The free block stripped in this step may be a free block added in step S131 of the foregoing embodiment and a free block added by the intermediate device at the time of transmission. In some cases, the free block that is included in the sub-slot can be the first type of free block, and the free block that is specifically inserted in step S131 can be the second type of free block and the second type of free block that the intermediate device joins. Indicators of the first type of free block and the second type of free block may be carried in the free block. At this time, when the receiving end strips the free block for the first time, the second type of free block inserted in step S131 may be preferentially stripped, and the stripping of the second type of free block may cause the code stream to be restored before inserting the second type of free block. The state further facilitates the splitting of subsequent sub-timeslots. Step S211 may be performed at any position between step S210 and step S230. For example, step S211 may be performed synchronously with step S220, or step S211 may be performed first, then step S220 may be performed, or may be performed before step S220, only need to be ensured. Step S211 may be performed before step S230.
在一些实施例中,所述标识块携带以下信息的至少之一:子时隙总数,用于指示一个所述时隙包括的子时隙个数;子时隙标识,用于指示本子时隙的资源位置;空载标识,用于指示本子时隙是否承载有所述业务数据;承载类型标志,用于指示本子时隙承载有单一客户业务的所有业务数据或部分业务数据;客户总子时隙数,用于指示客户业务占用的子时隙数量;客户内子时隙标识,用于指示本子时隙在单一客户业务占用的所有子时隙内的时隙标识;校验信息,用于进行所述标识块的校验。In some embodiments, the identifier block carries at least one of the following information: a total number of sub-timeslots for indicating the number of sub-slots included in one of the time slots; and a sub-slot identifier for indicating the sub-timeslot The resource location; the no-load identifier is used to indicate whether the sub-timeslot carries the service data; the bearer type flag is used to indicate that all service data or part of service data of the single client service is carried in the sub-slot; The number of slots is used to indicate the number of sub-slots occupied by the client service; the sub-slot identifier in the client is used to indicate the slot identifier of all sub-time slots occupied by the sub-slot in a single client service; the verification information is used for performing The verification of the identification block.
为了避免码流传输过程中,标识块的传输出错或被恶意篡改,在本实施例中,所述标识块是携带有校验信息。则此时,所述步骤S220可包括:利用所述标识块中的校验信息对所述标识块进行校验;若所述标识块通过校验,从所述标识块中提取出以下至少之一:子时隙总数,用于指示一个所述时隙包括的子时隙个数;子时隙标识,用于指示本子时隙的资源位置;空载标识,用于指示本子时隙是否承载有所述业务数据;承载类型标志, 用于指示本子时隙承载有单一客户业务的所有业务数据或部分业务数据;客户总子时隙数,用于指示单一客户业务占用的子时隙信息;客户内子时隙标识,用于指示本子时隙在单一客户业务占用的所有子时隙内的时隙标识。In this embodiment, the identifier block carries the check information, in order to avoid the transmission of the identifier block or the malicious tampering. In this case, the step S220 may include: performing verification on the identifier block by using the verification information in the identifier block; if the identifier block is verified, extracting at least the following from the identifier block. a: a total number of sub-slots, which is used to indicate the number of sub-slots included in the time slot; a sub-slot identifier, which is used to indicate the resource location of the sub-slot; and a no-load identifier, which is used to indicate whether the sub-timeslot is carried. The service data; the bearer type flag is used to indicate that all the service data or part of the service data of the single client service is carried in the sub-slot; the total number of sub-slots of the customer is used to indicate the sub-slot information occupied by the single client service; The intra-subslot time slot identifier is used to indicate the time slot identifier of the sub-slot in all sub-time slots occupied by a single client service.
若标识块通过校验,表明该标识块未出现传输错误或被恶意篡改,或者,传输错误或恶意篡改已经被纠正,当前从标识块提取出的划分信息是正确的,可以用于指导接收端对不同客户业务的信息块的提取及信息块的拼接的。If the identification block passes the check, it indicates that the identification block does not have a transmission error or is maliciously tampered with, or the transmission error or malicious tampering has been corrected, and the division information currently extracted from the identification block is correct, and can be used to guide the receiving end. Extraction of information blocks and splicing of information blocks for different customer services.
在一些实施例中,所述步骤S230可包括:根据所述划分信息,确定一个时隙所包含的子时隙数量及子时隙的资源位置;从所述子时隙中剥离出所述标识块,获得对应客户业务的信息块。In some embodiments, the step S230 may include: determining, according to the split information, a number of sub-slots included in one slot and a resource location of the sub-slot; stripping the identifier from the sub-slot Block, get the information block corresponding to the customer's business.
在本实施例中,所述资源位置可为时间资源位置,例如,一个时隙的带宽为5Gbit/s,且被划分为了5个子时隙,在一个时隙的对应的1秒中,1个子时隙对应0.2秒的传输时长,这0.2秒的传输时长可能是连续分布在1秒的某一个0.2秒中,也可以划分多个子时间单位分散分布在这1秒中,例如,1个子时隙包括A个码块,一个码块占用的传输时长为bs,则1个子时隙的资源位置,可由A个bs构成,这A个bs可以分布在1秒内的不同时域位置,这些时域位置即为前述的资源位置的一种,以上仅是对资源位置的一种解释,在具体实现时任何符合本申请实施例的时隙划分为子时隙的逻辑的解释均可,不限于上述解释。In this embodiment, the resource location may be a time resource location, for example, the bandwidth of one slot is 5 Gbit/s, and is divided into 5 sub-slots, and 1 sub-slot in one slot of one slot. The time slot corresponds to a transmission time of 0.2 seconds. The transmission time of the 0.2 second transmission may be continuously distributed in a 0.2 second of 1 second. It may also be divided into multiple sub-time units distributed in the 1 second, for example, 1 sub-slot. Including A code blocks, the transmission duration occupied by one code block is bs, and the resource position of one sub-slot can be composed of A bs, which can be distributed in different time domain positions within 1 second, these time domains The location is one of the foregoing resource locations. The above is only an explanation of the location of the resource. Any specific implementation of the time slot according to the embodiment of the present application may be interpreted as a sub-slot. Explanation.
如图5所示,本实施例提供一种数据传输装置,包括:As shown in FIG. 5, this embodiment provides a data transmission apparatus, including:
划分模块110,配置为根据客户业务的信息将一个时隙划分成多个子时隙;The dividing module 110 is configured to divide a time slot into multiple sub-time slots according to information of the customer service;
添加模块120,配置为在所述子时隙添加码块,其中,所述码块包括:信息块及标识块,所述信息块包括所述客户业务的业务数据;所述标识块 包括所述时隙的划分信息;The adding module 120 is configured to add a code block in the sub-slot, where the code block includes: an information block and an identification block, where the information block includes service data of the customer service; the identifier block includes the Division information of time slots;
组成模块130,配置为利用所述子时隙的码块,组成所述时隙的码流;The component module 130 is configured to use the code block of the sub-slot to form a code stream of the time slot;
发送模块140,配置为发送所述码流。The sending module 140 is configured to send the code stream.
本实施例提供的数据传输装置可应用于发送端中,例如,应用于灵活以太网的发送端中。所述划分模块110、添加模块120、组成模块130及发送模块140,均可对应于程序模块,该程序模块可包括各种计算机可执行代码,该计算机可执行程序可包括:源程序和/或目标程序等。若处理器通过执行上述程序模块,可以实现上述时隙的划分、子时隙中码块的添加、以及单个时隙的码流的组成及码流的发送等。The data transmission apparatus provided in this embodiment can be applied to a transmitting end, for example, to a transmitting end of a flexible Ethernet. The partitioning module 110, the adding module 120, the component module 130, and the sending module 140 may each correspond to a program module, and the program module may include various computer executable programs, and the computer executable program may include: a source program and/or Target program, etc. If the processor executes the above-mentioned program module, the division of the above-mentioned time slot, the addition of the code block in the sub-slot, the composition of the code stream of a single time slot, and the transmission of the code stream can be realized.
在一些实施例中,所述装置还包括:***模块,同样可为程序模块,可配置为在所述码流的码块之间***用于速率调整的空闲块;所述发送模块140,可具体用于发送***有所述空闲块的码流。In some embodiments, the apparatus further includes: an insertion module, which is also a program module, configured to insert a free block for rate adjustment between the code blocks of the code stream; the sending module 140, Specifically, it is used to send a code stream in which the free block is inserted.
在一些实施例中,所述***模块,可配置为在所述码流中每间隔预定数量的码块***一个所述空闲块。例如,一个时隙的带宽为5Gbit/s,则预定数量可为5000个码块或略小于5000个码块***一个用于速率调整的空闲块。In some embodiments, the insertion module is configurable to insert one of the free blocks every predetermined number of code blocks in the code stream. For example, if the bandwidth of one slot is 5 Gbit/s, a predetermined number of 5,000 blocks or slightly less than 5000 blocks can be inserted into a free block for rate adjustment.
在一些实施例中,所述添加模块120,可配置为将所述子时隙中的空闲块替换为所述标识块。In some embodiments, the adding module 120 can be configured to replace a free block in the sub-slot with the identification block.
在一些实施例中,所述标识块携带以下信息的至少之一:子时隙总数,用于指示一个所述时隙包括的子时隙个数;子时隙标识,用于指示本子时隙的资源位置;空载标识,用于指示本子时隙是否承载有所述业务数据;承载类型标志,用于指示本子时隙承载有单一客户业务的所有业务数据或部分业务数据;客户总子时隙数,用于指示客户业务占用的子时隙数量;客户内子时隙标识,用于指示本子时隙在单一客户业务占用的所有子时隙内的时隙标识;校验信息,用于进行所述标识块的校验。In some embodiments, the identifier block carries at least one of the following information: a total number of sub-timeslots for indicating the number of sub-slots included in one of the time slots; and a sub-slot identifier for indicating the sub-timeslot The resource location; the no-load identifier is used to indicate whether the sub-timeslot carries the service data; the bearer type flag is used to indicate that all service data or part of service data of the single client service is carried in the sub-slot; The number of slots is used to indicate the number of sub-slots occupied by the client service; the sub-slot identifier in the client is used to indicate the slot identifier of all sub-time slots occupied by the sub-slot in a single client service; the verification information is used for performing The verification of the identification block.
在一些实施例中,所述标识块为O码块;即所述标识块的码块格式采用O码块的码块格式。O码块为控制码块的一种,接收端接收到码流之后,会预先遍历码块的类型标识从而先提取出控制码块,若采用O码块的格式构建所述标识块,则接收端可以按照正常的码流处理顺序,先挑出标识块,快速的获得划分信息,完成后续各个客户业务的信息块的确定,不仅具有各客户业务的信息块提取速度块的特点,还具有与现有技术的兼容性强的特点。In some embodiments, the identification block is an O code block; that is, the code block format of the identification block adopts a code block format of an O code block. The O code block is a type of the control code block. After receiving the code stream, the receiving end traverses the type identifier of the code block to extract the control code block first. If the identifier block is constructed in the format of the O code block, the receiving is performed. The terminal can select the identification block according to the normal code stream processing order, quickly obtain the division information, complete the determination of the information block of each subsequent customer service, and not only has the characteristics of the information block extraction speed block of each customer service, but also has the same The compatibility of the prior art is strong.
在一些实施例中,所述划分模块110,可配置为根据客户业务的数量和单个客户业务的传输速率,确定一个时隙包括子时隙数量和所述子时隙的资源位置。In some embodiments, the partitioning module 110 is configured to determine, according to the number of customer services and the transmission rate of a single client service, that one slot includes a number of sub-slots and a resource location of the sub-slots.
如图6所示,本实施例提供一种数据传输装置,包括:As shown in FIG. 6, the embodiment provides a data transmission apparatus, including:
接收模块210,配置为接收码流;The receiving module 210 is configured to receive a code stream;
确定模块220,配置为根据所述码流中提取的标识块,确定时隙的划分信息;The determining module 220 is configured to determine split information of the time slot according to the identifier block extracted in the code stream;
提取模块230,配置为根据所述划分信息,从所述时隙的子时隙中提取出对应客户业务的信息块。The extracting module 230 is configured to extract, according to the split information, information blocks corresponding to customer services from sub-time slots of the time slot.
在本实施例中,所述数据传输装置可应用于接收端,例如,可应用于FlexE的接收设备。所述接收模块210、确定模块220及提取模块230,均可对应于程序模块,该程序模块可包括各种计算机可执行代码,该计算机可执行程序可包括:源程序和/或目标程序等。若处理器通过执行上述程序模块,可以实现上述码流接收、划分信息的确定及信息块的提取等操作。In the present embodiment, the data transmission device is applicable to a receiving end, for example, a receiving device applicable to FlexE. The receiving module 210, the determining module 220, and the extracting module 230 may each correspond to a program module, and the program module may include various computer executable programs, and the computer executable program may include: a source program and/or a target program. If the processor executes the above program module, the above-mentioned code stream reception, the determination of the division information, and the extraction of the information block can be realized.
在一些实施例中,所述装置还包括:In some embodiments, the apparatus further includes:
第一剥离模块,可配置为从所述码流中剥离出用于调整速率的空闲块。The first stripping module is configurable to strip out free blocks for adjusting the rate from the code stream.
在一些实施例中,所述确定模块220,可配置为利用所述标识块中的校验信息对所述标识块进行校验;若所述标识块通过校验,从所述标识块中 提取出以下至少之一:子时隙总数,用于指示一个所述时隙包括的子时隙个数;子时隙标识,用于指示本子时隙的资源位置;空载标识,用于指示本子时隙是否承载有所述业务数据;承载类型标志,用于指示本子时隙承载有单一客户业务的所有业务数据或部分业务数据;客户总子时隙数,用于指示单一客户业务占用的子时隙信息;客户内子时隙标识,用于指示本子时隙在单一客户业务占用的所有子时隙内的时隙标识。In some embodiments, the determining module 220 is configured to check the identification block by using the verification information in the identification block; if the identification block passes the verification, extract from the identification block. At least one of the following: a total number of sub-slots for indicating the number of sub-slots included in one of the slots; a sub-slot identifier for indicating a resource location of the sub-slot; and an empty identifier for indicating the sub-slot Whether the time slot carries the service data; the bearer type flag is used to indicate that all the service data or part of the service data of the single client service is carried in the sub-slot; the total number of sub-slots of the client is used to indicate the sub-servicing of the single client service. The time slot information is used to indicate the time slot identifier in the sub-slots of all sub-time slots occupied by the single client service.
在一些实施例中,所述提取模块230,可配置为根据所述划分信息,确定一个时隙所包含的子时隙数量及子时隙的资源位置;从所述子时隙中剥离出所述标识块,获得对应客户业务的信息块。In some embodiments, the extracting module 230 may be configured to determine, according to the splitting information, a number of sub-slots included in one slot and a resource location of the sub-slot; and strip out the sub-slot The identification block is obtained, and the information block corresponding to the customer service is obtained.
如图7所示,本实施例提供一种网络设备,包括:As shown in FIG. 7, the embodiment provides a network device, including:
收发器310,配置为收发信息;The transceiver 310 is configured to send and receive information;
存储器320,配置为存储信息;The memory 320 is configured to store information;
处理器330,分别与所述收发器310及存储器320连接,配置为通过执行存储在所述存储器320中的计算机可执行代码,控制所述收发器310的信息收发及所述存储器320的信息存储,并执行一个或多个应用于发送端中的数据传输方法或执行一个或多个应用于接收端中的数据传输方法。The processor 330 is respectively connected to the transceiver 310 and the memory 320, and is configured to control information transmission and reception of the transceiver 310 and information storage of the memory 320 by executing computer executable code stored in the memory 320. And executing one or more data transmission methods applied to the transmitting end or performing one or more data transmission methods applied to the receiving end.
所述收发器310,可对应于发送端或接收端的光口,可以用于发送光信号和/或接收光信号。The transceiver 310 can correspond to an optical port of the transmitting end or the receiving end, and can be used for transmitting an optical signal and/or receiving an optical signal.
存储器320可为包括各种类型的存储介质,可以用于存储各种信息,例如看,至少可以用于存储处理器330执行的计算机可执行代码。The memory 320 can be comprised of various types of storage media that can be used to store various information, for example, at least for storing computer executable code executed by the processor 330.
所述处理器330可为各种类型的处理器,可包括:中央处理器、微处理器、数字信号处理器、可编程阵列或专用集成电路等;所述处理器可以通过计算机可执行代码的执行,可以控制收发器的信息收发,还可向存储器的信息写入及读取,总之可以实现前述一个或多个数据传输方法,例如,可以执行前述图1、图2及图4所示方法中的一个或多个。若该网络设备为 前述的发送端,则至少可以实现图1和/或图2所示的数据传输方法;若该网络设备为前述的接收端,则至少可以实现前述的图4所示的数据传输方法。所述处理器330,可以通过总线(例如,集成电路总线I 2C)分别与收发器及存储器连接。 The processor 330 can be various types of processors, and can include: a central processing unit, a microprocessor, a digital signal processor, a programmable array or an application specific integrated circuit, etc.; the processor can be executable by a computer Execution, the transceiver can be controlled to send and receive information, and the information of the memory can be written and read. In general, one or more data transmission methods can be implemented. For example, the method shown in FIG. 1, FIG. 2 and FIG. 4 can be executed. One or more of them. If the network device is the foregoing transmitting end, at least the data transmission method shown in FIG. 1 and/or FIG. 2 can be implemented; if the network device is the foregoing receiving end, at least the foregoing data shown in FIG. 4 can be implemented. Transmission method. The processor 330 can be respectively connected to the transceiver and the memory through a bus (for example, the integrated circuit bus I 2 C).
以下结合上述任意实施例提供几个具体示例:Several specific examples are provided below in connection with any of the above embodiments:
示例1:Example 1:
本示例提供一种基于FlexE协议中低速率客户业务的传输方法,包括:This example provides a transmission method based on the low-rate client service in the FlexE protocol, including:
步骤1:发送端根据低速率的客户业务的数量和速率确定子时隙数量,客户所在的子时隙位置。用标识块替换子时隙中空闲块。Step 1: The sender determines the number of sub-slots based on the number and rate of low-rate customer services, and the sub-slot location where the client is located. The free block in the subslot is replaced with an identification block.
步骤2:按照子时隙的顺序关系,将子时隙复用成一条速率约为5G bit/s的码流中,在码流的码块之间***适量的空闲块,然后按照FlexE协议时隙发送到接收端。在本示例中低速率的客户业务为传输速率可低于一个时隙所对应带宽的客户业务,例如,1个时隙的带宽为5Gbit/,低速率的客户业务为传输速率低于5Gbit/s的客户业务。Step 2: According to the order relationship of the sub-slots, the sub-slots are multiplexed into a code stream with a rate of about 5 Gbit/s, and an appropriate amount of free blocks are inserted between the code blocks of the code stream, and then according to the FlexE protocol. The slot is sent to the receiving end. In this example, the low-rate customer service is a customer service whose transmission rate can be lower than the bandwidth corresponding to one time slot. For example, the bandwidth of one slot is 5 Gbit/, and the service rate of the low-rate client is less than 5 Gbit/s. Customer business.
步骤3:接收端从FlexE协议时隙中提取码流,剥离掉所有空闲块,可获得多个低速率客户业务拼接成的时隙所对应的码流的初始样貌。此处,所有的空闲块都可为多个子时隙合并成时隙后,形成时隙所对应码流之后***的空闲块,该空闲块可包括:发送端自身***的空闲块,也包括中间设备***的空闲块,如此,通过空闲块的剥离,可以获得一个时隙的原始码流。Step 3: The receiving end extracts the code stream from the FlexE protocol time slot, strips out all the free blocks, and obtains an initial appearance of the code stream corresponding to the time slots into which the plurality of low-rate client services are spliced. Here, all the free blocks may be a free block inserted after the code stream corresponding to the time slot is formed after the multiple sub-time slots are combined into a time slot, and the free block may include: a free block inserted by the transmitting end itself, including the middle The free block inserted by the device, so that the original code stream of one time slot can be obtained by the stripping of the free block.
步骤4:根据标识块的内容(前述的划分信息),确定时隙与子时隙的关系,每一个客户业务占用的子时隙的资源位置,提取客户业务的业务数据,将标识块重新恢复成空闲块,恢复出原始的每条客户业务信息块。Step 4: According to the content of the identification block (the foregoing division information), determine the relationship between the time slot and the sub-slot, the resource location of the sub-slot occupied by each client service, extract the service data of the customer service, and restore the identification block. Into a free block, restore the original each customer service information block.
在一些实施例中,所述步骤1可包括如下步骤,但是不局限于如下步骤:In some embodiments, the step 1 may include the following steps, but is not limited to the following steps:
步骤1.1:确定共享一个条FlexE协议时隙的客户业务的数量和传输速率。Step 1.1: Determine the number and transmission rate of customer services sharing a strip of FlexE protocol time slots.
步骤1.2:确定一个时隙所划分的子时隙数量,每个客户业务的占用子时隙数量和位置。当一个客户占用多个子时隙时,将该客户业务的信息块按照先后顺序放在多个子时隙中;否则每条客户占用一个子时隙。Step 1.2: Determine the number of sub-slots divided by one time slot, and the number and location of occupied sub-slots for each customer service. When a client occupies multiple sub-slots, the information blocks of the customer service are placed in multiple sub-slots in sequence; otherwise, each client occupies one sub-slot.
步骤1.3:确定每个子时隙中标识块的内容,该内容包括前述的各种划分信息;Step 1.3: determining content of the identification block in each sub-slot, the content including the foregoing various division information;
步骤1.4:用标识块替换子时隙中所有的空闲块。Step 1.4: Replace all free blocks in the sub-slot with the identification block.
步骤1.5:可选地,可以适当删除或增加标识块的数量,以调整速率。例如,发送端和/或中间设备可以适当的删除或增加标识块的数量,实现出口速率和入口速率的一致性。Step 1.5: Optionally, the number of identification blocks may be deleted or increased as appropriate to adjust the rate. For example, the sender and/or the intermediate device may appropriately delete or increase the number of identification blocks to achieve consistency of the exit rate and the entry rate.
在一些例子中,所述步骤1.3可包括:In some examples, the step 1.3 can include:
步骤1.3.1:采用符合802.3标准的一种特殊信息块作为标识块,例如O码块,对O码块进行适当扩展。Step 1.3.1: A special information block conforming to the 802.3 standard is used as an identification block, for example, an O code block, and the O code block is appropriately extended.
步骤1.3.2:标识块中包括但不限于如下内容子时隙总数、子时隙标识、空载标识、承载类型标志、客户总子时隙数,用于指示客户业务占用的子时隙数量;客户内子时隙标识、校验信息等内容。Step 1.3.2: The identifier block includes, but is not limited to, the total number of sub-time slots, the sub-slot identifier, the no-load identifier, the bearer type flag, and the total number of sub-slots of the client, which are used to indicate the number of sub-time slots occupied by the client service. ; sub-slot identification, verification information, etc. within the customer.
步骤1.3.3:子时隙位置和子时隙承载的客户情况,确定标识块的内容,最后确定CRC的校验值。CRC的校验值是根据标识块中其他内容,通过某种数学运算公式计算出的结果,如CRC4运算、CRC8运算。Step 1.3.3: The sub-slot position and the client condition carried by the sub-slot, determine the content of the identification block, and finally determine the check value of the CRC. The CRC check value is the result calculated by some mathematical operation formula according to other contents in the identification block, such as CRC4 operation and CRC8 operation.
在一些实施例中,所述步骤2可包括:In some embodiments, the step 2 may include:
步骤2.1:从第一个子时隙开始,依次从每个子时隙中取一个信息块,以此循环,将所有子时隙复用成一条5G速率的业务流。Step 2.1: Starting from the first sub-slot, one information block is sequentially taken from each sub-slot, and in this cycle, all sub-time slots are multiplexed into a 5G-rate service flow.
步骤2.2:在5G速率的业务流中大约间隔5000个块信息块(或少于5000个信息块间隔)***一个空闲块,用于网络中设备之间时中频率在最大200PPM(正负100PPM)的频偏时进行速度调整。Step 2.2: Insert a free block at intervals of 5000 block information blocks (or less than 5000 information block intervals) in the 5G rate service flow, and use the medium-to-medium frequency between the devices in the network at a maximum of 200 PPM (plus or minus 100 PPM). Speed adjustment when frequency offset.
步骤2.3:在FlexE时隙中承载业务流,发送到接收端。Step 2.3: The service flow is carried in the FlexE time slot and sent to the receiving end.
在一些实施例中,所述步骤3可包括:In some embodiments, the step 3 may include:
步骤3.1:确定FlexE协议中承载低速率的客户业务的时隙。Step 3.1: Determine the time slots in the FlexE protocol that carry low-rate customer traffic.
步骤3.2:从FlexE协议时隙中获取所***块,剥离掉码块中所有的空闲块。Step 3.2: Obtain all code blocks from the FlexE protocol time slot and strip all free blocks in the code block.
在一些实施例中,所述步骤4具体可包括:In some embodiments, the step 4 may specifically include:
步骤4.1:根据标识块的特征(标识块的类型标识及格式等特征),确定码流中所有标识块位置。Step 4.1: Determine the location of all the identification blocks in the code stream according to the characteristics of the identification block (the type identification and format of the identification block).
步骤4.2:对标识块的内容进行校验,按照发送端的运算公式和参与运算的内容,进行运算并判断运算结果是否和标识块自身携带的校验结果相吻合。吻合说明标识块校验正确,否则说明校验错误。校验正确的标识块才继续分析其他内容。Step 4.2: Verify the content of the identification block, perform an operation according to the calculation formula of the sending end and the content of the participating operation, and determine whether the operation result is consistent with the verification result carried by the identification block itself. The match indicates that the identification block is correctly verified, otherwise the verification error is indicated. Verify that the correct identification block continues to analyze other content.
步骤4.3:分析标识块的其他内容,确定子时隙的总数量、本标识块在总子时隙中的顺序关系,确定其他子时隙位置。Step 4.3: Analyze other contents of the identification block, determine the total number of sub-timeslots, the order relationship of the identification blocks in the total sub-timeslots, and determine other sub-slot positions.
步骤4.4:确定所有子时隙的位置后,将一个时隙对应的码流分成多个子时隙的码流。Step 4.4: After determining the positions of all the sub-time slots, divide the code stream corresponding to one time slot into the code streams of the plurality of sub-time slots.
步骤4.5:根据每个子时隙中标识块的内容,确定客户信息,恢复出客户业务的码块。当多个子时隙组成一个客户业务的码流时,按照子时隙的位置顺序、码块前后关系恢复出客户业务的码流。Step 4.5: Determine the customer information according to the content of the identification block in each sub-slot, and recover the code block of the customer service. When a plurality of sub-timeslots form a code stream of a client service, the code stream of the client service is recovered according to the position order of the sub-slots and the code block context.
步骤5.5:用空闲块来替换每条数据流中的标识块,恢复出原始的客户信息流块。Step 5.5: Replace the identification block in each data stream with a free block to recover the original customer information flow block.
示例2:Example 2:
FlexE协议按照物理层100G速率来定义。在光模块中,100G的数据报文在发送前,是将数据包报文进行64/66编码,将64比特的码块扩展成66比特的信息块,增加的2比特位于66比特块前面,作为66比特块的开始标志,然后以66比特块的方式从光口发送出去。在接收时,光口从接收到的数据流中辨别出66比特块,然后从66比特块中恢复出原始的64比特数据,重新组装出数据报文来。FlexE协议处于64比特到66块转换层,在发送66比特码块前,对66比特的码块进行排序和规划,如图8所示:对于100G业务,每20个66比特码块划分为一个码块组,每组中共20个码块,代表20个时隙,每个时隙代表5G(bit/s)带宽的业务速度。发送66比特的码块时,每发送完1023个码块组(1023*20个码块),***一个FlexE开销块,如图8中黑色块。***开销块后,继续发送码块,发送完第二个1023*20个码块后,再***开销块,以此类推,这样在发送码块的过程中,会周期性地***开销块,相邻两个开销块的间隔是1023*20个码块。The FlexE protocol is defined in terms of physical layer 100G rate. In the optical module, the 100G data packet is 64/66 encoded before the data packet is transmitted, and the 64-bit code block is expanded into a 66-bit information block, and the added 2 bits are located in front of the 66-bit block. As the start flag of the 66-bit block, it is then sent out from the optical port in a 66-bit block. Upon reception, the optical port discriminates the 66-bit block from the received data stream, and then recovers the original 64-bit data from the 66-bit block, reassembling the data message. The FlexE protocol is in the 64-bit to 66-block conversion layer. The 66-bit code blocks are sorted and planned before the 66-bit code block is transmitted, as shown in Figure 8. For every 100 66-bit code block partitions for 100G services. As a block group, there are 20 code blocks in each group, representing 20 time slots, each time slot representing a service speed of 5G (bit/s) bandwidth. When a 66-bit code block is transmitted, a FlexE overhead block is inserted every 1023 code block groups (1023*20 code blocks), as shown in FIG. After inserting the overhead block, continue to send the code block, after transmitting the second 1023*20 code blocks, insert the overhead block, and so on, so that during the process of transmitting the code block, the overhead block is periodically inserted. The interval between two adjacent overhead blocks is 1023*20 code blocks.
当4路100Gbit/s的物理层捆绑成一个400Gbit/s的逻辑业务带宽时,如图9所示,每个物理层仍按照20个码块组成一个码块组,每1023个码块组***一个开销字节。在FlexE的shim层,4路20个码块拼装成一个由80个码块组成的码块组,块组中有80个时隙。客户业务在这80个时隙中进行传递,每个时隙带宽是5Gbit/s,共400Gbit/s的业务传递带宽。When four physical layers of 100 Gbit/s are bundled into a logical service bandwidth of 400 Gbit/s, as shown in FIG. 9, each physical layer still forms a code block group according to 20 code blocks, and is inserted every 1023 code block groups. An overhead byte. In the Shim layer of FlexE, 4 channels and 20 code blocks are assembled into a block group consisting of 80 code blocks, and there are 80 time slots in the block group. The customer service is transmitted in these 80 time slots, each of which has a bandwidth of 5 Gbit/s and a total service bandwidth of 400 Gbit/s.
FlexE开销块是一个66比特长的开销块,在数据流发送时,每间隔1023*20个码块***一个开销块。开销块在整个业务流中起到定位功能,找到开销块,就可以知道业务中第一个码块组的位置,以及后续的码块组的位置。开销块的内容如图4,连续8个开销块则组成一个开销帧。一个开销块由2比特的块标志和64位的块内容组成。块标志位于前2 列,后面64列是块内容,第一个开销块的块标志是10,后面7个开销块的块标志是01或SS(SS表示内容不确定)。第一个开销块的内容是:0x4B(8位,十六进制的4B)、“C”比特(1位,指示调整控制)、OMF比特(1位,表示开销帧复帧指示)、RPF比特(1位,表示远端缺陷指示)、RES比特(1位,保留位)、FlexE的捆绑组的编号(group number,共20位)、0x5(4位,十六进制的“5”)、“000000”(共28位,都是“0”)。0x4B和0x5是第一个开销块的标志指示,在接收时,当找到一个开销块中对应位置是0x4B和0x5,则表示该开销块是开销帧中的第一个开销块,和次后连续的7个开销块组成一个开销帧。在开销帧中,reserved部分是保留内容,尚未定义,见图10中所示的黑色块。The FlexE overhead block is a 66-bit-long overhead block. When the data stream is transmitted, an overhead block is inserted every 1023*20 code blocks. The overhead block plays a positioning function in the entire service flow. When the cost block is found, the location of the first code block group in the service and the location of the subsequent code block group can be known. The content of the overhead block is shown in Figure 4. The eight consecutive overhead blocks form an overhead frame. An overhead block consists of a 2-bit block flag and 64-bit block contents. The block flag is located in the first 2 columns, the next 64 columns are the block contents, the block flag of the first overhead block is 10, and the block flags of the following 7 overhead blocks are 01 or SS (SS indicates that the content is uncertain). The content of the first overhead block is: 0x4B (8 bits, 4B in hexadecimal), "C" bit (1 bit, indicating adjustment control), OMF bit (1 bit, indicating overhead frame multiframe indication), RPF Bit (1 bit, indicating remote defect indication), RES bit (1 bit, reserved bit), FlexE bundle number (group number, 20 bits total), 0x5 (4 bits, hexadecimal "5") ), "000000" (28 bits in total, all "0"). 0x4B and 0x5 are the flag indications of the first overhead block. When receiving, when the corresponding position in an overhead block is found to be 0x4B and 0x5, it indicates that the overhead block is the first overhead block in the overhead frame, and the second consecutively The 7 overhead blocks form an overhead frame. In the overhead frame, the reserved portion is reserved and has not been defined, as shown in the black block shown in FIG.
在FlexE协议中,定义8个开销块组成一帧,如图10所示,其中第一个开销块中由成为4B(16进制,标识为0x4B)和05(16进制,标识为0x5)两个字段标识。当开销块中,检测出对应位置是字段4B和05的内容时,则表示该开销块是第一个开销块,和后面的7个开销块组成一帧。在第一个开销块中,OMF字段是复帧指示信号可如图11所示。OMF是单比特数值,连续16帧中为“0”,然后连续16帧中为“1”,然后又是连续16帧中为“0”,然后连续16帧中为“1”,每32帧重复一次,这样复帧就是由32帧组成。In the FlexE protocol, eight overhead blocks are defined to form a frame, as shown in Figure 10, where the first overhead block is defined as 4B (hexadecimal, identified as 0x4B) and 05 (hexadecimal, identified as 0x5). Two field identifiers. When the corresponding location is the content of the fields 4B and 05 in the overhead block, it indicates that the overhead block is the first overhead block, and the following seven overhead blocks constitute one frame. In the first overhead block, the OMF field is a multiframe indication signal as shown in FIG. OMF is a single-bit value, which is "0" in 16 consecutive frames, then "1" in 16 consecutive frames, then "0" in consecutive 16 frames, and then "1" in consecutive 16 frames, every 32 frames. Repeat once, so that the multiframe is composed of 32 frames.
FlexE协议定义的物理层(Physical,PHY)的速率是100G,在100G的PHY上定义了20个时隙,每个时隙带宽是5G(bit/s)。通过多个100G的PHY捆绑可以实现200G、300G、400G等各类大速率的客户业务。根据FlexE协议标准内容,在效率最高的情况下,FlexE协议承载的客户业务最小带宽是5G bit/s,用一个FlexE时隙来承载。当客户业务带宽小于5G时,也必须占用一个带宽为5G bit/s的时隙,存在承载浪费现象。在以太网标准定义中,客户业务有10M bit/s、100M bit/s、1G bit/s等许 多低速业务,这些客户业务可能是一个企业集团专线、银行支行间专线、政府机构专线,需要用独立管道进行传递,实现物理隔离,确保信息安全性。FlexE协议提供时隙功能,实现物理隔离,但如果用一个5G的管道来承载1G或10M的客户业务,则承载带宽浪费非常严重。如果用5个1G客户业务共享一个FlexE时隙,如图11所示。在一个FlexE时隙中,依次承载第1个客户的一个码块,第2个客户一个码块,第3个客户一个码块,第4个客户的一个码块,第5个客户一个码块,第1个客户一个码块……以此类推,这样5个客户就共享一个FlexE时隙,提高了带宽利用率。由于客户之间是通过顺序关系来确定位置,只能适合两个设备之间点到点传输,无法组网实现端到端(穿透中间设备)传输。如图12所示,在网络侧边缘设备(Provider Edge,PE)节点,5个1G客户业务通过轮询复用方式共享一个FlexE时隙,从入PE设备传输到第一个P设备,如果P设备是标准的FlexE接口,不支持1G业务处理,只能处理5G带宽的FlexE时隙,则将一个5G时隙当成一条客户进行处理,将西向入口的5G业务交叉到东向出口,然后发送出去。当P设备西向入口和东向出口速率不相等时(绝对相等的速度是不现实的),P节点需要进行速率调整。当东向出口速度大于西向入口速度时,P点设备就需要在FlexE数据流中***空闲块。空闲块不携带客户信息,只用于速率调整。如图13所示,是5条低速率客户业务共享一个FlexE时隙的方法,在发送端,将FlexE时隙划分成多个子时隙,确定数据流在那些子时隙上承载,用标识块替换每条子时隙中的空闲块。每条子时隙中的标识块内容都不一样的,标识块包括FlexE时隙的子时隙数量、子时隙上的客户信息以及校验信息等。例如红色客户中,浅红色块是红色客户的标识块;蓝色客户中,浅蓝色块是蓝色客户的标识块……以此类推。The physical layer (Physical, PHY) rate defined by the FlexE protocol is 100G, and 20 slots are defined on the 100G PHY, and each slot has a bandwidth of 5G (bit/s). Through a combination of multiple 100G PHYs, you can achieve high-speed customer services such as 200G, 300G, and 400G. According to the FlexE protocol standard, in the most efficient case, the minimum bandwidth of the customer service carried by the FlexE protocol is 5G bit/s, which is carried by a FlexE time slot. When the customer service bandwidth is less than 5G, a time slot with a bandwidth of 5G bit/s must also be occupied, and there is a waste of bearer. In the definition of Ethernet standard, the customer service has many low-speed services such as 10M bit/s, 100M bit/s, 1G bit/s, etc. These customer services may be an enterprise group private line, a bank branch line, and a government agency line. Independent pipelines are delivered to achieve physical isolation to ensure information security. The FlexE protocol provides time slot functions for physical isolation. However, if a 5G pipe is used to carry 1G or 10M customer services, the bearer bandwidth is very wasteful. If you share a FlexE time slot with five 1G client services, as shown in Figure 11. In a FlexE time slot, one code block of the first client is carried in sequence, one code block of the second client, one code block of the third client, one code block of the fourth client, and one code block of the fifth client. The first customer has a code block... and so on, so that five customers share a FlexE time slot, which improves bandwidth utilization. Since the location between the customers is determined by the order relationship, it can only be suitable for point-to-point transmission between two devices, and cannot be networked to achieve end-to-end (penetrating intermediate device) transmission. As shown in Figure 12, at the Provider Edge (PE) node, five 1G customer services share a FlexE time slot through polling multiplexing, and are transmitted from the PE device to the first P device. The device is a standard FlexE interface. It does not support 1G service processing. It can only process FlexE time slots with 5G bandwidth. Then, a 5G time slot is treated as a client, and the 5G service of the west entrance is crossed to the east exit, and then sent out. . When the P-device westbound and eastbound exit rates are not equal (absolutely equal speeds are unrealistic), the P-node needs to adjust the rate. When the east exit speed is greater than the west entrance speed, the P point device needs to insert a free block in the FlexE data stream. The free block does not carry customer information and is only used for rate adjustment. As shown in FIG. 13, a method for sharing a FlexE time slot by five low-rate client services, where the FlexE time slot is divided into multiple sub-timeslots, and the data stream is determined to be carried on those sub-time slots, and the identification block is used. Replace the free block in each subslot. The content of the identification block in each sub-slot is different. The identification block includes the number of sub-slots of the FlexE slot, the client information on the sub-slot, and the verification information. For example, in the red customer, the light red block is the identification block of the red customer; in the blue customer, the light blue block is the identification block of the blue customer... and so on.
图3所示是标识块的结构,标识块采用802.3标准中定义的66比特 的码块结构,在本申请的案例中采用标准中的O码块,并对O码块进行了扩展。在802.3标准中O码块是一种控制块,前两个比特是“10”,然后一个字节(8个比特)是0x4B(4B是十六进制),后面是三个字节的数据内容。在34-37的位置,是O码的序列码特征,标准中采用了“0”作为序列码特征,用来表示前面3个字节的数据内容传递了客户故障信息状态。在本申请示例中,扩展了序列码特征,采用“C”(十六进制的C,即十进制12)标志,用来表示是标识块,在实际应用中也可以其他内容。后面的所有内容全部填充为“0”。Figure 3 shows the structure of the identification block. The identification block uses the 66-bit code block structure defined in the 802.3 standard. In the case of the present application, the O code block in the standard is used, and the O code block is extended. In the 802.3 standard, the O code block is a control block. The first two bits are "10", then one byte (8 bits) is 0x4B (4B is hexadecimal), followed by three bytes of data. content. At the position of 34-37, it is the serial code feature of the O code. The standard uses "0" as the serial code feature to indicate that the data content of the first three bytes conveys the status of the customer fault information. In the example of the present application, the serial code feature is extended, and a "C" (hexadecimal C, ie, decimal 12) flag is used to indicate that it is an identification block, and other contents may be used in actual applications. All subsequent contents are all filled with "0".
在本示例中,用O码中定义的3个字节来传递时隙划分情况,3个字节的内容包括(但不限于这些内容):总时隙数、本块时隙号、本时隙空载标志、单时隙客户标志、客户总时隙数、客户内时隙序号、CRC校验值等内容。总时隙数表示将5G时隙划分成多少个子时隙;子时隙总数,用于指示一个所述时隙包括的子时隙个数;子时隙标识,用于指示本子时隙的资源位置;空载标识,用于指示本子时隙是否承载有所述业务数据;承载类型标志,用于指示本子时隙承载有单一客户业务的所有业务数据或部分业务数据;客户总子时隙数,用于指示客户业务占用的子时隙数量;客户内子时隙标识,用于指示本子时隙在单一客户业务占用的所有子时隙内的时隙标识;校验信息,用于进行所述标识块的校验。In this example, the slot division is transmitted with 3 bytes defined in the O code. The contents of 3 bytes include (but are not limited to) the total number of slots, the slot number of the block, and the current time. Gap no-load flag, single-slot client flag, total number of slots in the client, slot number in the client, CRC check value, etc. The total number of slots indicates how many sub-slots are divided into 5G slots; the total number of sub-slots is used to indicate the number of sub-slots included in one of the slots; and the sub-slot identifier is used to indicate the resources of the sub-slot. a location; an unloaded identifier, used to indicate whether the sub-timeslot carries the service data; a bearer type flag, used to indicate that all service data or part of service data of a single client service is carried in the sub-slot; The number of sub-slots used to indicate the occupation of the customer service; the sub-slot identifier in the customer is used to indicate the time slot identifier of all sub-time slots occupied by the sub-slot in a single client service; the verification information is used to perform the Identifies the check of the block.
在确定了子时隙总数、本块所在子时隙编号等内容后,按照某种数学运算法则(例如CRC4校验算法、CRC8校验算法),对这些内容进行运算,运算结果放在标识块的CRC校验位置。在接收端,用同样数学计算方法,对同样的内容运算,看看运算结果和携带的CRC的校验值是否吻合。吻合表示校验正确,接收端在校验正确时才提取标识块中剩余内容。After determining the total number of sub-timeslots, the sub-slot number of the block, etc., according to some mathematical algorithm (such as CRC4 check algorithm, CRC8 check algorithm), these contents are operated, and the operation result is placed in the identification block. CRC check location. At the receiving end, use the same mathematical calculation method to calculate the same content and see if the operation result matches the check value of the carried CRC. The anastomosis indicates that the verification is correct, and the receiving end extracts the remaining content in the identification block when the verification is correct.
用标识块来替换子时隙中的空闲块,标识块中的内容指示了FlexE 时隙的划分方法:划分了多少个子时隙,每个子时隙上承载的客户情况。由于每个子时隙中有许多空闲块,也就会有许多种类的标识块,即使在传递过程中一个标识块出现错误,当下一个标识块出现时,仍能够正确地分析出子时隙结构。当子时隙中的空闲块被替代后,子时隙的码流中就不会出现空闲块,时隙的码流中增删的空闲块,在接收端删除所有空闲块之后子时隙的资源位置关系会与在发送端的资源位置保持一致。The identification block is used to replace the free block in the sub-slot. The content in the identification block indicates the division method of the FlexE slot: how many sub-slots are divided, and the customer situation carried on each sub-slot. Since there are many free blocks in each sub-slot, there are many kinds of identification blocks. Even if one identification block has an error during the transmission, when the next identification block appears, the sub-slot structure can be correctly analyzed. When the free block in the sub-slot is replaced, the free block does not appear in the code stream of the sub-slot, the free block added and deleted in the code stream of the time slot, and the resources of the sub-slot after all the free blocks are deleted at the receiving end The location relationship will be consistent with the location of the resource at the sender.
完成所有子时隙中空闲块的替换后,按照标识块中子时隙的位置关系,将所有子时隙的信息块按照顺序关系、依次轮询地间插复用成一条接近5G速率的信息块码流,在FlexE协议时隙上承载该信息块码流。由于该信息块码流中没有空闲块,在网络传递中无法根据频率情况动态地调整速率,因此无法在网络上端到端地承载传递。在这些信息码流中***适量的空闲块(块),如图7中的块。在802.3标准中,网络接口的时中频率和标称频率之间偏差不能超过正100PPM(PPM是百万分之一)或负100PPM,因此网络中任何两台设备之间(最大频率和最小频率)频率最大差异不超过200PPM,只需要能容忍200PPM频率偏差调整就可以在网上传递,因此在信息码流块中,每间隔5000个信息块就***一个空闲块,这样相当于每百万块中有200个空闲块,可以供中间设备进行增加或删除。当然也可以***更多的空闲块,只是损失了一些传输带宽。After the replacement of the free blocks in all the sub-slots is completed, the information blocks of all the sub-slots are interleaved and multiplexed into a near-5G rate information according to the order relationship and the sequential polling according to the positional relationship of the sub-slots in the identification block. The block code stream carries the block stream on the FlexE protocol time slot. Since there is no free block in the information block stream, the rate cannot be dynamically adjusted according to the frequency condition in the network transmission, so the transmission cannot be carried end-to-end on the network. An appropriate amount of free blocks (blocks) are inserted in these information streams, as in the block of FIG. In the 802.3 standard, the deviation between the time-frequency of the network interface and the nominal frequency cannot exceed 100PPM (PPM is one-millionth) or negative 100PPM, so between any two devices in the network (maximum frequency and minimum frequency) The maximum frequency difference does not exceed 200PPM. It only needs to be able to tolerate 200PPM frequency deviation adjustment and can be transmitted on the network. Therefore, in the information stream block, a free block is inserted every 5000 blocks, which is equivalent to every million blocks. There are 200 free blocks that can be added or deleted by the intermediate device. Of course, more free blocks can be inserted, but some transmission bandwidth is lost.
***适量的空闲块后,将业务流块通过FlexE时隙承载发送出去,在承载的网络中,各个中间P设备根据时中频率偏差情况,对业务流中的空闲块进行增加或删除操作,最后将业务发送到接收PE设备。After inserting an appropriate number of free blocks, the service flow block is sent out through the FlexE time slot bearer. In the bearer network, each intermediate P device adds or deletes the free block in the service flow according to the time-frequency deviation condition. Send the service to the receiving PE device.
在接收PE设备上,如图13所示,确定承载低速率客户业务的FlexE时隙,提取所***块,然后剥离掉这些码块中的所有空闲块,剩余的就是低速率客户业务的信息块及标识块;寻找标识块,校验标识块是否正 确。用同样数学计算方法,对同样的内容进行运算,核验运算结果和携带的CRC的校验值是否吻合,吻合则表示校验正确。当标识块的内容校验正确时,提取划分信息中的各种内容,根据划分信息可以知道有多少个子时隙,每个子时隙之间顺序关系,每个子时隙上携带的客户信息情况。当客户信息在多个子时隙上携带时,能够知道客户占了多少个子时隙,这些子时隙的位置和顺序关系,从而可以恢复出客户业务。On the receiving PE device, as shown in FIG. 13, the FlexE time slot carrying the low-rate client service is determined, all the code blocks are extracted, and then all the free blocks in the code blocks are stripped off, and the remaining information blocks of the low-rate client service are discarded. And the identification block; look for the identification block and verify that the identification block is correct. Using the same mathematical calculation method, the same content is calculated, and the verification result is consistent with the check value of the carried CRC, and the coincidence indicates that the verification is correct. When the content of the identification block is correctly verified, various contents in the division information are extracted, and according to the division information, it is known how many sub-slots, the order relationship between each sub-slot, and the customer information carried on each sub-slot. When the customer information is carried on multiple sub-slots, it can know how many sub-slots the customer occupies, the position and order relationship of the sub-slots, so that the customer service can be recovered.
如图14所示,为由5个1G的客户(分别如图15中所示的客户1、客户2、客户3、客户4及客户5)共享一个FlexE时隙,将FlexE时隙划分成5个子时隙;发送端根据每个子时隙承载的业务数据,确定标识块的内容,如图15所示。标识块中说明总共有5个子时隙(每个子时隙的顺序关系就是0、1、2、3、4、0、1),第1个客户业务在第1个子时隙上传送,因此客户标识块中本块时隙号的值是“0”,表示该信息块位置是第一个子时隙位置;依次类推,第2个客户业务的标识块中本块时隙号的值是“1”……。As shown in FIG. 14, the FlexE time slot is divided into 5 by sharing one FlexE time slot by five 1G customers (customer 1, customer 2, customer 3, customer 4, and customer 5, respectively, as shown in FIG. 15). The sub-slots; the sender determines the content of the identification block according to the service data carried in each sub-slot, as shown in FIG. The identification block indicates that there are a total of five sub-slots (the order relationship of each sub-slot is 0, 1, 2, 3, 4, 0, 1), and the first customer service is transmitted on the first sub-slot, so the client The value of the slot number of the block in the identification block is "0", indicating that the location of the information block is the first sub-slot position; and so on, the value of the slot number of the block in the identification block of the second client service is " 1"…….
图16所示,在FlexE时隙中划分了4个子时隙,但只有3个1.25Gbit/s速率的客户业务,这3个客户业务通过一个FlexE时隙进行承载传输。3条客户分分别在子时隙0、1、3上传输,子时隙2上不承载客户业务。当某个子时隙空闲时,用标识块代替空闲子时隙的信息内容,如图15所示,空闲子时隙上内容全部相同,都是标识块。标识块中的内容表明该子时隙上不承载任何业务数据,如图17所示,有1个子时隙的标识块中给出该子时隙处于空载状态,没有携带任何客户信息。As shown in Figure 16, four sub-slots are divided in the FlexE slot, but there are only three 1.25 Gbit/s client services, and the three client services are carried over a FlexE slot. The three customer segments are transmitted on sub-slots 0, 1, and 3, respectively, and the sub-slot 2 does not carry client services. When a certain sub-slot is idle, the information content of the idle sub-slot is replaced by the identification block. As shown in FIG. 15, the contents of the idle sub-slot are all the same, and are all identification blocks. The content in the identifier block indicates that no service data is carried on the sub-timeslot. As shown in FIG. 17, the identifier block having one sub-slot is given the idle state and does not carry any client information.
当多种不同速率的数据流共享FlexE时隙时,如图18所示,有3个1Gbit/s速率的客户(分别是客户1、客户2及客户4),1个2Gbit/s的客户(如图19所示的客户3)共享FlexE时隙。在这种情况下,2Gbit/s的客户业务占用两个子时隙,将客户业务按照信息块的顺序关系,依次 轮流放在两个子时隙中,将每个子时隙中空闲块用标识块来替换,每个子时隙中标识块内容给出客户业务有几个子时隙,这些子时隙的顺序关系。如图19所示,有两个子时隙上说明客户业务占用了2个子时隙,一个子时隙是客户业务的第一个子时隙,另外一个子时隙是客户业务的第二个子时隙。在接收端,当解析标识块后发现客户业务占用多个子时隙时,确定客户业务有那些子时隙、客户业务中这些子时隙的排列顺序,然后按照顺序关系,依次从子时隙中提取客户信息。When multiple different rate data streams share FlexE time slots, as shown in Figure 18, there are three 1 Gbit/s rate customers (customer 1, customer 2, and customer 4, respectively), and one 2 Gbit/s customer ( The client 3) shown in Figure 19 shares the FlexE time slot. In this case, the 2Gbit/s client service occupies two sub-slots, and the customer services are sequentially placed in two sub-slots according to the order relationship of the information blocks, and the free blocks in each sub-slot are identified by the identification block. Alternatively, identifying the block content in each sub-slot gives the customer service a number of sub-slots, the order relationship of these sub-slots. As shown in FIG. 19, there are two sub-slots indicating that the customer service occupies two sub-slots, one sub-slot is the first sub-slot of the customer service, and the other sub-slot is the second sub-time of the customer service. Gap. At the receiving end, when the identification of the identity block and the discovery that the client service occupies multiple sub-slots, it is determined that the customer service has those sub-slots, the order of the sub-slots in the customer service, and then sequentially from the sub-slots according to the order relationship. Extract customer information.
在本申请所提供的几个实施例中,应该理解到,所揭露的设备和方法,可以通过其它的方式实现。以上所描述的设备实施例仅仅是示意性的,例如,所述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,如:多个单元或组件可以结合,或可以集成到另一个***,或一些特征可以忽略,或不执行。另外,所显示或讨论的各组成部分相互之间的耦合、或直接耦合、或通信连接可以是通过一些接口,设备或单元的间接耦合或通信连接,可以是电性的、机械的或其它形式的。In the several embodiments provided by the present application, it should be understood that the disclosed apparatus and method may be implemented in other manners. The device embodiments described above are merely illustrative. For example, the division of the unit is only a logical function division. In actual implementation, there may be another division manner, such as: multiple units or components may be combined, or Can be integrated into another system, or some features can be ignored or not executed. In addition, the coupling, or direct coupling, or communication connection of the components shown or discussed may be indirect coupling or communication connection through some interfaces, devices or units, and may be electrical, mechanical or other forms. of.
上述作为分离部件说明的单元可以是、或也可以不是物理上分开的,作为单元显示的部件可以是、或也可以不是物理单元,即可以位于一个地方,也可以分布到多个网络单元上;可以根据实际的需要选择其中的部分或全部单元来实现本实施例方案的目的。The units described above as separate components may or may not be physically separated, and the components displayed as the unit may or may not be physical units, that is, may be located in one place or distributed to multiple network units; Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of the embodiment.
另外,在本申请各实施例中的各功能单元可以全部集成在一个处理模块中,也可以是各单元分别单独作为一个单元,也可以两个或两个以上单元集成在一个单元中;上述集成的单元既可以采用硬件的形式实现,也可以采用硬件加软件功能单元的形式实现。In addition, each functional unit in each embodiment of the present application may be integrated into one processing module, or each unit may be separately used as one unit, or two or more units may be integrated into one unit; The unit can be implemented in the form of hardware or in the form of hardware plus software functional units.
本领域普通技术人员可以理解:实现上述方法实施例的全部或部分步骤可以通过程序指令相关的硬件来完成,前述的程序可以存储于一计 算机可读取存储介质中,该程序在执行时,执行包括上述方法实施例的步骤;而前述的存储介质包括:移动存储设备、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、磁碟或者光盘等各种可以存储程序代码的介质。A person skilled in the art can understand that all or part of the steps of implementing the above method embodiments may be completed by using hardware related to the program instructions. The foregoing program may be stored in a computer readable storage medium, and the program is executed when executed. The foregoing storage device includes the following steps: the foregoing storage medium includes: a mobile storage device, a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk. A medium that can store program code.
以上所述,仅为本申请的具体实施方式,但本申请的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本申请揭露的技术范围内,可轻易想到变化或替换,都应涵盖在本申请的保护范围之内。因此,本申请的保护范围应以所述权利要求的保护范围为准。The foregoing is only a specific embodiment of the present application, but the scope of protection of the present application is not limited thereto, and any person skilled in the art can easily think of changes or substitutions within the technical scope disclosed in the present application. It should be covered by the scope of protection of this application. Therefore, the scope of protection of the present application should be determined by the scope of the claims.

Claims (15)

  1. 一种数据传输方法,包括:A data transmission method includes:
    根据客户业务的信息将一个时隙划分成多个子时隙;Dividing a time slot into a plurality of sub-time slots according to information of the customer service;
    在所述子时隙添加码块,其中,所述码块包括:信息块及标识块,所述信息块包括所述客户业务的业务数据;所述标识块包括所述时隙的划分信息;Adding a code block to the sub-slot, where the code block includes: an information block and an identification block, where the information block includes service data of the customer service; and the identification block includes division information of the time slot;
    利用所述子时隙的码块,组成所述时隙的码流;Using the code blocks of the sub-slots to form a code stream of the time slot;
    发送所述码流。Send the code stream.
  2. 根据权利要求1所述的方法,其中,The method of claim 1 wherein
    所述方法还包括:在所述码流的码块之间***用于速率调整的空闲块;The method also includes inserting a free block for rate adjustment between code blocks of the code stream;
    所述发送所述码流,包括:The sending the code stream includes:
    发送***有所述空闲块的码流。A code stream into which the free block is inserted is transmitted.
  3. 根据权利要求2所述的方法,其中,The method of claim 2, wherein
    所述在所述码流的码块之间***用于速率调整的空闲块,包括:Inserting a free block for rate adjustment between code blocks of the code stream includes:
    在所述码流中每间隔预定数量的码块***一个所述空闲块。One of the free blocks is inserted every predetermined number of code blocks in the code stream.
  4. 根据权利要求1、2或3所述的方法,其中,The method according to claim 1, 2 or 3, wherein
    所述在所述子时隙添加码块,包括:Adding a code block in the sub-timeslot includes:
    将所述子时隙中的空闲块替换为所述标识块。The free block in the sub-slot is replaced with the identification block.
  5. 根据权利要求3所述的方法,其中,The method of claim 3, wherein
    所述标识块携带以下信息的至少之一:The identification block carries at least one of the following information:
    子时隙总数,用于指示一个所述时隙包括的子时隙个数;a total number of sub-timeslots, used to indicate the number of sub-slots included in one of the time slots;
    子时隙标识,用于指示本子时隙的资源位置;a sub-slot identifier, used to indicate a resource location of the sub-slot;
    空载标识,用于指示本子时隙是否承载有所述业务数据;An empty identifier, configured to indicate whether the sub-timeslot carries the service data;
    承载类型标志,用于指示本子时隙承载有单一客户业务的所有业务数 据或部分业务数据;a bearer type flag, which is used to indicate that all service data or part of service data of a single client service is carried in the sub-slot;
    客户总子时隙数,用于指示客户业务占用的子时隙数量;The total number of sub-slots of the client, used to indicate the number of sub-timeslots occupied by the customer service;
    客户内子时隙标识,用于指示本子时隙在单一客户业务占用的所有子时隙内的时隙标识;a sub-slot identifier in the customer, which is used to indicate the slot identifier of the sub-slot in all sub-time slots occupied by a single client service;
    校验信息,用于进行所述标识块的校验。The verification information is used to perform verification of the identification block.
  6. 根据权利要求5所述的方法,其中,The method of claim 5, wherein
    所述标识块为O码块。The identification block is an O code block.
  7. 根据权利要求1、2或3所述的方法,其中,The method according to claim 1, 2 or 3, wherein
    所述根据客户业务的信息将一个时隙划分成多个子时隙,包括:The dividing the time slot into multiple sub-time slots according to the information of the customer service, including:
    根据客户业务的数量和单个客户业务的传输速率,确定一个时隙包括子时隙数量和所述子时隙的资源位置。According to the number of customer services and the transmission rate of a single client service, it is determined that one slot includes the number of sub-slots and the resource location of the sub-slots.
  8. 一种数据传输方法,包括:A data transmission method includes:
    接收码流;Receiving a code stream;
    根据所述码流中提取的标识块,确定时隙的划分信息;Determining the division information of the time slot according to the identification block extracted in the code stream;
    根据所述划分信息,从所述时隙的子时隙中提取出对应客户业务的信息块。And extracting, according to the split information, information blocks corresponding to customer services from sub-time slots of the time slot.
  9. 根据权利要求8所述的方法,其中,The method of claim 8 wherein
    所述方法还包括:The method further includes:
    从所述码流中剥离出用于调整速率的空闲块。A free block for adjusting the rate is stripped from the code stream.
  10. 根据权利要求8或9所述的方法,其中,The method according to claim 8 or 9, wherein
    所述根据所述码流中提取的标识块,确定时隙的划分信息,包括:Determining the division information of the time slot according to the identifier block extracted in the code stream, including:
    利用所述标识块中的校验信息对所述标识块进行校验;And verifying the identifier block by using verification information in the identifier block;
    若所述标识块通过校验,从所述标识块中提取出以下至少之一:If the identification block passes the verification, at least one of the following is extracted from the identification block:
    子时隙总数,用于指示一个所述时隙包括的子时隙个数;a total number of sub-timeslots, used to indicate the number of sub-slots included in one of the time slots;
    子时隙标识,用于指示本子时隙的资源位置;a sub-slot identifier, used to indicate a resource location of the sub-slot;
    空载标识,用于指示本子时隙是否承载有所述业务数据;An empty identifier, configured to indicate whether the sub-timeslot carries the service data;
    承载类型标志,用于指示本子时隙承载有单一客户业务的所有业务数据或部分业务数据;a bearer type flag, which is used to indicate that all service data or part of service data of a single client service is carried in the sub-slot;
    客户总子时隙数,用于指示单一客户业务占用的子时隙信息;The total number of sub-slots of the client, used to indicate sub-slot information occupied by a single client service;
    客户内子时隙标识,用于指示本子时隙在单一客户业务占用的所有子时隙内的时隙标识。The intra-subslot time slot identifier is used to indicate the time slot identifier of the sub-slot in all sub-time slots occupied by a single client service.
  11. 根据权利要求8或9所述的方法,其中,The method according to claim 8 or 9, wherein
    所述根据所述划分信息,从所述时隙的子时隙中提取出对应客户业务的信息块,包括:Extracting the information block corresponding to the customer service from the sub-time slot of the time slot according to the split information, including:
    根据所述划分信息,确定一个时隙所包含的子时隙数量及子时隙的资源位置;Determining, according to the split information, a number of sub-slots included in one slot and a resource location of the sub-slot;
    从所述子时隙中剥离出所述标识块,获得对应客户业务的信息块。The identification block is stripped from the sub-timeslot to obtain an information block corresponding to the customer service.
  12. 一种数据传输装置,包括:A data transmission device comprising:
    划分模块,配置为根据客户业务的信息将一个时隙划分成多个子时隙;a dividing module configured to divide a time slot into a plurality of sub-time slots according to information of the customer service;
    添加模块,配置为在所述子时隙添加码块,其中,所述码块包括:信息块及标识块,所述信息块包括所述客户业务的业务数据;所述标识块包括所述时隙的划分信息;Adding a module, configured to add a code block in the sub-slot, where the code block includes: an information block and an identification block, where the information block includes service data of the customer service; and the identifier block includes the time Information on the division of the gap;
    组成模块,配置为利用所述子时隙的码块,组成所述时隙的码流;a component module configured to utilize a code block of the sub-slot to form a code stream of the time slot;
    发送模块,配置为发送所述码流。a sending module configured to send the code stream.
  13. 一种数据传输装置,其中,包括:A data transmission device, comprising:
    接收模块,配置为接收码流;a receiving module configured to receive a code stream;
    确定模块,配置为根据所述码流中提取的标识块,确定时隙的划分信息;a determining module, configured to determine slot division information according to the identifier block extracted in the code stream;
    提取模块,配置为根据所述划分信息,从所述时隙的子时隙中提取出对应客户业务的信息块。And an extracting module, configured to extract, according to the split information, an information block corresponding to a customer service from a sub-time slot of the time slot.
  14. 一种网络设备,其中,包括:A network device, including:
    收发器,配置为收发信息;a transceiver configured to send and receive information;
    存储器,配置为存储信息;a memory configured to store information;
    处理器,分别与所述收发器及存储器连接,配置为通过执行存储在所述存储器中的计算机可执行代码,控制所述收发器的信息收发及所述存储器的信息存储,并执行权利要求1至7或8至11任一项提供的数据传输方法。a processor, coupled to the transceiver and the memory, respectively configured to control information transceiving of the transceiver and information storage of the memory by executing computer executable code stored in the memory, and executing claim 1 The data transmission method provided by any of 7 or 8 to 11.
  15. 一种计算机存储介质,其中,所述计算机存储介质存储有计算机可执行代码,所述计算机可执行代码被执行后,能够实现执行权利要求1至7或8至11任一项提供的数据传输方法。A computer storage medium, wherein the computer storage medium stores computer executable code, and after the computer executable code is executed, the data transmission method provided by any one of claims 1 to 7 or 8 to 11 can be implemented .
PCT/CN2019/072555 2018-03-12 2019-01-21 Data transmission method and apparatus, network device, and storage medium WO2019174406A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201810201807.XA CN110266612B (en) 2018-03-12 2018-03-12 Data transmission method and device, network equipment and storage medium
CN201810201807.X 2018-03-12

Publications (1)

Publication Number Publication Date
WO2019174406A1 true WO2019174406A1 (en) 2019-09-19

Family

ID=67907361

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2019/072555 WO2019174406A1 (en) 2018-03-12 2019-01-21 Data transmission method and apparatus, network device, and storage medium

Country Status (2)

Country Link
CN (1) CN110266612B (en)
WO (1) WO2019174406A1 (en)

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112436900A (en) * 2020-10-30 2021-03-02 中国石油天然气集团有限公司 Data transmission method and device
WO2021103928A1 (en) * 2019-11-28 2021-06-03 中兴通讯股份有限公司 Data transmission method and apparatus, terminal device and storage medium
CN113993163A (en) * 2021-10-26 2022-01-28 新华三信息安全技术有限公司 Service processing method and device
CN114301691A (en) * 2021-12-29 2022-04-08 威创集团股份有限公司 Distributed signal one-way transmission isolation method, device, equipment and storage medium
CN114615142A (en) * 2020-12-03 2022-06-10 烽火通信科技股份有限公司 Service processing method and device
CN114762274A (en) * 2019-12-31 2022-07-15 华为技术有限公司 Rate adjustment apparatus and method
WO2023035776A1 (en) * 2021-09-13 2023-03-16 华为技术有限公司 Communication method, related apparatus, and storage medium
WO2024001230A1 (en) * 2022-06-28 2024-01-04 中兴通讯股份有限公司 Bearing method, communication equipment and storage medium

Families Citing this family (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112636883A (en) * 2019-09-24 2021-04-09 华为技术有限公司 Service processing method, device and storage medium
CN110856052B (en) * 2019-11-13 2022-07-19 Ut斯达康通讯有限公司 Flexe implementation method and device supporting multiple granularities and electronic equipment
CN112865910A (en) * 2019-11-28 2021-05-28 中兴通讯股份有限公司 Data transmission method, device, terminal equipment and storage medium
CN111107641B (en) * 2019-12-11 2023-11-07 Ut斯达康通讯有限公司 FlexE service processing method and device and electronic equipment
CN113472826A (en) * 2020-03-30 2021-10-01 中兴通讯股份有限公司 Service bearing and extracting method, data exchange method and equipment
CN113853014A (en) * 2020-06-28 2021-12-28 ***通信有限公司研究院 Information transmission method, device, related equipment and storage medium
CN113923778A (en) * 2020-07-07 2022-01-11 ***通信有限公司研究院 Information transmission method, device and equipment of slicing channel
CN111917506B (en) * 2020-07-21 2021-07-20 烽火通信科技股份有限公司 Flexe low-speed service processing method and device
CN114125019A (en) * 2020-08-31 2022-03-01 深圳市中兴微电子技术有限公司 Data transmission method and device, electronic equipment and computer readable medium
CN112218293B (en) * 2020-10-22 2023-04-18 山东纽克信息技术有限公司 Mobile terminal secure communication method, device, terminal equipment and storage medium
CN115802472A (en) * 2021-09-10 2023-03-14 中兴通讯股份有限公司 Cell stream transmission method, device, network equipment and storage medium
CN114584258B (en) * 2022-02-15 2023-05-26 烽火通信科技股份有限公司 Service delay reduction method, device, equipment and readable storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1250280A (en) * 1998-08-12 2000-04-12 朗迅科技公司 Method of formatting and transmitting information in radio telecommunication system
CN1878033A (en) * 2006-07-04 2006-12-13 华为技术有限公司 Method for transmitting coding rate adapter unit frame in voice service
US20160119076A1 (en) * 2014-10-24 2016-04-28 Ciena Corporation Channelized oduflex systems and methods
CN106411454A (en) * 2015-07-30 2017-02-15 华为技术有限公司 Method for data transmission, transmitter and receiver
CN108632886A (en) * 2017-03-21 2018-10-09 华为技术有限公司 A kind of method for processing business and device

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101873517B (en) * 2009-04-24 2013-08-07 华为技术有限公司 Signal transmission method, device and communication system for optical transport network
CN102318238B (en) * 2009-05-11 2014-12-31 华为技术有限公司 Data transmission method, system and apparatus in an optical transport network
US10075259B2 (en) * 2016-01-06 2018-09-11 Infinera Corporation Systems and methods of time slot allocation for shared mesh protection on bundled links
CN107438028B (en) * 2016-05-25 2020-10-09 华为技术有限公司 Method and equipment for processing customer service
CN107566074B (en) * 2016-06-30 2019-06-11 华为技术有限公司 The method and transmission equipment of client signal are transmitted in optical transfer network
CN107612825B (en) * 2017-08-04 2020-10-27 华为技术有限公司 Method and network device for establishing flexible Ethernet path

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1250280A (en) * 1998-08-12 2000-04-12 朗迅科技公司 Method of formatting and transmitting information in radio telecommunication system
CN1878033A (en) * 2006-07-04 2006-12-13 华为技术有限公司 Method for transmitting coding rate adapter unit frame in voice service
US20160119076A1 (en) * 2014-10-24 2016-04-28 Ciena Corporation Channelized oduflex systems and methods
CN106411454A (en) * 2015-07-30 2017-02-15 华为技术有限公司 Method for data transmission, transmitter and receiver
CN108632886A (en) * 2017-03-21 2018-10-09 华为技术有限公司 A kind of method for processing business and device

Cited By (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2021103928A1 (en) * 2019-11-28 2021-06-03 中兴通讯股份有限公司 Data transmission method and apparatus, terminal device and storage medium
CN114762274A (en) * 2019-12-31 2022-07-15 华为技术有限公司 Rate adjustment apparatus and method
CN114762274B (en) * 2019-12-31 2024-04-09 华为技术有限公司 Rate adjustment apparatus and method
CN112436900A (en) * 2020-10-30 2021-03-02 中国石油天然气集团有限公司 Data transmission method and device
CN114615142A (en) * 2020-12-03 2022-06-10 烽火通信科技股份有限公司 Service processing method and device
CN114615142B (en) * 2020-12-03 2023-06-09 烽火通信科技股份有限公司 Service processing method and device
WO2023035776A1 (en) * 2021-09-13 2023-03-16 华为技术有限公司 Communication method, related apparatus, and storage medium
CN113993163A (en) * 2021-10-26 2022-01-28 新华三信息安全技术有限公司 Service processing method and device
CN113993163B (en) * 2021-10-26 2023-07-25 新华三信息安全技术有限公司 Service processing method and device
CN114301691A (en) * 2021-12-29 2022-04-08 威创集团股份有限公司 Distributed signal one-way transmission isolation method, device, equipment and storage medium
CN114301691B (en) * 2021-12-29 2022-10-25 威创集团股份有限公司 Distributed signal one-way transmission isolation method, device, equipment and storage medium
WO2024001230A1 (en) * 2022-06-28 2024-01-04 中兴通讯股份有限公司 Bearing method, communication equipment and storage medium

Also Published As

Publication number Publication date
CN110266612A (en) 2019-09-20
CN110266612B (en) 2022-01-25

Similar Documents

Publication Publication Date Title
WO2019174406A1 (en) Data transmission method and apparatus, network device, and storage medium
US10951340B2 (en) Method and device for transmitting bit error rate information in FlexE overhead frame, and computer storage medium
WO2018059446A1 (en) Service data transmission method, device and system, and storage medium
CN113784437B (en) Method and device for realizing FlexE bearing small particle service
US20220416895A1 (en) Data transmission method and apparatus, terminal device and storage medium
CN107888344B (en) Method, equipment and system for detecting error code
US8787406B2 (en) Method and apparatus for distributing and receiving high-speed ethernet media independent interface blocks
CN109672560B (en) Flexible Ethernet management channel expansion method and device
WO2018000894A1 (en) Method, apparatus, and network system for sending and receiving services
WO2018130228A1 (en) Service delivery method, device and system, and storage medium
WO2019007431A1 (en) Fault notification and acquisition method and apparatus for flexible ethernet, and communication device
US20230164624A1 (en) Service data processing, exchange and extraction methods, devices, and computer-readable medium
US20200280371A1 (en) Method, device, and system for transmitting data
CN112994843A (en) Ethernet frame framing method and device
WO2019128462A1 (en) Data transmission method, sending apparatus and receiving apparatus
CN109845217B (en) Method and apparatus for transmitting data in flexible Ethernet
WO2022111309A1 (en) Code block recognition method and apparatus
CN114866185A (en) Method for transmitting multi-priority data frame
WO2020177693A1 (en) Method and apparatus for sending customer service data stream, and storage medium
CN111817986A (en) Message processing method and device and computer readable storage medium
CN113454935B (en) Line coding method and device
WO2023143577A1 (en) Method, apparatus and system for processing data frame in optical transport network
US10530513B2 (en) Asynchronous data multiplexing method and device
CN117579220A (en) Fault code block processing method and device
CN113923778A (en) Information transmission method, device and equipment of slicing channel

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 19767509

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 21/01/2021)

122 Ep: pct application non-entry in european phase

Ref document number: 19767509

Country of ref document: EP

Kind code of ref document: A1