WO2023083175A1 - Packet transmission method and communication apparatus - Google Patents

Packet transmission method and communication apparatus Download PDF

Info

Publication number
WO2023083175A1
WO2023083175A1 PCT/CN2022/130613 CN2022130613W WO2023083175A1 WO 2023083175 A1 WO2023083175 A1 WO 2023083175A1 CN 2022130613 W CN2022130613 W CN 2022130613W WO 2023083175 A1 WO2023083175 A1 WO 2023083175A1
Authority
WO
WIPO (PCT)
Prior art keywords
message
packet
network device
client
data
Prior art date
Application number
PCT/CN2022/130613
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 WO2023083175A1 publication Critical patent/WO2023083175A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L49/00Packet switching elements
    • H04L49/30Peripheral units, e.g. input or output ports
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/42Loop networks
    • H04L12/427Loop networks with decentralised control
    • H04L12/43Loop networks with decentralised control with synchronous transmission, e.g. time division multiplex [TDM], slotted rings
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L49/00Packet switching elements
    • H04L49/10Packet switching elements characterised by the switching fabric construction
    • H04L49/111Switch interfaces, e.g. port details
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L49/00Packet switching elements
    • H04L49/60Software-defined switches

Definitions

  • the present application relates to the technical field of communication, and in particular to a message transmission method and a communication device.
  • Store-and-forward is a forwarding technology that has been used by standard Ethernet since its birth. It means that each receiving-side device in the network completely receives and stores the message, then performs table lookup processing on it, and forwards it after finding the outgoing port. .
  • Channel forwarding refers to forwarding according to the mapping relationship of service ingress and egress ports, and forwarding according to the configuration table, which is a forwarding technology based on code blocks. Store-and-forward and channel-forward are performed on different ports, and the two ports are independent and incompatible with each other.
  • the number of packets to be transmitted in store-and-forward and channel-forwarding may be different. There is a phenomenon that one port is idle, and the packets of the other port cannot be sent in time. The port utilization rate is poor, and packets cannot be transmitted flexibly.
  • the present application provides a message transmission method and a communication device, which can improve port resource utilization and flexibly send messages.
  • the embodiment of the present application provides a message transmission method, and the execution body of the method may be a first network device, or may be a chip applied in the first network device.
  • the description below takes the execution subject as an example of the first network device.
  • the method includes: the first network device determines the first packet and the second packet. Wherein, the first message includes data of common services, and the second message includes data of hard-isolated services. Then, the first network device sends the first packet and the second packet in the same cycle through its first port.
  • the first network device can send more first packets, or, conversely, when the number of first packets decreases or no first packets are sent, if the number of second packets is large, The first network device can send more second packets, avoid idle ports, improve port utilization, and flexibly transmit packets.
  • the first packet includes a first field.
  • the first field indicates the type of the first packet, for example, indicates that the type of the first packet is a common packet.
  • the second packet includes a second field.
  • the second field indicates the type of the second message, such as indicating that the type of the second message is a hard-isolated message, so that the receiving end device, such as the second network device, determines the received message through the first field or the second field The type of the message.
  • the first field is carried in the preamble part of the first packet, or the first field is carried in the overhead OH field of the first packet.
  • the second field is carried in the preamble part of the second packet, or the second field is carried in the OH field of the second packet.
  • the first packet further includes a first identifier.
  • the first identifier is used to identify the first client, and the message of the first client includes the first message.
  • the first identifier indicates which client's message the first message is.
  • the first data unit includes a first code block.
  • the first data unit is one or more data units in the second message
  • the first code block is a code block after encoding the service data of the target customer
  • the target customer is a second customer among at least one second customer
  • the data in the second message includes service data of all the second customers in the at least one second customer.
  • the second packet carries at least one data unit, and one or more data units in the at least one data unit carry service data of a second client.
  • the packet transmission method in the embodiment of the present application further includes: the first network device determines the first code block in the first data unit according to the first information.
  • the first information indicates the corresponding relationship between the first data unit and the target client, so that the first network device encapsulates the second packet.
  • the encoded lengths of the first packet and the second packet are the same, for example, the payloads of the first packet and the second packet carry the same number of code blocks.
  • the encoding includes at least one of the following: 64B/66B, 66B/65B, or 64B/65B.
  • the first network device sends the first message and the second message in the same period through its first port, including: the first network device transmits the first message through the first port according to the second information
  • the first packet is sent in a time unit
  • the second packet is sent in a second time unit.
  • the second information indicates the positions of the first time unit and the second time unit in the cycle.
  • the position of each time unit in the cycle is preconfigured, and the first network device only needs to transmit the first packet and the second packet according to the preconfigured time unit position.
  • the first network device sends the first message and the second message in the same period through its first port, including: the first network device transmits the first message and the second message according to the second information and the third information through the first The port sends the first packet in the unoccupied first time unit, and sends the second packet in the unoccupied second time unit.
  • the second information indicates the configured quantity of the first time unit and the second time unit in the period
  • the third information indicates the unoccupied quantity of the first time unit and the second time unit in the period.
  • the number of each time unit in the period is preconfigured, but the position is not fixed, and the first network device transmits the first packet and the second packet according to the preconfigured number of time units. For example, at a certain moment, only the encapsulation of the first packet is completed, and the number of time units corresponding to the client in the first packet is greater than zero, then the first packet is sent. For another example, at a certain moment, only the encapsulation of the second packet is completed, and the number of time units corresponding to the client in the second packet is greater than zero, the second packet is sent to improve the flexibility of packet transmission.
  • the second time unit where the second packet is located is earlier than the first time unit where the first packet is located.
  • the generation time of the second packet is the same as that of the first packet, or the generation time of the second packet is earlier than the generation time of the first packet.
  • the first network device will send the second packet first, and then send the first packet, so as to ensure the delay requirement of the hard isolation service.
  • the second time unit where the second message is located is later than the first time unit where the first message is located, and the generation time of the second message is later than the generation time of the first message. That is to say, if the encapsulation of the second packet is not completed but the encapsulation of the first packet is completed, the first network device first sends the first packet and then sends the second packet, so as to avoid idle ports.
  • the second information is determined based on the service bandwidth of the first client and the service bandwidth of the second client.
  • the message of the first client includes the first message
  • the data in the second message includes the service data of the second client.
  • the greater the service bandwidth of the first client the greater the number of first time units correspondingly.
  • the greater the service bandwidth of the second client the greater the number of second time units correspondingly.
  • the packet transmission method in this embodiment of the present application further includes: the first network device determines the third packet.
  • the third message is a message of the third client, and the type of the third message is the same as that of the first message.
  • the first network device periodically sends the third packet through its first port.
  • the third message is transmitted through a third time unit, the third time unit is configured to transmit the message of the first client, and the third time unit is in an idle state, and the message of the first client includes the first message.
  • the third time unit can also transmit messages from other clients, such as a message from the third client, so as to implement statistical multiplexing and improve resource utilization.
  • the embodiment of the present application provides a packet transmission method, and the execution subject of the method may be the second network device, or may be a chip applied in the second network device.
  • the following description is made by taking the execution subject as an example of the second network device.
  • the method includes: the second network device receives the first message and the second message in the same period through its second port. Wherein, the first message includes data of common services, and the second message includes data of hard-isolated services. Then, the second network device forwards the service data in the first message according to the type of the first message, and forwards the service data in the second message according to the type of the second message.
  • the second network device forwarding the service data in the first packet according to the type of the first packet includes: the second network device determining a store-and-forward mode according to the type of the first packet. The second network device forwards the service data in the first packet in a store-and-forward manner.
  • the second network device forwards the service data in the first packet in a store-and-forward manner.
  • the first packet includes a first field.
  • the first field indicates the type of the first packet.
  • the first field is carried in the preamble part of the first packet, or the first field is carried in the overhead OH field of the first packet.
  • the second network device forwards the service data in the second message according to the type of the second message, including: the second network device determines the channel forwarding mode according to the type of the second message, and the second The second network device forwards the service data of each second customer in the at least one second customer in a channel forwarding manner.
  • the data in the second message includes service data of all second customers in at least one second customer.
  • the second network device forwards the service data in the second packet in a channel forwarding manner.
  • the second packet includes a second field.
  • the second field indicates the type of the second packet.
  • the second field is carried in the preamble part of the second packet, or the second field is carried in the OH field of the second packet.
  • the embodiment of the present application provides a communication device, which may be the first network device in the above first aspect or any possible design of the first aspect, or a chip that realizes the functions of the above first network device
  • the communication device includes corresponding modules, units, or means (means) for implementing the above method, and the modules, units, or means can be implemented by hardware, software, or by executing corresponding software through hardware.
  • the hardware or software includes one or more modules or units corresponding to the above functions.
  • the communication device includes a processing unit and a sending unit.
  • the processing unit is configured to determine the first packet and the second packet.
  • the first message includes data of common services
  • the second message includes data of hard-isolated services.
  • the sending unit is configured to send the first message and the second message in the same cycle through its first port.
  • the first packet includes a first field.
  • the first field indicates the type of the first packet, for example, indicates that the type of the first packet is a common packet.
  • the second packet includes a second field. Wherein, the second field indicates the type of the second packet.
  • the first field is carried in the preamble part of the first packet, or the first field is carried in the overhead OH field of the first packet.
  • the second field is carried in the preamble part of the second packet, or the second field is carried in the OH field of the second packet.
  • the first packet further includes a first identifier.
  • the first identifier is used to identify the first client, and the message of the first client includes the first message.
  • the first data unit includes a first code block.
  • the first data unit is one or more data units in the second packet.
  • the first code block is a code block after encoding service data of a target customer, and the target customer is a second customer among at least one second customer.
  • the data in the second message includes service data of all the second clients in the at least one second client.
  • the processing unit is further configured to determine the first code block in the first data unit according to the first information.
  • the first information indicates the corresponding relationship between the first data unit and the target customer.
  • the encoded lengths of the first packet and the second packet are the same.
  • the encoding includes at least one of the following: 64B/66B, 66B/65B, or 64B/65B.
  • the sending unit is configured to send the first message and the second message in the same period through its first port, specifically including: according to the second information, sending the first message through the first port at the first time unit The first packet is sent at the time unit, and the second packet is sent at the second time unit.
  • the second information indicates the positions of the first time unit and the second time unit in the cycle.
  • the sending unit is configured to send the first message and the second message in the same cycle through its first port, specifically including: according to the second information and the third information, through the first port at The first message is sent on the unoccupied first time unit, and the second message is sent on the unoccupied second time unit.
  • the second information indicates the configured quantity of the first time unit and the second time unit in the period
  • the third information indicates the unoccupied quantity of the first time unit and the second time unit in the period.
  • the second time unit where the second packet is located is earlier than the first time unit where the first packet is located.
  • the generation time of the second packet is the same as that of the first packet, or the generation time of the second packet is earlier than the generation time of the first packet.
  • the second time unit where the second message is located is later than the first time unit where the first message is located, and the generation time of the second message is later than the generation time of the first message.
  • the second information is determined based on the service bandwidth of the first client and the service bandwidth of the second client.
  • the data in the first message includes the service data of the first customer
  • the data in the second message includes the service data of the second customer.
  • the processing unit is also configured to determine the third packet.
  • the third message is a message of the third client, and the type of the third message is the same as that of the first message.
  • the sending unit is further configured to send the third message in a period through the first port.
  • the third message is transmitted through a third time unit, the third time unit is configured to transmit the message of the first client, and the third time unit is in an idle state.
  • the messages of the first client include the first message.
  • the embodiment of the present application provides a communication device, which may be the second network device in the above-mentioned second aspect or any possible design of the second aspect, or a chip that realizes the functions of the above-mentioned second network device
  • the communication device includes corresponding modules, units, or means (means) for implementing the above method, and the modules, units, or means can be implemented by hardware, software, or by executing corresponding software through hardware.
  • the hardware or software includes one or more modules or units corresponding to the above functions.
  • the communication device includes a receiving unit, a processing unit and a sending unit.
  • the receiving unit is configured to receive the first message and the second message in the same cycle through its second port.
  • the first message includes data of common services
  • the second message includes data of hard-isolated services.
  • the sending unit is configured to forward the service data in the first message according to the type of the first message, and forward the service data in the second message according to the type of the second message.
  • the sending unit is configured to forward the service data in the first message according to the type of the first message, and specifically includes: a processing unit configured to determine the storage and forwarding according to the type of the first message Way.
  • a sending unit configured to forward the service data in the first message in a store-and-forward manner.
  • the first packet includes a first field.
  • the first field indicates the type of the first packet.
  • the first field is carried in the preamble part of the first packet, or the first field is carried in the overhead OH field of the first packet.
  • the sending unit is configured to forward the service data in the second message according to the type of the second message, including: a processing unit configured to determine the channel forwarding mode according to the type of the second message .
  • the sending unit is configured to forward the service data of each second customer in the at least one second customer in a channel forwarding manner.
  • the data in the second message includes service data of all second customers in at least one second customer.
  • the second packet includes a second field.
  • the second field indicates the type of the second packet.
  • the second field is carried in the preamble part of the second packet, or the second field is carried in the OH field of the second packet.
  • the embodiment of the present application provides a communication device, including: a processor and a memory; the memory is used to store computer instructions, and when the processor executes the instructions, the communication device performs any of the above aspects or any In one aspect, a method performed by the first network device in any possible design.
  • the communication device may be the first network device in the first aspect or any possible design of the first aspect, or a chip implementing the functions of the first network device above.
  • an embodiment of the present application provides a communication device, including: a processor; the processor is coupled to a memory, and is used to read and execute instructions in the memory, so that the communication device performs any of the above aspects Or a method executed by the first network device in any possible design of any aspect.
  • the communication device may be the first network device in the first aspect or any possible design of the first aspect, or a chip implementing the functions of the first network device above.
  • the embodiment of the present application provides a chip, including a processing circuit and an input/output interface.
  • the input and output interface is used to communicate with modules other than the chip, for example, the chip may be a chip that implements the function of the first network device in the first aspect or any possible design of the first aspect.
  • the processing circuit is used to run computer programs or instructions to implement the method in the above first aspect or any possible design of the first aspect.
  • the embodiment of the present application provides a communication device, including: a processor and a memory; the memory is used to store computer instructions, and when the processor executes the instructions, the communication device performs any of the above aspects or any In one aspect, a method performed by the second network device in any possible design.
  • the communication device may be the second network device in the above-mentioned second aspect or any possible design of the second aspect, or a chip that implements the functions of the above-mentioned second network device.
  • an embodiment of the present application provides a communication device, including: a processor; the processor is coupled to a memory, and is used to read and execute instructions in the memory, so that the communication device performs any of the above aspects Or a method executed by the second network device in any possible design of any aspect.
  • the communication device may be the second network device in the above-mentioned second aspect or any possible design of the second aspect, or a chip that implements the functions of the above-mentioned second network device.
  • the embodiment of the present application provides a chip, including a processing circuit and an input/output interface.
  • the input and output interface is used to communicate with modules other than the chip, for example, the chip may be a chip that implements the function of the second network device in the second aspect or any possible design of the second aspect.
  • the processing circuit is used to run computer programs or instructions to implement the method in the above second aspect or any possible design of the second aspect.
  • the embodiment of the present application provides a computer-readable storage medium, the computer-readable storage medium stores instructions, and when it is run on a computer, the computer can execute any one of the above-mentioned aspects. method.
  • the embodiment of the present application provides a computer program product containing instructions, which when run on a computer, enables the computer to execute the method in any one of the above aspects.
  • the embodiment of the present application provides a circuit system, the circuit system includes a processing circuit, and the processing circuit is configured to execute the method according to any one of the foregoing aspects.
  • an embodiment of the present application provides a communication system, where the communication system includes the first network device and the second network device in any one of the foregoing aspects.
  • Fig. 1 is a kind of network architecture diagram that the embodiment of the present application applies;
  • Figure 2a is a schematic diagram of a coding format provided by the embodiment of the present application.
  • Fig. 2b is a schematic diagram of another encoding format provided by the embodiment of the present application.
  • FIG. 3a is a schematic diagram of a communication scenario provided by an embodiment of the present application.
  • FIG. 3b is a schematic diagram of another communication scenario provided by the embodiment of the present application.
  • FIG. 4 is a schematic diagram of a port form provided by an embodiment of the present application.
  • FIG. 5 is a schematic flowchart of a message transmission method provided by an embodiment of the present application.
  • FIG. 6a is a schematic diagram of a message structure provided by an embodiment of the present application.
  • FIG. 6b is a schematic diagram of another message structure provided by the embodiment of the present application.
  • FIG. 6c is a schematic diagram of another message structure provided by the embodiment of the present application.
  • FIG. 6d is a schematic diagram of another message structure provided by the embodiment of the present application.
  • FIG. 6e is a schematic diagram of another message structure provided by the embodiment of the present application.
  • FIG. 7a is a schematic diagram of a message encapsulation process provided by an embodiment of the present application.
  • FIG. 7b is a schematic diagram of another packet encapsulation process provided by the embodiment of the present application.
  • FIG. 8 is a schematic flowchart of another message transmission method provided by an embodiment of the present application.
  • FIG. 9a is a schematic diagram of a message transmission scenario provided by an embodiment of the present application.
  • FIG. 9b is a schematic diagram of another message transmission scenario provided by the embodiment of the present application.
  • FIG. 10 is a schematic flowchart of another message transmission method provided by an embodiment of the present application.
  • FIG. 11 is a schematic structural diagram of a communication device provided by an embodiment of the present application.
  • FIG. 12 is a schematic structural diagram of another communication device provided by an embodiment of the present application.
  • first and second in the specification and drawings of the present application are used to distinguish different objects, or to distinguish different processes for the same object, rather than to describe a specific sequence of objects.
  • the terms “including” and “having” mentioned in the description of the present application and any variations thereof are intended to cover non-exclusive inclusion.
  • a process, method, system, product or device comprising a series of steps or units is not limited to the listed steps or units, but optionally also includes other unlisted steps or units, or optionally also includes Other steps or elements inherent to the process, method, product or apparatus are included.
  • words such as “exemplary” or “for example” are used as examples, illustrations or descriptions.
  • the applicable network architecture of this embodiment of the present application is shown in FIG. 1 , and the network architecture includes a client device and a network device.
  • FIG. 1 shows four client devices, such as client device 101 , client device 102 , client device 103 , and client device 104 .
  • the network device includes a provider edge (provider edge, PE) device and a provider (provider, P) device.
  • PE provider edge
  • P provider
  • FIG. 1 shows two PE devices (PE device 105 and PE device 106 ) and one P device, and the P device is communicatively connected to the PE device 105 and the PE device 106 respectively.
  • Both the client device 101 and the client device 102 are connected in communication with the PE device 105
  • the client device 103 and the client device 104 are both connected in communication with the PE device 106 .
  • the client device may be a router or a switch, or a host.
  • the PE device may be an edge router of a service provider, which is an edge device of a service provider network and is directly connected to a customer device.
  • the P device may be a backbone router in the service provider's network, and is not directly connected to the client device. This embodiment of the present application does not limit the implementation forms of the client device and the network device.
  • each device bears one or more services.
  • the services borne by a certain device may be one or more of services such as mail services, web page services, and instant messaging services.
  • a client device may carry one type of service or multiple types of services, and regardless of one type of service or multiple types of services, these services all correspond to the same client.
  • a network device (such as the above-mentioned PE device and P device), a network device can carry one type of service or multiple types of services, regardless of one type of service or multiple types of services, and these services correspond to multiple clients.
  • An M-bit/N-bit block may also be referred to as an M-bit/N-bit coding block, an M/N-bit coding block, or an M/N-bit block.
  • M represents the coded input
  • N represents the coded output. Both M and N are positive integers, and M ⁇ N.
  • 64B/66B short for 64/66bit block, refers to the 64B/66B block defined by IEEE 802.3.
  • a 2-bit synchronization header (sync) is added according to whether it is control information or service data information.
  • 0b10 represents a control code block
  • 0b01 represents a data code block
  • other types of sync headers represent invalid code blocks.
  • a block type field (Block Type Field) is also included to indicate the block type.
  • the value of the block type field includes 0x1E, 0x78, 0x4B, 0x87, 0x99, 0xAA, 0xB4, 0xCC, 0xD2, 0xE1 or 0xFF, as shown in FIG. 2a.
  • 64B/65B short for 64/65bit block, refers to the 64B/65B block defined by IEEE 802.3. Specifically, on the basis of 64B/66B, a 2-bit sync header is compressed into a coding block formed by 1 bit. Or, encode directly on the basis of 64bit input and add a 1bit sync header. 64B/65B is shown in Figure 2b.
  • Hard isolation services refer to services that require isolation. For example, refer to Table a. If a certain service requires isolation, the service is a hard isolation service. Optionally, hard isolation services may also have requirements on indicators such as delay and jitter. For example, the delay of the hard isolation service is less than or equal to 100us. For another example, the jitter of the hard isolation service is less than or equal to 10 ns.
  • Ordinary services refer to services that do not require all of the three indicators of isolation, delay, and jitter, as shown in the last row in Table a.
  • the common service may also be a service for which the network provides a best-effort service, that is, a service that has no guarantee for delay, jitter, and isolation.
  • the service type refers to common service or hard isolation service.
  • the service type of mail service and webpage service is common service
  • the service type of instant messaging service (such as video conferencing service) is hard isolation service.
  • a hard-isolation packet refers to a packet encapsulated by hard-isolation service data.
  • the service data in the hard isolation message is the data of the hard isolation service.
  • the service data in a hard isolation message may come from one client or multiple clients, which is not limited in this embodiment of the present application.
  • Ordinary packets refer to packets encapsulated by ordinary service data.
  • the service data in the ordinary message is the data of the ordinary service.
  • the business data in a normal message comes from a client.
  • the packet type refers to a common packet or a hard-isolated packet.
  • Hard isolation means that when the link bandwidth is allocated to a service, even if the service has no data to send, the link bandwidth will not be used by other services.
  • the network device uses time division technology, frequency division technology, etc. to isolate different services from each other during transmission, so that delay, jitter, bandwidth, etc. do not affect each other. That is to say, network devices need to adopt technologies that support hard isolation features, such as time slotting technology, to be able to forward packets of hard isolation services.
  • Statistical multiplexing means that when the link bandwidth is allocated to a service, the link bandwidth can be used by other services when no data is sent for the service.
  • the technology adopted by network devices needs to support statistical multiplexing, such as packet technology, which can improve resource utilization when forwarding packets of common services.
  • the packet technology supports the feature of statistical multiplexing, but does not support the feature of hard isolation.
  • the time slotting technology supports hard isolation but does not support statistical multiplexing.
  • Store-and-forward is the forwarding technique that standard Ethernet has used since its inception.
  • Store-and-forward means that after each receiving device in the network completely receives and stores the message, it performs table lookup processing to find the outgoing port of the message and forwards the message through the outgoing port, as shown in Figure 3a.
  • the receiving side device may be the network device in FIG. 3a, such as PE device 105, PE device 106, P device 107, or P device 108, and so on.
  • store and forward can also be called Layer 2 forwarding, packet forwarding, or destination forwarding.
  • the port used for storing and forwarding on the receiving side device is called a message port, and the port form is shown in FIG. 4 .
  • the packet port can be a native Ethernet port, such as an interface that uses unchanged Ethernet technology to implement packet-level forwarding. Network devices send Ethernet frames through message ports.
  • Channel forwarding means that each receiving-side device in the network forwards according to the mapping relationship between the outbound port and inbound port of the service, without recovering the complete message, as shown in Figure 3b.
  • the receiving side device may be the network device shown in FIG. 3 b , such as PE device 105 , PE device 106 , P device 107 , or P device 108 .
  • Channel forwarding is a time-slotted technology. Channel forwarding can also be called layer 1.5 forwarding, or channel forwarding.
  • the port used for channel forwarding on the receiving side device is called a slotted port, and the port form is shown in FIG. 4 .
  • the time-slotted port may be an interface that uses a modified Ethernet technology, such as a flexible Ethernet (flex ethernet, FlexE) technology, to implement block-level forwarding.
  • a network device sends slotted frames through a slotted port.
  • the slotted frame is a frame of a structure, that is, a frame of a slotted frame structure.
  • a frame or a packet refers to an Ethernet frame.
  • only the name of message is used as an example for introduction.
  • the packet port and the slotted port are independent and incompatible with each other.
  • the same network device needs to have the above two ports to be able to forward the messages of the two services (that is, common services and hard-isolated services).
  • the number of packets to be transmitted may be different. If there is no packet to be forwarded by a certain forwarding method, the corresponding port is idle, and there are many packets to be forwarded by another forwarding method, the packets of the corresponding port cannot be sent in time, the utilization of the port is poor, and the network device cannot flexibly transmit message.
  • the embodiment of the present application provides a packet transmission method, and the packet transmission method of the embodiment of the present application is applied to the network architecture in FIG. 1 , FIG. 3a or FIG. 3b.
  • the first network device determines the first packet and the second packet.
  • the first message includes data of common services
  • the second message includes data of hard-isolated services.
  • the first network device sends the first packet and the second packet in the same cycle through the first port.
  • the first port is a port on the first network device.
  • the first network device can send more first packets, or, conversely, when the quantity of the first packets is reduced or no first packets are sent, if the quantity of the second packets is less than more, the first network device can send more second packets, avoiding idle ports, improving port utilization, and more flexible packet transmission.
  • the first network device determines the first packet and the second packet.
  • the first network device may be the PE device 105 or the P device.
  • the first network device may be PE device 106 or P device.
  • the first network device is implemented as the PE device 105 as an example for introduction.
  • the type of the first message is different from the type of the second message.
  • the introduction of the first packet is as follows: the first packet includes data of common services.
  • the data of common services in the first message comes from the first client.
  • the first client may be a client corresponding to the client device 101 .
  • the client device 101 sends the service data of the first client to the PE device 105 .
  • the PE device 105 receives service data of the first client from the client device 101 .
  • the PE device 105 encapsulates the service data of the first client into a first packet.
  • the first packet indicates the packet type through a field.
  • the first packet includes a first field.
  • the first field indicates the type of the first packet, for example, the value of the first field is 0x55.
  • the first message includes a preamble (preamble) field, a frame start delimiter (start frame delimiter, SFD) field, an overhead (overhead, OH) field, a load field and a cyclic redundancy check ( cyclic redundancy check, CRC) field.
  • a preamble preamble
  • SFD frame start delimiter
  • overhead overhead
  • OH overhead
  • load load
  • CRC cyclic redundancy check
  • the first field is carried in the OH field of the first packet, for example, the first field is carried in the last field in the OH.
  • the first packet further includes a first identifier.
  • the first identifier is used to identify the first client, so as to identify which client the first message is.
  • the first identifier is carried in the OH field.
  • the first identifier can be recorded as a fine-granularity client identity (fgClientID), which occupies 2 fields, namely 16 bits, and the value range is 0 to 2 ⁇ 16-1.
  • fgClientID fine-granularity client identity
  • the first identifier occupies the first two fields in the OH field.
  • the third field in the OH field, field 2 in Figure 6a is reserved.
  • the process of encapsulating the first packet by the first network device is as follows:
  • the first network device performs 64B/66B encoding on the MAC frame to form code block sequence 1. Wherein, each code block in the code block sequence 1 is 66 bits. Then, the first network device performs synchronization header compression on code block sequence 1 to form code block sequence 2 . Wherein, each code block in the code block sequence 2 is 65 bits. Alternatively, the first network device performs 64B/65B encoding on the MAC frame to form code block sequence 3 . Wherein, each code block in the code block sequence 3 is 65 bits.
  • media access control media access control
  • the first network device processes some or all of the code blocks in the code block sequence 2 (or code block sequence 3) to obtain the payload part of the first message.
  • the payload part of the first packet includes a start (start, S) code block, multiple data (data, D) code blocks, and an end (terminal, T) code block.
  • start, S start
  • D data
  • T end
  • the S code block and the T code block are used to determine a complete message.
  • the D code block is used to carry the payload data in the message.
  • the introduction of the second message is as follows: the second message includes the data of the hard isolation service.
  • the data of the hard isolation service in the second packet comes from the second client.
  • the second client may be a client corresponding to the client device 102 .
  • the client device 102 sends the service data of the second client to the PE device 105 .
  • the PE device 105 receives the service data of the second client from the client device 102 .
  • the PE device 105 encapsulates the service data of the second client into a second packet.
  • the second packet indicates the packet type through a field.
  • the second packet includes a second field.
  • the second field indicates the type of the second packet, for example, the value of the second field is 0x66.
  • the second packet includes a preamble field, an SFD field, an OH field, a payload field, and a CRC field.
  • the second field is carried in the preamble part of the second packet.
  • the second field is carried in the OH field of the second message, for example, the second field is carried in the last field in OH, or the second field is carried in the second field in OH, namely
  • the location of field 1 is not limited in this embodiment of the present application.
  • the second packet further includes a multiframe indicator (multiframe indicator, MFI).
  • MFI multiframe indicator
  • the MFI indicates that the second packet is a multiframe.
  • the introduction of the multiframe is as follows: a multiframe includes multiple data units, and different data units correspond to different time slots. Different data units carry service data transmitted in corresponding time slots. For example, taking 96 data units as an example, the first data unit carries the business data transmitted in time slot 0, the second data unit carries the business data transmitted in time slot 1, and so on until the 96th data The unit carries the service data transmitted in the time slot 95. For details, refer to the relevant description of the load of the second message, and details will not be repeated here.
  • the data unit can also be described as a basic frame, fine-granularity slot (fgSlot) data, or slot data, etc. In this embodiment of the application, a data unit is used as an example for introduction.
  • MFI may occupy 1 field, that is, 8 bits, and the value range is 0-19.
  • the MFI is carried in the first field in the OH field.
  • the MFI may also be carried in the second field or the third field in the OH field, which is not limited in this embodiment of the present application.
  • the positions of the first field and the second field in the packet may be the same.
  • the first field is carried in the preamble part of the first packet, and the second field is also carried in the preamble part of the second packet.
  • the first field is carried in the OH field of the first packet, and the second field is also carried in the OH field of the second packet.
  • the positions of the first field and the second field in the message may also be different.
  • the first field is carried in the preamble part of the first packet, and the second field is carried in the OH field of the second packet.
  • the first field is carried in the OH field of the first packet, and the second field is carried in the preamble part of the second packet, which is not limited in this embodiment of the present application.
  • the payload in the second message is introduced as follows: the payload part includes one or more data units, as shown in FIG. 6e, the payload part includes 96 data units, respectively marked as fgSlot0 ⁇ fgSlot95.
  • one data unit corresponds to one second client, and different data units correspond to different second clients.
  • one or more data units may correspond to the same second client.
  • Different data units carry service data transmitted in different time slots. Taking Table 1 as an example, Table 1 shows 96 client numbers and 96 time slot indexes, and the client numbers correspond to the time slot indexes one by one. Different customer numbers represent different second customers. Different slot indices identify different slots.
  • the time slot index 0 corresponds to the time slot for transmitting the service data of the client number fgClient0
  • the time slot index 1 corresponds to the time slot for transmitting the service data of the client number fgClient1. Others can be deduced in this way until the time slot corresponding to the time slot index 95 transmits the service data of the client number fgClient95.
  • the payload part of the second message includes 96 data units, and each data unit transmits service data transmitted in one time slot.
  • the first data unit that is, the data unit identified by fgSlot0
  • the service data of the client number fgClient0 that is, the service data of the client number fgClient0.
  • the second data unit that is, the data unit identified by fgSlot1
  • client number slot index fgClient0 0, 1 fgClient1 2, 3 ... ... fgClient46 92, 93 fgClient47 94,95
  • time slot indexes 0 and 1 correspond to time slots for transmitting service data of client number fgClient0
  • time slot indexes 2 and 3 correspond to time slots for transmitting service data of client number fgClient1. Others can be deduced in this way until the time slot indexes 94 and 95 correspond to the time slots for transmitting the service data of the client number fgClient47.
  • the payload part of the second message includes 96 data units, and each data unit transmits service data transmitted in one time slot.
  • the first data unit that is, the data unit identified by fgSlot0
  • the service data of the client number fgClient0 that is, the service data of the client number fgClient0.
  • the second data unit that is, the data unit identified by fgSlot1
  • Table 2 only uses two data units corresponding to the same second client as an example for introduction. Of course, three or more data units may also correspond to the same second client. Moreover, for different second clients, the number of data units corresponding to different second clients may be the same, as shown in Table 1 or Table 2. Alternatively, the number of data units corresponding to different second clients may also be different. For example, the second client identified by the client number fgClient0 corresponds to one data unit, the second client identified by the client number fgClient1 corresponds to two data units, and the second client identified by the client number fgClient2 corresponds to three data units. limited.
  • each data unit For each data unit, each data unit includes encoded code blocks corresponding to the customer's service data. Each data unit includes at least one code block. For the code blocks in the same data unit, the code blocks are obtained by encoding the service data of the same client.
  • the encoding format adopted by the first network device may be 64B/65B, or 64B/66B and 66B/65B.
  • the first network device determines the first code block in the first data unit according to the first information.
  • the first information indicates the corresponding relationship between the first data unit and the target customer.
  • the first information may be Table 1 or Table 2.
  • the first information is Table 1 as an example for introduction. It should be understood that the first information may also have other names, such as a time slot configuration table for hard-isolated services, which is not limited in this embodiment of the present application.
  • the first data unit may be the data unit identified by fgSlot0 in Table 1.
  • the target client is the second client identified by the client number fgClient0.
  • the first network device performs 64B/66B encoding on the MAC frame to form code block sequence 4 .
  • each code block in the code block sequence 4 is 66 bits.
  • the first network device performs synchronization header compression on the code block sequence 4 to form a code block sequence 5 .
  • each code block in the code block sequence 5 is 65 bits.
  • the first network device performs 64B/65B encoding on the MAC frame to form code block sequence 6 .
  • each code block in the code block sequence 6 is 65 bits.
  • every two adjacent code blocks are processed and carried in the same data unit, that is, the data unit identified by fgSlot0.
  • the first network device still adopts the above processing procedure until the determination of 96 data units in the load part is completed.
  • the payload part of the second message includes 2*96+2 code blocks, specifically, includes one S code block, multiple D code blocks, and one T code block.
  • the S code block and the T code block are used to determine a complete message.
  • the D code block is used to carry the payload data in the message.
  • the lengths of the encoded first packet and the second packet are the same. For example, taking the second message including 96 data units as an example, the number of code blocks in the first message and the second message are both 194, and the number of bits in each code block is the same.
  • the first network device sends the first packet and the second packet to the second network device in the same period through the first port.
  • the second network device receives the first packet and the second packet from the first network device in the same period through the second port.
  • the second network device may be the PE device 106 or the P device.
  • the second network device is the P device.
  • the second network device is a P device or a PE device 106 .
  • the second network device may be PE device 105 or P device.
  • the first network device is a PE device 106
  • the second network device is a P device.
  • the second network device is a P device or a PE device 105 .
  • the first network device is implemented as a PE device 105 and the second network device is implemented as a P device as an example for introduction.
  • the first port is a port on the first network device, for example, the first port is a sending port on the first network device.
  • the second port is a port on the second network device, for example, the second port is a receiving port on the second network device.
  • both the first port and the second port are different from the message port, and both the first port and the second port are different from the slotted port.
  • Both the first port and the second port have the following characteristics: hard isolation and statistical multiplexing. Since both the first port and the second port have the feature of hard isolation, the first port can be used to send hard-isolation packets, and the second port can be used to receive hard-isolation packets. Since both the first port and the second port have the feature of statistical multiplexing, the first port can be used to send ordinary packets, and the second port can be used to receive ordinary packets.
  • the implementation process of S502 includes the following two examples:
  • S502 includes S502a:
  • the first network device sends the first packet to the second network device at the first time unit through the first port, and sends the second packet to the second network device at the second time unit.
  • the second network device receives the first message from the first network device at the first time unit through the second port according to the second information, and receives the second packet from the first network device at the second time unit. message.
  • the first time unit and the second time unit are time units in the same period.
  • a cycle includes 25 time units as an example.
  • the duration of each time unit is the same, for example, each time unit includes 1 time slot.
  • the time unit for sending the first packet is described as the first time unit
  • the time unit for sending the second packet is described as the second time unit.
  • one time unit means one sending opportunity.
  • the second information indicates the positions of the first time unit and the second time unit in the cycle, as shown in Table 3:
  • client number The number of time units (unit: piece) The sequence number of the time unit in the cycle
  • Table 3 shows a period of port bandwidth configuration.
  • the message encapsulated by the business data of customer number 0x0001 occupies 3 time units, that is, the first to third time units in the cycle. That is to say, the message of the client number 0x0001 occupies 3 sending opportunities in the above-mentioned cycle, and is the first 3 sending opportunities in the above-mentioned cycle.
  • the message encapsulated by the business data of customer number 0x0002 occupies 1 time unit, that is, the 4th time unit in the cycle.
  • the message of the client number 0x0002 occupies one sending opportunity in the above-mentioned period, and is the fourth sending opportunity in the above-mentioned period.
  • the second message encapsulated by the service data of the customer number 0x0000 occupies 1 time unit, that is, the 5th time unit in the cycle.
  • the customer number 0x0000 refers to the second customer, which only supports the hard isolation service, and the specific customer number can be referred to Table 1 or Table 2. That is to say, the message of the client number 0x0000 occupies one sending opportunity in the above-mentioned period, and is the fifth sending opportunity in the above-mentioned period.
  • the customer numbers of other lines can be deduced by analogy, and will not be repeated here.
  • the customer number of the first customer can be a customer number in 0x0001 to 0x0007 in Table 3 , such as 0x0001.
  • the first time unit is the first 3 time units in the above period.
  • the second client is identified by 0x0000 in Table 3 to represent a type of client that provides hard isolation services.
  • the second time unit is the time unit of the bold part in the above cycle.
  • the first network device sends the first message encapsulated by the business data of the customer number 0x0001 in the first to third time units in the above-mentioned cycle, and in the fifth and third time units in the above-mentioned cycle At 11, 12, 17, 23, and 24 time units, send the second packet encapsulated by the service data of the second client, as shown in FIG. 9a .
  • the first time unit is still the first 3 time units in the above cycle, and the first message is the message of customer number 0x0001. If only the package of customer number 0x0001 is completed, other customer numbers If the encapsulation of the packet is not completed, the first network device sends the packet with the client number 0x0001 in the first time unit. Conversely, if the packet encapsulation of the client ID 0x0001 and the client ID 0x0002 is completed, the first network device sends the packet in the first time unit according to the preset rule.
  • the preset rule may be the priority of the service, and determine which customer's message to send in order of priority from high to low.
  • the first network device sends the message of the client number 0x0001 in the first time unit according to the preset rule.
  • the preset rule may be the sequence of customer numbers, and the order of the customer numbers from front to back is used to determine which customer's message to send. For example, if the client number 0x0001 is ranked before the client number 0x0002, the first network device sends the message of the client number 0x0001 in the first time unit according to the preset rule. It should be understood that the above is only an introduction by taking priority or customer number sorting as an example, and the preset rules may also have other implementation forms, which are not limited in this embodiment of the present application.
  • S502 includes S502b:
  • the first network device sends the first packet to the second network device through the first port in the unoccupied first time unit, and sends the first packet to the second network device in the unoccupied second time unit.
  • the second network device sends the second packet.
  • the second network device receives the first message from the first network device at the unoccupied first time unit through the second port according to the second information and the third information, and receives the first message from the first network device at the unoccupied second time unit Receive the second packet from the first network device.
  • the second information indicates the configuration quantity of the first time unit and the second time unit in the cycle, as shown in Table 4-1:
  • client number The number of configured time units (unit: pcs) 0x0001 3 0x0002 1 0x0000 6 0x0003 5 0x0004 3 0x0005 1 0x0006 5 0x0007 1
  • Table 4-1 shows a period of port bandwidth configuration. Taking a cycle including 25 time units as an example, the message encapsulated by the business data of the customer number 0x0001 occupies 3 time units, but does not indicate the position of these 3 time units in the cycle. That is to say, the message of client number 0x0001 has 3 sending opportunities in the above cycle. The packet encapsulated by the business data of customer number 0x0002 occupies one time unit, but does not indicate the position of this time unit in the cycle. That is to say, the message of the client number 0x0002 has one sending opportunity in the above period.
  • the second message encapsulated by the service data of the customer number 0x0000 occupies 6 time units, but does not indicate the position of the time unit in the cycle. That is to say, the message of client number 0x0000 has 6 sending opportunities in the above cycle.
  • Other customer numbers can be deduced by analogy, so I won’t repeat them here.
  • the third information indicates the unoccupied quantity of the first time unit and the second time unit in the cycle, as shown in Table 4-2:
  • the first message encapsulated by the business data of customer number 0x0001 has 2 unoccupied time units. That is to say, the message of client number 0x0001 still has 2 sending opportunities in the above-mentioned cycle.
  • Other customer numbers can be deduced by analogy, so I won’t repeat them here.
  • the customer number of the first customer is still 0x0001.
  • the configuration quantity of the first time unit is 3.
  • the second client is identified by 0x0000 in Table 4-1 to represent a type of client that provides hard isolation services.
  • the configuration quantity of the second time unit is 6. Combined with Table 4-2, the unoccupied quantity in the first time unit is 2, and the unoccupied quantity in the second time unit is 5.
  • the hard-isolated service has a higher requirement on time delay.
  • the first network device preferentially sends the packets of the hard-isolated service.
  • the first network device sends the second packet first, and then sends the first packet. That is to say, the second time unit where the second packet is located is earlier than the first time unit where the first packet is located.
  • time unit 1 if the packets of client ID 0x0000 and client ID 0x0001 have been encapsulated, since the packet of client ID 0x0000 is a hard-isolated packet, the first network device first sends Packet with client number 0x0000 to ensure the delay requirement of the hard isolation service.
  • the position of the time unit 1 in the cycle is shown by a dotted box in FIG. 9b.
  • the first network device For the packet with the client number 0x0001 that has been encapsulated, the first network device sends the packet at a time unit after time unit 1, such as time unit 2. Correspondingly, time unit 1 is the second time unit, and time unit 2 is the first time unit.
  • the first network device updates Table 4-2, and the updated Table 4-2 indicates that there are still 4 unoccupied time units for the message of client number 0x0000, that is, there are still 4 sending opportunities for the message of client number 0x0000.
  • the updated Table 4-2 indicates that there is still one unoccupied time unit for the message of client number 0x0001, that is, there is still one sending opportunity for the message of client number 0x0001.
  • the first network device when the generation time of the second packet is earlier than the generation time of the first packet, the first network device also sends the second packet first, and then sends the first packet. That is to say, the second time unit where the second packet is located is earlier than the first time unit where the first packet is located.
  • time unit 1 if the packet of client number 0x0000 has been encapsulated but the packet of client number 0x0001 has not been encapsulated, the first network device first sends the packet of client number 0x0000 in time unit 1 , to ensure the delay requirements of hard-isolated services. Then, the first network device sends the packet at a time unit after time unit 1, such as time unit 2.
  • time unit 2 For other descriptions, please refer to the introduction in the previous paragraph, and will not repeat them here.
  • the first network device when the generation time of the second packet is later than the generation time of the first packet, the first network device sends the first packet first, and then sends the second packet. That is to say, the second time unit where the second packet is located is later than the first time unit where the first packet is located. Specifically, still taking time unit 1 as an example, if the packet of client number 0x0000 has not been encapsulated, but the packet of client number 0x0001 has been encapsulated, then the first network device first sends the packet of client number 0x0001 in time unit 1. message.
  • the first network device After the encapsulation of the message with the client number 0x0000 is completed, the first network device sends the message with the client number 0x0000 in a time unit after the time unit 1, such as time unit 2.
  • time unit 1 is the first time unit
  • time unit 2 is the second time unit.
  • Table 4-2 please refer to the introduction in the previous paragraph, which will not be repeated here.
  • the second information in S502a and S502b is determined based on the customer's service bandwidth.
  • the second information is used to allocate bandwidth for common services and hard-isolated services at the port level, for example, for a 25Gbps port, the division granularity is 1Gbps.
  • the first network device configures the bandwidth according to the bandwidth ratio of the hard-isolation service and the common service.
  • the bandwidth allocated to the hard-isolated service is 2 Gbps
  • the bandwidth allocated to the common service is 23 Gbps.
  • This allocation mode is indicated in the second information in an equivalent form of a time unit (or called a scheduling opportunity).
  • a bandwidth of 23 Gbps is equivalent to 23 allocated time units, that is, 23 sending opportunities.
  • the bandwidth of 2Gbps is equivalent to 2 allocated time units, that is, 2 sending opportunities.
  • the second information may also have another name, such as a port bandwidth configuration table, which is not limited in this embodiment of the present application.
  • this embodiment of the present application also includes S503 and S504:
  • the first network device determines the third packet.
  • the third packet includes data of common services.
  • the third message is a message of the third customer, and the service data of the third customer belongs to common service data. That is to say, the type of the third message is the same as that of the first message, that is, the third message also belongs to a common message.
  • the third message has no requirements on isolation.
  • the customer number of the first customer is 0x0001
  • the packet encapsulated with the service data of the customer number 0x0001 is the first packet.
  • the customer number of the third customer is 0x0002, and the packaged packet of the service data of the customer number 0x0002 is the third packet.
  • the first network device sends the third packet to the second network device in a period through the first port.
  • the second network device receives the third packet from the first network device in a period through the second port.
  • the first port in S504 is the same port as the first port in S502
  • the second port in S504 is the same port as the second port in S502
  • the cycle in S504 is the same cycle as the cycle in S502, specifically Refer to the introduction of S502, which will not be repeated here.
  • the third packet is transmitted by the third time unit.
  • the third time unit is configured to transmit the message of the first client, and the third time unit is in an idle state.
  • the message of the first client includes the first message.
  • the third time unit is the second time unit in the above cycle.
  • the second time unit is configured to send the packet of customer number 0x0001, but the packet of customer number 0x0001 has not been encapsulated, and the packet of customer number 0x0002 has been encapsulated.
  • the first The network device sends a message of 0x0002 at the second time unit in the above cycle.
  • the third time unit is still the second time unit in the above cycle.
  • the packet of the hard isolation service has not been encapsulated.
  • the first network device sends the normal packet in the third time unit.
  • the first network device configures which client's message the third time unit is used to send according to a preset rule.
  • the preset rule may be the priority of the service, which is configured in descending order of priority. For example, if the service priority of 0x0001 is higher than the service priority of 0x0002, the third time unit is configured to send the message of 0x0001.
  • the preset rule may be the arrangement order of customer numbers, which is configured in the order of customer numbers from front to back.
  • the third time unit is configured to send a message of 0x0001.
  • the packet of client ID 0x0001 has not been encapsulated, and the packet of client ID 0x0002 has been encapsulated.
  • the first network device sends the packet of 0x0002 in the second time unit of the above cycle.
  • the characteristic of statistical multiplexing can be realized, so as to improve resource utilization.
  • the second network device forwards the service data in the first packet according to the type of the first packet, and forwards the service data in the second packet according to the type of the second packet.
  • the second network device performs steps 1 and 2:
  • Step 1 The second network device determines a store-and-forward mode according to the type of the first packet.
  • the message is the first message, that is, it belongs to a common message, and needs to be forwarded in a store-and-forward manner.
  • the message For storage and forwarding, please refer to the introduction in the explanation of terms, so I won’t go into details here.
  • Step 2 The second network device forwards the service data in the first packet in a store-and-forward manner.
  • the second network device queries the destination address based on the first identifier in the first packet, and then forwards the service data in the first packet according to the queried destination address.
  • the type of the third packet is the same as that of the first packet. Therefore, after the second network device performs S504, the second network device may perform the above steps 1 and 2 to forward the third packet.
  • the second network device performs steps 3 and 4:
  • Step 3 The second network device determines the channel forwarding mode according to the type of the second packet.
  • the packet is a second packet, that is, a hard-isolated packet, and needs to be forwarded in a channel forwarding manner.
  • channel forwarding please refer to the introduction in the explanation of terms, so I won’t go into details here.
  • Step 4 The second network device forwards the service data of each second customer in the at least one second customer in a channel forwarding manner.
  • the data in the second message includes service data of at least one second client.
  • the second network device determines a code block of each second client service data in the second packet according to the first information. Then, each code block of the second client service data is forwarded according to the egress time slot table.
  • the egress time slot table indicates the egress port and time slot position of each second client.
  • the number of packets is not limited, for example, the number of first packets may be one or multiple.
  • the quantity of the second message may be one or more.
  • the quantity of the third message may be one or more.
  • the client corresponding to the first packet is described as a first client
  • the client corresponding to the second packet is described as a second client
  • the first client and the second client are different clients. It should be understood that the first client and the second client may also have other names, which are not limited in this embodiment of the present application.
  • the embodiment of the present application further provides a communication device, and the communication device may be the network element in the foregoing method embodiment, or a device including the foregoing network element, or may be a component applicable to the network element.
  • the communication device includes hardware structures and/or software modules corresponding to each function.
  • the present application can be implemented in the form of hardware or a combination of hardware and computer software in combination with the units and algorithm steps of each example described in the embodiments disclosed herein. Whether a certain function is executed by hardware or computer software drives hardware depends on the specific application and design constraints of the technical solution. Skilled artisans may use different methods to implement the described functions for each specific application, but such implementation should not be regarded as exceeding the scope of the present application.
  • FIG. 11 shows a schematic structural diagram of a communication device 1100 .
  • the communication device 1100 includes a processing unit 1101 , a sending unit 1102 and a receiving unit 1103 .
  • the processing unit 1101 is configured to support the first network device to execute S501 in FIG. 5 , and/or in this embodiment of the application, the first network device needs to execute other processing operations.
  • the receiving unit 1103 is configured to support other receiving operations that need to be performed by the first network device.
  • the sending unit 1102 is configured to support the first network device to perform S502 in FIG. 5 , and/or other sending operations that the first network device needs to perform in the embodiment of the present application.
  • the processing unit 1101 is used to support the second network device to execute S505 in FIG. Other processing operations performed.
  • the receiving unit 1103 is configured to support the second network device to perform S502 in FIG. 5 , and/or other receiving operations that the second network device needs to perform in the embodiment of the present application.
  • the sending unit 1102 is configured to support the second network device to perform S505 in FIG. 5 and/or other sending operations that the second network device needs to perform in the embodiment of the present application.
  • the communication device 1100 may further include a storage unit 1104 for storing program codes and data of the communication device, and the data may include but not limited to original data or intermediate data.
  • the processing unit 1101 may be a processor or a controller, such as a CPU, a general-purpose processor, an application specific integrated circuit (ASIC), a field programmable gate array (field programmable gate array, FPGA) or other Programmable logic devices, transistor logic devices, hardware components, or any combination thereof. It can implement or execute the various illustrative logical blocks, modules and circuits described in connection with the present disclosure.
  • the processor can also be a combination of computing functions, for example, a combination of one or more microprocessors, a combination of DSP and a microprocessor, and so on.
  • the sending unit 1102 may be a communication interface, a transmitter, or a sending circuit, etc., where the communication interface is collectively referred to as, in a specific implementation, the communication interface may include multiple interfaces, for example, may include: a first interface on the first network device , or an interface and/or other interfaces between the second network device and other devices.
  • the receiving unit 1103 may be a communication interface, a receiver or a receiving circuit, etc., wherein the communication interface is collectively referred to as, in a specific implementation, the communication interface may include multiple interfaces, for example, may include: a second interface on the second network device , or an interface and/or other interfaces between the first network device and other devices.
  • the sending unit 1102 and the receiving unit 1103 may be physically or logically implemented as the same unit.
  • the storage unit 1104 may be a memory.
  • the processing unit 1101 is a processor
  • the sending unit 1102 and the receiving unit 1103 are communication interfaces
  • the storage unit 1104 is a memory
  • the communication device involved in this embodiment of the present application may be as shown in FIG. 12 .
  • the communication device includes: a processor 1201 , a communication interface 1202 , and a memory 1203 .
  • the communication device may further include a bus 1204 .
  • the communication interface 1202, the processor 1201 and the memory 1203 can be connected to each other through the bus 1204;
  • the bus 1204 can be a peripheral component interconnect standard (peripheral component interconnect, PCI) bus or an extended industry standard architecture (extended industry standard architecture, EISA) bus etc.
  • the bus 1204 can be divided into address bus, data bus, control bus and so on. For ease of representation, only one thick line is used in Fig. 12, but it does not mean that there is only one bus or one type of bus.
  • the embodiments of the present application further provide a computer program product carrying computer instructions, and when the computer instructions are run on the computer, the computer is made to execute the method described in the foregoing embodiments.
  • an embodiment of the present application further provides a computer-readable storage medium, where the computer-readable storage medium stores computer instructions, and when the computer instructions are run on a computer, the computer executes the method described in the above-mentioned embodiments.
  • an embodiment of the present application further provides a chip, including: a processing circuit and a transceiver circuit, and the processing circuit and the transceiver circuit are used to implement the methods described in the foregoing embodiments.
  • the processing circuit is used to execute the processing action in the corresponding method
  • the transceiver circuit is used to execute the receiving/sending action in the corresponding method.
  • all or part of them may be implemented by software, hardware, firmware or any combination thereof.
  • software When implemented using software, it may be implemented in whole or in part in the form of a computer program product.
  • the computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on the computer, the processes or functions according to the embodiments of the present application will be generated in whole or in part.
  • the computer can be a general purpose computer, a special purpose computer, a computer network, or other programmable devices.
  • the computer instructions may be stored in or transmitted from one computer-readable storage medium to another computer-readable storage medium, for example, the computer instructions may be transmitted from a website, computer, server or data center Transmission to another website site, computer, server or data center by wired (such as coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (such as infrared, wireless, microwave, etc.).
  • the computer-readable storage medium may be any available medium that can be accessed by a computer, or a data storage device including a server, a data center, and the like integrated with one or more available media.
  • the available medium may be a magnetic medium (for example, a floppy disk, a hard disk, a tape), an optical medium (for example, a digital video disc (digital video disc, DVD)), or a semiconductor medium (for example, a solid state drive (solid state drive, SSD)) wait.
  • a magnetic medium for example, a floppy disk, a hard disk, a tape
  • an optical medium for example, a digital video disc (digital video disc, DVD)
  • a semiconductor medium for example, a solid state drive (solid state drive, SSD)
  • the disclosed system, device and method can be implemented in other ways.
  • the device embodiments described above are only illustrative.
  • the division of the modules is only a logical function division. In actual implementation, there may be other division methods.
  • multiple modules or components can be combined or May be integrated into another system, or some features may be ignored, or not implemented.
  • the mutual coupling or direct coupling or communication connection shown or discussed may be through some interfaces, and the indirect coupling or communication connection of devices or modules may be in electrical or other forms.
  • the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or may be distributed to multiple devices. Part or all of the units can be selected according to actual needs to achieve the purpose of the solution of this embodiment.

Abstract

The present application provides a packet transmission method and a communication apparatus, related to the technical field of communications, and capable of improving port resource utilization and flexibly sending a packet. The method comprises: a first network device determining a first packet and a second packet, the first packet comprising data of a common service, and the second packet comprising data of a hard isolation service; then, the first network device sending the first packet and the second packet in the same period by means of a first port of the first network device.

Description

报文传输方法及通信装置Message transmission method and communication device
本申请要求于2021年11月11日提交国家知识产权局、申请号为202111332727.6、申请名称为“报文传输方法及通信装置”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims the priority of a Chinese patent application filed with the State Intellectual Property Office on November 11, 2021, with application number 202111332727.6, and application title "Message Transmission Method and Communication Device", the entire contents of which are incorporated by reference in this application middle.
技术领域technical field
本申请涉及通信技术领域,尤其涉及一种报文传输方法及通信装置。The present application relates to the technical field of communication, and in particular to a message transmission method and a communication device.
背景技术Background technique
存储转发是标准以太网自诞生以来一直使用的转发技术,是指网络中每个接收侧设备将报文完整地收完并存储后,再对其进行查表处理,找到出端口后再进行转发。通道转发是指根据业务出入端口的映射关系,依据配置表进行转发,是基于码块进行转发的技术。存储转发和通道转发在不同端口上进行,两种端口之间相互独立,互不兼容。Store-and-forward is a forwarding technology that has been used by standard Ethernet since its birth. It means that each receiving-side device in the network completely receives and stores the message, then performs table lookup processing on it, and forwards it after finding the outgoing port. . Channel forwarding refers to forwarding according to the mapping relationship of service ingress and egress ports, and forwarding according to the configuration table, which is a forwarding technology based on code blocks. Store-and-forward and channel-forward are performed on different ports, and the two ports are independent and incompatible with each other.
然而,存储转发和通道转发中待传输的报文数量可能不同,存在一种端口闲置,另一种端口的报文无法及时发送的现象,端口利用率差,无法灵活地传输报文。However, the number of packets to be transmitted in store-and-forward and channel-forwarding may be different. There is a phenomenon that one port is idle, and the packets of the other port cannot be sent in time. The port utilization rate is poor, and packets cannot be transmitted flexibly.
发明内容Contents of the invention
本申请提供一种报文传输方法及通信装置,能够提高端口资源利用率,灵活发送报文。The present application provides a message transmission method and a communication device, which can improve port resource utilization and flexibly send messages.
为达到上述目的,本申请实施例采用如下技术方案:In order to achieve the above purpose, the embodiment of the present application adopts the following technical solutions:
第一方面,本申请实施例提供一种报文传输方法,该方法的执行主体可以是第一网络设备,也可以是应用于第一网络设备中的芯片。下面以执行主体是第一网络设备为例进行描述。该方法包括:第一网络设备确定第一报文和第二报文。其中,第一报文包括普通业务的数据,第二报文包括硬隔离业务的数据。然后,第一网络设备通过其第一端口在同一周期中发送第一报文和第二报文。In a first aspect, the embodiment of the present application provides a message transmission method, and the execution body of the method may be a first network device, or may be a chip applied in the first network device. The description below takes the execution subject as an example of the first network device. The method includes: the first network device determines the first packet and the second packet. Wherein, the first message includes data of common services, and the second message includes data of hard-isolated services. Then, the first network device sends the first packet and the second packet in the same cycle through its first port.
如此,即使第一报文和第二报文的数量动态变化,由于两种报文是通过同一端口发送的,所以,在第二报文的数量变少或无第二报文发送的情况下,第一网络设备即可发送较多的第一报文,或者,反之,在第一报文的数量变少或无第一报文发送的情况下,若第二报文的数量较多,第一网络设备即可发送较多的第二报文,避免端口闲置,端口利用率得到提升,也能够灵活地传输报文。In this way, even if the numbers of the first message and the second message change dynamically, since the two messages are sent through the same port, when the number of the second message decreases or no second message is sent , the first network device can send more first packets, or, conversely, when the number of first packets decreases or no first packets are sent, if the number of second packets is large, The first network device can send more second packets, avoid idle ports, improve port utilization, and flexibly transmit packets.
在一种可能的设计中,第一报文包括第一字段。其中,第一字段指示第一报文的类型,如指示第一报文的类型是普通报文。第二报文包括第二字段。其中,第二字段指示第二报文的类型,如指示第二报文的类型是硬隔离报文,以使接收端设备,如第二网络设备通过第一字段或第二字段来确定接收到报文的类型。In a possible design, the first packet includes a first field. Wherein, the first field indicates the type of the first packet, for example, indicates that the type of the first packet is a common packet. The second packet includes a second field. Wherein, the second field indicates the type of the second message, such as indicating that the type of the second message is a hard-isolated message, so that the receiving end device, such as the second network device, determines the received message through the first field or the second field The type of the message.
在一种可能的设计中,第一字段承载于第一报文的前导码部分,或第一字段承载于第一报文的开销OH字段。In a possible design, the first field is carried in the preamble part of the first packet, or the first field is carried in the overhead OH field of the first packet.
在一种可能的设计中,第二字段承载于第二报文的前导码部分,或第二字段承载于第二报文的OH字段。In a possible design, the second field is carried in the preamble part of the second packet, or the second field is carried in the OH field of the second packet.
在一种可能的设计中,第一报文还包括第一标识。其中,第一标识用于标识第一客户, 第一客户的报文包括第一报文。In a possible design, the first packet further includes a first identifier. Wherein, the first identifier is used to identify the first client, and the message of the first client includes the first message.
也就是说,第一标识指示了第一报文是哪一客户的报文。That is to say, the first identifier indicates which client's message the first message is.
在一种可能的设计中,第一数据单元包括第一码块。其中,第一数据单元是第二报文中的一个或多个数据单元,第一码块是目标客户的业务数据编码后的码块,目标客户是至少一个第二客户中的一个第二客户,第二报文中的数据包括至少一个第二客户中全部第二客户的业务数据。In a possible design, the first data unit includes a first code block. Wherein, the first data unit is one or more data units in the second message, the first code block is a code block after encoding the service data of the target customer, and the target customer is a second customer among at least one second customer , the data in the second message includes service data of all the second customers in the at least one second customer.
也就是说,第二报文携带至少一个数据单元,并且,至少一个数据单元中的一个或多个数据单元携带一个第二客户的业务数据。That is to say, the second packet carries at least one data unit, and one or more data units in the at least one data unit carry service data of a second client.
在一种可能的设计中,本申请实施例报文传输方法还包括:第一网络设备根据第一信息确定第一数据单元中的第一码块。其中,第一信息指示第一数据单元与目标客户之间的对应关系,以使第一网络设备封装第二报文。In a possible design, the packet transmission method in the embodiment of the present application further includes: the first network device determines the first code block in the first data unit according to the first information. Wherein, the first information indicates the corresponding relationship between the first data unit and the target client, so that the first network device encapsulates the second packet.
在一种可能的设计中,第一报文与第二报文在编码后的报文长度相同,如第一报文和第二报文的负载中携带的码块数量相同。In a possible design, the encoded lengths of the first packet and the second packet are the same, for example, the payloads of the first packet and the second packet carry the same number of code blocks.
在一种可能的设计中,编码包括以下至少一项:64B/66B、66B/65B、或64B/65B。In a possible design, the encoding includes at least one of the following: 64B/66B, 66B/65B, or 64B/65B.
在一种可能的设计中,第一网络设备通过其第一端口在同一周期中发送第一报文和第二报文,包括:第一网络设备根据第二信息,通过第一端口在第一时间单元上发送第一报文,以及在第二时间单元上发送第二报文。其中,第二信息指示第一时间单元和第二时间单元在周期中的位置。In a possible design, the first network device sends the first message and the second message in the same period through its first port, including: the first network device transmits the first message through the first port according to the second information The first packet is sent in a time unit, and the second packet is sent in a second time unit. Wherein, the second information indicates the positions of the first time unit and the second time unit in the cycle.
也就是说,周期中各个时间单元的位置是预配置的,第一网络设备按照预配置的时间单元位置传输第一报文和第二报文即可。That is to say, the position of each time unit in the cycle is preconfigured, and the first network device only needs to transmit the first packet and the second packet according to the preconfigured time unit position.
在一种可能的设计中,第一网络设备通过其第一端口在同一周期中发送第一报文和第二报文,包括:第一网络设备根据第二信息和第三信息,通过第一端口在未占用的第一时间单元上发送第一报文,以及在未占用的第二时间单元上发送第二报文。其中,第二信息指示周期中第一时间单元和第二时间单元的配置数量,第三信息指示周期中第一时间单元和第二时间单元的未占用数量。In a possible design, the first network device sends the first message and the second message in the same period through its first port, including: the first network device transmits the first message and the second message according to the second information and the third information through the first The port sends the first packet in the unoccupied first time unit, and sends the second packet in the unoccupied second time unit. Wherein, the second information indicates the configured quantity of the first time unit and the second time unit in the period, and the third information indicates the unoccupied quantity of the first time unit and the second time unit in the period.
也就是说,周期中各个时间单元的数量是预配置的,但位置是不固定的,第一网络设备按照预配置的时间单元数量传输第一报文和第二报文。比如,某一时刻,仅第一报文封装完成,且第一报文对应客户的时间单元数量大于零,则发送第一报文。再如,某一时刻,仅第二报文封装完成,且第二报文对应客户的时间单元数量大于零,则发送第二报文,以提高报文传输的灵活性。That is to say, the number of each time unit in the period is preconfigured, but the position is not fixed, and the first network device transmits the first packet and the second packet according to the preconfigured number of time units. For example, at a certain moment, only the encapsulation of the first packet is completed, and the number of time units corresponding to the client in the first packet is greater than zero, then the first packet is sent. For another example, at a certain moment, only the encapsulation of the second packet is completed, and the number of time units corresponding to the client in the second packet is greater than zero, the second packet is sent to improve the flexibility of packet transmission.
在一种可能的设计中,第二报文所在的第二时间单元早于第一报文所在的第一时间单元。第二报文与第一报文的生成时间相同,或第二报文的生成时间早于第一报文的生成时间。In a possible design, the second time unit where the second packet is located is earlier than the first time unit where the first packet is located. The generation time of the second packet is the same as that of the first packet, or the generation time of the second packet is earlier than the generation time of the first packet.
也就是说,若第二报文封装完成,即使第一报文也封装完成,第一网络设备也优先发送第二报文,再发送第一报文,以保证硬隔离业务的时延要求。That is to say, if the encapsulation of the second packet is completed, even if the encapsulation of the first packet is also completed, the first network device will send the second packet first, and then send the first packet, so as to ensure the delay requirement of the hard isolation service.
在一种可能的设计中,第二报文所在的第二时间单元晚于第一报文所在的第一时间单元,第二报文的生成时间晚于第一报文的生成时间。也就是说,若第二报文未封装完成,但第一报文封装完成,第一网络设备才先发送第一报文,再发送第二报文,以避免端口闲置。In a possible design, the second time unit where the second message is located is later than the first time unit where the first message is located, and the generation time of the second message is later than the generation time of the first message. That is to say, if the encapsulation of the second packet is not completed but the encapsulation of the first packet is completed, the first network device first sends the first packet and then sends the second packet, so as to avoid idle ports.
在一种可能的设计中,第二信息是基于第一客户的业务带宽和第二客户的业务带宽确定的。其中,第一客户的报文包括第一报文,第二报文中的数据包括第二客户的业务数据。例 如,第一客户的业务带宽越大,相应的,第一时间单元的数量越多。类似的,第二客户的业务带宽越大,相应的,第二时间单元的数量越多。In a possible design, the second information is determined based on the service bandwidth of the first client and the service bandwidth of the second client. Wherein, the message of the first client includes the first message, and the data in the second message includes the service data of the second client. For example, the greater the service bandwidth of the first client, the greater the number of first time units correspondingly. Similarly, the greater the service bandwidth of the second client, the greater the number of second time units correspondingly.
在一种可能的设计中,本申请实施例报文传输方法还包括:第一网络设备确定第三报文。其中,第三报文是第三客户的报文,第三报文的类型与第一报文的类型相同。第一网络设备通过其第一端口在周期中发送第三报文。其中,第三报文通过第三时间单元传输,第三时间单元被配置为传输第一客户的报文,且第三时间单元处于空闲状态,第一客户的报文包括第一报文。In a possible design, the packet transmission method in this embodiment of the present application further includes: the first network device determines the third packet. Wherein, the third message is a message of the third client, and the type of the third message is the same as that of the first message. The first network device periodically sends the third packet through its first port. Wherein, the third message is transmitted through a third time unit, the third time unit is configured to transmit the message of the first client, and the third time unit is in an idle state, and the message of the first client includes the first message.
也就是说,对于传输普通报文的时间单元而言,即使某一(些)时间单元,如第三时间单元被配置为传输第一客户的报文,若第一客户的报文未封装完成,或第一客户没有报文传输时,第三时间单元也可以传输其他客户的报文,如第三客户的报文,以实现统计复用特性,提高资源利用率。That is to say, for the time unit for transmitting ordinary messages, even if a certain time unit (some), such as the third time unit, is configured to transmit the first client’s message, if the first client’s message is not encapsulated , or when the first client has no message to transmit, the third time unit can also transmit messages from other clients, such as a message from the third client, so as to implement statistical multiplexing and improve resource utilization.
第二方面,本申请实施例提供一种报文传输方法,该方法的执行主体可以是第二网络设备,也可以是应用于第二网络设备中的芯片。下面以执行主体是第二网络设备为例进行描述。该方法包括:第二网络设备通过其第二端口在同一周期中接收第一报文和第二报文。其中,第一报文包括普通业务的数据,第二报文包括硬隔离业务的数据。然后,第二网络设备根据第一报文的类型,转发第一报文中的业务数据,以及根据第二报文的类型,转发第二报文中的业务数据。In a second aspect, the embodiment of the present application provides a packet transmission method, and the execution subject of the method may be the second network device, or may be a chip applied in the second network device. The following description is made by taking the execution subject as an example of the second network device. The method includes: the second network device receives the first message and the second message in the same period through its second port. Wherein, the first message includes data of common services, and the second message includes data of hard-isolated services. Then, the second network device forwards the service data in the first message according to the type of the first message, and forwards the service data in the second message according to the type of the second message.
在一种可能的设计中,第二网络设备根据第一报文的类型,转发第一报文中的业务数据,包括:第二网络设备根据第一报文的类型,确定存储转发方式。第二网络设备以存储转发方式转发第一报文中的业务数据。In a possible design, the second network device forwarding the service data in the first packet according to the type of the first packet includes: the second network device determining a store-and-forward mode according to the type of the first packet. The second network device forwards the service data in the first packet in a store-and-forward manner.
也就是说,第二网络设备以存储转发的方式转发第一报文中的业务数据。That is to say, the second network device forwards the service data in the first packet in a store-and-forward manner.
在一种可能的设计中,第一报文包括第一字段。其中,第一字段指示第一报文的类型。In a possible design, the first packet includes a first field. Wherein, the first field indicates the type of the first packet.
在一种可能的设计中,第一字段承载于第一报文的前导码部分,或第一字段承载于第一报文的开销OH字段。In a possible design, the first field is carried in the preamble part of the first packet, or the first field is carried in the overhead OH field of the first packet.
在一种可能的设计中,第二网络设备根据第二报文的类型,转发第二报文中的业务数据,包括:第二网络设备根据第二报文的类型,确定通道转发方式,第二网络设备以通道转发方式转发至少一个第二客户中每个第二客户的业务数据。其中,第二报文中的数据包括至少一个第二客户中全部第二客户的业务数据。In a possible design, the second network device forwards the service data in the second message according to the type of the second message, including: the second network device determines the channel forwarding mode according to the type of the second message, and the second The second network device forwards the service data of each second customer in the at least one second customer in a channel forwarding manner. Wherein, the data in the second message includes service data of all second customers in at least one second customer.
也就是说,第二网络设备以通道转发的方式转发第二报文中的业务数据。That is to say, the second network device forwards the service data in the second packet in a channel forwarding manner.
在一种可能的设计中,第二报文包括第二字段。其中,第二字段指示第二报文的类型。In a possible design, the second packet includes a second field. Wherein, the second field indicates the type of the second packet.
在一种可能的设计中,第二字段承载于第二报文的前导码部分,或第二字段承载于第二报文的OH字段。In a possible design, the second field is carried in the preamble part of the second packet, or the second field is carried in the OH field of the second packet.
第三方面,本申请实施例提供一种通信装置,该通信装置可以为上述第一方面或第一方面任一种可能的设计中的第一网络设备,或者实现上述第一网络设备功能的芯片;所述通信装置包括实现上述方法相应的模块、单元、或手段(means),该模块、单元、或means可以通过硬件实现,软件实现,或者通过硬件执行相应的软件实现。该硬件或软件包括一个或多个与上述功能相对应的模块或单元。In the third aspect, the embodiment of the present application provides a communication device, which may be the first network device in the above first aspect or any possible design of the first aspect, or a chip that realizes the functions of the above first network device The communication device includes corresponding modules, units, or means (means) for implementing the above method, and the modules, units, or means can be implemented by hardware, software, or by executing corresponding software through hardware. The hardware or software includes one or more modules or units corresponding to the above functions.
该通信装置包括处理单元和发送单元。其中,处理单元,用于确定第一报文和第二报文。其中,第一报文包括普通业务的数据,第二报文包括硬隔离业务的数据。发送单元,用于通 过其第一端口在同一周期中发送第一报文和第二报文。The communication device includes a processing unit and a sending unit. Wherein, the processing unit is configured to determine the first packet and the second packet. Wherein, the first message includes data of common services, and the second message includes data of hard-isolated services. The sending unit is configured to send the first message and the second message in the same cycle through its first port.
在一种可能的设计中,第一报文包括第一字段。其中,第一字段指示第一报文的类型,如指示第一报文的类型是普通报文。第二报文包括第二字段。其中,第二字段指示第二报文的类型。In a possible design, the first packet includes a first field. Wherein, the first field indicates the type of the first packet, for example, indicates that the type of the first packet is a common packet. The second packet includes a second field. Wherein, the second field indicates the type of the second packet.
在一种可能的设计中,第一字段承载于第一报文的前导码部分,或第一字段承载于第一报文的开销OH字段。In a possible design, the first field is carried in the preamble part of the first packet, or the first field is carried in the overhead OH field of the first packet.
在一种可能的设计中,第二字段承载于第二报文的前导码部分,或第二字段承载于第二报文的OH字段。In a possible design, the second field is carried in the preamble part of the second packet, or the second field is carried in the OH field of the second packet.
在一种可能的设计中,第一报文还包括第一标识。其中,第一标识用于标识第一客户,第一客户的报文包括第一报文。In a possible design, the first packet further includes a first identifier. Wherein, the first identifier is used to identify the first client, and the message of the first client includes the first message.
在一种可能的设计中,第一数据单元包括第一码块。其中,第一数据单元是第二报文中的一个或多个数据单元。第一码块是目标客户的业务数据编码后的码块,目标客户是至少一个第二客户中的一个第二客户。第二报文中的数据包括至少一个第二客户中全部第二客户的业务数据。In a possible design, the first data unit includes a first code block. Wherein, the first data unit is one or more data units in the second packet. The first code block is a code block after encoding service data of a target customer, and the target customer is a second customer among at least one second customer. The data in the second message includes service data of all the second clients in the at least one second client.
在一种可能的设计中,处理单元,还用于根据第一信息确定第一数据单元中的第一码块。其中,第一信息指示第一数据单元与目标客户之间的对应关系。In a possible design, the processing unit is further configured to determine the first code block in the first data unit according to the first information. Wherein, the first information indicates the corresponding relationship between the first data unit and the target customer.
在一种可能的设计中,第一报文与第二报文在编码后的报文长度相同。In a possible design, the encoded lengths of the first packet and the second packet are the same.
在一种可能的设计中,编码包括以下至少一项:64B/66B、66B/65B、或64B/65B。In a possible design, the encoding includes at least one of the following: 64B/66B, 66B/65B, or 64B/65B.
在一种可能的设计中,发送单元,用于通过其第一端口在同一周期中发送第一报文和第二报文,具体包括:根据第二信息,通过第一端口在第一时间单元上发送第一报文,以及在第二时间单元上发送第二报文。其中,第二信息指示第一时间单元和第二时间单元在周期中的位置。In a possible design, the sending unit is configured to send the first message and the second message in the same period through its first port, specifically including: according to the second information, sending the first message through the first port at the first time unit The first packet is sent at the time unit, and the second packet is sent at the second time unit. Wherein, the second information indicates the positions of the first time unit and the second time unit in the cycle.
在一种可能的设计中,发送单元,用于通过其第一端口在同一周期中发送第一报文和第二报文,具体包括:根据第二信息和第三信息,通过第一端口在未占用的第一时间单元上发送第一报文,以及在未占用的第二时间单元上发送第二报文。其中,第二信息指示周期中第一时间单元和第二时间单元的配置数量,第三信息指示周期中第一时间单元和第二时间单元的未占用数量。In a possible design, the sending unit is configured to send the first message and the second message in the same cycle through its first port, specifically including: according to the second information and the third information, through the first port at The first message is sent on the unoccupied first time unit, and the second message is sent on the unoccupied second time unit. Wherein, the second information indicates the configured quantity of the first time unit and the second time unit in the period, and the third information indicates the unoccupied quantity of the first time unit and the second time unit in the period.
在一种可能的设计中,第二报文所在的第二时间单元早于第一报文所在的第一时间单元。第二报文与第一报文的生成时间相同,或第二报文的生成时间早于第一报文的生成时间。In a possible design, the second time unit where the second packet is located is earlier than the first time unit where the first packet is located. The generation time of the second packet is the same as that of the first packet, or the generation time of the second packet is earlier than the generation time of the first packet.
在一种可能的设计中,第二报文所在的第二时间单元晚于第一报文所在的第一时间单元,第二报文的生成时间晚于第一报文的生成时间。In a possible design, the second time unit where the second message is located is later than the first time unit where the first message is located, and the generation time of the second message is later than the generation time of the first message.
在一种可能的设计中,第二信息是基于第一客户的业务带宽和第二客户的业务带宽确定的。其中,第一报文中的数据包括第一客户的业务数据,第二报文中的数据包括第二客户的业务数据。In a possible design, the second information is determined based on the service bandwidth of the first client and the service bandwidth of the second client. Wherein, the data in the first message includes the service data of the first customer, and the data in the second message includes the service data of the second customer.
在一种可能的设计中,处理单元,还用于确定第三报文。其中,第三报文是第三客户的报文,第三报文的类型与第一报文的类型相同。发送单元,还用于通过第一端口在周期中发送第三报文。其中,第三报文通过第三时间单元传输,第三时间单元被配置为传输第一客户的报文,且第三时间单元处于空闲状态。第一客户的报文包括第一报文。In a possible design, the processing unit is also configured to determine the third packet. Wherein, the third message is a message of the third client, and the type of the third message is the same as that of the first message. The sending unit is further configured to send the third message in a period through the first port. Wherein, the third message is transmitted through a third time unit, the third time unit is configured to transmit the message of the first client, and the third time unit is in an idle state. The messages of the first client include the first message.
第四方面,本申请实施例提供一种通信装置,该通信装置可以为上述第二方面或第二方 面任一种可能的设计中的第二网络设备,或者实现上述第二网络设备功能的芯片;所述通信装置包括实现上述方法相应的模块、单元、或手段(means),该模块、单元、或means可以通过硬件实现,软件实现,或者通过硬件执行相应的软件实现。该硬件或软件包括一个或多个与上述功能相对应的模块或单元。In the fourth aspect, the embodiment of the present application provides a communication device, which may be the second network device in the above-mentioned second aspect or any possible design of the second aspect, or a chip that realizes the functions of the above-mentioned second network device The communication device includes corresponding modules, units, or means (means) for implementing the above method, and the modules, units, or means can be implemented by hardware, software, or by executing corresponding software through hardware. The hardware or software includes one or more modules or units corresponding to the above functions.
该通信装置包括接收单元、处理单元和发送单元。其中,接收单元,用于通过其第二端口在同一周期中接收第一报文和第二报文。其中,第一报文包括普通业务的数据,第二报文包括硬隔离业务的数据。发送单元,用于根据第一报文的类型,转发第一报文中的业务数据,以及根据第二报文的类型,转发第二报文中的业务数据。The communication device includes a receiving unit, a processing unit and a sending unit. Wherein, the receiving unit is configured to receive the first message and the second message in the same cycle through its second port. Wherein, the first message includes data of common services, and the second message includes data of hard-isolated services. The sending unit is configured to forward the service data in the first message according to the type of the first message, and forward the service data in the second message according to the type of the second message.
在一种可能的设计中,发送单元,用于根据第一报文的类型,转发第一报文中的业务数据,具体包括:处理单元,用于根据第一报文的类型,确定存储转发方式。发送单元,用于以存储转发方式转发第一报文中的业务数据。In a possible design, the sending unit is configured to forward the service data in the first message according to the type of the first message, and specifically includes: a processing unit configured to determine the storage and forwarding according to the type of the first message Way. A sending unit, configured to forward the service data in the first message in a store-and-forward manner.
在一种可能的设计中,第一报文包括第一字段。其中,第一字段指示第一报文的类型。In a possible design, the first packet includes a first field. Wherein, the first field indicates the type of the first packet.
在一种可能的设计中,第一字段承载于第一报文的前导码部分,或第一字段承载于第一报文的开销OH字段。In a possible design, the first field is carried in the preamble part of the first packet, or the first field is carried in the overhead OH field of the first packet.
在一种可能的设计中,发送单元,用于根据第二报文的类型,转发第二报文中的业务数据,包括:处理单元,用于根据第二报文的类型,确定通道转发方式。发送单元,用于以通道转发方式转发至少一个第二客户中每个第二客户的业务数据。其中,第二报文中的数据包括至少一个第二客户中全部第二客户的业务数据。In a possible design, the sending unit is configured to forward the service data in the second message according to the type of the second message, including: a processing unit configured to determine the channel forwarding mode according to the type of the second message . The sending unit is configured to forward the service data of each second customer in the at least one second customer in a channel forwarding manner. Wherein, the data in the second message includes service data of all second customers in at least one second customer.
在一种可能的设计中,第二报文包括第二字段。其中,第二字段指示第二报文的类型。In a possible design, the second packet includes a second field. Wherein, the second field indicates the type of the second packet.
在一种可能的设计中,第二字段承载于第二报文的前导码部分,或第二字段承载于第二报文的OH字段。In a possible design, the second field is carried in the preamble part of the second packet, or the second field is carried in the OH field of the second packet.
第五方面,本申请实施例提供了一种通信装置,包括:处理器和存储器;该存储器用于存储计算机指令,当该处理器执行该指令时,使得该通信装置执行上述任一方面或任一方面任一种可能的设计中第一网络设备所执行的方法。该通信装置可以为上述第一方面或第一方面任一种可能的设计中的第一网络设备,或者实现上述第一网络设备功能的芯片。In the fifth aspect, the embodiment of the present application provides a communication device, including: a processor and a memory; the memory is used to store computer instructions, and when the processor executes the instructions, the communication device performs any of the above aspects or any In one aspect, a method performed by the first network device in any possible design. The communication device may be the first network device in the first aspect or any possible design of the first aspect, or a chip implementing the functions of the first network device above.
第六方面,本申请实施例提供了一种通信装置,包括:处理器;所述处理器与存储器耦合,用于读取存储器中的指令并执行,以使该通信装置执行如上述任一方面或任一方面任一种可能的设计中第一网络设备所执行的方法。该通信装置可以为上述第一方面或第一方面任一种可能的设计中的第一网络设备,或者实现上述第一网络设备功能的芯片。In a sixth aspect, an embodiment of the present application provides a communication device, including: a processor; the processor is coupled to a memory, and is used to read and execute instructions in the memory, so that the communication device performs any of the above aspects Or a method executed by the first network device in any possible design of any aspect. The communication device may be the first network device in the first aspect or any possible design of the first aspect, or a chip implementing the functions of the first network device above.
第七方面,本申请实施例提供一种芯片,包括处理电路和输入输出接口。其中,输入输出接口用于与芯片之外的模块通信,例如,该芯片可以为实现上述第一方面或第一方面任一种可能的设计中的第一网络设备功能的芯片。处理电路用于运行计算机程序或指令,以实现以上第一方面或第一方面任一种可能的设计中的方法。In a seventh aspect, the embodiment of the present application provides a chip, including a processing circuit and an input/output interface. Wherein, the input and output interface is used to communicate with modules other than the chip, for example, the chip may be a chip that implements the function of the first network device in the first aspect or any possible design of the first aspect. The processing circuit is used to run computer programs or instructions to implement the method in the above first aspect or any possible design of the first aspect.
第八方面,本申请实施例提供了一种通信装置,包括:处理器和存储器;该存储器用于存储计算机指令,当该处理器执行该指令时,使得该通信装置执行上述任一方面或任一方面任一种可能的设计中第二网络设备所执行的方法。该通信装置可以为上述第二方面或第二方面任一种可能的设计中的第二网络设备,或者实现上述第二网络设备功能的芯片。In an eighth aspect, the embodiment of the present application provides a communication device, including: a processor and a memory; the memory is used to store computer instructions, and when the processor executes the instructions, the communication device performs any of the above aspects or any In one aspect, a method performed by the second network device in any possible design. The communication device may be the second network device in the above-mentioned second aspect or any possible design of the second aspect, or a chip that implements the functions of the above-mentioned second network device.
第九方面,本申请实施例提供了一种通信装置,包括:处理器;所述处理器与存储器耦合,用于读取存储器中的指令并执行,以使该通信装置执行如上述任一方面或任一方面任一 种可能的设计中的第二网络设备所执行的方法。该通信装置可以为上述第二方面或第二方面任一种可能的设计中的第二网络设备,或者实现上述第二网络设备功能的芯片。In a ninth aspect, an embodiment of the present application provides a communication device, including: a processor; the processor is coupled to a memory, and is used to read and execute instructions in the memory, so that the communication device performs any of the above aspects Or a method executed by the second network device in any possible design of any aspect. The communication device may be the second network device in the above-mentioned second aspect or any possible design of the second aspect, or a chip that implements the functions of the above-mentioned second network device.
第十方面,本申请实施例提供一种芯片,包括处理电路和输入输出接口。其中,输入输出接口用于与芯片之外的模块通信,例如,该芯片可以为实现上述第二方面或第二方面任一种可能的设计中的第二网络设备功能的芯片。处理电路用于运行计算机程序或指令,以实现以上第二方面或第二方面任一种可能的设计中的方法。In a tenth aspect, the embodiment of the present application provides a chip, including a processing circuit and an input/output interface. Wherein, the input and output interface is used to communicate with modules other than the chip, for example, the chip may be a chip that implements the function of the second network device in the second aspect or any possible design of the second aspect. The processing circuit is used to run computer programs or instructions to implement the method in the above second aspect or any possible design of the second aspect.
第十一方面,本申请实施例提供一种计算机可读存储介质,该计算机可读存储介质中存储有指令,当其在计算机上运行时,使得计算机可以执行上述任一方面中任一项的方法。In the eleventh aspect, the embodiment of the present application provides a computer-readable storage medium, the computer-readable storage medium stores instructions, and when it is run on a computer, the computer can execute any one of the above-mentioned aspects. method.
第十二方面,本申请实施例提供一种包含指令的计算机程序产品,当其在计算机上运行时,使得计算机可以执行上述任一方面中任一项的方法。In a twelfth aspect, the embodiment of the present application provides a computer program product containing instructions, which when run on a computer, enables the computer to execute the method in any one of the above aspects.
第十三方面,本申请实施例提供一种电路系统,电路系统包括处理电路,处理电路被配置为执行如上述任一方面中任一项的方法。In a thirteenth aspect, the embodiment of the present application provides a circuit system, the circuit system includes a processing circuit, and the processing circuit is configured to execute the method according to any one of the foregoing aspects.
第十四方面,本申请实施例提供一种通信系统,该通信系统包括上述各个方面中任一项中的第一网络设备和第二网络设备。In a fourteenth aspect, an embodiment of the present application provides a communication system, where the communication system includes the first network device and the second network device in any one of the foregoing aspects.
其中,第三方面至第十四方面中任一种设计所带来的技术效果可参考上文所提供的对应的方法中的有益效果,此处不再赘述。Wherein, for the technical effects brought about by any one of the designs from the third aspect to the fourteenth aspect, reference may be made to the beneficial effects in the corresponding methods provided above, which will not be repeated here.
附图说明Description of drawings
图1为本申请的实施例应用的一种网络架构图;Fig. 1 is a kind of network architecture diagram that the embodiment of the present application applies;
图2a为本申请的实施例提供的一种编码格式示意图;Figure 2a is a schematic diagram of a coding format provided by the embodiment of the present application;
图2b为本申请的实施例提供的再一种编码格式示意图;Fig. 2b is a schematic diagram of another encoding format provided by the embodiment of the present application;
图3a为本申请的实施例提供的一种通信场景示意图;FIG. 3a is a schematic diagram of a communication scenario provided by an embodiment of the present application;
图3b为本申请的实施例提供的再一种通信场景示意图;FIG. 3b is a schematic diagram of another communication scenario provided by the embodiment of the present application;
图4为本申请的实施例提供的一种端口形态示意图;FIG. 4 is a schematic diagram of a port form provided by an embodiment of the present application;
图5为本申请的实施例提供的一种报文传输方法的流程示意图;FIG. 5 is a schematic flowchart of a message transmission method provided by an embodiment of the present application;
图6a为本申请的实施例提供的一种报文结构示意图;FIG. 6a is a schematic diagram of a message structure provided by an embodiment of the present application;
图6b为本申请的实施例提供的再一种报文结构示意图;FIG. 6b is a schematic diagram of another message structure provided by the embodiment of the present application;
图6c为本申请的实施例提供的又一种报文结构示意图;FIG. 6c is a schematic diagram of another message structure provided by the embodiment of the present application;
图6d为本申请的实施例提供的又一种报文结构示意图;FIG. 6d is a schematic diagram of another message structure provided by the embodiment of the present application;
图6e为本申请的实施例提供的又一种报文结构示意图;FIG. 6e is a schematic diagram of another message structure provided by the embodiment of the present application;
图7a为本申请的实施例提供的一种报文封装的过程示意图;FIG. 7a is a schematic diagram of a message encapsulation process provided by an embodiment of the present application;
图7b为本申请的实施例提供的再一种报文封装的过程示意图;FIG. 7b is a schematic diagram of another packet encapsulation process provided by the embodiment of the present application;
图8为本申请的实施例提供的再一种报文传输方法的流程示意图;FIG. 8 is a schematic flowchart of another message transmission method provided by an embodiment of the present application;
图9a为本申请的实施例提供的一种报文传输的场景示意图;FIG. 9a is a schematic diagram of a message transmission scenario provided by an embodiment of the present application;
图9b为本申请的实施例提供的再一种报文传输的场景示意图;FIG. 9b is a schematic diagram of another message transmission scenario provided by the embodiment of the present application;
图10为本申请的实施例提供的又一种报文传输方法的流程示意图;FIG. 10 is a schematic flowchart of another message transmission method provided by an embodiment of the present application;
图11为本申请实施例提供的一种通信装置的结构示意图;FIG. 11 is a schematic structural diagram of a communication device provided by an embodiment of the present application;
图12为本申请实施例提供的再一种通信装置的结构示意图。FIG. 12 is a schematic structural diagram of another communication device provided by an embodiment of the present application.
具体实施方式Detailed ways
本申请的说明书以及附图中的术语“第一”和“第二”等是用于区别不同的对象,或者用于区别对同一对象的不同处理,而不是用于描述对象的特定顺序。此外,本申请的描述中所提到的术语“包括”和“具有”以及它们的任何变形,意图在于覆盖不排他的包含。例如包含了一系列步骤或单元的过程、方法、系统、产品或设备没有限定于已列出的步骤或单元,而是可选地还包括其他没有列出的步骤或单元,或可选地还包括对于这些过程、方法、产品或设备固有的其它步骤或单元。需要说明的是,本申请实施例中,“示例性的”或者“例如”等词用于表示作例子、例证或说明。本申请实施例中被描述为“示例性的”或者“例如”的任何实施例或设计方案不应被解释为比其它实施例或设计方案更优选或更具优势。确切而言,使用“示例性的”或者“例如”等词旨在以具体方式呈现相关概念。The terms "first" and "second" in the specification and drawings of the present application are used to distinguish different objects, or to distinguish different processes for the same object, rather than to describe a specific sequence of objects. In addition, the terms "including" and "having" mentioned in the description of the present application and any variations thereof are intended to cover non-exclusive inclusion. For example, a process, method, system, product or device comprising a series of steps or units is not limited to the listed steps or units, but optionally also includes other unlisted steps or units, or optionally also includes Other steps or elements inherent to the process, method, product or apparatus are included. It should be noted that, in the embodiments of the present application, words such as "exemplary" or "for example" are used as examples, illustrations or descriptions. Any embodiment or design scheme described as "exemplary" or "for example" in the embodiments of the present application shall not be interpreted as being more preferred or more advantageous than other embodiments or design schemes. Rather, the use of words such as "exemplary" or "such as" is intended to present related concepts in a concrete manner.
本申请实施例可以适用的网络架构如图1所示,该网络架构包括客户设备和网络设备。The applicable network architecture of this embodiment of the present application is shown in FIG. 1 , and the network architecture includes a client device and a network device.
其中,客户设备可以是两个,也可以是两个以上,图1中示出了四个客户设备,如客户设备101、客户设备102、客户设备103、客户设备104。There may be two or more client devices. FIG. 1 shows four client devices, such as client device 101 , client device 102 , client device 103 , and client device 104 .
其中,网络设备包括运营商边缘(provider edge,PE)设备和运营商(provider,P)设备。PE设备可以是两个,也可以是多个。P设备可以是一个,也可以是多个。图1中示出了两个PE设备(PE设备105和PE设备106)和一个P设备,P设备分别与PE设备105和PE设备106通信连接。客户设备101和客户设备102均与PE设备105通信连接,客户设备103和客户设备104均与PE设备106通信连接。Wherein, the network device includes a provider edge (provider edge, PE) device and a provider (provider, P) device. There can be two or more PE devices. There can be one or more P devices. FIG. 1 shows two PE devices (PE device 105 and PE device 106 ) and one P device, and the P device is communicatively connected to the PE device 105 and the PE device 106 respectively. Both the client device 101 and the client device 102 are connected in communication with the PE device 105 , and the client device 103 and the client device 104 are both connected in communication with the PE device 106 .
示例性的,客户设备可以是路由器或交换机,也可以是一台主机。PE设备可以是服务提供商边缘路由器,是服务提供商网络的边缘设备,与客户设备直接相连。P设备可以是服务提供商网络中的骨干路由器,不与客户设备直接相连,本申请实施例对客户设备和网络设备的实现形式不作限定。Exemplarily, the client device may be a router or a switch, or a host. The PE device may be an edge router of a service provider, which is an edge device of a service provider network and is directly connected to a customer device. The P device may be a backbone router in the service provider's network, and is not directly connected to the client device. This embodiment of the present application does not limit the implementation forms of the client device and the network device.
应理解,在不同的网络架构中,上述网络设备、客户设备可能对应不同的名字,本领域技术人员可以理解的是,名字对设备本身不构成限定。It should be understood that in different network architectures, the foregoing network devices and client devices may correspond to different names, and those skilled in the art can understand that the names do not limit the devices themselves.
在上述网络架构中,每个设备(如上述客户设备、PE设备、P设备)上承载一种或多种业务。示例性的,某一设备上承载的业务可以是邮件业务,网页业务,即时通信业务等业务中的一种或多种。对于一个客户设备而言,一个客户设备上可以承载一种业务,也可以承载多种业务,无论一种业务还是多种业务,这些业务均对应同一客户。对于一个网络设备(如上述PE设备、P设备)而言,一个网络设备上可以承载一种业务,也可以承载多种业务,无论一种业务还是多种业务,这些业务对应多客户。In the above network architecture, each device (such as the above client equipment, PE equipment, and P equipment) bears one or more services. Exemplarily, the services borne by a certain device may be one or more of services such as mail services, web page services, and instant messaging services. For a client device, a client device may carry one type of service or multiple types of services, and regardless of one type of service or multiple types of services, these services all correspond to the same client. For a network device (such as the above-mentioned PE device and P device), a network device can carry one type of service or multiple types of services, regardless of one type of service or multiple types of services, and these services correspond to multiple clients.
为了便于理解本申请实施例,下面先对本申请实施例中涉及的术语做简单说明。应理解,这些说明仅为便于理解本申请实施例,而不应对本申请构成任何限定。In order to facilitate understanding of the embodiments of the present application, terms involved in the embodiments of the present application will be briefly described below. It should be understood that these descriptions are only for understanding the embodiments of the present application, and shall not constitute any limitation to the present application.
1、M比特/N比特块(bit block):1. M bit/N bit block (bit block):
M比特/N比特块,也可以称为M比特/N比特编码块,M/N比特编码块,或M/N比特块。其中,M表示编码输入,N表示编码输出。M和N均为正整数,且M<N。An M-bit/N-bit block may also be referred to as an M-bit/N-bit coding block, an M/N-bit coding block, or an M/N-bit block. Among them, M represents the coded input, and N represents the coded output. Both M and N are positive integers, and M<N.
64B/66B,是64/66bit块的简称,指IEEE 802.3定义的64B/66B块。具体地,在64bit输入的基础上,根据它是控制信息还是业务数据信息,增加2bit的同步头(sync)。其中,0b10表示控制码块,0b01表示数据码块,其他类型的同步头表示无效的码块。在控制码块中,还包括块类型域(Block Type Field),以指示块类型。示例性的,块类型域的取值包括0x1E、0x78、0x4B、0x87、0x99、0xAA、0xB4、0xCC、0xD2、0xE1或0xFF,如图2a所示。64B/66B, short for 64/66bit block, refers to the 64B/66B block defined by IEEE 802.3. Specifically, on the basis of 64-bit input, a 2-bit synchronization header (sync) is added according to whether it is control information or service data information. Among them, 0b10 represents a control code block, 0b01 represents a data code block, and other types of sync headers represent invalid code blocks. In the control code block, a block type field (Block Type Field) is also included to indicate the block type. Exemplarily, the value of the block type field includes 0x1E, 0x78, 0x4B, 0x87, 0x99, 0xAA, 0xB4, 0xCC, 0xD2, 0xE1 or 0xFF, as shown in FIG. 2a.
64B/65B,是64/65bit块的简称,指IEEE 802.3定义的64B/65B块。具体地,在64B/66B基础上,将2bit的同步头压缩为1bit而形成的编码块。或者,直接在64bit输入的基础上进行编码,添加1bit的同步头。64B/65B如图2b所示。64B/65B, short for 64/65bit block, refers to the 64B/65B block defined by IEEE 802.3. Specifically, on the basis of 64B/66B, a 2-bit sync header is compressed into a coding block formed by 1 bit. Or, encode directly on the basis of 64bit input and add a 1bit sync header. 64B/65B is shown in Figure 2b.
2、硬隔离业务、普通业务2. Hard isolation business and common business
硬隔离业务,是指对隔离度有要求的业务。示例性的,参见表a,若某一业务对隔离度有要求,则该业务是硬隔离业务。可选的,硬隔离业务还可以对时延、抖动等指标有要求。例如,硬隔离业务的时延小于或等于100us。再如,硬隔离业务的抖动小于或等于10ns。Hard isolation services refer to services that require isolation. For example, refer to Table a. If a certain service requires isolation, the service is a hard isolation service. Optionally, hard isolation services may also have requirements on indicators such as delay and jitter. For example, the delay of the hard isolation service is less than or equal to 100us. For another example, the jitter of the hard isolation service is less than or equal to 10 ns.
普通业务,是指对隔离度、时延、抖动等三项指标中的全部指标没有要求的业务,如表a中的最后一行所示。或者,普通业务也可以是网络给定尽力而为服务的业务,即对时延、抖动、隔离都没有保障的业务。Ordinary services refer to services that do not require all of the three indicators of isolation, delay, and jitter, as shown in the last row in Table a. Alternatively, the common service may also be a service for which the network provides a best-effort service, that is, a service that has no guarantee for delay, jitter, and isolation.
表atable a
Figure PCTCN2022130613-appb-000001
Figure PCTCN2022130613-appb-000001
在本申请实施例中,业务类型是指,普通业务或硬隔离业务。In the embodiment of the present application, the service type refers to common service or hard isolation service.
示例性的,仍以邮件业务,网页业务,即时通信业务为例,邮件业务和网页业务的业务类型是普通业务,即时通信业务(如视频会议业务)的业务类型是硬隔离业务。Exemplarily, still taking mail service, webpage service, and instant messaging service as examples, the service type of mail service and webpage service is common service, and the service type of instant messaging service (such as video conferencing service) is hard isolation service.
3、硬隔离报文、普通报文3. Hard-isolated packets and normal packets
硬隔离报文,是指由硬隔离业务的数据封装而成的报文。硬隔离报文中的业务数据是硬隔离业务的数据。一个硬隔离报文中的业务数据可以来自一个客户,也可以来自多个客户,本申请实施例对此不作限定。A hard-isolation packet refers to a packet encapsulated by hard-isolation service data. The service data in the hard isolation message is the data of the hard isolation service. The service data in a hard isolation message may come from one client or multiple clients, which is not limited in this embodiment of the present application.
普通报文,是指由普通业务的数据封装而成的报文。普通报文中的业务数据是普通业务的数据。一个普通报文中的业务数据来自一个客户。Ordinary packets refer to packets encapsulated by ordinary service data. The service data in the ordinary message is the data of the ordinary service. The business data in a normal message comes from a client.
在本申请实施例中,报文类型是指,普通报文或硬隔离报文。In this embodiment of the present application, the packet type refers to a common packet or a hard-isolated packet.
4、硬隔离、统计复用4. Hard isolation and statistical multiplexing
硬隔离,是指链路带宽分配给一个业务时,即使该业务没有数据发送,该链路带宽也不被其他业务使用。示例性的,网络设备通过时分技术、频分技术等使得不同业务在传输时,相互隔离,实现时延,抖动,带宽等互不影响。也就是说,网络设备需采用支持硬隔离特性,的技术,如时隙化技术,才能够转发硬隔离业务的报文。Hard isolation means that when the link bandwidth is allocated to a service, even if the service has no data to send, the link bandwidth will not be used by other services. Exemplarily, the network device uses time division technology, frequency division technology, etc. to isolate different services from each other during transmission, so that delay, jitter, bandwidth, etc. do not affect each other. That is to say, network devices need to adopt technologies that support hard isolation features, such as time slotting technology, to be able to forward packets of hard isolation services.
统计复用,是指链路带宽分配给一个业务时,当该业务没有数据发送,该链路带宽可以被其他业务使用。网络设备采用的技术需支持统计复用特性,如报文技术,在转发普通业务的报文时,能够提高资源利用率。Statistical multiplexing means that when the link bandwidth is allocated to a service, the link bandwidth can be used by other services when no data is sent for the service. The technology adopted by network devices needs to support statistical multiplexing, such as packet technology, which can improve resource utilization when forwarding packets of common services.
示例性的,报文技术支持统计复用特性,不支持硬隔离特性。时隙化技术支持硬隔离特性,不支持统计复用特性。Exemplarily, the packet technology supports the feature of statistical multiplexing, but does not support the feature of hard isolation. The time slotting technology supports hard isolation but does not support statistical multiplexing.
5、存储转发、通道转发5. Store and forward, channel forward
存储转发是标准以太网自诞生以来一直使用的转发技术。存储转发是指,网络中每个接 收侧设备完整地接收并存储报文之后,再进行查表处理,以找到报文的出端口,通过出端口转发报文,如图3a所示。其中,接收侧设备可以是图3a中的网络设备,如PE设备105、PE设备106、P设备107、或P设备108等。另外,存储转发,也可以称为二层转发,分组报文转发,或目的转发(destination forwarding)。示例性的,接收侧设备上用于存储转发的端口,称为报文端口,端口形态如图4所示。报文端口可以是原生的以太网端口,如采用未改动的以太网技术实现报文级转发的接口。网络设备通过报文端口发送以太帧。Store-and-forward is the forwarding technique that standard Ethernet has used since its inception. Store-and-forward means that after each receiving device in the network completely receives and stores the message, it performs table lookup processing to find the outgoing port of the message and forwards the message through the outgoing port, as shown in Figure 3a. Wherein, the receiving side device may be the network device in FIG. 3a, such as PE device 105, PE device 106, P device 107, or P device 108, and so on. In addition, store and forward can also be called Layer 2 forwarding, packet forwarding, or destination forwarding. Exemplarily, the port used for storing and forwarding on the receiving side device is called a message port, and the port form is shown in FIG. 4 . The packet port can be a native Ethernet port, such as an interface that uses unchanged Ethernet technology to implement packet-level forwarding. Network devices send Ethernet frames through message ports.
通道转发是指,网络中每个接收侧设备根据业务的出端口与入端口之间的映射关系进行转发,无需恢复完整的报文,如图3b所示。其中,接收侧设备可以是图3b中的网络设备,如PE设备105、PE设备106、P设备107、或P设备108等。通道转发属于时隙化技术。通道转发,也可以称为1.5层转发,或通道转发。示例性的,接收侧设备上用于通道转发的端口,称为时隙化端口,端口形态如图4所示。时隙化端口可以是采用改动后的以太网技术,如灵活以太网(flex ethernet,FlexE)技术实现码块级转发的接口。网络设备通过时隙化端口发送时隙化帧。其中,时隙化帧是一种结构的帧,即时隙化帧结构的一种帧。Channel forwarding means that each receiving-side device in the network forwards according to the mapping relationship between the outbound port and inbound port of the service, without recovering the complete message, as shown in Figure 3b. Wherein, the receiving side device may be the network device shown in FIG. 3 b , such as PE device 105 , PE device 106 , P device 107 , or P device 108 . Channel forwarding is a time-slotted technology. Channel forwarding can also be called layer 1.5 forwarding, or channel forwarding. Exemplarily, the port used for channel forwarding on the receiving side device is called a slotted port, and the port form is shown in FIG. 4 . The time-slotted port may be an interface that uses a modified Ethernet technology, such as a flexible Ethernet (flex ethernet, FlexE) technology, to implement block-level forwarding. A network device sends slotted frames through a slotted port. Wherein, the slotted frame is a frame of a structure, that is, a frame of a slotted frame structure.
应理解,在本申请实施例中,帧或报文是指以太帧。下面,仅以报文这一名称为例进行介绍。It should be understood that, in this embodiment of the present application, a frame or a packet refers to an Ethernet frame. In the following, only the name of message is used as an example for introduction.
由图4可知,报文端口和时隙化端口互相独立,互不兼容。同一网络设备需具备上述两种端口才能够转发两种业务(即普通业务、硬隔离业务)的报文。It can be seen from FIG. 4 that the packet port and the slotted port are independent and incompatible with each other. The same network device needs to have the above two ports to be able to forward the messages of the two services (that is, common services and hard-isolated services).
然而,上述两种转发方式中,待传输的报文数量可能不同。若某一转发方式待转发的报文不存在,则相应端口闲置,另一转发方式待转发的报文较多,则相应端口的报文无法及时发送,端口利用率差,网络设备无法灵活地传输报文。However, in the above two forwarding manners, the number of packets to be transmitted may be different. If there is no packet to be forwarded by a certain forwarding method, the corresponding port is idle, and there are many packets to be forwarded by another forwarding method, the packets of the corresponding port cannot be sent in time, the utilization of the port is poor, and the network device cannot flexibly transmit message.
有鉴于此,本申请实施例提供了一种报文传输方法,本申请实施例报文传输方法应用于图1、图3a或图3b的网络架构。在本申请实施例报文传输方法中,第一网络设备确定第一报文和第二报文。其中,第一报文包括普通业务的数据,第二报文包括硬隔离业务的数据。然后,第一网络设备通过第一端口在同一周期中发送第一报文和第二报文。其中,第一端口是第一网络设备上的端口。这样一来,即使第一报文和第二报文的数量动态变化,由于两种报文是通过同一端口发送的,所以,在第二报文的数量变少或无第二报文发送的情况下,第一网络设备即可发送较多的第一报文,或者,反之,在第一报文的数量变少或无第一报文发送的情况下,若第二报文的数量较多,第一网络设备即可发送较多的第二报文,避免端口闲置,端口利用率得到提升,报文传输也更灵活。In view of this, the embodiment of the present application provides a packet transmission method, and the packet transmission method of the embodiment of the present application is applied to the network architecture in FIG. 1 , FIG. 3a or FIG. 3b. In the packet transmission method in the embodiment of the present application, the first network device determines the first packet and the second packet. Wherein, the first message includes data of common services, and the second message includes data of hard-isolated services. Then, the first network device sends the first packet and the second packet in the same cycle through the first port. Wherein, the first port is a port on the first network device. In this way, even if the numbers of the first message and the second message change dynamically, since the two messages are sent through the same port, when the number of the second message decreases or no second message is sent Under normal circumstances, the first network device can send more first packets, or, conversely, when the quantity of the first packets is reduced or no first packets are sent, if the quantity of the second packets is less than more, the first network device can send more second packets, avoiding idle ports, improving port utilization, and more flexible packet transmission.
下面,结合图5,对本申请实施例提出的报文传输方法500进行详细介绍。Next, with reference to FIG. 5 , the message transmission method 500 proposed in the embodiment of the present application will be introduced in detail.
S501、第一网络设备确定第一报文和第二报文。S501. The first network device determines the first packet and the second packet.
其中,以图1为例,在报文从左向右传输的情况下,第一网络设备可以是PE设备105,也可以是P设备。在报文从右向左传输的情况下,第一网络设备可以是PE设备106,也可以是P设备。在本申请实施例中,以第一网络设备实现为PE设备105为例进行介绍。Wherein, taking FIG. 1 as an example, in the case that packets are transmitted from left to right, the first network device may be the PE device 105 or the P device. In the case that packets are transmitted from right to left, the first network device may be PE device 106 or P device. In this embodiment of the present application, the first network device is implemented as the PE device 105 as an example for introduction.
其中,第一报文的类型和第二报文的类型不同。Wherein, the type of the first message is different from the type of the second message.
其中,第一报文的介绍如下:第一报文包括普通业务的数据。示例性的,第一报文中普通业务的数据来自第一客户。仍以图1为例,第一客户可以是客户设备101对应的客户。客户设备101向PE设备105发送第一客户的业务数据。相应的,PE设备105接收来自客户设备101的第一客户的业务数据。之后,PE设备105将第一客户的业务数据封装为第一报文。Wherein, the introduction of the first packet is as follows: the first packet includes data of common services. Exemplarily, the data of common services in the first message comes from the first client. Still taking FIG. 1 as an example, the first client may be a client corresponding to the client device 101 . The client device 101 sends the service data of the first client to the PE device 105 . Correspondingly, the PE device 105 receives service data of the first client from the client device 101 . Afterwards, the PE device 105 encapsulates the service data of the first client into a first packet.
示例性的,第一报文通过字段来指示报文类型。例如,第一报文包括第一字段。其中,第一字段指示第一报文的类型,如第一字段的取值为0x55。Exemplarily, the first packet indicates the packet type through a field. For example, the first packet includes a first field. Wherein, the first field indicates the type of the first packet, for example, the value of the first field is 0x55.
例如,以图6a为例,第一报文包括前导码(preamble)字段、帧开始界定符(start frame delimiter,SFD)字段、开销(overhead,OH)字段、负载字段和循环冗余校验(cyclic redundancy check,CRC)字段。示例性的,如图6a所示,第一字段承载于第一报文的前导码部分。For example, taking Fig. 6a as an example, the first message includes a preamble (preamble) field, a frame start delimiter (start frame delimiter, SFD) field, an overhead (overhead, OH) field, a load field and a cyclic redundancy check ( cyclic redundancy check, CRC) field. Exemplarily, as shown in FIG. 6a, the first field is carried in the preamble part of the first packet.
再如,以图6b为例,第一字段承载于第一报文的OH字段,如第一字段承载于OH中的最后一个字段。For another example, taking FIG. 6b as an example, the first field is carried in the OH field of the first packet, for example, the first field is carried in the last field in the OH.
可选的,第一报文还包括第一标识。其中,第一标识用于标识第一客户,以标识第一报文是哪一客户的报文。第一标识承载于OH字段。以图6a为例,第一标识可以记为细粒度客户标识(fine-granularity client identity,fgClientID),占用2个字段,即16bits,取值范围为0~2^16-1。如图6a所示,第一标识占OH字段中的前2个字段。OH字段中的第三个字段,即图6a中的字段2保留。Optionally, the first packet further includes a first identifier. Wherein, the first identifier is used to identify the first client, so as to identify which client the first message is. The first identifier is carried in the OH field. Taking Figure 6a as an example, the first identifier can be recorded as a fine-granularity client identity (fgClientID), which occupies 2 fields, namely 16 bits, and the value range is 0 to 2^16-1. As shown in Fig. 6a, the first identifier occupies the first two fields in the OH field. The third field in the OH field, field 2 in Figure 6a, is reserved.
示例性的,第一网络设备封装第一报文的过程如下:Exemplarily, the process of encapsulating the first packet by the first network device is as follows:
如图7a所示,以第一客户的介质访问控制(media access control,MAC)帧为例,第一网络设备对MAC帧先进行64B/66B编码,形成码块序列1。其中,码块序列1中每个码块是66bit。然后,第一网络设备对码块序列1进行同步头压缩,形成码块序列2。其中,码块序列2中每个码块是65bit。或者,第一网络设备对MAC帧进行64B/65B编码,形成码块序列3。其中,码块序列3中每个码块是65bit。之后,第一网络设备对码块序列2(或码块序列3)中的部分码块或全部码块进行处理,以得到第一报文的负载部分。示例性的,第一报文的负载部分包括一个起始(start,S)码块、多个数据(data,D)码块和一个结束(terminal,T)码块。其中,S码块和T码块用于确定一个完整报文。D码块用于承载报文中的负荷数据。As shown in FIG. 7a, taking the media access control (media access control, MAC) frame of the first client as an example, the first network device performs 64B/66B encoding on the MAC frame to form code block sequence 1. Wherein, each code block in the code block sequence 1 is 66 bits. Then, the first network device performs synchronization header compression on code block sequence 1 to form code block sequence 2 . Wherein, each code block in the code block sequence 2 is 65 bits. Alternatively, the first network device performs 64B/65B encoding on the MAC frame to form code block sequence 3 . Wherein, each code block in the code block sequence 3 is 65 bits. Afterwards, the first network device processes some or all of the code blocks in the code block sequence 2 (or code block sequence 3) to obtain the payload part of the first message. Exemplarily, the payload part of the first packet includes a start (start, S) code block, multiple data (data, D) code blocks, and an end (terminal, T) code block. Wherein, the S code block and the T code block are used to determine a complete message. The D code block is used to carry the payload data in the message.
其中,第二报文的介绍如下:第二报文包括硬隔离业务的数据。示例性的,第二报文中硬隔离业务的数据来自第二客户。仍以图1为例,第二客户可以是客户设备102对应的客户。客户设备102向PE设备105发送第二客户的业务数据。相应的,PE设备105接收来自客户设备102的第二客户的业务数据。之后,PE设备105将第二客户的业务数据封装为第二报文。Wherein, the introduction of the second message is as follows: the second message includes the data of the hard isolation service. Exemplarily, the data of the hard isolation service in the second packet comes from the second client. Still taking FIG. 1 as an example, the second client may be a client corresponding to the client device 102 . The client device 102 sends the service data of the second client to the PE device 105 . Correspondingly, the PE device 105 receives the service data of the second client from the client device 102 . Afterwards, the PE device 105 encapsulates the service data of the second client into a second packet.
示例性的,第二报文通过字段来指示报文类型。例如,第二报文包括第二字段。其中,第二字段指示第二报文的类型,如第二字段的取值为0x66。Exemplarily, the second packet indicates the packet type through a field. For example, the second packet includes a second field. Wherein, the second field indicates the type of the second packet, for example, the value of the second field is 0x66.
例如,以图6c为例,第二报文包括前导码字段、SFD字段、OH字段、负载字段和CRC字段。示例性的,如图6c所示,第二字段承载于第二报文的前导码部分。For example, taking FIG. 6c as an example, the second packet includes a preamble field, an SFD field, an OH field, a payload field, and a CRC field. Exemplarily, as shown in FIG. 6c, the second field is carried in the preamble part of the second packet.
再如,以图6d为例,第二字段承载于第二报文的OH字段,如第二字段承载于OH中的最后一个字段,或第二字段承载于OH中的第二个字段,即字段1所在的位置,本申请实施例对此不作限定。For another example, taking Figure 6d as an example, the second field is carried in the OH field of the second message, for example, the second field is carried in the last field in OH, or the second field is carried in the second field in OH, namely The location of field 1 is not limited in this embodiment of the present application.
可选的,第二报文还包括复帧指示(multiframe indicator,MFI)。其中,MFI指示第二报文是复帧。其中,复帧的介绍如下:一个复帧包括多个数据单元,不同数据单元对应不同时隙。不同数据单元携带对应时隙所传输的业务数据。例如,以96个数据单元为例,第1个数据单元携带时隙0所传输的业务数据,第2个数据单元携带时隙1所传输的业务数据,其他以此类推,直至第96个数据单元携带时隙95所传输的业务数据,详见第二报文的负载的相关说明,此处不再赘述。另外,数据单元,也可以描述为基本帧,细粒度时隙(fine-granularity  slot,fgSlot)数据,或时隙数据等。在本申请实施例中,以数据单元为例进行介绍。Optionally, the second packet further includes a multiframe indicator (multiframe indicator, MFI). Wherein, the MFI indicates that the second packet is a multiframe. Wherein, the introduction of the multiframe is as follows: a multiframe includes multiple data units, and different data units correspond to different time slots. Different data units carry service data transmitted in corresponding time slots. For example, taking 96 data units as an example, the first data unit carries the business data transmitted in time slot 0, the second data unit carries the business data transmitted in time slot 1, and so on until the 96th data The unit carries the service data transmitted in the time slot 95. For details, refer to the relevant description of the load of the second message, and details will not be repeated here. In addition, the data unit can also be described as a basic frame, fine-granularity slot (fgSlot) data, or slot data, etc. In this embodiment of the application, a data unit is used as an example for introduction.
示例性的,在图6c或图6d中,MFI可以占用1个字段,即8bits,取值范围是0~19。MFI承载于OH字段中的首个字段。当然,MFI也可以承载于OH字段中的第二个字段,或第三个字段,本申请实施例对此不作限定。Exemplarily, in FIG. 6c or FIG. 6d, MFI may occupy 1 field, that is, 8 bits, and the value range is 0-19. The MFI is carried in the first field in the OH field. Certainly, the MFI may also be carried in the second field or the third field in the OH field, which is not limited in this embodiment of the present application.
应理解,第一字段与第二字段在报文中的位置可以相同。例如,第一字段承载于第一报文的前导码部分,第二字段也承载于第二报文的前导码部分。再如,第一字段承载于第一报文的OH字段,第二字段也承载于第二报文的OH字段。或者,第一字段与第二字段在报文中的位置也可以不同。例如,第一字段承载于第一报文的前导码部分,第二字段承载于第二报文的OH字段。再如,第一字段承载于第一报文的OH字段,第二字段承载于第二报文的前导码部分,本申请实施例对此不作限定。It should be understood that the positions of the first field and the second field in the packet may be the same. For example, the first field is carried in the preamble part of the first packet, and the second field is also carried in the preamble part of the second packet. For another example, the first field is carried in the OH field of the first packet, and the second field is also carried in the OH field of the second packet. Alternatively, the positions of the first field and the second field in the message may also be different. For example, the first field is carried in the preamble part of the first packet, and the second field is carried in the OH field of the second packet. For another example, the first field is carried in the OH field of the first packet, and the second field is carried in the preamble part of the second packet, which is not limited in this embodiment of the present application.
示例性的,第二报文中的负载介绍如下:负载部分包括一个或多个数据单元,如图6e所示,负载部分包括96个数据单元,分别记为fgSlot0~fgSlot95。Exemplarily, the payload in the second message is introduced as follows: the payload part includes one or more data units, as shown in FIG. 6e, the payload part includes 96 data units, respectively marked as fgSlot0˜fgSlot95.
针对不同数据单元而言,数据单元与客户之间可以一一对应。也就是说,一个数据单元对应一个第二客户,不同数据单元对应不同第二客户。例如,针对不同数据单元而言,一个或多个数据单元可以对应同一第二客户。不同数据单元携带不同时隙所传输的业务数据。以表1为例,表1中示出了96个客户号和96个时隙索引,客户号与时隙索引一一对应。不同的客户号表示不同的第二客户。不同的时隙索引标识不同的时隙。For different data units, there can be one-to-one correspondence between data units and clients. That is to say, one data unit corresponds to one second client, and different data units correspond to different second clients. For example, for different data units, one or more data units may correspond to the same second client. Different data units carry service data transmitted in different time slots. Taking Table 1 as an example, Table 1 shows 96 client numbers and 96 time slot indexes, and the client numbers correspond to the time slot indexes one by one. Different customer numbers represent different second customers. Different slot indices identify different slots.
表1Table 1
客户号client number 时隙索引 slot index
fgClient0fgClient0 00
fgClient1 fgClient1 11
fgClient2 fgClient2 22
fgClient3 fgClient3 33
fgClient94 fgClient94 9494
fgClient95 fgClient95 9595
在表1中,时隙索引0对应时隙传输客户号fgClient0的业务数据,时隙索引1对应时隙传输客户号fgClient1的业务数据。其他可以此类推,直至时隙索引95对应时隙传输客户号fgClient95的业务数据。In Table 1, the time slot index 0 corresponds to the time slot for transmitting the service data of the client number fgClient0, and the time slot index 1 corresponds to the time slot for transmitting the service data of the client number fgClient1. Others can be deduced in this way until the time slot corresponding to the time slot index 95 transmits the service data of the client number fgClient95.
结合表1,第二报文的负载部分包括96个数据单元,每个数据单元传输一个时隙所传输的业务数据。具体地,第1个数据单元,即fgSlot0所标识的数据单元,传输时隙索引0对应时隙所传输的业务数据,即客户号fgClient0的业务数据。第2个数据单元,即fgSlot1所标识的数据单元,传输时隙索引1对应时隙所传输的业务数据,即客户号fgClient1的业务数据。其他可以此类推,直至第96个数据单元,即fgSlot95所标识的数据单元,传输时隙索引95对应时隙所传输的业务数据,即客户号fgClient95的业务数据。Referring to Table 1, the payload part of the second message includes 96 data units, and each data unit transmits service data transmitted in one time slot. Specifically, the first data unit, that is, the data unit identified by fgSlot0, transmits the service data transmitted in the time slot corresponding to the time slot index 0, that is, the service data of the client number fgClient0. The second data unit, that is, the data unit identified by fgSlot1, transmits the service data transmitted in the time slot corresponding to the time slot index 1, that is, the service data of the client number fgClient1. Others can be deduced in this way until the 96th data unit, that is, the data unit identified by fgSlot95, the service data transmitted by the time slot corresponding to the transmission time slot index 95, that is, the service data of the client number fgClient95.
或者,针对不同数据单元而言,数据单元与客户之间可以多对一。也就是说,多个数据单元对应一个第二客户。例如,以表2为例,表2中示出了48个客户号和96个时隙索引,一个客户号对应两个时隙索引。Or, for different data units, there may be a many-to-one relationship between the data unit and the client. That is to say, multiple data units correspond to one second client. For example, taking Table 2 as an example, Table 2 shows 48 customer numbers and 96 time slot indexes, and one customer number corresponds to two time slot indexes.
表2Table 2
客户号client number 时隙索引 slot index
fgClient0fgClient0 0、10, 1
fgClient1 fgClient1 2、32, 3
fgClient46fgClient46 92、9392, 93
fgClient47 fgClient47 94、9594,95
在表2中,时隙索引0、1对应时隙传输客户号fgClient0的业务数据,时隙索引2、3对应时隙传输客户号fgClient1的业务数据。其他可以此类推,直至时隙索引94、95对应时隙传输客户号fgClient47的业务数据。In Table 2, time slot indexes 0 and 1 correspond to time slots for transmitting service data of client number fgClient0, and time slot indexes 2 and 3 correspond to time slots for transmitting service data of client number fgClient1. Others can be deduced in this way until the time slot indexes 94 and 95 correspond to the time slots for transmitting the service data of the client number fgClient47.
结合表2,第二报文的负载部分包括96个数据单元,每个数据单元传输一个时隙所传输的业务数据。具体地,第1个数据单元,即fgSlot0所标识的数据单元,传输时隙索引0对应时隙所传输的业务数据,即客户号fgClient0的业务数据。第2个数据单元,即fgSlot1所标识的数据单元,传输时隙索引1对应时隙所传输的业务数据,也是客户号fgClient0的业务数据。其他可以此类推,直至第96个数据单元,即fgSlot95所标识的数据单元,传输时隙索引95对应时隙所传输的业务数据,即客户号fgClient47的业务数据。Referring to Table 2, the payload part of the second message includes 96 data units, and each data unit transmits service data transmitted in one time slot. Specifically, the first data unit, that is, the data unit identified by fgSlot0, transmits the service data transmitted in the time slot corresponding to the time slot index 0, that is, the service data of the client number fgClient0. The second data unit, that is, the data unit identified by fgSlot1, is the service data transmitted in the time slot corresponding to the transmission time slot index 1, which is also the service data of the client number fgClient0. Others can be deduced by analogy until the 96th data unit, that is, the data unit identified by fgSlot95, the service data transmitted in the time slot corresponding to the transmission time slot index 95, that is, the service data of the client number fgClient47.
应理解,表2仅以两个数据单元对应同一第二客户为例进行介绍。当然,也可以三个或更多数据单元对应同一第二客户。并且,对于不同第二客户而言,不同第二客户对应的数据单元数量可以相同,如表1或表2所示。或者,不同第二客户对应的数据单元数量也可以不同。例如,客户号fgClient0标识的第二客户对应一个数据单元,客户号fgClient1标识的第二客户对应两个数据单元,客户号fgClient2标识的第二客户对应三个数据单元,本申请实施例对此不作限定。It should be understood that Table 2 only uses two data units corresponding to the same second client as an example for introduction. Of course, three or more data units may also correspond to the same second client. Moreover, for different second clients, the number of data units corresponding to different second clients may be the same, as shown in Table 1 or Table 2. Alternatively, the number of data units corresponding to different second clients may also be different. For example, the second client identified by the client number fgClient0 corresponds to one data unit, the second client identified by the client number fgClient1 corresponds to two data units, and the second client identified by the client number fgClient2 corresponds to three data units. limited.
针对每个数据单元而言,每个数据单元中包括对应客户的业务数据编码后的码块。每个数据单元中包括至少一个码块。针对同一个数据单元中的码块而言,码块是由同一客户的业务数据编码得到的。示例性的,第一网络设备采用的编码格式可以是64B/65B,也可以是64B/66B和66B/65B。For each data unit, each data unit includes encoded code blocks corresponding to the customer's service data. Each data unit includes at least one code block. For the code blocks in the same data unit, the code blocks are obtained by encoding the service data of the same client. Exemplarily, the encoding format adopted by the first network device may be 64B/65B, or 64B/66B and 66B/65B.
示例性的,以一个数据单元,即第一数据单元为例,对第一网络设备封装第二报文的过程进行介绍:Exemplarily, taking one data unit, that is, the first data unit as an example, the process of encapsulating the second packet by the first network device is introduced:
第一网络设备根据第一信息确定第一数据单元中的第一码块。The first network device determines the first code block in the first data unit according to the first information.
其中,第一信息指示第一数据单元与目标客户之间的对应关系。示例性的,第一信息可以是表1,也可以是表2。在本申请实施例中,以第一信息是表1为例进行介绍。应理解,第一信息,也可以有其他名称,如硬隔离业务的时隙配置表,本申请实施例对此不作限定。Wherein, the first information indicates the corresponding relationship between the first data unit and the target customer. Exemplarily, the first information may be Table 1 or Table 2. In this embodiment of the present application, the first information is Table 1 as an example for introduction. It should be understood that the first information may also have other names, such as a time slot configuration table for hard-isolated services, which is not limited in this embodiment of the present application.
示例性的,第一数据单元可以是表1中fgSlot0所标识的数据单元。相应的,目标客户是客户号fgClient0标识的第二客户。Exemplarily, the first data unit may be the data unit identified by fgSlot0 in Table 1. Correspondingly, the target client is the second client identified by the client number fgClient0.
示例性的,如图7b示,以客户号fgClient0的MAC帧为例,第一网络设备对MAC帧先进行64B/66B编码,形成码块序列4。其中,码块序列4中每个码块是66bit。然后,第一网络设备对码块序列4进行同步头压缩,形成码块序列5。其中,码块序列5中每个码块是65bit。或者,第一网络设备对MAC帧进行64B/65B编码,形成码块序列6。其中,码块序列6中每个码块是65bit。在码块序列5或码块序列6中,每两个相邻的码块经过处理后承载于同一个 数据单元,即fgSlot0所标识的数据单元。Exemplarily, as shown in FIG. 7 b , taking the MAC frame of client number fgClient0 as an example, the first network device performs 64B/66B encoding on the MAC frame to form code block sequence 4 . Wherein, each code block in the code block sequence 4 is 66 bits. Then, the first network device performs synchronization header compression on the code block sequence 4 to form a code block sequence 5 . Wherein, each code block in the code block sequence 5 is 65 bits. Alternatively, the first network device performs 64B/65B encoding on the MAC frame to form code block sequence 6 . Wherein, each code block in the code block sequence 6 is 65 bits. In code block sequence 5 or code block sequence 6, every two adjacent code blocks are processed and carried in the same data unit, that is, the data unit identified by fgSlot0.
对于其他数据单元,第一网络设备仍采用上述处理过程,直至负载部分中的96个数据单元确定完成。如此,第二报文的负载部分包括了2*96+2个码块,具体地,包括一个S码块、多个D码块和一个T码块。其中,S码块和T码块用于确定一个完整报文。D码块用于承载报文中的负荷数据。For other data units, the first network device still adopts the above processing procedure until the determination of 96 data units in the load part is completed. In this way, the payload part of the second message includes 2*96+2 code blocks, specifically, includes one S code block, multiple D code blocks, and one T code block. Wherein, the S code block and the T code block are used to determine a complete message. The D code block is used to carry the payload data in the message.
需要说明的是,第一报文与第二报文在编码后的报文长度相同。比如,以第二报文包括96个数据单元为例,第一报文和第二报文中的码块数量均为194个,且每个码块中的比特数量相同。It should be noted that the lengths of the encoded first packet and the second packet are the same. For example, taking the second message including 96 data units as an example, the number of code blocks in the first message and the second message are both 194, and the number of bits in each code block is the same.
S502、第一网络设备通过第一端口在同一周期中向第二网络设备发送第一报文和第二报文。相应的,第二网络设备通过第二端口在同一周期中接收来自第一网络设备的第一报文和第二报文。S502. The first network device sends the first packet and the second packet to the second network device in the same period through the first port. Correspondingly, the second network device receives the first packet and the second packet from the first network device in the same period through the second port.
其中,以图1为例,在报文从左向右传输的情况下,第二网络设备可以是PE设备106,也可以是P设备。例如,在第一网络设备是PE设备105的情况下,第二网络设备是P设备。再如,在第一网络设备是P设备的情况下,第二网络设备是P设备或PE设备106。在报文从右向左传输的情况下,第二网络设备可以是PE设备105,也可以是P设备。例如,在第一网络设备是PE设备106的情况下,第二网络设备是P设备。再如,在第一网络设备是P设备的情况下,第二网络设备是P设备或PE设备105。在本申请实施例中,以第一网络设备实现为PE设备105,第二网络设备实现为P设备为例进行介绍。Wherein, taking FIG. 1 as an example, in the case that packets are transmitted from left to right, the second network device may be the PE device 106 or the P device. For example, in the case that the first network device is the PE device 105, the second network device is the P device. For another example, in the case that the first network device is a P device, the second network device is a P device or a PE device 106 . In the case that packets are transmitted from right to left, the second network device may be PE device 105 or P device. For example, where the first network device is a PE device 106, the second network device is a P device. For another example, in the case that the first network device is a P device, the second network device is a P device or a PE device 105 . In this embodiment of the present application, the first network device is implemented as a PE device 105 and the second network device is implemented as a P device as an example for introduction.
其中,第一端口是第一网络设备上的端口,如第一端口是第一网络设备上的发送端口。第二端口是第二网络设备上的端口,如第二端口是第二网络设备上的接收端口。在本申请实施例中,第一端口和第二端口均与报文端口不同,且第一端口和第二端口均与时隙化端口不同。第一端口和第二端口均具备如下特性:硬隔离特性,和统计复用特性。由于第一端口和第二端口均具备硬隔离特性,所以,第一端口能够用于发送硬隔离报文,第二端口能够用于接收硬隔离报文。由于第一端口和第二端口均具备统计复用特性,所以,第一端口能够用于发送普通报文,第二端口能够用于接收普通报文。Wherein, the first port is a port on the first network device, for example, the first port is a sending port on the first network device. The second port is a port on the second network device, for example, the second port is a receiving port on the second network device. In the embodiment of the present application, both the first port and the second port are different from the message port, and both the first port and the second port are different from the slotted port. Both the first port and the second port have the following characteristics: hard isolation and statistical multiplexing. Since both the first port and the second port have the feature of hard isolation, the first port can be used to send hard-isolation packets, and the second port can be used to receive hard-isolation packets. Since both the first port and the second port have the feature of statistical multiplexing, the first port can be used to send ordinary packets, and the second port can be used to receive ordinary packets.
其中,S502的实现过程包括如下两种示例:Among them, the implementation process of S502 includes the following two examples:
示例1,如图8中方式1所在的方框所示,S502包括S502a:Example 1, as shown in the box of mode 1 in Figure 8, S502 includes S502a:
S502a、第一网络设备根据第二信息,通过第一端口在第一时间单元上向第二网络设备发送第一报文,以及在第二时间单元上向第二网络设备发送第二报文。相应的,第二网络设备根据第二信息,通过第二端口在第一时间单元上接收来自第一网络设备的第一报文,以及在第二时间单元上接收来自第一网络设备的第二报文。S502a. According to the second information, the first network device sends the first packet to the second network device at the first time unit through the first port, and sends the second packet to the second network device at the second time unit. Correspondingly, the second network device receives the first message from the first network device at the first time unit through the second port according to the second information, and receives the second packet from the first network device at the second time unit. message.
其中,第一时间单元和第二时间单元是同一周期中的时间单元。示例性的,以一个周期包括25时间单元为例。每个时间单元的时长相同,如每个时间单元包括1个时隙。Wherein, the first time unit and the second time unit are time units in the same period. Exemplarily, a cycle includes 25 time units as an example. The duration of each time unit is the same, for example, each time unit includes 1 time slot.
在方式1的同一周期中,用于发送第一报文的时间单元,描述为第一时间单元,用于发送第二报文的时间单元,描述为第二时间单元。对于报文来说,一个时间单元,就意味着一次发送机会。In the same period of mode 1, the time unit for sending the first packet is described as the first time unit, and the time unit for sending the second packet is described as the second time unit. For a message, one time unit means one sending opportunity.
其中,第二信息指示第一时间单元和第二时间单元在周期中的位置,如表3所示:Wherein, the second information indicates the positions of the first time unit and the second time unit in the cycle, as shown in Table 3:
表3table 3
客户号client number 时间单元的数量(单位:个)The number of time units (unit: piece) 时间单元在周期中的序号The sequence number of the time unit in the cycle
0x0001 0x0001 33 1~31~3
0x0002 0x0002 11 44
0x0000 0x0000 11 55
0x00030x0003 55 6~106~10
0x0000 0x0000 22 11~1211~12
0x0004 0x0004 33 13~1513~15
0x0005 0x0005 11 1616
0x0000 0x0000 11 1717
0x00060x0006 55 18~2218~22
0x0000 0x0000 22 23~2423~24
0x0007 0x0007 11 2525
参见表3,表3示出了一个周期的端口带宽配置。以一个周期包括25个时间单元为例,客户号0x0001的业务数据封装而成的报文,占用3个时间单元,即周期中第1个至第3个时间单元。也就是说,客户号0x0001的报文,占用上述周期中的3次发送机会,且是上述周期中的前3次发送机会。客户号0x0002的业务数据封装而成的报文,占用1个时间单元,即周期中第4个时间单元。也就是说,客户号0x0002的报文,占用上述周期中的1次发送机会,且是上述周期中的第4次发送机会。在第三行中,客户号0x0000的业务数据封装而成的第二报文,占用1个时间单元,即周期中第5个时间单元。其中,客户号0x0000是指第二客户,仅支持提供硬隔离业务,具体客户号可以参见表1或表2。也就是说,客户号0x0000的报文,占用上述周期中的1次发送机会,且是上述周期中的第5次发送机会。其他行的客户号可以此类推,不再赘述。Referring to Table 3, Table 3 shows a period of port bandwidth configuration. Taking a cycle including 25 time units as an example, the message encapsulated by the business data of customer number 0x0001 occupies 3 time units, that is, the first to third time units in the cycle. That is to say, the message of the client number 0x0001 occupies 3 sending opportunities in the above-mentioned cycle, and is the first 3 sending opportunities in the above-mentioned cycle. The message encapsulated by the business data of customer number 0x0002 occupies 1 time unit, that is, the 4th time unit in the cycle. That is to say, the message of the client number 0x0002 occupies one sending opportunity in the above-mentioned period, and is the fourth sending opportunity in the above-mentioned period. In the third line, the second message encapsulated by the service data of the customer number 0x0000 occupies 1 time unit, that is, the 5th time unit in the cycle. Among them, the customer number 0x0000 refers to the second customer, which only supports the hard isolation service, and the specific customer number can be referred to Table 1 or Table 2. That is to say, the message of the client number 0x0000 occupies one sending opportunity in the above-mentioned period, and is the fifth sending opportunity in the above-mentioned period. The customer numbers of other lines can be deduced by analogy, and will not be repeated here.
结合表3,以第一报文是第一客户的报文,第二报文包括第二客户的业务数据为例,第一客户的客户号可以是表3中0x0001至0x0007中的一个客户号,如0x0001。相应的,第一时间单元是上述周期中的前3个时间单元。第二客户由表3中0x0000来标识,以表征提供硬隔离业务的一类客户。相应的,第二时间单元是上述周期中粗体部分的时间单元。In combination with Table 3, taking the first message as the message of the first customer and the second message including the business data of the second customer as an example, the customer number of the first customer can be a customer number in 0x0001 to 0x0007 in Table 3 , such as 0x0001. Correspondingly, the first time unit is the first 3 time units in the above period. The second client is identified by 0x0000 in Table 3 to represent a type of client that provides hard isolation services. Correspondingly, the second time unit is the time unit of the bold part in the above cycle.
示例性的,第一网络设备根据表3,在上述周期中第1个至第3个时间单元上,发送客户号0x0001的业务数据封装而成的第一报文,在上述周期中第5、11、12、17、23、24个时间单元上,发送第二客户的业务数据封装而成的第二报文,如图9a所示。Exemplarily, according to Table 3, the first network device sends the first message encapsulated by the business data of the customer number 0x0001 in the first to third time units in the above-mentioned cycle, and in the fifth and third time units in the above-mentioned cycle At 11, 12, 17, 23, and 24 time units, send the second packet encapsulated by the service data of the second client, as shown in FIG. 9a .
应理解,表3中,仅以硬隔离业务和每个普通业务在周期中的时间单元位置固定为例进行介绍。当然,作为另一种可能的实现方式,在表3中,仅硬隔离业务的时间单元位置固定,普通业务中每个普通业务的时间单元位置不固定。例如,硬隔离业务占用上述周期中第5、11、12、17、23、24个时间单元。普通业务占用上述周期中第1至4、第6至10、第13至16、第18至第22、第25个时间单元,但普通业务中每个普通业务具体占哪一(些)时间单元未作限定。It should be understood that in Table 3, only the hard-isolated service and each common service have a fixed time unit position in the cycle as an example for introduction. Of course, as another possible implementation manner, in Table 3, only the time unit position of the hard-isolated service is fixed, and the time unit position of each common service in the common service is not fixed. For example, the hard isolation service occupies the 5th, 11th, 12th, 17th, 23rd, and 24th time units in the above cycle. Ordinary business occupies the 1st to 4th, 6th to 10th, 13th to 16th, 18th to 22nd, and 25th time units in the above cycle, but which time unit(s) each ordinary business occupies in the ordinary business Not limited.
此种情况下,仍以第一时间单元是上述周期中的前3个时间单元,第一报文是客户号0x0001的报文为例,若仅客户号0x0001的报文封装完成,其他客户号的报文未封装完成,则第一网络设备在第一时间单元上发送客户号0x0001的报文。反之,若客户号0x0001和客户号0x0002的报文封装完成,则第一网络设备按照预设规则在第一时间单元上发送报文。例如,预设规则可以是业务的优先级,且以优先级从高到低的顺序来确定发送哪一客户的报文。例 如,0x0001的业务优先级高于0x0002的业务优先级,则第一网络设备按照预设规则在第一时间单元上发送客户号0x0001的报文。再如,预设规则可以是客户号的排列顺序,且以客户号从前到后的顺序来确定发送哪一客户的报文。例如,客户号0x0001排在客户号0x0002之前,则第一网络设备按照预设规则在第一时间单元上发送客户号0x0001的报文。应理解,以上仅以优先级或客户号排序为例进行介绍,预设规则也可以有其他实现形式,本申请实施例对此不作限定。In this case, the first time unit is still the first 3 time units in the above cycle, and the first message is the message of customer number 0x0001. If only the package of customer number 0x0001 is completed, other customer numbers If the encapsulation of the packet is not completed, the first network device sends the packet with the client number 0x0001 in the first time unit. Conversely, if the packet encapsulation of the client ID 0x0001 and the client ID 0x0002 is completed, the first network device sends the packet in the first time unit according to the preset rule. For example, the preset rule may be the priority of the service, and determine which customer's message to send in order of priority from high to low. For example, if the service priority of 0x0001 is higher than the service priority of 0x0002, then the first network device sends the message of the client number 0x0001 in the first time unit according to the preset rule. For another example, the preset rule may be the sequence of customer numbers, and the order of the customer numbers from front to back is used to determine which customer's message to send. For example, if the client number 0x0001 is ranked before the client number 0x0002, the first network device sends the message of the client number 0x0001 in the first time unit according to the preset rule. It should be understood that the above is only an introduction by taking priority or customer number sorting as an example, and the preset rules may also have other implementation forms, which are not limited in this embodiment of the present application.
示例2,如图8中方式2所在的方框所示,S502包括S502b:Example 2, as shown in the box of mode 2 in Figure 8, S502 includes S502b:
S502b、第一网络设备根据第二信息和第三信息,通过第一端口在未占用的第一时间单元上向第二网络设备发送第一报文,以及在未占用的第二时间单元上向第二网络设备发送第二报文。相应的,第二网络设备根据第二信息和第三信息,通过第二端口在未占用的第一时间单元上接收来自第一网络设备的第一报文,以及在未占用的第二时间单元上接收来自第一网络设备的第二报文。S502b. According to the second information and the third information, the first network device sends the first packet to the second network device through the first port in the unoccupied first time unit, and sends the first packet to the second network device in the unoccupied second time unit. The second network device sends the second packet. Correspondingly, the second network device receives the first message from the first network device at the unoccupied first time unit through the second port according to the second information and the third information, and receives the first message from the first network device at the unoccupied second time unit Receive the second packet from the first network device.
其中,第一时间单元和第二时间单元可以参见S502a的说明,此处不再赘述。For the first time unit and the second time unit, refer to the description of S502a, which will not be repeated here.
其中,第二信息指示周期中第一时间单元和第二时间单元的配置数量,如表4-1所示:Among them, the second information indicates the configuration quantity of the first time unit and the second time unit in the cycle, as shown in Table 4-1:
表4-1Table 4-1
客户号client number 时间单元的配置数量(单位:个)The number of configured time units (unit: pcs)
0x00010x0001 33
0x0002 0x0002 11
0x00000x0000 66
0x00030x0003 55
0x0004 0x0004 33
0x0005 0x0005 11
0x00060x0006 55
0x0007 0x0007 11
参见表4-1,表4-1示出了一个周期的端口带宽配置。以一个周期包括25个时间单元为例,客户号0x0001的业务数据封装而成的报文,占用3个时间单元,但未指示这3个时间单元在周期中的位置。也就是说,客户号0x0001的报文,在上述周期中有3次发送机会。客户号0x0002的业务数据封装而成的报文,占用1个时间单元,但未指示该时间单元在周期中的位置。也就是说,客户号0x0002的报文,在上述周期中有1次发送机会。在第三行中,客户号0x0000的业务数据封装而成的第二报文,占用6个时间单元,但未指示该时间单元在周期中的位置。也就是说,客户号0x0000的报文,在上述周期中有6次发送机会。其他客户号可以此类推,不再赘述。Refer to Table 4-1, Table 4-1 shows a period of port bandwidth configuration. Taking a cycle including 25 time units as an example, the message encapsulated by the business data of the customer number 0x0001 occupies 3 time units, but does not indicate the position of these 3 time units in the cycle. That is to say, the message of client number 0x0001 has 3 sending opportunities in the above cycle. The packet encapsulated by the business data of customer number 0x0002 occupies one time unit, but does not indicate the position of this time unit in the cycle. That is to say, the message of the client number 0x0002 has one sending opportunity in the above period. In the third line, the second message encapsulated by the service data of the customer number 0x0000 occupies 6 time units, but does not indicate the position of the time unit in the cycle. That is to say, the message of client number 0x0000 has 6 sending opportunities in the above cycle. Other customer numbers can be deduced by analogy, so I won’t repeat them here.
其中,第三信息指示周期中第一时间单元和第二时间单元的未占用数量,如表4-2所示:Among them, the third information indicates the unoccupied quantity of the first time unit and the second time unit in the cycle, as shown in Table 4-2:
表4-2Table 4-2
客户号client number 时间单元的未占用数量(单位:个)Unoccupied number of time units (unit: piece)
0x00010x0001 22
0x0002 0x0002 00
0x00000x0000 55
0x00030x0003 44
0x00040x0004 22
0x0005 0x0005 00
0x00060x0006 44
0x0007 0x0007 00
参见表4-2,以一个周期包括25个时间单元为例,客户号0x0001的业务数据封装而成的第一报文,未占用的时间单元有2个。也就是说,客户号0x0001的报文,在上述周期中还有2次发送机会。客户号0x0002的业务数据封装而成的报文,未占用的时间单元有0个。也就是说,客户号0x0002的报文,在上述周期中无发送机会。客户号0x0000的业务数据封装而成的第二报文,未占用的时间单元有5个。也就是说,客户号0x0000的报文,在上述周期中还有5次发送机会。其他客户号可以此类推,不再赘述。Refer to Table 4-2, taking a cycle including 25 time units as an example, the first message encapsulated by the business data of customer number 0x0001 has 2 unoccupied time units. That is to say, the message of client number 0x0001 still has 2 sending opportunities in the above-mentioned cycle. There are 0 unoccupied time units in the packet encapsulated by the business data of customer number 0x0002. That is to say, there is no opportunity to send the message of the client number 0x0002 in the above cycle. There are 5 unoccupied time units in the second message encapsulated by the business data of the customer number 0x0000. That is to say, there are still 5 sending opportunities for the message of client number 0x0000 in the above period. Other customer numbers can be deduced by analogy, so I won’t repeat them here.
结合表4-1,以第一报文是第一客户的报文,第二报文包括第二客户的业务数据为例,第一客户的客户号仍是0x0001。相应的,第一时间单元的配置数量是3个。第二客户由表4-1中0x0000来标识,以表征提供硬隔离业务的一类客户。相应的,第二时间单元的配置数量是6个。结合表4-2,第一时间单元的未占用数量是2个,第二时间单元的未占用数量是5个。Combining with Table 4-1, taking the first message as the message of the first customer and the second message as an example including the business data of the second customer, the customer number of the first customer is still 0x0001. Correspondingly, the configuration quantity of the first time unit is 3. The second client is identified by 0x0000 in Table 4-1 to represent a type of client that provides hard isolation services. Correspondingly, the configuration quantity of the second time unit is 6. Combined with Table 4-2, the unoccupied quantity in the first time unit is 2, and the unoccupied quantity in the second time unit is 5.
其中,硬隔离业务在时延要求上较高,为了保证硬隔离业务的低时延,第一网络设备优先发送硬隔离业务的报文。Among them, the hard-isolated service has a higher requirement on time delay. In order to ensure the low time-delay of the hard-isolated service, the first network device preferentially sends the packets of the hard-isolated service.
例如,在第二报文与第一报文的生成时间相同的情况下,第一网络设备先发送第二报文,再发送第一报文。也就是说,第二报文所在的第二时间单元早于第一报文所在的第一时间单元。具体地,在时间单元1上,若客户号0x0000和客户号0x0001的报文已封装完成,由于客户号0x0000的报文属于硬隔离报文,则第一网络设备先在时间单元1上发送了客户号0x0000的报文,以保证硬隔离业务的时延要求。其中,时间单元1在周期中的位置如图9b中的某一虚线方框所示。对于已封装完成的客户号0x0001的报文而言,第一网络设备在时间单元1之后的一个时间单元,如时间单元2上发送该报文。相应的,时间单元1即为第二时间单元,时间单元2即为第一时间单元。另外,第一网络设备更新表4-2,更新后的表4-2指示客户号0x0000的报文未占用的时间单元还有4个,即客户号0x0000的报文还有4次发送机会。更新后的表4-2指示客户号0x0001的报文未占用的时间单元还有1个,即客户号0x0001的报文还有1次发送机会。For example, in the case that the generation time of the second packet is the same as that of the first packet, the first network device sends the second packet first, and then sends the first packet. That is to say, the second time unit where the second packet is located is earlier than the first time unit where the first packet is located. Specifically, in time unit 1, if the packets of client ID 0x0000 and client ID 0x0001 have been encapsulated, since the packet of client ID 0x0000 is a hard-isolated packet, the first network device first sends Packet with client number 0x0000 to ensure the delay requirement of the hard isolation service. Wherein, the position of the time unit 1 in the cycle is shown by a dotted box in FIG. 9b. For the packet with the client number 0x0001 that has been encapsulated, the first network device sends the packet at a time unit after time unit 1, such as time unit 2. Correspondingly, time unit 1 is the second time unit, and time unit 2 is the first time unit. In addition, the first network device updates Table 4-2, and the updated Table 4-2 indicates that there are still 4 unoccupied time units for the message of client number 0x0000, that is, there are still 4 sending opportunities for the message of client number 0x0000. The updated Table 4-2 indicates that there is still one unoccupied time unit for the message of client number 0x0001, that is, there is still one sending opportunity for the message of client number 0x0001.
再如,在第二报文的生成时间早于第一报文的生成时间的情况下,第一网络设备也先发送第二报文,再发送第一报文。也就是说,第二报文所在的第二时间单元早于第一报文所在的第一时间单元。具体地,在时间单元1上,若客户号0x0000的报文已封装完成,但客户号0x0001的报文未封装完成,则第一网络设备先在时间单元1上发送了客户号0x0000的报文,以保证硬隔离业务的时延要求。然后,第一网络设备在时间单元1之后的一个时间单元,如时间单元2上发送该报文。其他描述可以参见上一段的介绍,此处不再赘述。For another example, when the generation time of the second packet is earlier than the generation time of the first packet, the first network device also sends the second packet first, and then sends the first packet. That is to say, the second time unit where the second packet is located is earlier than the first time unit where the first packet is located. Specifically, in time unit 1, if the packet of client number 0x0000 has been encapsulated but the packet of client number 0x0001 has not been encapsulated, the first network device first sends the packet of client number 0x0000 in time unit 1 , to ensure the delay requirements of hard-isolated services. Then, the first network device sends the packet at a time unit after time unit 1, such as time unit 2. For other descriptions, please refer to the introduction in the previous paragraph, and will not repeat them here.
又如,在第二报文的生成时间晚于第一报文的生成时间的情况下,第一网络设备先发送第一报文,再发送第二报文。也就是说,第二报文所在的第二时间单元晚于第一报文所在的第一时间单元。具体地,仍以时间单元1为例,若客户号0x0000的报文未封装完成,但客户号0x0001的报文已封装完成,则第一网络设备先在时间单元1上发送了客户号0x0001的报文。待客户号0x0000的报文封装完成之后,第一网络设备在时间单元1之后的一个时间单元,如时间单元2上发送客户号0x0000的报文。相应的,时间单元1即为第一时间单元,时 间单元2即为第二时间单元。另外,表4-2的更新可以参见上一段的介绍,此处不再赘述。For another example, when the generation time of the second packet is later than the generation time of the first packet, the first network device sends the first packet first, and then sends the second packet. That is to say, the second time unit where the second packet is located is later than the first time unit where the first packet is located. Specifically, still taking time unit 1 as an example, if the packet of client number 0x0000 has not been encapsulated, but the packet of client number 0x0001 has been encapsulated, then the first network device first sends the packet of client number 0x0001 in time unit 1. message. After the encapsulation of the message with the client number 0x0000 is completed, the first network device sends the message with the client number 0x0000 in a time unit after the time unit 1, such as time unit 2. Correspondingly, time unit 1 is the first time unit, and time unit 2 is the second time unit. In addition, for the update of Table 4-2, please refer to the introduction in the previous paragraph, which will not be repeated here.
需要说明的是,S502a和S502b中的第二信息是基于客户的业务带宽确定的。第二信息用于在端口级别对普通业务和硬隔离业务进行带宽分配,比如25Gbps的端口,划分粒度为1Gbps。第一网络设备根据硬隔离业务与普通业务的带宽比例进行带宽配置,如分给硬隔离业务的带宽为2Gbps,分给普通业务的带宽为23Gbps。该种分配方式在第二信息中以时间单元(或称为调度机会)的等价形式进行指示。示例性的,23Gbps的带宽等价于被分配的时间单元是23个,即发送机会是23次。2Gbps的带宽等价于被分配的时间单元是2个,即发送机会是2次。It should be noted that the second information in S502a and S502b is determined based on the customer's service bandwidth. The second information is used to allocate bandwidth for common services and hard-isolated services at the port level, for example, for a 25Gbps port, the division granularity is 1Gbps. The first network device configures the bandwidth according to the bandwidth ratio of the hard-isolation service and the common service. For example, the bandwidth allocated to the hard-isolated service is 2 Gbps, and the bandwidth allocated to the common service is 23 Gbps. This allocation mode is indicated in the second information in an equivalent form of a time unit (or called a scheduling opportunity). Exemplarily, a bandwidth of 23 Gbps is equivalent to 23 allocated time units, that is, 23 sending opportunities. The bandwidth of 2Gbps is equivalent to 2 allocated time units, that is, 2 sending opportunities.
应理解,第二信息,也可以有其他名称,如端口带宽配置表,本申请实施例对此不作限定。It should be understood that the second information may also have another name, such as a port bandwidth configuration table, which is not limited in this embodiment of the present application.
如图10所示,在上述方式1和方式2中,作为一种可能的实现方式,针对普通业务而言,本申请实施例还包括S503和S504:As shown in Fig. 10, in the above-mentioned mode 1 and mode 2, as a possible implementation mode, for ordinary services, this embodiment of the present application also includes S503 and S504:
S503、第一网络设备确定第三报文。S503. The first network device determines the third packet.
其中,第三报文包括普通业务的数据。第三报文是第三客户的报文,第三客户的业务数据属于普通业务的数据。也就是说,第三报文的类型与第一报文的类型相同,即第三报文也属于普通报文。第三报文在隔离度上没有要求。Wherein, the third packet includes data of common services. The third message is a message of the third customer, and the service data of the third customer belongs to common service data. That is to say, the type of the third message is the same as that of the first message, that is, the third message also belongs to a common message. The third message has no requirements on isolation.
示例性的,仍以表3为例,第一客户的客户号是0x0001,客户号0x0001的业务数据封装后的报文是第一报文。第三客户的客户号是0x0002,客户号0x0002的业务数据封装后的报文是第三报文。Exemplarily, still taking Table 3 as an example, the customer number of the first customer is 0x0001, and the packet encapsulated with the service data of the customer number 0x0001 is the first packet. The customer number of the third customer is 0x0002, and the packaged packet of the service data of the customer number 0x0002 is the third packet.
S504、第一网络设备通过第一端口在周期中向第二网络设备发送第三报文。相应的,第二网络设备通过第二端口在周期中接收来自第一网络设备的第三报文。S504. The first network device sends the third packet to the second network device in a period through the first port. Correspondingly, the second network device receives the third packet from the first network device in a period through the second port.
其中,S504中的第一端口与S502中的第一端口是同一端口,S504中的第二端口与S502中的第二端口是同一端口,S504中的周期与S502中的周期是同一周期,具体可以参见S502的介绍,此处不再赘述。Wherein, the first port in S504 is the same port as the first port in S502, the second port in S504 is the same port as the second port in S502, the cycle in S504 is the same cycle as the cycle in S502, specifically Refer to the introduction of S502, which will not be repeated here.
其中,第三报文通过第三时间单元传输。第三时间单元被配置为传输第一客户的报文,且第三时间单元处于空闲状态。Wherein, the third packet is transmitted by the third time unit. The third time unit is configured to transmit the message of the first client, and the third time unit is in an idle state.
其中,第一客户的报文包括第一报文。Wherein, the message of the first client includes the first message.
例如,以表3为例,第三时间单元是上述周期中第2个时间单元。基于表3,第2个时间单元被配置为发送客户号0x0001的报文,但客户号0x0001的报文未封装完成,且客户号0x0002的报文已封装完成,为了提高资源利用率,第一网络设备在上述周期中第2个时间单元上发送0x0002的报文。For example, taking Table 3 as an example, the third time unit is the second time unit in the above cycle. Based on Table 3, the second time unit is configured to send the packet of customer number 0x0001, but the packet of customer number 0x0001 has not been encapsulated, and the packet of customer number 0x0002 has been encapsulated. In order to improve resource utilization, the first The network device sends a message of 0x0002 at the second time unit in the above cycle.
再如,以表4-1为例,第三时间单元仍是上述周期中第2个时间单元。硬隔离业务的报文未封装完成,此种情况下,第一网络设备在第三时间单元上发送普通报文。第一网络设备按照预设规则来配置第三时间单元用于发送哪一客户的报文。例如,预设规则可以是业务的优先级,且以优先级从高到低的顺序来配置。例如,0x0001的业务优先级高于0x0002的业务优先级,则第三时间单元被配置为发送0x0001的报文。再如,预设规则可以是客户号的排列顺序,且以客户号从前到后的顺序来配置。例如,客户号0x0001排在客户号0x0002之前,则第三时间单元被配置为发送0x0001的报文。但客户号0x0001的报文未封装完成,且客户号0x0002的报文已封装完成,为了提高资源利用率,第一网络设备在上述周期中第2个时间 单元上发送0x0002的报文。For another example, taking Table 4-1 as an example, the third time unit is still the second time unit in the above cycle. The packet of the hard isolation service has not been encapsulated. In this case, the first network device sends the normal packet in the third time unit. The first network device configures which client's message the third time unit is used to send according to a preset rule. For example, the preset rule may be the priority of the service, which is configured in descending order of priority. For example, if the service priority of 0x0001 is higher than the service priority of 0x0002, the third time unit is configured to send the message of 0x0001. For another example, the preset rule may be the arrangement order of customer numbers, which is configured in the order of customer numbers from front to back. For example, if the customer number 0x0001 is ranked before the customer number 0x0002, then the third time unit is configured to send a message of 0x0001. However, the packet of client ID 0x0001 has not been encapsulated, and the packet of client ID 0x0002 has been encapsulated. In order to improve resource utilization, the first network device sends the packet of 0x0002 in the second time unit of the above cycle.
也就是说,第一网络设备向第二网络设备发送普通报文的过程中,能够实现统计复用的特性,以提高资源利用率。That is to say, when the first network device sends a common message to the second network device, the characteristic of statistical multiplexing can be realized, so as to improve resource utilization.
对于第二网络设备而言,第二网络设备执行S502之后,还执行S505:For the second network device, after the second network device executes S502, it also executes S505:
S505、第二网络设备根据第一报文的类型,转发第一报文中的业务数据,以及根据第二报文的类型,转发第二报文中的业务数据。S505. The second network device forwards the service data in the first packet according to the type of the first packet, and forwards the service data in the second packet according to the type of the second packet.
其中,第一报文以及第一报文的类型可以参见S501的介绍,第二报文以及第二报文的类型可以参见S501的介绍,此处不再赘述。For the first message and the type of the first message, refer to the introduction of S501, and for the second message and the type of the second message, refer to the introduction of S501, which will not be repeated here.
例如,针对某一报文,若该报文与第一报文在报文类型上相同,则第二网络设备执行步骤1和步骤2:For example, for a certain message, if the message is of the same message type as the first message, the second network device performs steps 1 and 2:
步骤1、第二网络设备根据第一报文的类型,确定存储转发方式。 Step 1. The second network device determines a store-and-forward mode according to the type of the first packet.
示例性的,若某一报文中携带第一字段,则该报文是第一报文,即属于普通报文,需采用存储转发方式来转发。存储转发可以参见名词解释部分的介绍,此处不再赘述。Exemplarily, if a message carries the first field, the message is the first message, that is, it belongs to a common message, and needs to be forwarded in a store-and-forward manner. For storage and forwarding, please refer to the introduction in the explanation of terms, so I won’t go into details here.
步骤2、第二网络设备以存储转发方式转发第一报文中的业务数据。 Step 2. The second network device forwards the service data in the first packet in a store-and-forward manner.
示例性的,第二网络设备基于第一报文中的第一标识,查询目的地址,然后,根据查询到的目的地址转发第一报文中的业务数据。Exemplarily, the second network device queries the destination address based on the first identifier in the first packet, and then forwards the service data in the first packet according to the queried destination address.
应理解,第三报文的类型与第一报文的类型相同,所以,第二网络设备执行S504之后,第二网络设备可以执行上述步骤1和步骤2,以转发第三报文。It should be understood that the type of the third packet is the same as that of the first packet. Therefore, after the second network device performs S504, the second network device may perform the above steps 1 and 2 to forward the third packet.
再如,针对某一报文,若该报文与第二报文在报文类型上相同,则第二网络设备执行步骤3和步骤4:For another example, for a message, if the message type is the same as that of the second message, the second network device performs steps 3 and 4:
步骤3、第二网络设备根据第二报文的类型,确定通道转发方式。 Step 3. The second network device determines the channel forwarding mode according to the type of the second packet.
示例性的,若某一报文中携带第二字段,则该报文是第二报文,即属于硬隔离报文,需采用通道转发方式来转发。通道转发可以参见名词解释部分的介绍,此处不再赘述。Exemplarily, if a packet carries the second field, the packet is a second packet, that is, a hard-isolated packet, and needs to be forwarded in a channel forwarding manner. For channel forwarding, please refer to the introduction in the explanation of terms, so I won’t go into details here.
步骤4、第二网络设备以通道转发方式转发至少一个第二客户中每个第二客户的业务数据。Step 4: The second network device forwards the service data of each second customer in the at least one second customer in a channel forwarding manner.
其中,第二报文中的数据包括至少一个第二客户的业务数据。Wherein, the data in the second message includes service data of at least one second client.
示例性的,第二网络设备根据第一信息,确定第二报文中每个第二客户业务数据的码块。然后,根据出口时隙表转发每个第二客户业务数据的码块。其中,出口时隙表指示每个第二客户的出端口和时隙位置。Exemplarily, the second network device determines a code block of each second client service data in the second packet according to the first information. Then, each code block of the second client service data is forwarded according to the egress time slot table. Wherein, the egress time slot table indicates the egress port and time slot position of each second client.
应理解,在本申请实施例中,不限定报文的数量,如第一报文的数量可以是一个,也可以是多个。第二报文的数量可以是一个,也可以是多个。第三报文的数量可以是一个,也可以是多个。It should be understood that in this embodiment of the present application, the number of packets is not limited, for example, the number of first packets may be one or multiple. The quantity of the second message may be one or more. The quantity of the third message may be one or more.
需要说明的是,业务的类型不同,则对应的客户也就不一样。第一报文对应的客户描述为第一客户,第二报文对应的客户描述为第二客户,第一客户与第二客户是不同的客户。应理解,第一客户、第二客户也可以有其他名称,本申请实施例对此不作限定。It should be noted that the types of business are different, and the corresponding customers are also different. The client corresponding to the first packet is described as a first client, the client corresponding to the second packet is described as a second client, and the first client and the second client are different clients. It should be understood that the first client and the second client may also have other names, which are not limited in this embodiment of the present application.
上述主要从各个网元之间交互的角度对本申请实施例提供的方案进行了介绍。相应的,本申请实施例还提供了通信装置,该通信装置可以为上述方法实施例中的网元,或者包含上述网元的装置,或者为可用于网元的部件。可以理解的是,该通信装置为了实现上述功能,其包含了执行各个功能相应的硬件结构和/或软件模块。本领域技术人员应该很容易意识到, 结合本文中所公开的实施例描述的各示例的单元及算法步骤,本申请能够以硬件或硬件和计算机软件的结合形式来实现。某个功能究竟以硬件还是计算机软件驱动硬件的方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本申请的范围。The foregoing mainly introduces the solution provided by the embodiment of the present application from the perspective of interaction between various network elements. Correspondingly, the embodiment of the present application further provides a communication device, and the communication device may be the network element in the foregoing method embodiment, or a device including the foregoing network element, or may be a component applicable to the network element. It can be understood that, in order to realize the above functions, the communication device includes hardware structures and/or software modules corresponding to each function. Those skilled in the art should easily realize that the present application can be implemented in the form of hardware or a combination of hardware and computer software in combination with the units and algorithm steps of each example described in the embodiments disclosed herein. Whether a certain function is executed by hardware or computer software drives hardware depends on the specific application and design constraints of the technical solution. Skilled artisans may use different methods to implement the described functions for each specific application, but such implementation should not be regarded as exceeding the scope of the present application.
示例性的,图11示出了一种通信装置1100的结构示意图。该通信装置1100包括处理单元1101、发送单元1102和接收单元1103。Exemplarily, FIG. 11 shows a schematic structural diagram of a communication device 1100 . The communication device 1100 includes a processing unit 1101 , a sending unit 1102 and a receiving unit 1103 .
一种可能的示例中,以通信装置1100为第一网络设备为例,处理单元1101用于支持第一网络设备执行图5中的S501,和/或本申请实施例中第一网络设备需要执行的其他处理操作。接收单元1103用于支持第一网络设备需要执行的其他接收操作。发送单元1102用于支持第一网络设备执行图5中的S502,和/或本申请实施例中第一网络设备需要执行的其他发送操作。In a possible example, taking the communication device 1100 as the first network device as an example, the processing unit 1101 is configured to support the first network device to execute S501 in FIG. 5 , and/or in this embodiment of the application, the first network device needs to execute other processing operations. The receiving unit 1103 is configured to support other receiving operations that need to be performed by the first network device. The sending unit 1102 is configured to support the first network device to perform S502 in FIG. 5 , and/or other sending operations that the first network device needs to perform in the embodiment of the present application.
再一种可能的示例中,以通信装置1100为第二网络设备为例,处理单元1101用于支持第二网络设备执行图5中的S505,和/或本申请实施例中第二网络设备需要执行的其他处理操作。接收单元1103用于支持第二网络设备执行图5中的S502,和/或本申请实施例中第二网络设备需要执行的其他接收操作。发送单元1102用于支持第二网络设备执行图5中的S505,和/或本申请实施例中第二网络设备需要执行的其他发送操作。In another possible example, taking the communication device 1100 as the second network device as an example, the processing unit 1101 is used to support the second network device to execute S505 in FIG. Other processing operations performed. The receiving unit 1103 is configured to support the second network device to perform S502 in FIG. 5 , and/or other receiving operations that the second network device needs to perform in the embodiment of the present application. The sending unit 1102 is configured to support the second network device to perform S505 in FIG. 5 and/or other sending operations that the second network device needs to perform in the embodiment of the present application.
可选的,该通信装置1100还可以包括存储单元1104,用于存储通信装置的程序代码和数据,数据可以包括不限于原始数据或者中间数据等。Optionally, the communication device 1100 may further include a storage unit 1104 for storing program codes and data of the communication device, and the data may include but not limited to original data or intermediate data.
其中,处理单元1101可以是处理器或控制器,例如可以是CPU,通用处理器,专用集成电路(application specific integrated circuit,ASIC),现场可编程逻辑门阵列(field programmable gate array,FPGA)或者其他可编程逻辑器件、晶体管逻辑器件、硬件部件或者其任意组合。其可以实现或执行结合本申请公开内容所描述的各种示例性的逻辑方框,模块和电路。处理器也可以是实现计算功能的组合,例如包含一个或多个微处理器组合,DSP和微处理器的组合等等。Wherein, the processing unit 1101 may be a processor or a controller, such as a CPU, a general-purpose processor, an application specific integrated circuit (ASIC), a field programmable gate array (field programmable gate array, FPGA) or other Programmable logic devices, transistor logic devices, hardware components, or any combination thereof. It can implement or execute the various illustrative logical blocks, modules and circuits described in connection with the present disclosure. The processor can also be a combination of computing functions, for example, a combination of one or more microprocessors, a combination of DSP and a microprocessor, and so on.
发送单元1102可以是通信接口、发送器或发送电路等,其中,该通信接口是统称,在具体实现中,该通信接口可以包括多个接口,例如可以包括:第一网络设备上的第一接口,或第二网络设备与其他设备之间的接口和/或其他接口。The sending unit 1102 may be a communication interface, a transmitter, or a sending circuit, etc., where the communication interface is collectively referred to as, in a specific implementation, the communication interface may include multiple interfaces, for example, may include: a first interface on the first network device , or an interface and/or other interfaces between the second network device and other devices.
接收单元1103可以是通信接口、接收器或接收电路等,其中,该通信接口是统称,在具体实现中,该通信接口可以包括多个接口,例如可以包括:第二网络设备上的第二接口,或第一网络设备与其他设备之间的接口和/或其他接口。The receiving unit 1103 may be a communication interface, a receiver or a receiving circuit, etc., wherein the communication interface is collectively referred to as, in a specific implementation, the communication interface may include multiple interfaces, for example, may include: a second interface on the second network device , or an interface and/or other interfaces between the first network device and other devices.
发送单元1102和接收单元1103可以是物理上或者逻辑上实现为同一个单元。The sending unit 1102 and the receiving unit 1103 may be physically or logically implemented as the same unit.
存储单元1104可以是存储器。The storage unit 1104 may be a memory.
当处理单元1101为处理器,发送单元1102和接收单元1103为通信接口,存储单元1104为存储器时,本申请实施例所涉及的通信装置可以为图12所示。When the processing unit 1101 is a processor, the sending unit 1102 and the receiving unit 1103 are communication interfaces, and the storage unit 1104 is a memory, the communication device involved in this embodiment of the present application may be as shown in FIG. 12 .
参阅图12所示,该通信装置包括:处理器1201、通信接口1202、存储器1203。可选的,通信装置还可以包括总线1204。其中,通信接口1202、处理器1201以及存储器1203可以通过总线1204相互连接;总线1204可以是外设部件互连标准(peripheral component interconnect,PCI)总线或扩展工业标准结构(extended industry standard architecture,EISA)总线等。所述总线1204可以分为地址总线、数据总线、控制总线等。为便于表示,图12中仅用一条粗线 表示,但并不表示仅有一根总线或一种类型的总线。Referring to FIG. 12 , the communication device includes: a processor 1201 , a communication interface 1202 , and a memory 1203 . Optionally, the communication device may further include a bus 1204 . Wherein, the communication interface 1202, the processor 1201 and the memory 1203 can be connected to each other through the bus 1204; the bus 1204 can be a peripheral component interconnect standard (peripheral component interconnect, PCI) bus or an extended industry standard architecture (extended industry standard architecture, EISA) bus etc. The bus 1204 can be divided into address bus, data bus, control bus and so on. For ease of representation, only one thick line is used in Fig. 12, but it does not mean that there is only one bus or one type of bus.
可选的,本申请实施例还提供一种携带计算机指令的计算机程序产品,当该计算机指令在计算机上运行时,使得计算机执行上述实施例所介绍的方法。Optionally, the embodiments of the present application further provide a computer program product carrying computer instructions, and when the computer instructions are run on the computer, the computer is made to execute the method described in the foregoing embodiments.
可选的,本申请实施例还提供一种计算机可读存储介质,所述计算机可读存储介质存储计算机指令,当该计算机指令在计算机上运行时,使得计算机执行上述实施例所介绍的方法。Optionally, an embodiment of the present application further provides a computer-readable storage medium, where the computer-readable storage medium stores computer instructions, and when the computer instructions are run on a computer, the computer executes the method described in the above-mentioned embodiments.
可选的,本申请实施例还提供一种芯片,包括:处理电路和收发电路,处理电路和收发电路用于实现上述实施例所介绍的方法。其中,处理电路用于执行相应方法中的处理动作,收发电路用于执行相应方法中的接收/发送的动作。Optionally, an embodiment of the present application further provides a chip, including: a processing circuit and a transceiver circuit, and the processing circuit and the transceiver circuit are used to implement the methods described in the foregoing embodiments. Wherein, the processing circuit is used to execute the processing action in the corresponding method, and the transceiver circuit is used to execute the receiving/sending action in the corresponding method.
在上述实施例中,可以全部或部分地通过软件、硬件、固件或者其任意组合来实现。当使用软件实现时,可以全部或部分地以计算机程序产品的形式实现。所述计算机程序产品包括一个或多个计算机指令。在计算机上加载和执行所述计算机程序指令时,全部或部分地产生按照本申请实施例所述的流程或功能。所述计算机可以是通用计算机、专用计算机、计算机网络、或者其他可编程装置。所述计算机指令可以存储在计算机可读存储介质中,或者从一个计算机可读存储介质向另一个计算机可读存储介质传输,例如,所述计算机指令可以从一个网站站点、计算机、服务器或数据中心通过有线(例如同轴电缆、光纤、数字用户线(digital subscriber line,DSL))或无线(例如红外、无线、微波等)方式向另一个网站站点、计算机、服务器或数据中心进行传输。所述计算机可读存储介质可以是计算机能够存取的任何可用介质或者是包括一个或多个可用介质集成的服务器、数据中心等数据存储设备。所述可用介质可以是磁性介质(例如,软盘、硬盘、磁带)、光介质(例如,数字视频光盘(digital video disc,DVD))、或者半导体介质(例如固态硬盘(solid state drive,SSD))等。In the above embodiments, all or part of them may be implemented by software, hardware, firmware or any combination thereof. When implemented using software, it may be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on the computer, the processes or functions according to the embodiments of the present application will be generated in whole or in part. The computer can be a general purpose computer, a special purpose computer, a computer network, or other programmable devices. The computer instructions may be stored in or transmitted from one computer-readable storage medium to another computer-readable storage medium, for example, the computer instructions may be transmitted from a website, computer, server or data center Transmission to another website site, computer, server or data center by wired (such as coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (such as infrared, wireless, microwave, etc.). The computer-readable storage medium may be any available medium that can be accessed by a computer, or a data storage device including a server, a data center, and the like integrated with one or more available media. The available medium may be a magnetic medium (for example, a floppy disk, a hard disk, a tape), an optical medium (for example, a digital video disc (digital video disc, DVD)), or a semiconductor medium (for example, a solid state drive (solid state drive, SSD)) wait.
在本申请所提供的几个实施例中,应该理解到,所揭露的系统,装置和方法,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,所述模块的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个模块或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或模块的间接耦合或通信连接,可以是电性或其它的形式。In the several embodiments provided in this application, it should be understood that the disclosed system, device and method can be implemented in other ways. For example, the device embodiments described above are only illustrative. For example, the division of the modules is only a logical function division. In actual implementation, there may be other division methods. For example, multiple modules or components can be combined or May be integrated into another system, or some features may be ignored, or not implemented. In another point, the mutual coupling or direct coupling or communication connection shown or discussed may be through some interfaces, and the indirect coupling or communication connection of devices or modules may be in electrical or other forms.
所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个设备上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。The units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or may be distributed to multiple devices. Part or all of the units can be selected according to actual needs to achieve the purpose of the solution of this embodiment.
通过以上的实施方式的描述,所属领域的技术人员可以清楚地了解到本申请可借助软件加必需的通用硬件的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本申请的技术方案本质上或者说做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在可读取的存储介质中,如计算机的软盘,硬盘或光盘等,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本申请各个实施例所述的方法。Through the above description of the implementation, those skilled in the art can clearly understand that the present application can be implemented by means of software plus necessary general-purpose hardware, of course, it can also be implemented by hardware, but in many cases the former is a better implementation . Based on this understanding, the essence of the technical solution of this application or the part that contributes can be embodied in the form of software products, and the computer software products are stored in readable storage media, such as computer floppy disks, hard disks or optical disks etc., including several instructions to enable a computer device (which may be a personal computer, server, or network device, etc.) to execute the methods described in the various embodiments of the present application.
以上所述,仅为本申请的具体实施方式,但本申请的保护范围并不局限于此,在本申请揭露的技术范围内的变化或替换,都应涵盖在本申请的保护范围之内。因此,本申请的保护范围应以所述权利要求的保护范围为准。The above is only a specific implementation of this application, but the protection scope of this application is not limited thereto, and changes or replacements within the technical scope disclosed in this application should be covered within the protection scope of this application. Therefore, the protection scope of the present application should be determined by the protection scope of the claims.

Claims (27)

  1. 一种报文传输方法,其特征在于,包括:A message transmission method, characterized in that, comprising:
    第一网络设备确定第一报文和第二报文,其中,所述第一报文包括普通业务的数据,所述第二报文包括硬隔离业务的数据;The first network device determines a first message and a second message, wherein the first message includes data of a common service, and the second message includes data of a hard-isolated service;
    所述第一网络设备通过其第一端口在同一周期中发送所述第一报文和所述第二报文。The first network device sends the first packet and the second packet in the same cycle through its first port.
  2. 根据权利要求1所述的方法,其特征在于,所述第一报文包括第一字段,其中,所述第一字段指示所述第一报文的类型;The method according to claim 1, wherein the first message includes a first field, wherein the first field indicates the type of the first message;
    所述第二报文包括第二字段,其中,所述第二字段指示所述第二报文的类型。The second packet includes a second field, wherein the second field indicates the type of the second packet.
  3. 根据权利要求2所述的方法,其特征在于,所述第一字段承载于所述第一报文的前导码部分,或所述第一字段承载于所述第一报文的开销OH字段,所述第二字段承载于所述第二报文的前导码部分,或所述第二字段承载于所述第二报文的OH字段。The method according to claim 2, wherein the first field is carried in the preamble part of the first message, or the first field is carried in the overhead OH field of the first message, The second field is carried in the preamble part of the second packet, or the second field is carried in the OH field of the second packet.
  4. 根据权利要求1至3任一项所述的方法,其特征在于,所述第一报文还包括第一标识,所述第一标识用于标识第一客户,所述第一客户的报文包括所述第一报文。The method according to any one of claims 1 to 3, wherein the first message further includes a first identifier, the first identifier is used to identify the first client, and the message of the first client Include the first message.
  5. 根据权利要求1至4任一项所述的方法,其特征在于,第一数据单元包括第一码块;The method according to any one of claims 1 to 4, wherein the first data unit comprises a first code block;
    其中,所述第一数据单元是所述第二报文中的一个或多个数据单元,所述第一码块是目标客户的业务数据编码后的码块,所述目标客户是至少一个第二客户中的一个第二客户,所述第二报文中的数据包括所述至少一个第二客户中全部第二客户的业务数据。Wherein, the first data unit is one or more data units in the second message, the first code block is a code block after encoding service data of the target customer, and the target customer is at least one first For a second client among the two clients, the data in the second message includes service data of all the second clients of the at least one second client.
  6. 根据权利要求5所述的方法,其特征在于,所述方法还包括:The method according to claim 5, wherein the method further comprises:
    所述第一网络设备根据第一信息确定所述第一数据单元中的第一码块;determining, by the first network device, a first code block in the first data unit according to first information;
    其中,所述第一信息指示所述第一数据单元与所述目标客户之间的对应关系。Wherein, the first information indicates the correspondence between the first data unit and the target customer.
  7. 根据权利要求1至6任一项所述的方法,其特征在于,所述第一报文与所述第二报文在编码后的报文长度相同。The method according to any one of claims 1 to 6, wherein the encoded message lengths of the first message and the second message are the same.
  8. 根据权利要求7所述的方法,其特征在于,所述编码包括以下至少一项:64B/66B、66B/65B、或64B/65B。The method according to claim 7, wherein the encoding includes at least one of the following: 64B/66B, 66B/65B, or 64B/65B.
  9. 根据权利要求1至8任一项所述的方法,其特征在于,所述第一网络设备通过其第一端口在同一周期中发送所述第一报文和所述第二报文,包括:The method according to any one of claims 1 to 8, wherein the first network device sends the first message and the second message in the same cycle through its first port, including:
    所述第一网络设备根据第二信息,通过所述第一端口在第一时间单元上发送所述第一报文,以及在第二时间单元上发送所述第二报文;The first network device sends the first message in a first time unit through the first port according to the second information, and sends the second message in a second time unit;
    其中,所述第二信息指示所述第一时间单元和所述第二时间单元在所述周期中的位置。Wherein, the second information indicates the positions of the first time unit and the second time unit in the period.
  10. 根据权利要求1至8任一项所述的方法,其特征在于,所述第一网络设备通过其第一端口在同一周期中发送所述第一报文和所述第二报文,包括:The method according to any one of claims 1 to 8, wherein the first network device sends the first message and the second message in the same cycle through its first port, including:
    所述第一网络设备根据第二信息和第三信息,通过所述第一端口在未占用的第一时间单元上发送所述第一报文,以及在未占用的第二时间单元上发送所述第二报文;The first network device sends the first message in the unoccupied first time unit through the first port according to the second information and the third information, and sends the first packet in the unoccupied second time unit the second message;
    其中,所述第二信息指示所述周期中第一时间单元和第二时间单元的配置数量,所述第三信息指示所述周期中第一时间单元和第二时间单元的未占用数量。Wherein, the second information indicates the configured quantity of the first time unit and the second time unit in the period, and the third information indicates the unoccupied quantity of the first time unit and the second time unit in the period.
  11. 根据权利要求10所述的方法,其特征在于,所述第二报文所在的第二时间单元早于所述第一报文所在的第一时间单元,所述第二报文与所述第一报文的生成时间相同,或所述第二报文的生成时间早于所述第一报文的生成时间;The method according to claim 10, wherein the second time unit in which the second message is located is earlier than the first time unit in which the first message is located, and the second message and the first time unit are The generation time of the first message is the same, or the generation time of the second message is earlier than the generation time of the first message;
    或者,所述第二报文所在的第二时间单元晚于所述第一报文所在的第一时间单元,所述第二报文的生成时间晚于所述第一报文的生成时间。Or, the second time unit where the second message is located is later than the first time unit where the first message is located, and the generation time of the second message is later than the generation time of the first message.
  12. 根据权利要求9至11任一项所述的方法,其特征在于,所述第二信息是基于第一客户的业务带宽和第二客户的业务带宽确定的;The method according to any one of claims 9 to 11, wherein the second information is determined based on the service bandwidth of the first client and the service bandwidth of the second client;
    其中,所述第一客户的报文包括所述第一报文,所述第二报文中的数据包括所述第二客户的业务数据。Wherein, the message of the first client includes the first message, and the data in the second message includes service data of the second client.
  13. 根据权利要求1至12任一项所述的方法,其特征在于,所述方法还包括:The method according to any one of claims 1 to 12, further comprising:
    所述第一网络设备确定第三报文,其中,所述第三报文是第三客户的报文,所述第三报文的类型与所述第一报文的类型相同;The first network device determines a third message, where the third message is a message of a third client, and the type of the third message is the same as the type of the first message;
    所述第一网络设备通过所述第一端口在所述周期中发送所述第三报文,其中,所述第三报文通过第三时间单元传输,所述第三时间单元被配置为传输第一客户的报文,且所述第三时间单元处于空闲状态,所述第一客户的报文包括所述第一报文。The first network device sends the third message in the period through the first port, wherein the third message is transmitted in a third time unit, and the third time unit is configured to transmit A message of the first client, and the third time unit is in an idle state, and the message of the first client includes the first message.
  14. 一种报文传输方法,其特征在于,包括:A message transmission method, characterized in that, comprising:
    第二网络设备通过其第二端口在同一周期中接收第一报文和第二报文,其中,所述第一报文包括普通业务的数据,所述第二报文包括硬隔离业务的数据;The second network device receives the first message and the second message in the same period through its second port, wherein the first message includes data of common services, and the second message includes data of hard-isolated services ;
    所述第二网络设备根据所述第一报文的类型,转发所述第一报文中的业务数据,以及根据所述第二报文的类型,转发所述第二报文中的业务数据。The second network device forwards the service data in the first message according to the type of the first message, and forwards the service data in the second message according to the type of the second message .
  15. 根据权利要求14所述的方法,其特征在于,所述第二网络设备根据所述第一报文的类型,转发所述第一报文中的业务数据,包括:The method according to claim 14, wherein the second network device forwards the service data in the first message according to the type of the first message, comprising:
    所述第二网络设备根据所述第一报文的类型,确定存储转发方式;The second network device determines a store-and-forward mode according to the type of the first message;
    所述第二网络设备以所述存储转发方式转发所述第一报文中的业务数据。The second network device forwards the service data in the first packet in the store-and-forward manner.
  16. 根据权利要求15所述的方法,其特征在于,所述第一报文包括第一字段,其中,所述第一字段指示所述第一报文的类型。The method according to claim 15, wherein the first message includes a first field, wherein the first field indicates a type of the first message.
  17. 根据权利要求16所述的方法,其特征在于,所述第一字段承载于所述第一报文的前导码部分,或所述第一字段承载于所述第一报文的开销OH字段。The method according to claim 16, wherein the first field is carried in the preamble part of the first packet, or the first field is carried in the overhead OH field of the first packet.
  18. 根据权利要求14至17任一项所述的方法,其特征在于,所述第二网络设备根据所述第二报文的类型,转发所述第二报文中的业务数据,包括:The method according to any one of claims 14 to 17, wherein the second network device forwards the service data in the second message according to the type of the second message, including:
    所述第二网络设备根据所述第二报文的类型,确定通道转发方式;The second network device determines a channel forwarding mode according to the type of the second message;
    所述第二网络设备以所述通道转发方式转发至少一个第二客户中每个第二客户的业务数据,其中,所述第二报文中的数据包括所述至少一个第二客户中全部第二客户的业务数据。The second network device forwards the service data of each second client in the at least one second client in the channel forwarding manner, wherein the data in the second message includes all the second clients in the at least one second client 2. Customer's business data.
  19. 根据权利要求18所述的方法,其特征在于,所述第二报文包括第二字段,其中,所述第二字段指示所述第二报文的类型。The method according to claim 18, wherein the second message includes a second field, wherein the second field indicates a type of the second message.
  20. 根据权利要求19所述的方法,其特征在于,所述第二字段承载于所述第二报文的前导码部分,或所述第二字段承载于所述第二报文的OH字段。The method according to claim 19, wherein the second field is carried in the preamble part of the second packet, or the second field is carried in the OH field of the second packet.
  21. 一种通信装置,其特征在于,包括:用于执行权利要求1至13任一项所述的各个步骤的单元。A communication device, characterized by comprising: a unit for performing the steps described in any one of claims 1 to 13.
  22. 一种通信装置,其特征在于,包括:处理器和存储器,所述处理器和所述存储器耦合,所述存储器存储有程序指令,当所述存储器存储的程序指令被所述处理器执行时,如权利要求1至13中任一项所述的方法被实现。A communication device, characterized by comprising: a processor and a memory, the processor is coupled to the memory, the memory stores program instructions, and when the program instructions stored in the memory are executed by the processor, A method as claimed in any one of claims 1 to 13 is carried out.
  23. 一种芯片,其特征在于,所述芯片包括逻辑电路和输入输出接口,所述输入输出接口用于与所述芯片之外的模块通信,所述逻辑电路用于运行计算机程序或指令,以实现如权利要求1至13中任一项所述的方法。A chip, characterized in that the chip includes a logic circuit and an input-output interface, the input-output interface is used to communicate with modules other than the chip, and the logic circuit is used to run computer programs or instructions to realize A method as claimed in any one of claims 1 to 13.
  24. 一种通信装置,其特征在于,包括:用于执行权利要求14至20任一项所述的各个步骤的单元。A communication device, characterized by comprising: a unit for performing the steps described in any one of claims 14 to 20.
  25. 一种通信装置,其特征在于,包括:处理器和存储器,所述处理器和所述存储器耦合,所述存储器存储有程序指令,当所述存储器存储的程序指令被所述处理器执行时,如权利要求14至20中任一项所述的方法被实现。A communication device, characterized by comprising: a processor and a memory, the processor is coupled to the memory, the memory stores program instructions, and when the program instructions stored in the memory are executed by the processor, A method as claimed in any one of claims 14 to 20 is carried out.
  26. 一种芯片,其特征在于,所述芯片包括逻辑电路和输入输出接口,所述输入输出接口用于与所述芯片之外的模块通信,所述逻辑电路用于运行计算机程序或指令,以实现如权利要求14至20中任一项所述的方法。A chip, characterized in that the chip includes a logic circuit and an input-output interface, the input-output interface is used to communicate with modules other than the chip, and the logic circuit is used to run computer programs or instructions to realize A method as claimed in any one of claims 14 to 20.
  27. 一种计算机可读存储介质,其特征在于,所述计算机可读存储介质存储程序,所述程序被处理器调用时,权利要求1至20任一项所述的方法被执行。A computer-readable storage medium, characterized in that the computer-readable storage medium stores a program, and when the program is invoked by a processor, the method according to any one of claims 1 to 20 is executed.
PCT/CN2022/130613 2021-11-11 2022-11-08 Packet transmission method and communication apparatus WO2023083175A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202111332727.6 2021-11-11
CN202111332727.6A CN116112452A (en) 2021-11-11 2021-11-11 Message transmission method and communication device

Publications (1)

Publication Number Publication Date
WO2023083175A1 true WO2023083175A1 (en) 2023-05-19

Family

ID=86258491

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2022/130613 WO2023083175A1 (en) 2021-11-11 2022-11-08 Packet transmission method and communication apparatus

Country Status (2)

Country Link
CN (1) CN116112452A (en)
WO (1) WO2023083175A1 (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105897820A (en) * 2015-10-23 2016-08-24 乐卡汽车智能科技(北京)有限公司 Data processing method and device, wireless router and Internet-of-Vehicles system
CN105978582A (en) * 2016-06-30 2016-09-28 深圳优克云联科技有限公司 Single-baseband dual-channel communication method and communication device
CN106453138A (en) * 2016-11-25 2017-02-22 杭州华三通信技术有限公司 Message processing method and apparatus
CN109995658A (en) * 2017-12-29 2019-07-09 华为技术有限公司 The method and apparatus for sending, receiving and E-Packeting
CN111277454A (en) * 2020-01-15 2020-06-12 Ut斯达康通讯有限公司 Network performance detection system and method
CN113452623A (en) * 2020-03-26 2021-09-28 华为技术有限公司 Method and equipment for transmitting service flow based on Flexe
CN113542155A (en) * 2017-04-11 2021-10-22 华为技术有限公司 Method and device for processing service flow

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105897820A (en) * 2015-10-23 2016-08-24 乐卡汽车智能科技(北京)有限公司 Data processing method and device, wireless router and Internet-of-Vehicles system
CN105978582A (en) * 2016-06-30 2016-09-28 深圳优克云联科技有限公司 Single-baseband dual-channel communication method and communication device
CN106453138A (en) * 2016-11-25 2017-02-22 杭州华三通信技术有限公司 Message processing method and apparatus
CN113542155A (en) * 2017-04-11 2021-10-22 华为技术有限公司 Method and device for processing service flow
CN109995658A (en) * 2017-12-29 2019-07-09 华为技术有限公司 The method and apparatus for sending, receiving and E-Packeting
CN111277454A (en) * 2020-01-15 2020-06-12 Ut斯达康通讯有限公司 Network performance detection system and method
CN113452623A (en) * 2020-03-26 2021-09-28 华为技术有限公司 Method and equipment for transmitting service flow based on Flexe

Also Published As

Publication number Publication date
CN116112452A (en) 2023-05-12

Similar Documents

Publication Publication Date Title
EP3573297B1 (en) Packet processing method and apparatus
WO2016191990A1 (en) Packet conversion method and device
US11563521B2 (en) Method and apparatus for port channelization at physical layer
CN113972997A (en) Method and equipment for transmitting data
CN109698732B (en) Method and device for transmitting data
US20130188655A1 (en) Encapsulation of data
WO2022062930A1 (en) Code block stream processing method and device
CN109286564B (en) Message forwarding method and device
WO2019076131A1 (en) Flexible ethernet message forwarding method and apparatus
WO2023083175A1 (en) Packet transmission method and communication apparatus
WO2023109424A1 (en) Data transmission method and related device
WO2020029892A1 (en) Method for receiving code block stream, method for sending code block stream and communication apparatus
CN115174699A (en) Processing method of Ethernet message and related equipment
WO2021213382A1 (en) Data transmission method and apparatus
US11902403B2 (en) Method for receiving code block stream, method for sending code block stream, and communications apparatus
JP2021533691A (en) Methods and equipment for processing service bitstreams
WO2022022724A1 (en) Bit block sending method and device
WO2023141777A1 (en) Communication method and network device
WO2023165412A1 (en) Data processing method, apparatus, device, system and computer readable storage medium
WO2023116284A1 (en) Slot negotiation and device for fine-grained service in flexible ethernet (flexe)
US11438091B2 (en) Method and apparatus for processing bit block stream, method and apparatus for rate matching of bit block stream, and method and apparatus for switching bit block stream
WO2022083473A1 (en) Data transmission method and apparatus related thereto
CN116032862A (en) Method for transmitting BE data by TTE system with low delay and TTE system
CN114629851A (en) Service message sending method and equipment
CN116015574A (en) Communication method and device

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: 22891969

Country of ref document: EP

Kind code of ref document: A1