WO2024250192A1 - 一种报文转发方法、装置、网络设备及存储介质 - Google Patents
一种报文转发方法、装置、网络设备及存储介质 Download PDFInfo
- Publication number
- WO2024250192A1 WO2024250192A1 PCT/CN2023/098815 CN2023098815W WO2024250192A1 WO 2024250192 A1 WO2024250192 A1 WO 2024250192A1 CN 2023098815 W CN2023098815 W CN 2023098815W WO 2024250192 A1 WO2024250192 A1 WO 2024250192A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- network
- message
- target
- scheduling period
- deterministic
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Ceased
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L45/00—Routing or path finding of packets in data switching networks
Definitions
- the present application relates to the field of network communication technology, and more particularly to a message forwarding method, device, network equipment and storage medium.
- deterministic transmission there are many networks that implement deterministic transmission, such as FlexE (Flex Ethernet) and DetNet (Deterministic Networking).
- FlexE Flexible Ethernet
- DetNet Deterministic Networking
- Different networks use different methods to implement deterministic transmission.
- FlexE uses hard pipes to implement deterministic transmission
- DetNet uses soft pipes based on CSFQ (Cyclic Specific Queuing and Forwarding, a cyclic specific queuing and forwarding mechanism based on segment routing) to implement deterministic transmission.
- CSFQ Cyclic Specific Queuing and Forwarding, a cyclic specific queuing and forwarding mechanism based on segment routing
- Deterministic transmission can be well implemented in a single network, but the actual networking is relatively complex.
- a network consists of multiple networks that implement deterministic transmission, which makes it impossible to implement deterministic transmission of messages.
- the purpose of the embodiments of the present application is to provide a message forwarding method, apparatus, network device and storage medium to achieve deterministic transmission of messages in complex networks.
- an embodiment of the present application provides a message forwarding method, which is applied to a network device, wherein the network device is connected to a first device in a first network and a second device in a second network respectively, and the method includes:
- the first message belongs to the target deterministic flow, converting the first message into a second message according to the encapsulation format of the deterministic transmission adopted by the second network;
- the step of converting the first message into the second message according to the encapsulation format of the deterministic transmission adopted by the second network includes:
- the step of obtaining second encapsulation information matching the original message includes:
- the encapsulation information corresponding to the target flow information is determined as the second encapsulation information matching the original message.
- the target scheduling period is determined by the following steps:
- a target scheduling period corresponding to the second encapsulation information is determined.
- the target scheduling period is determined by the following steps:
- a target scheduling period is determined according to the determined scheduling period and period offset.
- the step of forwarding the second message to the device in the second network according to the target scheduling period corresponding to the second message includes:
- the second message is forwarded to the device in the second network according to the found target scheduling period.
- the first network is FlexE
- the second network is DetNet
- the first network is DetNet
- the second network is FlexE.
- an embodiment of the present application provides a message forwarding device, which is applied to a network device, wherein the network device is connected to a first device in a first network and a second device in a second network, respectively, and the device includes:
- a receiving module used to receive a first message sent by the first device
- a conversion module configured to convert the first message into a second message according to an encapsulation format of deterministic transmission adopted by the second network if the first message belongs to a target deterministic flow;
- a forwarding module is used to forward the second message to the second device according to the target scheduling period corresponding to the target deterministic flow.
- the conversion module includes:
- An obtaining submodule configured to strip first encapsulation information of the first message to obtain an original message, wherein the first encapsulation information is encapsulation information for transmitting the target deterministic flow in the first network;
- An acquisition submodule used to acquire second encapsulation information matching the original message, where the second encapsulation information is encapsulation information for transmitting the target deterministic flow in the second network;
- An encapsulation submodule is used to encapsulate the second encapsulation information into the original message according to the encapsulation format of the deterministic transmission adopted by the second network to obtain a second message.
- the acquisition submodule is specifically used to:
- the encapsulation information corresponding to the target flow information is determined as the second encapsulation information matching the original message.
- the apparatus further includes: a determination module, configured to determine a target scheduling period, specifically configured to:
- a target scheduling period of the second network corresponding to the initial scheduling period is determined.
- the apparatus further includes: a determination module, configured to determine a target scheduling period, specifically configured to:
- a target scheduling period corresponding to the second encapsulation information is determined.
- the apparatus further includes: a determination module, configured to determine a target scheduling period, specifically configured to:
- a target scheduling period is determined according to the determined scheduling period and period offset.
- the forwarding module is specifically used to:
- the second message is forwarded to the device in the second network according to the found target scheduling period.
- the first network is FlexE
- the second network is DetNet
- the first network is DetNet
- the second network is FlexE.
- an embodiment of the present application provides a network device, including a processor, a communication interface, a memory, and a communication bus, wherein the processor, the communication interface, and the memory communicate with each other through the communication bus;
- Memory used to store computer programs
- the processor is used to implement any method step provided in the first aspect when executing the program stored in the memory.
- an embodiment of the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, any one of the method steps provided in the first aspect is implemented.
- a network device after receiving a message (such as a first message) of a target deterministic flow from a first network, a network device can convert the first message into a second message that can be deterministically transmitted in a second network.
- a network device in a complex network consisting of multiple networks that implement deterministic transmission, through a network device, the message of the target deterministic flow can be converted between any two networks that implement deterministic transmission, thereby implementing deterministic transmission of messages in a complex network.
- FIG1 is a schematic diagram of a structure of a data frame in FlexE
- FIG2 is a schematic diagram of a process of performing queue periodic scheduling based on CSFQ in DetNet
- FIG3 is a schematic diagram of the structure of a first type of network consisting of multiple deterministic networks provided in an embodiment of the present application;
- FIG4 is a schematic diagram of a flow chart of a message forwarding method provided in an embodiment of the present application.
- FIG5 is a schematic diagram of the structure of a second type of networking consisting of multiple deterministic networks provided in an embodiment of the present application;
- FIG6 is a schematic diagram of a first flow chart of a message conversion process provided in an embodiment of the present application.
- FIG7 is a schematic diagram of an implementation flow of message conversion provided in an embodiment of the present application.
- FIG8 is a schematic diagram of a second flow chart of a message conversion process provided in an embodiment of the present application.
- FIG9 is a schematic diagram of a detailed flow chart of step S43 provided in an embodiment of the present application.
- FIG10 is a signaling diagram of a message forwarding process using the message forwarding method provided in an embodiment of the present application.
- FIG11 is a schematic diagram of the structure of a message forwarding device provided in an embodiment of the present application.
- FIG. 12 is a schematic diagram of the structure of a network device provided in an embodiment of the present application.
- FlexE uses hard pipes to achieve deterministic transmission.
- FlexE is an interface technology for bearer networks to achieve service isolation and network slicing. In recent years, FlexE technology has developed rapidly and has been widely accepted by major standard organizations. FlexE is based on time slot division and flexible combination of time slots. In terms of data transmission, FlexE has the following capabilities: flexible and variable multi-granularity rates, decoupling from optical transmission capabilities, and enhanced QoS (Quality of Service) for multi-service bearer. It can meet the needs of bandwidth on-demand allocation, arbitrary bandwidth expansion, service isolation, deterministic transmission, etc.
- 20 channels are defined to achieve 5G granularity slicing for each channel.
- 20 blocks are used as a group of data blocks.
- the FlexE overhead is inserted at intervals of 1023 ⁇ 20 data blocks to obtain a data frame.
- 1023 ⁇ 20 data blocks can be transmitted between two overhead headers in the transmission order.
- one time slot is a channel, such as time slot 0-time slot 19 in Figure 1.
- One time slot transmits one data block.
- the time slots with the same number in a data frame are allocated to one user, and a total of 5G data is transmitted.
- One user can occupy one or more time slots to achieve flexible combination of time slots, thereby achieving deterministic transmission.
- DetNet is based on CSFQ and uses a soft pipe approach to achieve deterministic transmission.
- CSQF is the key technology for DetNet to achieve end-to-end deterministic transmission in the wide area network.
- CSQF introduces the idea of periodic forwarding based on the traditional IP (Internet Protocol).
- the corresponding periodic information will be encapsulated in SID (Segment Identify) such as SRv6 (Segment Routing IPv6, segment routing based on IPv6 forwarding plane).
- SID Segment Identify
- SRv6 Segment Routing IPv6, segment routing based on IPv6 forwarding plane.
- the forwarding node is divided into multiple time slices T in a time division manner.
- the message of a deterministic flow can only be sent within the time slice specified for the deterministic flow. Therefore, the transmission delay jitter in the forwarding node is limited to 1 time slice T.
- a schematic diagram of queue periodic scheduling based on CSFQ shows that the forwarding node is divided into four time slices, namely T0 to T3.
- a deterministic flow corresponds to time slice T2.
- the forwarding node successively receives packets 1 to 3 belonging to the deterministic flow. Then, packets 1 to 3 are all forwarded within time slice T2, which realizes the controllability of the upper and lower time limits, and limits the delay jitter of the deterministic flow to within 1 T2, thus achieving the goal of deterministic transmission.
- Deterministic transmission can be well achieved in a single network, but the actual networking is relatively complex. Usually, a network consists of multiple networks that achieve deterministic transmission, which makes it impossible to achieve deterministic transmission. As shown in Figure 3, a network has FlexE at both ends and DetNet in the middle. End-to-end deterministic transmission needs to be achieved between them, that is, from the FlexE on the left to the FlexE on the right, it needs to pass through DetNet in the middle and achieve end-to-end deterministic transmission.
- an embodiment of the present application provides a message forwarding method, which is applied to a network device, and the network device is respectively connected to a first device in a first network and a second device in a second network.
- the method includes the following steps.
- Step S41 receiving a first message sent by a first device.
- Step S42 If the first message belongs to the target deterministic flow, the first message is converted into a second message according to the encapsulation format of the deterministic transmission adopted by the second network.
- Step S43 forwarding the second message to the second device according to the target scheduling period corresponding to the target deterministic flow.
- a network device after receiving a message (such as a first message) of a target deterministic flow from a first network, a network device can convert the first message into a second message that can be deterministically transmitted in a second network.
- a network device in a complex network consisting of multiple networks that implement deterministic transmission, through a network device, the message of the target deterministic flow can be converted between any two networks that implement deterministic transmission, thereby implementing deterministic transmission of messages in a complex network.
- the first network and the second network are two networks that use different methods to achieve deterministic transmission.
- the first network is FlexE and the second network is DetNet; or, the first network is DetNet and the second network is FlexE.
- the network device is a device that connects the first network and the second network, such as ASBR (Autonomous System Boundary Router) 1 and ASBR 2 in the network shown in Figure 5.
- the network shown in Figure 5 includes three ASs (Autonomous Systems), namely AS1-AS3, and also includes multiple PE (Provider Edge) devices and multiple P (Provider) devices, such as PE1-PE4, P1-P3, etc.
- FlexE is deployed in AS1 and AS3, and DetNet is deployed in AS2.
- the first network can be FlexE deployed in AS1, and the second network can be DetNet deployed in AS2; the first network can also be DetNet deployed in AS2, and the second network can be FlexE deployed in AS3 or FlexE deployed in AS1.
- the first network includes one or more devices, such as PE1-PE4, P1-P3, etc. in Figure 5.
- the first message can be any message transmitted in the first network, and can be any message of a deterministic flow or any message of a non-deterministic flow.
- a device in the first network sends a first message to a network device, and the network device receives the first message.
- the encapsulation format of deterministic transmission is different in different networks.
- the encapsulation format of deterministic transmission in FlexE is: PHY (physical layer) header, FlexE header, IP header and payload, and the scheduling period and other information used for deterministic transmission are different.
- the information is encapsulated in the FlexE header;
- the encapsulation format of deterministic transmission in DetNet is: PHY header, IP header, SRv6 header and payload, and the scheduling period and other information used for deterministic transmission are encapsulated in the SRv6 header.
- the network device After receiving the first message, the network device identifies whether the data stream to which the first message belongs is a target deterministic stream. If the data stream to which the first message belongs is a target deterministic stream, the network device strips the encapsulation of the deterministic transmission in the first network included in the first message to obtain the original message, and re-encapsulates the original message according to the encapsulation format of the deterministic transmission adopted by the second network to obtain the second message. In this way, the conversion of the first message to the second message is completed.
- the second message includes the encapsulation of the deterministic transmission adopted by the second network. At this time, the second message can be deterministically transmitted in the second network.
- the first network is FlexE and the second network is DetNet.
- the ASBR can strip off the PHY header and FlexE header and other encapsulations of deterministic transmission in FlexE to obtain the original IP message; then, according to the encapsulation format of deterministic transmission in DetNet, the PHY header and SRv6 header are encapsulated for the original IP message to obtain the message 2 forwarded in DetNet.
- message 2 can be deterministically transmitted in DetNet.
- message 2 can be deterministically forwarded along the path from node A to node D in the specified time slice.
- the network device converts the first message into a second message according to the encapsulation format of the transmission stream in the second network, and forwards the second message.
- step a1 the network device strips the third encapsulation information of the first message to obtain the original message, where the third encapsulation information is the encapsulation information of the flow to which the first message belongs in the first network, such as the information carried by the above-mentioned PHY header and FlexE header. Because the data flow to which the first message belongs is not a deterministic flow, the third encapsulation information at this time does not carry information such as the scheduling period of deterministic transmission in the first network.
- Step a2 obtaining fourth encapsulation information matching the original message
- the fourth encapsulation information is the encapsulation information of the transmission flow in the second network, such as the information carried by the above-mentioned PHY header and SRv6 header. Because the data flow to which the first message belongs is not a deterministic flow, the fourth encapsulation information at this time does not carry information such as the scheduling period of deterministic transmission in the second network.
- Step a3 encapsulate the fourth encapsulation information into the original message according to the encapsulation format of the transmission stream in the second network to obtain a second message.
- the network device may queue and forward the second message.
- the target scheduling period is the scheduling period corresponding to the target deterministic flow to which the first message belongs in the second network, that is, the scheduling period corresponding to the target deterministic flow to which the second message belongs.
- the scheduling period is expressed in different forms in different networks. For example, in FlexE, the scheduling period is expressed in time slots. As shown in Figure 1, time slots 0 to 19; in DetNet, the scheduling period is expressed in the form of The formula is a time slice (also called a scheduling queue), as shown in Figure 2, time slices T0-T3.
- the network device After obtaining the second message, the network device obtains the target scheduling period, and forwards the second message when the target scheduling period is reached.
- the time slice includes T1-T6, node A forwards the message in time slice T1, node B forwards the message in time slice T3, node C forwards the message in time slice T4, and node D forwards the message in time slice T6.
- Step S71 stripping first encapsulation information of a first message to obtain an original message, where the first encapsulation information is encapsulation information of a transmission target deterministic flow in a first network.
- Step S72 Acquire second encapsulation information matching the original message, where the second encapsulation information is encapsulation information of the transmission target deterministic flow in the second network.
- Step S73 encapsulate the second encapsulation information into the original message according to the deterministic transmission encapsulation format adopted by the second network to obtain a second message.
- the first encapsulation information is used to transmit the target deterministic flow to which the first message belongs in the first network, that is, includes information such as the scheduling period for deterministic transmission of the target deterministic flow in the first network.
- the first encapsulation information may include the FlexE header and PHY header in Figure 6 that carry information such as the scheduling period.
- the network device strips the first encapsulation information of the first message to obtain the original message.
- the second encapsulation information is used to transmit the target deterministic flow to which the second message belongs in the second network, that is, includes information such as the scheduling period for deterministic transmission of the target deterministic flow in the second network.
- the second encapsulation information may include the SRv6 header and PHY header in Figure 6 that carry information such as the scheduling period.
- the network device obtains the second encapsulation information that matches the original message so that the second network can subsequently transmit the second message deterministically through the second encapsulation information.
- the network device can obtain the second encapsulation information in the following manner: The device pre-stores the correspondence between flow information and encapsulation information, wherein the flow information may be a flow identifier or a five-tuple, etc.; the network device obtains the target flow information included in the original message; and according to the pre-stored correspondence between the flow information and the encapsulation information, determines the encapsulation information corresponding to the target flow information as the second encapsulation information matching the original message.
- the network device may also obtain the second encapsulation information in other ways, which is not limited to this.
- the network device encapsulates the second encapsulation information obtained in step S72 into the original message to obtain a second message that can be deterministically transmitted in the second network.
- the network device encapsulates the SRv6 header and PHY header obtained in step S72 into the original message to obtain a second message, and the second message includes: a PHY header, an IP header, an SRv6 header, and a payload.
- the target scheduling period can be determined in any of the following ways.
- Method 1 Determine the initial scheduling period corresponding to the first encapsulation information according to the correspondence between the scheduling period of the first network and the encapsulation information stored in advance; determine the target scheduling period of the second network corresponding to the initial scheduling period according to the correspondence between the scheduling period of the first network and the scheduling period of the second network stored in advance.
- the network device pre-stores the correspondence between the scheduling period of the first network and the encapsulation information, and the correspondence between the scheduling period of the first network and the scheduling period of the second network.
- the network device can determine the scheduling period corresponding to the target deterministic flow in the first network, i.e., the initial scheduling period, based on the first encapsulation information carried by the first message and the pre-stored correspondence between the scheduling period of the first network and the encapsulation information. Afterwards, the network device determines the scheduling period corresponding to the target deterministic flow in the second network, i.e., the target scheduling period, based on the initial scheduling period and the pre-stored correspondence between the scheduling period of the first network and the scheduling period of the second network.
- the message conversion diagram shown in Figure 8 in which the ASBR stores the corresponding relationship between the scheduling queue and the time slot, such as the mapping relationship between time slot 1, time slot 2, etc. and the scheduling queue in Figure 8.
- the ASBR receives the deterministic flow from FlexE, it determines the scheduling queue corresponding to the forwarding time slot of different deterministic flows from FlexE, that is, the target scheduling period, according to the mapping relationship between the scheduling queue and the time slot.
- the deterministic flow from FlexE includes FlexE1-FlexE3, and the ASBR determines the scheduling queue 1 corresponding to the forwarding time slot of FlexE1, the scheduling queue 2 corresponding to the forwarding time slot of FlexE2, and the scheduling queue 3 corresponding to the forwarding time slot of FlexE3.
- the ASBR forwards the message in the scheduling queue in the time slice corresponding to each scheduling queue.
- the message stored in the same scheduling queue is called an aggregate message. For non-deterministic flows, they can be forwarded through the Ethernet port.
- a correspondence between a scheduling period of a first network and a scheduling period of a second network is pre-stored in a network device.
- the pre-stored correspondence between the scheduling period of the first network and the scheduling period of the second network is used to determine a target scheduling period of the second network corresponding to the initial scheduling period, and a message is forwarded to the second network according to the determined target scheduling period.
- This allows scheduling period mapping between the first network and the second network to be achieved, and end-to-end resource planning and consistent information transmission to be achieved.
- By transmitting messages through the mapping of the scheduling periods of the two networks there will be no loss or misalignment of intermediate information, thereby enabling unified planning and deployment of deterministic transmission resources for the entire network to be achieved in complex networking.
- Method 2 obtain the target timestamp when the first message is received; determine the scheduling period and period offset corresponding to the target timestamp according to the correspondence between the pre-stored timestamp, scheduling period and period offset corresponding to the target deterministic flow; determine the target scheduling period according to the determined scheduling period and period offset.
- the network device pre-stores the correspondence between the timestamp, the scheduling period and the period offset.
- the period offset can be determined according to the time for the network device to process the message of the target deterministic flow. For example, the period offset is the number of scheduling periods corresponding to the longest time required for the network device to process the message of the target deterministic flow.
- the scheduling period included in the above correspondence is the scheduling period corresponding to the timestamp.
- the network device may stamp the first message with a target timestamp, that is, the time when the first message was received. Afterwards, the network device determines the scheduling period and period offset corresponding to the target timestamp according to the correspondence between the target timestamp, the pre-stored timestamp, the scheduling period, and the period offset corresponding to the target deterministic flow; and then offsets the scheduling period corresponding to the target timestamp by the period offset corresponding to the target timestamp to obtain the target scheduling period.
- a target timestamp that is, the time when the first message was received.
- the deterministic flows in FlexE include FlexE1-FlexE3, taking FlexE1 and FlexE2 as examples.
- the target timestamp of the message in FlexE1 is 2 microseconds
- the target timestamp of the message in FlexE2 is 12 microseconds.
- the scheduling period includes time slice T1 (0 microseconds to 10 microseconds), time slice T2 (10 microseconds to 20 microseconds), and time slice T3 (20 microseconds to 30 microseconds). 2 microseconds belong to 0 microseconds to 10 microseconds of time slice T1, and 12 microseconds belong to 10 microseconds to 20 microseconds of time slice T2.
- the second encapsulation information includes information such as the scheduling period.
- the network device can find the scheduling period corresponding to the second encapsulation information as the target scheduling period according to the pre-stored correspondence between the scheduling period of the second network and the encapsulation information.
- the number of target scheduling periods may be one or more.
- the network device may store the second message in a scheduling queue corresponding to the target scheduling cycle, and forward the message in the scheduling queue when the target scheduling cycle is reached.
- step S43 may include the following steps, as shown in FIG. 9 .
- Step S91 searching for a target scheduling period in which the number of forwarded messages does not reach a preset number according to the arrangement order of the preset multiple target scheduling periods.
- Step S92 when found, forward the second message to the device in the second network according to the found target scheduling period.
- the network device searches in sequence according to the preset arrangement order of the target scheduling periods, and forwards the second message according to the first target scheduling period in which the number of forwarded messages found does not reach the preset number.
- the technical solution provided by the embodiment of the present application avoids the problem of too many or too few messages forwarded in one scheduling period, and improves the message transmission efficiency.
- the arrangement order of the scheduling cycles can be set according to actual needs, for example, the scheduling cycles can be sorted according to their serial numbers.
- the network device searches for a target scheduling period in which the number of forwarded messages does not reach a preset number according to the preset arrangement order of the multiple target scheduling periods.
- the second network is DetNet
- the network device determines that the target scheduling period of the second message in the second network is time slice T1, time slice T2, and time slice T3, and the corresponding arrangement order is time slice T1, time slice T2, and time slice T3.
- the preset number of messages forwarded by time slice T1, time slice T2, and time slice T3 is 3.
- the network device follows the order of time slice T1, time slice T2, and time slice T3. First, check whether 3 messages are stored in the scheduling queue corresponding to time slice T1. If the number of forwarded messages stores 2 messages, 2 ⁇ 3, which means that the number of messages forwarded in time slice T1 does not reach 3. Take time slice T1 as the target scheduling period, and end the operation of searching whether 3 messages are stored in the scheduling queue corresponding to the time slice. If the number of forwarded messages stores 3 messages, which means that the number of messages forwarded in time slice T1 reaches 3. Continue to search whether 3 messages are stored in the scheduling queue corresponding to time slice T2, and so on, until the target scheduling period is found.
- the network device forwards the second message to the device in the second network according to the target scheduling period in which the number of forwarded messages found in step S91 does not reach the preset number.
- the time slice T2 is the target scheduling period in which the number of forwarded messages found does not reach the preset number
- the network device forwards the second message to the device in the second network (here, DetNet) according to the time slice T2.
- the message forwarding method provided in the embodiment of the present application is described in detail below in conjunction with the signaling diagram of message forwarding shown in FIG10.
- the first network is FlexE
- the second network is DetNet.
- the network device includes a logical interface module connected to FlexE (referred to as FlexE logical interface module), a logical interface module connected to DetNet (referred to as DetNet logical interface module), and a packet processing engine.
- Step S101 the FlexE logical interface module receives a message (such as a first message) from FlexE, and delivers it to the FlexE Client after time slot processing.
- the received message can be transmitted in the form of a 64B/66B encoded bit stream.
- step S102 the FlexE Client timestamps the received message and hands it over to the packet processing engine.
- the FlexE Client is a function integrated on the FlexE logical interface module.
- the FlexE Client timestamps the received message, which can be understood as the FlexE logical interface module timestamps the received message.
- Step S103 the packet processing engine identifies whether the received message (such as the first message) belongs to a deterministic flow.
- Step S104 If the received message belongs to a deterministic flow, the packet processing engine performs deterministic transmission operations such as queue mapping, multiple transmission selection, bypass TM (bypass Transmission Management) on the message to obtain a new message (such as the second message).
- the new message includes an SRv6 header, and the queue information carried by the SID in the SRv6 header.
- Step S105 The packet processing engine forwards the new message to the corresponding DetNet logical interface module according to the queue information carried by the SID.
- Step S106 The DetNet logic interface module performs deterministic dispatching based on the queue information carried by the SID. Spend.
- the processing principle of the network device is the same.
- priority processing is performed on messages belonging to deterministic flows, including: priority processing of deterministic packets, handing over to DetNet Client after queue processing, Calendar processing, time slot interleaving, etc.
- priority processing is performed on messages belonging to deterministic flows, including: priority processing of deterministic packets, handing over to DetNet Client after queue processing, Calendar processing, time slot interleaving, etc.
- the integration of FlexE and DetNet is realized through a network device.
- the network device supports both FlexE and DetNet, can connect FlexE and DetNet, and can also realize message conversion between the two, thereby realizing deterministic transmission between various networks in the networking.
- end-to-end deterministic transmission is achieved, which facilitates the unified planning of deterministic transmission resources.
- an embodiment of the present application further provides a message forwarding device, as shown in FIG11, which is applied to a network device, the network device is respectively connected to a first device in a first network and a second device in a second network, and the device includes:
- the receiving module 111 is used to receive a first message sent by a first device
- a conversion module 112 configured to convert the first message into a second message according to an encapsulation format of deterministic transmission adopted by the second network if the first message belongs to a target deterministic flow;
- the forwarding module 113 is configured to forward the second message to the second device according to the target scheduling period corresponding to the target deterministic flow.
- a network device after receiving a message (such as a first message) of a target deterministic flow from a first network, a network device can convert the first message into a second message that can be deterministically transmitted in a second network.
- a network device in a complex network consisting of multiple networks that implement deterministic transmission, through a network device, the message of the target deterministic flow can be converted between any two networks that implement deterministic transmission, thereby implementing deterministic transmission of messages in a complex network.
- the conversion module 112 may include:
- An obtaining submodule is used to strip first encapsulation information of a first message to obtain an original message, wherein the first encapsulation information is encapsulation information of a transmission target deterministic flow in a first network;
- An acquisition submodule used to acquire second encapsulation information matching the original message, the second encapsulation information being encapsulation information of a transmission target deterministic flow in a second network;
- the encapsulation submodule is used to encapsulate the second
- the encapsulation information is encapsulated into the original message to obtain a second message.
- the acquisition submodule may be specifically used for:
- the encapsulation information corresponding to the target flow information is determined as the second encapsulation information matching the original message.
- the message forwarding device may further include: a determination module, configured to determine a target scheduling period, which may be specifically configured to:
- a target scheduling period of the second network corresponding to the initial scheduling period is determined.
- the message forwarding device may further include: a determination module, configured to determine a target scheduling period, which may be specifically configured to:
- a target scheduling period corresponding to the second encapsulation information is determined.
- the message forwarding device may further include: a determination module, configured to determine a target scheduling period, which may be specifically configured to:
- a target scheduling period is determined according to the determined scheduling period and period offset.
- the forwarding module 113 may be specifically used for:
- the second message is forwarded to the device in the second network according to the found target scheduling period.
- the first network may be FlexE, and the second network may be DetNet; or,
- the first network may be DetNet
- the second network may be FlexE.
- the receiving module 111 when the first network is FlexE and the second network is DetNet, the receiving module 111 can be understood as a FlexE logical interface module, the conversion module 112 can be understood as a packet processing engine, and the forwarding module 113 can be understood as a DetNet logical interface module.
- the receiving module 111 can be understood as a DetNet logical interface module
- the conversion module 112 can be understood as a packet processing engine
- the forwarding module 113 can be understood as a FlexE logical interface module.
- the first network is FlexE and the second network is DetNet.
- the receiving module 111 receives the message from FlexE, adds a timestamp to the received message after time slot processing, and hands it to the conversion module 112.
- the conversion module 112 identifies whether the received message belongs to a deterministic flow. If the received message belongs to a deterministic flow, it performs deterministic transmission operations such as queue mapping, multiple transmission and selective reception, bypass TM, etc. on the message to obtain a new message; according to the queue information carried by the SID, the new message is forwarded to the corresponding forwarding module 113.
- deterministic transmission operations such as queue mapping, multiple transmission and selective reception, bypass TM, etc.
- the forwarding module 113 performs deterministic scheduling according to the queue information carried by the SID.
- the embodiment of the present application further provides a network device, as shown in FIG12 , including a processor 121 , a communication interface 122 , a memory 123 and a communication bus 124 , wherein the processor 121 , the communication interface 122 , and the memory 123 communicate with each other through the communication bus 124 ;
- Memory 123 used for storing computer programs
- the processor 121 is used to implement any of the above-mentioned message forwarding methods when executing the program stored in the memory 123.
- the communication bus mentioned in the above network device can be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus.
- PCI Peripheral Component Interconnect
- EISA Extended Industry Standard Architecture
- the communication bus can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, only one thick line is used in the figure, but it does not mean that there is only one bus or one type of bus.
- the communication interface is used for communication between the above network devices and other devices.
- the memory may include a random access memory (RAM) or a non-volatile memory (NVM), such as at least one disk storage.
- RAM random access memory
- NVM non-volatile memory
- the memory may also be at least one storage device located away from the aforementioned processor.
- the above-mentioned processor can be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it can also be a digital signal processor (DSP), an application specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components.
- CPU central processing unit
- NP network processor
- DSP digital signal processor
- ASIC application specific integrated circuit
- FPGA field programmable gate array
- a computer-readable storage medium in which a computer program is stored.
- the computer program is executed by a processor, the steps of any of the above-mentioned message forwarding methods are implemented.
- a computer program product including instructions is also provided, which, when executed on a computer, enables the computer to execute any message forwarding method in the above embodiments.
- the computer program product includes one or more computer instructions.
- the process or function described in the embodiment of the present application is 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 can be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium, for example, the computer instructions can be transmitted from a website site, computer, server or data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) mode to another website site, computer, server or data center.
- the computer-readable storage medium can be any available medium that a computer can access or a data storage device such as a server, data center, etc. that contains one or more available media integrated.
- the available medium can be a magnetic medium (e.g., a floppy disk, a hard disk, a magnetic tape), an optical medium (e.g., a DVD), or a semiconductor medium (e.g., a solid state drive (SSD)), etc.
- a magnetic medium e.g., a floppy disk, a hard disk, a magnetic tape
- an optical medium e.g., a DVD
- a semiconductor medium e.g., a solid state drive (SSD)
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
本申请实施例提供了一种报文转发方法、装置、网络设备及存储介质,应用于网络设备,网络设备分别与第一网络中的第一设备和第二网络中的第二设备连接,所述方法包括:接收第一设备发送的第一报文;若第一报文属于目标确定性流,则按照第二网络采用的确定性传输的封装格式,将第一报文转换为第二报文;按照目标确定性流对应的目标调度周期,向第二设备转发第二报文。本申请实施例提供的技术方案中,一个网络设备在接收到来自第一网络中的目标确定性流的报文后,将第一报文转换为能够在第二网络中进行确定性传输的第二报文,通过一个网络设备,就能完成目标确定性流的报文在任两个实现确定性传输的网络之间转换,实现了复杂组网中报文的确定性传输。
Description
本申请涉及网络通信技术领域,涉及一种报文转发方法、装置、网络设备及存储介质。
目前,实现确定性传输的网络有很多,如FlexE(Flex Ethernet,灵活以太网)和DetNet(Deterministic Networking,确定性网络)等,不同网络采用不同的方式实现确定性传输,如FlexE采用硬管道方式实现确定性传输,DetNet基于CSFQ(Cyclic Specific Queuing and Forwarding,基于分段路由的周期具化的排队转发机制),采用软管道方式实现确定性传输。在单一网络中可以很好的实现确定性传输,但实际组网比较复杂,通常一个组网由多个实现确定性传输的网络构成,这导致报文的确定性传输无法实现。
发明内容
本申请实施例的目的在于提供一种报文转发方法、装置、网络设备及存储介质,以实现报文在复杂组网中的确定性传输。
第一方面,本申请实施例提供了一种报文转发方法,应用于网络设备,所述网络设备分别与第一网络中的第一设备和第二网络中的第二设备连接,所述方法包括:
接收所述第一设备发送的第一报文;
若所述第一报文属于目标确定性流,则按照所述第二网络采用的确定性传输的封装格式,将所述第一报文转换为第二报文;
按照所述目标确定性流对应的目标调度周期,向所述第二设备转发所述第二报文。
在一些实施例中,所述按照所述第二网络采用的确定性传输的封装格式,将所述第一报文转换为第二报文的步骤,包括:
剥离所述第一报文的第一封装信息,得到原始报文,所述第一封装信息为所述第一网络中传输所述目标确定性流的封装信息;
获取与所述原始报文匹配的第二封装信息,所述第二封装信息为所述第二网络中传输所述目标确定性流的封装信息;
按照所述第二网络采用的确定性传输的封装格式,将所述第二封装信息
封装至所述原始报文,得到第二报文。
在一些实施例中,所述获取与所述原始报文匹配的第二封装信息的步骤,包括:
获取所述原始报文包括的目标流信息;
根据预先存储的流信息与封装信息的对应关系,确定所述目标流信息对应的封装信息,作为与所述原始报文匹配的第二封装信息。
在一些实施例中,所述目标调度周期采用如下步骤确定:
根据预先存储的第一网络的调度周期与封装信息的对应关系,确定所述第一封装信息对应的初始调度周期;
根据预先存储的第一网络的调度周期与第二网络的调度周期的对应关系,确定所述初始调度周期对应的所述第二网络的目标调度周期。
在一些实施例中,所述目标调度周期采用如下步骤确定:
根据预先存储的第二网络的调度周期与封装信息的对应关系,确定所述第二封装信息对应的目标调度周期。
在一些实施例中,所述目标调度周期采用如下步骤确定:
获取接收到所述第一报文时的目标时间戳;
根据预先存储的时间戳、调度周期和所述目标确定性流对应的周期偏移的对应关系,确定所述目标时间戳对应的调度周期和周期偏移;
根据所确定的调度周期和周期偏移,确定目标调度周期。
在一些实施例中,当所述目标调度周期的数量为多个时,所述按照所述第二报文对应的目标调度周期,向所述第二网络中的设备转发所述第二报文的步骤,包括:
按照预先设定的多个目标调度周期的排列顺序,查找所转发的报文数量未到达预设数量的目标调度周期;
在查找到时,按照所查找到的目标调度周期,向所述第二网络中的设备转发所述第二报文。
在一些实施例中,所述第一网络为FlexE,所述第二网络为DetNet;或者,
所述第一网络为DetNet,所述第二网络为FlexE。
第二方面,本申请实施例提供了一种报文转发装置,应用于网络设备,所述网络设备分别与第一网络中的第一设备和第二网络中的第二设备连接,所述装置包括:
接收模块,用于接收所述第一设备发送的第一报文;
转换模块,用于若所述第一报文属于目标确定性流,则按照所述第二网络采用的确定性传输的封装格式,将所述第一报文转换为第二报文;
转发模块,用于按照所述目标确定性流对应的目标调度周期,向所述第二设备转发所述第二报文。
在一些实施例中,所述转换模块,包括:
获得子模块,用于剥离所述第一报文的第一封装信息,得到原始报文,所述第一封装信息为所述第一网络中传输所述目标确定性流的封装信息;
获取子模块,用于获取与所述原始报文匹配的第二封装信息,所述第二封装信息为所述第二网络中传输所述目标确定性流的封装信息;
封装子模块,用于按照所述第二网络采用的确定性传输的封装格式,将所述第二封装信息封装至所述原始报文,得到第二报文。
在一些实施例中,所述获取子模块,具体用于:
获取所述原始报文包括的目标流信息;
根据预先存储的流信息与封装信息的对应关系,确定所述目标流信息对应的封装信息,作为与所述原始报文匹配的第二封装信息。
在一些实施例中,所述装置还包括:确定模块,用于确定目标调度周期,具体用于:
根据预先存储的第一网络的调度周期与封装信息的对应关系,确定所述第一封装信息对应的初始调度周期;
根据预先存储的第一网络的调度周期与第二网络的调度周期的对应关系,确定所述初始调度周期对应的所述第二网络的目标调度周期。
在一些实施例中,所述装置还包括:确定模块,用于确定目标调度周期,具体用于:
根据预先存储的第二网络的调度周期与封装信息的对应关系,确定所述第二封装信息对应的目标调度周期。
在一些实施例中,所述装置还包括:确定模块,用于确定目标调度周期,具体用于:
获取接收到所述第一报文时的目标时间戳;
根据预先存储的时间戳、调度周期和所述目标确定性流对应的周期偏移的对应关系,确定所述目标时间戳对应的调度周期和周期偏移;
根据所确定的调度周期和周期偏移,确定目标调度周期。
在一些实施例中,所述转发模块,具体用于:
当所述目标调度周期的数量为多个时,按照预先设定的多个目标调度周期的排列顺序,查找所转发的报文数量未到达预设数量的目标调度周期;
在查找到时,按照所查找到的目标调度周期,向所述第二网络中的设备转发所述第二报文。
在一些实施例中,所述第一网络为FlexE,所述第二网络为DetNet;或者,
所述第一网络为DetNet,所述第二网络为FlexE。
第三方面,本申请实施例提供了一种网络设备,包括处理器、通信接口、存储器和通信总线,其中,处理器,通信接口,存储器通过通信总线完成相互间的通信;
存储器,用于存放计算机程序;
处理器,用于执行存储器上所存放的程序时,实现第一方面提供的任一方法步骤。
第四方面,本申请实施例提供了一种计算机可读存储介质,所述计算机可读存储介质内存储有计算机程序,所述计算机程序被处理器执行时实现第一方面提供的任一方法步骤。
本申请实施例提供的技术方案中,一个网络设备在接收到来自第一网络中的目标确定性流的报文(如第一报文)后,可以将第一报文转换为能够在第二网络中进行确定性传输的第二报文。这样,在由多个实现确定性传输的网络的复杂组网中,通过一个网络设备,就可以完成目标确定性流的报文在任两个实现确定性传输的网络之间转换,实现了复杂组网中报文的确定性传输。
此处所说明的附图用来提供对本申请的进一步理解,构成本申请的一部分,本申请的示意性实施例及其说明用于解释本申请,并不构成对本申请的不当限定。
图1为FlexE中数据帧的一种结构示意图;
图2为DetNet中基于CSFQ进行队列周期调度的一种流程示意图;
图3为本申请实施例提供的第一种由多个确定性网络构成的组网的结构示意图;
图4为本申请实施例提供的报文转发方法的一种流程示意图;
图5为本申请实施例提供的第二种由多个确定性网络构成的组网的结构示意图;
图6为本申请实施例提供的报文转换过程的第一种流程示意图;
图7为本申请实施例提供的报文转换的一种实现流程示意图;
图8为本申请实施例提供的报文转换过程的第二种流程示意图;
图9为本申请实施例提供的步骤S43的一种细化流程示意图;
图10为应用本申请实施例提供的报文转发方法进行报文转发过程的一种信令图;
图11为本申请实施例提供的报文转发装置的一种结构示意图;
图12为本申请实施例提供的网络设备的一种结构示意图。
为使本发明的目的、技术方案、及优点更加清楚明白,以下参照附图并举实施例,对本发明进一步详细说明。显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员所获得的所有其他实施例,都属于本发明保护的范围。
互联网(Internet)经过几十年的蓬勃发展,实现了人与人、人与物、物与物等之间的无缝连接,给人们在生活和工作上带来了很大的便利性,且产生了巨大影响。而在“智能电网场景”、“远程医疗”、“影音娱乐”和“工业远程控制”等场景中需要低时延、低抖动,即需要确定性传输;在多业务、大流量和广域等复杂场景中也需要端对端的确定性传输。
目前,实现确定性传输的网络有很多,如FlexE和DetNet等,不同网络采用不同的方式实现确定性传输,下面以FlexE和DetNet为例。
(1)FlexE采用硬管道方式实现确定性传输。
FlexE是承载网实现业务隔离承载和网络分片的一种接口技术。近年来,FlexE技术发展迅速,被各大标准组织广泛接纳。FlexE基于时隙划分、各个时隙可以灵活组合等技术,在数据传输方面FlexE具有:多粒度速率灵活可变、与光传输能力解耦、面向多业务承载的增强QoS(Quality of Service,服务质量)等能力,可以满足带宽按需分配、带宽任意扩展、业务隔离、确定性传输等需求。
以100G接口为例,定义20个通道,实现每个通道5G颗粒度的切片,
在100G接口的66B码流,以20blocks(数据块)为一组数据块,按照1023×20数据块的间隔插入FlexE的overhead(开销头),得到一个数据帧,如图1所示的数据帧中,按照传输顺序,在两个开销头之间可以传输1023×20个数据块。其中,一个时隙为一个通道,如图1中的时隙0-时隙19,一个时隙传输一个数据块,一个数据帧中的相同编号的时隙分配给一个用户,共传输5G数据,一个用户可以占用一个或多个时隙,实现时隙灵活组合,进而实现确定性传输。
(2)DetNet基于CSFQ,采用软管道方式实现确定性传输。
CSQF是DetNet在广域网中实现端对端确定性传输的关键技术。CSQF在传统IP(Internet Protocol,互联网协议)的基础上引入周期转发的思想,相应的周期信息会封装在诸如SRv6(Segment Routing IPv6,基于IPv6转发平面的段路由)的SID(Segment Identify,段标识)中。在转发节点上用时分方式划分成多个时间片T,某个确定性流的报文只能在为该确定性流指定的时间片内发送,因此转发节点内的发送时延抖动被限制在1个时间片T以内。如图2所示的基于CSFQ进行队列周期调度的示意图,转发节点划分了4个时间片,即T0~T3,一个确定性流对应时间片T2,按照时间顺序,转发节点先后接收到属于该确定性流的报文1-报文3,则报文1-报文3均在时间片T2内转发,实现了时间上限和时间下限的可控,实现了该确定性流的时延抖动被限制在1个T2以内,达到了确定性传输的目标。
在单一网络中可以很好地实现确定性传输,但实际组网比较复杂,通常一个组网由多个实现确定性传输的网络构成,这导致确定性传输无法实现。如图3所示的一个组网,两端是FlexE,中间是DetNet,它们之间需要实现端对端的确定性传输,即,从左侧的FlexE到右侧的FlexE,中间需要经过DetNet并实现端对端的确定性传输。由于实现确定性传输的不同网络中,采用不同的方式进行确定性传输,如FlexE采用硬管道方式实现确定性传输,DetNet基于CSFQ采用软管道方式实现确定性传输,这导致报文的确定性传输无法实现。
为了实现在复杂组网中的确定性传输,如图4所示,本申请实施例提供了一种报文转发方法,应用于网络设备,网络设备分别与第一网络中的第一设备和第二网络中的第二设备连接,该方法包括如下步骤。
步骤S41,接收第一设备发送的第一报文。
步骤S42,若第一报文属于目标确定性流,则按照第二网络采用的确定性传输的封装格式,将第一报文转换为第二报文。
步骤S43,按照目标确定性流对应的目标调度周期,向第二设备转发第二报文。
本申请实施例提供的技术方案中,一个网络设备在接收到来自第一网络中的目标确定性流的报文(如第一报文)后,可以将第一报文转换为能够在第二网络中进行确定性传输的第二报文。这样,在由多个实现确定性传输的网络的复杂组网中,通过一个网络设备,就可以完成目标确定性流的报文在任两个实现确定性传输的网络之间转换,实现了复杂组网中报文的确定性传输。
此外,本申请实施例提供的技术方案中,通过一个网络设备完成报文转换,以及两个网络之间的确定性传输,不会引入额外的抖动等不确定性因素,能够很好的控制端对端的确定性指标。
本申请实施例中,第一网络和第二网络为两个采用不同方式实现确定性传输的网络。例如,第一网络为FlexE,第二网络为DetNet;或者,第一网络为DetNet,第二网络为FlexE。网络设备为连通第一网络和第二网络的设备,如图5所示组网中的ASBR(Autonomous System Boundary Router,自治系统边界路由器)1和ASBR 2。图5所示组网中包括3个AS(Autonomous System,自治系统),分别为AS1-AS3,还包括多个PE(Provider Edge,提供商边缘)设备和多个P(Provider,提供商)设备,如PE1-PE4,P1-P3等。其中,AS1和AS3中部署FlexE,AS2中部署DetNet,第一网络可以为AS1中部署的FlexE,第二网络为AS2中部署的DetNet;第一网络也可以为AS2中部署的DetNet,第二网络为AS3中部署的FlexE或AS1中部署的FlexE。
上述步骤S41中,第一网络中包括一个或多个设备,如图5中的PE1-PE4、P1-P3等。第一报文可以为第一网络中传输的任一报文,该第一报文可以为确定性流的任一报文,也可以为非确定性流的任一报文。
在第一网络与第二网络之间通信时,第一网络中的设备发送第一报文至网络设备。网络设备接收该第一报文。
上述步骤S42中,不同网络中,确定性传输的封装格式不同。如图6所示的报文转换示意图,其中,FlexE中确定性传输的封装格式为:PHY(物理层)头、FlexE头、IP头和payload(载荷),用于确定性传输的调度周期等信
息封装在FlexE头中;DetNet中确定性传输的封装格式为:PHY头、IP头、SRv6头和payload,用于确定性传输的调度周期等信息封装在SRv6头中。
网络设备在接收到第一报文后,识别第一报文所属的数据流是否为目标确定性流。若第一报文所属的数据流为目标确定性流,则网络设备剥离第一报文包括的第一网络中确定性传输的封装,得到原始报文,并按照第二网络采用的确定性传输的封装格式,重新封装原始报文,得到第二报文。这样就完成了将第一报文转换为第二报文。第二报文包括第二网络采用的确定性传输的封装,此时,第二报文可以在第二网络中进行确定性传输。
如图6所示,假设第一网络为FlexE,第二网络为DetNet。ASBR接收到来自FlexE的确定性流的一个报文1后,可以剥离PHY头和FlexE头等FlexE中确定性传输的封装,得到原始的IP报文;之后,按照DetNet中确定性传输的封装格式,为原始的IP报文封装PHY头和SRv6头,得到在DetNet中转发的报文2。此时报文2可以在DetNet中进行确定性传输,如图6中,报文2可以沿着节点A-节点D的路径,在指定的时间片进行确定性转发。
若第一报文所属的数据流不是确定性流,则网络设备按照第二网络中传输流的封装格式,将第一报文转换为第二报文,并转发。具体如下。
步骤a1,网络设备剥离第一报文的第三封装信息,得到原始报文,第三封装信息为第一网络中传输第一报文所属于的流的封装信息,如上述PHY头和FlexE头所携带的信息。因为,第一报文所属的数据流不是确定性流,此时的第三封装信息中不携带第一网络中确定性传输的调度周期等信息。
步骤a2,获取与原始报文匹配的第四封装信息,第四封装信息为第二网络中传输流的封装信息,如上述PHY头和SRv6头所携带的信息。因为,第一报文所属的数据流不是确定性流,此时的第四封装信息中不携带第二网络中确定性传输的调度周期等信息。
步骤a3,按照第二网络中传输流的封装格式,将第四封装信息封装至原始报文,得到第二报文。
后续,网络设备就可以排队转发该第二报文。
上述步骤S43中,目标调度周期为第二网络中第一报文所属的目标确定性流对应的调度周期,也就是,第二报文所属的目标确定性流对应的调度周期。不同网络中,调度周期的表现形式不同。例如,在FlexE中,调度周期表现形式为时隙。如图1所示的时隙0-时隙19;在DetNet中,调度周期表现形
式为时间片(也可以称为调度队列),如图2所示时间片T0-T3。
在获得第二报文后,网络设备获得目标调度周期,当到达目标调度周期时,转发第二报文。例如图6所示,时间片包括T1-T6,节点A在时间片T1转发报文,节点B在时间片T3转发报文,节点C在时间片T4转发报文,节点D在时间片T6转发报文。
在一些实施例中,如图7所示的报文转换(即上述步骤S42中按照第二网络采用的确定性传输的封装格式,将第一报文转换为第二报文)的一种实现流程,可以包括如下步骤。
步骤S71,剥离第一报文的第一封装信息,得到原始报文,第一封装信息为第一网络中传输目标确定性流的封装信息。
步骤S72,获取与原始报文匹配的第二封装信息,第二封装信息为第二网络中传输目标确定性流的封装信息。
步骤S73,按照第二网络采用的确定性传输的封装格式,将第二封装信息封装至原始报文,得到第二报文。
本申请实施例提供的技术方案中,网络设备剥离第一报文的第一封装信息,并获取与原始报文匹配的第二封装信息,从而将可以在第一网络中确定性传输的第一报文转换为第二报文。通过一台网络设备,就可以完成目标确定性流的报文在任两个实现确定性传输的网络之间转换,实现了复杂组网中报文的确定性传输。
上述步骤S71中,第一封装信息用于在第一网络中传输第一报文所属的目标确定性流,即包括目标确定性流在第一网络中进行确定性传输的调度周期等信息。例如,当第一网络为FlexE时,第一封装信息可以包括图6中携带调度周期等信息的FlexE头和PHY头。本申请实施例中,网络设备剥离第一报文的第一封装信息,得到原始报文。
上述步骤S72中,第二封装信息用于在第二网络中传输第二报文所属的目标确定性流,即包括目标确定性流在第二网络中进行确定性传输的调度周期等信息。例如,当第二网络为DetNet时,第二封装信息可以包括图6中携带调度周期等信息的SRv6头和PHY头。本申请实施例中,网络设备获取与原始报文匹配的第二封装信息,以便后续第二网络通过第二封装信息确定性传输第二报文。
本申请实施例中,网络设备可以通过如下方式获取第二封装信息:网络
设备预先存储流信息与封装信息的对应关系,其中流信息可以为流标识或五元组等;网络设备获取原始报文包括的目标流信息;根据预先存储的流信息与封装信息的对应关系,确定目标流信息对应的封装信息,作为与原始报文匹配的第二封装信息。
本申请实施例中,网络设备还可以通过其他方式获取第二封装信息,对此不进行限定。
上述步骤S73中,网络设备将步骤S72中得到的第二封装信息封装至原始报文,得到可以在第二网络中确定性传输的第二报文。例如,如图6所示,网络设备将步骤S72中获得的SRv6头和PHY头封装到原始报文中,得到第二报文,第二报文包括:PHY头、IP头、SRv6头和payload。
本申请实施例中,第一报文和第二报文属于目标确定性流时,目标调度周期可以采用以下任一种方式确定。
方式1,根据预先存储的第一网络的调度周期与封装信息的对应关系,确定第一封装信息对应的初始调度周期;根据预先存储的第一网络的调度周期与第二网络的调度周期的对应关系,确定初始调度周期对应的第二网络的目标调度周期。
本申请实施例中,网络设备预先存储了第一网络的调度周期和封装信息的对应关系,以及第一网络的调度周期与第二网络的调度周期的对应关系。
网络设备基于第一报文携带的第一封装信息,以及预先存储的第一网络的调度周期与封装信息的对应关系,可以确定出第一网络中目标确定性流对应的调度周期,即初始调度周期。之后,网络设备基于初始调度周期,以及预先存储的第一网络的调度周期与第二网络的调度周期的对应关系,确定出第二网络中目标确定性流对应的调度周期,即目标调度周期。
例如图8所示的报文转换示意图,其中,ASBR中存储了调度队列与时隙的对应关系,如图8中的时隙1、时隙2等与调度队列的映射关系。ASBR在接收到来自FlexE的确定性流时,根据调度队列与时隙的映射关系,确定来自FlexE的不同确定性流的转发时隙所对应的调度队列,即目标调度周期,如图8所示,来自FlexE的确定性流包括FlexE1-FlexE3,ASBR确定FlexE1的转发时隙所对应的调度队列1,FlexE2的转发时隙所对应的调度队列2,FlexE3的转发时隙所对应的调度队列3。进而,ASBR在每个调度队列对应的时间片,转发该调度队列中的报文。其中,存储在同一调度队列的报文称为聚合报文。
对于非确定性流,可以通过以太口转发。
本申请实施例中,网络设备中预先存储了第一网络的调度周期与第二网络的调度周期的对应关系,利用预先存储的第一网络的调度周期与第二网络的调度周期的对应关系,确定初始调度周期对应的第二网络的目标调度周期,并按照确定出的目标调度周期向第二网络转发报文,可以实现第一网络和第二网络之间的调度周期映射,达到端对端的资源规划和信息一致化传递,通过两个网络的调度周期的映射来传递报文,不会出现中间信息丢失或者错位,从而可以在复杂组网中实现全网确定性传输资源的统一规划和统一部署。
方式2,获取接收到第一报文时的目标时间戳;根据预先存储的时间戳、调度周期和目标确定性流对应的周期偏移的对应关系,确定目标时间戳对应的调度周期和周期偏移;根据所确定的调度周期和周期偏移,确定目标调度周期。
本申请实施例中,网络设备预先存储了时间戳、调度周期和周期偏移的对应关系。其中,周期偏移可以根据网络设备处理目标确定性流的报文的时间确定,例如,周期偏移为网络设备处理目标确定性流的报文所需最长时间对应的调度周期个数。上述对应关系包括的调度周期为时间戳所对应的调度周期。
网络设备接收到第一报文后,可以给第一报文打上目标时间戳,也就是接收到第一报文的时间。之后,网络设备根据目标时间戳、预先存储的时间戳、调度周期和目标确定性流对应的周期偏移的对应关系,确定目标时间戳对应的调度周期和周期偏移;进而将目标时间戳对应的调度周期偏移目标时间戳对应的周期偏移,得到目标调度周期。
例如,如图6所示,FlexE中确定性流包括FlexE1-FlexE3,以FlexE1和FlexE2为例。在节点A中,FlexE1中报文的目标时间戳为2微秒,FlexE2中报文的目标时间戳为12微秒,调度周期包括时间片T1(0微秒~10微秒)、时间片T2(10微秒~20微秒)、时间片T3(20微秒~30微秒),2微秒属于时间片T1的0微秒~10微秒,12微秒属于时间片T2的10微秒~20微秒,FlexE1中的报文对应的周期偏移为2个调度周期,FlexE2中的报文对应的周期偏移为1个调度周期,则根据预先存储的时间戳、调度周期和确定性流对应的周期偏移的对应关系,可以确定出FlexE1中报文的目标时间戳对应的调度周期为时间片T1,结合周期偏移,确定目标调度周期为T1+2=T3;FlexE2中报文
的目标时间戳对应的调度周期为时间片T2,对应的周期偏移,确定目标调度周期为T2+1=T3。
方式3,根据预先存储的第二网络的调度周期与封装信息的对应关系,确定第二封装信息对应的目标调度周期。
本申请实施例中,第二封装信息中包含调度周期等信息。在获得第二封装信息后,网络设备可以根据预先存储的第二网络的调度周期与封装信息的对应关系,查找到第二封装信息对应的调度周期,作为目标调度周期。
在一些实施例中,目标调度周期的数量可以为1个或多个。
当目标调度周期的数量为1个时,网络设备可以将第二报文存储至该目标调度周期对应的调度队列,当到达目标调度周期时,转发该调度队列中的报文。
当目标调度周期的数量为多个时,步骤S43可以包括如下步骤,如图9所示。
步骤S91,按照预先设定的多个目标调度周期的排列顺序,查找所转发的报文数量未到达预设数量的目标调度周期。
步骤S92,在查找到时,按照所查找到的目标调度周期,向第二网络中的设备转发第二报文。
本申请实施例提供的技术方案中,当确定出的目标调度周期数量有多个时,网络设备按照目标调度周期的预设排列顺序,依次进行查找,并按照第一个查找到的转发报文数量未达到预设数量的目标调度周期,转发第二报文。应用本申请实施例提供的技术方案,避免了一个调度周期转发的报文过多或过少的问题,提高了报文传输效率。
上述步骤S91中,调度周期的排列顺序可以根据实际需求进行设定,例如,可以按照调度周期的序号进行排序。
当确定出的目标调度周期有多个时,按照预先设定的多个目标调度周期的排列顺序,网络设备查找多个目标调度周期中转发的报文数量未到达预设数量的目标调度周期。
例如,第二网络为DetNet,网络设备确定出第二报文在第二网络中的目标调度周期为时间片T1、时间片T2和时间片T3,相应的排列顺序为时间片T1、时间片T2和时间片T3,时间片T1、时间片T2和时间片T3转发的报文预设数量均为3。网络设备按照时间片T1、时间片T2和时间片T3的顺序,
先查找时间片T1对应的调度队列中是否存储了3个报文,若所转发的报文数量存储了2个报文,2<3,说明时间片T1所转发的报文数量未达到3,将时间片T1作为目标调度周期,结束查找时间片对应的调度队列中是否存储了3个报文的操作;若所转发的报文数量存储了3个报文,说明时间片T1所转发的报文数量达到3,继续查找时间片T2对应的调度队列中是否存储了3个报文,依次类推,直至查找到目标调度周期。
上述步骤S92中,网络设备根据步骤S91中查找到的所转发的报文数量未到达预设数量的目标调度周期,向第二网络中的设备转发第二报文。例如,上述步骤S91中,时间片T2为查找到的所转发的报文数量未到达预设数量的目标调度周期,则网络设备根据时间片T2,向第二网络(这里是DetNet)中的设备转发第二报文。
下面结合图10所示的报文转发的信令图,对本申请实施例提供的报文转发方法进行详细说明。其中,第一网络为FlexE,第二网络为DetNet。网络设备包括与FlexE连接的逻辑接口模块(简称为FlexE逻辑接口模块)、与DetNet连接的逻辑接口模块(简称为DetNet逻辑接口模块)以及包处理引擎。
步骤S101,FlexE逻辑接口模块接收来自FlexE的报文(如第一报文),经过时隙处理后交给FlexE Client(客户端)。其中,所接到的报文可以以64B/66B编码比特流的形式传输。
步骤S102,FlexE Client给接收到的报文打上时间戳,并交给包处理引擎。FlexE Client为FlexE逻辑接口模块上集成的一个功能,FlexE Client给接收到的报文打上时间戳,可以理解为FlexE逻辑接口模块给接收到的报文打上时间戳。
步骤S103,包处理引擎识别接收到的报文(如第一报文)是否属于确定性流。
步骤S104,若接收到的报文属于确定性流,则包处理引擎对报文进行队列映射、多发选收、bypass TM(bypass Transmission Management,旁路流管理)等确定性传输操作,得到新的报文(如第二报文)。新的报文包括SRv6头,且SRv6头中的SID携带的队列信息等。
步骤S105,包处理引擎根据SID携带的队列信息等,将新的报文转发给相应的DetNet逻辑接口模块。
步骤S106,DetNet逻辑接口模块根据SID携带的队列信息进行确定性调
度。
本申请实施例中,当从DetNet到FlexE转发报文时,网络设备的处理原理相同。例如,从DetNet到FlexE转发报文时,针对属于确定性流的报文进行优先处理,包括:确定性包优先处理、经过队列处理后交给DetNet Client、Calendar(日历)处理、时隙交织等环节,具体参考上述步骤S101-步骤S106即可。
应用本申请实施例提供的技术方案,通过一个网络设备,实现了FlexE和DetNet的融合。网络设备既支持FlexE,又支持DetNet,可以对接FlexE和DetNet,同时还可以实现二者之间的报文转换,从而实现了组网中各个网络之间的确定性传输。另外,通过FlexE与DetNet之间的时隙映射,达到端对端的确定性传输,便于确定性传输资源的统一规划。
与上述报文转发方法相对应,本申请实施例还提供了一种报文转发装置,如图11所示,应用于网络设备,网络设备分别与第一网络中的第一设备和第二网络中的第二设备连接,该装置包括:
接收模块111,用于接收第一设备发送的第一报文;
转换模块112,用于若第一报文属于目标确定性流,则按照第二网络采用的确定性传输的封装格式,将第一报文转换为第二报文;
转发模块113,用于按照目标确定性流对应的目标调度周期,向第二设备转发第二报文。
本申请实施例提供的技术方案中,一个网络设备在接收到来自第一网络中的目标确定性流的报文(如第一报文)后,可以将第一报文转换为能够在第二网络中进行确定性传输的第二报文。这样,在由多个实现确定性传输的网络的复杂组网中,通过一个网络设备,就可以完成目标确定性流的报文在任两个实现确定性传输的网络之间转换,实现了复杂组网中报文的确定性传输。
在一些实施例中,上述转换模块112可以包括:
获得子模块,用于剥离第一报文的第一封装信息,得到原始报文,第一封装信息为第一网络中传输目标确定性流的封装信息;
获取子模块,用于获取与原始报文匹配的第二封装信息,第二封装信息为第二网络中传输目标确定性流的封装信息;
封装子模块,用于按照第二网络采用的确定性传输的封装格式,将第二
封装信息封装至原始报文,得到第二报文。
在一些实施例中,上述获取子模块,具体可以用于:
获取原始报文包括的目标流信息;
根据预先存储的流信息与封装信息的对应关系,确定目标流信息对应的封装信息,作为与原始报文匹配的第二封装信息。
在一些实施例中,上述报文转发装置还可以包括:确定模块,用于确定目标调度周期,具体可以用于:
根据预先存储的第一网络的调度周期与封装信息的对应关系,确定第一封装信息对应的初始调度周期;
根据预先存储的第一网络的调度周期与第二网络的调度周期的对应关系,确定初始调度周期对应的第二网络的目标调度周期。
在一些实施例中,上述报文转发装置还可以包括:确定模块,用于确定目标调度周期,具体可以用于:
根据预先存储的第二网络的调度周期与封装信息的对应关系,确定第二封装信息对应的目标调度周期。
在一些实施例中,上述报文转发装置还可以包括:确定模块,用于确定目标调度周期,具体可以用于:
获取接收到第一报文时的目标时间戳;
根据预先存储的时间戳、调度周期和目标确定性流对应的周期偏移的对应关系,确定目标时间戳对应的调度周期和周期偏移;
根据所确定的调度周期和周期偏移,确定目标调度周期。
在一些实施例中,上述转发模块113,具体可以用于:
当目标调度周期的数量为多个时,按照预先设定的多个目标调度周期的排列顺序,查找所转发的报文数量未到达预设数量的目标调度周期;
在查找到时,按照所查找到的目标调度周期,向第二网络中的设备转发第二报文。
在一些实施例中,第一网络可以为FlexE,第二网络可以为DetNet;或者,
第一网络可以为DetNet,第二网络可以为FlexE。
本申请实施例中,当第一网络为FlexE,第二网络为DetNet时,接收模块111可以理解为FlexE逻辑接口模块,转换模块112可以理解为包处理引擎,转发模块113可以理解为DetNet逻辑接口模块。当第一网络为DetNet,第二
网络为FlexE时,接收模块111可以理解为DetNet逻辑接口模块,转换模块112可以理解为包处理引擎,转发模块113可以理解为FlexE逻辑接口模块。
以第一网络为FlexE,第二网络为DetNet为例。这种情况下,接收模块111接收来自FlexE的报文,经过时隙处理后,给接收到的报文打上时间戳,并交给转换模块112。
转换模块112识别接收到的报文是否属于确定性流,若接收到的报文属于确定性流,则对报文进行队列映射、多发选收、bypass TM等确定性传输操作,得到新的报文;根据SID携带的队列信息等,将新的报文转发给相应的转发模块113。
转发模块113根据SID携带的队列信息进行确定性调度。
本申请实施例还提供了一种网络设备,如图12所示,包括处理器121、通信接口122、存储器123和通信总线124,其中,处理器121,通信接口122,存储器123通过通信总线124完成相互间的通信;
存储器123,用于存放计算机程序;
处理器121,用于执行存储器123上所存放的程序时,实现上述任一的报文转发方法。
上述网络设备提到的通信总线可以是外设部件互连标准(Peripheral Component Interconnect,PCI)总线或扩展工业标准结构(Extended Industry Standard Architecture,EISA)总线等。该通信总线可以分为地址总线、数据总线、控制总线等。为便于表示,图中仅用一条粗线表示,但并不表示仅有一根总线或一种类型的总线。
通信接口用于上述网络设备与其他设备之间的通信。
存储器可以包括随机存取存储器(Random Access Memory,RAM),也可以包括非易失性存储器(Non-Volatile Memory,NVM),例如至少一个磁盘存储器。可选的,存储器还可以是至少一个位于远离前述处理器的存储装置。
上述的处理器可以是通用处理器,包括中央处理器(Central Processing Unit,CPU)、网络处理器(Network Processor,NP)等;还可以是数字信号处理器(Digital Signal Processor,DSP)、专用集成电路(Application Specific Integrated Circuit,ASIC)、现场可编程门阵列(Field-Programmable Gate Array,FPGA)或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件。
在本申请提供的又一实施例中,还提供了一种计算机可读存储介质,该计算机可读存储介质内存储有计算机程序,所述计算机程序被处理器执行时实现上述任一报文转发方法的步骤。
在本申请提供的又一实施例中,还提供了一种包含指令的计算机程序产品,当其在计算机上运行时,使得计算机执行上述实施例中任一报文转发方法。
在上述实施例中,可以全部或部分地通过软件、硬件、固件或者其任意组合来实现。当使用软件实现时,可以全部或部分地以计算机程序产品的形式实现。所述计算机程序产品包括一个或多个计算机指令。在计算机上加载和执行所述计算机程序指令时,全部或部分地产生按照本申请实施例所述的流程或功能。所述计算机可以是通用计算机、专用计算机、计算机网络、或者其他可编程装置。所述计算机指令可以存储在计算机可读存储介质中,或者从一个计算机可读存储介质向另一个计算机可读存储介质传输,例如,所述计算机指令可以从一个网站站点、计算机、服务器或数据中心通过有线(例如同轴电缆、光纤、数字用户线(DSL))或无线(例如红外、无线、微波等)方式向另一个网站站点、计算机、服务器或数据中心进行传输。所述计算机可读存储介质可以是计算机能够存取的任何可用介质或者是包含一个或多个可用介质集成的服务器、数据中心等数据存储设备。所述可用介质可以是磁性介质,(例如,软盘、硬盘、磁带)、光介质(例如,DVD)、或者半导体介质(例如固态硬盘Solid State Disk(SSD))等。
需要说明的是,在本文中,诸如第一和第二等之类的关系术语仅仅用来将一个实体或者操作与另一个实体或操作区分开来,而不一定要求或者暗示这些实体或操作之间存在任何这种实际的关系或者顺序。而且,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者设备不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者设备所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括所述要素的过程、方法、物品或者设备中还存在另外的相同要素。
本说明书中的各个实施例均采用相关的方式描述,各个实施例之间相同相似的部分互相参见即可,每个实施例重点说明的都是与其他实施例的不同
之处。尤其,对于装置、设备及存储介质实施例而言,由于其基本相似于方法实施例,所以描述的比较简单,相关之处参见方法实施例的部分说明即可。
以上所述仅为本发明的较佳实施例,并不用以限制本发明,凡在本发明的精神和原则之内,所做的任何修改、等同替换、改进等,均应包含在本发明保护的范围之内。
Claims (18)
- 一种报文转发方法,其特征在于,应用于网络设备,所述网络设备分别与第一网络中的第一设备和第二网络中的第二设备连接,所述方法包括:接收所述第一设备发送的第一报文;若所述第一报文属于目标确定性流,则按照所述第二网络采用的确定性传输的封装格式,将所述第一报文转换为第二报文;按照所述目标确定性流对应的目标调度周期,向所述第二设备转发所述第二报文。
- 根据权利要求1所述的方法,其特征在于,所述按照所述第二网络采用的确定性传输的封装格式,将所述第一报文转换为第二报文的步骤,包括:剥离所述第一报文的第一封装信息,得到原始报文,所述第一封装信息为所述第一网络中传输所述目标确定性流的封装信息;获取与所述原始报文匹配的第二封装信息,所述第二封装信息为所述第二网络中传输所述目标确定性流的封装信息;按照所述第二网络采用的确定性传输的封装格式,将所述第二封装信息封装至所述原始报文,得到第二报文。
- 根据权利要求2所述的方法,其特征在于,所述获取与所述原始报文匹配的第二封装信息的步骤,包括:获取所述原始报文包括的目标流信息;根据预先存储的流信息与封装信息的对应关系,确定所述目标流信息对应的封装信息,作为与所述原始报文匹配的第二封装信息。
- 根据权利要求2或3所述的方法,其特征在于,所述目标调度周期采用如下步骤确定:根据预先存储的第一网络的调度周期与封装信息的对应关系,确定所述第一封装信息对应的初始调度周期;根据预先存储的第一网络的调度周期与第二网络的调度周期的对应关系,确定所述初始调度周期对应的所述第二网络的目标调度周期。
- 根据权利要求2或3所述的方法,其特征在于,所述目标调度周期采用如下步骤确定:根据预先存储的第二网络的调度周期与封装信息的对应关系,确定所述第二封装信息对应的目标调度周期。
- 根据权利要求1-3任一项所述的方法,其特征在于,所述目标调度周期采用如下步骤确定:获取接收到所述第一报文时的目标时间戳;根据预先存储的时间戳、调度周期和所述目标确定性流对应的周期偏移的对应关系,确定所述目标时间戳对应的调度周期和周期偏移;根据所确定的调度周期和周期偏移,确定目标调度周期。
- 根据权利要求1-3任一项所述的方法,其特征在于,当所述目标调度周期的数量为多个时,所述按照所述第二报文对应的目标调度周期,向所述第二网络中的设备转发所述第二报文的步骤,包括:按照预先设定的多个目标调度周期的排列顺序,查找所转发的报文数量未到达预设数量的目标调度周期;在查找到时,按照所查找到的目标调度周期,向所述第二网络中的设备转发所述第二报文。
- 根据权利要求1-3任一项所述的方法,其特征在于,所述第一网络为FlexE,所述第二网络为DetNet;或者,所述第一网络为DetNet,所述第二网络为FlexE。
- 一种报文转发装置,其特征在于,应用于网络设备,所述网络设备分别与第一网络中的第一设备和第二网络中的第二设备连接,所述装置包括:接收模块,用于接收所述第一设备发送的第一报文;转换模块,用于若所述第一报文属于目标确定性流,则按照所述第二网络采用的确定性传输的封装格式,将所述第一报文转换为第二报文;转发模块,用于按照所述目标确定性流对应的目标调度周期,向所述第二设备转发所述第二报文。
- 根据权利要求9所述的装置,其特征在于,所述转换模块,包括:获得子模块,用于剥离所述第一报文的第一封装信息,得到原始报文,所述第一封装信息为所述第一网络中传输所述目标确定性流的封装信息;获取子模块,用于获取与所述原始报文匹配的第二封装信息,所述第二封装信息为所述第二网络中传输所述目标确定性流的封装信息;封装子模块,用于按照所述第二网络采用的确定性传输的封装格式,将所述第二封装信息封装至所述原始报文,得到第二报文。
- 根据权利要求10所述的装置,其特征在于,所述获取子模块,具体 用于:获取所述原始报文包括的目标流信息;根据预先存储的流信息与封装信息的对应关系,确定所述目标流信息对应的封装信息,作为与所述原始报文匹配的第二封装信息。
- 根据权利要求10或11所述的装置,其特征在于,所述装置还包括:确定模块,用于确定目标调度周期,具体用于:根据预先存储的第一网络的调度周期与封装信息的对应关系,确定所述第一封装信息对应的初始调度周期;根据预先存储的第一网络的调度周期与第二网络的调度周期的对应关系,确定所述初始调度周期对应的所述第二网络的目标调度周期。
- 根据权利要求10或11所述的装置,其特征在于,所述装置还包括:确定模块,用于确定目标调度周期,具体用于:根据预先存储的第二网络的调度周期与封装信息的对应关系,确定所述第二封装信息对应的目标调度周期。
- 根据权利要求9-11任一项所述的装置,其特征在于,所述装置还包括:确定模块,用于确定目标调度周期,具体用于:获取接收到所述第一报文时的目标时间戳;根据预先存储的时间戳、调度周期和所述目标确定性流对应的周期偏移的对应关系,确定所述目标时间戳对应的调度周期和周期偏移;根据所确定的调度周期和周期偏移,确定目标调度周期。
- 根据权利要求9-11任一项所述的装置,其特征在于,所述转发模块,具体用于:当所述目标调度周期的数量为多个时,按照预先设定的多个目标调度周期的排列顺序,查找所转发的报文数量未到达预设数量的目标调度周期;在查找到时,按照所查找到的目标调度周期,向所述第二网络中的设备转发所述第二报文。
- 根据权利要求9-11任一项所述的装置,其特征在于,所述第一网络为FlexE,所述第二网络为DetNet;或者,所述第一网络为DetNet,所述第二网络为FlexE。
- 一种网络设备,其特征在于,包括处理器、通信接口、存储器和通信总线,其中,处理器,通信接口,存储器通过通信总线完成相互间的通信;存储器,用于存放计算机程序;处理器,用于执行存储器上所存放的程序时,实现权利要求1-8任一所述的方法步骤。
- 一种计算机可读存储介质,其特征在于,所述计算机可读存储介质内存储有计算机程序,所述计算机程序被处理器执行时实现权利要求1-8任一所述的方法步骤。
Priority Applications (2)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202380009328.7A CN119605153A (zh) | 2023-06-07 | 2023-06-07 | 一种报文转发方法、装置、网络设备及存储介质 |
| PCT/CN2023/098815 WO2024250192A1 (zh) | 2023-06-07 | 2023-06-07 | 一种报文转发方法、装置、网络设备及存储介质 |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| PCT/CN2023/098815 WO2024250192A1 (zh) | 2023-06-07 | 2023-06-07 | 一种报文转发方法、装置、网络设备及存储介质 |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| WO2024250192A1 true WO2024250192A1 (zh) | 2024-12-12 |
Family
ID=93794730
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| PCT/CN2023/098815 Ceased WO2024250192A1 (zh) | 2023-06-07 | 2023-06-07 | 一种报文转发方法、装置、网络设备及存储介质 |
Country Status (2)
| Country | Link |
|---|---|
| CN (1) | CN119605153A (zh) |
| WO (1) | WO2024250192A1 (zh) |
Citations (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20190097884A1 (en) * | 2017-09-25 | 2019-03-28 | Cisco Technology, Inc. | Deterministic stitching of deterministic segments across distinct deterministic domains |
| CN111566957A (zh) * | 2018-04-28 | 2020-08-21 | 华为技术有限公司 | 报文处理方法及设备 |
| CN112511988A (zh) * | 2020-03-06 | 2021-03-16 | 中兴通讯股份有限公司 | 报文转发方法、设备、系统、网络设备和存储介质 |
| CN112995064A (zh) * | 2021-04-21 | 2021-06-18 | 鹏城实验室 | 一种时间敏感网络报文转发方法、装置、终端及存储介质 |
| CN116112416A (zh) * | 2021-11-11 | 2023-05-12 | 中兴通讯股份有限公司 | 报文转发方法、电子设备及存储介质 |
Family Cites Families (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN114615197B (zh) * | 2022-04-07 | 2024-09-03 | 中国电信股份有限公司 | 报文转发方法、装置、电子设备及存储介质 |
-
2023
- 2023-06-07 WO PCT/CN2023/098815 patent/WO2024250192A1/zh not_active Ceased
- 2023-06-07 CN CN202380009328.7A patent/CN119605153A/zh not_active Withdrawn
Patent Citations (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20190097884A1 (en) * | 2017-09-25 | 2019-03-28 | Cisco Technology, Inc. | Deterministic stitching of deterministic segments across distinct deterministic domains |
| CN111566957A (zh) * | 2018-04-28 | 2020-08-21 | 华为技术有限公司 | 报文处理方法及设备 |
| CN112511988A (zh) * | 2020-03-06 | 2021-03-16 | 中兴通讯股份有限公司 | 报文转发方法、设备、系统、网络设备和存储介质 |
| CN112995064A (zh) * | 2021-04-21 | 2021-06-18 | 鹏城实验室 | 一种时间敏感网络报文转发方法、装置、终端及存储介质 |
| CN116112416A (zh) * | 2021-11-11 | 2023-05-12 | 中兴通讯股份有限公司 | 报文转发方法、电子设备及存储介质 |
Also Published As
| Publication number | Publication date |
|---|---|
| CN119605153A (zh) | 2025-03-11 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| JP7667879B2 (ja) | パケット伝送方法及びパケット伝送装置 | |
| US7206288B2 (en) | Methods and apparatus for characterizing a route in fibre channel fabric | |
| JP7026788B2 (ja) | ターゲット伝送ルートを取得するための方法、関連デバイス、およびシステム | |
| JP2020508004A (ja) | パケット処理方法および装置 | |
| JP2005525025A (ja) | パケット・カプセル化を用いたスイッチング・アーキテクチャー | |
| WO2011160367A1 (zh) | 网络地址转换转发方法及装置 | |
| CN112134724A (zh) | 一种路径确定方法、装置和系统 | |
| WO2023005378A1 (zh) | 一种级联ont的处理方法、装置和系统 | |
| CN111049698A (zh) | 一种遥测数据采集方法及装置 | |
| WO2012159461A1 (zh) | 一种二层路径最大传输单元发现方法和节点 | |
| CN113055293A (zh) | 软件定义广域网中的选路方法及装置、通信系统 | |
| WO2022121638A1 (zh) | 一种报文处理方法及装置 | |
| CN110460548A (zh) | 基于多平面的时间触发以太网交换机及调度分组交换方法 | |
| US8243728B2 (en) | Apparatus and method for transmitting packets in a packet switched network | |
| US20110176549A1 (en) | Method of bus configuration to enable device bridging over dissimilar buses | |
| WO2024250192A1 (zh) | 一种报文转发方法、装置、网络设备及存储介质 | |
| CN101632268B (zh) | 网络中的参数化服务质量架构 | |
| WO2012000282A1 (zh) | 接入设备实现时分复用业务中继的方法和接入设备 | |
| WO2024065481A1 (zh) | 一种数据处理方法、装置、网络设备及存储介质 | |
| KR100596587B1 (ko) | 이종망 연동 장치와, 그를 이용한 실시간 트래픽 변환 방법 | |
| CN117081967A (zh) | 传输检测方法、装置及系统 | |
| US7561800B2 (en) | Optical burst switching system and method using duplicate burst transmission | |
| WO2024168617A1 (zh) | 一种时隙信息获取方法、装置、网络设备及存储介质 | |
| El-Banna et al. | Evaluation of New Dynamic Time Division Multiplexing Protocol for Real-Time Traffic over Converged Networks | |
| WO2024244626A1 (zh) | 数据传输方法、通信装置及存储介质 |
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: 23940081 Country of ref document: EP Kind code of ref document: A1 |
|
| WWP | Wipo information: published in national office |
Ref document number: 202380009328.7 Country of ref document: CN |
|
| NENP | Non-entry into the national phase |
Ref country code: DE |